gdb tui doesnt display after command

Bug #1824075 reported by Fraser Menzies
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Arm Embedded Toolchain
Incomplete
Undecided
Przemyslaw Wirkus

Bug Description

I am using Version 8-2018-q4-major Linux 64-bit on ubuntu 16.04 with openocd to talk to a STM32f4-discovery board. I also have ncurses version 6.0.

When I run arm-none-eabi-gdb to debug my code everything seems to be working fine when I have gdb in the command line mode. However when I enable tui mode and run a command for example: "i reg", gdb prints the first line of the command to the end of "i reg" so the output looks something like "i regr0 0x0 0" and the rest of the output from gdb is displayed normally.

Here is an example:

I type:

(gdb) i r

I get the following:
         (command output appears here, not the line bellow)
(gdb) i rr0 0x0 0
r1 0x0 0
r2 0x0 0
r3 0x0 0
r4 0x0 0
r5 0x0 0
r6 0x0 0
r7 0x0 0
r8 0x0 0
r9 0x0 0
r10 0x0 0
r11 0x0 0
r12 0x0 0
sp 0x20020000 0x20020000
lr 0xffffffff -1
pc 0x8000420 0x8000420 <Reset_Handler+16>
xPSR 0x41000000 1090519040
fpscr 0x0 0
msp 0x20020000 0x20020000
psp 0x0 0x0
primask 0x0 0
basepri 0x0 0
faultmask 0x0 0
control 0x0 0

I believe it should have something to do with how arm-none-eabi-gdb interprets the positioning of the terminal cursor when I execute the command. When I put spaces after my command the gdb output starts at the end of the spaces for example:

I type:
   one space _
(gdb) i r sp

I get the following:
            (command output appears here, not the line bellow)
(gdb) i r sp sp 0x20020000 0x20020000

I have tested a simple program with normal gdb on my system and it isnt behaving like this so I dont think my curses library is busted or anything like that. I believe it is to do with arm-none-eabi-gdb itself but its weird that I have not come across anybody else with the same issue as its not exactly hard to miss from a user perspective.

Any help would be appreciated, cheers.

Tags: 2018q4
summary: - gdb prints on cmd input line when tui is enabled
+ gdb tui doesnt display after command
description: updated
description: updated
description: updated
description: updated
description: updated
Revision history for this message
Fraser Menzies (fmenzies) wrote :

So I've just tried to use the previous release and my problem goes away.

Revision history for this message
Tejas Belagod (belagod-tejas) wrote :

Can you please try the latest release and see if it fixes your issue?

https://launchpad.net/gcc-arm-embedded/+announcement/15293

Revision history for this message
Przemyslaw Wirkus (wirkus) wrote :

Dear Fraser,

Could you let us know if latest release still has this issue you've reported ?

kind regards
Przemek

Changed in gcc-arm-embedded:
assignee: nobody → Przemyslaw Wirkus (wirkus)
Changed in gcc-arm-embedded:
status: New → Incomplete
tags: added: 2018q4
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.