[ob] inferior_thread: Remove "extern" in definition.
Pierre Muller
muller@ics.u-strasbg.fr
Fri Mar 27 08:13:00 GMT 2009
I am just very curious here:
why does GCC accept such non-sense?
If it is the implementation, it can't be external at the same time...
Pierre Muller
Pascal language support maintainer for GDB
Still not a proficient C programmer :(
> -----Message d'origine-----
> De : gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] De la part de Doug Evans
> Envoyé : Thursday, March 26, 2009 10:38 PM
> À : gdb-patches@sourceware.org
> Objet : [ob] inferior_thread: Remove "extern" in definition.
>
> Hi.
>
> Committed as obvious.
>
> 2009-03-26 Doug Evans <dje@google.com>
>
> * thread.c (inferior_thread) Remove "extern" in definition.
>
> diff -u -p -r1.106 thread.c
> --- thread.c 25 Mar 2009 21:53:10 -0000 1.106
> +++ thread.c 26 Mar 2009 21:28:39 -0000
> @@ -72,7 +72,7 @@ enum thread_state
> THREAD_EXITED,
> };
>
> -extern struct thread_info*
> +struct thread_info*
> inferior_thread (void)
> {
> struct thread_info *tp = find_thread_pid (inferior_ptid);
More information about the Gdb-patches
mailing list