[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/616] readelf doesn't add "cu_offset" for printing DW_OP_ca
From: |
nickc at redhat dot com |
Subject: |
[Bug binutils/616] readelf doesn't add "cu_offset" for printing DW_OP_call4 operand |
Date: |
23 Dec 2004 12:50:36 -0000 |
------- Additional Comments From nickc at redhat dot com 2004-12-23 12:50
-------
Hi H.J.
Attached is a patch that should do this. What do you think ?
Cheers
Nick
binutils/ChangeLog
2004-12-23 Nick Clifton <address@hidden>
PR binutils/616
* readelf.c (debug_info): Add 'cu_offset' field.
(get+pointer_size_of_comp_unit): Rename to
'get_pointer_size_and_offset_of_comp_unit'. Add code to return
the offset of the comp_unit if requested.
(get_debug_info): Record comp_unit offsets as well.
(display_debug_lines): Call get_pointer_size_of_comp_unit.
(decode_location_expression): Add an extra parameter - the offset
of the current comp-unit. Use this when decoding the DW_OP_call2
and DW_OP_call4 operators.
(display_debug_loc): Call get_pointer_size_of_comp_unit, pass the
comp_unit offset on the decode_location_expression.
(read_and_display_attr_value): Pass the comp_unit offset on the
decode_location_expression.
(display_debug_frames): Pass 0 as the comp_unit offset to
decode_location_expression.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |WAITING
http://sources.redhat.com/bugzilla/show_bug.cgi?id=616
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.