aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-sim.c
diff options
context:
space:
mode:
authorMark Alexander <marka@cygnus>1997-09-30 06:20:59 +0000
committerMark Alexander <marka@cygnus>1997-09-30 06:20:59 +0000
commit639c86123023437b903cbb65a4fb51154956dba6 (patch)
tree22cabc787ca39376d1f01920ffa3169ae1c3374c /gdb/remote-sim.c
parent467ad5d4b79e0b0a7b2b8b9acab198fd61f7d82c (diff)
downloadfsf-binutils-gdb-639c86123023437b903cbb65a4fb51154956dba6.zip
fsf-binutils-gdb-639c86123023437b903cbb65a4fb51154956dba6.tar.gz
fsf-binutils-gdb-639c86123023437b903cbb65a4fb51154956dba6.tar.bz2
* mips-tdep.c (set_reg_offset): New function.
(mips16_heuristic_proc_desc): Calculate offsets of registers saved by entry pseudo-op after rest of prologue has been read. Use set_reg_offset to ignore all but the first save of a given register. (mips32_heuristic_proc_desc): Initialize frame adjustment value. * remote-sim.c (gdbsim_store_register): Don't update registers that have a null or empty name. * findvar.c (read_register_bytes): Don't fetch registers that have a null or empty name.
Diffstat (limited to 'gdb/remote-sim.c')
-rw-r--r--gdb/remote-sim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c
index d395d8f..816e9cc 100644
--- a/gdb/remote-sim.c
+++ b/gdb/remote-sim.c
@@ -369,7 +369,7 @@ int regno;
for (regno = 0; regno < NUM_REGS; regno++)
gdbsim_store_register (regno);
}
- else
+ else if (reg_names[regno] != NULL && *reg_names[regno] != '\0')
{
/* FIXME: Until read_register() returns LONGEST, we have this. */
char tmp[MAX_REGISTER_RAW_SIZE];