This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

what to do when upgrading Linux kernel


Title: what to do when upgrading Linux kernel

I'm hoping someone can help me with the following problem.

I've got Yellow Dog Linux, 2.2.18, and gdb 4.18. I install Linux kernel 2.4-test1, and
gdb no longer works. When I try to debug a program, even a very simple "hello
world" program, it says something like "Can't insert breakpoint -1. Can't access
memory at 0x6c6c2c07".  If I link the test program statically, and try to run gdb on
it, I get "Program received SIGTRAP Trace/Breakpoint signal. 0x6c6c2f7d in ??()".

I figure that I've got a library incompatibility problem. Do I need to recompile
and reinstall glibc for the new kernel, and then recompile gdb? Will that be enough,
or are there other steps one should take when upgrading a Linux kernel?

I know that 2.4 test1 is not the latest 2.4 kernel available for the PPC. For reasons
beyond my control, I'm stuck with it, at least for the near future. Is it possible that
gdb simply won't run on this kernel?

Thanks,
-John

------------------------------------------------------------------------------------------------------------------------

John Van Horne                          voice: 650-628-4148
Software Tools Engineer                 fax:      650-637-2411
CoSine Communications, Inc.                     cell:     650-346-0401
<http://www.cosinecom.com>                      email:  jvhorne@cosinecom.com
------------------------------------------------------------------------------------------------------------------------



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]