From: Daniel Jacobowitz <drow@false.org>
To: Aleksandar Ristovski <aristovski@qnx.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [patch] PR gdb/1665 pending catch/throw catchpoints
Date: Thu, 01 May 2008 20:13:00 -0000 [thread overview]
Message-ID: <20080501201239.GO22218@caradoc.them.org> (raw)
In-Reply-To: <4817E37A.8020705@qnx.com>
On Tue, Apr 29, 2008 at 11:11:54PM -0400, Aleksandar Ristovski wrote:
> -# As I said before, this test script is not ready yet!
> -
> -continue
There's comments higher up about this continue, they need to be
updated too.
> # Set a catch catchpoint
>
> -gdb_test "catch catch" "Catchpoint \[0-9\]+ \\(catch\\)"
> +gdb_test "catch catch" "Catchpoint \[0-9\]+ \\(catch\\)" \
> + "catch catch (static executable)"
>
> # Set a throw catchpoint
>
> gdb_test "catch throw" "Catchpoint \[0-9\]+ \\(throw\\)" \
> "catch throw (static executable)"
The descriptions on these are wrong, they aren't for a static
executable.
> # The catchpoints should be listed in the list of breakpoints.
> +set addr "<PENDING>"
> +set re_head "Num${ws}Type${ws}Disp${ws}Enb${ws}Address${ws}What"
> +set re_2_bp "1${ws}breakpoint${ws}keep${ws}y${ws}$addr${ws}exception catch"
> +set re_3_bp "2${ws}breakpoint${ws}keep${ws}y${ws}$addr${ws}exception throw"
This won't work if the C++ library is linked in, e.g. -static or a
bare metal toolchain; it won't be pending.
> +gdb_test "tbreak main" "Temporary breakpoint 3.*" \
> + "Set temporary breakpoint at main"
> +
> +gdb_test "run" "Temporary breakpoint 3,.*" "Run to main"
There's runto_main, use that instead; it handles remote targets and so
forth.
If you'll try to update this, I can test it on arm-none-eabi or
another bare metal platform. Running it with
"RUNTESTFLAGS=--target_board unix/-static" should be enough to test
the <PENDING> problem.
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2008-05-01 20:13 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-29 22:30 Aleksandar Ristovski
2008-04-30 7:09 ` Aleksandar Ristovski
2008-05-01 20:13 ` Daniel Jacobowitz [this message]
2008-05-02 17:55 ` Aleksandar Ristovski
2008-05-02 18:07 ` Aleksandar Ristovski
2008-06-05 16:06 ` Daniel Jacobowitz
2008-06-05 16:40 ` Aleksandar Ristovski
2008-06-05 17:36 ` Daniel Jacobowitz
2008-06-05 18:40 ` Aleksandar Ristovski
2008-05-01 20:07 ` Daniel Jacobowitz
2008-05-01 20:38 ` Aleksandar Ristovski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080501201239.GO22218@caradoc.them.org \
--to=drow@false.org \
--cc=aristovski@qnx.com \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox