diff options
Diffstat (limited to 'gdb/bsd-uthread.c')
-rw-r--r-- | gdb/bsd-uthread.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/bsd-uthread.c b/gdb/bsd-uthread.c index 6435a52..8144f8c 100644 --- a/gdb/bsd-uthread.c +++ b/gdb/bsd-uthread.c @@ -149,7 +149,7 @@ static int bsd_uthread_thread_next_offset = -1; static int bsd_uthread_thread_ctx_offset; /* Name of shared threads library. */ -static const char *bsd_uthread_solib_name; +static std::string bsd_uthread_solib_name; /* Non-zero if the thread stratum implemented by this module is active. */ static int bsd_uthread_active; @@ -245,7 +245,7 @@ bsd_uthread_target::close () bsd_uthread_thread_state_offset = 0; bsd_uthread_thread_next_offset = 0; bsd_uthread_thread_ctx_offset = 0; - bsd_uthread_solib_name = NULL; + bsd_uthread_solib_name.clear (); } /* Deactivate the thread stratum implemented by this module. */ @@ -297,10 +297,10 @@ bsd_uthread_solib_loaded (so_list &so) static void bsd_uthread_solib_unloaded (program_space *pspace, const so_list &so) { - if (!bsd_uthread_solib_name) + if (bsd_uthread_solib_name.empty ()) return; - if (strcmp (so.so_original_name, bsd_uthread_solib_name) == 0) + if (so.so_original_name == bsd_uthread_solib_name) bsd_uthread_deactivate (); } |