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.
This commit is contained in:
Peter Wemm 2001-01-07 05:08:39 +00:00
parent 7e6e7300d0
commit 57a0ee63f0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=70743
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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;