[PATCH] Add extra 'info os' information types for Linux (trunk and 7.4)
Eli Zaretskii
eliz@gnu.org
Wed Dec 28 06:02:00 GMT 2011
> Date: Tue, 27 Dec 2011 15:30:07 -0800
> From: Stan Shebs <stanshebs@earthlink.net>
> CC: gdb-patches@sourceware.org
>
> I think the answer is that there would be few if any "info os"
> subcommands that would be genuinely common to all operating systems that
> GDB supports; embedded OSes may not even have a well-defined concept of
> processes. On the other hand, one could argue that anything that is not
> totally general should be given a OS-specific subcommand, a la "info dos".
But "info dos" is not more OS-specific than the commands suggested
here.
> And although the patch at hand consists of implementations for Linux, I
> don't think any of the types of data are truly Linux-only; the IPC types
> are common to all System V inheritors for instance, and even the
> seemingly-Linux concept of loadable kernel modules now has a BSD
> equivalent. By comparison, "info dos" has subcommands like "gdt"
> (global descriptor table) that are not meaningful for any other kind of OS.
Any modern system that runs on x86 will have a GDT, it's just that
most don't let you access it easily. So I really don't see a
fundamental difference here.
More information about the Gdb-patches
mailing list