summaryrefslogtreecommitdiffstats
path: root/contrib/gdb/gdb/dwarf2loc.h
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2012-09-06 13:47:42 +0000
committeremaste <emaste@FreeBSD.org>2012-09-06 13:47:42 +0000
commit825c974e400cd1d3d1048aa3d9ecb2ac62fc3e0c (patch)
tree8c7f6576fa52a705f71303326a739e41ed7d2d30 /contrib/gdb/gdb/dwarf2loc.h
parent74c41527034bc40a02b17276aeab72d11fd5ae39 (diff)
downloadFreeBSD-src-825c974e400cd1d3d1048aa3d9ecb2ac62fc3e0c.zip
FreeBSD-src-825c974e400cd1d3d1048aa3d9ecb2ac62fc3e0c.tar.gz
Fix "Corrupted DWARF expression" from (k)gdb.
Google turned up Debian bug 405116, which describes the problem in sufficient detail to identify the overflowing variables. MFC after: 1 week
Diffstat (limited to 'contrib/gdb/gdb/dwarf2loc.h')
-rw-r--r--contrib/gdb/gdb/dwarf2loc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/gdb/gdb/dwarf2loc.h b/contrib/gdb/gdb/dwarf2loc.h
index ce0a8ef..7118ae4 100644
--- a/contrib/gdb/gdb/dwarf2loc.h
+++ b/contrib/gdb/gdb/dwarf2loc.h
@@ -38,7 +38,7 @@ struct dwarf2_locexpr_baton
unsigned char *data;
/* Length of the location expression. */
- unsigned short size;
+ unsigned long size;
/* The objfile containing the symbol whose location we're computing. */
struct objfile *objfile;
@@ -54,7 +54,7 @@ struct dwarf2_loclist_baton
unsigned char *data;
/* Length of the location list. */
- unsigned short size;
+ unsigned long size;
/* The objfile containing the symbol whose location we're computing. */
/* Used (only???) by thread local variables. The objfile in which
OpenPOWER on IntegriCloud