You could see that your switch could be replaced by single line
reg_val = BX_CPU(dbg_cpu)->get_reg32(reg);
The same in other places.
Please do not include automatically generated files (lexer.c, parser.c and parser.h) in your patch !!!
Please do not mix between 'range watchpoints' and 'register breakpoints' in one 'super breakpoints' name. They are not the same. In fact 'range watchpoints' should be extension of existing now 'watchpoints' but I can't do it now - GUI debugger is too dirty and uses watchpoints in dirty way which must be cleaned up first.
I hope you could prepare better cleaner patch.
Thanks,
Stanislav
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hello ??
The patch lacks x86-64 support.
I probably could try to add it myself but we are busy with cleaning bugs and preparing for next 2.4.2 release.
Stanislav
thank you so much, I hope I can give some help on enhancing the debug command.
Hi, today I tried to merge your patch ... with no success.
It even doesn't compile.
void bx_dbg_search_memory_command(bx_address from, bx_address length, bx_address value) {
there is no such way of allocating variable length buffer in C++ - it is not Java :(
Also I double if anybody interested in looking for number in memory.
bx_dbg_gdt_command is perfect copy-paste of existsing "info gdt" command bx_dbg_info_gdt_command. Don't see any reason of adding it.
Please rename your 'super breakpoint' to register breakpoint and write some sort of usage docs for this new feature.
I am agains copy-paste switches like:
switch(reg) {
especially when you already have
typedef enum {
BX_DBG_REG32_EAX,
BX_DBG_REG32_ECX,
BX_DBG_REG32_EDX,
BX_DBG_REG32_EBX,
BX_DBG_REG32_ESP,
BX_DBG_REG32_EBP,
BX_DBG_REG32_ESI,
BX_DBG_REG32_EDI,
BX_DBG_REG32_R8,
BX_DBG_REG32_R9,
BX_DBG_REG32_R10,
BX_DBG_REG32_R11,
BX_DBG_REG32_R12,
BX_DBG_REG32_R13,
BX_DBG_REG32_R14,
BX_DBG_REG32_R15
} Regs32;
defined in debug.h.
You could see that your switch could be replaced by single line
The same in other places.
Please do not include automatically generated files (lexer.c, parser.c and parser.h) in your patch !!!
Please do not mix between 'range watchpoints' and 'register breakpoints' in one 'super breakpoints' name. They are not the same. In fact 'range watchpoints' should be extension of existing now 'watchpoints' but I can't do it now - GUI debugger is too dirty and uses watchpoints in dirty way which must be cleaned up first.
I hope you could prepare better cleaner patch.
Thanks,
Stanislav
bx_address value) {
it is in standard (C99 I believe) but as far as I know only gcc supports it (MSVC reports this as an error)
Ihank hcorg, I tested in fedora 10 gcc only.