Skip to content

Commit d613347

Browse files
sylvioalvesstephanosio
authored andcommitted
overlays: xtensa_espressif_esp32s3: 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: Sylvio Alves <[email protected]>
1 parent 22fb292 commit d613347

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

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

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ const xtensa_mask_t xtensa_mask42 = { 4, xtensa_submask42 };
119119

120120

121121
/* Register map. */
122-
xtensa_register_t rmap[] =
122+
static xtensa_register_t rmap[] =
123123
{
124124
/* idx ofs bi sz al targno flags cp typ group name */
125125
XTREG( 0, 0,32, 4, 4,0x0020,0x0006,-2, 9,0x2100,pc, 0,0,0,0,0,0)
@@ -493,9 +493,4 @@ xtensa_register_t rmap[] =
493493
XTREG_END
494494
};
495495

496-
497-
498-
#ifdef XTENSA_CONFIG_INSTANTIATE
499-
XTENSA_CONFIG_INSTANTIATE(rmap,16)
500-
#endif
501-
496+
xtensa_gdbarch_tdep xtensa_tdep (rmap);

0 commit comments

Comments
 (0)