Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Maxim Ostapenko <m.ostapenko@partner.samsung.com>
To: Pedro Alves <palves@redhat.com>, gdb-patches@sourceware.org
Cc: Slava Garbuzov <v.garbuzov@samsung.com>,
	Yury Gribov <y.gribov@samsung.com>
Subject: Re: [PATCH][PR gdb/17984] Fix GDB build fail on Aarch64 when -fno-common is enabled.
Date: Tue, 17 Feb 2015 08:01:00 -0000	[thread overview]
Message-ID: <54E2F52D.3060007@partner.samsung.com> (raw)
In-Reply-To: <54E27412.8010406@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 148 bytes --]

Pedro,

thanks for review. I'm sorry, but I'm unable to commit the patch, I have 
no write access to GDB. Could you commit this one for me?

-Maxim

[-- Attachment #2: Fix-GDB-build-fail-on-Aarch64-when-fno-common-is-ena.diff --]
[-- Type: text/x-patch, Size: 1682 bytes --]

Fix GDB build fail on Aarch64 when -fno-common is enabled.

gdb/

	PR gdb/17984
	* aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
	(aarch64_linux_read_description): Remove initialize_tdesc_aarch64 call.
	* aarch64-tdep.h: Add struct target_desc *tdesc_aarch64
	declaration.

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0bd0792..d2352c9 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,11 @@
+2015-02-17  Max Ostapenko  <m.ostapenko@partner.samsung.com>
+
+	PR gdb/17984
+	* aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
+	(aarch64_linux_read_description): Remove initialize_tdesc_aarch64 call.
+	* aarch64-tdep.h: Add struct target_desc *tdesc_aarch64
+	declaration.
+
 2015-02-13  Doug Evans  <dje@google.com>
 
 	* cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
diff --git a/gdb/aarch64-linux-nat.c b/gdb/aarch64-linux-nat.c
index c58f68a..aae4853 100644
--- a/gdb/aarch64-linux-nat.c
+++ b/gdb/aarch64-linux-nat.c
@@ -37,8 +37,6 @@
 
 #include "gregset.h"
 
-#include "features/aarch64.c"
-
 /* Defines ps_err_e, struct ps_prochandle.  */
 #include "gdb_proc_service.h"
 
@@ -830,7 +828,6 @@ aarch64_linux_child_post_startup_inferior (struct target_ops *self,
 static const struct target_desc *
 aarch64_linux_read_description (struct target_ops *ops)
 {
-  initialize_tdesc_aarch64 ();
   return tdesc_aarch64;
 }
 
diff --git a/gdb/aarch64-tdep.h b/gdb/aarch64-tdep.h
index 6a7794d..976ad32 100644
--- a/gdb/aarch64-tdep.h
+++ b/gdb/aarch64-tdep.h
@@ -90,4 +90,6 @@ struct gdbarch_tdep
   struct type *vnb_type;
 };
 
+extern struct target_desc *tdesc_aarch64;
+
 #endif /* aarch64-tdep.h */
-- 
1.8.5.2.2930.gf745acb


  reply	other threads:[~2015-02-17  8:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-16 17:25 Maxim Ostapenko
2015-02-16 22:50 ` Pedro Alves
2015-02-17  8:01   ` Maxim Ostapenko [this message]
2015-02-17  9:46     ` 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=54E2F52D.3060007@partner.samsung.com \
    --to=m.ostapenko@partner.samsung.com \
    --cc=gdb-patches@sourceware.org \
    --cc=palves@redhat.com \
    --cc=v.garbuzov@samsung.com \
    --cc=y.gribov@samsung.com \
    /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