binutils-gdb/gdb/mi
Simon Marchi c9657e708a Introduce utility function find_inferior_ptid
This patch introduces find_inferior_ptid to replace the common idiom

  find_inferior_pid (ptid_get_pid (...));

It replaces all the instances of that idiom that I found with the new
function.

No significant changes before/after the patch in the regression suite
on amd64 linux.

gdb/ChangeLog:

	* inferior.c (find_inferior_ptid): New function.
	* inferior.h (find_inferior_ptid): New declaration.
	* ada-tasks.c (ada_get_task_number): Use find_inferior_ptid.
	* corelow.c (core_pid_to_str): Same.
	* darwin-nat.c (darwin_resume): Same.
	* infrun.c (fetch_inferior_event): Same.
	(get_inferior_stop_soon): Same.
	(handle_inferior_event): Same.
	(handle_signal_stop): Same.
	* linux-nat.c (resume_lwp): Same.
	(stop_wait_callback): Same.
	* mi/mi-interp.c (mi_new_thread): Same.
	(mi_thread_exit): Same.
	* proc-service.c (ps_pglobal_lookup): Same.
	* record-btrace.c (record_btrace_step_thread): Same.
	* remote-sim.c (gdbsim_close_inferior): Same.
	(gdbsim_resume): Same.
	(gdbsim_stop): Same.
	* sol2-tdep.c (sol2_core_pid_to_str): Same.
	* target.c (memory_xfer_partial_1): Same.
	(default_thread_address_space): Same.
	* thread.c (thread_change_ptid): Same.
	(switch_to_thread): Same.
	(do_restore_current_thread_cleanup): Same.
2014-12-15 12:00:55 -05:00
..
ChangeLog-1999-2003
mi-cmd-break.c Remove spurious exceptions.h inclusions 2014-10-08 09:33:22 +01:00
mi-cmd-break.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
mi-cmd-catch.c Move libiberty.h to common-defs.h 2014-08-07 09:06:41 +01:00
mi-cmd-disas.c Include string.h in common-defs.h 2014-08-07 09:06:47 +01:00
mi-cmd-env.c Include string.h in common-defs.h 2014-08-07 09:06:47 +01:00
mi-cmd-file.c Split struct symtab into two: struct symtab and compunit_symtab. 2014-11-20 07:47:44 -08:00
mi-cmd-info.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
mi-cmd-stack.c Remove spurious exceptions.h inclusions 2014-10-08 09:33:22 +01:00
mi-cmd-target.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
mi-cmd-var.c Include string.h in common-defs.h 2014-08-07 09:06:47 +01:00
mi-cmds.c Include string.h in common-defs.h 2014-08-07 09:06:47 +01:00
mi-cmds.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
mi-common.c Include gdb_assert.h in common-defs.h 2014-08-07 09:06:45 +01:00
mi-common.h PR gdb/13860 - Make MI sync vs async output (closer to) the same. 2014-05-29 13:09:45 +01:00
mi-console.c Include string.h in common-defs.h 2014-08-07 09:06:47 +01:00
mi-console.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
mi-getopt.c Include string.h in common-defs.h 2014-08-07 09:06:47 +01:00
mi-getopt.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
mi-interp.c Introduce utility function find_inferior_ptid 2014-12-15 12:00:55 -05:00
mi-main.c Remove spurious exceptions.h inclusions 2014-10-08 09:33:22 +01:00
mi-main.h enable target async by default; separate MI and target notions of async 2014-05-29 14:38:02 +01:00
mi-out.c introduce ui_file_write_for_put 2014-12-12 22:12:12 +01:00
mi-out.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
mi-parse.c Include string.h in common-defs.h 2014-08-07 09:06:47 +01:00
mi-parse.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
mi-symbol-cmds.c symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses updated. 2014-11-18 09:32:10 -08:00