Bug 8399 - 'info address' is not informative enough with dwarf2 location expressions
Summary: 'info address' is not informative enough with dwarf2 location expressions
Status: RESOLVED FIXED
Alias: None
Product: gdb
Classification: Unclassified
Component: symtab (show other bugs)
Version: unknown
: P3 enhancement
Target Milestone: 7.3
Assignee: Jan Kratochvil
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-23 02:58 UTC by E. Zannoni
Modified: 2010-09-14 19:47 UTC (History)
1 user (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 E. Zannoni 2003-07-23 02:58:00 UTC
[Converted from Gnats 1294]

If you do info address on a dwarf2 variable that is described by a location expression, (LOC_COMPUTED class, internally to gdb), you get only some vague description of the var's location. When using the old mechanism, gdb was able to tell you much more about the actual location of the variable.
See thread:
http://sources.redhat.com/ml/gdb/2003-07/msg00242.html

(gdb) info address a_thread_local
Symbol "a_thread_local" is a variable with complex or multiple locations (DWARF2).

Release:
unknown
Comment 1 Jan Kratochvil 2009-09-20 20:53:52 UTC
Posted a RFC patch:
http://sourceware.org/ml/gdb-patches/2009-09/msg00649.html
Comment 2 Sourceware Commits 2010-09-14 19:40:16 UTC
Subject: Bug 8399

CVSROOT:	/cvs/src
Module name:	src
Changes by:	tromey@sourceware.org	2010-09-14 19:39:59

Modified files:
	gdb            : ChangeLog dwarf2loc.c 
	gdb/testsuite  : ChangeLog 
	gdb/testsuite/gdb.threads: tls.exp 

Log message:
	gdb
	PR symtab/8399:
	* dwarf2loc.c (locexpr_describe_location_piece): Don't call error
	for unrecognized frame base expression.
	gdb/testsuite
	PR symtab/8399:
	* gdb.threads/tls.exp: Remove kfail.  Update expected output.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.12181&r2=1.12182
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/dwarf2loc.c.diff?cvsroot=src&r1=1.97&r2=1.98
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.2448&r2=1.2449
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.threads/tls.exp.diff?cvsroot=src&r1=1.13&r2=1.14

Comment 3 Tom Tromey 2010-09-14 19:47:27 UTC
Fixed.