]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86-dregs: Print debug registers one per line
authorSimon Marchi <simon.marchi@ericsson.com>
Sun, 25 Jun 2017 10:38:59 +0000 (12:38 +0200)
committerSimon Marchi <simon.marchi@ericsson.com>
Sun, 25 Jun 2017 10:40:10 +0000 (12:40 +0200)
commitf076f0349cb958b451872ce4a7987821533c2f49
treeffa2e335184c0704fc23b9ef391bde749d09b285
parentd7e2ebe7e73105766a854f4f0e3a5c509fd0e82a
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.
gdb/ChangeLog
gdb/nat/x86-dregs.c