[PATCH]: Fix tuiGetLowDisassemblyAddress

Stephane Carrez stcarrez@nerim.fr
Wed Aug 28 13:50:00 GMT 2002


Hi!

The tuiGetLowDisassemblyAddress function computes the starting address
of the disassembly window to center the window arround the current pc.
It was assuming (like the scrolling stuff) that each instruction is 4-bytes wide.

This patch fixes that by using the same mechanism as the backward scroll.

Committed on mainline.

	Stephane

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

	* tui.c (tuiGetLowDisassemblyAddress): Moved from here.
	* tuiDisassem.c (tuiGetLowDisassemblyAddress): To here, and use
	tui_find_disassembly_address to find the starting address of
	disassemble window.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: tui-disassem.diffs
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20020828/3cba7880/attachment.ksh>


More information about the Gdb-patches mailing list