From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 61128 invoked by alias); 7 Oct 2015 20:14:05 -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 61105 invoked by uid 48); 7 Oct 2015 20:14:04 -0000 From: "simon.marchi at ericsson dot com" To: gdb-prs@sourceware.org Subject: [Bug mi/19087] New: "-data-read-memory-byte --thread X..." does not restore the current thread Date: Wed, 07 Oct 2015 20:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: mi X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: simon.marchi at ericsson 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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-q4/txt/msg00015.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=19087 Bug ID: 19087 Summary: "-data-read-memory-byte --thread X..." does not restore the current thread Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: mi Assignee: unassigned at sourceware dot org Reporter: simon.marchi at ericsson dot com Target Milestone: --- Thread 1 is selected initially. "-data-read-memory-bytes --thread 2..." is issued. Thread 2 is now selected, whereas thread 1 should still be the current thread. (gdb) info threads &"info threads\n" ~" Id Target Id Frame \n" ~" 6 Thread 0x7fffd9df5700 (LWP 25030) \"pool\" pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238\n" ~" 4 Thread 0x7fffdadf7700 (LWP 25028) \"gmain\" 0x00007ffff5b8512d in poll () at ../sysdeps/unix/syscall-template.S:81\n" ~" 3 Thread 0x7fffeec4d700 (LWP 25027) \"gdbus\" 0x00007ffff5b8512d in poll () at ../sysdeps/unix/syscall-template.S:81\n" ~" 2 Thread 0x7fffef44e700 (LWP 25026) \"dconf worker\" 0x00007ffff5b8512d in poll () at ../sysdeps/unix/syscall-template.S:81\n" ~"* 1 Thread 0x7ffff7fb19c0 (LWP 25022) \"gnome-calculato\" 0x00007ffff5b8512d in poll () at ../sysdeps/unix/syscall-template.S:81\n" ^done (gdb) -data-read-memory-bytes --thread 2 0x400400 10 ^done,memory=[{begin="0x0000000000400400",offset="0x0000000000000000",end="0x000000000040040a",contents="97a343224411081e88b8"}] (gdb) info thread &"info thread\n" ~" Id Target Id Frame \n" ~" 6 Thread 0x7fffd9df5700 (LWP 25030) \"pool\" pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238\n" ~" 4 Thread 0x7fffdadf7700 (LWP 25028) \"gmain\" 0x00007ffff5b8512d in poll () at ../sysdeps/unix/syscall-template.S:81\n" ~" 3 Thread 0x7fffeec4d700 (LWP 25027) \"gdbus\" 0x00007ffff5b8512d in poll () at ../sysdeps/unix/syscall-template.S:81\n" ~"* 2 Thread 0x7fffef44e700 (LWP 25026) \"dconf worker\" 0x00007ffff5b8512d in poll () at ../sysdeps/unix/syscall-template.S:81\n" ~" 1 Thread 0x7ffff7fb19c0 (LWP 25022) \"gnome-calculato\" 0x00007ffff5b8512d in poll () at ../sysdeps/unix/syscall-template.S:81\n" ^done (gdb) -- You are receiving this mail because: You are on the CC list for the bug.