]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: add forward declarations in maint.h
authorSimon Marchi <simon.marchi@polymtl.ca>
Fri, 11 Apr 2025 17:07:26 +0000 (13:07 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Fri, 11 Apr 2025 17:07:26 +0000 (13:07 -0400)
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

index 434d2a90db4ec62bb4d3087b4dfd7ddf6a60463b..0ddc62bb9e963fa96edc819f4896a25c9e545405 100644 (file)
@@ -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);