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] Cleanup in find_method


Hi,

While bashing my brains against decode_compound today, I noticed that name canonicalization in find_method is done inside a loop, and it doesn't need to be.

I've also taken a small liberty, adding a cleanup for it, just in case something freaky happens inside find_function_start_sal. I don't think that this function can fail in this specific case, but call me paranoid. It doesn't hurt.

Comments?
Keith

ChangeLog
2010-12-01  Keith Seitz  <keiths@valrhona.uglyboxes.com>

	* linespec.c (find_method): Move name canonicalization outside
	the loop.
	Be paranoid and use a cleanup.

Attachment: find_method-canon-cleanup.patch
Description: Text document


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