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
This commit is contained in:
Ed Maste 2012-09-06 13:47:42 +00:00
parent 1f3d1b1181
commit 448ba34319
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=240163

View File

@ -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