base: changes for GDB monitor

- add a new function 'binary_ready_hook_for_gdb()' in ldso. GDB can set a
  breakpoint at this function to know when ldso has loaded the binary
  into memory.
- get the thread state from the NOVA kernel immediately on 'pause()'

Fixes #1968
This commit is contained in:
Christian Prochaska
2016-05-17 16:13:56 +02:00
committed by Christian Helmuth
parent 30e57d4581
commit 2cde1d36c1
24 changed files with 371 additions and 408 deletions

View File

@ -14,6 +14,12 @@
#include <debug.h>
#include <linker.h>
/*
* GDB can set a breakpoint at this function to find out when ldso has loaded
* the binary into memory.
*/
void binary_ready_hook_for_gdb() { }
/**
* C-break function for GDB
*/

View File

@ -27,6 +27,11 @@ namespace Linker {
void dump_link_map(Object *o);
}
/*
* GDB can set a breakpoint at this function to find out when ldso has loaded
* the binary into memory.
*/
void binary_ready_hook_for_gdb();
/**
* LIBC debug support

View File

@ -580,6 +580,8 @@ void Component::construct(Genode::Env &env)
Link_map::dump();
binary_ready_hook_for_gdb();
/* start binary */
binary->call_entry_point(env);
}