diff options
author | Dawn Perchik <dawn@cygnus> | 1996-06-28 14:03:13 +0000 |
---|---|---|
committer | Dawn Perchik <dawn@cygnus> | 1996-06-28 14:03:13 +0000 |
commit | 012be3cec37ed2a7c6e07379404e6354ff06daf9 (patch) | |
tree | 1a6089a159ee98807b81dab840e46b472687d040 /gdb/parse.c | |
parent | 265c044ac1c64e04518319bb4fcecca96e09d707 (diff) | |
download | gdb-012be3cec37ed2a7c6e07379404e6354ff06daf9.zip gdb-012be3cec37ed2a7c6e07379404e6354ff06daf9.tar.gz gdb-012be3cec37ed2a7c6e07379404e6354ff06daf9.tar.bz2 |
* configure,configure.in: Add target sparclet.
* monitor.h,monitor.c:
Added monitor flags MO_NO_ECHO_ON_SETMEM (don't expect echo on
setmem command), MO_RUN_FIRST_TIME (if command to start process
running on target is different from one to continue execution),
MO_HEX_PREFIX (if addresses from monitor have a "0x" prefix).
* monitor.c,parse.c,sparc-tdep.c:
Don't require strings in the registers array. This is to allow
NULLs to be place holders in the tm-*.h file so that only minor
changes are needed when a new processor is introduced (eg, one
without floating point).
* sparc-tdep.c: Conditionally remove dependancies on floating point.
* sparclet-rom.c,config/sparc/sparclet.mt,config/sparc/tm-sparclet.h:
New files for target sparclet.
* symfile.c: Add option for 2nd parameter on load command : a load
offset added to the vma of each section.
Diffstat (limited to 'gdb/parse.c')
-rw-r--r-- | gdb/parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/parse.c b/gdb/parse.c index 7d458c1..e4ff571 100644 --- a/gdb/parse.c +++ b/gdb/parse.c @@ -459,13 +459,13 @@ write_dollar_variable (str) /* Handle tokens that refer to machine registers: $ followed by a register name. */ for (i = 0; i < NUM_REGS; i++) - if (str.length - 1 == strlen (reg_names[i]) + if (reg_names[i] && str.length - 1 == strlen (reg_names[i]) && STREQN (str.ptr + 1, reg_names[i], str.length - 1)) { goto handle_register; } for (i = 0; i < num_std_regs; i++) - if (str.length - 1 == strlen (std_regs[i].name) + if (std_regs[i].name && str.length - 1 == strlen (std_regs[i].name) && STREQN (str.ptr + 1, std_regs[i].name, str.length - 1)) { i = std_regs[i].regnum; |