btrace: fix test build error in gdb.btrace/instruction_history.c
authorMarkus Metzger <markus.t.metzger@intel.com>
Wed, 13 Apr 2016 12:06:51 +0000 (14:06 +0200)
committerMarkus Metzger <markus.t.metzger@intel.com>
Wed, 13 Apr 2016 13:01:14 +0000 (15:01 +0200)
commite26b7e41652e288dfdb4c48121bba470c4774150
tree20927125f829e761568e34750b753b57dadf21ab
parent37ce0cc4b7bf61f4c81023a8245876b690121df5
btrace: fix test build error in gdb.btrace/instruction_history.c

On systems with a newer version of GCC the gdb.btrace/instruction_history.exp
test fails to build like this:

    Running .../gdb.btrace/instruction_history.exp ...
    gdb compile failed, .../gdb.btrace/instruction_history.c:
    In function 'main': .../gdb.btrace/instruction_history.c:24:3: warning:
    implicit declaration of function 'loop' [-Wimplicit-function-declaration]
       loop ();
       ^

Declare loop to fix it.

testsuite/
* gdb.btrace/instruction_history.c (loop): Add declaration.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.btrace/instruction_history.c