[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 0/5]
From: |
Liu Yu |
Subject: |
[Qemu-devel] [PATCH 0/5] |
Date: |
Sat, 25 Jul 2009 16:40:12 +0800 |
The whole patchset includes:
patch 1: fix kvmppc build error
patch 2: fix kvmppc init error
patch 3~5: add kvmppc guest debug support
The guest debug still have some problems I haven't solved.
1. gdb 'next' command uses software breakpoint
software breakpoint is implemented via modify guest's code.
In most case it works well,
but when used by 'next' it's easy to make trouble on powerpc booke.
For example booke has a code template for
jumping to and returning from interrupt handlers:
bl transfer
.long handler_addr
.long ret_addr
when call transfer, it never return but
in transfer assembly code it will read the handler_addr
and ultimately call the handler.
Gdb doesn't know that and treat it as a normal function call.
so gdb put a software breakpoint instruction at handler_addr,
in order to get trap there when return from transfer.
Then guest will read software breakpoint as handler_addr and jump to there..
I'm not sure if x86 suffer this kind of issue.
Is there any way to avoid this?
2. gdb 'watch' command
Jan told me gdb>6.8 can issue hardware watchpoint request via command 'watch',
my gdb is 6.8.50.20080821-cvs and our toolchain provider confirm that it
supports hardware watch
However when I use 'watch', I can only see single step from gdbstub side.
Did I miss anything?
- [Qemu-devel] [PATCH 0/5],
Liu Yu <=
- [Qemu-devel] [PATCH 1/5] Fix kvmppc build error, Liu Yu, 2009/07/25
- [Qemu-devel] [PATCH 2/5] Fix booke registers init, Liu Yu, 2009/07/25
- [Qemu-devel] [PATCH 3/5] Add guest debug support for kvmppc, Liu Yu, 2009/07/25
- [Qemu-devel] [PATCH 4/5] Add eaddr translator for fsl_booke mmu, Liu Yu, 2009/07/25
- [Qemu-devel] [PATCH 5/5] guest debug init for 440 and e500 core, Liu Yu, 2009/07/25
- [Qemu-devel] Re: [PATCH 5/5] guest debug init for 440 and e500 core, Jan Kiszka, 2009/07/25
- [Qemu-devel] Re: [PATCH 3/5] Add guest debug support for kvmppc, Jan Kiszka, 2009/07/25
- [Qemu-devel] RE: [PATCH 3/5] Add guest debug support for kvmppc, Liu Yu-B13201, 2009/07/27
- [Qemu-devel] Re: [PATCH 2/5] Fix booke registers init, Jan Kiszka, 2009/07/25
- [Qemu-devel] RE: [PATCH 2/5] Fix booke registers init, Liu Yu-B13201, 2009/07/27