Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Bogdan Harjoc <harjoc@gmail.com>
To: gdb@sourceware.org
Subject: Adding a missing NT_FILES note to a core file so gdb can load solibs for it
Date: Mon, 25 Jan 2016 14:06:00 -0000	[thread overview]
Message-ID: <CAF4+tmrNC8WbrECU8jqx8cS3k_BE9kbvphc=4LYWs6WX5m_PUg@mail.gmail.com> (raw)

I received some mips core files from an openwrt machine where all
.so's are sstripped: all the sections at the end are trimmed except
those strictly needed to run programs. All standard openwrt images are
built like this.

Reading the core files with readelf doesn't show any NT_FILES note,
and from stepping through the code, it seems this causes
solib_svr4_r_map() to fail, and "info sharedlibrary" shows nothing of
course.

I'm about to add that missing section back to the core file hoping it
will fix the automating loading of solibs. Google-coredumper [1] looks
like a good start for this, and cores are ELF files anyway. The load
addresses will be taken from the mapping that "info proc mappings"
outputs, it seems to be the same information.

[1] https://code.google.com/p/google-coredumper

So I'd like to ask whether this has any chance of working.

Thanks,
Bogdan


             reply	other threads:[~2016-01-25 14:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-25 14:06 Bogdan Harjoc [this message]
2016-01-25 14:22 ` Jan Kratochvil
2016-01-25 15:56   ` Bogdan Harjoc
2016-01-25 16:01     ` Jan Kratochvil

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAF4+tmrNC8WbrECU8jqx8cS3k_BE9kbvphc=4LYWs6WX5m_PUg@mail.gmail.com' \
    --to=harjoc@gmail.com \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox