diff options
author | Jason Wessel <jason.wessel@windriver.com> | 2008-08-01 08:39:35 -0500 |
---|---|---|
committer | Jason Wessel <jason.wessel@windriver.com> | 2008-08-01 08:39:35 -0500 |
commit | 25fc999913839a45cbb48ac7872e67f7521e7ed9 (patch) | |
tree | 2785851665dccc753e9e6cf0de650be72e56d7de /drivers/net/gianfar_mii.h | |
parent | a9b60bf4c29e07a5a2f26a6f74937972fee9b58b (diff) |
kgdb: fix gdb serial thread queries
The command "info threads" did not work correctly with kgdb. It would
result in a silent kernel hang if used.
This patach addresses several problems.
- Fix use of deprecated NR_CPUS
- Fix kgdb to not walk linearly through the pid space
- Correctly implement shadow pids
- Change the threads per query to a #define
- Fix kgdb_hex2long to work with negated values
The threads 0 and -1 are reserved to represent the current task. That
means that CPU 0 will start with a shadow thread id of -2, and CPU 1
will have a shadow thread id of -3, etc...
From the debugger you can switch to a shadow thread to see what one of
the other cpus was doing, however it is not possible to execute run
control operations on any other cpu execept the cpu executing the
kgdb_handle_exception().
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Diffstat (limited to 'drivers/net/gianfar_mii.h')
0 files changed, 0 insertions, 0 deletions