]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/aix-thread.c
Two fixes in dwarf-mode.el
[thirdparty/binutils-gdb.git] / gdb / aix-thread.c
index b9b25d5e3cb637f7a79cd8bf1f00f2cc49672a52..3963a08c840bc27ec052b10e1c2d71dc03381f81 100644 (file)
@@ -902,7 +902,7 @@ pd_update (int set_infpid)
     {
       ptid = thread->ptid;
       if (set_infpid)
-       inferior_ptid = ptid;
+       switch_to_thread (thread);
     }
   return ptid;
 }
@@ -1834,8 +1834,9 @@ aix_thread_target::get_ada_task_ptid (long lwp, long thread)
 /* Module startup initialization function, automagically called by
    init.c.  */
 
+void _initialize_aix_thread ();
 void
-_initialize_aix_thread (void)
+_initialize_aix_thread ()
 {
   /* Notice when object files get loaded and unloaded.  */
   gdb::observers::new_objfile.attach (new_objfile);