Module Name: src
Committed By: christos
Date: Sat May 2 12:56:55 UTC 2020
Modified Files:
src/external/gpl3/gdb/dist/gdb: bsd-kvm.c
Log Message:
Switch to the current thread, and reload the symbol file.
To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/external/gpl3/gdb/dist/gdb/bsd-kvm.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/gpl3/gdb/dist/gdb/bsd-kvm.c
diff -u src/external/gpl3/gdb/dist/gdb/bsd-kvm.c:1.16 src/external/gpl3/gdb/dist/gdb/bsd-kvm.c:1.17
--- src/external/gpl3/gdb/dist/gdb/bsd-kvm.c:1.16 Thu May 30 17:43:23 2019
+++ src/external/gpl3/gdb/dist/gdb/bsd-kvm.c Sat May 2 08:56:55 2020
@@ -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 @@ bsd_kvm_target_open (const char *arg, in
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 ();