Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Matt Rice" <ratmice@gmail.com>
To: "Pierre Muller (gmail)" <pierre.c.muller@gmail.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFC] Allow overloaded general functions
Date: Sat, 29 Mar 2008 03:25:00 -0000	[thread overview]
Message-ID: <8ba6bed40803282025l5d7f4137l98d9b0174b1673cf@mail.gmail.com> (raw)
In-Reply-To: <47ed1b31.0af6660a.3ddc.ffffb9c5@mx.google.com>

On Fri, Mar 28, 2008 at 9:22 AM, Pierre Muller (gmail)
<pierre.c.muller@gmail.com> wrote:

<snip>

>  The address of 'ADD' is searched again using decode_line_1 function
>  but there is later an assertion
>   gdb_assert (sals.nelts == 1) in breakpoint.c at line 7366
>
>   I could of course remove that assertion and check that  in the list
>  that I get, I do find the same source and line number I already had in
>  my breakpoint structure, but what is the whole point of this?
>  Why do we re_set breakpoints that are not pending?
>
>  Is this for the unloading case ?
>  If this is the case than the modification above is
>  probably necessary.
>  However, I am puzzled why other similar case don't have these
>  troubles (like the decode_objc case.)
>

the reason this doesn't appear to be an issue with decode_objc is because

(gdb) break foo
[0] cancel
[1] all
[2] +[Bar foo] at main.m:30
[3] +[Foo foo] at main.m:19

therefore this line above the assertion
7310:      s = b->addr_string;
will be unique and the assertion wont fail (i think),
though decode_objc currently also has its own problems that
i still need to revisit as per Daniels comments

http://sourceware.org/ml/gdb-patches/2008-03/msg00200.html

>   What should I do if I get a new additional 'ADD' function in the
>  loaded library?
>

i can imagine a
[2] pending

might handle this but i'm not sure that that won't just open up a can
of worms :)

the RFA Keep breakpoints always inserted thread sounds like it could
help with this re_set ing (sorry its spread out across months in the
archives), i've been meaning to try those patches out.


  reply	other threads:[~2008-03-29  3:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-28 16:23 Pierre Muller (gmail)
2008-03-29  3:25 ` Matt Rice [this message]
2008-09-18  0:34 ` Joel Brobecker
2008-09-25  9:52   ` Pierre Muller
2008-09-26 19:07     ` 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=8ba6bed40803282025l5d7f4137l98d9b0174b1673cf@mail.gmail.com \
    --to=ratmice@gmail.com \
    --cc=gdb-patches@sourceware.org \
    --cc=pierre.c.muller@gmail.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