This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch][python] 4 of 5 - Frame filter testsuite changes
- From: Tom Tromey <tromey at redhat dot com>
- To: Phil Muldoon <pmuldoon at redhat dot com>
- Cc: "gdb-patches\ at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Thu, 25 Apr 2013 13:50:48 -0600
- Subject: Re: [patch][python] 4 of 5 - Frame filter testsuite changes
- References: <51753BCA dot 2000201 at redhat dot com>
Phil> +mi_gdb_test "-stack-list-locals --all-values" \
Phil> + "\\^done,locals=\\\[{name=\"h\",value=\"9\"},{name=\"f\",value=\"42\"},{name=\"g\",value=\"19\"},{name=\"bar\",value=\"$hex \\\\\"Inside block x2\\\\\"\"},{name=\"d\",value=\"15\"},{name=\"e\",value=\"14\"},{name=\"foo\",value=\"$hex \\\\\"Inside block\\\\\"\"},{name=\"str\",value=\"$hex \\\\\"The End\\\\\"\"},{name=\"st2\",value=\"$hex \\\\\"Is Near\\\\\"\"},{name=\"b\",value=\"12\"},{name=\"c\",value=\"5\"}\\\]" \
Phil> + "stack-list-locals --all-values"
...
Phil> +mi_gdb_test "-stack-list-locals --all-values" \
Phil> + "\\^done,locals=\\\[{name=\"h\",value=\"9\"},{name=\"f\",value=\"42\"},{name=\"g\",value=\"19\"},{name=\"bar\",value=\"$hex \\\\\"Inside block x2\\\\\"\"},{name=\"d\",value=\"15\"},{name=\"e\",value=\"14\"},{name=\"foo\",value=\"$hex \\\\\"Inside block\\\\\"\"},{name=\"str\",value=\"$hex \\\\\"The End\\\\\"\"},{name=\"st2\",value=\"$hex \\\\\"Is Near\\\\\"\"},{name=\"b\",value=\"12\"},{name=\"c\",value=\"5\"}\\\]" \
Phil> + "stack-list-locals --all-values"
Each test should have a unique name.
Phil> +mi_gdb_test "-enable-frame-filters" ""
I think ones like this supply a default name; so they need care as well.
I didn't go through this file in detail to see if there are other
duplicates.
I think the simplest way is to run the tests and run the .sum file
through "sort | uniq -d".
Phil> +global hex
This shouldn't be needed.
Phil> +gdb_test_no_output "set python print-stack full"
This will yield a duplicate name.
There are other instances in this file.
Tom