|
5 | 5 | # ------------------------------------------------------------------------------ |
6 | 6 | # The MIT License (MIT) |
7 | 7 | # |
8 | | -# Copyright (c) 2021-2024 Aarno Labs, LLC |
| 8 | +# Copyright (c) 2021-2025 Aarno Labs, LLC |
9 | 9 | # |
10 | 10 | # Permission is hereby granted, free of charge, to any person obtaining a copy |
11 | 11 | # of this software and associated documentation files (the "Software"), to deal |
@@ -411,6 +411,7 @@ def analyzecmd(args: argparse.Namespace) -> NoReturn: |
411 | 411 | fns_no_lineq: List[str] = args.fns_no_lineq # function hex addresses |
412 | 412 | fns_exclude: List[str] = args.fns_exclude # function hex addresses |
413 | 413 | fns_include: List[str] = args.fns_include # function hex addresses |
| 414 | + analyze_all_named: bool = args.analyze_all_named |
414 | 415 | gc_compact: int = args.gc_compact |
415 | 416 | construct_all_functions: bool = args.construct_all_functions |
416 | 417 | show_function_timing: bool = args.show_function_timing |
@@ -447,7 +448,7 @@ def analyzecmd(args: argparse.Namespace) -> NoReturn: |
447 | 448 | exit(0) |
448 | 449 |
|
449 | 450 | try: |
450 | | - prepare_executable( |
| 451 | + userhints = prepare_executable( |
451 | 452 | path, |
452 | 453 | xfile, |
453 | 454 | doreset, |
@@ -488,6 +489,11 @@ def analyzecmd(args: argparse.Namespace) -> NoReturn: |
488 | 489 | print_error("Header file " + f + " not found") |
489 | 490 | exit(1) |
490 | 491 |
|
| 492 | + if analyze_all_named: |
| 493 | + fnnamed_addrs = userhints.rev_function_names().values() |
| 494 | + fns_include = fns_include + list(fnnamed_addrs) |
| 495 | + chklogger.logger.warning("Include %d functions", len(fns_include)) |
| 496 | + |
491 | 497 | am = AnalysisManager( |
492 | 498 | path, |
493 | 499 | xfile, |
|
0 commit comments