This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Getting all breakable lines from gdb
- From: Bob Rossi <bob_rossi at cox dot net>
- To: gdb at sources dot redhat dot com
- Date: Fri, 21 Mar 2003 08:26:26 -0500
- Subject: Getting all breakable lines from 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