From a85980e98bf614fe7de60ddc8479d24f65009572 Mon Sep 17 00:00:00 2001 From: Gopi Kumar Bulusu Date: Tue, 9 Sep 2025 12:00:11 +0530 Subject: [PATCH] MicroBlaze: Update software breakpoint machine code as per MicroBlaze ISA This patch updates breakpoint instruction machine code to be inline with the specification in MicroBlaze ISA [1] * gdb/microblaze-tdep.h : Update MICROBLAZE_BREAKPOINT * gdb/NEWS : Add MicroBlaze gdbserver target [1] https://docs.amd.com/r/en-US/ug984-vivado-microblaze-ref/brki Signed-off-by: David Holsgrove Signed-off-by: Nathan Rossi Signed-off-by: Mahesh Bodapati Signed-off-by: Gopi Kumar Bulusu --- gdb/NEWS | 4 ++++ gdb/microblaze-tdep.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/NEWS b/gdb/NEWS index 48f7bfabea7..36065ec1943 100644 --- a/gdb/NEWS +++ b/gdb/NEWS @@ -3,6 +3,10 @@ *** Changes since GDB 17 +* New targets + +GNU/Linux/MicroBlaze (gdbserver) microblazeel-*linux* + *** Changes in GDB 17 * Debugging Linux programs that use x86-64 or x86-64 with 32-bit pointer diff --git a/gdb/microblaze-tdep.h b/gdb/microblaze-tdep.h index b2fb5e7fcb9..852c9ebbafe 100644 --- a/gdb/microblaze-tdep.h +++ b/gdb/microblaze-tdep.h @@ -118,6 +118,6 @@ struct microblaze_frame_cache /* MICROBLAZE_BREAKPOINT defines the breakpoint that should be used. Only used for native debugging. */ -#define MICROBLAZE_BREAKPOINT {0xb9, 0xcc, 0x00, 0x60} +#define MICROBLAZE_BREAKPOINT {0xba, 0x0c, 0x00, 0x18} #endif /* GDB_MICROBLAZE_TDEP_H */ -- 2.47.1