From: Tom Tromey <tromey@redhat.com>
To: ppluzhnikov@google.com (Paul Pluzhnikov)
Cc: gdb-patches@sourceware.org
Subject: Re: [patch] Fix a crash when displaying variables from shared library.
Date: Fri, 06 Feb 2009 21:38:00 -0000 [thread overview]
Message-ID: <m3wsc3459t.fsf@fleche.redhat.com> (raw)
In-Reply-To: <20090205030257.8A6073A6B7A@localhost> (Paul Pluzhnikov's message of "Wed\, 4 Feb 2009 19\:02\:57 -0800 \(PST\)")
>>>>> "Paul" == Paul Pluzhnikov <ppluzhnikov@google.com> writes:
Paul> @@ -1526,6 +1527,9 @@ do_one_display (struct display *d)
[...]
Paul> + if (d->exp == NULL)
Paul> + d->exp = parse_expression (d->exp_string);
Suppose this fails. I think what would happen is that none of the
following displays would print anything. However, it seems like what
should happen is that gdb deletes this display and moves on to try the
next. What do you think?
Also, are blocks valid after an solib is deleted? (I don't know.) If
not then that means that the 'block' field must also be invalidated.
Paul> +
Paul> +static void
Paul> +clear_dangling_display_expressions (struct so_list *solist)
I think any new function needs an explanatory comment.
Paul> --- solib.c 15 Jan 2009 16:35:22 -0000 1.109
Paul> +++ solib.c 5 Feb 2009 02:43:31 -0000
Paul> @@ -908,6 +908,7 @@ clear_solib (void)
Paul> {
Paul> struct so_list *so = so_list_head;
Paul> so_list_head = so->next;
Paul> + observer_notify_solib_unloaded (so);
Paul> if (so->abfd)
This hunk is already under discussion:
http://sourceware.org/ml/gdb-patches/2009-01/msg00542.html
In particular, I think Daniel's question should be answered before
this goes in:
http://sourceware.org/ml/gdb-patches/2009-02/msg00002.html
Paul> Index: testsuite/gdb.base/solib-display.exp
[...]
Paul> +gdb_test "display a_global"
Paul> +gdb_test "continue"
Paul> +gdb_test "run" "1: a_global = 0"
For regression tests, I like to add a comment explaining what is being
tested. Could you do this? It doesn't have to be long. My reason
for doing this is that later on it isn't always obvious what a test is
trying to test.
Otherwise this patch looks good to me.
Tom
next prev parent reply other threads:[~2009-02-06 21:38 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-05 3:03 Paul Pluzhnikov
2009-02-06 21:38 ` Tom Tromey [this message]
2009-02-07 2:37 ` Paul Pluzhnikov
2009-02-11 1:46 ` Tom Tromey
2009-02-19 1:00 ` Paul Pluzhnikov
2009-02-19 7:52 ` Paul Pluzhnikov
2009-02-23 1:47 ` Joel Brobecker
2009-02-23 18:36 ` Paul Pluzhnikov
2009-03-03 2:31 ` Paul Pluzhnikov
2009-03-04 0:51 ` Tom Tromey
2009-03-04 19:26 ` Paul Pluzhnikov
2009-03-05 20:04 ` Joel Brobecker
2009-03-05 23:46 ` Paul Pluzhnikov
2009-03-06 3:06 ` Paul Pluzhnikov
2009-03-06 3:18 ` Paul Pluzhnikov
2009-03-06 17:48 ` Joel Brobecker
2009-03-06 18:31 ` Paul Pluzhnikov
2009-03-06 18:47 ` Joel Brobecker
2009-03-06 18:52 ` Paul Pluzhnikov
2009-03-06 22:06 ` Paul Pluzhnikov
2009-03-09 18:33 ` Joel Brobecker
2009-03-10 2:05 ` Paul Pluzhnikov
2009-03-10 14:31 ` Daniel Jacobowitz
2009-03-12 2:45 ` Paul Pluzhnikov
2009-03-20 20:32 ` Joel Brobecker
2009-03-20 20:53 ` Paul Pluzhnikov
2009-03-23 17:31 ` Joel Brobecker
2009-03-18 2:50 ` Pedro Alves
2009-03-18 3:24 ` [patch] Fix a crash when displaying variables from shared ?library Joel Brobecker
2009-03-18 4:06 ` Paul Pluzhnikov
2009-03-18 4:19 ` Pedro Alves
2009-03-18 6:54 ` Paul Pluzhnikov
2009-03-18 17:32 ` Pedro Alves
2009-02-06 21:53 ` [patch] Fix a crash when displaying variables from shared library Pedro Alves
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=m3wsc3459t.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=ppluzhnikov@google.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