GDB tracking layout delete process

xiaoxiao2021-03-06  44

GDB tracking the process of deleting layouts in BBS: first log in to BBS, such as PID is NNN (number) $ GDB SRC / BBS -P NNN <--- Attach Process in Menu.ini to find "[b] Oarddel cut off The discussion district "function menu, the following @Delboard 0, 0, perm_blevels," Board delete "," [b] Oarddel cut off the discussion area "The first column of Delboard is the function of this feature. "Delboard" corresponds to the delete layout function D_Board in the ht / src / comm_lists.c program, as shown below {"delBoard", (void *) D_Board}, {"settrace", (void *) m_trace}, so To set the D_Board function to a breakpoint. After Attach, the program will stop, press C to continue running, then stop, then stop, then s or n. $ TB D_BOARD <--- Set up temporary breakpoints in D_Board functions

Then n is Step over; s is Step Into; P is the display variable value C is to continue to run the GDB to provide two ways: 1. Single step entry, Step Into is tracking to the function. The command is STEP or S 2. Single step, Next, it is a simple single step and does not enter the function. Command is next or N

转载请注明原文地址:https://www.9cbs.com/read-66992.html

New Post(0)