diff options
author | Jason Wessel <jason.wessel@windriver.com> | 2010-05-20 22:04:24 -0400 |
---|---|---|
committer | Jason Wessel <jason.wessel@windriver.com> | 2010-05-20 22:04:24 -0400 |
commit | 84c08fd61e2d21702337e9fe366e97cdf09bf797 (patch) | |
tree | 6f5a0da88319c7f5270e58f4cb71c6fd5535f20e /include | |
parent | ada64e4c98eb5f04a9ca223c5ff9e7ac22ce6404 (diff) |
kgdb,docs: Update the kgdb docs to include kdb
Update the kgdb docs to reflect the new directory structure and API.
Merge in the kdb shell information.
[Randy Dunlap <rdunlap@xenotime.net>: grammatical corrections]
CC: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/kgdb.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/linux/kgdb.h b/include/linux/kgdb.h index 5b37df00000d..407edb1e0c4d 100644 --- a/include/linux/kgdb.h +++ b/include/linux/kgdb.h | |||
@@ -204,6 +204,17 @@ kgdb_arch_handle_exception(int vector, int signo, int err_code, | |||
204 | */ | 204 | */ |
205 | extern void kgdb_roundup_cpus(unsigned long flags); | 205 | extern void kgdb_roundup_cpus(unsigned long flags); |
206 | 206 | ||
207 | /** | ||
208 | * kgdb_arch_set_pc - Generic call back to the program counter | ||
209 | * @regs: Current &struct pt_regs. | ||
210 | * @pc: The new value for the program counter | ||
211 | * | ||
212 | * This function handles updating the program counter and requires an | ||
213 | * architecture specific implementation. | ||
214 | */ | ||
215 | extern void kgdb_arch_set_pc(struct pt_regs *regs, unsigned long pc); | ||
216 | |||
217 | |||
207 | /* Optional functions. */ | 218 | /* Optional functions. */ |
208 | extern int kgdb_validate_break_address(unsigned long addr); | 219 | extern int kgdb_validate_break_address(unsigned long addr); |
209 | extern int kgdb_arch_set_breakpoint(unsigned long addr, char *saved_instr); | 220 | extern int kgdb_arch_set_breakpoint(unsigned long addr, char *saved_instr); |
@@ -264,7 +275,6 @@ extern struct kgdb_arch arch_kgdb_ops; | |||
264 | 275 | ||
265 | extern unsigned long __weak kgdb_arch_pc(int exception, struct pt_regs *regs); | 276 | extern unsigned long __weak kgdb_arch_pc(int exception, struct pt_regs *regs); |
266 | 277 | ||
267 | extern void kgdb_arch_set_pc(struct pt_regs *regs, unsigned long pc); | ||
268 | extern int kgdb_register_io_module(struct kgdb_io *local_kgdb_io_ops); | 278 | extern int kgdb_register_io_module(struct kgdb_io *local_kgdb_io_ops); |
269 | extern void kgdb_unregister_io_module(struct kgdb_io *local_kgdb_io_ops); | 279 | extern void kgdb_unregister_io_module(struct kgdb_io *local_kgdb_io_ops); |
270 | extern struct kgdb_io *dbg_io_ops; | 280 | extern struct kgdb_io *dbg_io_ops; |