Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: Joel Brobecker <brobecker@adacore.com>, gdb-patches@sourceware.org
Subject: Re: [RFA] Fix gdbserver build failure on arm-android.
Date: Thu, 14 May 2015 10:32:00 -0000	[thread overview]
Message-ID: <555479CC.9030808@redhat.com> (raw)
In-Reply-To: <1431100919-8245-1-git-send-email-brobecker@adacore.com>

On 05/08/2015 05:01 PM, Joel Brobecker wrote:
> Hello,
> 
> The following patch...
> 
> | proc-service, extern "C"
> |
> | libthread_db.so calls symbols in the client (GDB), through the
> | proc-service interface.  These routines must have extern "C" linkage
> | so their symbol names are not mangled when GDB is built as a C++
> | program.  On the GDBserver side, we were missing fallback declarations for
> | all these symbols.
> |
> | gdb/ChangeLog:
> |
> |     * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
> |
> | gdb/gdbserver/ChangeLog:
> | 2015-02-27  Pedro Alves  <palves@redhat.com>
> |
> |     * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
> |     [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
> |     [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
> |     ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
> |     (ps_lsetfpregs, ps_getpid)
> |     (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
> |     (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
> |     (ps_lsetxregs, ps_plog): Declare.
> 
> ... added a number of declarations which do not compile when cross-
> compiling GDBserver on arm-android. The problem comes from type
> prfpregset_t not being declared:
> 
>     /[...]/gdbserver/gdb_proc_service.h:98:47:
>     error: unknown type name 'prfpregset_t'
> 
> After searching through the includes of the install we have,
> I could not find that type being declared anywhere. So I did
> the same as for prgregset_t, and created the typedef if the
> type isn't declared.
> 
> gdb/gdbserver/ChangeLog:
> 
>         * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
>         * configure, config.in: Regenerate.
>         * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
>         Declare typedef.
> 
> OK to commit?

OK.

BTW, do you also trip on this one? :

 https://sourceware.org/ml/gdb/2015-04/msg00025.html

Thanks,
Pedro Alves


  reply	other threads:[~2015-05-14 10:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-08 16:02 Joel Brobecker
2015-05-14 10:32 ` Pedro Alves [this message]
2015-05-14 14:17   ` Joel Brobecker
2015-05-15 10:57     ` Pedro Alves

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=555479CC.9030808@redhat.com \
    --to=palves@redhat.com \
    --cc=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox