From: Pedro Alves <pedro@codesourcery.com>
To: gdb-patches@sourceware.org, Eli Zaretskii <eliz@gnu.org>
Subject: Re: Switch shared library default backend to solib-target.c
Date: Wed, 21 Jul 2010 19:08:00 -0000 [thread overview]
Message-ID: <201007212008.15240.pedro@codesourcery.com> (raw)
In-Reply-To: <201006152137.10649.pedro@codesourcery.com>
On Tuesday 15 June 2010 21:37:10, Pedro Alves wrote:
> On Tuesday 15 June 2010 18:58:57, Pedro Alves wrote:
> > This patch changes GDB to default to enabling target
> > reported shared libraries. I've applied it.
> >
> > It does that by using solib-target.c by default, instead of
> > solib-null.c. The patch actually gets rid of solib-null.c entirely.
> > This means that for example, a generic elf gdb build (e.g., arm-eabi, without a
> > default OSABI), can be used to debug random RTOSs that report loaded
> > shared libraries using the "qXfer:libraries:read" remote protocol
> > packet.
> >
> > Since solib-target.c behaves exactly the same as solib-null.c
> > when the target doesn't implement the TARGET_OBJECT_LIBRARIES
> > xfer, this is always either a win, or a nop.
>
> I thought about this a bit and realized that it probably
> warrants a NEWS entry. I'll post one soon.
Is this okay? (The patch below is against the 7.2 branch.)
--
Pedro Alves
2010-07-21 Pedro Alves <pedro@codesourcery.com>
* NEWS: Mention target reported shared libraries support by
default.
---
gdb/NEWS | 8 ++++++++
1 file changed, 8 insertions(+)
Index: src/gdb/NEWS
===================================================================
--- src.orig/gdb/NEWS 2010-07-21 19:15:34.000000000 +0100
+++ src/gdb/NEWS 2010-07-21 20:04:09.000000000 +0100
@@ -3,6 +3,14 @@
*** Changes since GDB 7.1
+* Shared library support for remote targets by default
+
+ When GDB is configured for a generic, non-OS specific target, like
+ for example, --target=arm-eabi or one of the many *-*-elf targets,
+ GDB now queries remote stubs for loaded shared libraries using the
+ `qXfer:libraries:read' packet. Previously, shared library support
+ was always disabled for such configurations.
+
* C++ Improvements:
** Argument Dependent Lookup (ADL)
next prev parent reply other threads:[~2010-07-21 19:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-15 17:59 Pedro Alves
2010-06-15 18:05 ` Pedro Alves
2010-06-15 20:37 ` Pedro Alves
2010-07-21 19:08 ` Pedro Alves [this message]
2010-07-21 21:16 ` Eli Zaretskii
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=201007212008.15240.pedro@codesourcery.com \
--to=pedro@codesourcery.com \
--cc=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).