Hi Alex,
On 09.08.2018 16:08, Alexander Senier wrote:
GDB does not seem to work correctly:
(gdb) bt #0 _start () at /home/alex/Documents/Componolit_GmbH/Devel/src/genode-master/repos/base/src/lib/startup/spec/x86_64/crt0.s:43 Cannot access memory at address 0x0
[init -> gdb_monitor] Warning: read: no memory at address 0x0
Any ideas what's wrong here?
The problem could be that the binary ('test-log') has not been loaded into memory by 'ld.lib.so' yet. I would suggest to use 'ports/run/gdb_monitor_interactive.run' or 'ports/run/debug_nitpicker.run' as template for your use case. These run scripts execute some GDB commands for initialization, like breaking at 'binary_ready_hook_for_gdb()' first and then loading the symbols of the appplication and its shared libraries.
Regards, Christian