From 57a0ee63f0c2e665de7defff1441f9f3255a3b9e Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Sun, 7 Jan 2001 05:08:39 +0000 Subject: [PATCH] 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. --- gnu/usr.bin/binutils/gdb/i386/kvm-fbsd.c | 2 +- gnu/usr.bin/binutils/gdb/kvm-fbsd.c | 2 +- 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 cc234f997eb..6a6b79a11c1 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 cc234f997eb..6a6b79a11c1 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;