Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: Tom Tromey <tromey@redhat.com>, gdb-patches@sourceware.org
Subject: Re: [patch] Fix internal error on breaking at a multi-locations 	caller
Date: Fri, 01 May 2009 15:48:00 -0000	[thread overview]
Message-ID: <20090501154759.GF10734@adacore.com> (raw)
In-Reply-To: <20090501091942.GA8465@host0.dyn.jankratochvil.net>

Hello Jan,

I think Tom must be pretty busy right now :), so here is my take on this.

> info '(gdb)Set Breaks'
> `break'
>      When called without any arguments, `break' sets a breakpoint at
>      the next instruction to be executed in the selected stack frame
> [...]
> 
> Do you refer here to the "selected stack frame" part of the doc?

More importantly: "next instruction"; but yes, the selected stack
frame is also important.

Based on that, "break" in my opinion should be equivalent to "break *PC"
where PC is the current frame's PC.  So, I think that the correct way
to fix this is to set the "explicit_pc" flag in the sal. That should
make sure that expand_line_sal_maybe does not, in fact, do any expansion.

I also understand the reason why you think a warning might help,
especially since I had a different intuitive perception of what
the argument-less command was doing.  But I think that such a warning
would quickly become more annoying than anything if the user knows
precisely the meaning of his command. What do others think?

Nonetheless, I think we can treat the two issues separately. We can
fix the problem first with a one-liner, and then we can discuss the
idea of a warning if you think it might be useful. Does this sound
reasonable to you?

-- 
Joel


  reply	other threads:[~2009-05-01 15:48 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-09 22:17 Jan Kratochvil
2009-04-24  1:01 ` Tom Tromey
2009-04-28 20:32   ` Joel Brobecker
2009-05-01  9:20     ` Jan Kratochvil
2009-05-01 15:48       ` Joel Brobecker [this message]
2009-05-01 17:32         ` Jan Kratochvil
2009-05-06 16:51           ` Joel Brobecker
2009-05-10 18:33             ` Jan Kratochvil
2009-05-11  9:11               ` Joel Brobecker
2009-05-11 15:07                 ` 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=20090501154759.GF10734@adacore.com \
    --to=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=jan.kratochvil@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