This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] validate binary before use
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Aleksandar Ristovski <aristovski at qnx dot com>
- Cc: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>, Pedro Alves <palves at redhat dot com>
- Date: Sun, 31 Mar 2013 17:31:35 +0200
- Subject: Re: [patch] validate binary before use
- References: <50DCB787 dot 6020601 at qnx dot com> <20121227211328 dot GA5739 at host2 dot jankratochvil dot net> <50DCBBD1 dot 7000707 at qnx dot com> <5107F591 dot 304 at qnx dot com> <20130131063518 dot GA3027 at host2 dot jankratochvil dot net> <510A7EB0 dot 90702 at qnx dot com> <51278A2A dot 9000802 at qnx dot com> <512E42D1 dot 3040101 at qnx dot com> <514C58B2 dot 6090701 at qnx dot com> <20130328183727 dot GA14798 at host2 dot jankratochvil dot net>
On Thu, 28 Mar 2013 19:37:27 +0100, Jan Kratochvil wrote:
> > +if { ![istarget "*-*-nto-*"] } {
> > + set exec_opts [list debug shlib_load]
> > +}
> > +
> > +if { [prepare_for_testing $testfile.exp $executable $srcfile $exec_opts] != 0 } {
Use build_executable here as prepare_for_testing just additionally calls
clean_restart but you do prepare_for_testing on your own later.
> > + untested ${testfile}.exp
Jan