[commit/branch?] error in return type in solib-target:solib_target_parse_libraries

Joel Brobecker
2007-10-12T21:56:35Z

[-- 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;