From: Marc Khouzam <marc.khouzam@ericsson.com>
To: "'Hui Zhu'" <teawater@gmail.com>
Cc: "'gdb@sourceware.org'" <gdb@sourceware.org>
Subject: RE: Command for number of cores
Date: Wed, 28 Jul 2010 19:02:00 -0000 [thread overview]
Message-ID: <F7CE05678329534C957159168FA70DEC5716BC276A@EUSAACMS0703.eamcs.ericsson.se> (raw)
In-Reply-To: <AANLkTinwS-wqdkDuf3zc6+c71CogT70WvmF=dMOMnL_T@mail.gmail.com>
> -----Original Message-----
> From: Hui Zhu [mailto:teawater@gmail.com]
> Sent: Tuesday, July 27, 2010 10:05 PM
> To: Marc Khouzam
> Cc: gdb@sourceware.org
> Subject: Re: Command for number of cores
>
> p sysconf(_SC_NPROCESSORS_CONF)
How do I get GDB to know about the symbol _SC_NPROCESSORS_CONF?
And when I call sysconf() does it execute on the host or the target?
Thanks
> 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
> >
>
next prev parent reply other threads:[~2010-07-28 19:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-27 19:55 Marc Khouzam
2010-07-28 2:05 ` Hui Zhu
2010-07-28 19:02 ` Marc Khouzam [this message]
2010-07-29 2:21 ` Hui Zhu
2010-08-02 0:38 ` Marc Khouzam
2010-07-28 19:50 ` Doug Evans
2010-07-29 20:27 ` Marc Khouzam
2010-08-02 15:17 ` Stan Shebs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=F7CE05678329534C957159168FA70DEC5716BC276A@EUSAACMS0703.eamcs.ericsson.se \
--to=marc.khouzam@ericsson.com \
--cc=gdb@sourceware.org \
--cc=teawater@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox