GNU Binutils with patches for OS216
修订版 | 0b1553bcdd4db0c7ddb09f01cd281917447d5769 (tree) |
---|---|
时间 | 2008-09-05 21:57:16 |
作者 | Ulrich Weigand <uweigand@de.i...> |
Commiter | Ulrich Weigand |
* 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.
@@ -1,5 +1,14 @@ | ||
1 | 1 | 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com> |
2 | 2 | |
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 | + | |
3 | 12 | * rs6000-tdep.c (rs6000_gdbarch_init): Setup displaced stepping |
4 | 13 | *before* calling gdbarch_init_osabi. |
5 | 14 | (rs6000_aix_init_osabi): Disable displaced stepping. |
@@ -743,14 +743,14 @@ gdbarch_dump (struct gdbarch *gdbarch, struct ui_file *file) | ||
743 | 743 | "gdbarch_dump: core_xfer_shared_libraries = <0x%lx>\n", |
744 | 744 | (long) gdbarch->core_xfer_shared_libraries); |
745 | 745 | 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)); | |
748 | 748 | fprintf_unfiltered (file, |
749 | 749 | "gdbarch_dump: deprecated_fp_regnum = %s\n", |
750 | 750 | plongest (gdbarch->deprecated_fp_regnum)); |
751 | 751 | 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)); | |
754 | 754 | fprintf_unfiltered (file, |
755 | 755 | "gdbarch_dump: gdbarch_displaced_step_copy_insn_p() = %d\n", |
756 | 756 | gdbarch_displaced_step_copy_insn_p (gdbarch)); |
@@ -818,8 +818,8 @@ gdbarch_dump (struct gdbarch *gdbarch, struct ui_file *file) | ||
818 | 818 | "gdbarch_dump: frame_align = <0x%lx>\n", |
819 | 819 | (long) gdbarch->frame_align); |
820 | 820 | 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)); | |
823 | 823 | fprintf_unfiltered (file, |
824 | 824 | "gdbarch_dump: gdbarch_frame_num_args_p() = %d\n", |
825 | 825 | gdbarch_frame_num_args_p (gdbarch)); |
@@ -318,8 +318,8 @@ do | ||
318 | 318 | # An optional expression that convers MEMBER to a value |
319 | 319 | # suitable for formatting using %s. |
320 | 320 | |
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. | |
323 | 323 | |
324 | 324 | garbage_at_eol ) : ;; |
325 | 325 |
@@ -1474,8 +1474,8 @@ do | ||
1474 | 1474 | # It is a variable |
1475 | 1475 | case "${print}:${returntype}" in |
1476 | 1476 | :CORE_ADDR ) |
1477 | - fmt="0x%s" | |
1478 | - print="paddr_nz (gdbarch->${function})" | |
1477 | + fmt="%s" | |
1478 | + print="core_addr_to_string_nz (gdbarch->${function})" | |
1479 | 1479 | ;; |
1480 | 1480 | :* ) |
1481 | 1481 | fmt="%s" |
@@ -1168,12 +1168,13 @@ target_xfer_partial (struct target_ops *ops, | ||
1168 | 1168 | const unsigned char *myaddr = NULL; |
1169 | 1169 | |
1170 | 1170 | 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", | |
1172 | 1172 | ops->to_shortname, |
1173 | 1173 | (int) object, |
1174 | 1174 | (annex ? annex : "(null)"), |
1175 | 1175 | (long) readbuf, (long) writebuf, |
1176 | - paddr_nz (offset), plongest (len), plongest (retval)); | |
1176 | + core_addr_to_string_nz (offset), | |
1177 | + plongest (len), plongest (retval)); | |
1177 | 1178 | |
1178 | 1179 | if (readbuf) |
1179 | 1180 | myaddr = readbuf; |
@@ -2565,8 +2566,8 @@ debug_print_register (const char * func, | ||
2565 | 2566 | if (size <= sizeof (LONGEST)) |
2566 | 2567 | { |
2567 | 2568 | 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)); | |
2570 | 2571 | } |
2571 | 2572 | } |
2572 | 2573 | fprintf_unfiltered (gdb_stdlog, "\n"); |