aboutsummaryrefslogtreecommitdiff
path: root/gdb/infcmd.c
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1996-03-08 02:04:19 +0000
committerStan Shebs <shebs@codesourcery.com>1996-03-08 02:04:19 +0000
commit00dd4fd9ad7d8ad1847f7b51740cc6fb2a0f5bb5 (patch)
tree4c9dafe825ba0fb768491ee0d4e9edd5ecd40850 /gdb/infcmd.c
parent98fe0e07c512b701c4c81134fa8cc1105f357ac9 (diff)
downloadgdb-00dd4fd9ad7d8ad1847f7b51740cc6fb2a0f5bb5.zip
gdb-00dd4fd9ad7d8ad1847f7b51740cc6fb2a0f5bb5.tar.gz
gdb-00dd4fd9ad7d8ad1847f7b51740cc6fb2a0f5bb5.tar.bz2
* infcmd.c (do_registers_info): Ignore anonymous registers.
* sh-tdep.c (set processor): New command to set specific processor type. (sh_reg_names, sh3_reg_names): Arrays of register names for SH and SH3 processors. (sh_set_processor_type): New function. * sh3-rom.c (sh3_open): Call it. (sh3_regname): Add names of all the bank registers. (sh3_supply_register): Clean up formatting. * config/sh/tm-sh.h (NUM_REGS, NUM_REALREGS): Increase to include bank registers. (REGISTER_NAMES): Add names of bank registers. (FP15_REGNUM): Define. (REGISTER_VIRTUAL_TYPE): Use it. * monitor.c: Clean up some comments.
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r--gdb/infcmd.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index 9e677ae..7847f33 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -977,6 +977,11 @@ do_registers_info (regnum, fpregs)
continue;
}
+ /* If the register name is empty, it is undefined for this
+ processor, so don't display anything. */
+ if (reg_names[i] == NULL || *(reg_names[i]) == '\0')
+ continue;
+
fputs_filtered (reg_names[i], gdb_stdout);
print_spaces_filtered (15 - strlen (reg_names[i]), gdb_stdout);
@@ -1132,7 +1137,7 @@ attach_command (args, from_tty)
char *args;
int from_tty;
{
- extern int auto_solib_add_at_startup;
+ extern int auto_solib_add;
dont_repeat (); /* Not for the faint of heart */
@@ -1167,7 +1172,7 @@ attach_command (args, from_tty)
#endif
#ifdef SOLIB_ADD
- if (auto_solib_add_at_startup)
+ if (auto_solib_add)
/* Add shared library symbols from the newly attached process, if any. */
SOLIB_ADD ((char *)0, from_tty, (struct target_ops *)0);
#endif