This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] testcase for code/data elimination
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Jerome Guitton <guitton at adacore dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 21 Jul 2010 21:28:48 +0200
- Subject: Re: [RFA] testcase for code/data elimination
- References: <1279719831-14906-1-git-send-email-guitton@adacore.com>
On Wed, 21 Jul 2010 15:43:51 +0200, Jerome Guitton wrote:
> +proc test_eliminated_var { var } {
> + global gdb_prompt hex
> +
> + # Match output 'No symbol "${var}" in current context'
> +
> + gdb_test_multiple "print &${var}" "test eliminated var ${var}" {
^^^^
Missing \\.\[\r\n\]+${gdb_prompt} $
> + -re "No symbol \"${var}\" in current context" {
> + pass "test eliminated var ${var}"
> + }
> + -re "\\\$\[0-9\]+ = \\(.*\\) (0|$hex)( <${var}>)?\[\r\n\]+${gdb_prompt} $" {
> + fail "test eliminated var ${var}"
> + }
> + }
> + return ""
Unused return.
> +}
Thanks,
Jan