GNU Binutils with patches for OS216
修订版 | 1b19eeaa1e7afee1d728859dcfd6f0629b7a33e0 (tree) |
---|---|
时间 | 2002-08-29 12:25:04 |
作者 | Andrew Cagney <cagney@redh...> |
Commiter | Andrew Cagney |
2002-08-28 Andrew Cagney <ac131313@redhat.com>
* infcmd.c (registers_info): Pass start, instead of addr_exp, to
target_map_name_to_register.
(default_print_registers_info): Use all_reggroup and
general_reggroup to decide if all, general registers should be
displayed.
* i386-tdep.c (i386_register_reggroup_p): Move mxcsr to SSE group.
@@ -1,3 +1,12 @@ | ||
1 | +2002-08-28 Andrew Cagney <ac131313@redhat.com> | |
2 | + | |
3 | + * infcmd.c (registers_info): Pass start, instead of addr_exp, to | |
4 | + target_map_name_to_register. | |
5 | + (default_print_registers_info): Use all_reggroup and | |
6 | + general_reggroup to decide if all, general registers should be | |
7 | + displayed. | |
8 | + * i386-tdep.c (i386_register_reggroup_p): Move mxcsr to SSE group. | |
9 | + | |
1 | 10 | 2002-08-26 Andrew Cagney <ac131313@redhat.com> |
2 | 11 | |
3 | 12 | * arch-utils.c (next_raw_register): Rename next_cooked_register. |
@@ -1445,11 +1445,11 @@ i386_register_reggroup_p (struct gdbarch *gdbarch, int regnum, | ||
1445 | 1445 | { |
1446 | 1446 | if (group == all_reggroup) |
1447 | 1447 | return 1; |
1448 | - if (mmx_regnum_p (regnum) || regnum == MXCSR_REGNUM) | |
1448 | + if (mmx_regnum_p (regnum)) | |
1449 | 1449 | return (group == i368_mmx_reggroup || group == vector_reggroup); |
1450 | 1450 | if (FP_REGNUM_P (regnum) || FPC_REGNUM_P (regnum)) |
1451 | 1451 | return (group == float_reggroup || group == all_reggroup); |
1452 | - if (SSE_REGNUM_P (regnum)) | |
1452 | + if (SSE_REGNUM_P (regnum) || regnum == MXCSR_REGNUM) | |
1453 | 1453 | return (group == i368_sse_reggroup || group == vector_reggroup); |
1454 | 1454 | if (group == general_reggroup) |
1455 | 1455 | return 1; |
@@ -1586,13 +1586,12 @@ default_print_registers_info (struct gdbarch *gdbarch, | ||
1586 | 1586 | specific reg. */ |
1587 | 1587 | if (regnum == -1) |
1588 | 1588 | { |
1589 | - if (!print_all) | |
1590 | - { | |
1591 | - if (gdbarch_register_reggroup_p (gdbarch, i, float_reggroup)) | |
1592 | - continue; | |
1593 | - if (gdbarch_register_reggroup_p (gdbarch, i, vector_reggroup)) | |
1594 | - continue; | |
1595 | - } | |
1589 | + if (print_all && !gdbarch_register_reggroup_p (gdbarch, i, | |
1590 | + all_reggroup)) | |
1591 | + continue; | |
1592 | + if (!print_all && !gdbarch_register_reggroup_p (gdbarch, i, | |
1593 | + general_reggroup)) | |
1594 | + continue; | |
1596 | 1595 | } |
1597 | 1596 | else |
1598 | 1597 | { |
@@ -1696,7 +1695,7 @@ registers_info (char *addr_exp, int fpregs) | ||
1696 | 1695 | |
1697 | 1696 | while (*addr_exp != '\0') |
1698 | 1697 | { |
1699 | - const char *start; | |
1698 | + char *start; | |
1700 | 1699 | const char *end; |
1701 | 1700 | /* Keep skipping leading white space until something interesting |
1702 | 1701 | is found. */ |
@@ -1722,7 +1721,7 @@ registers_info (char *addr_exp, int fpregs) | ||
1722 | 1721 | |
1723 | 1722 | /* A register name? */ |
1724 | 1723 | { |
1725 | - int regnum = target_map_name_to_register (addr_exp, end - start); | |
1724 | + int regnum = target_map_name_to_register (start, end - start); | |
1726 | 1725 | if (regnum >= 0) |
1727 | 1726 | { |
1728 | 1727 | gdbarch_print_registers_info (current_gdbarch, gdb_stdout, |