Skip to contentSkip to conversation

Breakpoints not hit using QEMU 0.10.5, GDB 6.8 and Linux kernel 2.6.30

Qemu-devel Srinivasan Jayarajan 2 participants 4 messages Jul 13, 2009 – Aug 4, 2009

lore
Share & tools
lore
#0 lore raw

I am able to attach to QEMU using GDB and halt the execution using Ctrl-C. But any break points set are not hit and I don't see any symbol information. I have compiled the kernel with CONFIG_DEBUG_KERNEL=y and CONFIG_FRAME_POINTER=y. Any help is appreciated.

More info at http://qemu-forum.ipi.fi/viewtopic.php?f=10&t=5133

Thanks,
Srini

#1 lore raw
Quoted 7 lines · Srinivasan Jayarajan

I am able to attach to QEMU using GDB and halt the execution using Ctrl-C. But any break points set are not hit and I don't see any symbol information. I have compiled the kernel with CONFIG_DEBUG_KERNEL=y and CONFIG_FRAME_POINTER=y. Any help is appreciated.

More info at http://qemu-forum.ipi.fi/viewtopic.php?f=10&t=5133

You also need to turn CONFIG_DEBUG_INFO=y. DEBUG_KERNEL is not the same as DEBUG_INFO.

As far as I can check inside qemu's code (within my limited knowledge), breakpoint codes are seems correctly generated at the right address.

Signature · 5 lines
regards,

Mulyadi Santosa
Freelance Linux trainer
blog: the-hydra.blogspot.com
#2 lore raw

CONFIG_DEBUG_INFO was also turned on in the kernel config
(http://qemu-forum.ipi.fi/download/file.php?id=497).

Thanks,
-Srini

Quoted 23 lines · Mulyadi Santosa
Quoted 7 lines · Srinivasan Jayarajan

I am able to attach to QEMU using GDB and halt the execution using Ctrl-C. But any break points set are not hit and I don't see any symbol information. I have compiled the kernel with CONFIG_DEBUG_KERNEL=y and CONFIG_FRAME_POINTER=y. Any help is appreciated.

More info at http://qemu-forum.ipi.fi/viewtopic.php?f=10&t=5133

You also need to turn CONFIG_DEBUG_INFO=y. DEBUG_KERNEL is not the same as DEBUG_INFO.

As far as I can check inside qemu's code (within my limited knowledge), breakpoint codes are seems correctly generated at the right address.

--
regards,

Mulyadi Santosa
Freelance Linux trainer
blog: the-hydra.blogspot.com

#3 lore raw

I got the same setup working on a pure 32 bit machine (32 bit processor and 32 bit Fedora).
I was earlier using a machine running 32 bit Fedora on a 64 bit processor (AMD Athlon(tm) 64 X2 Dual Core Processor 4400+).

Thanks for all the help
-Srini

Quoted 33 lines · Srinivasan Jayarajan

CONFIG_DEBUG_INFO was also turned on in the kernel config
(http://qemu-forum.ipi.fi/download/file.php?id=497).

Thanks,
-Srini

Quoted 23 lines · Mulyadi Santosa
Quoted 7 lines · Srinivasan Jayarajan

I am able to attach to QEMU using GDB and halt the execution using Ctrl-C. But any break points set are not hit and I don't see any symbol information. I have compiled the kernel with CONFIG_DEBUG_KERNEL=y and CONFIG_FRAME_POINTER=y. Any help is appreciated.

More info at http://qemu-forum.ipi.fi/viewtopic.php?f=10&t=5133

You also need to turn CONFIG_DEBUG_INFO=y. DEBUG_KERNEL is not the same as DEBUG_INFO.

As far as I can check inside qemu's code (within my limited knowledge), breakpoint codes are seems correctly generated at the right address.

--
regards,

Mulyadi Santosa
Freelance Linux trainer
blog: the-hydra.blogspot.com