3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-05 19:49:32 +01:00

pbot-vm: gdb() needs __asm__() instead of asm()

This commit is contained in:
Pragmatic Software 2024-04-17 00:37:36 -07:00
parent ddeeb5da0f
commit 8e3652bc8e
No known key found for this signature in database
GPG Key ID: CC916B6E3C84ECCE
2 changed files with 3 additions and 3 deletions

View File

@ -88,7 +88,7 @@ __attribute__ (( constructor )) static void printf_binary_register(void)
}
__attribute__((optnone))
void gdb(char *cmd) { asm volatile ("" : "+r" (cmd)); }
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 => 4750,
BUILD_DATE => "2024-04-16",
BUILD_REVISION => 4751,
BUILD_DATE => "2024-04-17",
};
sub initialize {}