mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-20 16:54:02 +00:00
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
7e6e7300d0
commit
57a0ee63f0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=70743
|
@ -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…
Reference in a new issue