From 439d0ff00b24bc2eed42d21565bc3225fbee815b Mon Sep 17 00:00:00 2001 From: Adam David Date: Wed, 4 May 1994 01:22:07 +0000 Subject: [PATCH] Use correct stack segment with corefiles. --- gnu/usr.bin/gdb/config/i386bsd-dep.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gnu/usr.bin/gdb/config/i386bsd-dep.c b/gnu/usr.bin/gdb/config/i386bsd-dep.c index 80e11fa137c1..16286eea2269 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 -