Commit fe9c54f6 authored by rdubner's avatar rdubner
Browse files

Version 4.27.2 Incorporate 0b and 0x changes from commit 50000fdc

parent edccd3d5
......@@ -257,7 +257,7 @@ def Main() :
## The text "Version x.x" has to appear in square brackets. #
## Don't mess with it! #
###########################################################################
SCRIPT_VERSION="[Version 4.27.1]"
SCRIPT_VERSION="[Version 4.27.2]"
show_time = os.environ.get("SHOW_TIME","0")
SHOW_TIME = False
......
......@@ -7,7 +7,7 @@ SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
::## Don't mess with it! #
::###########################################################################
::
set VERSION=[Version 4.27.1]
set VERSION=[Version 4.27.2]
::
::
:: Stupendously useful:
......
......@@ -4,4 +4,4 @@
// On the Unix side, there is scripting trickery to propogate this version
// code into cobcd.py and the names of packages when they are created.
#define VERSION "4.27.1"
#define VERSION "4.27.2"
......@@ -64,7 +64,7 @@ import time
# Version to be printed upon request - Don't mess with it!
# It is updated by a Linux bash script, the text "Version x.x" has to appear in square brackets.
COBCD_VERSION = '[Version 4.27.1]'
COBCD_VERSION = '[Version 4.27.2]'
# This module implements the gdb extension commands like cprint and cwatch
# It is executed by GDB.
......@@ -4880,11 +4880,11 @@ class CPrintWorker():
body = ""
if payload.Refmod:
if GV_ModuleState.current_display_submode == DISPLAY_SUBMODE_BINARY:
body = self.GetDataAsBinary()
if not payload.display_body.startswith('"') or GV_ModuleState.current_display_submode == DISPLAY_SUBMODE_HEX:
body = "0b" + payload.GetDataAsBinary() + ']'
elif not payload.display_body.startswith('"') or GV_ModuleState.current_display_submode == DISPLAY_SUBMODE_HEX:
# The refmod payload is not alphabetic (or the submode is x for hex) and so we are
# going to display the refmodded payload in hex:
body = '['
body = "[0x"
for i in range(len(payload.data)):
# This is a trick. By adding 256 to the byte, we ensure that
# 0, for example, becomes 0x100 instead of 0x0. Thus we can
......
......@@ -395,9 +395,9 @@ cp *
42 : 03 var-tab/FILLER(1) : "1"
43 : 03 var-entry/FILLER : " "
cp/x ws-table(:)
01 WS-TABLE(1:24) : [3132414243444546202020202020202035364d4e4f505152]
01 WS-TABLE(1:24) : [0x3132414243444546202020202020202035364d4e4f505152]
cp/x ws-table(three of nums1:four of nums1)
01 WS-TABLE(3:4) : [41424344]
01 WS-TABLE(3:4) : [0x41424344]
cprint tab-adr-prgm
15 TAB-ADR-PRGM/TAB-ADR-PRGM-ID/TAB-ADR-ELEMENT/T_ADDRESSES : "First---"
cprint tab-adr-prgm(2)
......@@ -436,15 +436,15 @@ cp svalue = 1234
cp svalue
01 svalue : +001234
cp svalue(2:2) = 89
01 svalue(2:2) : [3839]
01 svalue(2:2) : [0x3839]
cp svalue
01 svalue : +684818
cp svalue(2:2) = x'89'
01 svalue(2:2) : [8900]
01 svalue(2:2) : [0x8900]
cp svalue
01 svalue : +978642
cp svalue(2:2) = x'1234'
01 svalue(2:2) : [1234]
01 svalue(2:2) : [0x1234]
cp svalue
01 svalue : +193170
cp svalue = -12345
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment