Re: [PATCH: mi-cmd-file.c]

Nick Roberts
2008-01-30T08:51:12Z

> I seems like this patch was checked in, and I see the following:
>
> FAIL: gdb.mi/mi-file.exp: request path info of current source file
> (basics.c)
>
> and same for mi2-file.exp. Did you forgot to run testsuite, or forgot to
> commit testsuite change?

Yes, my mistake - sorry.

I've checked in the changes below as obvious.

--
Nick http://www.inet.net.nz/~nickrob

2008-01-30 Nick Roberts <nickrob@snap.net.nz>

* gdb.mi/mi-file.exp, gdb.mi/mi2-file.exp
(test_file_list_exec_source_file): Update to new macro-info field.

*** mi-file.exp.~1.11.~ 2008-01-10 11:35:09.000000000 +1300
--- mi-file.exp 2008-01-30 21:42:59.000000000 +1300
*************** proc test_file_list_exec_source_file {}
*** 64,70 ****
set line_default [expr $line_main_body - $gdb_lines_to_list + 1]

mi_gdb_test "111-file-list-exec-source-file" \
! "111\\\^done,line=\"$line_default\",file=\"${srcfilepath}\",fullname=\"$fullname_syntax${srcfile}\"" \
"request path info of current source file (${srcfile})"
}

--- 64,70 ----
set line_default [expr $line_main_body - $gdb_lines_to_list + 1]

mi_gdb_test "111-file-list-exec-source-file" \
! "111\\\^done,line=\"$line_default\",file=\"${srcfilepath}\",fullname=\"$fullname_syntax${srcfile}\",macro-info=\"0\"" \
"request path info of current source file (${srcfile})"
}

*** mi2-file.exp.~1.11.~ 2008-01-10 11:35:10.000000000 +1300
--- mi2-file.exp 2008-01-30 21:43:06.000000000 +1300
*************** proc test_file_list_exec_source_file {}
*** 64,70 ****
set line_default [expr $line_main_body - $gdb_lines_to_list + 1]

mi_gdb_test "111-file-list-exec-source-file" \
! "111\\\^done,line=\"$line_default\",file=\"${srcfilepath}\",fullname=\"$fullname_syntax${srcfile}\"" \
"request path info of current source file (${srcfile})"
}

--- 64,70 ----
set line_default [expr $line_main_body - $gdb_lines_to_list + 1]

mi_gdb_test "111-file-list-exec-source-file" \
! "111\\\^done,line=\"$line_default\",file=\"${srcfilepath}\",fullname=\"$fullname_syntax${srcfile}\",macro-info=\"0\"" \
"request path info of current source file (${srcfile})"
}