From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Joel Brobecker <brobecker@adacore.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFC/ia64] memory error when reading wrong core file
Date: Mon, 01 Feb 2010 19:20:00 -0000 [thread overview]
Message-ID: <20100201191929.GA5856@host0.dyn.jankratochvil.net> (raw)
In-Reply-To: <20100201065327.GM26827@adacore.com>
On Mon, 01 Feb 2010 07:53:28 +0100, Joel Brobecker wrote:
> > Just if there exists catch_errors shouldn't it be used instead of TRY_CATCH?
>
> TRY_CATCH was introduced after catch_error, and I *think* that it was
> intended as a simpler way to call some code while being able to handle
> gdb exceptions.
OK, thanks for the info. The code looks better with TRY_CATCH and the longjmp
magic is there either way.
> That made me wonder, however, why we have 2 routines to do the exception
> printing. There's probably some cleanup we could do, there...
Yes... :-)
> gdb/ChangeLog:
>
> * solib-svr4.c (solib_svr4_r_map): catch and print all exception
> errors while reading the inferior memory, and return zero if
> an exception was raised.
>
> This patch should be strictly equivalent to yours, I believe. I've tested
> it against the testcase described in this thread as well as the rest of
> AdaCore's testsuite.
Retested on RHEL-5.4.ia64 as you asked before.
Thanks,
Jan
next prev parent reply other threads:[~2010-02-01 19:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-29 16:02 Joel Brobecker
2010-01-29 17:53 ` Jan Kratochvil
2010-02-01 1:25 ` Jan Kratochvil
2010-02-01 6:54 ` Joel Brobecker
2010-02-01 19:20 ` Jan Kratochvil [this message]
2010-03-08 7:46 ` Joel Brobecker
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=20100201191929.GA5856@host0.dyn.jankratochvil.net \
--to=jan.kratochvil@redhat.com \
--cc=brobecker@adacore.com \
--cc=gdb-patches@sourceware.org \
/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