aboutsummaryrefslogtreecommitdiff
path: root/gdb/tracepoint.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>1998-08-25 01:31:06 +0000
committerMichael Snyder <msnyder@vmware.com>1998-08-25 01:31:06 +0000
commit98760699c7300df2ebd60147da1c9f0fb6c1bda3 (patch)
tree1d6f7af13be221f401b5c59aed8320371f7ccc09 /gdb/tracepoint.c
parentce8f5b49f69cd6cdffc9548aa3b409876f05c2a5 (diff)
downloadgdb-98760699c7300df2ebd60147da1c9f0fb6c1bda3.zip
gdb-98760699c7300df2ebd60147da1c9f0fb6c1bda3.tar.gz
gdb-98760699c7300df2ebd60147da1c9f0fb6c1bda3.tar.bz2
Mon Aug 24 18:29:03 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
* tracepoint.c (collect_symbol): Handle register doubles that are stored in two registers.
Diffstat (limited to 'gdb/tracepoint.c')
-rw-r--r--gdb/tracepoint.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index f85ac54..107ff4d 100644
--- a/gdb/tracepoint.c
+++ b/gdb/tracepoint.c
@@ -1206,6 +1206,11 @@ collect_symbol (collect, sym)
if (info_verbose)
printf_filtered ("LOC_REG[parm] %s: ", SYMBOL_NAME (sym));
add_register (collect, reg);
+ /* check for doubles stored in two registers */
+ /* FIXME: how about larger types stored in 3 or more regs? */
+ if (TYPE_CODE (SYMBOL_TYPE (sym)) == TYPE_CODE_FLT &&
+ len > REGISTER_RAW_SIZE (reg))
+ add_register (collect, reg + 1);
break;
case LOC_REF_ARG:
printf_filtered ("Sorry, don't know how to do LOC_REF_ARG yet.\n");