This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] remote: allow aborting long operations (e.g., file transfers) (Re: [PATCH] Prelimit number of bytes to read in "vFile:pread:")
- From: Sandra Loosemore <sandra at codesourcery dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: Gary Benson <gbenson at redhat dot com>, <gdb-patches at sourceware dot org>, Joel Brobecker <brobecker at adacore dot com>, Doug Evans <dje at google dot com>, Jan Kratochvil <jan dot kratochvil at redhat dot com>, André Pönitz <apoenitz at t-online dot de>, Paul Koning <Paul_Koning at dell dot com>
- Date: Fri, 21 Aug 2015 11:10:01 -0600
- Subject: Re: [PATCH] remote: allow aborting long operations (e.g., file transfers) (Re: [PATCH] Prelimit number of bytes to read in "vFile:pread:")
- Authentication-results: sourceware.org; auth=none
- References: <55D3DB83 dot 4050204 at redhat dot com> <1439980862-21305-1-git-send-email-gbenson at redhat dot com> <20150819105054 dot GA22009 at blade dot nx> <55D4B190 dot 6080700 at codesourcery dot com> <20150819172059 dot GA31845 at blade dot nx> <55D4F125 dot 4080409 at codesourcery dot com> <55D5F799 dot 9020700 at redhat dot com> <55D607B8 dot 70103 at redhat dot com> <55D61AA2 dot 5000502 at codesourcery dot com> <55D73B35 dot 8010008 at redhat dot com>
On 08/21/2015 08:52 AM, Pedro Alves wrote:
But please try the new patch below.
In combination with the two patches Gary just checked in, this is
working fabulously. I see:
(gdb) c
Continuing.
Reading
/scratch/sandra/nios2-linux-trunk/install/opt/codesourcery/nios2-linux-gnu/libc/lib/libc.so.6
from remote target...
^C^CInterrupted while waiting for the program.
Give up waiting? (y or n) y
Quit
(gdb) bt
#0 __GI__dl_debug_state () at dl-debug.c:74
#1 0x2aaab1d0 in dl_main (phdr=<optimized out>, phnum=<optimized out>,
user_entry=<optimized out>, auxv=<optimized out>) at rtld.c:2172
#2 0x2aabd284 in _dl_sysdep_start (start_argptr=<optimized out>,
dl_main=0x2aaa93a4 <dl_main>) at ../elf/dl-sysdep.c:249
#3 0x2aaac34c in _dl_start_final (arg=0x7ffefa80, info=<optimized out>)
at rtld.c:308
#4 0x2aaac644 in _dl_start (arg=0x7ffefa80) at rtld.c:418
#5 0x2aaa8ce8 in _start ()
from
target:/scratch/sandra/nios2-linux-trunk/install/opt/codesourcery/nios2-linux-gnu/libc/lib/ld-linux-nios2.so.1
(gdb) c
Continuing.
Breakpoint 1, main () at /home/sandra/examples/croak.c:10
10 n = sizeof (s) / sizeof (const char *);
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x2aaa89e4 0x2aac1780 Yes
target:/scratch/sandra/nios2-linux-trunk/install/opt/codesourcery/nios2-linux-gnu/libc/lib/ld-linux-nios2.so.1
0x2aaece80 0x2abf64c8 No
target:/scratch/sandra/nios2-linux-trunk/install/opt/codesourcery/nios2-linux-gnu/libc/lib/libc.so.6
(gdb)
I think this addresses all my concerns with the change in the default
behavior. Pedro and Gary, thanks very much for your patience and hard
work in getting this resolved! Between the speedup in reading the
libraries, the messages to explain what is going on, and making
transfers interruptible, this is a big improvement in usability. :-D
-Sandra