mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-25 05:19:29 +01:00
pbot-vm: update de-optimization for gdb() function
This commit is contained in:
parent
e4cb6ceff6
commit
ddeeb5da0f
@ -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__)
|
||||
|
@ -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 => 4750,
|
||||
BUILD_DATE => "2024-04-16",
|
||||
};
|
||||
|
||||
sub initialize {}
|
||||
|
Loading…
Reference in New Issue
Block a user