From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17722 invoked by alias); 12 Aug 2010 04:37:51 -0000 Mailing-List: contact archer-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: List-Id: Received: (qmail 17706 invoked by uid 22791); 12 Aug 2010 04:37:49 -0000 X-SWARE-Spam-Status: No, hits=-6.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org From: Tom Tromey To: Oleg Nesterov Cc: archer@sourceware.org, utrace-devel@redhat.com Subject: Re: gdbstub initial code, v3 References: <20100811235810.GA9783@redhat.com> <20100812011113.GA13212@redhat.com> <20100812023750.GA17011@redhat.com> Date: Thu, 12 Aug 2010 04:37:00 -0000 In-Reply-To: <20100812023750.GA17011@redhat.com> (Oleg Nesterov's message of "Thu, 12 Aug 2010 04:37:50 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2010-q3/txt/msg00098.txt.bz2 >>>>> "Oleg" == Oleg Nesterov writes: Oleg> So, the patch below fixes the problem, and gdb + /proc/ugdb seems Oleg> to work. Oleg> Indeed, gdb sees that this fd is not pipe/tcp and uses the "hardwire" Oleg> serial_ops, but hardwire_readchar() doesn't play well with select(). Oleg> Please teach gdb to use poll/select ? I looked at this a little bit. It seems to me that the "hardwire" stuff is for talking to ttys, and we instead want gdb to be using the pipe code. Maybe a little hack to stat the open_name in the hardwire case (in serial_open) would be appropriate. Tom