[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Problem in setting breakpoints at kernel code using "qe
From: |
Amirali Shambayati |
Subject: |
Re: [Qemu-devel] Problem in setting breakpoints at kernel code using "qemu and gdb" |
Date: |
Fri, 15 Apr 2011 15:09:49 +0430 |
That works well. Thanks so much Craig.
On Fri, Apr 15, 2011 at 10:08 AM, Craig Brozefsky <address@hidden> wrote:
> On Thu, Apr 14, 2011 at 10:16 AM, Amirali Shambayati
> <address@hidden> wrote:
>
>>
>> Also I tried combination of gdb and qemu using following commands:
>> #gdb
>> (gdb) symbol-file vmlinux.o
>> (gdb) target remote localhost:1234
>> (gdb) break scsi_lib.c 1420
>> (gdb) c
>>
>> I tried above commands to check if stops at breakpoint or not. I put a
>> printk after breakpoint line. It printed it and it means that it has
>> ignored breakpoint.
>
> Try using a hbreak, hardware breakpoint, instead of the software breakpoint.
>
--
Amirali Shambayati
Bachelor Student
Computer Engineering Department
Sharif University of Technology
Tehran, Iran