This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
Re: updating source window on breakpoint
- From: Keith Seitz <keiths at redhat dot com>
- To: Don Howard <dhoward at redhat dot com>
- Cc: "insight at sources dot redhat dot com" <insight at sources dot redhat dot com>
- Date: 29 Jan 2003 09:15:28 -0800
- Subject: Re: updating source window on breakpoint
- Organization:
- References: <Pine.LNX.4.33.0301290842140.12805-100000@theotherone.remotee.org>
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