This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] consolidate gdbserver global data


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}



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]