public inbox for archer@sourceware.org
 help / color / mirror / Atom feed
* feature idea: upto
@ 2009-07-02 22:34 Roland McGrath
  2009-07-07 16:18 ` [python] implement "upto" (Was: feature idea: upto) Tom Tromey
  2009-07-23  7:00 ` feature idea: upto Jim Blandy
  0 siblings, 2 replies; 9+ messages in thread
From: Roland McGrath @ 2009-07-02 22:34 UTC (permalink / raw)
  To: Project Archer

A common pattern for me is to hit a breakpoint or signal/crash,
and then "up" and hit return until I'm where I want to be.
When it's many frames I do "bt" and then "f N" after eyeballing
the particular frame.  

With today's programs, the "bt" output can have really long lines (e.g. 
huge C++ names, calls with many/long-valued arguments) so the quick
eyeball scan is not so quick any more.

Some common eyeball-based algorithms seem automatable:

upto "a frame with source"
upto source foobar.c
upto source */myapp/*
upto shlib foo.so*
upto exec			# not shlib
upto func
upto funcpfx_*
upto cl::func(over,load)
upto cl::			# any method/func with this ns/class prefix
upto foo.c:27 where arg==17	# skip frames where !expr
upto where arg==23		# also skip frames where expr not resolvable
upto where $r13 == 27		# cond can apply to any context

Perhaps some other dwimmy options too, like "upto mine" which is sort of
"upto source skipping /usr/include/* /usr/src/debug/*" or some stranger
heuristic.  (Maybe something like upto a frame whose source line's file
name shares a longish prefix with the executable, or with cwd, or something.)


Thanks,
Roland

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-07-23 19:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-02 22:34 feature idea: upto Roland McGrath
2009-07-07 16:18 ` [python] implement "upto" (Was: feature idea: upto) Tom Tromey
2009-07-09  4:25   ` Roland McGrath
2009-07-17 22:06     ` [python] implement "upto" Tom Tromey
2009-07-20  6:17       ` Roland McGrath
2009-07-23  7:00 ` feature idea: upto Jim Blandy
2009-07-23 18:15   ` Roland McGrath
2009-07-23 18:52     ` Tom Tromey
2009-07-23 19:08       ` Roland McGrath

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).