Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Kevin Buettner <kevinb@cygnus.com>
To: John Van Horne <JohnVan.Horne@cosinecom.com>,
	"'gdb@sourceware.cygnus.com'" <gdb@sourceware.cygnus.com>
Subject: Re: what to do when upgrading Linux kernel
Date: Wed, 14 Feb 2001 11:55:00 -0000	[thread overview]
Message-ID: <1010214195526.ZM6368@ocotillo.lan> (raw)
In-Reply-To: <7EB7C6B62C4FD41196A80090279A29113D740A@exchsrv1.cosinecom.com>

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


  reply	other threads:[~2001-02-14 11:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-14 11:07 John Van Horne
2001-02-14 11:55 ` Kevin Buettner [this message]
2001-02-16 10:51 John Van Horne

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=1010214195526.ZM6368@ocotillo.lan \
    --to=kevinb@cygnus.com \
    --cc=JohnVan.Horne@cosinecom.com \
    --cc=gdb@sourceware.cygnus.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