From: Jim Blandy <jimb@redhat.com>
To: Michal Ludvig <mludvig@suse.cz>
Cc: GDB Patches <gdb-patches@sources.redhat.com>
Subject: Re: [RFA] dwarf2cfi.c improvements
Date: Thu, 18 Jul 2002 16:53:00 -0000 [thread overview]
Message-ID: <nplm88fzuy.fsf@zwingli.cygnus.com> (raw)
In-Reply-To: <3D36B967.7030205@suse.cz>
Sure --- looks good to me.
Michal Ludvig <mludvig@suse.cz> writes:
> Hi all,
> this patch adds an error() call when there is an unknown DW_OP_ value
> in a debug_frame section. Next it initialises return value CFA so that
> it isn't used uninitialised when the switch{} finishes on default
> label.
> Easy. Nothing to be broken in here. OK to commit?
>
> Michal Ludvig
> --
> * SuSE CR, s.r.o * mludvig@suse.cz
> * +420 2 9654 5373 * http://www.suse.cz
> 2002-07-17 Michal Ludvig <michal@suse.cz>
>
> * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
> (update_context): Initialise cfa variable.
>
> Index: dwarf2cfi.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/dwarf2cfi.c,v
> retrieving revision 1.15
> diff -u -p -r1.15 dwarf2cfi.c
> --- dwarf2cfi.c 15 Jul 2002 16:01:31 -0000 1.15
> +++ dwarf2cfi.c 18 Jul 2002 12:35:40 -0000
> @@ -1227,7 +1227,8 @@ execute_stack_op (struct objfile *objfil
> case DW_OP_ne:
> result = (LONGEST) first != (LONGEST) second;
> break;
> - default: /* This label is here just to avoid warning. */
> + default:
> + error ("execute_stack_op: Unknown DW_OP_ value");
> break;
> }
> }
> @@ -1271,7 +1272,7 @@ static void
> update_context (struct context *context, struct frame_state *fs, int chain)
> {
> struct context *orig_context;
> - CORE_ADDR cfa;
> + CORE_ADDR cfa = 0;
> long i;
>
> unwind_tmp_obstack_init ();
next prev parent reply other threads:[~2002-07-18 22:14 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-18 5:54 Michal Ludvig
2002-07-18 16:53 ` Jim Blandy [this message]
2002-07-19 10:49 ` Andrew Cagney
2002-07-19 12:56 ` Jim Blandy
-- strict thread matches above, loose matches on Subject: below --
2002-06-13 12:02 Michal Ludvig
2002-05-31 10:21 Michal Ludvig
2002-06-03 6:43 ` Andrew Cagney
2002-06-04 4:35 ` Michal Ludvig
2002-06-10 20:21 ` Elena Zannoni
2002-06-11 8:28 ` Michal Ludvig
2002-06-11 8:56 ` Daniel Jacobowitz
2002-06-11 14:00 ` Elena Zannoni
[not found] ` <3D08EB06.9030200@suse.cz>
2002-06-19 6:48 ` Elena Zannoni
2002-06-19 6:48 ` Elena Zannoni
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=nplm88fzuy.fsf@zwingli.cygnus.com \
--to=jimb@redhat.com \
--cc=gdb-patches@sources.redhat.com \
--cc=mludvig@suse.cz \
/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