• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

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

修订版0b1553bcdd4db0c7ddb09f01cd281917447d5769 (tree)
时间2008-09-05 21:57:16
作者Ulrich Weigand <uweigand@de.i...>
CommiterUlrich Weigand

Log Message

* gdbarch.sh (gdbarch_dump): Use core_addr_to_string_nz
instead of paddr_nz.
* gdbarch.c: Regenerate.

* target.c (target_xfer_partial, debug_print_register): Use
core_addr_to_string_nz instead of paddr_nz.

更改概述

差异

--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,14 @@
11 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
22
3+ * gdbarch.sh (gdbarch_dump): Use core_addr_to_string_nz
4+ instead of paddr_nz.
5+ * gdbarch.c: Regenerate.
6+
7+ * target.c (target_xfer_partial, debug_print_register): Use
8+ core_addr_to_string_nz instead of paddr_nz.
9+
10+2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
11+
312 * rs6000-tdep.c (rs6000_gdbarch_init): Setup displaced stepping
413 *before* calling gdbarch_init_osabi.
514 (rs6000_aix_init_osabi): Disable displaced stepping.
--- a/gdb/gdbarch.c
+++ b/gdb/gdbarch.c
@@ -743,14 +743,14 @@ gdbarch_dump (struct gdbarch *gdbarch, struct ui_file *file)
743743 "gdbarch_dump: core_xfer_shared_libraries = <0x%lx>\n",
744744 (long) gdbarch->core_xfer_shared_libraries);
745745 fprintf_unfiltered (file,
746- "gdbarch_dump: decr_pc_after_break = 0x%s\n",
747- paddr_nz (gdbarch->decr_pc_after_break));
746+ "gdbarch_dump: decr_pc_after_break = %s\n",
747+ core_addr_to_string_nz (gdbarch->decr_pc_after_break));
748748 fprintf_unfiltered (file,
749749 "gdbarch_dump: deprecated_fp_regnum = %s\n",
750750 plongest (gdbarch->deprecated_fp_regnum));
751751 fprintf_unfiltered (file,
752- "gdbarch_dump: deprecated_function_start_offset = 0x%s\n",
753- paddr_nz (gdbarch->deprecated_function_start_offset));
752+ "gdbarch_dump: deprecated_function_start_offset = %s\n",
753+ core_addr_to_string_nz (gdbarch->deprecated_function_start_offset));
754754 fprintf_unfiltered (file,
755755 "gdbarch_dump: gdbarch_displaced_step_copy_insn_p() = %d\n",
756756 gdbarch_displaced_step_copy_insn_p (gdbarch));
@@ -818,8 +818,8 @@ gdbarch_dump (struct gdbarch *gdbarch, struct ui_file *file)
818818 "gdbarch_dump: frame_align = <0x%lx>\n",
819819 (long) gdbarch->frame_align);
820820 fprintf_unfiltered (file,
821- "gdbarch_dump: frame_args_skip = 0x%s\n",
822- paddr_nz (gdbarch->frame_args_skip));
821+ "gdbarch_dump: frame_args_skip = %s\n",
822+ core_addr_to_string_nz (gdbarch->frame_args_skip));
823823 fprintf_unfiltered (file,
824824 "gdbarch_dump: gdbarch_frame_num_args_p() = %d\n",
825825 gdbarch_frame_num_args_p (gdbarch));
--- a/gdb/gdbarch.sh
+++ b/gdb/gdbarch.sh
@@ -318,8 +318,8 @@ do
318318 # An optional expression that convers MEMBER to a value
319319 # suitable for formatting using %s.
320320
321- # If PRINT is empty, paddr_nz (for CORE_ADDR) or plongest
322- # (anything else) is used.
321+ # If PRINT is empty, core_addr_to_string_nz (for CORE_ADDR)
322+ # or plongest (anything else) is used.
323323
324324 garbage_at_eol ) : ;;
325325
@@ -1474,8 +1474,8 @@ do
14741474 # It is a variable
14751475 case "${print}:${returntype}" in
14761476 :CORE_ADDR )
1477- fmt="0x%s"
1478- print="paddr_nz (gdbarch->${function})"
1477+ fmt="%s"
1478+ print="core_addr_to_string_nz (gdbarch->${function})"
14791479 ;;
14801480 :* )
14811481 fmt="%s"
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -1168,12 +1168,13 @@ target_xfer_partial (struct target_ops *ops,
11681168 const unsigned char *myaddr = NULL;
11691169
11701170 fprintf_unfiltered (gdb_stdlog,
1171- "%s:target_xfer_partial (%d, %s, 0x%lx, 0x%lx, 0x%s, %s) = %s",
1171+ "%s:target_xfer_partial (%d, %s, 0x%lx, 0x%lx, %s, %s) = %s",
11721172 ops->to_shortname,
11731173 (int) object,
11741174 (annex ? annex : "(null)"),
11751175 (long) readbuf, (long) writebuf,
1176- paddr_nz (offset), plongest (len), plongest (retval));
1176+ core_addr_to_string_nz (offset),
1177+ plongest (len), plongest (retval));
11771178
11781179 if (readbuf)
11791180 myaddr = readbuf;
@@ -2565,8 +2566,8 @@ debug_print_register (const char * func,
25652566 if (size <= sizeof (LONGEST))
25662567 {
25672568 ULONGEST val = extract_unsigned_integer (buf, size);
2568- fprintf_unfiltered (gdb_stdlog, " 0x%s %s",
2569- paddr_nz (val), plongest (val));
2569+ fprintf_unfiltered (gdb_stdlog, " %s %s",
2570+ core_addr_to_string_nz (val), plongest (val));
25702571 }
25712572 }
25722573 fprintf_unfiltered (gdb_stdlog, "\n");