This is the mail archive of the mailing list for the GDB project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add extra 'info os' information types for Linux (trunk and 7.4)

> Date: Tue, 27 Dec 2011 15:30:07 -0800
> From: Stan Shebs <>
> CC:
> 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

> 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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]