Bug 11632 - vla: Fix: C VLAs should use DW_AT_allocated
Summary: vla: Fix: C VLAs should use DW_AT_allocated
Status: RESOLVED FIXED
Alias: None
Product: gdb
Classification: Unclassified
Component: exp (show other bugs)
Version: archer
: P2 normal
Target Milestone: 7.1
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-24 19:53 UTC by Jan Kratochvil
Modified: 2023-02-18 00:28 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 Jan Kratochvil 2010-05-24 19:53:15 UTC
GCC counterpart:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42801#c3

# Unfortunately, gdb prints 0 instead of 24 in the second case.
Comment 1 Tom Tromey 2014-05-08 17:55:45 UTC
I think it is probably purely a gcc bug now.
The gdb bits work if the source is compiled -O1.
With -O0 I believe the debuginfo is somewhat incorrect
until "a" is "really" in scope.
Comment 2 Tom Tromey 2023-02-18 00:28:23 UTC
This works now.

(gdb) ptype a
type = char [5]