mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04: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
2 changed files with 2 additions and 2 deletions
|
|
@ -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