[pushed] gdb: add forward declarations in maint.h

Message ID 20250411181801.1421884-1-simon.marchi@polymtl.ca
State New
Headers
Series [pushed] gdb: add forward declarations in maint.h |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-arm fail Patch failed to apply
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 fail Patch failed to apply

Commit Message

Simon Marchi April 11, 2025, 6:17 p.m. UTC
  From: Simon Marchi <simon.marchi@polymtl.ca>

Editing maint.h with clangd shows some errors about obj_section and
objfile being unknown.  Add some forward declarations for them.

Change-Id: Ic4dd12a371198fdf740892254a8f2c1fae2846b9
---
 gdb/maint.h | 3 +++
 1 file changed, 3 insertions(+)


base-commit: 52c5091dfb18113156d645500ab86b600f1cdfe0
  

Patch

diff --git a/gdb/maint.h b/gdb/maint.h
index 434d2a90db4e..0ddc62bb9e96 100644
--- a/gdb/maint.h
+++ b/gdb/maint.h
@@ -22,6 +22,9 @@ 
 #include "gdbsupport/run-time-clock.h"
 #include <chrono>
 
+struct obj_section;
+struct objfile;
+
 extern void set_per_command_time (int);
 
 extern void set_per_command_space (int);