aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2025-04-11 13:07:26 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2025-04-11 13:07:26 -0400
commit7fa205d2fe280f331ff08de24198229fa864014f (patch)
treed18b8ab1cc0c4d3e9bfd82e1f900a468ca41ef36 /gdb
parent52c5091dfb18113156d645500ab86b600f1cdfe0 (diff)
downloadbinutils-7fa205d2fe280f331ff08de24198229fa864014f.zip
binutils-7fa205d2fe280f331ff08de24198229fa864014f.tar.gz
binutils-7fa205d2fe280f331ff08de24198229fa864014f.tar.bz2
gdb: add forward declarations in maint.h
Editing maint.h with clangd shows some errors about obj_section and objfile being unknown. Add some forward declarations for them. Change-Id: Ic4dd12a371198fdf740892254a8f2c1fae2846b9
Diffstat (limited to 'gdb')
-rw-r--r--gdb/maint.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/maint.h b/gdb/maint.h
index 434d2a9..0ddc62b 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);