Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Vladimir Prus <vladimir@codesourcery.com>
To: Daniel Jacobowitz <drow@false.org>
Cc: Marc Khouzam <marc.khouzam@ericsson.com>,
	 gdb-patches@sources.redhat.com,
	 Nick Roberts <nickrob@snap.net.nz>
Subject: Re: MI solib notification
Date: Thu, 12 Feb 2009 15:02:00 -0000	[thread overview]
Message-ID: <200902121801.55254.vladimir@codesourcery.com> (raw)
In-Reply-To: <20090212132247.GA3107@caradoc.them.org>

On Thursday 12 February 2009 16:22:47 Daniel Jacobowitz wrote:
> On Thu, Feb 12, 2009 at 12:12:52PM +0300, Vladimir Prus wrote:
> > Eclipse does use this, in particular consider this bit of code:
> > 
> > 	public boolean hasSharedLibChanged(SharedLibrary lib, MIShared miLib) {
> > 		return !miLib.getName().equals(lib.getFileName()) ||
> > 			!MIFormat.getBigInteger(miLib.getFrom()).equals(lib.getStartAddress())   ||
> > 		    !MIFormat.getBigInteger(miLib.getTo()).equals(lib.getEndAddress()) ||
> > 			miLib.isRead() != lib.areSymbolsLoaded();
> > 	}
> > 
> > Now, we know this is never going to happen in practice, when using GDB, and this is
> > GDB-specific code, so maybe we can drop addresses from the GDB output and then DSF
> > folks will make sure they don't use start/end addresses? 
> 
> I see.  This is code that parses the CLI output, right?  Let's do as
> you suggest: not generate the addresses in MI notifications, and make
> GDB responsible for detecting this change in the future.

OK.

> > Well, not necessary, due to this code in clear_solib:
> > 
> > 
> > 903       if (exec_bfd != NULL
> > 904           && bfd_get_flavour (exec_bfd) != bfd_target_aout_flavour)
> > 905         disable_breakpoints_in_shlibs ();
> > 
> > So, I think we'll only get additional chatter on a.out targets -- do we care?
> 
> == vs != ?  I think this runs everywhere except a.out.

Yes, this runs everywhere except a.out and marks all breakpoints in solibs
disabled, without printing any messages. *Then* we look over all solibs
and call observer, but since all breakpoints are already disabled,
breakpoint.c:disable_breakpoints_in_unloaded_shlib won't do anything,
and won't say anything either.

- Volodya



  reply	other threads:[~2009-02-12 15:02 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-30 23:44 Vladimir Prus
     [not found] ` <utz7gzcmo.fsf@gnu.org>
2009-02-01 17:53   ` Daniel Jacobowitz
2009-02-01 18:22     ` Eli Zaretskii
2009-02-01 18:29       ` Daniel Jacobowitz
2009-02-17 19:09         ` Vladimir Prus
2009-02-17 19:45           ` Eli Zaretskii
2009-02-17 19:49             ` Vladimir Prus
2009-02-17 20:30               ` Eli Zaretskii
2009-02-17 21:45                 ` Vladimir Prus
2009-02-17 21:59                   ` Vladimir Prus
2009-02-18  7:31                     ` Eli Zaretskii
2009-02-18 10:19                       ` Vladimir Prus
2009-02-18 19:53                         ` Eli Zaretskii
2009-02-18 20:04                           ` Vladimir Prus
2009-02-18 22:28                             ` Eli Zaretskii
2009-02-18  4:24                   ` Eli Zaretskii
2009-02-17 21:37               ` Daniel Jacobowitz
2009-02-17 22:10               ` Pedro Alves
2009-02-18  2:01                 ` Pedro Alves
2009-02-01 18:04 ` Daniel Jacobowitz
2009-02-12  9:12   ` Vladimir Prus
2009-02-12 13:22     ` Daniel Jacobowitz
2009-02-12 15:02       ` Vladimir Prus [this message]
2009-02-12 15:13         ` Daniel Jacobowitz
2009-02-12 17:35           ` Tom Tromey
2009-02-12 18:02             ` Daniel Jacobowitz
2009-02-12 20:11               ` Tom Tromey
2009-02-12 20:17                 ` Vladimir Prus
2009-02-12 20:26                   ` Daniel Jacobowitz
2009-02-17 19:08                     ` Vladimir Prus
2009-02-12 18:06           ` Pedro Alves
2009-02-12 19:45             ` Pedro Alves
2009-02-12 19:56             ` Tom Tromey
2009-02-12 19:58               ` Daniel Jacobowitz
2009-02-13  2:22               ` Joel Brobecker
2009-02-01 18:47 ` Daniel Jacobowitz

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=200902121801.55254.vladimir@codesourcery.com \
    --to=vladimir@codesourcery.com \
    --cc=drow@false.org \
    --cc=gdb-patches@sources.redhat.com \
    --cc=marc.khouzam@ericsson.com \
    --cc=nickrob@snap.net.nz \
    /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