From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 128519 invoked by alias); 7 Jan 2019 16:56:10 -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 128508 invoked by uid 89); 7 Jan 2019 16:56:09 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=quitting, green, moments, quit X-HELO: mailsec109.isp.belgacom.be Received: from mailsec109.isp.belgacom.be (HELO mailsec109.isp.belgacom.be) (195.238.20.105) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 07 Jan 2019 16:56:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=skynet.be; i=@skynet.be; q=dns/txt; s=securemail; t=1546880166; x=1578416166; h=message-id:subject:from:to:cc:date:in-reply-to: references:mime-version:content-transfer-encoding; bh=w19Tr0VwE8fcWrRAakGygt3of6TU3gYYE6l3ZOldRFM=; b=dl9/PXUsu7WvmELVFCMirvoAgia5Orp9H2my2tZncDLr6B7oJObdA5Eb ymtr1bEbUB+qTImCaXv9cv9KZH6vaw==; Received: from 184.205-67-87.adsl-dyn.isp.belgacom.be (HELO md) ([87.67.205.184]) by relay.skynet.be with ESMTP/TLS/AES256-GCM-SHA384; 07 Jan 2019 17:56:04 +0100 Message-ID: <1546880163.1926.22.camel@skynet.be> Subject: Re: GDB ui word wrapping broken/interferes with 'set style' ? From: Philippe Waroquiers To: Tom Tromey Cc: gdb-patches@sourceware.org Date: Mon, 07 Jan 2019 16:56:00 -0000 In-Reply-To: <878szw1q2t.fsf@tromey.com> References: <1546181481.12900.10.camel@skynet.be> <87ftuelq21.fsf@tromey.com> <877efqlgu6.fsf@tromey.com> <1546244005.12900.20.camel@skynet.be> <87d0p91hk3.fsf@tromey.com> <1546868735.1926.19.camel@skynet.be> <878szw1q2t.fsf@tromey.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2019-01/txt/msg00134.txt.bz2 On Mon, 2019-01-07 at 07:48 -0700, Tom Tromey wrote: > > > > > > "Philippe" == Philippe Waroquiers writes: > > Philippe> Thanks for the investigations. If you deem it useful, I can do > Philippe> some manual validation of the patch, waiting for the test case and/or > Philippe> unit test. > > It's in crude form on my github, branch submit/fix-pager. > > Tom Seems to work much better, but I still found 2 strange things: I debugged gdb with this gdb, did various commands, and then a bt full which was ok: (top-gdb) bt full #0  0x00007f0b1ff97660 in __poll_nocancel () at ../sysdeps/unix/syscall-template.S:84 No locals. #1  0x000055bd7edc2af1 in poll (__timeout=-1, __nfds=, __fds=)     at /usr/include/x86_64-linux-gnu/bits/poll2.h:46 No locals. #2  gdb_wait_for_event (block=block@entry=1) at ../../binutils-gdb/gdb/event-loop.c:772         timeout = -1         file_ptr =         num_found = 0         __PRETTY_FUNCTION__ = "int gdb_wait_for_event(int)" I changed the width to 40, and then there were a few lines and spaces before the #0 (I am not completely sure how to reproduce the below. You might need to quit or C-c a previous paged command. So maybe this is the same problem as the next one (maybe some data that stays in a buffer after a quit or C-c). (top-gdb) set width 40 (top-gdb) bt full #0 0x00007f0b1ff97660 in __poll_nocancel () at ../sysdeps/unix/syscall-template.S:84 No locals. #1 0x000055bd7edc2af1 in poll ( __timeout=-1, __nfds=, __fds=) at /usr/include/x86_64-linux-gnu/bits/poll2.h:46 No locals. #2 gdb_wait_for_event ( block=block@entry=1) ... Also, when doing q (to stop paging): ... #3 0x000055bd7edc2c54 in gdb_do_one_event () at ../../binutils-gdb/gdb/event-loop.c:347 number_of_sources = current = 3 event_source_head = 2 res = #4 0x000055bd7edc2de5 in gdb_do_one_event () ) at ../../binutils-gdb/gdb/event-top.c:192 gdb_expt = , client_data=0x55bd813aa840) at ../../binutils-gdb/gdb/event-top.c:511 ui = 0x55bd813aa840 ... exception_try_scope_instance = ex = #22 gdb_main (args=) at ../../binutils-gdb/gdb/main.c:1193 exception_try_scope_instance = {