aboutsummaryrefslogtreecommitdiff
path: root/gdb/findvar.c
diff options
context:
space:
mode:
authorgdb-2.8.1 <gdb@fsf.org>1988-12-16 00:00:00 +0000
committerPedro Alves <palves@redhat.com>2012-06-03 15:36:31 +0100
commitbb7592f01006b09c846831a9fb9c306307ba34f6 (patch)
tree83e99233f937d7a06eee7c627543288feb125929 /gdb/findvar.c
parent3bf57d210832b28e9361990830eb722a619f031b (diff)
downloadgdb-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.c8
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 *) &registers[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)
{