diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-11-24 18:44:36 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-11-24 18:44:36 +0000 |
commit | 461f81195c0cd8dee6d150c29e0c1f6eaeb9eeee (patch) | |
tree | d7ff22711de954ec190e020b4dc2277b51f96964 /gdb/gdbtk/generic/gdbtk-stack.c | |
parent | a19c9296107519bb76b0d383055dd7a6a81e0123 (diff) | |
download | gdb-461f81195c0cd8dee6d150c29e0c1f6eaeb9eeee.tar.gz |
2002-11-19 Andrew Cagney <ac131313@redhat.com>
* generic/gdbtk-stack.c (gdb_selected_frame): Use get_frame_base
instead of FRAME_FP. Mention that get_frame_id() should be used.
Diffstat (limited to 'gdb/gdbtk/generic/gdbtk-stack.c')
-rw-r--r-- | gdb/gdbtk/generic/gdbtk-stack.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/gdbtk/generic/gdbtk-stack.c b/gdb/gdbtk/generic/gdbtk-stack.c index 14f3148a013..0f43f971073 100644 --- a/gdb/gdbtk/generic/gdbtk-stack.c +++ b/gdb/gdbtk/generic/gdbtk-stack.c @@ -420,7 +420,9 @@ gdb_selected_frame (ClientData clientData, Tcl_Interp *interp, if (selected_frame == NULL) xasprintf (&frame, "%s",""); else - xasprintf (&frame, "0x%s", paddr_nz (FRAME_FP (selected_frame))); + /* FIXME: cagney/2002-11-19: This should be using get_frame_id() + to identify the frame and *NOT* get_frame_base(). */ + xasprintf (&frame, "0x%s", paddr_nz (get_frame_base (selected_frame))); Tcl_SetStringObj (result_ptr->obj_ptr, frame, -1); |