This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA/gdbserver/LynxOS]: Incomplete thread list after --attach
- From: Pedro Alves <palves at redhat dot com>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 01 Oct 2013 12:33:41 +0100
- Subject: Re: [RFA/gdbserver/LynxOS]: Incomplete thread list after --attach
- Authentication-results: sourceware.org; auth=none
- References: <1380621039-25204-1-git-send-email-brobecker at adacore dot com> <524A9C9E dot 2040407 at redhat dot com> <20131001100200 dot GA2840 at adacore dot com> <524AA113 dot 5070008 at redhat dot com> <20131001105235 dot GE2840 at adacore dot com>
On 10/01/2013 11:52 AM, Joel Brobecker wrote:
>> Well, how are you sure they're unpublished, if you don't know
>> at least approximately which interfaces it's using? (reading /proc,
>> using ptrace+peeking at program memory, etc.) ;-) I've really no
>> clue on the ABI garantees copying newer/older "ps" to an older/newer
>> system would have, but I'd expect it to have some.
>
> That's true. In the end, I wasn't able to get that piece of information,
> as I could not find a tool on LynxOS that can trace system calls.
> There is no /proc, and I couldn't find anything in /dev that seems
> related to that sort of thing.
We could always ask the LynxOS folks (lynuxworks.com it seems), if we wanted
to bother, I guess. Oh well, I personally don't care that much.
>>> +/* Assuming we've just attached to a running inferior whose pid is PID,
>>> + add all threads runnnig in that process. */
>>
>> "running".
>
> Thanks. I will fix that before checking in.
Thanks.
--
Pedro Alves