From: Joel Brobecker <brobecker@adacore.com>
To: Luis Machado <lgustavo@codesourcery.com>
Cc: Tom Tromey <tromey@redhat.com>, gdb-patches@sourceware.org
Subject: Re: [commit] reimplement AIX shared-lib support (v3)
Date: Wed, 08 May 2013 06:15:00 -0000 [thread overview]
Message-ID: <20130508061541.GA9160@adacore.com> (raw)
In-Reply-To: <51891375.2020105@codesourcery.com>
[-- Attachment #1: Type: text/plain, Size: 1014 bytes --]
> Ah, here it is.
>
> The failure seems to be due to solib_aix_free_library_list only
> being defined if HAVE_LIBEXPAT is defined, but it is being used in
> solib_aix_normal_stop_observer regardless of HAVE_LIBEXPAT being
> defined or not.
>
> I was missing libexpat in my system, so that's why i was seeing this
> failure. Looks like it is a real GDB bug.
Ah, you are very right, and if I understand things correctly, you'd
even have a link failure if you compiled past the warning. Fixed
thusly:
gdb/ChangeLog:
* solib-aix.c (solib_aix_free_library_list): New function
for the case where HAVE_LIBEXPAT is not defined.
Although, now that I have checked the change in, I am wondering
whether I could simply move the function out of the #if defined
(and whether that might make sense or not)... The main advantage
is that we're not duplicating the function's prototype.
Not much time today, but I will keep that for tomorrow. In the meantime,
I wanted the problem to be fixed ASAP.
--
Joel
[-- Attachment #2: 0001-Dummy-implementation-of-solib_aix_free_library_list-.patch --]
[-- Type: text/x-diff, Size: 1273 bytes --]
From 786ba18d6cc536a7ccf2ac18b8e81b65758939f6 Mon Sep 17 00:00:00 2001
From: Joel Brobecker <brobecker@adacore.com>
Date: Wed, 8 May 2013 10:02:45 +0400
Subject: [PATCH] Dummy implementation of solib_aix_free_library_list if
libexpat missing.
gdb/ChangeLog:
* solib-aix.c (solib_aix_free_library_list): New function
for the case where HAVE_LIBEXPAT is not defined.
---
gdb/ChangeLog | 5 +++++
gdb/solib-aix.c | 7 +++++++
2 files changed, 12 insertions(+)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 2506ce5..f830db6 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2013-05-08 Joel Brobecker <brobecker@adacore.com>
+
+ * solib-aix.c (solib_aix_free_library_list): New function
+ for the case where HAVE_LIBEXPAT is not defined.
+
2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
PR breakpoints/15413:
diff --git a/gdb/solib-aix.c b/gdb/solib-aix.c
index d930769..9fa5de9 100644
--- a/gdb/solib-aix.c
+++ b/gdb/solib-aix.c
@@ -141,6 +141,13 @@ solib_aix_parse_libraries (const char *library)
return NULL;
}
+/* Dummy implementation if XML support is not compiled in. */
+
+static void
+solib_aix_free_library_list (void *p)
+{
+}
+
#else /* HAVE_LIBEXPAT */
#include "xml-support.h"
--
1.7.10.4
next prev parent reply other threads:[~2013-05-08 6:15 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-06 14:20 Joel Brobecker
2013-05-06 15:13 ` Pedro Alves
2013-05-07 8:42 ` Joel Brobecker
2013-05-07 8:56 ` Pedro Alves
2013-05-07 10:10 ` Joel Brobecker
2013-05-07 10:14 ` Joel Brobecker
2013-05-07 13:45 ` Luis Machado
2013-05-07 14:15 ` Tom Tromey
2013-05-07 14:17 ` Luis Machado
2013-05-07 14:28 ` Joel Brobecker
2013-05-07 14:31 ` Luis Machado
2013-05-07 14:45 ` Luis Machado
2013-05-08 6:15 ` Joel Brobecker [this message]
2013-05-07 15:24 ` Tom Tromey
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=20130508061541.GA9160@adacore.com \
--to=brobecker@adacore.com \
--cc=gdb-patches@sourceware.org \
--cc=lgustavo@codesourcery.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