From abdc47d51cbd910f47d8415cadc93a5b94fcecf6 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Thu, 18 Oct 2007 09:33:56 +0300 Subject: [PATCH] debugedit mishandles DW_FORM_ref_addr (Roland McGrath) --- tools/debugedit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/debugedit.c b/tools/debugedit.c index ca30877..9206241 100644 --- a/tools/debugedit.c +++ b/tools/debugedit.c @@ -821,6 +821,7 @@ edit_attributes (DSO *dso, unsigned char *ptr, struct abbrev_tag *t, int phase) switch (form) { + case DW_FORM_ref_addr: /* ptr_size in DWARF 2, offset in DWARF 3 */ case DW_FORM_addr: ptr += ptr_size; break; @@ -846,7 +847,6 @@ edit_attributes (DSO *dso, unsigned char *ptr, struct abbrev_tag *t, int phase) case DW_FORM_udata: read_uleb128 (ptr); break; - case DW_FORM_ref_addr: case DW_FORM_strp: ptr += 4; break; -- 2.7.4