From: Joel Brobecker <brobecker@adacore.com>
To: Tom Tromey <tromey@redhat.com>
Cc: Pedro Alves <palves@redhat.com>, gdb-patches@sourceware.org
Subject: Re: [RFA/Ada(v2) 1/3] Add command to list Ada exceptions
Date: Fri, 08 Nov 2013 16:13:00 -0000 [thread overview]
Message-ID: <20131108154615.GB4585@adacore.com> (raw)
In-Reply-To: <87li0zq7jq.fsf@fleche.redhat.com>
> Joel> + if (regexp != NULL)
> Joel> + {
> Joel> + preg = alloca (sizeof (regex_t));
>
> I think regex_t is sufficiently small that you might as well declare an
> object in the outer scope and avoid alloca.
Sure, I can do that. I found this to be a fairly interesting
approach, because it avoids the need to check regexp repeatedly
in order to decide whether to pass &preg, or NULL.
> Joel> + discard_cleanups (old_chain);
>
> This leaks anything done by compile_rx_or_error. I think you need to
> pass an inner cleanup to do_cleanups.
Oops. I will fix!
Thank you :)
--
Joel
next prev parent reply other threads:[~2013-11-08 15:47 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-08 12:04 RFA/Ada (v2) new CLI + GDB/MI commands " Joel Brobecker
2013-11-08 12:04 ` [RFA/Ada(v2) 3/3] Document "info exceptions" and "-info-ada-exception" new commands Joel Brobecker
2013-11-08 14:21 ` Eli Zaretskii
2013-11-10 9:49 ` Joel Brobecker
2013-11-12 4:07 ` Joel Brobecker
2013-11-08 12:05 ` [RFA/Ada(v2) 1/3] Add command to list Ada exceptions Joel Brobecker
2013-11-08 13:40 ` Pedro Alves
2013-11-08 14:10 ` Joel Brobecker
2013-11-08 15:47 ` Tom Tromey
2013-11-08 16:13 ` Joel Brobecker [this message]
2013-11-08 16:32 ` Tom Tromey
2013-11-10 6:29 ` Joel Brobecker
2013-11-11 14:48 ` Tom Tromey
2013-11-13 17:04 ` Tom Tromey
2013-11-13 18:29 ` Joel Brobecker
2013-11-15 7:28 ` Joel Brobecker
2013-11-15 15:53 ` Tom Tromey
2013-11-15 17:06 ` Joel Brobecker
2013-11-15 17:48 ` Tom Tromey
2013-11-15 18:01 ` Joel Brobecker
2013-11-15 18:23 ` Tom Tromey
2013-11-16 3:51 ` pushed: " Joel Brobecker
2013-11-08 12:27 ` [RFA/Ada(v2) 2/3] Implement GDB/MI equivalent of "info exceptions" CLI command Joel Brobecker
2013-11-12 3:38 ` RFA/Ada (v2) new CLI + GDB/MI commands to list Ada exceptions 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=20131108154615.GB4585@adacore.com \
--to=brobecker@adacore.com \
--cc=gdb-patches@sourceware.org \
--cc=palves@redhat.com \
--cc=tromey@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