diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2012-01-20 09:49:58 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2012-01-20 09:49:58 +0000 |
commit | 3030c96e669f372adf4ce989b755e18b99fe7792 (patch) | |
tree | fc843296b14684e7a3429499804d5c76357597a1 /gdb/gdbarch.h | |
parent | 145b16a97aad6c8c3f30119d7c42b48753a0b1f8 (diff) | |
download | gdb-3030c96e669f372adf4ce989b755e18b99fe7792.zip gdb-3030c96e669f372adf4ce989b755e18b99fe7792.tar.gz gdb-3030c96e669f372adf4ce989b755e18b99fe7792.tar.bz2 |
* gdbarch.sh (info_proc): New callback.
* gdbarch.c, gdbarch.h: Regenerate.
* infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
before falling back to the target info_proc callback.
* linux-nat.c: Do not include "cli/cli-utils.h".
(linux_nat_info_proc): Remove.
(linux_target_install_ops): No longer install it.
* linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
(read_mapping): New function.
(linux_info_proc): Likewise.
(linux_init_abi): Install it.
Diffstat (limited to 'gdb/gdbarch.h')
-rw-r--r-- | gdb/gdbarch.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h index c257c63..7d1671d 100644 --- a/gdb/gdbarch.h +++ b/gdb/gdbarch.h @@ -1031,6 +1031,14 @@ typedef void (gdbarch_gen_return_address_ftype) (struct gdbarch *gdbarch, struct extern void gdbarch_gen_return_address (struct gdbarch *gdbarch, struct agent_expr *ax, struct axs_value *value, CORE_ADDR scope); extern void set_gdbarch_gen_return_address (struct gdbarch *gdbarch, gdbarch_gen_return_address_ftype *gen_return_address); +/* Implement the "info proc" command. */ + +extern int gdbarch_info_proc_p (struct gdbarch *gdbarch); + +typedef void (gdbarch_info_proc_ftype) (struct gdbarch *gdbarch, char *args, enum info_proc_what what); +extern void gdbarch_info_proc (struct gdbarch *gdbarch, char *args, enum info_proc_what what); +extern void set_gdbarch_info_proc (struct gdbarch *gdbarch, gdbarch_info_proc_ftype *info_proc); + /* Definition for an unknown syscall, used basically in error-cases. */ #define UNKNOWN_SYSCALL (-1) |