target: Unify the output of "bp" command
This patch unifies the lines printed by the "bp" command so that different types of breakpoints are printed in the same format. Change-Id: Ic1335eda1c58072a334aed9cf0011431c8ec86a4 Signed-off-by: Marek Vrbka <marek.vrbka@codasip.com> Reviewed-on: https://review.openocd.org/c/openocd/+/7861 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
parent
022e438292
commit
6f986d2cd7
|
@ -3926,24 +3926,24 @@ static int handle_bp_command_list(struct command_invocation *cmd)
|
|||
if (breakpoint->type == BKPT_SOFT) {
|
||||
char *buf = buf_to_hex_str(breakpoint->orig_instr,
|
||||
breakpoint->length);
|
||||
command_print(cmd, "IVA breakpoint: " TARGET_ADDR_FMT ", 0x%x, 0x%s",
|
||||
command_print(cmd, "Software breakpoint(IVA): addr=" TARGET_ADDR_FMT ", len=0x%x, orig_instr=0x%s",
|
||||
breakpoint->address,
|
||||
breakpoint->length,
|
||||
buf);
|
||||
free(buf);
|
||||
} else {
|
||||
if ((breakpoint->address == 0) && (breakpoint->asid != 0))
|
||||
command_print(cmd, "Context breakpoint: 0x%8.8" PRIx32 ", 0x%x, %u",
|
||||
command_print(cmd, "Context breakpoint: asid=0x%8.8" PRIx32 ", len=0x%x, num=%u",
|
||||
breakpoint->asid,
|
||||
breakpoint->length, breakpoint->number);
|
||||
else if ((breakpoint->address != 0) && (breakpoint->asid != 0)) {
|
||||
command_print(cmd, "Hybrid breakpoint(IVA): " TARGET_ADDR_FMT ", 0x%x, %u",
|
||||
command_print(cmd, "Hybrid breakpoint(IVA): addr=" TARGET_ADDR_FMT ", len=0x%x, num=%u",
|
||||
breakpoint->address,
|
||||
breakpoint->length, breakpoint->number);
|
||||
command_print(cmd, "\t|--->linked with ContextID: 0x%8.8" PRIx32,
|
||||
breakpoint->asid);
|
||||
} else
|
||||
command_print(cmd, "Breakpoint(IVA): " TARGET_ADDR_FMT ", 0x%x, %u",
|
||||
command_print(cmd, "Hardware breakpoint(IVA): addr=" TARGET_ADDR_FMT ", len=0x%x, num=%u",
|
||||
breakpoint->address,
|
||||
breakpoint->length, breakpoint->number);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue