public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Getting all breakable lines from gdb
@ 2003-03-21 13:26 Bob Rossi
  2003-03-21 16:56 ` Joel Brobecker
  0 siblings, 1 reply; 3+ messages in thread
From: Bob Rossi @ 2003-03-21 13:26 UTC (permalink / raw)
  To: gdb

I just had this thought.

Would it be possible to add a command to the MI interface that would
return a list of all possible line numbers in a file that the user could
set a breakpoint at?

Its really disgusting how other front ends get that information now.
When a new 800 line file is open, they run these commands

list 1,1000000
info line 1
info line 2
...
info line 800

They parse the output of each command to determine if a breakpoint can
be set.

I suggest a command that returns a list of line numbers for a given
file. Thus improving communication between the front end and gdb.
Believe me, the overhead on a 15,000 line file is noticable.

Any suggestions?

Thanks,
Bobby

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

end of thread, other threads:[~2003-03-22 22:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-21 13:26 Getting all breakable lines from gdb Bob Rossi
2003-03-21 16:56 ` Joel Brobecker
2003-03-22 22:32   ` Bob Rossi

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).