sim/ppc: Fix check for --sysroot= option
authorJoel Brobecker <brobecker@gnat.com>
Thu, 9 Jun 2011 14:21:43 +0000 (14:21 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Thu, 9 Jun 2011 14:21:43 +0000 (14:21 +0000)
commit94e4274dc0e36cc3c3927e09f7e8ca41b39a8dd7
tree7b47d718c7ea0009cdccadedadef2b99ddc72c15
parent807b48afa090466f63ed75e4af9b5eaabd338a66
sim/ppc: Fix check for --sysroot= option

Fixes an error reported by Tristan and which can be evidenced by
doing:

        % powerpc-elf-gdb
        (gdb) target sim --sysroot=var
        Invalid option: --sysroot=/var
        [...]

sim/ppc/ChangeLog:

        * psim.c (psim_options): Fix length of comparison when checking
        for --sysroot= option.
sim/ppc/ChangeLog
sim/ppc/psim.c