Summary: | dwarf/regression: array index treated as signed byte, when specified unsigned byte (leads to [0..-n]) | ||
---|---|---|---|
Product: | gdb | Reporter: | Martin <gdb.bugs> |
Component: | gdb | Assignee: | Tom Tromey <tromey> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | tromey |
Priority: | P2 | ||
Version: | 7.5 | ||
Target Milestone: | 7.6 | ||
Host: | Target: | ||
Build: | Last reconfirmed: |
Description
Martin
2013-02-05 19:17:25 UTC
Testing a patch. The bug is that the subrange type code in dwarf2read.c doesn't strip typedefs, so it doesn't see that the range type is unsigned. CVSROOT: /cvs/src Module name: src Changes by: tromey@sourceware.org 2013-02-18 21:04:28 Modified files: gdb : ChangeLog dwarf2read.c gdb/testsuite : ChangeLog Added files: gdb/testsuite/gdb.dwarf2: subrange.exp Log message: PR gdb/15102: * dwarf2read.c (read_subrange_type): Use result of 'check_typedef'. gdb/testsuite * gdb.dwarf2/subrange.exp: New file. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.15160&r2=1.15161 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/dwarf2read.c.diff?cvsroot=src&r1=1.753&r2=1.754 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.3564&r2=1.3565 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.dwarf2/subrange.exp.diff?cvsroot=src&r1=NONE&r2=1.1 Fixed. |