On 02/03/16(Wed) 11:42, Mike Belopuhov wrote: > On 1 March 2016 at 23:58, Martin Pieuchot <[email protected]> wrote: > > As explained previously I'm implementing an instrumentation system based > > on ddb(4) and relying on breakpoints to execute kernel probes. > > > > For debugging purposes I need a way to dump the content of the registers > > when a breakpoint-not-for-ddb(4) fired. So I hacked the "show regs" to > > dump the registers at a specified address if one was given. > > > > I'd like to put this in, any objection? Comment? > > > > While here I merged db_print.c into db_command.c, I'm making some room > > before adding new files ;) > > > > If I get any ok I'll update the manual. > > > > So the argument was passed, but not used? I think it's OK to make use of it.
Passing an argument to a command in ddb(4) is optional. For the moment "show regs" ignores the possibly passed address. As explained in the other mail I'll make ``db_regs'' match the trapframe on all archs before proceeding with this diff.
