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

Message ID 20200805110934.6225-3-shahab.vahedi@gmail.com
State New
Headers show
Series
  • arc: Add GNU/Linux support
Related show

Commit Message

Christian Biesinger via Gdb-patches Aug. 5, 2020, 11:09 a.m.
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(+)

-- 
2.28.0

Patch

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