[PATCH] remote: allow aborting long operations (e.g., file transfers) (Re: [PATCH] Prelimit number of bytes to read in "vFile:pread:")

Sandra Loosemore sandra@codesourcery.com
Fri Aug 21 17:12:00 GMT 2015


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



More information about the Gdb-patches mailing list