From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 63DE93858D20; Wed, 31 May 2023 23:35:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 63DE93858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1685576159; bh=xGiMbFmW/r25dpSzRkHfj73IplCDtJ8H+NLDM3cPGXU=; h=From:To:Subject:Date:From; b=c1JbrZMdrYwP+X7xlQA2rKOhtgO/za2b8VdnXirw4iimQVUm48ra2ogHM8eeC2nZp 0mJxcZ+sDMOtxGlvvhz2z6nVgnEjpbVVFCFco0wDjTWp9bw5rz86MwIoGk2SmtML0b ChOOGuP6w3aAk+tvuqJjUhyQ5cJRV6dcre5p09bk= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug tui/30502] New: [gdb/tui] output window Date: Wed, 31 May 2023 23:35:58 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: tui X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30502 Bug ID: 30502 Summary: [gdb/tui] output window Product: gdb Version: HEAD Status: NEW Severity: enhancement Priority: P2 Component: tui Assignee: unassigned at sourceware dot org Reporter: vries at gcc dot gnu.org Target Milestone: --- Created attachment 14910 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D14910&action=3Ded= it WIP patch I've written a WIP patch on top of https://sourceware.org/pipermail/gdb-patches/2023-May/199917.html . The rough idea is as follows. We add an output window, so we have: ... =E2=94=8C=E2=94=80hello.c=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=90 =E2=94=82 12 printf ("hello10\n"); =E2=94= =82 =E2=94=82 > 13 printf ("hello11\n"); =E2=94= =82 =E2=94=82 14 printf ("hello12\n"); =E2=94= =82 =E2=94=82 15 printf ("hello13\n"); =E2=94= =82 =E2=94=82 16 printf ("hello14\n"); =E2=94= =82 =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=98 native process 877 In: main L13 PC: 0x40056f=20 Temporary breakpoint 1, main () at hello.c:3 (gdb) n (gdb)=20 hello8 hello9 hello10 ... That is, from top to bottom: - src window - status window - cmd window - output window ... This fixes the problem that: ... (gdb) next ... followed by produces very briefly: ... (gdb) next hello ... before being overwritten by the following prompt: ... (gdb) next (gdb)=20 ... --=20 You are receiving this mail because: You are on the CC list for the bug.=