From: Luis Machado <lgustavo@codesourcery.com>
To: Nicolas Blanc <nicolas.blanc@intel.com>
Cc: gdb-patches@sourceware.org, palves@redhat.com, tromey@redhat.com,
eliz@gnu.org, yao@codesourcery.com
Subject: Re: [patch v4 2/3] Test adding and removing a symbol file at runtime.
Date: Wed, 29 May 2013 09:48:00 -0000 [thread overview]
Message-ID: <51A5CEE2.4070100@codesourcery.com> (raw)
In-Reply-To: <1369818805-14288-3-git-send-email-nicolas.blanc@intel.com>
Hi,
More nits
On 05/29/2013 11:13 AM, Nicolas Blanc wrote:
> +unsigned char inline elf_st_type (unsigned char st_info)
> +{
> + return ELF32_ST_TYPE (st_info);
> +}
> +#endif
> +
> +
Double empty line here. There are more occurrences of this throughout
the testcase.
> +void gdb_add_symbol_file (void* addr, const char* file)
> +{
> + return;
> +}
> +
> +
Here.
> +void gdb_remove_symbol_file (void* addr)
> +{
> + return;
> +}
> +
> +
Here.
> +struct segment
> +{
> + char* mapped_addr;
> + Elf_Phdr* phdr;
> + struct segment* next;
> +};
> +
> +
Here and so on.
> +# Test adding and removing a symbol file dynamically:
> +# 1) Load the main executable.
> +# 2) Run to GDB_ADD_SYMBOl_FILE in $srcfile.
> +# 3) Set a pending breakpoint at BAR in $libsrc.
> +# 4) Load $shlib_name using 'add-symbol-file'.
> +# 5) Continue to BAR in $libsrc.
> +# 6) Set a breakpiont at FOO in $librc.
> +# 7) Continue to FOO in $libsrc.
> +# 8) Set a breakpoint at GDB_REMOVE_SYMBOL_FILE.
> +# 9) Continue to GDB_REMOVE_SYMBOL_FILE in $srcfile.
> +# 10) Remove $shlib_name using 'remove-symbol-file'.
> +# 11) Check that the breakpoints at FOO and BAR are pending.
> +# 12) Check that the execution can continue without error.
> +
> +
Double empty line again.
> +if [skip_shlib_tests] {
> + return 0
> +}
> +
> +
> +if [is_remote target] {
> + return 0
> +}
> +
> +set target_size TARGET_UNKNOWN
> +if [is_lp64_target] {
> + set target_size TARGET_LP64
> +} elseif [is_ilp32_target] {
> + set target_size TARGET_ILP32
> +} else {
> + return 0
> +}
> +
> +set testfile sym-file-main
> +set libfile sym-file-lib
> +set srcfile ${testfile}.c
> +set binfile ${objdir}/${subdir}/${testfile}
> +
> +set libsrc "${srcdir}/${subdir}/${libfile}.c"
> +set libname "${libfile}.so"
> +set shlib_name "${objdir}/${subdir}/${libname}"
> +set libobj "${objdir}/${subdir}/${libname}"
> +set execsrc "${srcdir}/${subdir}/${srcfile}"
> +set exec_opts [list debug "additional_flags=-D$target_size -DSHLIB_NAME\\=\"$shlib_name\""]
I'm wondering if the newer function "prepare_for_testing" can be used
here to prevent having to deal with all these individual options.
next prev parent reply other threads:[~2013-05-29 9:48 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-29 9:13 [patch v4 0/3] remove-symbol-file Nicolas Blanc
2013-05-29 9:13 ` [patch v4 1/3] Create remove-symbol-file command Nicolas Blanc
2013-05-29 9:38 ` Luis Machado
2013-05-29 12:08 ` Blanc, Nicolas
2013-05-29 12:11 ` Luis Machado
2013-05-29 9:13 ` [patch v4 2/3] Test adding and removing a symbol file at runtime Nicolas Blanc
2013-05-29 9:48 ` Luis Machado [this message]
2013-05-29 9:13 ` [patch v4 3/3] Documentation for the remove-symbol-file command Nicolas Blanc
2013-05-29 15:59 ` Eli Zaretskii
2013-05-29 17:11 ` Blanc, Nicolas
2013-05-29 17:25 ` Eli Zaretskii
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=51A5CEE2.4070100@codesourcery.com \
--to=lgustavo@codesourcery.com \
--cc=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
--cc=nicolas.blanc@intel.com \
--cc=palves@redhat.com \
--cc=tromey@redhat.com \
--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