This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 1/3] Test on disassemble


>>>>> "Yao" == Yao Qi <yao@codesourcery.com> writes:

Yao> +    # When GDB is debugging GDB, the prompt is changed to "(top-gdb) ".
Yao> +    # In order to avoid the confusion of pattern matching, set the
Yao> +    # gdb_prompt to '(top-gdb)'.
Yao> +
Yao> +    global gdb_prompt
Yao> +    set gdb_prompt "\[(\]top-gdb\[)\]"

It seems to me that this sort of change ought to be undone after the
tests are complete.  Otherwise, it could affect subsequent tests.

To do that properly, you'll want to use "catch".  Or, if you want to
wrap it up "macro style" see with_test_prefix.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]