gdb/gdbserver:

2012-11-09  Yao Qi  <yao@codesourcery.com>

	* spu-low.c (current_ptid): Move it to ..
	* gdbthread.h: ... here.  New.
	* remote-utils.c (read_ptid): Use macro 'current_ptid'.
	* server.c (myresume, process_serial_event): Likewise.
	* thread-db.c (thread_db_find_new_threads): Likewise.
	* tracepoint.c (run_inferior_command): Likewise.
This commit is contained in:
Yao Qi 2012-11-09 02:58:50 +00:00
parent e714f336ee
commit fbd5db48c5
7 changed files with 16 additions and 10 deletions

View file

@ -761,7 +761,7 @@ read_ptid (char *buf, char **obuf)
/* Since the stub is not sending a process id, then default to
what's in the current inferior. */
pid = ptid_get_pid (((struct inferior_list_entry *) current_inferior)->id);
pid = ptid_get_pid (current_ptid);
if (obuf)
*obuf = pp;