From c04de390eab820d93cc2b0f32de8ce7b4fe7d100 Mon Sep 17 00:00:00 2001 From: emaste Date: Thu, 13 Sep 2012 01:02:42 +0000 Subject: [PATCH] MFC r240163: 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. git-svn-id: svn://svn.freebsd.org/base/stable/8@240435 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- 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 ce0a8ef0b..7118ae47d 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 -- 2.45.0