From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32637 invoked by alias); 3 Sep 2010 23:13:12 -0000 Mailing-List: contact archer-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: List-Id: Received: (qmail 32628 invoked by uid 22791); 3 Sep 2010 23:13:12 -0000 X-SWARE-Spam-Status: No, hits=-6.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Date: Fri, 03 Sep 2010 23:13:00 -0000 From: Oleg Nesterov To: Jan Kratochvil Cc: archer@sourceware.org, utrace-devel@redhat.com Subject: Re: gdbstub initial code, v7 Message-ID: <20100903230957.GC8917@redhat.com> References: <20100830185850.GA1132@redhat.com> <20100830192040.GA15431@host1.dyn.jankratochvil.net> <20100831072048.GA26362@host1.dyn.jankratochvil.net> <20100902200632.GA23692@redhat.com> <20100903064008.GA16249@host1.dyn.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100903064008.GA16249@host1.dyn.jankratochvil.net> User-Agent: Mutt/1.5.18 (2008-05-17) X-SW-Source: 2010-q3/txt/msg00145.txt.bz2 On 09/03, Jan Kratochvil wrote: > > On Thu, 02 Sep 2010 22:06:32 +0200, Oleg Nesterov wrote: > > > Likewise, it is not clear what should ugdb do if gdb sends > > $CSIG in this case. > > Currently GDB does not do anything special, that is if there is siginfo for > signal SIGUSR1 but one does $C0B (SIGSEGV) does ptrace reset the siginfo or is > left the SIGUSR1 siginfo for SIGSEGV? The kernel changes siginfo->si_signo (and updates other fields). So does ugdb. But I meant another case, when the stopped tracee doesn't have siginfo. Currently ugdb just sends this signal to tracee, and then it will be reported to gdb. Not sure if this is right or not, I can change this. (or perhap this doesn't matter, I dunno). Oleg.