Module Name:    src
Committed By:   rin
Date:           Thu Aug 17 05:02:56 UTC 2023

Modified Files:
        src/external/gpl3/gdb/dist/gdb: arm-netbsd-tdep.c

Log Message:
gdb/arm: Fix byte-order for trap insns on armv[67]eb, lost during merge

Add comment also.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gdb/dist/gdb/arm-netbsd-tdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gdb/dist/gdb/arm-netbsd-tdep.c
diff -u src/external/gpl3/gdb/dist/gdb/arm-netbsd-tdep.c:1.2 src/external/gpl3/gdb/dist/gdb/arm-netbsd-tdep.c:1.3
--- src/external/gpl3/gdb/dist/gdb/arm-netbsd-tdep.c:1.2	Thu Aug 17 04:58:58 2023
+++ src/external/gpl3/gdb/dist/gdb/arm-netbsd-tdep.c	Thu Aug 17 05:02:56 2023
@@ -117,7 +117,9 @@ arm_netbsd_init_abi_common (struct gdbar
   arm_gdbarch_tdep *tdep = gdbarch_tdep<arm_gdbarch_tdep> (gdbarch);
 
   tdep->lowest_pc = 0x8000;
-  switch (info.byte_order)
+  /* For armv[67]eb (BE8), insns are encoded in little-endian.
+     Therefore, we cannot use info.byte_order here.  */
+  switch (info.byte_order_for_code)
     {
     case BFD_ENDIAN_LITTLE:
       tdep->arm_breakpoint = arm_nbsd_arm_le_breakpoint;

Reply via email to