This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFA] Fix Ada memory corruption


Hi,

Tom's recent symbol_set_names patch exposed this Ada bug, which results in memory corruption while computing an alternate symbol name.

This fixes the crash I was seeing in gdb.ada/interface.exp tests.

Ok?

Keith

ChangeLog
2009-11-19  Keith Seitz  <keiths@redhat.com>

	* ada-lang.c (find_old_style_renaming_symbol): Change
	function_name to const and use strncpy to stript the
	suffix.

Attachment: ada-mem-err.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]