This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 18/18] document the new VxWorks port
On Friday 25 February 2011 14:11:14, Joel Brobecker wrote:
> > Of put this under the "info os" mechanism?
>
> I don't think that we want to print the list of running VxWorks tasks
> under "info os", but I think that the suggestion is interesting for
> other, more static, things. For instance, VxWorks version, WTX protocol
> version, etc. Keeping this in my mind for a rainy day...
The "os" stands for OS-awareness, not for specific things about
the OS. E.g.,
"info os processes" prints the list of all running processes
under linux. It works like "shell ps" on the target, just
like Jerome mentioned. Here's what we have in one of our
local trees:
(top-gdb) info os
Type Description
processes Listing of all processes
procgroups Listing of all process groups
threads Listing of all threads
files Listing of all file descriptions
sockets Listing of all internet-domain sockets
shm Listing of all shared-memory regions
semaphores Listing of all semaphores
msg Listing of all message queues
modules Listing of all loaded kernel modules
(and a corresponding -info-os MI command, and corresponding
Eclipse/DSF support for listing all these tables, while
being completely agnostic of the tables it is actually
showing.)
--
Pedro Alves