LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-02-2008, 09:16 AM   #1
jujose
LQ Newbie
 
Registered: Oct 2008
Location: India
Distribution: fedora
Posts: 11

Rep: Reputation: 0
How can i do gdb for daemon process ?


How can i do gdb for daemon process ?

I am creating a daemon process... and when i try to run it on gdb i got exited when the parent process exiting..

any idea how debug the daemon process?
i tried with attaching pids.. i dont know taht also not working..


help me out plz
 
Old 11-03-2008, 06:05 AM   #2
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by jujose View Post
How can i do gdb for daemon process ?
run it in non-background mode.

Quote:
Originally Posted by jujose View Post
I am creating a daemon process... and when i try to run it on gdb i got exited when the parent process exiting..
Afaik when you debug process, and process creates child process and stops itself, gdb created "stopped" copy of gdb debugging child process. Copy can be brought to life by entering "fg" command. I'm not sure if that apply to daemon processes, but that work with other apps.
 
  


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
analyze process dump using GDB kskkumar Linux - Software 2 05-16-2009 05:41 AM
any idea how debug the daemon process with gdb ? jujose Linux - General 1 10-24-2008 02:22 AM
GDB errors : Couldn't get registers: No such process. soararing Programming 0 05-24-2008 09:30 AM
attach gdb to a running process linwenyuan Linux - Desktop 1 10-15-2006 01:50 AM
How can i attach gdb to a daemon process praveengujar Linux - General 0 08-11-2004 06:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:39 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