Skip to content

include: sof: debug: gdb: gdb.h: Add ifdef guard for symbol definition - #7460

Merged
dbaluta merged 1 commit into
thesofproject:mainfrom
LaurentiuM1234:gdb_guard_support
Apr 20, 2023
Merged

dbaluta merged 1 commit into
thesofproject:mainfrom
LaurentiuM1234:gdb_guard_support

Conversation

@LaurentiuM1234

@LaurentiuM1234 LaurentiuM1234 commented Apr 19, 2023 •

Copy link
Copy Markdown
Contributor

GDB debug should only be used when CONFIG_DBG_DEBUG=y. On ARM64 platforms with Zephyr, including this header will cause compilation errors due to the fact that they don't have an arch/ entry. This commit fixes this issue by conditionally defining all symbols based on CONFIG_GDB_DEBUG.

Please see #7192 for PR dependency graph.

GDB debug should only be used when CONFIG_DBG_DEBUG=y. On ARM64
platforms with Zephyr, including this header will cause compilation
errors due to the fact that they don't have an arch/ entry. This
commit fixes this issue by conditionally defining all symbols based
on CONFIG_GDB_DEBUG.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
@dbaluta
dbaluta merged commit 0696f7e into thesofproject:main Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants