From 9bde073247a88977fb7cb88974f0b0310f86ebeb Mon Sep 17 00:00:00 2001 From: Aleksandar Ristovski Date: Wed, 4 Mar 2009 17:58:34 +0000 Subject: [PATCH] * infcmd.c (registers_info): Remove register number case. --- gdb/ChangeLog | 4 ++++ gdb/infcmd.c | 15 --------------- 2 files changed, 4 insertions(+), 15 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ea0e65f434a..2bf365da5c2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2009-03-04 Aleksandar Ristovski + + * infcmd.c (registers_info): Remove register number case. + 2009-03-03 Pedro Alves * top.c (quit_target): Check for target_has_execution before diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 0a17dab06a3..37a237a12f6 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -1948,21 +1948,6 @@ registers_info (char *addr_exp, int fpregs) } } - /* A register number? (how portable is this one?). */ - { - char *endptr; - int regnum = strtol (start, &endptr, 0); - if (endptr == end - && regnum >= 0 - && regnum < gdbarch_num_regs (gdbarch) - + gdbarch_num_pseudo_regs (gdbarch)) - { - gdbarch_print_registers_info (gdbarch, gdb_stdout, - frame, regnum, fpregs); - continue; - } - } - /* A register group? */ { struct reggroup *group; -- 2.30.2