Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Bruce Ashfield <Bruce.Ashfield@seawaynetworks.com>
To: gdb@sources.redhat.com, drow@mvista.com
Subject: Re: Symbol reference strangeness
Date: Thu, 06 Mar 2003 19:57:00 -0000	[thread overview]
Message-ID: <20030306195714.GA13131@seawaynetworks.com> (raw)
In-Reply-To: <20030306194213.GA24243@nevyn.them.org>

Hi,

Shoot. I was hoping they were similar, hard to tell with those
search results. Here is the additional information, I'll see if
I can put together a testcase, but I'm suspicious that part of
the problem is due to the sizes of our images.

> I'd need a testcase to be able to help much.  Is that the right or
> wrong address?  What does p &debugLevel say?  Where is it actually 
> located?   

----------

> powerpc-eabi-gdb /local/ashfield/SW5000/swy/images/ccp_dbg_nopt_nin_v.img
GNU gdb 5.3
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=powerpc-eabi"...
(gdb)  p /x debugLevel
$1 = 0xfffffff
(gdb)  p &debugLevel
$2 = (Uint32 *) 0x778e4
(gdb) p sealKernelMaxConsecutiveCt_g
$3 = 3
(gdb) p &sealKernelMaxConsecutiveCt_g
$4 = (Uint32 *) 0x77848
(gdb) p /x debugLevel
Cannot access memory at address 0x40249fc0
(gdb) p &debugLevel
$5 = (Uint32 *) 0x40249fc0

--------

Very strange indeed. The address is getting corrupted and I'm at a loss
to explain it. This problem didn't pop up with the gcc-3.0 and older
gdb's, which isn't that much of a surpise, with the amount of diffs.

The two variables that I'm accessing are compiled in different parts
of the system, placed in different static libraries and linked into
the final image. Once I've crossed the boundary from the .a that is 
holding debugLevel to the one with sealKernelMaxConsecutiveCt_g, there
seems to be no way back.

Let me know what else I can provide (I'll work on that testcase).

Cheers,

Bruce Ashfield


In message: Re: Symbol reference strangeness
on March 06 Daniel Jacobowitz wrote:

> On Thu, Mar 06, 2003 at 02:35:45PM -0500, Bruce Ashfield wrote:
> > Hi all,
> > 

<snip>

> > The most similar problems I've found to what I'm seeing on the
> > mailing list archives are:
> > 
> > http://sources.redhat.com/ml/gdb/2002-12/msg00111.html
> > http://sources.redhat.com/ml/bug-gdb/2000-09/msg00012.html
> > 
> > Which fairly closely describe what I've been seeing. So I'm 
> 
> No, that's a completely different problem (and fixed now, though I
> don't remember if the fix was in 5.3 or not).

<snip>

> 
> -- 
> Daniel Jacobowitz
> MontaVista Software                         Debian GNU/Linux Developer

-- 
Bruce Ashfield         | "Thou shalt not follow the NULL pointer, for
                       |  chaos and madness await thee at its end."
                       |       - unknown


  reply	other threads:[~2003-03-06 19:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-06 19:35 Bruce Ashfield
2003-03-06 19:42 ` Daniel Jacobowitz
2003-03-06 19:57   ` Bruce Ashfield [this message]
2003-03-06 20:06     ` Daniel Jacobowitz
2003-03-11 17:54       ` Bruce Ashfield

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=20030306195714.GA13131@seawaynetworks.com \
    --to=bruce.ashfield@seawaynetworks.com \
    --cc=drow@mvista.com \
    --cc=gdb@sources.redhat.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