Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [commit/branch?] error in return type in solib-target:solib_target_parse_libraries
@ 2007-10-12 22:07 Joel Brobecker
  2007-10-13  3:01 ` Daniel Jacobowitz
  0 siblings, 1 reply; 5+ messages in thread
From: Joel Brobecker @ 2007-10-12 22:07 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 686 bytes --]

Hello,

When HAVE_LIBEXPAT is not defined, the instance of
solib_target_parse_libraries has a return type that looks incorrect.
Looking at the other instance used when HAVE_LIBEXPAT is defined,
and looking at its usage, it looks like a '*' was just forgotten.
The attached patch allows GDB to build again.

2007-10-12  Joel Brobecker  <brobecker@adacore.com>

        * solib-target.c (solib_target_parse_libraries)
        [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.

I think I should also commit this on the branch. It looks pretty
obvious and fixes a build failure, even if the current number of
targets that use this file is very small (2 AFAICT).

Thanks,
-- 
Joel

[-- Attachment #2: solib-target.c.diff --]
[-- Type: text/plain, Size: 363 bytes --]

Index: solib-target.c
===================================================================
--- solib-target.c	(revision 15032)
+++ solib-target.c	(working copy)
@@ -51,7 +51,7 @@ DEF_VEC_P(lm_info_p);
 
 #if !defined(HAVE_LIBEXPAT)
 
-static VEC(lm_info_p)
+static VEC(lm_info_p) *
 solib_target_parse_libraries (const char *library)
 {
   static int have_warned;

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-10-13 15:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-12 22:07 [commit/branch?] error in return type in solib-target:solib_target_parse_libraries Joel Brobecker
2007-10-13  3:01 ` Daniel Jacobowitz
2007-10-13 10:13   ` Joel Brobecker
2007-10-13 13:52     ` Daniel Jacobowitz
2007-10-13 19:58       ` Joel Brobecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox