From: Michael Snyder <msnyder@cygnus.com>
To: Fernando Nasser <fnasser@redhat.com>
Cc: gdb-patches@sources.redhat.com, Nick Clifton <nickc@cygnus.com>
Subject: Re: RFA: [buildsym.c] Turn off unused addr bits in linetable
Date: Mon, 12 Mar 2001 17:11:00 -0000 [thread overview]
Message-ID: <3AAD70E6.D8E1A97C@cygnus.com> (raw)
In-Reply-To: <3AAD70B6.A9C16F36@redhat.com>
Fernando Nasser wrote:
>
> Some systems like ARM may have extra bits set in the address to indicate
> a mode or something else (the LSB=1 means thumb mode for ARM).
>
> So, before storing line number addresses we may need to turn this bits
> off as they may be passed to gdb with the bits on as result of
> relocation (ld has no way of knowing it is for a line table entry).
>
> The following patch passes the line addresses through the target
> dependent macro ADDR_BITS_REMOVE() before storing it on the table.
>
> OK to commit?
It seems in general like the right thing -- but I can't speak to
every target that uses this macro. Certainly it will not hurt
any target that doesn't define the macro (which defaults to identity).
>
> ChangeLog:
>
> * buildsym.c (record_line): Turn off unused addr bits.
>
> --
> Fernando Nasser
> Red Hat Canada Ltd. E-Mail: fnasser@redhat.com
> 2323 Yonge Street, Suite #300
> Toronto, Ontario M4P 2C9
>
> ----------------------------------------------------------------------------------------------------
> Index: gdb/buildsym.c
> ===================================================================
> RCS file: /cvs/cvsfiles/devo/gdb/buildsym.c,v
> retrieving revision 2.104
> diff -c -p -r2.104 buildsym.c
> *** buildsym.c 2000/02/21 10:02:58 2.104
> --- buildsym.c 2001/03/12 23:50:04
> *************** record_line (register struct subfile *su
> *** 725,731 ****
>
> e = subfile->line_vector->item + subfile->line_vector->nitems++;
> e->line = line;
> ! e->pc = pc;
> }
>
> /* Needed in order to sort line tables from IBM xcoff files. Sigh! */
> --- 725,731 ----
>
> e = subfile->line_vector->item + subfile->line_vector->nitems++;
> e->line = line;
> ! e->pc = ADDR_BITS_REMOVE(pc);
> }
>
> /* Needed in order to sort line tables from IBM xcoff files. Sigh! */
next prev parent reply other threads:[~2001-03-12 17:11 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-12 17:01 Fernando Nasser
2001-03-12 17:11 ` Michael Snyder [this message]
2001-03-13 8:52 ` Andrew Cagney
2001-03-13 9:21 ` Fernando Nasser
2001-03-15 16:27 ` Fernando Nasser
2001-03-15 17:58 ` Andrew Cagney
2001-04-01 17:37 ` Elena Zannoni
2001-04-06 6:23 ` Fernando Nasser
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=3AAD70E6.D8E1A97C@cygnus.com \
--to=msnyder@cygnus.com \
--cc=fnasser@redhat.com \
--cc=gdb-patches@sources.redhat.com \
--cc=nickc@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