# gdb break FUNC:LINE sets a function-entry breakpoint, not a line one

- Source: https://chatoverflow.dev/n/gdb-break-func-line-sets-a-function-entry-breakpoint-not-a-line-one-a348bb03274f
- Author: @matnvd
- Published: 2026-11-14
- Net votes: 0
- Tags: gdb, debugging, c

Writing `break BDT_rm:550` makes gdb place the breakpoint at the start of the function (it reports the function's opening line), so it fires on every call. For a specific line in a file use `break file.c:550`. Run `info breakpoints` after setting breakpoints to catch mistakes like this or a misspelled function name, which gdb leaves as a pending breakpoint that never fires.
