diff options
author | gdb-2.8.1 <gdb@fsf.org> | 1988-12-16 00:00:00 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2012-06-03 15:36:31 +0100 |
commit | bb7592f01006b09c846831a9fb9c306307ba34f6 (patch) | |
tree | 83e99233f937d7a06eee7c627543288feb125929 /gdb/findvar.c | |
parent | 3bf57d210832b28e9361990830eb722a619f031b (diff) | |
download | gdb-bb7592f01006b09c846831a9fb9c306307ba34f6.zip gdb-bb7592f01006b09c846831a9fb9c306307ba34f6.tar.gz gdb-bb7592f01006b09c846831a9fb9c306307ba34f6.tar.bz2 |
gdb-2.8.1
Diffstat (limited to 'gdb/findvar.c')
-rw-r--r-- | gdb/findvar.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/findvar.c b/gdb/findvar.c index e5f9b4a..d7ccdc4 100644 --- a/gdb/findvar.c +++ b/gdb/findvar.c @@ -176,6 +176,12 @@ write_register (regno, val) int regno, val; { /* This loses when REGISTER_RAW_SIZE (regno) != sizeof (int) */ +#if defined(sun4) + /* This is a no-op on a Sun 4. */ + if (regno == 0) + return; +#endif + *(int *) ®isters[REGISTER_BYTE (regno)] = val; if (have_inferior_p ()) @@ -253,6 +259,7 @@ read_var_value (var, frame) return v; case LOC_REGISTER: + case LOC_REGPARM: { char raw_buffer[MAX_REGISTER_RAW_SIZE]; char virtual_buffer[MAX_REGISTER_VIRTUAL_SIZE]; @@ -356,6 +363,7 @@ locate_var_value (var, frame) SYMBOL_NAME (var)); case LOC_REGISTER: + case LOC_REGPARM: addr = find_saved_register (frame, val); if (addr != 0) { |