[PATCH v5 01/18] gdbstub, mcdstub: file and build structure adapted to accomodate for the mcdstub

2023-12-20 Thread Nicolas Eder
.h F: include/gdbstub/* F: gdb-xml/ @@ -2963,6 +2963,15 @@ F: tests/tcg/multiarch/gdbstub/* F: scripts/feature_to_c.py F: scripts/probe-gdb-support.py +MCD stub +M: Nicolas Eder +R: Alex Bennée +S: Maintained +F: debug/mcdstub/* +F: debug/common/* +F: include/mcdstub/* +F: include/qemu/debug.h +

[PATCH v5 04/18] gdbstub: DebugClass added to system mode.

2023-12-20 Thread Nicolas Eder
This class is used to abstract debug features between different debuggers --- debug/common/debug.c | 33 + debug/common/meson.build | 1 + debug/gdbstub/system.c | 18 ++ debug/meson.build| 1 + include/hw/boards.h | 1 + includ

[PATCH v5 11/18] mcdstub: system and core queries added

2023-12-20 Thread Nicolas Eder
--- debug/mcdstub/arm_mcdstub.c | 243 debug/mcdstub/mcdstub.c | 370 ++- debug/mcdstub/meson.build| 2 +- include/mcdstub/arm_mcdstub.h| 85 +++ include/mcdstub/mcdstub.h| 5 - include/mcdstub/mcdstub_comm

[PATCH v5 08/18] cutils: qemu_strtou32 function added

2023-12-20 Thread Nicolas Eder
--- include/qemu/cutils.h | 2 ++ util/cutils.c | 30 ++ 2 files changed, 32 insertions(+) diff --git a/include/qemu/cutils.h b/include/qemu/cutils.h index 5ab1a4ffb0..14f492ba61 100644 --- a/include/qemu/cutils.h +++ b/include/qemu/cutils.h @@ -158,6 +158,8 @

[PATCH v5 13/18] mcdstub: go, step and break added

2023-12-20 Thread Nicolas Eder
--- debug/mcdstub/mcdstub.c | 218 1 file changed, 218 insertions(+) diff --git a/debug/mcdstub/mcdstub.c b/debug/mcdstub/mcdstub.c index e90fc81814..ee52830a2c 100644 --- a/debug/mcdstub/mcdstub.c +++ b/debug/mcdstub/mcdstub.c @@ -28,6 +28,7 @@ #include

[PATCH v5 02/18] gdbstub: hex conversion functions moved to cutils.h

2023-12-20 Thread Nicolas Eder
--- debug/gdbstub/gdbstub.c | 19 ++- debug/gdbstub/internals.h | 26 -- include/qemu/cutils.h | 30 ++ 3 files changed, 40 insertions(+), 35 deletions(-) diff --git a/debug/gdbstub/gdbstub.c b/debug/gdbstub/gdbstub.c index

[PATCH v5 07/18] mcdstub: mcdserver initialization functions added

2023-12-20 Thread Nicolas Eder
--- debug/mcdstub/mcdstub.c | 154 1 file changed, 154 insertions(+) diff --git a/debug/mcdstub/mcdstub.c b/debug/mcdstub/mcdstub.c index 4d8d5d956a..0df436719e 100644 --- a/debug/mcdstub/mcdstub.c +++ b/debug/mcdstub/mcdstub.c @@ -22,9 +22,12 @@ #include

[PATCH v5 18/18] mcdstub: break/watchpoints added

2023-12-20 Thread Nicolas Eder
--- debug/mcdstub/mcdstub.c | 150 1 file changed, 150 insertions(+) diff --git a/debug/mcdstub/mcdstub.c b/debug/mcdstub/mcdstub.c index 954d06c0b7..d2c505c0d6 100644 --- a/debug/mcdstub/mcdstub.c +++ b/debug/mcdstub/mcdstub.c @@ -1177,6 +1177,134 @@ stat

[PATCH v5 00/18] first version of mcdstub

2023-12-20 Thread Nicolas Eder
atchpoints. = Signed-off-by: Nicolas Eder Nicolas Eder (18): gdbstub, mcdstub: file and build structure adapted to accomodate for the mcdstub gdbstub: hex conversion functions moved to cutils.h gdbstub: GDBRegisterState moved to gdbstub.h so it can be used outside of t

[PATCH v5 06/18] mcdstub: -mcd start option added, mcd specific defines added

2023-12-20 Thread Nicolas Eder
--- debug/mcdstub/mcdstub.c | 203 +++ debug/mcdstub/meson.build| 12 ++ debug/meson.build| 1 + include/mcdstub/mcdstub.h| 152 +++ include/mcdstub/mcdstub_common.h | 46 +++ qemu-options.hx

[PATCH v5 10/18] mcdstub: open and close server functions added

2023-12-20 Thread Nicolas Eder
--- debug/mcdstub/mcdstub.c | 299 1 file changed, 214 insertions(+), 85 deletions(-) diff --git a/debug/mcdstub/mcdstub.c b/debug/mcdstub/mcdstub.c index 642f3c2826..45daa38689 100644 --- a/debug/mcdstub/mcdstub.c +++ b/debug/mcdstub/mcdstub.c @@ -65,6 +6

[PATCH v5 12/18] mcdstub: all core specific queries added

2023-12-20 Thread Nicolas Eder
--- debug/mcdstub/mcdstub.c | 365 1 file changed, 365 insertions(+) diff --git a/debug/mcdstub/mcdstub.c b/debug/mcdstub/mcdstub.c index 4095b3f8ce..e90fc81814 100644 --- a/debug/mcdstub/mcdstub.c +++ b/debug/mcdstub/mcdstub.c @@ -893,6 +893,301 @@ static

[PATCH v5 15/18] mcdstub: skeleton for reset handling added

2023-12-20 Thread Nicolas Eder
--- debug/mcdstub/mcdstub.c | 46 + 1 file changed, 46 insertions(+) diff --git a/debug/mcdstub/mcdstub.c b/debug/mcdstub/mcdstub.c index fb13958108..df97eca65b 100644 --- a/debug/mcdstub/mcdstub.c +++ b/debug/mcdstub/mcdstub.c @@ -826,6 +826,37 @@ static v

[PATCH v5 14/18] mcdstub: state query added

2023-12-20 Thread Nicolas Eder
--- debug/mcdstub/mcdstub.c | 44 + 1 file changed, 44 insertions(+) diff --git a/debug/mcdstub/mcdstub.c b/debug/mcdstub/mcdstub.c index ee52830a2c..fb13958108 100644 --- a/debug/mcdstub/mcdstub.c +++ b/debug/mcdstub/mcdstub.c @@ -1406,6 +1406,43 @@ static

[PATCH v5 03/18] gdbstub: GDBRegisterState moved to gdbstub.h so it can be used outside of the gdbstub

2023-12-20 Thread Nicolas Eder
--- debug/gdbstub/gdbstub.c | 8 include/exec/gdbstub.h | 8 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/debug/gdbstub/gdbstub.c b/debug/gdbstub/gdbstub.c index f43d4355c0..5df7841878 100644 --- a/debug/gdbstub/gdbstub.c +++ b/debug/gdbstub/gdbstub.c @@ -45,14

[PATCH v5 09/18] mcdstub: TCP packet plumbing added

2023-12-20 Thread Nicolas Eder
--- debug/mcdstub/mcdstub.c | 422 1 file changed, 422 insertions(+) diff --git a/debug/mcdstub/mcdstub.c b/debug/mcdstub/mcdstub.c index 0df436719e..642f3c2826 100644 --- a/debug/mcdstub/mcdstub.c +++ b/debug/mcdstub/mcdstub.c @@ -87,6 +87,320 @@ static i

[PATCH v5 16/18] mcdstub: register access added

2023-12-20 Thread Nicolas Eder
--- debug/mcdstub/mcdstub.c | 161 1 file changed, 161 insertions(+) diff --git a/debug/mcdstub/mcdstub.c b/debug/mcdstub/mcdstub.c index df97eca65b..df98453558 100644 --- a/debug/mcdstub/mcdstub.c +++ b/debug/mcdstub/mcdstub.c @@ -857,6 +857,146 @@ static

[PATCH v5 17/18] mcdstub: memory access added

2023-12-20 Thread Nicolas Eder
--- debug/mcdstub/arm_mcdstub.c | 28 + debug/mcdstub/mcdstub.c | 203 ++ include/mcdstub/arm_mcdstub.h | 15 +++ 3 files changed, 246 insertions(+) diff --git a/debug/mcdstub/arm_mcdstub.c b/debug/mcdstub/arm_mcdstub.c index ce5264a617..6eaf2d754f 10

[PATCH v5 05/18] mcdstub: memory helper functions added

2023-12-20 Thread Nicolas Eder
--- include/exec/cpu-common.h | 3 +++ include/exec/memory.h | 9 + system/memory.c | 11 +++ system/physmem.c | 26 ++ 4 files changed, 49 insertions(+) diff --git a/include/exec/cpu-common.h b/include/exec/cpu-common.h index 41115

[PATCH v4 06/17] mcdstub: -mcd start option added, mcd specific defines added

2023-12-07 Thread Nicolas Eder
--- debug/mcdstub/mcdstub.c | 201 +++ debug/mcdstub/meson.build| 12 ++ debug/meson.build| 1 + include/mcdstub/mcdstub.h| 152 +++ include/mcdstub/mcdstub_common.h | 46 +++ qemu-options.hx

[PATCH v4 16/17] mcdstub: register access added

2023-12-07 Thread Nicolas Eder
--- debug/mcdstub/arm_mcdstub.c | 28 +++ debug/mcdstub/mcdstub.c | 369 ++ include/mcdstub/arm_mcdstub.h | 15 ++ 3 files changed, 412 insertions(+) diff --git a/debug/mcdstub/arm_mcdstub.c b/debug/mcdstub/arm_mcdstub.c index f14e677480..6d46e1bd7a 10064

[PATCH v4 00/17] first version of mcdstub

2023-12-07 Thread Nicolas Eder
atchpoints. = Signed-off-by: Nicolas Eder Nicolas Eder (17): gdbstub, mcdstub: file and build structure adapted to accomodate for the mcdstub gdbstub: hex conversion functions moved to cutils.h gdbstub: GDBRegisterState moved to gdbstub.h so it can be used outside of t

[PATCH v4 05/17] mcdstub: memory helper functions added

2023-12-07 Thread Nicolas Eder
--- include/exec/cpu-common.h | 3 +++ include/exec/memory.h | 9 + system/memory.c | 11 +++ system/physmem.c | 26 ++ 4 files changed, 49 insertions(+) diff --git a/include/exec/cpu-common.h b/include/exec/cpu-common.h index 41115

[PATCH v4 11/17] mcdstub: system and core queries added

2023-12-07 Thread Nicolas Eder
--- debug/mcdstub/arm_mcdstub.c | 243 debug/mcdstub/mcdstub.c | 373 ++- debug/mcdstub/meson.build| 2 +- include/mcdstub/arm_mcdstub.h| 85 +++ include/mcdstub/mcdstub.h| 5 - include/mcdstub/mcdstub_comm

[PATCH v4 03/17] gdbstub: GDBRegisterState moved to gdbstub.h so it can be used outside of the gdbstub

2023-12-07 Thread Nicolas Eder
--- debug/gdbstub/gdbstub.c | 8 include/exec/gdbstub.h | 8 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/debug/gdbstub/gdbstub.c b/debug/gdbstub/gdbstub.c index f43d4355c0..5df7841878 100644 --- a/debug/gdbstub/gdbstub.c +++ b/debug/gdbstub/gdbstub.c @@ -45,14

[PATCH v4 01/17] gdbstub, mcdstub: file and build structure adapted to accomodate for the mcdstub

2023-12-07 Thread Nicolas Eder
.h F: include/gdbstub/* F: gdb-xml/ @@ -2963,6 +2963,15 @@ F: tests/tcg/multiarch/gdbstub/* F: scripts/feature_to_c.py F: scripts/probe-gdb-support.py +MCD stub +M: Nicolas Eder +R: Alex Bennée +S: Maintained +F: debug/mcdstub/* +F: debug/common/* +F: include/mcdstub/* +F: include/qemu/debug.h +

[PATCH v4 13/17] mcdstub: go, step and break added

2023-12-07 Thread Nicolas Eder
--- debug/mcdstub/mcdstub.c | 220 1 file changed, 220 insertions(+) diff --git a/debug/mcdstub/mcdstub.c b/debug/mcdstub/mcdstub.c index a5256eeb56..83582f7fa5 100644 --- a/debug/mcdstub/mcdstub.c +++ b/debug/mcdstub/mcdstub.c @@ -28,6 +28,7 @@ #include

[PATCH v4 04/17] gdbstub: DebugClass added to system mode.

2023-12-07 Thread Nicolas Eder
This class is used to abstract debug features between different debuggers --- debug/common/debug.c | 33 + debug/common/meson.build | 1 + debug/gdbstub/system.c | 18 ++ debug/meson.build| 1 + include/hw/boards.h | 1 + includ

[PATCH v4 17/17] mcdstub: break/watchpoints added

2023-12-07 Thread Nicolas Eder
--- debug/mcdstub/mcdstub.c | 154 1 file changed, 154 insertions(+) diff --git a/debug/mcdstub/mcdstub.c b/debug/mcdstub/mcdstub.c index e5fd575834..dadd79034b 100644 --- a/debug/mcdstub/mcdstub.c +++ b/debug/mcdstub/mcdstub.c @@ -1177,6 +1177,134 @@ stat

[PATCH v4 15/17] mcdstub: skeleton for reset handling added

2023-12-07 Thread Nicolas Eder
--- debug/mcdstub/mcdstub.c | 46 + 1 file changed, 46 insertions(+) diff --git a/debug/mcdstub/mcdstub.c b/debug/mcdstub/mcdstub.c index 794e7d1312..cc1587396d 100644 --- a/debug/mcdstub/mcdstub.c +++ b/debug/mcdstub/mcdstub.c @@ -826,6 +826,37 @@ static v

[PATCH v4 02/17] gdbstub: hex conversion functions moved to cutils.h

2023-12-07 Thread Nicolas Eder
--- debug/gdbstub/gdbstub.c | 19 ++- debug/gdbstub/internals.h | 26 -- include/qemu/cutils.h | 30 ++ 3 files changed, 40 insertions(+), 35 deletions(-) diff --git a/debug/gdbstub/gdbstub.c b/debug/gdbstub/gdbstub.c index

[PATCH v4 10/17] mcdstub: open and close server funcitons added

2023-12-07 Thread Nicolas Eder
--- debug/mcdstub/mcdstub.c | 300 1 file changed, 215 insertions(+), 85 deletions(-) diff --git a/debug/mcdstub/mcdstub.c b/debug/mcdstub/mcdstub.c index f97bccf409..d59c4ac078 100644 --- a/debug/mcdstub/mcdstub.c +++ b/debug/mcdstub/mcdstub.c @@ -65,6 +6

[PATCH v4 08/17] cutils: qemu_strtou32 function added

2023-12-07 Thread Nicolas Eder
--- include/qemu/cutils.h | 2 ++ util/cutils.c | 30 ++ 2 files changed, 32 insertions(+) diff --git a/include/qemu/cutils.h b/include/qemu/cutils.h index 5ab1a4ffb0..14f492ba61 100644 --- a/include/qemu/cutils.h +++ b/include/qemu/cutils.h @@ -158,6 +158,8 @

[PATCH v4 07/17] mcdstub: mcdserver initialization functions added

2023-12-07 Thread Nicolas Eder
--- debug/mcdstub/mcdstub.c | 154 1 file changed, 154 insertions(+) diff --git a/debug/mcdstub/mcdstub.c b/debug/mcdstub/mcdstub.c index 32f4d1980f..176d5d2311 100644 --- a/debug/mcdstub/mcdstub.c +++ b/debug/mcdstub/mcdstub.c @@ -22,9 +22,12 @@ #include

[PATCH v4 12/17] mcdstub: all core specific queries added

2023-12-07 Thread Nicolas Eder
--- debug/mcdstub/mcdstub.c | 365 1 file changed, 365 insertions(+) diff --git a/debug/mcdstub/mcdstub.c b/debug/mcdstub/mcdstub.c index 48da2e043c..a5256eeb56 100644 --- a/debug/mcdstub/mcdstub.c +++ b/debug/mcdstub/mcdstub.c @@ -897,6 +897,301 @@ static

[PATCH v4 14/17] mcdstub: state query added

2023-12-07 Thread Nicolas Eder
--- debug/mcdstub/mcdstub.c | 44 + 1 file changed, 44 insertions(+) diff --git a/debug/mcdstub/mcdstub.c b/debug/mcdstub/mcdstub.c index 83582f7fa5..794e7d1312 100644 --- a/debug/mcdstub/mcdstub.c +++ b/debug/mcdstub/mcdstub.c @@ -1412,6 +1412,43 @@ static

[PATCH v4 09/17] mcdstub: TCP packet plumbing added

2023-12-07 Thread Nicolas Eder
--- debug/mcdstub/mcdstub.c | 422 1 file changed, 422 insertions(+) diff --git a/debug/mcdstub/mcdstub.c b/debug/mcdstub/mcdstub.c index 176d5d2311..f97bccf409 100644 --- a/debug/mcdstub/mcdstub.c +++ b/debug/mcdstub/mcdstub.c @@ -87,6 +87,320 @@ static i

[PATCH v3 13/20] mcdstub: added queries for memory spaces, register groups and registers

2023-11-07 Thread Nicolas Eder
--- include/mcdstub/mcdstub.h | 57 ++ mcdstub/mcdstub.c | 229 ++ 2 files changed, 286 insertions(+) diff --git a/include/mcdstub/mcdstub.h b/include/mcdstub/mcdstub.h index 62394e7c12..85ca8b3b62 100644 --- a/include/mcdstub/mcdstub.h +++ b/i

[PATCH v3 08/20] mcdstub: query packet processing added and core/system querie added

2023-11-07 Thread Nicolas Eder
--- include/mcdstub/mcdstub.h | 30 + mcdstub/mcdstub.c | 70 +++ 2 files changed, 100 insertions(+) diff --git a/include/mcdstub/mcdstub.h b/include/mcdstub/mcdstub.h index c3e9c7e9dc..c4370bb177 100644 --- a/include/mcdstub/mcdstub.h +

[PATCH v3 03/20] gdbstub: moving code so that it can be easier accessed from outside the gdbstub: fromhex and tohex functions moved to a cutils header. GDBRegisterState moved to gdbstub.h

2023-11-07 Thread Nicolas Eder
--- gdbstub/gdbstub.c | 9 + gdbstub/internals.h| 26 -- include/cutils.h | 30 ++ include/exec/gdbstub.h | 9 - 4 files changed, 39 insertions(+), 35 deletions(-) create mode 100644 include/cutils.h diff --git

[PATCH v3 09/20] mcdstub: open/close core added. This includes core specific data preparation: memory spaces, register groups and registers. This data preparation is done in the arm mcdstub

2023-11-07 Thread Nicolas Eder
--- include/mcdstub/arm_mcdstub.h| 81 + include/mcdstub/mcdstub.h| 26 +++ include/mcdstub/mcdstub_common.h | 52 ++ mcdstub/mcdstub.c| 111 target/arm/mcdstub.c | 278 +++ 5 files changed, 548 inserti

[PATCH v3 11/20] mcdstub: reset and trigger queries added

2023-11-07 Thread Nicolas Eder
--- include/mcdstub/mcdstub.h | 25 ++ mcdstub/mcdstub.c | 69 +++ 2 files changed, 94 insertions(+) diff --git a/include/mcdstub/mcdstub.h b/include/mcdstub/mcdstub.h index eb46917d00..62394e7c12 100644 --- a/include/mcdstub/mcdstub.h +++ b

[PATCH v3 10/20] mcdstub: state query added: this query collects information about the state of a specific core. This commit also includes mcd_vm_state_change, which is called when the cpu state chang

2023-11-07 Thread Nicolas Eder
--- include/mcdstub/mcdstub.h | 41 +++ mcdstub/mcdstub.c | 103 ++ 2 files changed, 144 insertions(+) diff --git a/include/mcdstub/mcdstub.h b/include/mcdstub/mcdstub.h index d38106e973..eb46917d00 100644 --- a/include/mcdstub/mcdstub.h ++

[PATCH v3 06/20] mcdstub: open/close server functions and trigger/reset data added. User for initial connection with an mcd client

2023-11-07 Thread Nicolas Eder
--- include/mcdstub/mcdstub.h | 84 mcdstub/mcdstub.c | 90 +++ 2 files changed, 174 insertions(+) diff --git a/include/mcdstub/mcdstub.h b/include/mcdstub/mcdstub.h index 1461d0e1cb..c7e34673a6 100644 --- a/include/

[PATCH v3 14/20] mcdstub: missing handle_query_state function added

2023-11-07 Thread Nicolas Eder
--- mcdstub/mcdstub.c | 29 + 1 file changed, 29 insertions(+) diff --git a/mcdstub/mcdstub.c b/mcdstub/mcdstub.c index 56854c4c76..cd2f5db8e4 100644 --- a/mcdstub/mcdstub.c +++ b/mcdstub/mcdstub.c @@ -1466,3 +1466,32 @@ void handle_query_regs_c(GArray *params, void *u

[PATCH v3 16/20] mcdstub: function construct for resets added

2023-11-07 Thread Nicolas Eder
--- include/mcdstub/mcdstub.h | 8 mcdstub/mcdstub.c | 18 ++ 2 files changed, 26 insertions(+) diff --git a/include/mcdstub/mcdstub.h b/include/mcdstub/mcdstub.h index 0375cf7311..000d832a39 100644 --- a/include/mcdstub/mcdstub.h +++ b/include/mcdstub/mcdstub.h

[PATCH v3 00/20] first version of mcdstub

2023-11-07 Thread Nicolas Eder
ugging features: * Go, break, step * Read/write memory (user space only) * Read/write registers (GPR and CP) * Set breakpoints and watchpoints. = Signed-off-by: Nicolas Eder Nicolas Eder (20): mcdstub: initial file structure for new mcdstub created. -mcd QEMU startup option a

[PATCH v3 17/20] mcdstub: reading/writing registers added

2023-11-07 Thread Nicolas Eder
--- include/mcdstub/mcdstub.h | 62 + mcdstub/mcdstub.c | 113 ++ 2 files changed, 175 insertions(+) diff --git a/include/mcdstub/mcdstub.h b/include/mcdstub/mcdstub.h index 000d832a39..6b2249f8fb 100644 --- a/include/mcdstub/mcdstu

[PATCH v3 19/20] mcdstub: break/watchpoints added

2023-11-07 Thread Nicolas Eder
--- include/mcdstub/mcdstub.h | 46 +++ mcdstub/mcdstub.c | 116 ++ 2 files changed, 162 insertions(+) diff --git a/include/mcdstub/mcdstub.h b/include/mcdstub/mcdstub.h index c55d52d2a7..53e5926ff5 100644 --- a/include/mcdstub/mcdstub.h ++

[PATCH v3 04/20] mcdstub: added header with defines specific to the mcd tcp packet communication

2023-11-07 Thread Nicolas Eder
--- include/mcdstub/mcd_shared_defines.h | 108 +++ 1 file changed, 108 insertions(+) create mode 100644 include/mcdstub/mcd_shared_defines.h diff --git a/include/mcdstub/mcd_shared_defines.h b/include/mcdstub/mcd_shared_defines.h new file mode 100644 index 00..f

[PATCH v3 15/20] mcdstub: added go, break and step functionality and all corresponding functions

2023-11-07 Thread Nicolas Eder
--- include/mcdstub/mcdstub.h | 53 mcdstub/mcdstub.c | 101 ++ 2 files changed, 154 insertions(+) diff --git a/include/mcdstub/mcdstub.h b/include/mcdstub/mcdstub.h index 85ca8b3b62..0375cf7311 100644 --- a/include/mcdstub/mcdstub

[PATCH v3 12/20] mcdstub: missing parse_reg_xml function for parsing gdb register xml files added

2023-11-07 Thread Nicolas Eder
--- mcdstub/mcdstub.c | 121 ++ 1 file changed, 121 insertions(+) diff --git a/mcdstub/mcdstub.c b/mcdstub/mcdstub.c index d71dff633a..3e87378b45 100644 --- a/mcdstub/mcdstub.c +++ b/mcdstub/mcdstub.c @@ -867,6 +867,127 @@ CPUState *find_cpu(uint32_t th

[PATCH v3 05/20] mcdstub: tcp packet processing added

2023-11-07 Thread Nicolas Eder
--- include/mcdstub/mcdstub.h | 144 mcdstub/mcdstub.c | 277 ++ 2 files changed, 421 insertions(+) diff --git a/include/mcdstub/mcdstub.h b/include/mcdstub/mcdstub.h index 36058157ae..1461d0e1cb 100644 --- a/include/mcdstub/mcdstub

[PATCH v3 02/20] mcdstub gdbstub: new DebugClass and DebugState introduced. They are used to abstract the debugger details behind a QOM. This is currently used in the cpu_handle_guest_debug function

2023-11-07 Thread Nicolas Eder
--- debug/debug-common.c| 42 + debug/debug-gdb.c | 24 +++ debug/debug-mcd.c | 25 gdbstub/meson.build | 4 ++-- gdbstub/system.c| 4 gdbstub/user.c | 2 ++ include/ex

[PATCH v3 18/20] mcdstub: read/write to memory added: This also includes various helper functions in the QEMU memory code

2023-11-07 Thread Nicolas Eder
--- include/exec/cpu-common.h | 2 + include/exec/memory.h | 9 ++ include/mcdstub/arm_mcdstub.h | 16 include/mcdstub/mcdstub.h | 69 +++ mcdstub/mcdstub.c | 153 ++ system/memory.c | 11 +++ system/

[PATCH v3 20/20] mcdstub: updated MAINTAINERS file and fully activated the mcdstub in the meson build system

2023-11-07 Thread Nicolas Eder
100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2908,6 +2908,17 @@ F: tests/tcg/multiarch/gdbstub/ F: scripts/feature_to_c.py F: scripts/probe-gdb-support.py +MCD stub +M: Nicolas Eder +R: Alex Bennée +S: Maintained +F: mcdstub/* +F: include/mcdstub/* +F: include/qemu/debug.h +F: debug/debug

[PATCH v3 07/20] mcdstub: quitting QEMU via mcd command added

2023-11-07 Thread Nicolas Eder
--- include/mcdstub/mcdstub.h | 9 + mcdstub/mcdstub.c | 15 +++ 2 files changed, 24 insertions(+) diff --git a/include/mcdstub/mcdstub.h b/include/mcdstub/mcdstub.h index c7e34673a6..c3e9c7e9dc 100644 --- a/include/mcdstub/mcdstub.h +++ b/include/mcdstub/mcdstub.h @@

[PATCH v3 01/20] mcdstub: initial file structure for new mcdstub created. -mcd QEMU startup option added. Functions for initializing the mcdstub added. Basic helper functions for processes/cpus in the

2023-11-07 Thread Nicolas Eder
--- include/mcdstub/arm_mcdstub.h| 10 + include/mcdstub/mcdstub.h| 239 +++ include/mcdstub/mcdstub_common.h | 7 + mcdstub/mcdstub.c| 383 +++ qemu-options.hx | 18 ++ system/vl.c |

[PATCH v2 10/29] handler for resets added

2023-10-06 Thread Nicolas Eder
From: neder --- mcdstub/internals.h | 14 mcdstub/mcd_shared_defines.h | 4 +++ mcdstub/mcdstub.c| 65 3 files changed, 63 insertions(+), 20 deletions(-) diff --git a/mcdstub/internals.h b/mcdstub/internals.h index a4d49a4a84..

[PATCH v2 09/29] memory and register query data now stored per core

2023-10-06 Thread Nicolas Eder
From: neder --- mcdstub/internals.h | 63 +++- mcdstub/mcd_shared_defines.h | 43 ++- mcdstub/mcdstub.c| 693 ++- 3 files changed, 533 insertions(+), 266 deletions(-) diff --git a/mcdstub/internals.h b/mcdstub/internals.h index 4c79ff7674..

[PATCH v2 07/29] query data preparation improved

2023-10-06 Thread Nicolas Eder
From: neder --- mcdstub/internals.h | 35 +++- mcdstub/mcdstub.c | 382 ++-- 2 files changed, 215 insertions(+), 202 deletions(-) diff --git a/mcdstub/internals.h b/mcdstub/internals.h index 45ba1ca8cb..2f9a768038 100644 --- a/mcdstub/internals.h +++ b

[PATCH v2 05/29] queries for memory spaces and register groups added

2023-10-06 Thread Nicolas Eder
From: neder --- mcdstub/internals.h | 29 +++--- mcdstub/mcdstub.c | 240 2 files changed, 147 insertions(+), 122 deletions(-) diff --git a/mcdstub/internals.h b/mcdstub/internals.h index ce3bffe7e6..8df535e92a 100644 --- a/mcdstub/internals.h +++

[PATCH v2 23/29] moved all ARM code to the ARM mcdstub and added now commom header file

2023-10-06 Thread Nicolas Eder
From: neder --- mcdstub/mcdstub.c| 244 ++- mcdstub/mcdstub.h| 64 +- mcdstub/mcdstub_common.h | 46 target/arm/mcdstub.c | 231 target/arm/mcdstub.h | 22 5 files changed, 3

[PATCH v2 27/29] MCD stub entry added to maintainers file

2023-10-06 Thread Nicolas Eder
-support.py +MCD stub +M: Nicolas Eder +R: Alex Bennée +S: Maintained +F: mcdstub/* +F: include/exec/mcdstub.h +F: include/mcdstub/* +F: target/arm/mcdstub.c + Memory API M: Paolo Bonzini M: Peter Xu -- 2.34.1

[PATCH v2 25/29] Doxygen documentation added

2023-10-06 Thread Nicolas Eder
From: neder --- include/exec/mcdstub.h | 7 - include/mcdstub/syscalls.h | 2 +- mcdstub/mcd_shared_defines.h | 1 + mcdstub/mcdstub.c| 61 ++-- mcdstub/mcdstub.h| 579 ++- mcdstub/mcdstub_common.h | 18 ++ target/arm/mc

[PATCH v2 17/29] handler for breakpoints and watchpoints added

2023-10-06 Thread Nicolas Eder
From: neder --- mcdstub/mcd_shared_defines.h | 8 +++ mcdstub/mcdstub.c| 124 ++- mcdstub/mcdstub.h| 4 ++ softmmu/cpus.c | 2 +- 4 files changed, 135 insertions(+), 3 deletions(-) diff --git a/mcdstub/mcd_shared_define

[PATCH v2 14/29] handler for single step added

2023-10-06 Thread Nicolas Eder
From: neder --- include/exec/mcdstub.h | 6 +- include/mcdstub/syscalls.h | 4 +- mcdstub/internals.h | 77 +++ mcdstub/mcd_shared_defines.h | 3 +- mcdstub/mcdstub.c| 428 ++- softmmu/cpus.c | 2 +- target/a

[PATCH v2 22/29] transitioning to unsinged integers in TCP packets and removing MCD-API-specific terms

2023-10-06 Thread Nicolas Eder
From: neder --- mcdstub/mcd_shared_defines.h | 8 mcdstub/mcdstub.c| 74 mcdstub/mcdstub.h| 33 +--- target/arm/mcdstub.c | 2 +- 4 files changed, 60 insertions(+), 57 deletions(-) diff --git a/mcdstub/mcd_s

[PATCH v2 20/29] cp register read/write added

2023-10-06 Thread Nicolas Eder
From: neder --- mcdstub/mcd_shared_defines.h | 1 + mcdstub/mcdstub.c| 117 ++-- mcdstub/mcdstub.h| 18 ++- target/arm/mcdstub.c | 265 ++- target/arm/mcdstub.h | 16 ++- 5 files changed, 330 insertions(+), 8

[PATCH v2 08/29] shared header file added, used for TCP packet data

2023-10-06 Thread Nicolas Eder
From: neder --- mcdstub/internals.h | 4 +- mcdstub/mcd_shared_defines.h | 24 mcdstub/mcdstub.c| 72 ++-- 3 files changed, 62 insertions(+), 38 deletions(-) create mode 100644 mcdstub/mcd_shared_defines.h diff --git a/mcdstub/

[PATCH v2 26/29] moved all mcd related header files into include/mcdstub

2023-10-06 Thread Nicolas Eder
From: neder --- target/arm/mcdstub.h => include/mcdstub/arm_mcdstub.h | 2 +- {mcdstub => include/mcdstub}/mcd_shared_defines.h | 0 {mcdstub => include/mcdstub}/mcdstub.h| 0 {mcdstub => include/mcdstub}/mcdstub_common.h | 0 mcdstub/mcd_syscalls.c

[PATCH v2 21/29] switching between secure and non-secure memory added

2023-10-06 Thread Nicolas Eder
From: neder --- mcdstub/mcdstub.c| 131 +++ mcdstub/mcdstub.h| 4 +- target/arm/mcdstub.c | 14 + target/arm/mcdstub.h | 1 + 4 files changed, 100 insertions(+), 50 deletions(-) diff --git a/mcdstub/mcdstub.c b/mcdstub/mcdstub.c index 377

[PATCH v2 24/29] step and go handlers now propperly perform global operations

2023-10-06 Thread Nicolas Eder
From: neder --- mcdstub/mcd_shared_defines.h | 2 ++ mcdstub/mcdstub.c| 35 +-- 2 files changed, 23 insertions(+), 14 deletions(-) diff --git a/mcdstub/mcd_shared_defines.h b/mcdstub/mcd_shared_defines.h index 5cfda4121d..5fbd732252 100644 --- a/mcds

[PATCH v2 04/29] queries for resets and triggers added

2023-10-06 Thread Nicolas Eder
From: neder --- mcdstub/internals.h | 9 + mcdstub/mcdstub.c | 19 ++- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/mcdstub/internals.h b/mcdstub/internals.h index 5af705a12a..ce3bffe7e6 100644 --- a/mcdstub/internals.h +++ b/mcdstub/internals.h @@ -1

[PATCH v2 12/29] handler for reading registers added

2023-10-06 Thread Nicolas Eder
From: neder --- mcdstub/internals.h | 11 ++- mcdstub/mcd_shared_defines.h | 7 ++ mcdstub/mcdstub.c| 129 +++ target/arm/mcdstub.c | 75 target/arm/mcdstub.h | 7 ++ 5 files changed, 228 insertions(+

[PATCH v2 19/29] adding trigger ID handling for TRACE32

2023-10-06 Thread Nicolas Eder
From: neder --- mcdstub/mcd_shared_defines.h | 2 +- mcdstub/mcdstub.c| 101 +-- mcdstub/mcdstub.h| 29 ++ 3 files changed, 82 insertions(+), 50 deletions(-) diff --git a/mcdstub/mcd_shared_defines.h b/mcdstub/mcd_shared_defines

[PATCH v2 18/29] making step and go handlers core-specific

2023-10-06 Thread Nicolas Eder
From: neder --- mcdstub/mcdstub.c | 26 ++ mcdstub/mcdstub.h | 3 ++- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/mcdstub/mcdstub.c b/mcdstub/mcdstub.c index 4327703bca..8fc95d96a4 100644 --- a/mcdstub/mcdstub.c +++ b/mcdstub/mcdstub.c @@ -434,6 +434,

[PATCH v2 03/29] TCP packet handling added

2023-10-06 Thread Nicolas Eder
From: neder --- mcdstub/internals.h| 64 - mcdstub/mcd_syscalls.c | 11 + mcdstub/mcdstub.c | 541 +++-- 3 files changed, 596 insertions(+), 20 deletions(-) diff --git a/mcdstub/internals.h b/mcdstub/internals.h index 7b0f4b0b36..5af705a12a 100

[PATCH v2 29/29] introducing the DebugClass. It is used to abstract the gdb/mcd set_stop_cpu function.

2023-10-06 Thread Nicolas Eder
From: neder --- MAINTAINERS | 3 + debug/debug-common.c | 42 debug/debug-gdb.c | 24 +++ debug/debug-mcd.c | 25 +++ gdbstub/meson.build | 4 +- gdbstub/softmmu.c | 4 ++ gdbstub/user.c

[PATCH v2 28/29] added description to out-commented gdb function

2023-10-06 Thread Nicolas Eder
From: neder --- softmmu/cpus.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/softmmu/cpus.c b/softmmu/cpus.c index b1807e6d7b..5d0657bbe5 100644 --- a/softmmu/cpus.c +++ b/softmmu/cpus.c @@ -306,7 +306,10 @@ void cpu_handle_guest_debug(CPUState *cpu) cpu_si

[PATCH v2 15/29] adapting to the qemu coding style

2023-10-06 Thread Nicolas Eder
From: neder --- gdbstub/gdbstub.c |2 +- include/exec/mcdstub.h |3 +- include/mcdstub/syscalls.h |2 +- mcdstub/mcd_shared_defines.h | 17 +- mcdstub/mcd_softmmu.c | 171 - mcdstub/mcd_syscalls.c |7 +- m

[PATCH v2 16/29] deleting the mcdd startup option

2023-10-06 Thread Nicolas Eder
From: neder Signed-off-by: neder --- mcdstub/meson.build | 10 +- qemu-options.hx | 13 +++-- 2 files changed, 4 insertions(+), 19 deletions(-) diff --git a/mcdstub/meson.build b/mcdstub/meson.build index ebd47b0725..6b2f970eae 100644 --- a/mcdstub/meson.build +++ b/mcdstub

[PATCH v2 13/29] handler for reading memory added

2023-10-06 Thread Nicolas Eder
From: neder --- mcdstub/internals.h | 9 ++- mcdstub/mcd_shared_defines.h | 2 +- mcdstub/mcdstub.c| 124 +++ 3 files changed, 89 insertions(+), 46 deletions(-) diff --git a/mcdstub/internals.h b/mcdstub/internals.h index a85173d0d1..871a

[PATCH v2 06/29] query for registers added

2023-10-06 Thread Nicolas Eder
From: neder --- mcdstub/internals.h| 55 +-- mcdstub/mcdstub.c | 320 ++--- target/arm/meson.build | 1 + 3 files changed, 344 insertions(+), 32 deletions(-) diff --git a/mcdstub/internals.h b/mcdstub/internals.h index 8df535e92a..45ba1ca8cb 1

[PATCH v2 11/29] query for the VM state added

2023-10-06 Thread Nicolas Eder
From: neder --- mcdstub/internals.h | 54 - mcdstub/mcd_shared_defines.h | 13 ++ mcdstub/mcdstub.c| 229 --- 3 files changed, 249 insertions(+), 47 deletions(-) diff --git a/mcdstub/internals.h b/mcdstub/internals.h index 0de8d8fd0

[PATCH v2 00/29] first version of mcdstub

2023-10-06 Thread Nicolas Eder
ugging features: * Go, break, step * Read/write memory (user space only) * Read/write registers (GPR and CP) * Set breakpoints and watchpoints. = Signed-off-by: Nicolas Eder neder (29): mcdstub initial commit, mcdstub file structure added TCP chardev added, handshake with TRACE3

[PATCH v2 02/29] TCP chardev added, handshake with TRACE32 working

2023-10-06 Thread Nicolas Eder
From: neder --- gdbstub/gdbstub.c | 2 +- include/exec/mcdstub.h | 21 +- include/mcdstub/syscalls.h | 6 + mcdstub/internals.h| 135 ++ mcdstub/mcd_softmmu.c | 218 +++- mcdstub/mcd_syscalls.c | 20 ++ mcdstub/mcd_tcp_server.c | 2 +-

[PATCH v2 01/29] mcdstub initial commit, mcdstub file structure added

2023-10-06 Thread Nicolas Eder
From: neder --- include/exec/mcdstub.h | 31 + mcdstub/mcd_softmmu.c| 85 +++ mcdstub/mcd_syscalls.c | 0 mcdstub/mcd_tcp_server.c | 95 mcdstub/mcdstub.c| 0 softmmu/vl.c | 4 ++