chore(tpc): 移除全部临时 DBG 日志 - VDBG(ExprGenMixin)/CTORDBG(CallGenCtor)/LISTDBG(_list)/ALLOCDBG+set/get_debug_log+set/get_alloc_src(memhub)/CLDBG+[DEPDBG](CallGenMixin)/--enable-debug-log(main)/set_alloc_src(HandlesTranslator);保留 detection 机制(前后 0xCDCD 标记+记录表探测)与 MEMBUDDY_FILL_GUARD 守卫
This commit is contained in:
1 parent
769ffda04f
commit
1de7c8d2ca
7 files changed
+1911
-76
No files matched your search
@@ -152,7 +152,6 @@ def main() -> int:
|
||||
parser.add_argument("--asan", None, argparse.BOOL, 0, None, False, argparse.STORE_TRUE, "ASan mode: .ll first opt -passes=asan then link -fsanitize=address")
|
||||
parser.add_argument("--phase2command", None, argparse.STRING, 0, None, False, argparse.STORE, "Do not run llc/link: write Phase2 llc(opt+llc) and clang link commands to the given .bat path")
|
||||
parser.add_argument("--nowarn-register", None, argparse.BOOL, 0, None, False, argparse.STORE_TRUE, "Suppress Phase A dependency WARN")
|
||||
parser.add_argument("--enable-debug-log", None, argparse.BOOL, 0, None, False, argparse.STORE_TRUE, "Enable LISTDBG diagnostic output (list.__init__/append print)")
|
||||
parser.add_argument("--detection", None, argparse.BOOL, 0, None, False, argparse.STORE_TRUE, "Enable MemBuddy allocation detection (0xCDCD markers + record-table probe for out-of-bounds writes; applies to both mb and perm_pool)")
|
||||
parser.add_argument("--version", "-v", argparse.BOOL, 0, None, False, argparse.STORE_TRUE, "Show version and exit")
|
||||
parser.add_argument("--help", "-h", argparse.BOOL, 0, None, False, argparse.STORE_TRUE, "Show help and exit")
|
||||
@@ -240,13 +239,6 @@ Target: %s
|
||||
BuildPipeline._asan_mode = False
|
||||
Config._inc_bin_suffix = ".binary"
|
||||
|
||||
# 调试日志开关:--enable-debug-log 开启 list.__init__/append 的 LISTDBG 诊断
|
||||
# (输出量大,默认静默;仅排查 list 头覆盖等运行时问题时开启)
|
||||
if args.get_bool("enable-debug-log"):
|
||||
memhub.set_debug_log(1)
|
||||
if log is not None:
|
||||
log.info("调试日志已启用(LISTDBG: list.__init__/append 诊断输出)", "dbg")
|
||||
|
||||
# === --phase2command: 只生成命令写入 bat,不执行 llc/链接 ===
|
||||
# Phase B/B+ 的 llc(含 ASan opt)与 Phase C 的 clang 链接命令写入指定
|
||||
# .bat 路径(BuildPipeline._phase2_write_cmd 首次写入 header,后续追加)。
|
||||
|
||||
Reference in new issue
Block a user