From 4f4acf03e8524d009b3747621326dedbf2ffb84f Mon Sep 17 00:00:00 2001 From: Hizenberg469 Date: Tue, 21 Oct 2025 23:15:42 +0530 Subject: [PATCH] new lesson started --- GDB-Commands-Scripts-Workflow | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 GDB-Commands-Scripts-Workflow diff --git a/GDB-Commands-Scripts-Workflow b/GDB-Commands-Scripts-Workflow new file mode 100644 index 0000000..ed644d1 --- /dev/null +++ b/GDB-Commands-Scripts-Workflow @@ -0,0 +1,18 @@ += *GDB Commands, Scripts and Workflow* + +=== Breakpoints and Commands -- save time![quote,Rūmī]++++.Title + +In order to display some specific information when we reach a breakpoint, +we can achieve this by `(gdb)command` command in gdb. +[source,] +---- +(gdb) command 1 +Type commands for breakpoint(s) 1, one per line. +End with a line saying just "end". +>print arr +>print size +>end +---- + +Here, the argument to "command" is the index of the breakpoint to which +these print commands will be associated to. \ No newline at end of file