Bug 7602 - -var-create needs both frame and func
Summary: -var-create needs both frame and func
Status: RESOLVED OBSOLETE
Alias: None
Product: gdb
Classification: Unclassified
Component: mi (show other bugs)
Version: unknown
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-17 08:18 UTC by ac131313
Modified: 2023-08-31 17:23 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ac131313 2002-04-17 15:18:01 UTC
[Converted from Gnats 497]

(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.

Release:
2002-04-17
Comment 1 ac131313 2003-03-31 14:32:34 UTC
From: Andrew Cagney <ac131313@redhat.com>
To: gdb-gnats@sources.redhat.com
Cc:  
Subject: Re: mi/497: -var-create needs both frame and func
Date: Mon, 31 Mar 2003 09:32:34 -0500

 Update.
 
 GDB now has a frame ID and that contains both the frame and the func.
 
 Andrew
Comment 2 Tom Tromey 2023-08-31 17:23:28 UTC
Sounds like this was fixed 20 years ago.