public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* Re: ia64 build failure against master
       [not found] <CAP5F8c+oi50ds7iqmbkfRgEuJjwOLfUe_TsackBwso3FwQreBQ@mail.gmail.com>
@ 2018-03-08 16:08 ` Yao Qi
  2018-03-09 15:40   ` [PATCH] Fix ia64 GDB build Yao Qi
  0 siblings, 1 reply; 4+ messages in thread
From: Yao Qi @ 2018-03-08 16:08 UTC (permalink / raw)
  To: Jason Duerstock; +Cc: Binutils, Yao Qi, GDB Patches

On Thu, Mar 8, 2018 at 3:08 PM, Jason Duerstock
<jason.duerstock@gmail.com> wrote:
> I was trying to compile the latest source on ia64 and got this error:
>
> ../../gdb/ia64-tdep.c: In function ‘register_status
> ia64_pseudo_register_read(gdbarch*, readable_regcache*, int,
> gdb_byte*)’:
> ../../gdb/ia64-tdep.c:942:64: error: invalid conversion from
> ‘readable_regcache*’ to ‘regcache*’ [-fpermissive]
>     || libunwind_get_reg_special (gdbarch, regcache, regnum, buf) != 0)
>                                                                 ^
> In file included from ../../gdb/ia64-tdep.h:25:0,
>                  from ../../gdb/ia64-tdep.c:39:
> ../../gdb/ia64-libunwind-tdep.h:73:5: note:   initializing argument 2
> of ‘int libunwind_get_reg_special(gdbarch*, regcache*, int, void*)’
>  int libunwind_get_reg_special (struct gdbarch *gdbarch,
>      ^~~~~~~~~~~~~~~~~~~~~~~~~
> make[2]: *** [Makefile:1605: ia64-tdep.o] Error 1
> make[2]: Leaving directory '/mnt/b/native/binutils-gdb/build/gdb'
> make[1]: *** [Makefile:10421: all-gdb] Error 2
> make[1]: Leaving directory '/mnt/b/native/binutils-gdb/build'
> make: *** [Makefile:850: all] Error 2
>
> It looks related to commit 849d0ba8.  My system has libunwind installed.
>

I'll take a look.

-- 
Yao (齐尧)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] Fix ia64 GDB build
  2018-03-08 16:08 ` ia64 build failure against master Yao Qi
@ 2018-03-09 15:40   ` Yao Qi
  2018-03-09 17:49     ` Jason Duerstock
  0 siblings, 1 reply; 4+ messages in thread
From: Yao Qi @ 2018-03-09 15:40 UTC (permalink / raw)
  To: gdb-patches; +Cc: jason.duerstock

Commit 849d0ba8 breaks GDB build for ia64 with --with-libunwind-ia64=yes.
This patch fixes it.

Jason, does it unbreak your build?

gdb:

2018-03-09  Yao Qi  <yao.qi@linaro.org>

	* ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
	parameter type to readable_regcache.
	* ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
	the declaration.
---
 gdb/ia64-libunwind-tdep.c | 2 +-
 gdb/ia64-libunwind-tdep.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gdb/ia64-libunwind-tdep.c b/gdb/ia64-libunwind-tdep.c
index 3ac613c..99782b2 100644
--- a/gdb/ia64-libunwind-tdep.c
+++ b/gdb/ia64-libunwind-tdep.c
@@ -452,7 +452,7 @@ libunwind_sigtramp_frame_sniffer (const struct frame_unwind *self,
    are usually located at BOF, this is not always true and only the libunwind
    info can decipher where they actually are.  */
 int
-libunwind_get_reg_special (struct gdbarch *gdbarch, struct regcache *regcache,
+libunwind_get_reg_special (struct gdbarch *gdbarch, readable_regcache *regcache,
 			   int regnum, void *buf)
 {
   unw_cursor_t cursor;
diff --git a/gdb/ia64-libunwind-tdep.h b/gdb/ia64-libunwind-tdep.h
index 5ac3a28..dc7ec9c 100644
--- a/gdb/ia64-libunwind-tdep.h
+++ b/gdb/ia64-libunwind-tdep.h
@@ -71,7 +71,7 @@ unw_word_t libunwind_find_dyn_list (unw_addr_space_t, unw_dyn_info_t *,
 				    void *);
 
 int libunwind_get_reg_special (struct gdbarch *gdbarch,
-			       struct regcache *regcache,
+			       readable_regcache *regcache,
 			       int regnum, void *buf);
 
 #endif /* IA64_LIBUNWIND_TDEP_H */
-- 
1.9.1

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Fix ia64 GDB build
  2018-03-09 15:40   ` [PATCH] Fix ia64 GDB build Yao Qi
@ 2018-03-09 17:49     ` Jason Duerstock
  2018-03-12  9:18       ` Yao Qi
  0 siblings, 1 reply; 4+ messages in thread
From: Jason Duerstock @ 2018-03-09 17:49 UTC (permalink / raw)
  To: Yao Qi; +Cc: gdb-patches

Yes, that fixes it.

Thanks,

Jason

On Fri, Mar 9, 2018 at 10:40 AM, Yao Qi <qiyaoltc@gmail.com> wrote:
> Commit 849d0ba8 breaks GDB build for ia64 with --with-libunwind-ia64=yes.
> This patch fixes it.
>
> Jason, does it unbreak your build?
>
> gdb:
>
> 2018-03-09  Yao Qi  <yao.qi@linaro.org>
>
>         * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
>         parameter type to readable_regcache.
>         * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
>         the declaration.
> ---
>  gdb/ia64-libunwind-tdep.c | 2 +-
>  gdb/ia64-libunwind-tdep.h | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/gdb/ia64-libunwind-tdep.c b/gdb/ia64-libunwind-tdep.c
> index 3ac613c..99782b2 100644
> --- a/gdb/ia64-libunwind-tdep.c
> +++ b/gdb/ia64-libunwind-tdep.c
> @@ -452,7 +452,7 @@ libunwind_sigtramp_frame_sniffer (const struct frame_unwind *self,
>     are usually located at BOF, this is not always true and only the libunwind
>     info can decipher where they actually are.  */
>  int
> -libunwind_get_reg_special (struct gdbarch *gdbarch, struct regcache *regcache,
> +libunwind_get_reg_special (struct gdbarch *gdbarch, readable_regcache *regcache,
>                            int regnum, void *buf)
>  {
>    unw_cursor_t cursor;
> diff --git a/gdb/ia64-libunwind-tdep.h b/gdb/ia64-libunwind-tdep.h
> index 5ac3a28..dc7ec9c 100644
> --- a/gdb/ia64-libunwind-tdep.h
> +++ b/gdb/ia64-libunwind-tdep.h
> @@ -71,7 +71,7 @@ unw_word_t libunwind_find_dyn_list (unw_addr_space_t, unw_dyn_info_t *,
>                                     void *);
>
>  int libunwind_get_reg_special (struct gdbarch *gdbarch,
> -                              struct regcache *regcache,
> +                              readable_regcache *regcache,
>                                int regnum, void *buf);
>
>  #endif /* IA64_LIBUNWIND_TDEP_H */
> --
> 1.9.1
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Fix ia64 GDB build
  2018-03-09 17:49     ` Jason Duerstock
@ 2018-03-12  9:18       ` Yao Qi
  0 siblings, 0 replies; 4+ messages in thread
From: Yao Qi @ 2018-03-12  9:18 UTC (permalink / raw)
  To: Jason Duerstock; +Cc: GDB Patches

On Fri, Mar 9, 2018 at 5:49 PM, Jason Duerstock
<jason.duerstock@gmail.com> wrote:
> Yes, that fixes it.
>

Patch is pushed in.

-- 
Yao (齐尧)

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-03-12  9:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CAP5F8c+oi50ds7iqmbkfRgEuJjwOLfUe_TsackBwso3FwQreBQ@mail.gmail.com>
2018-03-08 16:08 ` ia64 build failure against master Yao Qi
2018-03-09 15:40   ` [PATCH] Fix ia64 GDB build Yao Qi
2018-03-09 17:49     ` Jason Duerstock
2018-03-12  9:18       ` Yao Qi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).