diff options
author | Kevin Buettner <kevinb@redhat.com> | 2001-05-06 22:22:03 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2001-05-06 22:22:03 +0000 |
commit | ce696e0556e9ddc48e7d049356a3c3fe6b7399d8 (patch) | |
tree | 64ca31984622469dfdf2ff37a3a142eae50f08e8 /gdb/somsolib.c | |
parent | a7c92daeedfd9d5326113d1776c6db7ed18efcc6 (diff) | |
download | gdb-ce696e0556e9ddc48e7d049356a3c3fe6b7399d8.zip gdb-ce696e0556e9ddc48e7d049356a3c3fe6b7399d8.tar.gz gdb-ce696e0556e9ddc48e7d049356a3c3fe6b7399d8.tar.bz2 |
Consolidate save_inferior_ptid/restore_inferior_ptid implementation to
one source file.
Diffstat (limited to 'gdb/somsolib.c')
-rw-r--r-- | gdb/somsolib.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/gdb/somsolib.c b/gdb/somsolib.c index 6838fdd..fe188ca 100644 --- a/gdb/somsolib.c +++ b/gdb/somsolib.c @@ -1031,14 +1031,6 @@ keep_going: clear_symtab_users (); } - -static void -reset_inferior_ptid (int saved_inferior_ptid) -{ - inferior_ptid = saved_inferior_ptid; -} - - /* This operation removes the "hook" between GDB and the dynamic linker, which causes the dld to notify GDB of shared library events. @@ -1057,8 +1049,7 @@ som_solib_remove_inferior_hook (int pid) int status; char dld_flags_buffer[TARGET_INT_BIT / TARGET_CHAR_BIT]; unsigned int dld_flags_value; - int saved_inferior_ptid = inferior_ptid; - struct cleanup *old_cleanups = make_cleanup (reset_inferior_ptid, saved_inferior_ptid); + struct cleanup *old_cleanups = save_inferior_ptid (); /* Ensure that we're really operating on the specified process. */ inferior_ptid = pid_to_ptid (pid); |