[binutils-gdb] x86-dregs: Print debug registers one per line

sergiodj+buildbot@sergiodj.net sergiodj+buildbot@sergiodj.net
Sun Jun 25 13:10:00 GMT 2017


*** TEST RESULTS FOR COMMIT f076f0349cb958b451872ce4a7987821533c2f49 ***

Author: Simon Marchi <simon.marchi@ericsson.com>
Branch: master
Commit: f076f0349cb958b451872ce4a7987821533c2f49

x86-dregs: Print debug registers one per line

This get around this warning given by clang...

  /home/emaisin/src/binutils-gdb/gdb/nat/x86-dregs.c:209:7: error: variable 'i' is incremented both in the loop header and in the loop body [-Werror,-Wfor-loop-analysis]
        i++;
        ^
  /home/emaisin/src/binutils-gdb/gdb/nat/x86-dregs.c:199:32: note: incremented here
    ALL_DEBUG_ADDRESS_REGISTERS (i)
                               ^

... I decided in the end to simply print the debug registers one per
line.  I don't think it particularly helps readability to have them two
per line anyway.

gdb/ChangeLog:

	* nat/x86-dregs.c (x86_show_dr): Print registers one per line.



More information about the Gdb-testers mailing list