GNU Debugger (gdb) is an open-source tool for debugging source code in Linux programs. It's also used for commercial software development on UNIX platforms. Here are some things you can do with gdb: Run: Starts a program execution Quit: Quits gdb Print expr: Prints an expression, where expr may be a variable name Next: Goes to the next line Set a breakpoint: Pauses a running program and lets you examine the variables, arguments, memory areas, stack, heap, and more Use breakpoints: Tells gdb to stop or pause the program execution at certain line, or function, or address Use... Show more GNU Debugger (gdb) is an open-source tool for debugging source code in Linux programs. It's also used for commercial software development on UNIX platforms. Here are some things you can do with gdb: Run: Starts a program execution Quit: Quits gdb Print expr: Prints an expression, where expr may be a variable name Next: Goes to the next line Set a breakpoint: Pauses a running program and lets you examine the variables, arguments, memory areas, stack, heap, and more Use breakpoints: Tells gdb to stop or pause the program execution at certain line, or function, or address Use watchpoints: Stops execution whenever the value of an expression changes You can get started with gdb by invoking it using the gdb command, which will display some information about the platform and drop you into the (gdb) prompt. Here are some other things you can do with gdb: Understand why and how a program is crashing Obtain a backtrace, which is a detailed list of all functions that were running when the program failed Observe program states on specific breakpoints Alter the flow or values for further execution Show less
GNU Debugger (gdb) is an open-source tool for debugging source code in Linux programs. It's also used for commercial software development on UNIX platforms.
Here are some things you can do with gdb: Run: Starts a program execution Quit: Quits gdb Print expr: Prints an expression, where expr may be a variable name Next: Goes to the next line Set a breakpoint: Pauses a running program and lets you examine the variables, arguments, memory areas, stack, heap, and more Use breakpoints: Tells gdb to stop or pause the program execution at certain line, or function, or address Use watchpoints: Stops execution whenever the value of an expression changes
You can get started with gdb by invoking it using the gdb command, which will display some information about the platform and drop you into the (gdb) prompt.
Here are some other things you can do with gdb: Understand why and how a program is crashing Obtain a backtrace, which is a detailed list of all functions that were running when the program failed Observe program states on specific breakpoints Alter the flow or values for further execution
Join 4M+ learners. Unlock unlimited quizzes, wrong-answer tracking, flashcards + reminders, study guides, and 1-on-1 challenges.