aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>1998-07-24 00:02:07 +0000
committerMichael Snyder <msnyder@vmware.com>1998-07-24 00:02:07 +0000
commitf32fa05325e691ab3377e8f9c71f4b7a337dfab6 (patch)
tree4dd958db1c82bce1be9e7beda0808ea0d60aa10c /gdb
parent6767a3abb71ee590a99bddacda32872b6fd6e5a0 (diff)
downloadgdb-f32fa05325e691ab3377e8f9c71f4b7a337dfab6.zip
gdb-f32fa05325e691ab3377e8f9c71f4b7a337dfab6.tar.gz
gdb-f32fa05325e691ab3377e8f9c71f4b7a337dfab6.tar.bz2
Thu Jul 23 17:01:17 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
* tracepoint.c (collect_symbol): handle LOC_ARG case.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/tracepoint.c24
2 files changed, 22 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5011a4a..ab7f7e27 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+Thu Jul 23 17:01:17 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
+
+ * tracepoint.c (collect_symbol): handle LOC_ARG case.
+
Thu Jul 23 15:07:40 1998 Dawn Perchik <dawn@cygnus.com>
* sparc-tdep.c (sparc_init_extra_frame_info): Recognize when we're
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index 20379c1..2d13d11 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;