diff options
| author | Attilio Rao <attilio@FreeBSD.org> | 2011-05-31 20:59:53 +0000 |
|---|---|---|
| committer | Attilio Rao <attilio@FreeBSD.org> | 2011-05-31 20:59:53 +0000 |
| commit | 1de471dfee9267dde6b33dd262faefffb2b71bc9 (patch) | |
| tree | 06681751e5fd13fb55ccf18887a4b898bf4dcdb0 /gnu/usr.bin/gdb | |
| parent | e3709597073142661441c7761240c07d081f4388 (diff) | |
Notes
Diffstat (limited to 'gnu/usr.bin/gdb')
| -rw-r--r-- | gnu/usr.bin/gdb/kgdb/kthr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/gdb/kgdb/kthr.c b/gnu/usr.bin/gdb/kgdb/kthr.c index 7b39929fa55a..461f408a73d9 100644 --- a/gnu/usr.bin/gdb/kgdb/kthr.c +++ b/gnu/usr.bin/gdb/kgdb/kthr.c @@ -107,7 +107,7 @@ kgdb_thr_init(void) addr = kgdb_lookup("stopped_cpus"); CPU_ZERO(&stopped_cpus); cpusetsize = sysconf(_SC_CPUSET_SIZE); - if (cpusetsize != -1 && (size_t)cpusetsize <= sizeof(cpuset_t) && + if (cpusetsize != -1 && (u_long)cpusetsize <= sizeof(cpuset_t) && addr != 0) kvm_read(kvm, addr, &stopped_cpus, cpusetsize); |
