binutils-gdb/gdb/common
Pedro Alves 43792cf0de Centralize thread ID printing
Add a new function to print a thread ID, in the style of paddress,
plongest, etc. and adjust all CLI-reachable paths to use it.

This gives us a single place to tweak to print inferior-qualified
thread IDs later:

 - [Switching to thread 1 (Thread 0x7ffff7fc2740 (LWP 8155))]
 + [Switching to thread 1.1 (Thread 0x7ffff7fc2740 (LWP 8155))]

etc., though for now, this has no user-visible change.

No regressions on x86_64 Fedora 20.

gdb/ChangeLog:
2016-01-13  Pedro Alves  <palves@redhat.com>

	* breakpoint.c (remove_threaded_breakpoints)
	(print_one_breakpoint_location): Use print_thread_id.
	* btrace.c (btrace_enable, btrace_disable, btrace_teardown)
	(btrace_fetch, btrace_clear): Use print_thread_id.
	* common/print-utils.c (CELLSIZE): Delete.
	(get_cell): Rename to ...
	(get_print_cell): ... this and made extern.  Adjust call callers.
	Adjust to use PRINT_CELL_SIZE.
	* common/print-utils.h (get_print_cell): Declare.
	(PRINT_CELL_SIZE): New.
	* gdbthread.h (print_thread_id): Declare.
	* infcmd.c (signal_command): Use print_thread_id.
	* inferior.c (print_inferior): Use print_thread_id.
	* infrun.c (handle_signal_stop)
	(insert_exception_resume_breakpoint)
	(insert_exception_resume_from_probe)
	(print_signal_received_reason): Use print_thread_id.
	* record-btrace.c (record_btrace_info)
	(record_btrace_resume_thread, record_btrace_cancel_resume)
	(record_btrace_step_thread, record_btrace_wait): Use
	print_thread_id.
	* thread.c (thread_apply_all_command): Use print_thread_id.
	(print_thread_id): New function.
	(thread_apply_command): Use print_thread_id.
	(thread_command, thread_find_command, do_captured_thread_select):
	Use print_thread_id.
2016-01-13 10:59:14 +00:00
..
agent.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
agent.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
ax.def GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
break-common.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
btrace-common.c Remove trademark acknowledgements throughout 2016-01-12 15:03:11 +00:00
btrace-common.h Remove trademark acknowledgements throughout 2016-01-12 15:03:11 +00:00
buffer.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
buffer.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
cleanups.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
cleanups.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
common-debug.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
common-debug.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
common-defs.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
common-exceptions.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
common-exceptions.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
common-regcache.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
common-regcache.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
common-types.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
common-utils.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
common-utils.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
common.host GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
common.m4 GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
create-version.sh GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
enum-flags.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
errors.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
errors.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
fileio.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
fileio.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
filestuff.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
filestuff.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
format.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
format.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
gdb_assert.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
gdb_locale.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
gdb_setjmp.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
gdb_signals.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
gdb_sys_time.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
gdb_vecs.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
gdb_vecs.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
gdb_wait.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
host-defs.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
mingw-strerror.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
posix-strerror.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
print-utils.c Centralize thread ID printing 2016-01-13 10:59:14 +00:00
print-utils.h Centralize thread ID printing 2016-01-13 10:59:14 +00:00
ptid.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
ptid.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
queue.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
rsp-low.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
rsp-low.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
signals.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
symbol.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
vec.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
vec.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
version.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
x86-xstate.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
xml-utils.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
xml-utils.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00