This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Please define thread_info as struct thread_info (and other stuff)
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Svante Signell <svante dot signell at gmail dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Sun, 16 Dec 2018 10:20:39 +0100
- Subject: Re: [PATCH] Please define thread_info as struct thread_info (and other stuff)
- References: <c43ca8d60ab8880408033a21901d544f3ec9de57.camel@gmail.com>
On Dez 15 2018, Svante Signell <svante.signell@gmail.com> wrote:
> Index: gdb-8.2/gdb/regcache.h
> ===================================================================
> --- gdb-8.2.orig/gdb/regcache.h
> +++ gdb-8.2/gdb/regcache.h
> @@ -21,6 +21,7 @@
> #define REGCACHE_H
>
> #include "common-regcache.h"
> +#include "function-view.h"
> #include <forward_list>
>
> struct regcache;
> @@ -32,7 +33,7 @@ extern struct regcache *get_current_regc
> extern struct regcache *get_thread_regcache (ptid_t ptid);
>
> /* Get the regcache of THREAD. */
> -extern struct regcache *get_thread_regcache (thread_info *thread);
> +extern struct regcache *get_thread_regcache (struct thread_info *thread);
>
> extern struct regcache *get_thread_arch_regcache (ptid_t, struct gdbarch *);
> extern struct regcache *get_thread_arch_aspace_regcache (ptid_t,
> @@ -436,7 +437,7 @@ extern void registers_changed_ptid (ptid
>
> /* Indicate that registers of THREAD may have changed, so invalidate
> the cache. */
> -extern void registers_changed_thread (thread_info *thread);
> +extern void registers_changed_thread (struct thread_info *thread);
>
> /* An abstract base class for register dump. */
Try adding a forward declaration of struct thead_info. Note that
config/i386/nm-i386gnu.h includes "regcache.h", making it unique among
the nm.h files.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."