From: Joel Brobecker <brobecker@adacore.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [patch] ia64: Fix breakpoints memory shadow
Date: Sat, 22 Nov 2008 18:35:00 -0000 [thread overview]
Message-ID: <20081122063759.GE4318@adacore.com> (raw)
In-Reply-To: <20081120144936.GA25926@host0.dyn.jankratochvil.net>
> gdb/doc/
> 2008-11-20 Jan Kratochvil <jan.kratochvil@redhat.com>
>
> * gdbint.texinfo (Target Conditionals): Extend the
> gdbarch_breakpoint_from_pc description.
This part needs to be reviewed by Eli.
> One can reproduce it more easily by simple `b *0':
> echo 'int main (void) { return 0; }' >mainx.c; gcc -o mainx mainx.c -Wall -ggdb2; ./gdb -nx -ex start -ex 'b *0' ./mainx
Ah, yes - if you place a breakpoint at an invalid address (whether it
was invalid right from the start as in your case, or if it became
invalid later on)...
> > I would have just said that we need to be able to read the original memory
> > location to produce the breakpoint sequence.
>
> It currently depends on `set breakpoint always-inserted'. In the
> default mode it broke the testsuite. Found `return NULL' as a minimal
> regression-free solution.
Right. I wasn't questioning the code, I just wasn't sure about
the comment.
> + /* It may be currently unreachable breakpoint which is never permanent, it
> + may happen for `b *0' and `set breakpoint always-inserted off'. */
Maybe just an English suggestion, and a suggestion to make your comment
more general:
/* The memory might be unreachable. This can happen, for instance,
when the user inserts a breakpoint at an invalid address. */
You'll notice that I removed the reference to permanent breakpoints,
because I still don't understand why it's relevant. I suggest you
checkin your patch with the comment as I suggested (once the doco
part is approved by Eli), and then we can discuss together just
that one comment (reviewing the whole patch at each iteration is
a little time-consuming).
Thanks,
--
Joel
next prev parent reply other threads:[~2008-11-22 6:38 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-28 17:52 Jan Kratochvil
2008-10-30 1:51 ` Joel Brobecker
2008-10-31 0:03 ` Jan Kratochvil
2008-11-01 18:54 ` Joel Brobecker
2008-11-11 20:20 ` Jan Kratochvil
2008-11-13 14:27 ` Joel Brobecker
2008-11-21 1:11 ` Jan Kratochvil
2008-11-22 18:35 ` Joel Brobecker [this message]
2008-11-22 19:08 ` Eli Zaretskii
2008-11-24 2:25 ` Joel Brobecker
2008-11-24 7:09 ` Jan Kratochvil
2008-11-25 17:49 ` Joel Brobecker
2008-11-27 0:41 ` Jan Kratochvil
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=20081122063759.GE4318@adacore.com \
--to=brobecker@adacore.com \
--cc=gdb-patches@sourceware.org \
--cc=jan.kratochvil@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