public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "simon.marchi at ericsson dot com" <sourceware-bugzilla@sourceware.org> 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 [thread overview] Message-ID: <bug-19087-4717@http.sourceware.org/bugzilla/> (raw) 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.
next reply other threads:[~2015-10-07 20:14 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-10-07 20:14 simon.marchi at ericsson dot com [this message] 2015-10-09 14:15 ` [Bug mi/19087] " simon.marchi at ericsson dot com 2024-01-13 23:22 ` ssbssa at sourceware dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-19087-4717@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).