mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-25 05:19:29 +01:00
pbot-vm: guest-gdb: stricter match for main()
This commit is contained in:
parent
224a00949a
commit
7da7883d9d
@ -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;
|
||||
|
@ -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",
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user