This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH, doc RFA] Add "skip regexp"
- From: Simon Marchi <simon dot marchi at ericsson dot com>
- To: Doug Evans <dje at google dot com>, Pedro Alves <palves at redhat dot com>, <eliz at gnu dot org>
- Cc: <gdb-patches at sourceware dot org>
- Date: Mon, 29 Feb 2016 13:55:24 -0500
- Subject: Re: [PATCH, doc RFA] Add "skip regexp"
- Authentication-results: sourceware.org; auth=none
- References: <001a113452243e6481052bece0b3 at google dot com>
On 16-02-16 08:07 PM, Doug Evans wrote:
> +# Test -fi + -fu.
> +
> +if ![runto_main] {
> + fail "Can't run to main"
> + return
> +}
> +
> +set test "step using -fi + -fu"
> +gdb_test_no_output "skip delete"
> +gdb_test "skip -fi skip1.c -fu test_skip" \
> + "Function test_skip in file skip1.c will be skipped when stepping\."
> +gdb_breakpoint "test_skip_file_and_function"
> +gdb_breakpoint "end_test_skip_file_and_function"
> +gdb_test "call test_skip_file_and_function ()" "silently stop."
Hi Doug,
I just saw a failure of this test on a target that doesn't have inferior calls. It
seems to me like the function call isn't fundamental to the test and it could be
avoided by organizing things differently. What do you think?
Otherwise, we would need to add a
if [target_info exists gdb,cannot_call_functions] {
Simon