Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: gdb-patches ml <gdb-patches@sourceware.org>
Cc: Jan Kratochvil <jan.kratochvil@redhat.com>,
	Hui Zhu <teawater@gmail.com>,
	       Joel Brobecker <brobecker@adacore.com>
Subject: Re: [PATCH] Fix gdb crash with tui
Date: Tue, 12 Mar 2013 16:35:00 -0000	[thread overview]
Message-ID: <513F5932.7090901@redhat.com> (raw)
In-Reply-To: <513F51D9.9040604@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 1476 bytes --]

On 03/12/2013 04:03 PM, Pedro Alves wrote:
> On 03/12/2013 12:36 PM, Jan Kratochvil wrote:
>> On Tue, 12 Mar 2013 13:21:44 +0100, Hui Zhu wrote:
>>> Not sure the prev backtrace for crash is right, so I post new one:
>>
>> BTW don't you have a recipe for the reproducibility?  Don't you have some
>> unusual terminal size (stty size) for example?  Which distro?
>>
>>
>> Jan
> 
> I just reproduced it on my Fedora 17 box with current mainline.
> 
> $ stty size
> 45 172
> 
> To reproduce, I just did the steps in the OP.
> 
> $ ./gdb ./gdb
> (gdb) start
> 
> "c-x a" to flip to TUI mode.
> 
> repeat:
>  press arrow up a bit, so the source display scrolls a bit up.
>  press arrow down a bit, so the source display scrolls a bit down.
>  goto repeat until
> 
>  "---Type <return> to continue, or q <return> to quit---"
> 
> appears in TUI's console.  Then press return.

Valgrind log appended (w/ valgrind --log-file=valgrind.log ./gdb ./gdb).

Suspecting this to be some rounding error, I tried with
44 columns, but I get the same.

Running under valgrind, however, since things run much
slower, it's noticeable that GDB occasionally prints the
source file name at the wrong place -- we see it
flashing under the cursor in the console window.

I don't know if that's the source file name that's supposed
to go to the top left, or if it's an extra rogue source file
name that should not be printed at all in the tui.

I don't see that flash without valgrind.

-- 
Pedro Alves


[-- Attachment #2: valgrind.log.gz --]
[-- Type: application/x-gzip, Size: 4999 bytes --]

  reply	other threads:[~2013-03-12 16:35 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-09 14:14 Hui Zhu
2013-03-11 19:25 ` Jan Kratochvil
2013-03-12  3:15   ` Hui Zhu
2013-03-12 12:22     ` Hui Zhu
2013-03-12 12:37       ` Jan Kratochvil
2013-03-12 13:21         ` Hui Zhu
2013-03-12 14:21           ` Hui Zhu
2013-03-12 16:04         ` Pedro Alves
2013-03-12 16:35           ` Pedro Alves [this message]
2013-03-12 18:36 ` Pedro Alves
2013-03-12 18:42   ` Pedro Alves
2013-03-13 18:55   ` [patch+7.6] [TUI] Fix scrolling missing '>' 7.6 regression [Re: [PATCH] Fix gdb crash with tui] Jan Kratochvil
2013-03-14  1:46     ` Hui Zhu
2013-03-14 12:53     ` Pedro Alves
2013-03-14 14:44       ` [commit+7.6] " Jan Kratochvil
2013-03-13 18:55   ` [patch+7.6] [TUI] Fix scrolling crash " Jan Kratochvil
2013-03-14  1:46     ` Hui Zhu
2013-03-14 12:33     ` Pedro Alves
2013-03-14 14:41       ` [commit+7.6] " Jan Kratochvil
2013-03-14 14:57         ` Pedro Alves

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=513F5932.7090901@redhat.com \
    --to=palves@redhat.com \
    --cc=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=jan.kratochvil@redhat.com \
    --cc=teawater@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox