mem_ap: fix GDB connections
commit5c395fdef42a5750852ea0fc0abd944cf303a39b
authorAntonio Borneo <borneo.antonio@gmail.com>
Sun, 25 Feb 2024 11:22:44 +0000 (25 12:22 +0100)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 9 Mar 2024 11:03:49 +0000 (9 11:03 +0000)
treec7f37a5e3f83bc688696bca5f4221e9d67d853ad
parent61e19349b2b83f844e9729a76ad5698e6c77c686
mem_ap: fix GDB connections

After commit d9b2607ca094 ("gdb_server: support sparse register
maps"), GDB crashes while requesting the value of 'cpsr' because
the fake register is tagged as not existing.

Change the logic and set all register as existing, while still
limiting the list for the initial GDB request at connect.

Change-Id: I1c4e274c06147683db2a59a8920ae5ccd863e15c
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/8163
Tested-by: jenkins
src/target/mem_ap.c