This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] c++/11734 revisited
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: Keith Seitz <keiths at redhat dot com>, gdb-patches at sourceware dot org
- Date: Thu, 9 Dec 2010 22:52:30 +0100
- Subject: Re: [RFA] c++/11734 revisited
- References: <4D002672.5090504@redhat.com> <m3oc8u1uzs.fsf@fleche.redhat.com>
On Thu, 09 Dec 2010 22:44:55 +0100, Tom Tromey wrote:
> Keith> +if {[gdb_compile $srcfiles $binfile executable {debug c++}] != "" } {
> Keith> + untested pr11734.exp
> Keith> + return -1
> Keith> +}
>
> Keith> +if {[get_compiler_info $binfile "c++"]} {
> Keith> + return -1
> Keith> +}
> Keith> +
> Keith> +gdb_exit
> Keith> +gdb_start
> Keith> +gdb_reinitialize_dir $srcdir/$subdir
> Keith> +gdb_load $binfile
>
> I don't know if you can use prepare_for_testing here, but
> if not you can at least use clean_restart.
If the reason was get_compiler_info it does not use $binfile anyway.
(And a lot of gdb testsuite code expects so.)
Thanks,
Jan