Skip to content

Commit 759a95d

Browse files
committed
updated gdb.md
1 parent db0d425 commit 759a95d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/gdb.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ $1 = (struct tnode\*) 0x0
207207

208208
![start](img/gdb/t2.jpeg)
209209

210-
We habe reached Null node represented by 0x0 in hexadecimal
210+
We have reached the Null node represented by 0x0 in hexadecimal
211211

212212
---
213213

@@ -319,7 +319,7 @@ As expected we found "hij" to the right of "\*" node
319319

320320
---
321321

322-
Further continuing the debugging, we will find Null node to the left of "hij" node
322+
Further continuing the debugging, we will find the Null node to the left of "hij" node
323323

324324
Now, when we move right from node "hij"
325325

@@ -347,7 +347,7 @@ GDB will monitor the value of the root pointer, and whenever the value of the va
347347

348348
## Infinte Loop
349349

350-
One of the important use cases of GDB start when we encounter a segmentation fault or infinte loop, and trust me, we encounter such errors more often than we thin in the upcoming stages, as the syntax tree becomes more and more complex, during those times, GDB debugging of the syntax tree to verify the contents and to find out went wrong is very helpful and saves a lot of time.
350+
One of the most critical use cases for GDB arises when we encounter a segmentation fault or an infinite loop. These issues become increasingly common as the syntax tree grows more complex in later stages. In such situations, using GDB to debug the syntax tree, verify its contents, and identify what went wrong is invaluable. It can save a significant amount of time and effort in troubleshooting these complex errors.
351351

352352
In this example, we can see an infinite loop, for the problem infix to prefix problem. let us see how we can use GDB to find the error in the construction of the express tree / syntax tree.
353353

0 commit comments

Comments
 (0)