I want to write a program which can read core files in Linux. However i cannot find any documentation which can guide me in this respect. Can someone please guide me as to where to do find some resources?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can also take a look at GDB source code,
gdb/core*.For instance, in
gdb/corelow.c, you can read at the end:The
struct target_opsdefines a generic interface that the upper part of GDB will use to communicate with a target. This target can be a local unix process, a remote process, a core file, …So if you only investigate what’s behing these functions, you won’t be overhelmed by the generic part of the debugger implementation.
(depending of what’s your final goal, you may also want to reuse this interface and its implementation in your app, it shouldn’t rely on so many other things.