Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/gdb/dist/gdb We need to allocate an inferior w...
details: https://anonhg.NetBSD.org/src/rev/7d49b40b11a2
branches: trunk
changeset: 770750:7d49b40b11a2
user: christos <christos%NetBSD.org@localhost>
date: Mon Oct 31 18:41:17 2011 +0000
description:
We need to allocate an inferior with our fake pid so that kernel core dumps
work.
diffstat:
external/gpl3/gdb/dist/gdb/bsd-kvm.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diffs (22 lines):
diff -r 0c64d944cfa6 -r 7d49b40b11a2 external/gpl3/gdb/dist/gdb/bsd-kvm.c
--- a/external/gpl3/gdb/dist/gdb/bsd-kvm.c Mon Oct 31 18:40:40 2011 +0000
+++ b/external/gpl3/gdb/dist/gdb/bsd-kvm.c Mon Oct 31 18:41:17 2011 +0000
@@ -70,6 +70,7 @@
char errbuf[_POSIX2_LINE_MAX];
char *execfile = NULL;
kvm_t *temp_kd;
+ struct inferior *inf;
target_preopen (from_tty);
@@ -97,6 +98,10 @@
core_kd = temp_kd;
push_target (&bsd_kvm_ops);
+ inf = add_inferior_silent (PIDGET(bsd_kvm_ptid));
+ inf->aspace = maybe_new_address_space ();
+ inf->pspace = add_program_space (inf->aspace);
+
add_thread_silent (bsd_kvm_ptid);
inferior_ptid = bsd_kvm_ptid;
Home |
Main Index |
Thread Index |
Old Index