This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: (Not) debugging STL
> > Then, my next idea is to use the gdb interface of emacs. It should be
> > trivial to do a lisp function doing this, but I couldn't figure out how
> > to do that.
>
> I'm not sure that I understand exactly what you're trying to do, but if
> Daniel says it can't be done in GDB, then I dont think it can be done in
> Emacs, as Emacs can only use the output that GDB gives it.
At first, I would simply write an emacs function that iterates the gdb
'step' command until we get out of any files whose full name starts
say /usr.
>
> > For example how to obtain the file name of the currently
> > debugged line in emacs/gud/gdb?
> ...
> from the command line, then step a few times. You'll see the current line,
> that Emacs uses, get printed out.
I understand, that emacs parses this line, so I would like to know how
to have emacs to tell me the file name.
Regards,
Alpar