summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-01-07 05:08:39 +0000
committerpeter <peter@FreeBSD.org>2001-01-07 05:08:39 +0000
commit9454bb0e6800db25de265fdc7c1df43c8c1b2b87 (patch)
treee536f6e708d57abd83e25d445d4ffe7b0ad3ee72 /gnu
parentd977a9f5d661dd2915cfc059d39b6cb4df238b44 (diff)
downloadFreeBSD-src-9454bb0e6800db25de265fdc7c1df43c8c1b2b87.zip
FreeBSD-src-9454bb0e6800db25de265fdc7c1df43c8c1b2b87.tar.gz
Fix gdb -k after jake's most recent commit. The gd_XXX symbols are now
offsets in all cases, and we have to find the base address (&__globaldata) ourselves for the UP case as well as SMP.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/binutils/gdb/i386/kvm-fbsd.c2
-rw-r--r--gnu/usr.bin/binutils/gdb/kvm-fbsd.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/gnu/usr.bin/binutils/gdb/i386/kvm-fbsd.c b/gnu/usr.bin/binutils/gdb/i386/kvm-fbsd.c
index cc234f9..6a6b79a 100644
--- a/gnu/usr.bin/binutils/gdb/i386/kvm-fbsd.c
+++ b/gnu/usr.bin/binutils/gdb/i386/kvm-fbsd.c
@@ -554,7 +554,7 @@ kvm_open (efile, cfile, sfile, perm, errout)
printf ("SMP %d cpus\n", ncpus);
} else {
ncpus = 0;
- prv_space = 0;
+ prv_space = ksym_lookup("__globaldata");
prv_space_size = 0;
}
cpuid = 0;
diff --git a/gnu/usr.bin/binutils/gdb/kvm-fbsd.c b/gnu/usr.bin/binutils/gdb/kvm-fbsd.c
index cc234f9..6a6b79a 100644
--- a/gnu/usr.bin/binutils/gdb/kvm-fbsd.c
+++ b/gnu/usr.bin/binutils/gdb/kvm-fbsd.c
@@ -554,7 +554,7 @@ kvm_open (efile, cfile, sfile, perm, errout)
printf ("SMP %d cpus\n", ncpus);
} else {
ncpus = 0;
- prv_space = 0;
+ prv_space = ksym_lookup("__globaldata");
prv_space_size = 0;
}
cpuid = 0;
OpenPOWER on IntegriCloud