From: Michal Ludvig <mludvig@suse.cz>
To: Elena Zannoni <ezannoni@redhat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFA] dwarf2cfi.c fix for shlibs
Date: Wed, 22 May 2002 06:54:00 -0000 [thread overview]
Message-ID: <3CEB9BD0.1090206@suse.cz> (raw)
In-Reply-To: <15593.43860.998519.308832@localhost.redhat.com>
[-- Attachment #1: Type: text/plain, Size: 791 bytes --]
Elena Zannoni wrote:
> You should use
>
> fde->initial_location = read_pointer (abfd, &start)
> + ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile));
>
> instead.
> Otherwise it's ok.
Thanks, commited to both mainline and branch along with the eh_frame thing.
> BTW: I get 2 warnings compiling dwarf2cfi.c on i386.
> /home/ezannoni/sources/src/gdb/dwarf2cfi.c: In function `execute_stack_op':
> /home/ezannoni/sources/src/gdb/dwarf2cfi.c:1079: warning: cast to pointer from integer of different size
> /home/ezannoni/sources/src/gdb/dwarf2cfi.c:1086: warning: cast to pointer from integer of different size
Appended patch should fix these warnings. Commited as obvious.
Michal Ludvig
--
* SuSE CR, s.r.o * mludvig@suse.cz
* +420 2 9654 5373 * http://www.suse.cz
[-- Attachment #2: cfi-ptrwarning.diff --]
[-- Type: text/plain, Size: 719 bytes --]
Index: dwarf2cfi.c
===================================================================
RCS file: /cvs/src/src/gdb/dwarf2cfi.c,v
retrieving revision 1.1.2.3
diff -c -3 -p -r1.1.2.3 dwarf2cfi.c
*** dwarf2cfi.c 22 May 2002 12:55:38 -0000 1.1.2.3
--- dwarf2cfi.c 22 May 2002 13:15:28 -0000
*************** execute_stack_op (struct objfile *objfil
*** 875,881 ****
while (op_ptr < op_end)
{
enum dwarf_location_atom op = *op_ptr++;
! ULONGEST result, reg;
LONGEST offset;
switch (op)
--- 875,882 ----
while (op_ptr < op_end)
{
enum dwarf_location_atom op = *op_ptr++;
! CORE_ADDR result;
! ULONGEST reg;
LONGEST offset;
switch (op)
prev parent reply other threads:[~2002-05-22 13:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-15 8:12 Michal Ludvig
2002-05-20 19:05 ` Elena Zannoni
2002-05-22 6:54 ` Michal Ludvig [this message]
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=3CEB9BD0.1090206@suse.cz \
--to=mludvig@suse.cz \
--cc=ezannoni@redhat.com \
--cc=gdb-patches@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