Fix 'info os' crashes on sparc.
authorDavid S. Miller <davem@redhat.com>
Tue, 20 Nov 2012 17:40:28 +0000 (17:40 +0000)
committerDavid S. Miller <davem@redhat.com>
Tue, 20 Nov 2012 17:40:28 +0000 (17:40 +0000)
commitb245bdfc672e8e9232e16205999f7e71ac9208b3
tree9004896e435a0aa6459b733cab6b9bd9f3f63e22
parent6bb11ab3b2e75cc4db2c2f63b0ba903c92313406
Fix 'info os' crashes on sparc.

* common/linux-osdata.c (get_number_of_cpu_cores): Delete.
(linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
sysconf.
(get_cores_used_by_process): Update comment.
gdb/ChangeLog
gdb/common/linux-osdata.c