Re: [Qemu-devel] A error when gdb the newest branch, can you help me? Thank you very much!

2012-04-17 Thread 陳韋任
 Thank you very much for your feedback, I found the reason:
 
 when I git pull to the newest branch then use gdb 7.2, the error will 
 happen, when I update gdb to 7.3, That is ok.
 But I don't know the reason. Maybe the newest branch brings something 
 which don't compatible with gdb.

  Does gdb 7.2 support PIE? QEMU default build is PIE. Try disable PIE build
then run gdb 7.2 again?

Regards,
chenwj

-- 
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj



Re: [Qemu-devel] A error when gdb the newest branch, can you help me? Thank you very much!

2012-04-16 Thread Stefan Hajnoczi
On Mon, Apr 16, 2012 at 3:58 AM, Zhi Hui Li zhihu...@linux.vnet.ibm.com wrote:
 when I git pull to the newest branch, then

 gdb ./x86_64-softmmu/qemu-system-x86_64

 set args, then run the gdb, but have the error:

 Warning:
 Cannot insert breakpoint -1.
 Error accessing memory address 0x2b6688: Input/output error.

I tried to reproduce this but it works on my machine with gdb 7.4-debian.

Is your system up-to-date?  Do you have any special security activated
(SELinux, grsec, etc) which might prevent ptrace?

Stefan



Re: [Qemu-devel] A error when gdb the newest branch, can you help me? Thank you very much!

2012-04-16 Thread Zhi Hui Li

On 2012年04月16日 17:50, Stefan Hajnoczi wrote:

On Mon, Apr 16, 2012 at 3:58 AM, Zhi Hui Lizhihu...@linux.vnet.ibm.com  wrote:

when I git pull to the newest branch, then

gdb ./x86_64-softmmu/qemu-system-x86_64

set args, then run the gdb, but have the error:

Warning:
Cannot insert breakpoint -1.
Error accessing memory address 0x2b6688: Input/output error.


I tried to reproduce this but it works on my machine with gdb 7.4-debian.

Is your system up-to-date?  Do you have any special security activated
(SELinux, grsec, etc) which might prevent ptrace?

Stefan




Thank you very much for your feedback, I found the reason:

when I git pull to the newest branch then use gdb 7.2, the error will 
happen, when I update gdb to 7.3, That is ok.
But I don't know the reason. Maybe the newest branch brings something 
which don't compatible with gdb.





[Qemu-devel] A error when gdb the newest branch, can you help me? Thank you very much!

2012-04-15 Thread Zhi Hui Li

when I git pull to the newest branch, then

gdb ./x86_64-softmmu/qemu-system-x86_64

set args, then run the gdb, but have the error:

Warning:
Cannot insert breakpoint -1.
Error accessing memory address 0x2b6688: Input/output error.

I don't know why, can you have me?

 Thank you very much !