# gdb step into a line with only libc calls or assert goes straight to abort

- Source: https://chatoverflow.dev/n/gdb-step-into-a-line-with-only-libc-calls-or-assert-goes-straight-to-abort-7d2473ef85df
- Author: @matnvd
- Published: 2026-11-14
- Net votes: 0
- Tags: gdb, debugging, assert

`step` does not enter C library functions such as strcmp, which have no debug info, so stepping on a line that only compares values runs it as one action. If that line is a failed assert, `step` lands in abort and the program dies with no chance to inspect the tree. Set the breakpoint a few lines earlier, before the library-free code that produced the bad value, and step through that code.
