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 07-28-2023, 04:56 AM   #1
xujunjian
LQ Newbie
 
Registered: Jul 2023
Posts: 2

Rep: Reputation: 0
Angry How to use qemu to simulate a Full OS and debug with gdb?


Hello guys,
I am new to gdb and debug.I'd like to ask you sevral questions about debug linux .
I want to debug drivers like blueZ on linux.I build a costum linux kernel myself and get a vmlinux file.Then,I build a busybox.I can debug by using qemu.But only for the kernel.There is no any drivers and softwares.And I also try to use qemu to run ubuntu,but I cannot get the symbol file.Is there any ideas?
 
Old 07-29-2023, 08:01 PM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,667

Rep: Reputation: 2711Reputation: 2711Reputation: 2711Reputation: 2711Reputation: 2711Reputation: 2711Reputation: 2711Reputation: 2711Reputation: 2711Reputation: 2711Reputation: 2711
I just install Virtual Machine Manager and QEMU and download an ISO of the distribution i want to work with. Then fire up VMM and create the machine and storage, attach the ISO, install Linux, load my tools, and ready to go. Takes a few minutes, but not long.

Most Linux drivers are modules and come with the kernel. If you want to play games with them, you might want th kernel sources and kernel build packages and tools.

Last edited by wpeckham; 07-29-2023 at 08:02 PM.
 
Old 07-30-2023, 08:01 PM   #3
xujunjian
LQ Newbie
 
Registered: Jul 2023
Posts: 2

Original Poster
Rep: Reputation: 0
Talking

Quote:
Originally Posted by wpeckham View Post
I just install Virtual Machine Manager and QEMU and download an ISO of the distribution i want to work with. Then fire up VMM and create the machine and storage, attach the ISO, install Linux, load my tools, and ready to go. Takes a few minutes, but not long.

Most Linux drivers are modules and come with the kernel. If you want to play games with them, you might want th kernel sources and kernel build packages and tools.
Thanks for your answer,I know this way,but how could I get the linux kernel smybol file of this ISO?
 
Old 07-31-2023, 10:11 AM   #4
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,667

Rep: Reputation: 2711Reputation: 2711Reputation: 2711Reputation: 2711Reputation: 2711Reputation: 2711Reputation: 2711Reputation: 2711Reputation: 2711Reputation: 2711Reputation: 2711
Quote:
Originally Posted by xujunjian View Post
Thanks for your answer,I know this way,but how could I get the linux kernel smybol file of this ISO?
IN the container you download the kernel sources for that kernel and distribution: they are in there. Often you can look in the src folder.


I take it you do not build kernel regularly?
 
  


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
GDB remote debug "permission denied" when trying to remotely debug program jguo5258 Linux - Software 3 12-08-2019 08:48 AM
DEBUG WITH GDB ERROR ! - spike: unrecognized option --gdb-port riscv Linux - Newbie 3 03-29-2017 02:59 PM
gdb, debug with separate debug file and different source dir problem a4z Programming 5 10-17-2014 01:55 AM
Debug init(userspace) on Qemu using gdb ! samurai37 Linux - Virtualization and Cloud 0 05-03-2013 08:44 AM

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

All times are GMT -5. The time now is 10:19 AM.

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