This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] consolidate gdbserver global data
- From: Stan Cox <scox at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 25 Nov 2015 12:29:26 -0500
- Subject: Re: [PATCH] consolidate gdbserver global data
- Authentication-results: sourceware.org; auth=none
- References: <5648B89D dot 3050305 at redhat dot com>
Any thoughts/comments on this patch that consolidates gdbserver external
data as shown in this example?
(gdb) print *cs
$2 = {server_waiting_ = 0,
extended_protocol_ = 1, response_needed_ = 1, exit_requested_ = 0,
run_once_ = 0, multi_process_ = 1, report_fork_events_ = 1,
report_vfork_events_ = 1, non_stop_ = 1, swbreak_feature_ = 1,
hwbreak_feature_ = 1, disable_randomization_ = 1,
program_argv_ = 0x682840, wrapper_argv_ = 0x0, packet_length_ = 16,
pass_signals_ = {0 <repeats 14 times>,
in_buffer_ = 0x6833c0 "vCont;t:p6feb.-1×\225\225\225\225",
<incomplete sequence \327>, own_buffer_ = 0x689fa0 "OK",
client_breakpoints = 0x0, ss = 0x680430, next = 0x0}
(gdb) print *cs->ss
$3 = {attach_count_ = 1, cont_thread_ = {pid = 0, lwp = 0, tid = 0},
general_thread_ = {pid = 28651, lwp = 28651, tid = 0},
signal_pid_ = 28651, last_status_ = {kind =
TARGET_WAITKIND_NO_RESUMED, value = {integer = 5, sig = GDB_SIGNAL_TRAP,
related_pid = {pid = 5, lwp = 0, tid = 0}, execd_pathname = 0x5,
syscall_number = 5}}, last_ptid_ = {pid = 0, lwp = 0, tid = 0},
mem_buf_ = 0x67bc70 ,
readchar_buf_ = "$vCont;t:p6feb.-1#52:64bit-avx.xml:",
readchar_bufp_ = 0x6804c4 ":64bit-avx.xml:0,fff#1bfc;",
all_processes_ = {head = 0x682a80, tail = 0x682a80},
all_threads_ = {head = 0x682cb0, tail = 0x682cb0},
current_thread_ = 0x682cb0}