Compare commits

...

2 Commits

Author SHA1 Message Date
Pragmatic Software 8e3652bc8e
pbot-vm: gdb() needs __asm__() instead of asm() 2024-04-17 00:37:36 -07:00
Pragmatic Software ddeeb5da0f
pbot-vm: update de-optimization for gdb() function 2024-04-16 23:41:37 -07:00
2 changed files with 14 additions and 13 deletions

View File

@ -87,7 +87,8 @@ __attribute__ (( constructor )) static void printf_binary_register(void)
register_printf_specifier('b', printf_binary_handler, printf_binary_arginfo);
}
void gdb(char *cmd) { __asm__(""); }
__attribute__((optnone))
void gdb(char *cmd) { __asm__ volatile ("" : "+r" (cmd)); }
#define dump(...) gdb("print " #__VA_ARGS__)
#define print(...) gdb("print " #__VA_ARGS__)
#define ptype(...) gdb("ptype " #__VA_ARGS__)

View File

@ -25,8 +25,8 @@ use PBot::Imports;
# These are set by the /misc/update_version script
use constant {
BUILD_NAME => "PBot",
BUILD_REVISION => 4749,
BUILD_DATE => "2024-04-12",
BUILD_REVISION => 4751,
BUILD_DATE => "2024-04-17",
};
sub initialize {}