diff options
author | emaste <emaste@FreeBSD.org> | 2012-09-06 13:47:42 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2012-09-06 13:47:42 +0000 |
commit | 825c974e400cd1d3d1048aa3d9ecb2ac62fc3e0c (patch) | |
tree | 8c7f6576fa52a705f71303326a739e41ed7d2d30 /contrib/gdb | |
parent | 74c41527034bc40a02b17276aeab72d11fd5ae39 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | contrib/gdb/gdb/dwarf2loc.h | 4 |
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 |