This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v3] Add a 'starti' command.
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: John Baldwin <jhb at FreeBSD dot org>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 03 Nov 2017 13:00:18 +0000
- Subject: Re: [PATCH v3] Add a 'starti' command.
- Authentication-results: sourceware.org; auth=none
- References: <20170911220803.73819-1-jhb@FreeBSD.org>
John Baldwin <jhb@FreeBSD.org> writes:
> +# Continue to the start of main(). The constructor should have run so
> +# 'x' should be 1.
> +
> +gdb_breakpoint main
> +gdb_test_sequence "continue" "" {
> + "\\$2 = 1"
> + ".*Breakpoint .*main \\(\\) at .*starti.c.*"
Here is a test failure, captured by buildbot,
https://sourceware.org/ml/gdb-testers/2017-q3/msg04381.html
(gdb) gdb_expect_list pattern: /\$2 = 1/
continue^M
Continuing.^M
$2 = 1^M
gdb_expect_list pattern: /.*Breakpoint .*main \(\) at .*starti.c.*/
^M
Breakpoint 1, Python Exception <type 'exceptions.NameError'> Installation error: gdb.execute_unwinders function is missing: ^M
main () at /home/yao/SourceCode/gnu/gdb/git/gdb/testsuite/gdb.base/starti.c:29^M
29 return 0;^M
(gdb) gdb_expect_list pattern: //
FAIL: gdb.base/starti.exp: continue (pattern 3 + sentinel) (timeout)
Can you take a look?
--
Yao (齐尧)