This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug symtab/17236] New: bug in dwarf2_add_member_fn
- From: "tromey at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 07 Aug 2014 15:46:57 +0000
- Subject: [Bug symtab/17236] New: bug in dwarf2_add_member_fn
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=17236
Bug ID: 17236
Summary: bug in dwarf2_add_member_fn
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: symtab
Assignee: unassigned at sourceware dot org
Reporter: tromey at redhat dot com
-Wunused-but-set-variable flags dwarf2read.c:
../../binutils-gdb/gdb/dwarf2read.c: In function âdwarf2_add_member_fnâ:
../../binutils-gdb/gdb/dwarf2read.c:12739:27: error: variable âblkâ set but not
used [-Werror=unused-but-set-variable]
struct dwarf_block blk;
^
The code:
struct dwarf_block blk;
int offset;
offset = (DW_BLOCK (attr)->data[0] == DW_OP_deref
? 1 : 2);
blk.size = DW_BLOCK (attr)->size - offset;
blk.data = DW_BLOCK (attr)->data + offset;
fnp->voffset = decode_locdesc (DW_BLOCK (attr), cu);
Probably that call to decode_locdesc should pass &blk as its
first argument.
Currently I imagine this branch is not taken due to
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44126
--
You are receiving this mail because:
You are on the CC list for the bug.