This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] add testsuite for for backtrace commands with tfile to test the tfile memory read
On Fri, Jun 22, 2012 at 5:05 PM, Pedro Alves <palves@redhat.com> wrote:
> On 06/22/2012 02:42 AM, Hui Zhu wrote:
>
>> On Thu, Jun 21, 2012 at 10:16 PM, Pedro Alves <palves@redhat.com> wrote:
>>> On 06/21/2012 12:15 PM, Hui Zhu wrote:
>>>
>>>>>>
>>>>>> AFAIK, in tfile.exp, trace file is generated by tfile.c and GDB only consumes
>>>>>> these trace files (basic.tf and error.tf) for test purpose.
>>>>>>
>>>> Thanks for your help.
>>>> Post a new version according to your comments.
>>>>
>>>> Thanks,
>>>> Hui
>>>>
>>>> 2012-06-21 ?Hui Zhu ?<hui_zhu@mentor.com>
>>>>
>>>> ? ? ? * gdb.trace/tfile.exp: Add new test for backtrace commands
>>>> ? ? ? with tfile to test the tfile memory read.
>>>
>>>
>>> How was this tested?
>
>
>> ?
>
>
> $ make check RUNTESTFLAGS="--target_board=native-gdbserver tfile.exp -v"
> ...
> Skipping tfile.exp because of no fileio capabilities.
> ...
>
> --
> Pedro Alves
This is because:
if [target_info exists gdb,nofileio] {
verbose "Skipping tfile.exp because of no fileio capabilities."
continue
}
So to use this test, need remove "set_board_info gdb,do_reload_on_run 1"
Thanks,
Hui