freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

gdb用戶使用手冊-展示頁

2024-09-07 15:52本頁面
  

【正文】 break ... if condition ...可以是上述的參數(shù),condition表示條件,在條件成立時停住。 break *address 在程序運行的內(nèi)存地址處停住。 break filename:linenum 在源文件filename的linenum行處停住。 break +offset break offset 在當前行號的前面或后面的offset行停住。C++中可以使用class::function或function(type,type)格式來指定函數(shù)名。 設(shè)置斷點(BreakPoint)我們用break命令來設(shè)置斷點。在gdb中,我們可以有以下幾種暫停方式:斷點(BreakPoint)、觀察點(WatchPoint)、捕捉點(CatchPoint)、信號(Signals)、線程停止(Thread Stops)。以便于你查看運行時的變量,以及運行時的流程。 暫停/恢復(fù)程序運行調(diào)試程序中,暫停程序運行是必須的,GDB可以方便地暫停程序的運行。先用gdb program關(guān)聯(lián)上源代碼,并進行g(shù)db,在gdb中用attach命令來掛接進程的PID。如:run outfile tty命令可以指寫輸入輸出的終端設(shè)備。 info terminal 顯示你程序用到的終端的模式。 pwd 顯示當前的所在目錄。工作目錄。 set environment varname [=value] 設(shè)置環(huán)境變量。 path dir 可設(shè)定程序的運行路徑。(如:set args 10 20 30 40 50) show args 命令可以查看設(shè)置好的運行參數(shù)。程序運行參數(shù)。在gdb中,運行程序使用r或是run命令。 在GDB中啟動程序當以gdb program方式啟動gdb后,gdb會在PATH路徑和當前目錄中搜索program的源文件。 在GDB中使用SHELL在GDB中,可以執(zhí)行SHELL命令,進入SHELL環(huán)境,進行SHELL操作,隨后可執(zhí)行exit退出。默認搜索路徑是環(huán)境變量中PATH所定義的路徑。core filec file 調(diào)試時core dump的core文件。GDB在啟動時,還可以添加一些啟動開關(guān),常用的有:symbols file s file 從指定文件中讀取符號表。Gdb program PID如果調(diào)試的program是一個進程,則可以加入其進程號(PID),gdb會自動attch到此進程中,并利用PATH找到program。可利用TAB鍵將命令補全,或者列出匹配此字符的所有命令。但首字符或者前面幾個字符必須可以在命令集中標識唯一的命令。也可以直接help mand來查看命令的幫助。 GDB命令進入GDB調(diào)試環(huán)境后,就可以利用GDB命令進行調(diào)試了,GDB的命令可以使用help來查看,如:$ gdbGNU gdb Copyright 2004 Free Software Foundation, Inc.GDB is free software, covered by the GNU General Public License, and you arewele to change it and/or distribute copies of it under certain conditions.Type show copying to see the conditions.There is absolutely no warranty for GDB. Type show warranty for details.This GDB was configured as .(gdb)(gdb) helpList of classes of mands:aliases Aliases of other mandsbreakpoints Making program stop at certain pointsdata Examining datafiles Specifying and examining filesinternals Maintenance mandsobscure Obscure featuresrunning Running the programstack Examining the stackstatus Status inquiriessupport Support facilitiestracepoints Tracing of program execution without stopping the programuserdefined Userdefined mandsType help followed by a class name for a list of mands in that class.Type help followed by mand name for full documentation.Command name abbreviations are allowed if unambiguous.(gdb)gdb的命令很多,gdb把之分成許多個種類。 術(shù)語和縮寫詞 參考資料《Debugging with GDB》 2 GDB簡介GDB是開源組織GNU發(fā)布的功能強大的UNIX/LINUX下的調(diào)試工具,GDB是一個命令行調(diào)試工具。GDB用戶說明書GDB用戶使用手冊 目錄目 錄1 概述 1 背景 1 術(shù)語和縮寫詞 1 參考資料 12 GDB簡介 1 GDB需求 1 GDB命令 13 GDB使用 3 啟動GDB 3 在GDB中使用SHELL 4 在GDB中啟動程序 4 調(diào)試已運行的程序 5 暫停/恢復(fù)程序運行 5 設(shè)置斷點(BreakPoint) 6 設(shè)置觀察點(WatchPoint) 6 設(shè)置捕捉點(CatchPoint) 7 維護停止點 7 停止條件維護 8 為停止點設(shè)定運行命令 9 斷點菜單 9 恢復(fù)程序運行和單步調(diào)試 10 信號(Signals) 11 線程(Thread Stops) 12 查看棧信息 12 查看源程序 14 顯示源代碼 14 搜索源代碼 15 指定源文件的路徑 16 源代碼的內(nèi)存 16 查看運行時數(shù)據(jù) 17 表達式 17 程序變量 18 數(shù)組 18 輸出格式 19 查看內(nèi)存 20 自動顯示 20 設(shè)置顯示選項 21 歷史記錄 24 GDB環(huán)境變量 24 查看寄存器 25 改變程序的執(zhí)行 25 修改變量值 25 跳轉(zhuǎn)執(zhí)行 26 產(chǎn)生信號量 26 強制函數(shù)返回 27 強制調(diào)用函數(shù) 27 在不同語言中使用GDB 27GDB用戶使用手冊GDB用戶使用手冊關(guān)鍵詞:GDB GNU摘 要:對GDB的常用命令進行說明1 概述 背景GDB是UNIX/LINUX上的最通用,最常見的調(diào)試工具。因此編寫此文檔,對GDB的常用調(diào)試命令進行說明。GDB工具主要完成以下功能:以用戶定義的各種方式啟動調(diào)試程序;可以多種方式設(shè)置斷點,停止程序;可單步跟蹤程序運行;可查看程序運行環(huán)境,變量;可動態(tài)的概要程序的運行環(huán)境; GDB需求在利用GDB調(diào)試代碼時,代碼編譯選項中,必須加入g選項,否則你將看不見程序的變量名,函數(shù)名等,而只能看見運行時的內(nèi)存地址。help命令只是例出gdb的命令種類,如果要看種類中的命令,可以使用help class 命令,如:help breakpoints,查看設(shè)置斷點的所有命令。如:(gdb) help breakpointsMaking program stop at certain points.List of mands:awatch Set a watchpoint for an expressionbreak Set breakpoint at specified line or functioncatch Set catchpoints to catch eventsclear Clear breakpoint at specified line or functionmands Set mands to be executed when a breakpoint is hitcondition Specify breakpoint number N to break only if COND is truedelete Delete some breakpoints or autodisplay expressionsdisable Disable some breakpointsenable Enable some breakpointshbreak Set a hardware assisted breakpointignore Set ignorecount of breakpoint number N to COUNTrbreak Set a breakpoint for all functions matching REGEXPrwatch Set a read watchpoint for an expressiontbreak Set a temporary breakpointtcatch Set temporary catchpoints to catch eventsthbreak Set a temporary hardware assisted breakpointwatch Set a watchpoint for an expressionType help followed by mand name for full documentation.Command name abbreviations are allowed if unambiguous.(gdb)(gdb) help breakSet breakpoint at specified line or function.Argument may be line number, function name, or * and an address.If line number is specified, break at start of code for that line.If function is specified, break at start of code for that function.If an address is specified, break at that exact address.With no arg, uses current execution address of selected stack frame.This is useful for breaking on return to a stack frame.Multiple breakpoints at one place are permitted, and useful if conditional.Do help breakpoints for info on other mands dealing with breakpoints.(gdb)GDB中不需要將命令全部打出,可以只輸入首字符,或前面數(shù)個字符就可以了。如q即可唯一標識quit。3 GDB使用 啟動GDBGDB調(diào)試代碼有多種啟動方式,如:Gdb programProgram是你需要調(diào)試的程序可執(zhí)行文件,一般應(yīng)該放在當前目錄下;Gdb program core同時調(diào)試program&core,core是program當機后產(chǎn)生的文件,此種配合調(diào)試方式,可以跟蹤進入堆棧等,查詢program當機的原因。注:此program必須能利用PATH找到。se file 從指定文件中讀取符號表信息,并把他用在可執(zhí)行文件中。directory directoryd directory加入一個源文件的搜索路徑。其余的命令可以在gdb環(huán)境下,使help查看。如:(gdb) shell$ lscore $ exitexit(gdb)在shell環(huán)境下,還可以執(zhí)行make命令對當前的代碼工程進行重新編譯。如要確認gdb是否讀到源文件,可使用l或list命令,看看gdb是否能列出源代碼。程序的運行,你有可能需要設(shè)置下面四方面的事。 set args 可指定運行時參數(shù)。運行環(huán)境。 show
點擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1