GDB Command Reference

Source: Internet
Author: User

Aliases?for? Other?      Commandalias short for ...               Alias short for ... bt backtrace i infoc continue l Listcont          Continue n nextd Delete ni Nextidir directory                  P Printdis Disable PO print-objectdo down R Rune                 Edit S STEPF Frame share Sharedlibraryfo  Forward-search si stepigcore generate-core-file u untilh help where backtracebreakpointsawatch            Set An expression watchpoint.break             Set A breakpoint at a line or function.catch             Set a catChPoint to catch an event.clear             clear a given breakpoint.commands          specify commands to run when a breakpoint is reached.condition         supply a condition to a particular breakpoint.delete            Delete one or more breakpoints or Auto-display expressions.disable           disable one or more breakpoints.enable            enable one or more breakpoints.hbreak            Set a hardware-assisted breakpoint.ignore            Set the Ignore-count of a Particular breakpoint.rbreak            Set a Breakpoint for all functions matching a regular expression.rwatch                       set a read watchpoint for the expression.awatch  set an expression watchpoint.tbreak  Set a temporary breakpoint.tcatch  set a temporary catchpoint.thbreak set a temporary HARDW are-assisted breakpoint.watch   Set An expression watchpoint. Examining? datacall                  Call a function in the program.delete?display        Cancel one or more expressions th At has been set to display when the program stops.delete?mem             Delete A memory region.disable?display       disable one or more expressions That has been set to display while the program Stops.disable?mem           Disable A memory region.disassemble            disassemble a section of memory.display                Print The value of an expression each time the program STOPS.ENABLE?DISPLAY &NB sp;      Enable One or more expressions that has been set to display when the program Stops.enab le?mem            Enable A memory region.inspect                Same as print.mem                    Define Attributes for a memory region.output                 Similar to print, but doesn ' t save the value in history and doesn ' t print a newline. For scripting.print                  Print The value of a expression.print-object          Cause an Objective C object to print information about itself.printf                 Print values such as the printf command.ptype                  Print The definition of a given type.set                    Evaluate An expression and save the result in a program variable.set?variable        & nbsp Same as set, avoids conflict with GDB variables.undisplay              Cancel One or more expressions that has been set to display when the proGram stops.whatis                Print the data type of an expression.x                      examine memory:x/fmt?address.



Excerpt from GDB Pocket reference

GDB Command Reference

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.