This is the mail archive of the insight@sources.redhat.com mailing list for the Insight 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]

Re: updating source window on breakpoint


On Wed, 2003-01-29 at 08:46, Don Howard wrote:
> Could someone point me a the relevant functions for updating the source 
> window when a breakpoint is hit?
> 
> I need to convince insight to switch to disassembly mode when there is no 
> symbol info for the break address.

Insight should automatically do this. Have you tried opening a debug
window? ("tk ManagedWin::open DebugWin" at console)

You're looking for an "UpdateEvent", which is handled by
GDBEventHandler::update. For the source window, this is in
SrcWin::update, which calls some other stuff (SrcWin::location and, most
important, SrcTextWin::location). It is in srctextwin.itb where the
nitty gritty really happens. (This file is, sadly, our equivalent of
infrun.c and wfi.)

How is it that this is failing? No debug messages?
Keith



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