LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 07-21-2010, 04:24 AM   #1
hs_linux
LQ Newbie
 
Registered: Dec 2009
Posts: 14

Rep: Reputation: 0
Does core dump analysis require program arguments?


I was analysing a core dump using KDevelop/GDB. I specified the executable name in Project Options. My program requires some arguments at launch. But I realised that I need not specify the program arguments during coredump analysis. When I load the core file, the program doesn't launch. So, I removed the environment variable settings also from Project Options. I want to confirm if my findings are correct?
I work on C++ and JNI but these observations are common for both.

Thanks

Last edited by hs_linux; 07-21-2010 at 04:29 AM.
 
Old 07-22-2010, 01:05 PM   #2
paulsm4
Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
KDevelop/GDB is just a little GUI wrapper around GDB. Effectively, it *IS* GDB.

With the same behavior you asked about in previous links:

http://www.linuxquestions.org/questi...m-name-821216/

http://www.linuxquestions.org/questi...alysis-821217/

PS:
If you're working with JNI, I strong (strongly!) urge you to:

1. Keep your JNI layer as thin as possible (do as LITTLE as possible OUTSIDE of Java)
2. Use C (rather than C++)

Last edited by paulsm4; 07-22-2010 at 01:09 PM.
 
Old 07-23-2010, 02:46 AM   #3
hs_linux
LQ Newbie
 
Registered: Dec 2009
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks paulsm4 for your reply. Yes, the diff posts relate to gdb. But since these are different, I preferred to put them separately.

At one time, I was passing program arguments but later found that the analysis work even without them and without environment variable setting. This would be because it doesn't run the program. But I just wanted to confirm it over here.

Thanks.
 
  


Reply

Tags
coredump, gdb, kdevelop


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Core dump issues. Program crashes but does not generate core dump file sabeel_ansari Programming 1 10-07-2009 04:23 PM
Core dump in Ubuntu 8.04 (Empty core file) vineet7kumar Linux - Newbie 1 01-17-2009 05:52 PM
Core Dump on Solaris (Question about core file) dayalan_cse Solaris / OpenSolaris 3 10-06-2007 02:26 AM
LXer: A quick overview of Linux kernel crash dump analysis LXer Syndicated Linux News 0 08-16-2007 04:11 AM
Stock analysis program? ahz Linux - Software 5 05-19-2005 06:00 PM


All times are GMT -5. The time now is 12:25 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration