]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Continuation of support for target description parameters
authorThiago Jung Bauermann <thiago.bauermann@linaro.org>
Fri, 18 Apr 2025 01:36:21 +0000 (22:36 -0300)
committerThiago Jung Bauermann <thiago.bauermann@linaro.org>
Sun, 20 Apr 2025 02:48:48 +0000 (23:48 -0300)
commit6b6cc90aee5b6c57e1fae50c4aee3bf2cd9f95e1
tree037651ad1ec4940973a10653921c00a26b64b372
parent991fa8fdf4f78f5dd091adab4eb0864fe49ab2d3
Continuation of support for target description parameters

With this commit, it's possible to declare parameters in a feature, and
generate C and XML feature files.

The regcache also supports using parameters for variable-size registers,
and they can be "unwound" from the sentinel frame.

There's a new gdbarch_fetch_tdesc_parameter hook to request the value of
a parameter from the architecture. Maybe a target hook will be needed
too, for remote debugging.

There's generic support for unwinding parameters from a frame, but for
now only the sentinel frame allows it.

Remote debugging a target which uses parameters in the target
description isn't yet supported.
20 files changed:
gdb/arch-utils.c
gdb/dwarf2/loc.c
gdb/features/gdb-target.dtd
gdb/frame-unwind.c
gdb/frame-unwind.h
gdb/frame.c
gdb/frame.h
gdb/gdbarch-gen.c
gdb/gdbarch-gen.h
gdb/gdbarch_components.py
gdb/gdbtypes.c
gdb/gdbtypes.h
gdb/regcache.c
gdb/regcache.h
gdb/sentinel-frame.c
gdb/target-descriptions.c
gdb/target-descriptions.h
gdb/xml-tdesc.c
gdbsupport/tdesc.cc
gdbsupport/tdesc.h