Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: gdb question

On Wed, Aug 04, 2010 at 04:17:52PM -0700, Paul Goyette wrote:
> I've got a kernel for an old machine, and I want to "patch" the
> kernel on-disk image to set 'acpi_force_load=1'
> I've been through all sorts of gyrations with gdb, but I keep
> getting the following error message:
>       (gdb) show write
>       Writing into executable and core files is on.
>       (gdb) set acpi_force_load = 1
>       Cannot access memory at address 0xffffffff80527018
>       (gdb)
> I'm probably missing something obvious, but it's not obvious to me!

Hmm, explicitly initializing acpi_force_load in acpi.c seems to do
the trick for me.

nm shows:
ffffffff80df0098 B acpi_force_load
ffffffff80d135e0 D acpi_force_load

        Jonathan Kollasch

Home | Main Index | Thread Index | Old Index