1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

Bug 576058: Fix traditional memory rendering byte ordering

Change-Id: Ie942a36ebd9d728c4f1673a6e5122b296f428dd2
This commit is contained in:
John Dallaway 2021-09-17 12:21:28 +01:00
parent 525f801293
commit 327c3c7116
2 changed files with 4 additions and 3 deletions

View file

@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.cdt.debug.ui.memory.traditional;singleton:=true
Bundle-Version: 1.6.100.qualifier
Bundle-Version: 1.6.200.qualifier
Bundle-Localization: plugin
Require-Bundle: org.eclipse.debug.core,
org.eclipse.debug.ui,

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2006, 2016 Wind River Systems, Inc. and others.
* Copyright (c) 2006, 2021 Wind River Systems, Inc. and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@ -13,6 +13,7 @@
* Alvaro Sanchez-Leon (Ericsson AB) - [Memory] Support 16 bit addressable size (Bug 426730)
* Ling Wang (Silicon Laboratories) - Honor start address (Bug 414519)
* Teodor Madan (Freescale) - Fix scrolling for memory spaces with 64-bit address
* John Dallaway - Fix byte ordering when addressableSize != 1 (Bug 576058)
*******************************************************************************/
package org.eclipse.cdt.debug.ui.memory.traditional;
@ -836,7 +837,7 @@ public class Rendering extends Composite implements IDebugEventSetListener {
for (int unit = 0; unit < units; unit++) {
for (int unitbyte = 0; unitbyte < unitSize; unitbyte++) {
cachedBytesAsByteSequence[unit * unitSize + unitbyte] = cachedBytes[unit * unitSize
+ unitSize - unitbyte];
+ unitSize - unitbyte - 1];
}
}
cachedBytes = cachedBytesAsByteSequence;