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 set the architecture of the infer...



details:   https://anonhg.NetBSD.org/src/rev/b6b3257b892c
branches:  trunk
changeset: 841768:b6b3257b892c
user:      christos <christos%NetBSD.org@localhost>
date:      Thu May 30 21:15:47 2019 +0000

description:
set the architecture of the inferior.

diffstat:

 external/gpl3/gdb/dist/gdb/bsd-kvm.c |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (20 lines):

diff -r 7b3101301eb1 -r b6b3257b892c external/gpl3/gdb/dist/gdb/bsd-kvm.c
--- a/external/gpl3/gdb/dist/gdb/bsd-kvm.c      Thu May 30 20:41:14 2019 +0000
+++ b/external/gpl3/gdb/dist/gdb/bsd-kvm.c      Thu May 30 21:15:47 2019 +0000
@@ -110,6 +110,7 @@
   kvm_t *temp_kd;
   struct inferior *inf;
   char *filename = NULL;
+  struct gdbarch_info info;
 
   target_preopen (from_tty);
 
@@ -141,6 +142,8 @@
   inf->aspace = maybe_new_address_space ();
   inf->pspace = new program_space (inf->aspace);
 
+  inf->gdbarch = get_current_arch ();
+
   add_thread_silent (bsd_kvm_ptid);
   inferior_ptid = bsd_kvm_ptid;
 



Home | Main Index | Thread Index | Old Index