[commit] Fix build failure on sparc-solaris
Joel Brobecker
brobecker@adacore.com
Sat Jan 9 04:54:00 GMT 2010
I applied the following change. It's a modified version of DanielG's
change where I removed the check for UNIXWARE since, as far as I could
tell from the configure script, NEW_PROC_API implies UNIXWARE:
case "${host}" in
*-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
AC_DEFINE(NEW_PROC_API, 1,
I tried to confirm that the change was appropriate for platforms
that configure as *-*-sysv4.2* | *-*-sysv5*, but I couldn't find
a specification of SVR4 that included procfs. Perhaps this is not
part of the API, or even part of SVR4 altogether.
A look at config.guess did not help much in getting full confidence
in the patch. IMO, I think that the correct way of handling this
would be to use the same #ifdef as BFD which conditions the definition
of elfcore_write_prstatus (IOW: HAVE_PRSTATUS_T). However, I'm just
as happy to see if relying on NEW_PROC_API is good enough in practice.
I can work on improving the situation if/when a problem is reported.
This is why I decided to approve and apply this patch.
gdb/ChangeLog:
* procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
--
Joel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-build-failure-on-sparc-solaris.patch
Type: text/x-diff
Size: 1842 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20100109/e5f2768d/attachment.bin>
More information about the Gdb-patches
mailing list