From 8e3652bc8e264e8b47247237a99a154b441b5abc Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Wed, 17 Apr 2024 00:37:36 -0700 Subject: [PATCH] pbot-vm: gdb() needs __asm__() instead of asm() --- applets/pbot-vm/guest/include/prelude.h | 2 +- lib/PBot/VERSION.pm | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/applets/pbot-vm/guest/include/prelude.h b/applets/pbot-vm/guest/include/prelude.h index fffa6f5d..57d2ca64 100644 --- a/applets/pbot-vm/guest/include/prelude.h +++ b/applets/pbot-vm/guest/include/prelude.h @@ -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__) diff --git a/lib/PBot/VERSION.pm b/lib/PBot/VERSION.pm index a8fab1d3..5794f4bb 100644 --- a/lib/PBot/VERSION.pm +++ b/lib/PBot/VERSION.pm @@ -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 {}