This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Switch shared library default backend to solib-target.c
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org, Eli Zaretskii <eliz at gnu dot org>
- Date: Wed, 21 Jul 2010 20:08:14 +0100
- Subject: Re: Switch shared library default backend to solib-target.c
- References: <201006151858.58007.pedro@codesourcery.com> <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)