From: Michael Snyder Date: Fri, 24 Jul 1998 00:02:07 +0000 (+0000) Subject: Thu Jul 23 17:01:17 1998 Michael Snyder X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f32fa05325e691ab3377e8f9c71f4b7a337dfab6;p=binutils-gdb.git Thu Jul 23 17:01:17 1998 Michael Snyder * tracepoint.c (collect_symbol): handle LOC_ARG case. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5011a4a907e..ab7f7e273cc 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +Thu Jul 23 17:01:17 1998 Michael Snyder + + * tracepoint.c (collect_symbol): handle LOC_ARG case. + Thu Jul 23 15:07:40 1998 Dawn Perchik * sparc-tdep.c (sparc_init_extra_frame_info): Recognize when we're diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index 20379c1cf4c..2d13d11a19b 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -1207,19 +1207,30 @@ collect_symbol (collect, sym) printf_filtered ("LOC_REG[parm] %s: ", SYMBOL_NAME (sym)); add_register (collect, reg); break; - case LOC_ARG: case LOC_REF_ARG: - printf_filtered ("Sorry, don't know how to do LOC_ARGs yet.\n"); + printf_filtered ("Sorry, don't know how to do LOC_REF_ARG yet.\n"); printf_filtered (" (will not collect %s)\n", SYMBOL_NAME (sym)); break; + case LOC_ARG: + offset = SYMBOL_VALUE (sym); + reg = FP_REGNUM; + if (info_verbose) + { + printf_filtered ("LOC_LOCAL %s: Collect %d bytes at offset", + SYMBOL_NAME (sym), len); + printf_filtered (" %d from frame ptr reg %d\n", offset, reg); + } + add_memrange (collect, reg, offset, len); + break; case LOC_REGPARM_ADDR: reg = SYMBOL_VALUE (sym); offset = 0; if (info_verbose) { - printf_filtered ("LOC_REGPARM_ADDR %s: Collect %d bytes at offset %d from reg %d\n", - SYMBOL_NAME (sym), len, offset, reg); + printf_filtered ("LOC_REGPARM_ADDR %s: Collect %d bytes at offset", + SYMBOL_NAME (sym), len); + printf_filtered (" %d from reg %d\n", offset, reg); } add_memrange (collect, reg, offset, len); break; @@ -1229,8 +1240,9 @@ collect_symbol (collect, sym) reg = FP_REGNUM; if (info_verbose) { - printf_filtered ("LOC_LOCAL %s: Collect %d bytes at offset %d from frame ptr reg %d\n", - SYMBOL_NAME (sym), len, offset, reg); + printf_filtered ("LOC_LOCAL %s: Collect %d bytes at offset", + SYMBOL_NAME (sym), len); + printf_filtered (" %d from frame ptr reg %d\n", offset, reg); } add_memrange (collect, reg, offset, len); break;