MCPcopy Create free account
hub / github.com/F-Stack/f-stack / next_instr_address

Function next_instr_address

freebsd/mips/mips/db_interface.c:238–245  ·  view source on GitHub ↗

* To do a single step ddb needs to know the next address * that we will get to. It means that we need to find out * both the address for a branch taken and for not taken, NOT! :-) * MipsEmulateBranch will do the job to find out _exactly_ which * address we will end up at so the 'dual bp' method is not * requiered. */

Source from the content-addressed store, hash-verified

236 * requiered.
237 */
238db_addr_t
239next_instr_address(db_addr_t pc, boolean_t bd)
240{
241 db_addr_t next;
242
243 next = (db_addr_t)MipsEmulateBranch(kdb_frame, pc, 0, 0);
244 return (next);
245}
246
247/*
248 * Decode instruction and figure out type.

Callers 3

kdb_cpu_set_singlestepFunction · 0.85
db_restart_at_pcFunction · 0.85
db_set_single_stepFunction · 0.85

Calls 1

MipsEmulateBranchFunction · 0.85

Tested by

no test coverage detected