diff options
| author | Guinevere Larsen <guinevere@redhat.com> | 2025-01-03 14:59:16 -0300 |
|---|---|---|
| committer | Guinevere Larsen <guinevere@redhat.com> | 2025-06-03 13:36:32 -0300 |
| commit | 5cbfbe4263a5347501bbe14b53b30cf7c09a9f62 (patch) | |
| tree | a00196f3b08d88e431aa9cdff7724fbce88971af /gdb/python/python-internal.h | |
| parent | 6844666471cca07bd1eaa8f13af74eda7f373d90 (diff) | |
| download | binutils-5cbfbe4263a5347501bbe14b53b30cf7c09a9f62.zip binutils-5cbfbe4263a5347501bbe14b53b30cf7c09a9f62.tar.gz binutils-5cbfbe4263a5347501bbe14b53b30cf7c09a9f62.tar.bz2 | |
gdb: wrap mdebug debuginfo reading in ifdefs
This commit aims to allow a user to enable or disable mdebug support at
compilation time. To do that, a new configure option is added, called
--enable-gdb-mdebug-support (and the accompanying --disable version). By
default, support is enabled, and if a user decides to disable support,
the file mdebugread.c won't be compiled in the final binary, and the
macro MDEBUG_FORMAT_AVAILABLE won't be defined.
That macro is used to control the definitions of mdebug reading, either
the actual definition in mdebugread.c, or a static inline version that
only emits the following warning:
> No mdebug support available.
Ideally, we'd like to guard the entirity of mdebugread in the macro, but
the alpha-mdebug-tdep file uses those directly, and I don't think we
should restrict alpha hosts to requiring that debug format compiled in,
nor do I understand the tdep file enough to be comfortable disentangling
the requirements.
Reviewed-By: Eli Zaretskii <eliz@gnu.org>
Approved-By: Andrew Burgess <aburgess@redhat.com>
Diffstat (limited to 'gdb/python/python-internal.h')
0 files changed, 0 insertions, 0 deletions
