This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Still some style problems with 8.3 branch
- From: Philippe Waroquiers <philippe dot waroquiers at skynet dot be>
- To: Tom Tromey <tom at tromey dot com>
- Cc: Eli Zaretskii <eliz at gnu dot org>, gdb-patches at sourceware dot org
- Date: Thu, 11 Apr 2019 23:01:55 +0200
- Subject: Re: Still some style problems with 8.3 branch
- References: <1553942211.1854.2.camel@skynet.be> <835zrzi0d7.fsf@gnu.org> <83wokbc5lk.fsf@gnu.org> <1554631684.1854.17.camel@skynet.be> <874l748i1d.fsf@tromey.com>
On Thu, 2019-04-11 at 13:21 -0600, Tom Tromey wrote:
> > > > > > "Philippe" == Philippe Waroquiers <philippe.waroquiers@skynet.be> writes:
>
> Philippe> It works better with the patch, but even with the patch,
> Philippe> I still encountered one case where the style was not
> Philippe> the expected style after the continuation prompt.
>
> I tried this and couldn't reproduce, but...
>
> Philippe> To reproduce (in a 80x24 terminal):
> Philippe> ./gdb/gdb ./gdb/gdb
> Philippe> break cli_ui_out::do_field_string
> Philippe> run
> gdb/testsuite/outputs/gdb.ada/info_auto_lang/proc_in_ada
> Philippe> (gdb) b proc_in_c
> Philippe> (gdb) run
> Philippe> info func error
> Philippe> #### then type several times return at the page prompt.
> Philippe> #### At some point in time, you see
>
> ...I may not fully understand the instructions - the breakpoint on
> do_field_string seems to interfere with getting paging to work in the
> inferior gdb.
Maybe what is unclear is what to give to the top-gdb, and what to
give to the inferior gdb.
You should be able to reproduce it by just
typing one after each other the following lines.
I have put before the info to type which process is getting the input:
shell: ./gdb/gdb ./gdb/gdb
top-gdb: break cli_ui_out::do_field_string
top-gdb: run gdb/testsuite/outputs/gdb.ada/info_auto_lang/proc_in_ada
gdb: b proc_in_c
gdb: run
top-gdb: info func error
.... and then a bunch of return, till an output line is wrongly styled
in black, just after a prompt for continue.
Philippe