This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [obv] Move macro current_ptid to gdbthread.h and use it
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Yao Qi <yao at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 7 Nov 2012 07:17:29 -0800
- Subject: Re: [obv] Move macro current_ptid to gdbthread.h and use it
- References: <1352253051-15206-1-git-send-email-yao@codesourcery.com>
> It is obvious, and I'll commit it in two days.
>
> gdb/gdbserver:
>
> 2012-11-06 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.
Cannot approve, but I noticed a small nit:
> +/* Get current thread ID (Linux task ID). */
> +#define current_ptid ((struct inferior_list_entry *)current_inferior)->id
^
|
missing space there ----------------------------+
--
Joel