Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6865513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:03:40+00:00 2026-05-27T03:03:40+00:00

I want to write a program which can read core files in Linux. However

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T03:03:41+00:00Added an answer on May 27, 2026 at 3:03 am

    You can also take a look at GDB source code, gdb/core*.

    For instance, in gdb/corelow.c, you can read at the end:

      static struct target_ops core_ops;
    
      core_ops.to_shortname = "core";
      core_ops.to_longname = "Local core dump file";
      core_ops.to_doc = "Use a core file as a target.  Specify the filename of the core file.";
      core_ops.to_open = core_open;
      core_ops.to_close = core_close;
      core_ops.to_attach = find_default_attach;
      core_ops.to_detach = core_detach;
      core_ops.to_fetch_registers = get_core_registers;
      core_ops.to_xfer_partial = core_xfer_partial;
      core_ops.to_files_info = core_files_info;
      core_ops.to_insert_breakpoint = ignore;
      core_ops.to_remove_breakpoint = ignore;
      core_ops.to_create_inferior = find_default_create_inferior;
      core_ops.to_thread_alive = core_thread_alive;
      core_ops.to_read_description = core_read_description;
      core_ops.to_pid_to_str = core_pid_to_str;
      core_ops.to_stratum = process_stratum;
      core_ops.to_has_memory = core_has_memory;
      core_ops.to_has_stack = core_has_stack;
      core_ops.to_has_registers = core_has_registers;
    

    The struct target_ops defines 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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to write a Linux 2.6 netfilter module , which can check the
I want to write a program which will read in a whole bunch of
I want to write a program in which plays an audio file that reads
I want to write a simple program which shows my internet activity over a
I want to write a program in C/C++ that will dynamically read a web
I want to write a program to find the n-th smallest element without using
I want to create a python program which splits up a files into segments
I want to write a program that would print every combination of a set
I want to write a program to link with binaries already created with VC++.
I want to write a program from scratch to see the sockets activity, what

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.