From 7da7883d9da0da31b6b82aa55656980873d6dacd Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Thu, 9 Feb 2023 21:04:30 -0800 Subject: [PATCH] pbot-vm: guest-gdb: stricter match for main() --- applets/pbot-vm/guest/bin/guest-gdb | 2 +- lib/PBot/VERSION.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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", };