This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
gdb/497: -var-create needs both frame and func
- From: ac131313 at redhat dot com
- To: gdb-gnats at sources dot redhat dot com
- Date: 17 Apr 2002 15:13:11 -0000
- Subject: gdb/497: -var-create needs both frame and func
- Reply-to: ac131313 at redhat dot com
>Number: 497
>Category: gdb
>Synopsis: -var-create needs both frame and func
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Apr 17 08:18:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: ac131313@redhat.com
>Release: 2002-04-17
>Organization:
>Environment:
>Description:
(Given GDB currently isn't very good at debugging optomized code, the probably of seeing this is very low - you need a frameless non-leaf function.)
To correctly identify a frame both the ``frame addr'' and the ``frame func'' are needed. The ``frame func'' is used to break the case where two frames have the same ``frame addr''.
The command -var-create only takes a frame. This means that it currently can't always correctly identify the current frame.
The command should be extended (option?) to also take the function (of course this requires the corresponding print frame code to print a addr/func pair when displaying frames.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: