首页 > 其他分享 >lldb clang args

lldb clang args

时间:2023-04-14 18:44:28浏览次数:37  
标签:information debugger -- args clang source lldb file debug

ATTACHING:
  --attach-name <name> Tells the debugger to attach to a process with the given name.
  -n <value>           Alias for --attach-name

  --attach-pid <pid>   Tells the debugger to attach to a process with the given pid.
  -p <value>           Alias for --attach-pid

  --wait-for           Tells the debugger to wait for a process with the given pid or name to launch before attaching.
  -w                   Alias for --wait-for

--local-lldbinit     Allow the debugger to parse the .lldbinit files in the current working directory, unless --no-lldbinit is passed.

COMMANDS:
  --source-before-file <file> Tells the debugger to read in and execute the lldb commands in the given file, before any file has been loaded.
  --source <file>             Tells the debugger to read in and execute the lldb commands in the given file, after any file has been loaded.
  --source-quietly            Tells the debugger not to echo commands while sourcing files or one-line commands provided on the command line.

OPTIONS:

  --file <filename>     Tells the debugger to use the file <filename> as the program to be debugged.
  -f <value>            Alias for --file
clang
  -gdwarf-2               Generate source-level debug information with dwarf version 2
  -gdwarf-3               Generate source-level debug information with dwarf version 3
  -gdwarf-4               Generate source-level debug information with dwarf version 4
  -gdwarf-5               Generate source-level debug information with dwarf version 5
  -gdwarf32               Enables DWARF32 format for ELF binaries, if debug information emission is enabled.
  -gdwarf64               Enables DWARF64 format for ELF binaries, if debug information emission is enabled.
  -gdwarf                 Generate source-level debug information with the default dwarf version
  -gembed-source          Embed source text in DWARF debug sections
  -gline-directives-only  Emit debug line info directives only
  -gline-tables-only      Emit debug line number tables only
  -gmodules               Generate debug info with external references to clang modules or precompiled headers
  -gno-embed-source       Restore the default behavior of not embedding source text in DWARF debug sections
  -gno-inline-line-tables Don't emit inline line tables.
  -gsplit-dwarf=<value>   Set DWARF fission mode to either 'split' or 'single'
  -gz=<value>             DWARF debug sections compression type
  -G <size>               Put objects of at most <size> bytes into small data section (MIPS / Hexagon)
  -g                      Generate source-level debug information

标签:information,debugger,--,args,clang,source,lldb,file,debug
From: https://www.cnblogs.com/Searchor/p/17319274.html

相关文章

  • lldb
    1.mac1.1permissionsudoDevToolsSecurity-enablebootinrecoverymode,opentheterminalandruncsrutildisableNext,rebootthemacandcheckstatus:csrutilstatusSystemIntegrityProtectionstatus:disabled.......
  • Understanding the different flavors of Clang C and C++ compilers in Windows
    https://blog.conan.io/2022/10/13/Different-flavors-Clang-compiler-Windows.htmlThisarticlewillexplainthedifferentflavorsofClangCandC++compileryoumightencounterinWindows,andgiveyousomesuggestionsaboutwhichonesmightberightforyo......
  • python关于*args所能接收的参数、关于**kwargs所接收的参数详解
    1#!/usr/bin/envpython2#-*-coding:utf8-*-3#python-day32-20170110:456#关于*args所能接收的参数78#这种接收的是位置参数,可变长9deffunc1(*args):10print(args,type(args))1112#传入位置参数可以被args所接收,以元组的形式来保存......
  • debugger - lldb
    https://lldb.llvm.org/use/map.html......
  • Python中的args和kwargs
    在Python的使用中,我们经常会遇到这样的函数定义:defmy_func(x,y,*args,**kwargs):forarginargs:print(arg)forkey,valueinkwargs.items():print(f"{key}:{value}")你是否好奇,这里的args和kwargs分别是什么含义呢?args顾名思义,是argumen......
  • clang操作源码
    生成注释假设有下面的源码:structVec3{floatx,y,z;};structVec4{floatx,y,z,w;};生成这样的代码://[[CLASSINFO]]class:Vec3,ispod:true,isaggregate:truestructVec3{floatx,y,z;};//[[CLASSINFO]]usestruct-bindingmethod://c......
  • clang和gcc一些不同
    环境-m32-O0x86-64clang12.0.0x86-64gcc10.1不同栈帧开辟intmain(){inta=1;intb=2;}在clang下开辟栈帧的代码是这样的。pushl%ebpmovl%esp,%ebpsubl$8,%esp局部变量大小是多少,就开多少但在gcc下是这样的pushl%ebpmovl%esp,%ebpsubl$16,......
  • ubuntu使用xargs对文件夹中大量文件进行操作
    ubuntu中使用mv、copy等命令时,对文件夹中的文件数量有限制,如mvimages/*命令,当images文件夹中有上万或更多文件时,命令无法执行;xargs能够捕获一个命令的输入,然后传递给另外一个命令,使用xargs传参不会产生文件数量过大的问题。ls`input_dir`|xargs-Ifilemvfile`output_di......
  • 【Python】函数的可变参数 *args 和 **kwargs的使用
    可变参数*args和**kwargs*args和**kwargs主要用于定义函数的可变参数,*args和**kwargs组合起来可以传入任意的参数。(注意:参数*args必须在**kwargs之前定义)*arg......
  • 关于aws-s3-bucket-静态网站托管相关的查询-S3.Client.get_bucket_website(**kwargs)
    关于aws-s3-bucket-静态网站托管相关的查询,这里笔者主要整理一下基于AWSSDKforPython(Boto3)方式,相关的判断和逻辑1、首先是判断s3-bucket有没有开启静态网站托管,即页......