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

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


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