From 448ba3431921b08f545b2b301e359a08df0fa5ed Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Thu, 6 Sep 2012 13:47:42 +0000 Subject: [PATCH] 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 --- contrib/gdb/gdb/dwarf2loc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/gdb/gdb/dwarf2loc.h b/contrib/gdb/gdb/dwarf2loc.h index ce0a8ef0bed0..7118ae47d78f 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