LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Does core dump analysis require program arguments? (https://www.linuxquestions.org/questions/programming-9/does-core-dump-analysis-require-program-arguments-821212/)

hs_linux 07-21-2010 04:24 AM

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

paulsm4 07-22-2010 01:05 PM

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++)

hs_linux 07-23-2010 02:46 AM

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.


All times are GMT -5. The time now is 02:15 AM.