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 2001-01-07 05:08:39 +00:00
parent d977a9f5d6
commit 9454bb0e68
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;