mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-22 03:49:29 +01:00
pbot-vm: gdb() needs __asm__() instead of asm()
This commit is contained in:
parent
ddeeb5da0f
commit
8e3652bc8e
@ -88,7 +88,7 @@ __attribute__ (( constructor )) static void printf_binary_register(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
__attribute__((optnone))
|
__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 dump(...) gdb("print " #__VA_ARGS__)
|
||||||
#define print(...) gdb("print " #__VA_ARGS__)
|
#define print(...) gdb("print " #__VA_ARGS__)
|
||||||
#define ptype(...) gdb("ptype " #__VA_ARGS__)
|
#define ptype(...) gdb("ptype " #__VA_ARGS__)
|
||||||
|
@ -25,8 +25,8 @@ use PBot::Imports;
|
|||||||
# These are set by the /misc/update_version script
|
# These are set by the /misc/update_version script
|
||||||
use constant {
|
use constant {
|
||||||
BUILD_NAME => "PBot",
|
BUILD_NAME => "PBot",
|
||||||
BUILD_REVISION => 4750,
|
BUILD_REVISION => 4751,
|
||||||
BUILD_DATE => "2024-04-16",
|
BUILD_DATE => "2024-04-17",
|
||||||
};
|
};
|
||||||
|
|
||||||
sub initialize {}
|
sub initialize {}
|
||||||
|
Loading…
Reference in New Issue
Block a user