[RFC/RFA] Deal with intermixed 32-bit and 64-bit DWARF sections

Daniel Jacobowitz drow@false.org
Sun Nov 14 19:04:00 GMT 2004


On Wed, Nov 10, 2004 at 10:28:46PM +0100, Mark Kettenis wrote:
> Currently GDB crashes hard when we encounter both 32-bit anbd 64-bit
> DWARF sections within the same compilation unit.  Keeping the mantra
> "Be liberal what you accept, but complain loudly", this patch fixes
> that.
> 
> Mark
> 
> 
> Index: ChangeLog
> from  Mark Kettenis  <kettenis@gnu.org>
> 
> 	* dwarf2read.c (dwarf2_build_psymtabs_easy): Initailize initial
> 	length size of compilation header to zero.
> 	(dwarf2_build_psymtabs_hard): Adjust info_ptr before building
> 	psymtabs for included files.
> 	(create_all_comp_units): Initailize initial length size of
> 	compilation header to zero.
> 	(read_initial_length): Complain if both 32-bit and 64-bit DWARF
> 	sections are encountered within the same compilation header.
> 	(dwarf_decode_line_header): Pass compilation header in call to
> 	read_initial_length.

FWIW, this looks reasonable to me.

-- 
Daniel Jacobowitz



More information about the Gdb-patches mailing list