]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: include cli/cli-style.h in darwin-nat.c
authorSimon Marchi <simon.marchi@polymtl.ca>
Wed, 29 Jan 2025 15:45:31 +0000 (10:45 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Wed, 29 Jan 2025 15:47:34 +0000 (10:47 -0500)
PR 32610 says:

  File gdb/darwin-nat.c is missing an #include statement of
  "cli/cli-style.h". It is needed because there is a reference to class
  object command_style in the .c file.

I'm not able to build-test this change (I only have access to arm64
macos machines, which GDB doesn't support yet), but I don't think I'm
doing things worse by adding this.

Change-Id: I2a169664ff91b92caf27cb084334f2eb4df46aa5

gdb/darwin-nat.c

index e1ea020bd5c1e5a5fe3e825785453b1574cf0195..ea473446bc2ba700babc6d3e2efecf7d29a67bad 100644 (file)
@@ -26,6 +26,7 @@
 #include "symtab.h"
 #include "objfiles.h"
 #include "cli/cli-cmds.h"
+#include "cli/cli-style.h"
 #include "gdbcore.h"
 #include "gdbthread.h"
 #include "regcache.h"