From: Pedro Alves <palves@redhat.com>
To: Yao Qi <yao@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] Compute the function length instead of hard coding it
Date: Fri, 25 Apr 2014 10:37:00 -0000 [thread overview]
Message-ID: <535A3AF9.3060001@redhat.com> (raw)
In-Reply-To: <5359BB87.7080905@codesourcery.com>
On 04/25/2014 02:33 AM, Yao Qi wrote:
> * gdb.dwarf2/dwz.exp: Compile main.c to object. Restart GDB
> and compute the length of function main. Save it in
> $main_length.
> (Dwarf::assemble): Use $main_length instead of hard-coded 10.
> (top-level): Use gdb_compile to compile objects into
> executable and restart GDB. Remove invocation to
> prepare_for_testing.
OK, with ...
> +# Start GDB and load object file, compute the function length which is
> +# needed in the Dwarf Assembler below.
> +
> +gdb_exit
> +gdb_start
> +gdb_reinitialize_dir $srcdir/$subdir
> +gdb_load ${binfile}1.o
I think this instead should work:
clean_restart ${testfile}1.o
--
Pedro Alves
next prev parent reply other threads:[~2014-04-25 10:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-24 12:46 Yao Qi
2014-04-24 14:04 ` Pedro Alves
2014-04-25 1:36 ` Yao Qi
2014-04-25 10:37 ` Pedro Alves [this message]
2014-04-26 2:50 ` Yao Qi
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=535A3AF9.3060001@redhat.com \
--to=palves@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=yao@codesourcery.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