[PATCH v5 2/4] arc: Add inclusion of "gdbarch.h" in "arc-tdep.h"

Shahab Vahedi shahab.vahedi@gmail.com
Tue Aug 4 08:57:40 GMT 2020


From: Shahab Vahedi <shahab@synopsys.com>

The "arc-tdep.h" makes use of definitions in "gdbarch.h", but it
does not include it explicitly.  I have piggy backed this fix
in another commit [1], but I was asked to do it separately [2].

[1] arc: Add hardware loop detection
https://sourceware.org/pipermail/gdb-patches/2020-July/170800.html

[2] Simon's remarks to "arc: Add hardware loop detection"
https://sourceware.org/pipermail/gdb-patches/2020-August/170993.html

gdb/ChangeLog:

	* arc-tdep.h: Include "gdbarch.h".
---
 gdb/arc-tdep.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gdb/arc-tdep.h b/gdb/arc-tdep.h
index 6ca759a661d..5968abd4600 100644
--- a/gdb/arc-tdep.h
+++ b/gdb/arc-tdep.h
@@ -23,6 +23,7 @@
 
 /* Need disassemble_info.  */
 #include "dis-asm.h"
+#include "gdbarch.h"
 #include "arch/arc.h"
 
 /* To simplify GDB code this enum assumes that internal regnums should be same
-- 
2.28.0



More information about the Gdb-patches mailing list