Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Ine Ya <ineyaa@gmail.com>
To: "K. Jagielski" <gilvannco@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: Accessing shared memory
Date: Thu, 18 Feb 2010 17:40:00 -0000	[thread overview]
Message-ID: <7b8592a1002180939y381c41d7nc37ca8677dcfa764@mail.gmail.com> (raw)
In-Reply-To: <3818d4521002180704w2b51e4fl1144408c2ef70724@mail.gmail.com>

Hi,

for coredumps:
check /proc/<pid>/maps and find out what flags this area has.
Then you can try to change the flags, so vma_dump_size() would not
return 0, or change this function for your needs and rebuild the
kernel.
http://lxr.linux.no/#linux+v2.6.32/fs/binfmt_elf.c#L1150

Hope this helps (I haven't tried this before),
Ineya

On Thu, Feb 18, 2010 at 4:04 PM, K. Jagielski <gilvannco@gmail.com> wrote:
> Hello,
> I'm allocating a memory block inside a kernel module and then I share
> it with an user space application through mmap(). I have two problems:
> 1. The memory isn't written into core files
> 2. The memory isn't accessible during "runtime" debugging (the result
> of "attach" command & similar)
>
> How to solve those issues?
>
> Regards,
> Krzysztof
>


      reply	other threads:[~2010-02-18 17:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-18 15:04 K. Jagielski
2010-02-18 17:40 ` Ine Ya [this message]

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=7b8592a1002180939y381c41d7nc37ca8677dcfa764@mail.gmail.com \
    --to=ineyaa@gmail.com \
    --cc=gdb@sourceware.org \
    --cc=gilvannco@gmail.com \
    /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