diff --git a/applets/pbot-vm/guest/bin/guest-gdb b/applets/pbot-vm/guest/bin/guest-gdb index b026de0d..f8c6e00b 100755 --- a/applets/pbot-vm/guest/bin/guest-gdb +++ b/applets/pbot-vm/guest/bin/guest-gdb @@ -294,7 +294,7 @@ sub get_main_start_end($context) { if (not defined $start) { # info functions didn't work, try to find main - if ($code =~ /main\s*\(/) { + if ($code =~ /\bmain[\b\s\)]*\(/) { $start = $line; } next; diff --git a/lib/PBot/VERSION.pm b/lib/PBot/VERSION.pm index 03554351..b73e7851 100644 --- a/lib/PBot/VERSION.pm +++ b/lib/PBot/VERSION.pm @@ -25,7 +25,7 @@ use PBot::Imports; # These are set by the /misc/update_version script use constant { BUILD_NAME => "PBot", - BUILD_REVISION => 4617, + BUILD_REVISION => 4618, BUILD_DATE => "2023-02-09", };