VLC Learning Program (4) - Using GDB Debug in Emacs

xiaoxiao2021-03-06  44

One. Emacs debug 1, useing the clipboard mx menu-bar-enable-clipboard (Make Cut, Copy, Pasty Menu Items, Use The Clipboard) 2, Use "Wheel" mx mouse-wheel-mode (Scroll in the middle Key) 3, exit any command status CG 4, enter the compilation mode MX Compile or from the menu - "Tools-" Compile 5, use the Compile mode CX `(search error source code row) (Cursor is located in Compile Buffer The error prompts, press the key, skip to an error source code line) CU CX `Lists the same error in Compile Buffer.

6. Search with a GREP, MX GREP enters the search parameter to a grep-style regexp (use in single-quotes to quote the shell's special character ") FOLLOWS BYE FILE NAMES; Second, CX` (Search Error Source Codes - GREP Searched Home Errors) (Cursor Location In the Error of Grep Buffer, press ", you will jump to the source code line of the error) II. GUD debug 1, enter MX GDB 2, command CX Set breakpoint in the source code line where the pointer is located, CC is in GUD BUFFER, and CX CA is line 3, CC CL CA CA CA reaches the last row 4, CC CS CX CA CS GUD-STEP 5, CC CN CX CA CN GUD-NEXT 6, CC CR CX CA CR GUD-Cont Performs the next breakpoint 7, CC CD CX CA CD GUD-REMOVE Deletes the current breakpoint three, GDB command 1, debug command Step Next Continue Untile 2, set breakpoint break file.c: foo break file.c: 11 Break 12 Break -12 If executed to a row, means forward, - indicate backward breakpoint information info breakpoint enable Disable < BreakPoint Number> Breakpoint Conditions Break IF Condition delete breakpoints Clear 3 View Memory X / 6, switch directory CD 7, add source file path DIR 8, display if there is a char msg [25]; int * arr = (int *) Mollac (len * sizeof INT); Display MSG Display * Arr @ LEN or P MSG P * arr @

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

New Post(0)