/** * \brief GDB debugging support * \author Sebastian Sumpf * \date 2015-03-12 */ /* * Copyright (C) 2015-2017 Genode Labs GmbH * * This file is part of the Genode OS framework, which is distributed * under the terms of the GNU Affero General Public License version 3. */ #include #include /* * 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 */ extern "C" void brk(Linker::Debug *, Linker::Link_map *) { } void Linker::dump_link_map(Object const &obj) { for (Object const *o = &obj; o; o = o->next_obj()) { if (o->is_binary()) continue; log(" ", Hex(o->link_map().addr), " .. ", Hex(o->link_map().addr + o->size() - 1), ": ", o->name()); } }