From e4c22ea004c02a58f5db5eb53794275344c17958 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 23 Oct 2007 13:07:39 +0000 Subject: 2007-10-23 Roland McGrath * linux-kernel-modules.c (report_kernel_archive): Reorder the kernel module to appear first. --- libdw/libdw_form.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libdw/libdw_form.c') diff --git a/libdw/libdw_form.c b/libdw/libdw_form.c index 779b6c0e..ad78f4b4 100644 --- a/libdw/libdw_form.c +++ b/libdw/libdw_form.c @@ -1,5 +1,5 @@ /* Helper functions for form handling. - Copyright (C) 2003, 2004, 2006 Red Hat, Inc. + Copyright (C) 2003, 2004, 2006, 2007 Red Hat, Inc. This file is part of Red Hat elfutils. Written by Ulrich Drepper , 2003. @@ -73,8 +73,11 @@ __libdw_form_val_len (Dwarf *dbg, struct Dwarf_CU *cu, unsigned int form, result = cu->address_size; break; - case DW_FORM_strp: case DW_FORM_ref_addr: + result = cu->version == 2 ? cu->address_size : cu->offset_size; + break; + + case DW_FORM_strp: result = cu->offset_size; break; -- cgit v1.2.1