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

pbot-vm: guest-gdb: stricter match for main()

This commit is contained in:
Pragmatic Software 2023-02-09 21:04:30 -08:00
parent 224a00949a
commit 7da7883d9d
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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",
};