Command for number of cores

Hui Zhu teawater@gmail.com
Wed Jul 28 02:05:00 GMT 2010


p sysconf(_SC_NPROCESSORS_CONF)

On Wed, Jul 28, 2010 at 03:55, Marc Khouzam <marc.khouzam@ericsson.com> wrote:
> Hi,
>
> I need a way to know how many cores are on my target (where gdbserver is running).
> I'm wondering if GDB already has this information?
>
> If not, I was thinking of adding 'info cores' or 'show cores'.
> Or maybe a convenience variable '$numcores'?
>
> I'm thinking 'info cores'.
>
> If this makes sense, I'll give it a try.
>
> Thanks
>
> Marc
>



More information about the Gdb mailing list