From 4183a62a97c424ac777cdc2b72f7dc7c8e0f3e7a Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Tue, 24 Nov 1998 23:50:20 +0000 Subject: Tue Nov 24 15:46:33 1998 Michael Snyder * config/mn10300/tm-mn10300.h (TARGET_VIRTUAL_FRAME_POINTER): new target macro. * mn10300-tdep.c (mn10300_virtual_frame_pointer): new function. * tracepoint.c (encode_actions): Use the new target macro to determine the virtual frame pointer, for collecting locals/args. (add_local_symbols, collect_symbol): add a register/offset pair of arguments so that the virtual frame pointer can be passed in. --- gdb/config/mn10300/tm-mn10300.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gdb/config/mn10300') diff --git a/gdb/config/mn10300/tm-mn10300.h b/gdb/config/mn10300/tm-mn10300.h index 4898df4..a2bc298 100644 --- a/gdb/config/mn10300/tm-mn10300.h +++ b/gdb/config/mn10300/tm-mn10300.h @@ -166,6 +166,11 @@ extern use_struct_convention_fn mn10300_use_struct_convention; one that takes account of generic CALL_DUMMY frames */ #define GET_SAVED_REGISTER +/* Cons up virtual frame pointer for trace */ +extern void mn10300_virtual_frame_pointer PARAMS ((CORE_ADDR, long *, long *)); +#define TARGET_VIRTUAL_FRAME_POINTER(PC, REGP, OFFP) \ + mn10300_virtual_frame_pointer ((PC), (REGP), (OFFP)) + /* Define this for Wingdb */ #define TARGET_MN10300 -- cgit v1.1