• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

修訂1b19eeaa1e7afee1d728859dcfd6f0629b7a33e0 (tree)
時間2002-08-29 12:25:04
作者Andrew Cagney <cagney@redh...>
CommiterAndrew Cagney

Log Message

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.

Change Summary

差異

--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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+
110 2002-08-26 Andrew Cagney <ac131313@redhat.com>
211
312 * arch-utils.c (next_raw_register): Rename next_cooked_register.
--- a/gdb/i386-tdep.c
+++ b/gdb/i386-tdep.c
@@ -1445,11 +1445,11 @@ i386_register_reggroup_p (struct gdbarch *gdbarch, int regnum,
14451445 {
14461446 if (group == all_reggroup)
14471447 return 1;
1448- if (mmx_regnum_p (regnum) || regnum == MXCSR_REGNUM)
1448+ if (mmx_regnum_p (regnum))
14491449 return (group == i368_mmx_reggroup || group == vector_reggroup);
14501450 if (FP_REGNUM_P (regnum) || FPC_REGNUM_P (regnum))
14511451 return (group == float_reggroup || group == all_reggroup);
1452- if (SSE_REGNUM_P (regnum))
1452+ if (SSE_REGNUM_P (regnum) || regnum == MXCSR_REGNUM)
14531453 return (group == i368_sse_reggroup || group == vector_reggroup);
14541454 if (group == general_reggroup)
14551455 return 1;
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -1586,13 +1586,12 @@ default_print_registers_info (struct gdbarch *gdbarch,
15861586 specific reg. */
15871587 if (regnum == -1)
15881588 {
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;
15961595 }
15971596 else
15981597 {
@@ -1696,7 +1695,7 @@ registers_info (char *addr_exp, int fpregs)
16961695
16971696 while (*addr_exp != '\0')
16981697 {
1699- const char *start;
1698+ char *start;
17001699 const char *end;
17011700 /* Keep skipping leading white space until something interesting
17021701 is found. */
@@ -1722,7 +1721,7 @@ registers_info (char *addr_exp, int fpregs)
17221721
17231722 /* A register name? */
17241723 {
1725- int regnum = target_map_name_to_register (addr_exp, end - start);
1724+ int regnum = target_map_name_to_register (start, end - start);
17261725 if (regnum >= 0)
17271726 {
17281727 gdbarch_print_registers_info (current_gdbarch, gdb_stdout,