Update the solib list when the target is deactivated
authorLaurent Morichetti <laurent.morichetti@amd.com>
Wed, 29 Apr 2020 06:09:03 +0000 (23:09 -0700)
committerLaurent Morichetti <laurent.morichetti@amd.com>
Wed, 6 May 2020 20:50:57 +0000 (13:50 -0700)
Since the code objects are no longer accessible after the runtime
is unloaded, we need to refresh the solist to avoid "Cannot access
memory" errors if trying to access stale code objects.

Change-Id: I298025a599e6d9118a44070197102201594bc2e3

gdb/solib-rocm.c

index fd4739d79b25a25d3a53c602337a1a1bb7a090bc..7e05c06e29b44561dfddcdb29e0303d7dba137cc 100644 (file)
@@ -481,6 +481,7 @@ rocm_solib_dbgapi_deactivated ()
 {
   /* Disengage the ROCm so_ops.  */
   set_solib_ops (target_gdbarch (), &svr4_so_ops);
+  rocm_update_solib_list ();
 }
 
 static void
This page took 0.024994 seconds and 4 git commands to generate.