[PATCH]: More tuiStack.c cleanup and use find_pc_line to update location info

Stephane Carrez stcarrez@nerim.fr
Sun Aug 25 11:44:00 GMT 2002


Hi!

This patch cleans up the way the TUI obtains and updates the location information:
  - The code was using find_pc_symtab() to obtain the source file and then
    find_pc_line() to obtain the line.  The patch avoids that by always using find_pc_line
  - When the symtab was not found, the location was not updated, thus reporting some
    previous/wrong information.  The patch handles this case.
  - Merged the tuiXXX functions in others.

Committed on mainline.

	Stephane

2002-08-25  Stephane Carrez  <stcarrez@nerim.fr>

	* tuiStack.c (tuiSetLocatorContent): Remove.
	(tuiUpdateLocatorInfoFromFrame): Remove.
	(tui_set_locator_info): Allocate the content buffer if necessary.
	(tui_set_locator_filename): Call tui_set_locator_info directly.
	(tuiShowFrameInfo): Likewise and use find_pc_line instead of
	find_pc_symtab.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: tui-fixes.diffs
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20020825/5da5d7d3/attachment.ksh>


More information about the Gdb-patches mailing list