diff options
author | adam <adam@FreeBSD.org> | 1994-05-04 01:22:07 +0000 |
---|---|---|
committer | adam <adam@FreeBSD.org> | 1994-05-04 01:22:07 +0000 |
commit | fce7f94ba7c760c2c99eddb1052ca4b4169eb49e (patch) | |
tree | 5b31865c1c8b73297ee755f10389c1fe5a6dc33c /gnu/usr.bin | |
parent | 0812f6412e2073e93eb25a743e54821e02fee856 (diff) | |
download | FreeBSD-src-fce7f94ba7c760c2c99eddb1052ca4b4169eb49e.zip FreeBSD-src-fce7f94ba7c760c2c99eddb1052ca4b4169eb49e.tar.gz |
Use correct stack segment with corefiles.
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r-- | gnu/usr.bin/gdb/config/i386bsd-dep.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gnu/usr.bin/gdb/config/i386bsd-dep.c b/gnu/usr.bin/gdb/config/i386bsd-dep.c index 80e11fa..16286ee 100644 --- a/gnu/usr.bin/gdb/config/i386bsd-dep.c +++ b/gnu/usr.bin/gdb/config/i386bsd-dep.c @@ -942,6 +942,9 @@ core_file_command(filename, from_tty) */ reg_offset = (int) u.u_ar0 - KERNEL_U_ADDR; #else + stack_end = (CORE_ADDR) u.u_kproc.kp_eproc.e_vm.vm_maxsaddr + + MAXSSIZ; + data_end = data_start + NBPG * u.u_kproc.kp_eproc.e_vm.vm_dsize; stack_start = stack_end - |