mirror of
https://github.com/Hizenberg469/GDB-tutorial.git
synced 2026-10-31 02:23:38 +02:00
new lesson started
This commit is contained in:
1 parent
9010914552
commit
4f4acf03e8
1 file changed
+18
@@ -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.
|
||||||
Reference in new issue
Block a user