Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: hjl@sourceware.org
Cc: GDB Patches <gdb-patches@sourceware.org>
Subject: Fix AMD64 GNU/Linux build [Re: src/gdb ChangeLog amd64-linux-tdep.c]
Date: Sat, 12 May 2012 08:56:00 -0000	[thread overview]
Message-ID: <4FAE258E.3040205@redhat.com> (raw)
In-Reply-To: <20120511223127.4194.qmail@sourceware.org>

On 05/11/2012 11:31 PM, hjl@sourceware.org wrote:

> CVSROOT:	/cvs/src
> Module name:	src
> Changes by:	hjl@sourceware.org	2012-05-11 22:31:27
> 
> Modified files:
> 	gdb            : ChangeLog amd64-linux-tdep.c 
> 
> Log message:
> 	Include 32-linux.c and x32-avx-linux.c
> 	
> 	* amd64-linux-tdep.c: Include features/i386/x32-linux.c
> 	and features/i386/x32-avx-linux.c.
> 
> Patches:
> http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.14240&r2=1.14241
> http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/amd64-linux-tdep.c.diff?cvsroot=src&r1=1.47&r2=1.48
> 


gcc -g3 -O0   -I. -I../../src/gdb -I../../src/gdb/common -I../../src/gdb/config -DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H -I../../src/gdb/../include/opcode -I../../src/gdb/../opcodes/.. -I../../src/gdb/../readline/.. -I../bfd -I../../src/gdb/../bfd -I../../src/gdb/../include -I../libdecnumber -I../../src/gdb/../libdecnumber  -I../../src/gdb/gnulib/import -Ibuild-gnulib/import   -DTUI=1  -I/usr/include/python2.7 -I/usr/include/python2.7 -Wall -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral -Wno-pointer-sign -Wno-unused -Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts -Wmissing-prototypes -Werror -c -o amd64-linux-tdep.o -MT amd64-linux-tdep.o -MMD -MP -MF .deps/amd64-linux-tdep.Tpo ../../src/gdb/amd64-linux-tdep.c
../../src/gdb/features/i386/x32-linux.c:9:1: error: ‘initialize_tdesc_x32_linux’ defined but not used [-Werror=unused-function]
../../src/gdb/features/i386/x32-avx-linux.c:9:1: error: ‘initialize_tdesc_x32_avx_linux’ defined but not used [-Werror=unused-function]
cc1: all warnings being treated as errors
make: *** [amd64-linux-tdep.o] Error 1

Calls to initialize the newly included tdescs were missing.  Applied.

2012-05-12  Pedro Alves  <palves@redhat.com>

	* amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
	initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
---
 gdb/amd64-linux-tdep.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/gdb/amd64-linux-tdep.c b/gdb/amd64-linux-tdep.c
index cfe6e4b..22a3464 100644
--- a/gdb/amd64-linux-tdep.c
+++ b/gdb/amd64-linux-tdep.c
@@ -1557,4 +1557,6 @@ _initialize_amd64_linux_tdep (void)
   /* Initialize the Linux target description.  */
   initialize_tdesc_amd64_linux ();
   initialize_tdesc_amd64_avx_linux ();
+  initialize_tdesc_x32_linux ();
+  initialize_tdesc_x32_avx_linux ();
 }


       reply	other threads:[~2012-05-12  8:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20120511223127.4194.qmail@sourceware.org>
2012-05-12  8:56 ` Pedro Alves [this message]
2012-05-12 13:48   ` H.J. Lu

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=4FAE258E.3040205@redhat.com \
    --to=palves@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=hjl@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