public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Rusty Russell <rusty@rustcorp.com.au>
To: "Amit S. Kale" <amitkale@emsyssoft.com>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>,
	KGDB bugreports <kgdb-bugreport@lists.sourceforge.net>,
	Tom Rini <trini@kernel.crashing.org>
Subject: Re: module scanning in kgdb 2.x
Date: Wed, 17 Mar 2004 08:18:52 +1100	[thread overview]
Message-ID: <1079471931.19722.15.camel@bach> (raw)
In-Reply-To: <200403121206.16130.amitkale@emsyssoft.com>

On Fri, 2004-03-12 at 17:36, Amit S. Kale wrote:
> Hi,

Hi Amit,

	FYI: you would have received a quicker response if you'd CC'd me.

> It does following things:
> 1. Adds MODULE_STATE_GONE to indicate that a module was removed. This is 
> differnent from MODULE_STATE_GOING. gdb needs to be notified of a module 
> event _after_ a module has been removed. Or else it'll still find the module 
> during a module list scan and will not remove it from its core.

Makes sense.

> 2. Defines a structure mod_section which stores module section names and 
> offsets preserved during loading of a module.
> 
> 3. Adds a couple of fields to struct module to keep module section 
> information.

Why not just set the section strings to SHF_ALLOC rather than copying
(and possibly truncating) the names into your struct mod_section? 
struct mod_section is then simply void *addr; char *name;

Cheers,
Rusty.
-- 
Anyone who quotes me in their signature is an idiot -- Rusty Russell


  parent reply	other threads:[~2004-03-16 21:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-12  6:36 module scanning in kgdb 2.x Amit S. Kale
2004-03-12  7:00 ` [Kgdb-bugreport] " Amit S. Kale
2004-03-19 15:01   ` Amit S. Kale
2004-03-16 21:18 ` Rusty Russell [this message]
2004-03-19 15:06   ` Amit S. Kale
2004-03-19 23:49     ` Rusty Russell

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=1079471931.19722.15.camel@bach \
    --to=rusty@rustcorp.com.au \
    --cc=amitkale@emsyssoft.com \
    --cc=kgdb-bugreport@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=trini@kernel.crashing.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