summaryrefslogtreecommitdiff
path: root/gdb/infcmd.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2012-01-20 09:49:57 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2012-01-20 09:49:57 +0000
commit9c64052db7b6e426f361c8bcef0d3cba745ad927 (patch)
treec1a21483df827da4833446014a5c62025b1a3f57 /gdb/infcmd.c
parentcba35773df17a05ddfffdc7432c5335b16bd329f (diff)
downloadgdb-9c64052db7b6e426f361c8bcef0d3cba745ad927.tar.gz
* 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/infcmd.c')
-rw-r--r--gdb/infcmd.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index a88201bd8f1..cd8bf404d90 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -2810,7 +2810,12 @@ unset_command (char *args, int from_tty)
static void
info_proc_cmd_1 (char *args, enum info_proc_what what, int from_tty)
{
- target_info_proc (args, what);
+ struct gdbarch *gdbarch = get_current_arch ();
+
+ if (gdbarch_info_proc_p (gdbarch))
+ gdbarch_info_proc (gdbarch, args, what);
+ else
+ target_info_proc (args, what);
}
/* Implement `info proc' when given without any futher parameters. */