Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] gdb: fix xtensa build with custom overlay
@ 2015-04-17 16:12 Max Filippov
  2015-04-17 16:21 ` Pedro Alves
  0 siblings, 1 reply; 4+ messages in thread
From: Max Filippov @ 2015-04-17 16:12 UTC (permalink / raw)
  To: gdb-patches
  Cc: Maxim Grigoriev, Woody LaRue, Marc Gauthier, linux-xtensa,
	Pedro Alves, Max Filippov

The commit 14e361d7aa3bbd8601b0457ee8558344e444c651 ("xtensa-config.c:
missing defs.h include") fixed the build of default xtensa configuration
by including defs.h in the beginning of xtensa-config.c. Unfortunately
this fix doesn't work when gdb is configured for another xtensa core, as
the file xtensa-config.c is a part of configuration overlay and it gets
overwritten. To fix the build for all existing configurations include
defs.h into gdb/xtensa-tdep.h, where the issue (reference to undeclared
uint32_t) actually is.

2015-04-17  Max Filippov  <jcmvbkbc@gmail.com>
gdb/
	* xtensa-tdep.h: Include defs.h
---
 gdb/xtensa-tdep.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gdb/xtensa-tdep.h b/gdb/xtensa-tdep.h
index adacaf8..4ebe6de 100644
--- a/gdb/xtensa-tdep.h
+++ b/gdb/xtensa-tdep.h
@@ -21,6 +21,8 @@
 /* XTENSA_TDEP_VERSION can/should be changed along with XTENSA_CONFIG_VERSION
    whenever the "tdep" structure changes in an incompatible way.  */
 
+#include "defs.h"
+
 #define XTENSA_TDEP_VERSION 0x60
 
 /*  Xtensa register type.  */
-- 
1.8.1.4


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

end of thread, other threads:[~2015-04-17 17:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-17 16:12 [PATCH] gdb: fix xtensa build with custom overlay Max Filippov
2015-04-17 16:21 ` Pedro Alves
2015-04-17 16:46   ` Max Filippov
2015-04-17 17:24     ` Pedro Alves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox