aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2001-01-07 05:08:39 +0000
committerPeter Wemm <peter@FreeBSD.org>2001-01-07 05:08:39 +0000
commit57a0ee63f0c2e665de7defff1441f9f3255a3b9e (patch)
treef87803b0fa62b5109bfc184b74b2d6c24f7521b8 /gnu/usr.bin
parent7e6e7300d0ab2adf32971fd694c2fad360831088 (diff)
downloadsrc-57a0ee63f0c2e665de7defff1441f9f3255a3b9e.tar.gz
src-57a0ee63f0c2e665de7defff1441f9f3255a3b9e.zip
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.
Notes
Notes: svn path=/head/; revision=70743
Diffstat (limited to 'gnu/usr.bin')
-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 cc234f997eb7..6a6b79a11c1c 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 cc234f997eb7..6a6b79a11c1c 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;