Re: [Qemu-devel] GDB function call failing due to memory protection of stack page in QEMU

2013-04-18 Thread Abid, Hafiz
On 18/04/13 09:36:55, Peter Maydell wrote: > There are 2 possible solution in my mind. One was to allow writing memory if > this page originally had write access. This is a single line fix and a patch > is below. My worry here is that this will mean that writes by the debugger won't trigger

Re: [Qemu-devel] GDB function call failing due to memory protection of stack page in QEMU

2013-04-18 Thread Peter Maydell
On 11 April 2013 12:20, Abid, Hafiz wrote: > Hi All, > I have faced a problem using GDB with user-mode qemu. Although problem was > observed for MIPS, I think it is a generic problem. I would appreciate an > advice from experts on how best to deal with. Here is the problem > description. > > GDB h

Re: [Qemu-devel] GDB function call failing due to memory protection of stack page in QEMU

2013-04-18 Thread Abid, Hafiz
ping. On 11/04/13 12:20:57, Abid, Hafiz wrote: Hi All, I have faced a problem using GDB with user-mode qemu. Although problem was observed for MIPS, I think it is a generic problem. I would appreciate an advice from experts on how best to deal with. Here is the problem description. GDB h

[Qemu-devel] GDB function call failing due to memory protection of stack page in QEMU

2013-04-11 Thread Abid, Hafiz
Hi All, I have faced a problem using GDB with user-mode qemu. Although problem was observed for MIPS, I think it is a generic problem. I would appreciate an advice from experts on how best to deal with. Here is the problem description. GDB has ability to call function from the program bein