GDB (xrefs)
|
#include "defs.h"
#include "gdbcore.h"
#include "gdbthread.h"
#include "inferior.h"
#include "objfiles.h"
#include "observable.h"
#include "regcache.h"
#include "solib.h"
#include "solist.h"
#include "symfile.h"
#include "target.h"
#include "gdbsupport/gdb_obstack.h"
#include "bsd-uthread.h"
Go to the source code of this file.
Classes | |
struct | bsd_uthread_target |
struct | bsd_uthread_ops |
Macros | |
#define | BSD_UTHREAD_PTHREAD_MAGIC 0xd09ba115 |
#define | BSD_UTHREAD_PS_RUNNING 0 |
#define | BSD_UTHREAD_PS_DEAD 18 |
Functions | |
static struct bsd_uthread_ops * | get_bsd_uthread (struct gdbarch *gdbarch) |
void | bsd_uthread_set_supply_uthread (struct gdbarch *gdbarch, void(*supply_uthread)(struct regcache *, int, CORE_ADDR)) |
void | bsd_uthread_set_collect_uthread (struct gdbarch *gdbarch, void(*collect_uthread)(const struct regcache *, int, CORE_ADDR)) |
static void | bsd_uthread_check_magic (CORE_ADDR addr) |
static CORE_ADDR | bsd_uthread_lookup_address (const char *name, struct objfile *objfile) |
static int | bsd_uthread_lookup_offset (const char *name, struct objfile *objfile) |
static CORE_ADDR | bsd_uthread_read_memory_address (CORE_ADDR addr) |
static int | bsd_uthread_activate (struct objfile *objfile) |
static void | bsd_uthread_deactivate (void) |
static void | bsd_uthread_inferior_created (inferior *inf) |
static void | bsd_uthread_solib_loaded (struct so_list *so) |
static void | bsd_uthread_solib_unloaded (program_space *pspace, so_list *so) |
void | _initialize_bsd_uthread () |
Variables | |
static const target_info | bsd_uthread_target_info |
static bsd_uthread_target | bsd_uthread_ops |
static const registry< gdbarch >::key< struct bsd_uthread_ops > | bsd_uthread_data |
static CORE_ADDR | bsd_uthread_thread_run_addr |
static CORE_ADDR | bsd_uthread_thread_list_addr |
static int | bsd_uthread_thread_state_offset = -1 |
static int | bsd_uthread_thread_next_offset = -1 |
static int | bsd_uthread_thread_ctx_offset |
static const char * | bsd_uthread_solib_name |
static int | bsd_uthread_active |
static const char *const | bsd_uthread_solib_names [] |
static const char *const | bsd_uthread_state [] |
#define BSD_UTHREAD_PS_DEAD 18 |
Definition at line 137 of file bsd-uthread.c.
Referenced by bsd_uthread_target::thread_alive().
#define BSD_UTHREAD_PS_RUNNING 0 |
Definition at line 136 of file bsd-uthread.c.
#define BSD_UTHREAD_PTHREAD_MAGIC 0xd09ba115 |
Definition at line 121 of file bsd-uthread.c.
Referenced by bsd_uthread_check_magic(), and bsd_uthread_target::wait().
void _initialize_bsd_uthread | ( | ) |
Definition at line 545 of file bsd-uthread.c.
References bsd_uthread_inferior_created(), bsd_uthread_solib_loaded(), bsd_uthread_solib_unloaded(), gdb::observers::inferior_created, gdb::observers::solib_loaded, and gdb::observers::solib_unloaded.
|
static |
Definition at line 194 of file bsd-uthread.c.
References bsd_uthread_active, bsd_uthread_lookup_address(), bsd_uthread_lookup_offset(), bsd_uthread_thread_ctx_offset, bsd_uthread_thread_list_addr, bsd_uthread_thread_next_offset, bsd_uthread_thread_run_addr, bsd_uthread_thread_state_offset, current_inferior(), get_bsd_uthread(), inferior::push_target(), bsd_uthread_ops::supply_uthread, and target_gdbarch().
Referenced by bsd_uthread_inferior_created(), and bsd_uthread_solib_loaded().
|
static |
Definition at line 126 of file bsd-uthread.c.
References BSD_UTHREAD_PTHREAD_MAGIC, gdbarch_byte_order(), read_memory_unsigned_integer(), and target_gdbarch().
Referenced by bsd_uthread_target::fetch_registers(), bsd_uthread_target::store_registers(), and bsd_uthread_target::thread_alive().
|
static |
Definition at line 253 of file bsd-uthread.c.
References bsd_uthread_active, current_inferior(), and inferior::unpush_target().
Referenced by bsd_uthread_solib_unloaded(), and bsd_uthread_target::mourn_inferior().
|
static |
Definition at line 263 of file bsd-uthread.c.
References bsd_uthread_activate().
Referenced by _initialize_bsd_uthread().
|
static |
Definition at line 158 of file bsd-uthread.c.
References lookup_minimal_symbol(), bound_minimal_symbol::minsym, name, and bound_minimal_symbol::value_address().
Referenced by bsd_uthread_activate(), and bsd_uthread_lookup_offset().
|
static |
Definition at line 170 of file bsd-uthread.c.
References bsd_uthread_lookup_address(), gdbarch_byte_order(), name, read_memory_unsigned_integer(), and target_gdbarch().
Referenced by bsd_uthread_activate().
|
static |
Definition at line 183 of file bsd-uthread.c.
References builtin_type::builtin_data_ptr, builtin_type(), read_memory_typed_address(), and target_gdbarch().
Referenced by bsd_uthread_target::fetch_registers(), bsd_uthread_target::store_registers(), bsd_uthread_target::update_thread_list(), and bsd_uthread_target::wait().
void bsd_uthread_set_collect_uthread | ( | struct gdbarch * | gdbarch, |
void(*)(const struct regcache *, int, CORE_ADDR) | collect_uthread ) |
Definition at line 111 of file bsd-uthread.c.
References bsd_uthread_ops::collect_uthread, and get_bsd_uthread().
Referenced by amd64obsd_init_abi(), i386obsd_init_abi(), sparc32obsd_init_abi(), and sparc64obsd_init_abi().
void bsd_uthread_set_supply_uthread | ( | struct gdbarch * | gdbarch, |
void(*)(struct regcache *, int, CORE_ADDR) | supply_uthread ) |
Definition at line 98 of file bsd-uthread.c.
References get_bsd_uthread(), and bsd_uthread_ops::supply_uthread.
Referenced by amd64obsd_init_abi(), i386obsd_init_abi(), sparc32obsd_init_abi(), and sparc64obsd_init_abi().
|
static |
Definition at line 277 of file bsd-uthread.c.
References bsd_uthread_activate(), bsd_uthread_solib_name, bsd_uthread_solib_names, so_list::objfile, so_list::so_original_name, and solib_read_symbols().
Referenced by _initialize_bsd_uthread().
|
static |
Definition at line 297 of file bsd-uthread.c.
References bsd_uthread_deactivate(), bsd_uthread_solib_name, and so_list::so_original_name.
Referenced by _initialize_bsd_uthread().
|
static |
Definition at line 86 of file bsd-uthread.c.
References bsd_uthread_data, and registry< T >::get().
Referenced by bsd_uthread_activate(), bsd_uthread_set_collect_uthread(), bsd_uthread_set_supply_uthread(), bsd_uthread_target::fetch_registers(), and bsd_uthread_target::store_registers().
|
static |
Definition at line 155 of file bsd-uthread.c.
Referenced by bsd_uthread_activate(), bsd_uthread_deactivate(), and bsd_uthread_target::close().
|
static |
Definition at line 83 of file bsd-uthread.c.
Referenced by get_bsd_uthread().
|
static |
Definition at line 68 of file bsd-uthread.c.
|
static |
Definition at line 152 of file bsd-uthread.c.
Referenced by bsd_uthread_solib_loaded(), bsd_uthread_solib_unloaded(), and bsd_uthread_target::close().
|
static |
Definition at line 269 of file bsd-uthread.c.
Referenced by bsd_uthread_solib_loaded().
|
static |
Definition at line 486 of file bsd-uthread.c.
Referenced by bsd_uthread_target::extra_thread_info().
|
static |
Definition at line 36 of file bsd-uthread.c.
Referenced by bsd_uthread_target::info().
|
static |
Definition at line 149 of file bsd-uthread.c.
Referenced by bsd_uthread_activate(), bsd_uthread_target::close(), bsd_uthread_target::fetch_registers(), and bsd_uthread_target::store_registers().
|
static |
Definition at line 144 of file bsd-uthread.c.
Referenced by bsd_uthread_activate(), bsd_uthread_target::close(), and bsd_uthread_target::update_thread_list().
|
static |
Definition at line 148 of file bsd-uthread.c.
Referenced by bsd_uthread_activate(), bsd_uthread_target::close(), and bsd_uthread_target::update_thread_list().
|
static |
Definition at line 141 of file bsd-uthread.c.
Referenced by bsd_uthread_activate(), bsd_uthread_target::close(), bsd_uthread_target::fetch_registers(), bsd_uthread_target::store_registers(), and bsd_uthread_target::wait().
|
static |
Definition at line 147 of file bsd-uthread.c.
Referenced by bsd_uthread_activate(), bsd_uthread_target::close(), bsd_uthread_target::extra_thread_info(), and bsd_uthread_target::thread_alive().