Generate DW_AT_ranges for non-contiguous code

Sterling Augustine sterling@tensilica.com
Fri Jul 28 21:12:00 GMT 2006


This enclosed patch adds support for DW_AT_ranges when assembly code is
noncontiguous. See: http://sourceware.org/ml/gdb/2006-05/msg00015.html
for a discussion of the problem this is addressing.

I believe Tensilica's copyright assignment is already on file.

One issue here is that this particular usage of DW_AT_ranges is dwarf 3,
and gas emits 2 for the dwarf version number. Don't know the right thing 
to do there. Bumping the version number for this seems extreme.

Let me know any issues...

Sterling Augustine
Member of Technical Staff
Tensilica, Inc.

gas/

2006-07-28  Sterling Augustine  <sterling@tensilica.com>

	* dwarf2dbg.c (out_debug_info): Add new parameter aranges_seg
	and emit DW_AT_ranges when code in compilation unit is not
	contiguous.
	(out_debug_abbrev): Emit DW_AT_ranges abbreviation if code in
	is not contiguous.
	(dwarf2_finish): Pass aranges_seg to out_debug_info.



-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: discont.patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20060728/06574076/attachment.ksh>


More information about the Binutils mailing list