* proc_service.h as an installed header
@ 2016-07-05 18:29 Florian Weimer
2016-07-06 10:06 ` Gary Benson
0 siblings, 1 reply; 3+ messages in thread
From: Florian Weimer @ 2016-07-05 18:29 UTC (permalink / raw)
To: gdb
glibc has received a request to turn proc_service.h into an installed
header:
https://sourceware.org/bugzilla/show_bug.cgi?id=20311
The request seems reasonable.
The only question is who owns this API. glibc is just a consumer here,
and the traditional provider is GDB, so I GDB would be the natural
The API definitions seem to have drifted a bit, e.g.:
--- glibc/git/nptl_db/proc_service.h
+++ binutils-gdb/gdb/gdb_proc_service.h
â¦
-extern ps_err_e ps_pstop (const struct ps_prochandle *);
-extern ps_err_e ps_pcontinue (const struct ps_prochandle *);
+extern ps_err_e ps_pstop (struct ps_prochandle *);
+extern ps_err_e ps_pcontinue (struct ps_prochandle *);
Perhaps we should clean this up before making this a more public API?
Thanks,
Florian
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: proc_service.h as an installed header
2016-07-05 18:29 proc_service.h as an installed header Florian Weimer
@ 2016-07-06 10:06 ` Gary Benson
2016-07-19 18:35 ` Pedro Alves
0 siblings, 1 reply; 3+ messages in thread
From: Gary Benson @ 2016-07-06 10:06 UTC (permalink / raw)
To: Florian Weimer; +Cc: gdb
Florian Weimer wrote:
> glibc has received a request to turn proc_service.h into an
> installed header:
>
> https://sourceware.org/bugzilla/show_bug.cgi?id=20311
>
> The request seems reasonable.
>
> The only question is who owns this API. glibc is just a consumer
> here, and the traditional provider is GDB, so I GDB would be the
> natural
I always thought of it as part of libthread_db's API.
i.e., thread_db.h is the debugger->libthread_db API,
and proc_service.h is the libthread_db->debugger API.
It seems like it'd be easier to provide it from glibc. If GDB
provided it glibc would have to carry its own copy anyway (I'm
presuming you don't want to introduce a build dependency on GDB)
> The API definitions seem to have drifted a bit, e.g.:
>
> --- glibc/git/nptl_db/proc_service.h
> +++ binutils-gdb/gdb/gdb_proc_service.h
> â¦
> -extern ps_err_e ps_pstop (const struct ps_prochandle *);
> -extern ps_err_e ps_pcontinue (const struct ps_prochandle *);
> +extern ps_err_e ps_pstop (struct ps_prochandle *);
> +extern ps_err_e ps_pcontinue (struct ps_prochandle *);
>
> Perhaps we should clean this up before making this a more public API?
Yeah, I think the API was defined to match what the Solaris guys were
doing with it, and that doesn't match well what glibc does. There's
a fair few places where glibc's libthread_db casts away const.
Cheers,
Gary
--
http://gbenson.net/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: proc_service.h as an installed header
2016-07-06 10:06 ` Gary Benson
@ 2016-07-19 18:35 ` Pedro Alves
0 siblings, 0 replies; 3+ messages in thread
From: Pedro Alves @ 2016-07-19 18:35 UTC (permalink / raw)
To: Gary Benson, Florian Weimer; +Cc: gdb
On 07/06/2016 11:06 AM, Gary Benson wrote:
> Florian Weimer wrote:
>> glibc has received a request to turn proc_service.h into an
>> installed header:
>>
>> https://sourceware.org/bugzilla/show_bug.cgi?id=20311
>>
>> The request seems reasonable.
>>
>> The only question is who owns this API. glibc is just a consumer
>> here, and the traditional provider is GDB, so I GDB would be the
>> natural
>
> I always thought of it as part of libthread_db's API.
>
> i.e., thread_db.h is the debugger->libthread_db API,
> and proc_service.h is the libthread_db->debugger API.
>
> It seems like it'd be easier to provide it from glibc. If GDB
> provided it glibc would have to carry its own copy anyway (I'm
> presuming you don't want to introduce a build dependency on GDB)
Agreed. (I've followed up on the glibc bug.)
Thanks,
Pedro Alves
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-07-19 18:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-05 18:29 proc_service.h as an installed header Florian Weimer
2016-07-06 10:06 ` Gary Benson
2016-07-19 18:35 ` Pedro Alves
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox