From 98760699c7300df2ebd60147da1c9f0fb6c1bda3 Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Tue, 25 Aug 1998 01:31:06 +0000 Subject: [PATCH] Mon Aug 24 18:29:03 1998 Michael Snyder * tracepoint.c (collect_symbol): Handle register doubles that are stored in two registers. --- gdb/ChangeLog | 5 +++++ gdb/tracepoint.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2ac8f9f3133..d7f31a1d873 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Mon Aug 24 18:29:03 1998 Michael Snyder + + * tracepoint.c (collect_symbol): Handle register doubles that + are stored in two registers. + Mon Aug 24 14:39:08 1998 Mark Alexander * sh-stub.c (undoSStep): Improve comment. diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index f85ac540b9a..107ff4d46f9 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"); -- 2.30.2