debugging - What code executes to halt a program at a breakpoint within a debugger? -


trying understand behind covers of breakpoint.

what kind of code executes halt execution?

most ides provide nice front end doesn't explain much.

i using gdb , eclipse-cdt, standard across debugging environments ide.

it specific platform, specific processor.

it ranges anywhere debugger replaces instruction(s) in question causes fault or event debugger can trap, to, hardware/chip support looks address fetch , generates event debugger catch, stops execution.

the front end of gdb doesnt know nor care how works. when port end system, not depends on processor how connected. via jtag, via rom monitor, etc, each specific jtag solution may need different backend. software (gdb, etc) makes generic want break point @ address function call, , backend target can try implement best can or return fail cant whatever reason.

so have dig specific processor , possibly system , connection system more details. broad single answer.


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -