Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [patch] Use disassemble_info to get at the endianness
@ 2008-05-19 15:17 Markus Deuling
  2008-05-20 16:56 ` [patch] Use disassemble_info to get@the endianness Ulrich Weigand
  0 siblings, 1 reply; 3+ messages in thread
From: Markus Deuling @ 2008-05-19 15:17 UTC (permalink / raw)
  To: GDB Patches; +Cc: Ulrich Weigand

[-- Attachment #1: Type: text/plain, Size: 360 bytes --]

Hi,

this patch gets rid of another current_gdbarch by getting the endianess information from
disassemble_info in score-tdep.

Ok ?

ChangeLog:

	* score-tdep.c (score_print_insn): Get the current endianness from
	disassemble_info instead of gdbarch_byte_order.

Regards,
Markus

-- 
  Markus Deuling
  GNU Toolchain for Linux on Cell BE
  deuling@de.ibm.com


[-- Attachment #2: diff-score --]
[-- Type: text/plain, Size: 531 bytes --]

diff -urpN src/gdb/score-tdep.c dev/gdb/score-tdep.c
--- src/gdb/score-tdep.c	2008-04-24 05:51:39.000000000 +0200
+++ dev/gdb/score-tdep.c	2008-05-16 08:20:49.000000000 +0200
@@ -314,7 +314,7 @@ score_register_sim_regno (struct gdbarch
 static int
 score_print_insn (bfd_vma memaddr, struct disassemble_info *info)
 {
-  if (gdbarch_byte_order (current_gdbarch) == BFD_ENDIAN_BIG)
+  if (info->endian == BFD_ENDIAN_BIG)
     return print_insn_big_score (memaddr, info);
   else
     return print_insn_little_score (memaddr, info);

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-05-21  4:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-19 15:17 [patch] Use disassemble_info to get at the endianness Markus Deuling
2008-05-20 16:56 ` [patch] Use disassemble_info to get@the endianness Ulrich Weigand
2008-05-21 15:17   ` Markus Deuling

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox