Skip to content

Commit 2849d32

Browse files
committed
overlays: xtensa_espressif_esp32s2: gdb: Update xtensa-config.c
This commit updates the `xtensa_tdep` global variable definition in the GDB `xtensa-config.c` to use the new type introduced in GDB 12.1. Signed-off-by: Stephanos Ioannidis <[email protected]>
1 parent 194b204 commit 2849d32

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

overlays/xtensa_espressif_esp32s2/gdb/gdb/xtensa-config.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const xtensa_mask_t xtensa_mask6 = { 1, xtensa_submask6 };
4747

4848

4949
/* Register map. */
50-
xtensa_register_t rmap[] =
50+
static xtensa_register_t rmap[] =
5151
{
5252
/* idx ofs bi sz al targno flags cp typ group name */
5353
XTREG( 0, 0,32, 4, 4,0x0020,0x0006,-2, 9,0x2100,pc, 0,0,0,0,0,0)
@@ -268,9 +268,4 @@ xtensa_register_t rmap[] =
268268
XTREG_END
269269
};
270270

271-
272-
273-
#ifdef XTENSA_CONFIG_INSTANTIATE
274-
XTENSA_CONFIG_INSTANTIATE(rmap,12)
275-
#endif
276-
271+
xtensa_gdbarch_tdep xtensa_tdep (rmap);

0 commit comments

Comments
 (0)