From 3030c96e669f372adf4ce989b755e18b99fe7792 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Fri, 20 Jan 2012 09:49:58 +0000 Subject: * 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 . (read_mapping): New function. (linux_info_proc): Likewise. (linux_init_abi): Install it. --- gdb/infcmd.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'gdb/infcmd.c') diff --git a/gdb/infcmd.c b/gdb/infcmd.c index a88201b..cd8bf40 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. */ -- cgit v1.1