Loading...
Searching...
No Matches
debugger
Go to the documentation of this file.
// vi:set ft=cpp: -*- Mode: C++ -*-
/*
* (c) 2010-2011 Adam Lackorzynski <adam@os.inf.tu-dresden.de>,
* Alexander Warg <warg@os.inf.tu-dresden.de>
* economic rights: Technische Universität Dresden (Germany)
*
* License: see LICENSE.spdx (in this directory or the directories above)
*/
#pragma once
#include <l4/sys/debugger.h>
#include <l4/sys/kobject>
namespace L4 {
class Debugger : public Kobject_t<Debugger, Kobject, L4_PROTO_DEBUGGER>
{
public:
enum
{
Switch_log_on = L4_DEBUGGER_SWITCH_LOG_ON,
Switch_log_off = L4_DEBUGGER_SWITCH_LOG_OFF,
};
l4_msgtag_t set_object_name(const char *name,
l4_utcb_t *utcb = l4_utcb()) noexcept
{ return l4_debugger_set_object_name_u(cap(), name, utcb); }
unsigned long global_id(l4_utcb_t *utcb = l4_utcb()) noexcept
{ return l4_debugger_global_id_u(cap(), utcb); }
unsigned long kobj_to_id(l4_addr_t kobjp,
l4_utcb_t *utcb = l4_utcb()) noexcept
{ return l4_debugger_kobj_to_id_u(cap(), kobjp, utcb); }
long query_log_typeid(const char *name, unsigned idx,
l4_utcb_t *utcb = l4_utcb()) noexcept
{ return l4_debugger_query_log_typeid_u(cap(), name, idx, utcb); }
long query_log_name(unsigned idx,
char *name, unsigned namelen,
char *shortname, unsigned shortnamelen,
l4_utcb_t *utcb = l4_utcb()) noexcept
{
return l4_debugger_query_log_name_u(cap(), idx, name, namelen,
shortname, shortnamelen, utcb);
}
l4_msgtag_t switch_log(const char *name, unsigned on_off,
l4_utcb_t *utcb = l4_utcb()) noexcept
{ return l4_debugger_switch_log_u(cap(), name, on_off, utcb); }
l4_msgtag_t get_object_name(unsigned id, char *name, unsigned size,
l4_utcb_t *utcb = l4_utcb()) noexcept
{ return l4_debugger_get_object_name_u(cap(), id, name, size, utcb); }
l4_msgtag_t add_image_info(l4_addr_t base, const char *name,
l4_utcb_t *utcb = l4_utcb()) noexcept
{ return l4_debugger_add_image_info_u(cap(), base, name, utcb); }
};
}
L4::Debugger
C++ kernel debugger API.
Definition debugger:43
L4::Debugger::add_image_info
l4_msgtag_t add_image_info(l4_addr_t base, const char *name, l4_utcb_t *utcb=l4_utcb()) noexcept
Add loaded image information for a task.
Definition debugger:161
L4::Debugger::get_object_name
l4_msgtag_t get_object_name(unsigned id, char *name, unsigned size, l4_utcb_t *utcb=l4_utcb()) noexcept
Get name of object with Id id.
Definition debugger:148
L4::Debugger::global_id
unsigned long global_id(l4_utcb_t *utcb=l4_utcb()) noexcept
Get the globally unique ID of the object behind a capability.
Definition debugger:71
L4::Debugger::query_log_name
long query_log_name(unsigned idx, char *name, unsigned namelen, char *shortname, unsigned shortnamelen, l4_utcb_t *utcb=l4_utcb()) noexcept
Query the name of a log type given the ID.
Definition debugger:116
L4::Debugger::query_log_typeid
long query_log_typeid(const char *name, unsigned idx, l4_utcb_t *utcb=l4_utcb()) noexcept
Query the log-id for a log type.
Definition debugger:97
L4::Debugger::switch_log
l4_msgtag_t switch_log(const char *name, unsigned on_off, l4_utcb_t *utcb=l4_utcb()) noexcept
Set or unset log.
Definition debugger:133
L4::Debugger::kobj_to_id
unsigned long kobj_to_id(l4_addr_t kobjp, l4_utcb_t *utcb=l4_utcb()) noexcept
Get the globally unique ID of the object behind the kobject pointer.
Definition debugger:83
L4::Debugger::set_object_name
l4_msgtag_t set_object_name(const char *name, l4_utcb_t *utcb=l4_utcb()) noexcept
Set the name of a kernel object.
Definition debugger:59
L4::Kobject_t
Helper class to create an L4Re interface class that is derived from a single base class.
Definition __typeinfo.h:750
L4::Kobject::cap
l4_cap_idx_t cap() const noexcept
Return capability selector.
Definition kobject:69
debugger.h
Debugger related definitions.
l4_addr_t
unsigned long l4_addr_t
Address type.
Definition l4int.h:34
l4_utcb_t
struct l4_utcb_t l4_utcb_t
Opaque type for the UTCB.
Definition utcb.h:56
l4_utcb
l4_utcb_t * l4_utcb(void) L4_NOTHROW L4_PURE
Get the UTCB address.
Definition utcb.h:346
L4
L4 low-level kernel interface.
Definition l4sys-l4f-groups.dox:50
l4_msgtag_t
Message tag data structure.
Definition types.h:154