public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug breakpoints/15099] New: gdb fails to insert breakpoint in qemu-kvm, when enable PIE support
@ 2013-02-05  6:13 powernp4gs3 at yahoo dot com.cn
  2013-02-05  7:53 ` [Bug breakpoints/15099] " tromey at redhat dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: powernp4gs3 at yahoo dot com.cn @ 2013-02-05  6:13 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15099

             Bug #: 15099
           Summary: gdb fails to insert breakpoint in qemu-kvm, when
                    enable PIE support
           Product: gdb
           Version: 7.5
            Status: NEW
          Severity: normal
          Priority: P2
         Component: breakpoints
        AssignedTo: unassigned@sourceware.org
        ReportedBy: powernp4gs3@yahoo.com.cn
    Classification: Unclassified


qemu-kvm version: 1.2.0
gcc version: gcc (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2
gdb version: GNU gdb (GDB) 7.5-ubuntu
linux distribution: linuxmint 14

How to Reproduce:
(1) Download qemu-kvm source code:
http://jaist.dl.sourceforge.net/project/kvm/qemu-kvm/1.2.0/qemu-kvm-1.2.0.tar.gz
(2) configure qemu-kvm with this options (defaults, enable PIE support):
# ./configure --enable-debug --enable-kvm
# make
# gdb x86_64-softmmu/qemu-system-x86_64
then set args, run, but throw this:
Warning:
Cannot insert breakpoint -1.
Error accessing memory address 0x3849c0: Input/output error.

But when configure with --disable-pie, no problem:
# ./configure --enable-debug --enable-kvm --disable-pie

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug breakpoints/15099] gdb fails to insert breakpoint in qemu-kvm, when enable PIE support
  2013-02-05  6:13 [Bug breakpoints/15099] New: gdb fails to insert breakpoint in qemu-kvm, when enable PIE support powernp4gs3 at yahoo dot com.cn
@ 2013-02-05  7:53 ` tromey at redhat dot com
  2013-02-05 14:20 ` powernp4gs3 at yahoo dot com.cn
  2013-02-05 14:35 ` powernp4gs3 at yahoo dot com.cn
  2 siblings, 0 replies; 4+ messages in thread
From: tromey at redhat dot com @ 2013-02-05  7:53 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15099

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING
                 CC|                            |tromey at redhat dot com

--- Comment #1 from Tom Tromey <tromey at redhat dot com> 2013-02-05 07:53:03 UTC ---
Can you try a newer gdb?
This sounds like PR 13987, recently fixed.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug breakpoints/15099] gdb fails to insert breakpoint in qemu-kvm, when enable PIE support
  2013-02-05  6:13 [Bug breakpoints/15099] New: gdb fails to insert breakpoint in qemu-kvm, when enable PIE support powernp4gs3 at yahoo dot com.cn
  2013-02-05  7:53 ` [Bug breakpoints/15099] " tromey at redhat dot com
@ 2013-02-05 14:20 ` powernp4gs3 at yahoo dot com.cn
  2013-02-05 14:35 ` powernp4gs3 at yahoo dot com.cn
  2 siblings, 0 replies; 4+ messages in thread
From: powernp4gs3 at yahoo dot com.cn @ 2013-02-05 14:20 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15099

--- Comment #2 from powernp <powernp4gs3 at yahoo dot com.cn> 2013-02-05 14:20:53 UTC ---
(In reply to comment #1)
> Can you try a newer gdb?
> This sounds like PR 13987, recently fixed.

I try the snapshot, gdb-weekly-CVS-7.5.50.20130205, no problems, the patches
fixed the PIE bug.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug breakpoints/15099] gdb fails to insert breakpoint in qemu-kvm, when enable PIE support
  2013-02-05  6:13 [Bug breakpoints/15099] New: gdb fails to insert breakpoint in qemu-kvm, when enable PIE support powernp4gs3 at yahoo dot com.cn
  2013-02-05  7:53 ` [Bug breakpoints/15099] " tromey at redhat dot com
  2013-02-05 14:20 ` powernp4gs3 at yahoo dot com.cn
@ 2013-02-05 14:35 ` powernp4gs3 at yahoo dot com.cn
  2 siblings, 0 replies; 4+ messages in thread
From: powernp4gs3 at yahoo dot com.cn @ 2013-02-05 14:35 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=15099

powernp <powernp4gs3 at yahoo dot com.cn> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from powernp <powernp4gs3 at yahoo dot com.cn> 2013-02-05 14:35:23 UTC ---
same as PR 13987.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-02-05 14:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-05  6:13 [Bug breakpoints/15099] New: gdb fails to insert breakpoint in qemu-kvm, when enable PIE support powernp4gs3 at yahoo dot com.cn
2013-02-05  7:53 ` [Bug breakpoints/15099] " tromey at redhat dot com
2013-02-05 14:20 ` powernp4gs3 at yahoo dot com.cn
2013-02-05 14:35 ` powernp4gs3 at yahoo dot com.cn

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).