From fc81adb803b6f43bc80ebb049472b660bd2e33fa Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Wed, 20 Oct 1993 23:45:13 +0000 Subject: [PATCH] * 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. --- gdb/ChangeLog | 6 ++++++ gdb/stabsread.c | 3 +++ 2 files changed, 9 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1571ef78ecf..eafceeef524 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 f7b817eff23..bee0cd36d45 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; -- 2.30.2