This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: mi version for source command
- From: Tom Tromey <tromey at redhat dot com>
- To: Niko Sams <niko dot sams at gmail dot com>
- Cc: gdb <gdb at sourceware dot org>
- Date: Wed, 06 Jul 2011 14:56:15 -0600
- Subject: Re: mi version for source command
- References: <BANLkTin5uF2P-oqng2UkwUzV2-Xg+CM3+g@mail.gmail.com> <m339it669h.fsf@fleche.redhat.com> <CACQr-1y6_cpyOokX5XuRVgamMEnxv_sUpL6q7WDROA1DEE=-3A@mail.gmail.com>
>> I don't think so, but you can use -interpreter-exec.
Niko> That doesn't help, as the sourced file can contain commands spanning
Niko> multiple lines.
Niko> Or is there a way?
I didn't try this, but I agree it would seem to be a problem.
I don't know of a way to make it work today.
Niko> Or, is there a reliable way to detect if source finished, especially
Niko> when run is executed in the sourced file and commands afterwards.
>> I am afraid I don't know.
Niko> So how should an IDE solve that issue?
Best is come up with an approach and write a patch for gdb.
Failing that, I guess file a bug.
Tom