diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-10-20 23:45:13 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-10-20 23:45:13 +0000 |
commit | fc81adb803b6f43bc80ebb049472b660bd2e33fa (patch) | |
tree | 3e0cf63aef950073989c13e65a06a3cbb6f39415 /gdb | |
parent | 9ab86fa36e1cef4b9e6d97a64a5cc2ecf5062591 (diff) | |
download | gdb-fc81adb803b6f43bc80ebb049472b660bd2e33fa.zip gdb-fc81adb803b6f43bc80ebb049472b660bd2e33fa.tar.gz gdb-fc81adb803b6f43bc80ebb049472b660bd2e33fa.tar.bz2 |
* stabsread.c (define_symbol): When combining a LOC_ARG and a
LOC_REGISTER, use the type from the LOC_REGISTER, not from the
LOC_ARG.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/stabsread.c | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1571ef7..eafceee 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +Wed Oct 20 11:35:43 1993 Jim Kingdon (kingdon@lioth.cygnus.com) + + * stabsread.c (define_symbol): When combining a LOC_ARG and a + LOC_REGISTER, use the type from the LOC_REGISTER, not from the + LOC_ARG. + Wed Oct 20 14:34:38 1993 K. Richard Pixley (rich@sendai.cygnus.com) * config/i386/xm-go32.h: define some signals if they aren't diff --git a/gdb/stabsread.c b/gdb/stabsread.c index f7b817e..bee0cd3 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -948,6 +948,9 @@ define_symbol (valu, string, desc, type, objfile) && STREQ (SYMBOL_NAME (prev_sym), SYMBOL_NAME(sym))) { SYMBOL_CLASS (prev_sym) = LOC_REGPARM; + /* Use the type from the LOC_REGISTER; that is the type + that is actually in that register. */ + SYMBOL_TYPE (prev_sym) = SYMBOL_TYPE (sym); SYMBOL_VALUE (prev_sym) = SYMBOL_VALUE (sym); sym = prev_sym; break; |