Setting a breakpoint, but breakpoint not hit-Collection of common programming errors
I’ve built Chromium locally, and I’m trying to debug it with GDB. For some reason, certain breakpoints do not seem to hit. For example, when I do
b InjectedScriptBase::makeEvalCall
GDB prompts
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (InjectedScriptBase::makeEvalCall) pending.
but when the relevant code is triggered, the breakpoint is not hit.
What am I doing wrong? I’m currently assuming that the relevant symbols are loaded at run-time, but should I load them separately?