From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 128467 invoked by alias); 25 Nov 2015 19:05:13 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 128458 invoked by uid 89); 25 Nov 2015 19:05:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: plane.gmane.org Received: from plane.gmane.org (HELO plane.gmane.org) (80.91.229.3) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Wed, 25 Nov 2015 19:05:12 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1a1fNI-0002Os-Je for gdb-patches@sourceware.org; Wed, 25 Nov 2015 20:05:04 +0100 Received: from nat-pool-rdu-t.redhat.com ([66.187.233.202]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 Nov 2015 20:05:04 +0100 Received: from scox by nat-pool-rdu-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 Nov 2015 20:05:04 +0100 To: gdb-patches@sourceware.org From: Stan Cox Subject: Re: [PATCH] consolidate gdbserver global data Date: Wed, 25 Nov 2015 19:05:00 -0000 Message-ID: References: <5648B89D.3050305@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: <5648B89D.3050305@redhat.com> X-IsSubscribed: yes X-SW-Source: 2015-11/txt/msg00529.txt.bz2 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 , in_buffer_ = 0x6833c0 "vCont;t:p6feb.-1ו\225\225\225\225", , 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}