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 Switch to the current thread, and...



details:   https://anonhg.NetBSD.org/src/rev/3723ea89bebc
branches:  trunk
changeset: 932215:3723ea89bebc
user:      christos <christos%NetBSD.org@localhost>
date:      Sat May 02 12:56:55 2020 +0000

description:
Switch to the current thread, and reload the symbol file.

diffstat:

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

diffs (25 lines):

diff -r efdbc3528f10 -r 3723ea89bebc external/gpl3/gdb/dist/gdb/bsd-kvm.c
--- a/external/gpl3/gdb/dist/gdb/bsd-kvm.c      Sat May 02 11:37:17 2020 +0000
+++ b/external/gpl3/gdb/dist/gdb/bsd-kvm.c      Sat May 02 12:56:55 2020 +0000
@@ -28,6 +28,7 @@
 #include "value.h"
 #include "gdbcore.h"
 #include "inferior.h"          /* for get_exec_file */
+#include "symfile.h"
 #include "gdbthread.h"
 #include "arch-utils.h"
 
@@ -144,9 +145,12 @@
 
   inf->gdbarch = get_current_arch ();
 
-  add_thread_silent (bsd_kvm_ptid);
+  thread_info *tp = add_thread_silent (bsd_kvm_ptid);
+  switch_to_thread(tp);
   inferior_ptid = bsd_kvm_ptid;
 
+  symbol_file_add_main(execfile, 0);
+
   target_fetch_registers (get_current_regcache (), -1);
 
   reinit_frame_cache ();



Home | Main Index | Thread Index | Old Index