qemu doesn't stop execution upon hitting a breakpoint
A message that is not in the archive (sent off-list or not yet received): [email protected]
Same thing happens to me, same versions as above.. I must turn to another app to accomplish my work while awaiting for a bug-fix, the code is perfectly executed but while gdb hits the breakpoints qemu goes on..
Signature · 11 lines
qemu doesn't stop execution upon hitting a breakpoint https://bugs.launchpad.net/bugs/581353 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. Status in QEMU: New Bug description: Using Qemu 0.12.3 and gdb 7.1 on Ubuntu Lucid. I'm trying to debug some bootloader code. Using qemu -s -S to run the bootloader and gdb to connect to qemu, I set the breakpoint at 0x7c00. Then I type continue in gdb. The breakpoint is hit and gdb shows debug information. However qemu apparently continues to execute the code of the bootloader as the text is printed on the screen etc.
Quoted 9 lines · Alfredo Mungo
Same thing happens to me, same versions as above.. I must turn to another app to accomplish my work while awaiting for a bug-fix, the code is perfectly executed but while gdb hits the breakpoints qemu goes on..
--
qemu doesn't stop execution upon hitting a breakpoint
https://bugs.launchpad.net/bugs/581353
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.
i think this bug has been fixed in 0.12.4. have you tried that??
J
Quoted 5 lines · Jun Koi
Quoted 4 lines · Alfredo Mungo
Same thing happens to me, same versions as above.. I must turn to another app to accomplish my work while awaiting for a bug-fix, the code is perfectly executed but while gdb hits the breakpoints qemu goes on..
Quoted 7 lines
Quoted 5 lines
--
qemu doesn't stop execution upon hitting a breakpoint
https://bugs.launchpad.net/bugs/581353
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.i think this bug has been fixed in 0.12.4. have you tried that??
Or this is a well-known gdb deficit: if the bootloader operates in real-mode, you have to set two breakpoints, one at the linear address to make qemu catch it, and another one at the segment offset to avoid gdb skipping the exit due to ip != bp-addr.
gdb is still fairly restricted when it comes to system-level debugging, specifically as it lacks support for special x86 registers and the segmented addressing mode.
Jan
Quoted 14 lines · Jan Kiszka
Quoted 5 lines · Jun Koi
Quoted 4 lines · Alfredo Mungo
Same thing happens to me, same versions as above.. I must turn to another app to accomplish my work while awaiting for a bug-fix, the code is perfectly executed but while gdb hits the breakpoints qemu goes on..
Quoted 7 lines
Quoted 5 lines
--
qemu doesn't stop execution upon hitting a breakpoint
https://bugs.launchpad.net/bugs/581353
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.i think this bug has been fixed in 0.12.4. have you tried that??
Quoted 8 lines
Or this is a well-known gdb deficit: if the bootloader operates in real-mode, you have to set two breakpoints, one at the linear address to make qemu catch it, and another one at the segment offset to avoid gdb skipping the exit due to ip != bp-addr.
gdb is still fairly restricted when it comes to system-level debugging, specifically as it lacks support for special x86 registers and the segmented addressing mode.
what do you mean by "it lacks support for special x86 registers" ?
thanks,
J
Quoted 18 lines · Jun Koi
Quoted 17 lines · Jan Kiszka
Quoted 11 lines · Jun Koi
Quoted 9 lines · Alfredo Mungo
Same thing happens to me, same versions as above.. I must turn to another app to accomplish my work while awaiting for a bug-fix, the code is perfectly executed but while gdb hits the breakpoints qemu goes on..
--
qemu doesn't stop execution upon hitting a breakpoint
https://bugs.launchpad.net/bugs/581353
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.i think this bug has been fixed in 0.12.4. have you tried that??
Or this is a well-known gdb deficit: if the bootloader operates in real-mode, you have to set two breakpoints, one at the linear address to make qemu catch it, and another one at the segment offset to avoid gdb skipping the exit due to ip != bp-addr.
Quoted 5 lines
Quoted 3 lines
gdb is still fairly restricted when it comes to system-level debugging, specifically as it lacks support for special x86 registers and the segmented addressing mode.
what do you mean by "it lacks support for special x86 registers" ?
idtr, gdtr, ldtr, tr, crX - to name the most important ones.
Jan
Quoted 19 lines · Jan Kiszka
Quoted 18 lines · Jun Koi
Quoted 17 lines · Jan Kiszka
Quoted 11 lines · Jun Koi
Quoted 9 lines · Alfredo Mungo
Same thing happens to me, same versions as above.. I must turn to another app to accomplish my work while awaiting for a bug-fix, the code is perfectly executed but while gdb hits the breakpoints qemu goes on..
--
qemu doesn't stop execution upon hitting a breakpoint
https://bugs.launchpad.net/bugs/581353
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.i think this bug has been fixed in 0.12.4. have you tried that??
Or this is a well-known gdb deficit: if the bootloader operates in real-mode, you have to set two breakpoints, one at the linear address to make qemu catch it, and another one at the segment offset to avoid gdb skipping the exit due to ip != bp-addr.
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
gdb is still fairly restricted when it comes to system-level debugging, specifically as it lacks support for special x86 registers and the segmented addressing mode.
what do you mean by "it lacks support for special x86 registers" ?
idtr, gdtr, ldtr, tr, crX - to name the most important ones.
do you mean gdb has no command to show the values of these registers? or you mean it doenst have anyway to get notified when these registers are modified? (i dont see how this is useful for debugging, anway)
thanks,
J
Quoted 23 lines · Jun Koi
Quoted 22 lines · Jan Kiszka
Quoted 21 lines · Jun Koi
Quoted 20 lines · Jan Kiszka
Quoted 11 lines · Jun Koi
Quoted 9 lines · Alfredo Mungo
Same thing happens to me, same versions as above.. I must turn to another app to accomplish my work while awaiting for a bug-fix, the code is perfectly executed but while gdb hits the breakpoints qemu goes on..
--
qemu doesn't stop execution upon hitting a breakpoint
https://bugs.launchpad.net/bugs/581353
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.i think this bug has been fixed in 0.12.4. have you tried that??
Or this is a well-known gdb deficit: if the bootloader operates in real-mode, you have to set two breakpoints, one at the linear address to make qemu catch it, and another one at the segment offset to avoid gdb skipping the exit due to ip != bp-addr.
gdb is still fairly restricted when it comes to system-level debugging, specifically as it lacks support for special x86 registers and the segmented addressing mode.
Quoted 6 lines
Quoted 2 lines
Quoted 1 line
what do you mean by "it lacks support for special x86 registers" ?
idtr, gdtr, ldtr, tr, crX - to name the most important ones.
do you mean gdb has no command to show the values of these registers? or you mean it doenst have anyway to get notified when these registers are modified? (i dont see how this is useful for debugging, anway)
Both: Neither supports gdb them as part of its register set nor does the remote gdb protocol transport them.
You need this for segmented addressing, either in real mode (linear address = segment * 16 + offset) or in segmented protected mode (less common in modern OSes, but at least still used for per-CPU variables in Linux). And you need a way to detect the current operation mode at all to switch between 16/32, and 64 bit registers (set arch i386 vs. i386:x86-64). You don't need all this for application-level debugging, and that's why gdb lacks it so far.
Jan
Quoted 31 lines · Jan Kiszka
Quoted 23 lines · Jun Koi
Quoted 22 lines · Jan Kiszka
Quoted 21 lines · Jun Koi
Quoted 20 lines · Jan Kiszka
Quoted 11 lines · Jun Koi
Quoted 9 lines · Alfredo Mungo
Same thing happens to me, same versions as above.. I must turn to another app to accomplish my work while awaiting for a bug-fix, the code is perfectly executed but while gdb hits the breakpoints qemu goes on..
--
qemu doesn't stop execution upon hitting a breakpoint
https://bugs.launchpad.net/bugs/581353
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.i think this bug has been fixed in 0.12.4. have you tried that??
Or this is a well-known gdb deficit: if the bootloader operates in real-mode, you have to set two breakpoints, one at the linear address to make qemu catch it, and another one at the segment offset to avoid gdb skipping the exit due to ip != bp-addr.
gdb is still fairly restricted when it comes to system-level debugging, specifically as it lacks support for special x86 registers and the segmented addressing mode.
Quoted 6 lines
Quoted 2 lines
Quoted 1 line
what do you mean by "it lacks support for special x86 registers" ?
idtr, gdtr, ldtr, tr, crX - to name the most important ones.
do you mean gdb has no command to show the values of these registers? or you mean it doenst have anyway to get notified when these registers are modified? (i dont see how this is useful for debugging, anway)
Quoted 5 lines
Both: Neither supports gdb them as part of its register set nor does the remote gdb protocol transport them.
You need this for segmented addressing, either in real mode (linear address = segment * 16 + offset) or in segmented protected mode (less
Not true in general (big real mode), CPU still references hidden segment cache even when protection is enabled.
Quoted 9 lines
common in modern OSes, but at least still used for per-CPU variables in Linux). And you need a way to detect the current operation mode at all to switch between 16/32, and 64 bit registers (set arch i386 vs. i386:x86-64). You don't need all this for application-level debugging, and that's why gdb lacks it so far.
Jan
Signature · 1 line
mailto:[email protected]
Quoted 31 lines · malc
Quoted 29 lines · Jan Kiszka
Quoted 28 lines · Jun Koi
Quoted 19 lines · Jan Kiszka
Quoted 18 lines · Jun Koi
Quoted 17 lines · Jan Kiszka
Quoted 11 lines · Jun Koi
Quoted 9 lines · Alfredo Mungo
Same thing happens to me, same versions as above.. I must turn to another app to accomplish my work while awaiting for a bug-fix, the code is perfectly executed but while gdb hits the breakpoints qemu goes on..
--
qemu doesn't stop execution upon hitting a breakpoint
https://bugs.launchpad.net/bugs/581353
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.i think this bug has been fixed in 0.12.4. have you tried that??
Or this is a well-known gdb deficit: if the bootloader operates in real-mode, you have to set two breakpoints, one at the linear address to make qemu catch it, and another one at the segment offset to avoid gdb skipping the exit due to ip != bp-addr.
Quoted 5 lines
Quoted 4 lines
Quoted 3 lines
gdb is still fairly restricted when it comes to system-level debugging, specifically as it lacks support for special x86 registers and the segmented addressing mode.
what do you mean by "it lacks support for special x86 registers" ?
idtr, gdtr, ldtr, tr, crX - to name the most important ones.
do you mean gdb has no command to show the values of these registers? or you mean it doenst have anyway to get notified when these registers are modified? (i dont see how this is useful for debugging, anway)
Quoted 8 lines
Quoted 5 lines
Both: Neither supports gdb them as part of its register set nor does the remote gdb protocol transport them.
You need this for segmented addressing, either in real mode (linear address = segment * 16 + offset) or in segmented protected mode (less
Not true in general (big real mode), CPU still references hidden segment cache even when protection is enabled.
Unfortunately, the BIOS does not start in big real mode e.g...
Jan
Quoted 10 lines
Quoted 10 lines
common in modern OSes, but at least still used for per-CPU variables in Linux). And you need a way to detect the current operation mode at all to switch between 16/32, and 64 bit registers (set arch i386 vs. i386:x86-64). You don't need all this for application-level debugging, and that's why gdb lacks it so far.
Jan
Quoted 32 lines · Jan Kiszka
Quoted 31 lines · malc
Quoted 29 lines · Jan Kiszka
Quoted 28 lines · Jun Koi
Quoted 19 lines · Jan Kiszka
Quoted 18 lines · Jun Koi
Quoted 17 lines · Jan Kiszka
Quoted 11 lines · Jun Koi
Quoted 9 lines · Alfredo Mungo
Same thing happens to me, same versions as above.. I must turn to another app to accomplish my work while awaiting for a bug-fix, the code is perfectly executed but while gdb hits the breakpoints qemu goes on..
--
qemu doesn't stop execution upon hitting a breakpoint
https://bugs.launchpad.net/bugs/581353
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.i think this bug has been fixed in 0.12.4. have you tried that??
Or this is a well-known gdb deficit: if the bootloader operates in real-mode, you have to set two breakpoints, one at the linear address to make qemu catch it, and another one at the segment offset to avoid gdb skipping the exit due to ip != bp-addr.
Quoted 5 lines
Quoted 4 lines
Quoted 3 lines
gdb is still fairly restricted when it comes to system-level debugging, specifically as it lacks support for special x86 registers and the segmented addressing mode.
what do you mean by "it lacks support for special x86 registers" ?
idtr, gdtr, ldtr, tr, crX - to name the most important ones.
do you mean gdb has no command to show the values of these registers? or you mean it doenst have anyway to get notified when these registers are modified? (i dont see how this is useful for debugging, anway)
Quoted 8 lines
Quoted 8 lines
Quoted 5 lines
Both: Neither supports gdb them as part of its register set nor does the remote gdb protocol transport them.
You need this for segmented addressing, either in real mode (linear address = segment * 16 + offset) or in segmented protected mode (less
Not true in general (big real mode), CPU still references hidden segment cache even when protection is enabled.
^^^^^^^ disabled
Quoted 1 line
Unfortunately, the BIOS does not start in big real mode e.g...
It's actually fortunate since there's no access whatsoever to the cache (on a real system that is)
Signature · 1 line
mailto:[email protected]
Quoted 4 lines · malc
Quoted 2 lines · Jan Kiszka
Quoted 1 line · malc
On Wed, 16 Jun 2010, Jan Kiszka wrote:
[..snip..]
Quoted 7 lines
Quoted 6 lines
Quoted 6 lines
Quoted 3 lines
You need this for segmented addressing, either in real mode (linear address = segment * 16 + offset) or in segmented protected mode (less
Not true in general (big real mode), CPU still references hidden segment cache even when protection is enabled.
^^^^^^^ disabled
^^^^^^^ enabled
I need to get some proper sleep one of these days.. Sorry for the noise.
Quoted 6 lines
Quoted 1 line
Unfortunately, the BIOS does not start in big real mode e.g...
It's actually fortunate since there's no access whatsoever to the cache (on a real system that is)
Signature · 1 line
mailto:[email protected]
Quoted 35 lines · Jan Kiszka
Quoted 34 lines · malc
Quoted 32 lines · Jan Kiszka
Quoted 20 lines · Jun Koi
Quoted 19 lines · Jan Kiszka
Quoted 18 lines · Jun Koi
Quoted 17 lines · Jan Kiszka
Quoted 11 lines · Jun Koi
Quoted 9 lines · Alfredo Mungo
Same thing happens to me, same versions as above.. I must turn to another app to accomplish my work while awaiting for a bug-fix, the code is perfectly executed but while gdb hits the breakpoints qemu goes on..
--
qemu doesn't stop execution upon hitting a breakpoint
https://bugs.launchpad.net/bugs/581353
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.i think this bug has been fixed in 0.12.4. have you tried that??
Or this is a well-known gdb deficit: if the bootloader operates in real-mode, you have to set two breakpoints, one at the linear address to make qemu catch it, and another one at the segment offset to avoid gdb skipping the exit due to ip != bp-addr.
Quoted 8 lines
Quoted 5 lines
Quoted 4 lines
Quoted 3 lines
gdb is still fairly restricted when it comes to system-level debugging, specifically as it lacks support for special x86 registers and the segmented addressing mode.
what do you mean by "it lacks support for special x86 registers" ?
idtr, gdtr, ldtr, tr, crX - to name the most important ones.
do you mean gdb has no command to show the values of these registers? or you mean it doenst have anyway to get notified when these registers are modified? (i dont see how this is useful for debugging, anway)
Both: Neither supports gdb them as part of its register set nor does the remote gdb protocol transport them.
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
You need this for segmented addressing, either in real mode (linear address = segment * 16 + offset) or in segmented protected mode (less
Not true in general (big real mode), CPU still references hidden segment cache even when protection is enabled.
Unfortunately, the BIOS does not start in big real mode e.g...
Actually x86 cpu starts in some strange mode (not exactly big real mode). CS.base == 0xffff0000. That is why the first instruction bios does is long jump to init CS.
Quoted 14 lines
Jan
Quoted 10 lines
Quoted 10 lines
common in modern OSes, but at least still used for per-CPU variables in Linux). And you need a way to detect the current operation mode at all to switch between 16/32, and 64 bit registers (set arch i386 vs. i386:x86-64). You don't need all this for application-level debugging, and that's why gdb lacks it so far.
Jan
--
Gleb.
Ok this issue has been fixed in qemu 0.12.4.
Just type 'qemu --version' to see what version you have, it is probably outdated.
Signature · 11 lines
qemu doesn't stop execution upon hitting a breakpoint https://bugs.launchpad.net/bugs/581353 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. Status in QEMU: New Bug description: Using Qemu 0.12.3 and gdb 7.1 on Ubuntu Lucid. I'm trying to debug some bootloader code. Using qemu -s -S to run the bootloader and gdb to connect to qemu, I set the breakpoint at 0x7c00. Then I type continue in gdb. The breakpoint is hit and gdb shows debug information. However qemu apparently continues to execute the code of the bootloader as the text is printed on the screen etc.
According to comment #3, this has been fixed, so let's change the bug status accordingly.
** Changed in: qemu
Status: New => Fix Released
Signature · 21 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/581353 Title: qemu doesn't stop execution upon hitting a breakpoint Status in QEMU: Fix Released Bug description: Using Qemu 0.12.3 and gdb 7.1 on Ubuntu Lucid. I'm trying to debug some bootloader code. Using qemu -s -S to run the bootloader and gdb to connect to qemu, I set the breakpoint at 0x7c00. Then I type continue in gdb. The breakpoint is hit and gdb shows debug information. However qemu apparently continues to execute the code of the bootloader as the text is printed on the screen etc. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/581353/+subscriptions