This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Please define thread_info as struct thread_info (and other stuff)


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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]