-
힙&스택❤️메모리이쁘게 보기(-fsantize=address)C언어~19분08초and31분 56초코딩Coding/LLDB&GDB_TheGNU_Project_Debugger 2022. 2. 5. 15:42728x90
c언어 컴파일 할 때
clang -g -fsanitize=address test01.c
다른 방법
clang -01 -g main.c loop.c -fsanitize=address
clang -g -01 -fsanitize=address my_prog.c -o my_prog // Several sanitizer available to target different possible bugs. // e.g. address(ASAN), thread(TSAN), memory(MSAN) // Wraps various operations in your code(e.g. memory traffic) // Tunable behavior on encountering a probrem -fsanitize= // Print verbose error, continue execution -fno-sanitize-recover= // Print verbose error, terminate program -fsanitize-trap= // Execute a trap instruction(only for ubsan) // Can be combined -fsanitize=siged-integer-overflow -fno-sanitize-recover=address
이쁘게 나옴
출처 : https://www.youtube.com/watch?v=lFew5gIF-Ro&t=4s
반응형'코딩Coding > LLDB&GDB_TheGNU_Project_Debugger' 카테고리의 다른 글
Declarative memory management (0) 2022.02.22 (GDB)looking at gdb how can I know whether its heap or stack allocated memory ? (0) 2022.02.22 GEF(GDB Enhanced Features) (0) 2022.02.22 LLDB커멘드연습&파이썬연결힌트Apple WWDC2012. Session 415 - Debugging with LLDB (0) 2022.02.05 Debugging Rust with LLDB |연습용 예제 많음 (0) 2022.02.04 Debug GDNATIVE SCRIPTS(with LLDB)LLDB-커맨드 연습으로 최고 (0) 2022.02.03 Debugging Rust)_VSCode-CodeLLDB Extension (0) 2022.02.03 How C++ Debuggers Work-Simon Brand(Visual Studio) (0) 2022.02.02