Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* what to do when upgrading Linux kernel
@ 2001-02-14 11:07 John Van Horne
  2001-02-14 11:55 ` Kevin Buettner
  0 siblings, 1 reply; 3+ messages in thread
From: John Van Horne @ 2001-02-14 11:07 UTC (permalink / raw)
  To: 'gdb@sourceware.cygnus.com'

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1771 bytes --]

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
------------------------------------------------------------------------------------------------------------------------





^ permalink raw reply	[flat|nested] 3+ messages in thread
* RE: what to do when upgrading Linux kernel
@ 2001-02-16 10:51 John Van Horne
  0 siblings, 0 replies; 3+ messages in thread
From: John Van Horne @ 2001-02-16 10:51 UTC (permalink / raw)
  To: 'Kevin Buettner', 'gdb@sourceware.cygnus.com'

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2415 bytes --]

Title: RE: what to do when upgrading Linux kernel





Kevin,


Thanks for your advice.  I got the latest snapshot, built that, and it's working on my 2.4 test 1 Linux kernel on by G4 Mac.

-John


-----Original Message-----
From: Kevin Buettner [ mailto:kevinb@cygnus.com ]
Sent: Wednesday, February 14, 2001 11:55 AM
To: John Van Horne; 'gdb@sourceware.cygnus.com'
Subject: Re: what to do when upgrading Linux kernel



On Feb 14, 11:04am, John Van Horne wrote:


> 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?


gdb-4.18 is pretty old.  My recollection is that gdb-4.18 had a number
of problems on linux/ppc.  (Support for this platform had not been
officially integrated into gdb at this point.  Also, most of my
porting work for linux/ppc had been done wrt 4.16.) That said, if you
had a working gdb-4.18 that worked for you with a 2.4 kernel.  It
is possible that the ptrace interface may have been broken in one of
the earlier 2.4 kernels.  (You may wish to search the appropriate
lists to see if you can turn anything up.)


I suggest that you try one or more of the following...


    1) Upgrade to gdb-5.0 or build the current development sources.


    2) Obtain the latest Yellow Dog distribution and upgrade to that. 
       I don't know what kernel they're running now, but most likely
       they have a more recent gdb, one in which linux/ppc is
       officially supported..





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-02-16 10:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-14 11:07 what to do when upgrading Linux kernel John Van Horne
2001-02-14 11:55 ` Kevin Buettner
2001-02-16 10:51 John Van Horne

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox