public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: "Liang, James" <jliang@sandia.gov>
To: "'gdb@sources.redhat.com'" <gdb@sources.redhat.com>
Subject: RE: relocating BSS section for remote target
Date: Mon, 21 Apr 2003 22:20:00 -0000	[thread overview]
Message-ID: <71251C7D5FB1D2119C8F0008C7A44ED103792008@es07snlnt.sandia.gov> (raw)

Never mind, I figured it out.  I had removed the BSS section from my image
to save ROM space.  This allowed the debug symbols for the BSS section to
stay, but changed something in the image that made GDB (symfile.c to be
exact) think that I had no BSS section.  That's why the relocation did
happen.

I fixed it by having my code look for the BSS section when it is not tagged
and updating the GDB data structure.

-----Original Message-----
From: Liang, James 
Sent: Monday, April 21, 2003 1:48 PM
To: 'gdb@sources.redhat.com'
Subject: relocating BSS section for remote target


I am trying to understand how the code for remote targets works for GDB.

In remote_cisco_objfile_relocate of remote.c, it looks like the data, text,
and bss sections are all relocated.
The problem is that when I try to access something in my bss section, it
still tries to access it at the
old unrelocated address.  What could be causing this?

James

             reply	other threads:[~2003-04-21 22:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-21 22:20 Liang, James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-04-21 19:47 Liang, James

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=71251C7D5FB1D2119C8F0008C7A44ED103792008@es07snlnt.sandia.gov \
    --to=jliang@sandia.gov \
    --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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).