LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 01-13-2014, 03:06 AM   #1
chaoxifer
LQ Newbie
 
Registered: Nov 2010
Location: Seoul, South Korea
Distribution: Arch, Gentoo
Posts: 15

Rep: Reputation: 0
Is there any solution for debugging 64-bit kernel with using qemu-system-32bit host?


Hi, I'm using 32bit Arch Linux and I'm trying to make a kernel using Intel's IA-32e mode.

Actually, I need to debug my kernel but I can't find any solution for my case...

I tried to use Vmware and VirtualBox for debugging 64bit kernel, but the cpu(Intel Duo T6600) of my old laptop doesn't support Virtualization for this.
Alternatively, I've tried to use qemu for testing my kernel and it was successful to only execute. But the problem is that I cannot debug my kernel.... I made debug symbol tables and I've cross-compiled gdb to support 64bit target, but It didn't any effect. When I make a breakpoint and jump to the instruction, the message "Cannot execute this command while the selected thread is running." is generated.
Code:
(gdb) symbol-file workspace/os/02.Kernel64/Debug/Kernel64.sym 
Reading symbols from /home/chaoxifer/workspace/os/02.Kernel64/Debug/Kernel64.sym...done.
(gdb) b Main
Breakpoint 1 at 0x20001f: file ../Source/Main.c, line 28.
(gdb) c
Continuing.
Remote 'g' packet reply is too long: 10000080000000000000000000000000800000c000000000000000000000000080130000000000000000000000000000f8ff6f0000000000f0ff6f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001f002000000000008200000008000000100000001000000010000000100000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007f0300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000801f0000
(gdb) stepi
Cannot execute this command while the selected thread is running.
I've found some threads that It is impossible to debug with using gdb + qemu(64bit target) on 32bit host....I cannot understand why...

Is there any solution for handle this??

Last edited by chaoxifer; 01-13-2014 at 03:09 AM.
 
Old 08-12-2015, 07:41 AM   #2
cirosantilli
LQ Newbie
 
Registered: Nov 2012
Posts: 4

Rep: Reputation: Disabled
Possible same on the bugtracker: https://sourceware.org/bugzilla/show_bug.cgi?id=13984
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel debugging with Qemu and gdb Saptarshi4031 Linux - Newbie 3 06-11-2013 11:12 AM
installing slack64 13.0 client on qemu winxp 32bit host fails timsoft Slackware 17 11-17-2009 03:22 PM
32bit qemu image on 64bit host? Yalla-One Slackware 14 08-25-2009 05:18 PM
Running 32bit OS on a 64 bit system asmar Debian 3 09-24-2005 03:32 PM
Can I install 9.2-32bit on a 64 bit system? Riddick SUSE / openSUSE 5 11-21-2004 06:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 10:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration