Patches to allow GDB to use NEW_PROC_API on Solaris x86
Andrew Cagney
ac131313@cygnus.com
Tue Feb 29 05:54:00 GMT 2000
"Peter.Schauer" wrote:
>
> These patches will allow GDB to use NEW_PROC_API on Solaris x86.
>
> Currently GDB is not yet configured to use NEW_PROC_API, but it might be
> in the future (I am making progress on hardware watchpoint support for
> Solaris x86, which works only under the new API).
>
> They clean up an old hack in sol-thread.c, which is no longer necessary
> with the new procfs.c code (thanks a lot Michael Snyder, I assume that you
> will have to approve these patches also).
>
> The patches cause no testsuite regressions, with or without NEW_PROC_ABI
> defined.
>
> 2000-02-28 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
>
> Make NEW_PROC_ABI interface functional on Solaris x86.
> * sol-thread.c (ps_lgetLDT): Rewrite to use new procfs_find_LDT_entry
> function from procfs.c, mostly copied from lin-thread.c.
> * inferior.h, procfs.c (procfs_get_pid_fd): Removed, no longer needed.
>
I've applied the attatched. One observation - I like how the comment:
> ! /* NOTE: only used on Solaris, therefore OK to refer to procfs.c */
> ! extern struct ssd *procfs_find_LDT_entry (int);
> ! struct ssd *ret;
was coppied to lin-thread.c and then back again :-)
Andrew
More information about the Gdb-patches
mailing list