From: Pedro Alves <pedro@codesourcery.com>
To: gdb-patches@sourceware.org
Cc: Paul Pluzhnikov <ppluzhnikov@google.com>
Subject: Re: [patch] Add tests for JIT debugging interface
Date: Wed, 12 Jan 2011 10:03:00 -0000 [thread overview]
Message-ID: <201101120717.28184.pedro@codesourcery.com> (raw)
In-Reply-To: <20110111232641.AE3D5190C55@elbrus2.mtv.corp.google.com>
On Tuesday 11 January 2011 23:26:41, Paul Pluzhnikov wrote:
> +int main(int argc, char *argv[])
> +{
> + if (argc < 2)
> + usage(argv[0]);
> + else
> + {
You're using GNU formatting throughout the file except here.
> +proc one_test {count match_str} {
> + global solib_binfile gdb_prompt
> +
> + gdb_test_no_output "set args $solib_binfile $count" "set args"
> + if ![runto_main] then {
> + fail "Can't run to main"
> + return 0
> + }
> +
> + gdb_breakpoint [gdb_get_line_number "break here 1"]
> + gdb_continue_to_breakpoint "break here 1"
> + gdb_test "info function jit_function" "$match_str"
> + gdb_breakpoint [gdb_get_line_number "break here 2"]
> + gdb_continue_to_breakpoint "break here 2"
> + # All jit librares must have been unregistered
> + gdb_test "info function jit_function" \
> + "All functions matching regular expression \"jit_function\":"
Tests should have distinct messages. Since this procedure
is ran more than once, you'll have identical output more than
once in your gdb.sum. I suggest making use of $pf_prefix (grep will
find uses).
This is okay with that, and Yao's comments addressed.
Thanks much!
> +}
> +
> +one_test 1 "${hex} jit_function_0000"
> +one_test 2 "${hex} jit_function_0000\[\r\n\]+${hex} jit_function_0001"
--
Pedro Alves
prev parent reply other threads:[~2011-01-12 7:17 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-11 23:28 Paul Pluzhnikov
2011-01-12 7:02 ` Yao Qi
2011-01-12 10:44 ` Pedro Alves
2011-01-12 15:19 ` Paul Pluzhnikov
2011-01-12 16:12 ` Pedro Alves
2011-01-12 17:23 ` Yao Qi
2011-01-12 17:33 ` Paul Pluzhnikov
2011-01-18 17:07 ` Paul Pluzhnikov
2011-01-19 19:27 ` Pedro Alves
2011-01-19 20:30 ` Paul Pluzhnikov
2011-01-19 21:04 ` Pedro Alves
2011-01-19 21:09 ` Yao Qi
2011-01-12 10:03 ` Pedro Alves [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=201101120717.28184.pedro@codesourcery.com \
--to=pedro@codesourcery.com \
--cc=gdb-patches@sourceware.org \
--cc=ppluzhnikov@google.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