From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 66494 invoked by alias); 12 Aug 2015 12:55:25 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 66470 invoked by uid 48); 12 Aug 2015 12:55:25 -0000 From: "ciro.santilli at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug server/13984] gdb stops controlling a thread after "Remote 'g' packet reply is too long: ..." error message Date: Wed, 12 Aug 2015 12:55:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: server X-Bugzilla-Version: 7.4 X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: ciro.santilli at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-q3/txt/msg00181.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=13984 Ciro Santilli changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ciro.santilli at gmail dot com --- Comment #4 from Ciro Santilli --- @Mehmet can you please make a patch, send to the mailing list, and keep pinging weekly until it gets reviewed? I reproduce this by taking the following steps: # On kernel 4.1, set `CONFIG_DEBUG_INFO` and `CONFIG_GDB_SCRIPTS`. qemu-system-x86_64 -kernel ../build/arch/x86/boot/bzImage -initrd rootfs.cpio.gz -S -s gdb -ex "add-auto-load-safe-path ${vmlinux_path}-gdb.py" \ -ex "file ${vmlinux_path}" \ -ex 'target remote localhost:1234' hbreak start_kernel continue Then the: Remote 'g' packet reply is too long message appears, QEMU stops (apparently at the right place) and for most commands I run, e.g. continue, GDB says: (gdb) continue Continuing. Cannot execute this command while the selected thread is running. `list` shows the wrong lines, not at `start_kernel` but around line 15. It is the right file however: `init/main.c`. If I do Ctrl + D GDB quits and QEMU continues booting as normal. -- You are receiving this mail because: You are on the CC list for the bug.