This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] infcall: Remove gdb_assert ($sp overflow)
- From: Daniel Jacobowitz <dan at codesourcery dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 26 Feb 2010 17:52:52 -0500
- Subject: Re: [patch] infcall: Remove gdb_assert ($sp overflow)
- References: <20100219224805.GA9681@host0.dyn.jankratochvil.net>
On Fri, Feb 19, 2010 at 11:48:05PM +0100, Jan Kratochvil wrote:
> Unaware how inconvenient is an intentional crash of the testcase on some
> embedded/non-MMU systems.
Maybe limit it at least by nosignals? It might still blow up uClinux
testing, I don't know offhand if there are other crashy tests.
> +foreach spval {0 -1} {
> + set old_ldprefix $pf_prefix
> + lappend pf_prefix "sp=$spval:"
> +
> + gdb_test {set $old_sp = $sp}
> + gdb_test "set \$sp = $spval"
> +
> + gdb_test "call doubleit (1)"
> +
> + gdb_test {set $sp = $old_sp}
> + set pf_prefix $old_ldprefix
> +}
Because these tests run more than once, please give them unique names.
--
Daniel Jacobowitz
CodeSourcery