[PR,gdb/17984] Fix GDB build fail on Aarch64 when -fno-common is enabled.
Commit Message
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
Comments
On 02/17/2015 08:00 AM, Maxim Ostapenko wrote:
> 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?
Done. Thanks again.
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.
@@ -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
@@ -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;
}
@@ -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