[1/6] gdb: add includes in target-debug.h
Checks
Context |
Check |
Description |
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_gdb_build--master-arm |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_gdb_check--master-arm |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_gdb_check--master-aarch64 |
success
|
Testing passed
|
Commit Message
From: Simon Marchi <simon.marchi@efficios.com>
Editing target-debug.h with clangd shows a bunch of errors. Add some
includes to fix that (make target-debug.h include what it uses).
Change-Id: I49075a171e6875fa516d6b2ce56b4a03ac7b3376
---
gdb/target-debug.h | 4 ++++
1 file changed, 4 insertions(+)
base-commit: 56f4dea207d690fff70a3ccb6fe10ebe1e4697c0
Comments
>>>>> "Simon" == Simon Marchi <simon.marchi@polymtl.ca> writes:
Simon> From: Simon Marchi <simon.marchi@efficios.com>
Simon> Editing target-debug.h with clangd shows a bunch of errors. Add some
Simon> includes to fix that (make target-debug.h include what it uses).
I think generally this kind of thing is obvious, unless adding the
include is somehow problematic or weird.
Tom
On 2024-04-19 15:06, Tom Tromey wrote:
>>>>>> "Simon" == Simon Marchi <simon.marchi@polymtl.ca> writes:
>
> Simon> From: Simon Marchi <simon.marchi@efficios.com>
> Simon> Editing target-debug.h with clangd shows a bunch of errors. Add some
> Simon> includes to fix that (make target-debug.h include what it uses).
>
> I think generally this kind of thing is obvious, unless adding the
> include is somehow problematic or weird.
Ok, thanks, I'll keep that in mind for the following times (I think
there will be more of these).
Simon
@@ -38,6 +38,10 @@
more simply done there, and target_xfer_partial additionally
bypasses the debug target. */
+#include "gdbsupport/x86-xstate.h"
+#include "target.h"
+#include "target/wait.h"
+#include "target/waitstatus.h"
/* Helper macro. */