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:
parent
d977a9f5d6
commit
9454bb0e68
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user