aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2015-04-10 19:12:48 +0200
committerSverker Eriksson <[email protected]>2015-04-10 19:12:48 +0200
commit9929a1fd151a78247f1d536f2a21843f310a4e3b (patch)
treec8c29c8fe01a0dd34347875111dc7fa483113d2e /erts
parentf54392bc3c811d44cef2b31c20cac9fb11bf38e1 (diff)
downloadotp-9929a1fd151a78247f1d536f2a21843f310a4e3b.tar.gz
otp-9929a1fd151a78247f1d536f2a21843f310a4e3b.tar.bz2
otp-9929a1fd151a78247f1d536f2a21843f310a4e3b.zip
erts: Add etp_the_non_value
for a correct (non)value regardless of build type.
Diffstat (limited to 'erts')
-rw-r--r--erts/emulator/beam/erl_init.c2
-rw-r--r--erts/etc/unix/etp-commands.in8
2 files changed, 4 insertions, 6 deletions
diff --git a/erts/emulator/beam/erl_init.c b/erts/emulator/beam/erl_init.c
index 86d3416423..1346892e29 100644
--- a/erts/emulator/beam/erl_init.c
+++ b/erts/emulator/beam/erl_init.c
@@ -118,6 +118,8 @@ const int etp_big_endian = 1;
#else
const int etp_big_endian = 0;
#endif
+const Eterm etp_the_non_value = THE_NON_VALUE;
+
/*
* Note about VxWorks: All variables must be initialized by executable code,
* not by an initializer. Otherwise a new instance of the emulator will
diff --git a/erts/etc/unix/etp-commands.in b/erts/etc/unix/etp-commands.in
index c117a62a21..ab2c1126df 100644
--- a/erts/etc/unix/etp-commands.in
+++ b/erts/etc/unix/etp-commands.in
@@ -146,14 +146,10 @@ define etp-1
etp-immediate-1 ($arg0)
else
# (($arg0) & 0x3) == 0
- if (($arg0) == 0x0)
+ if (($arg0) == etp_the_non_value)
printf "<the non-value>"
else
- if (($arg0) == 0x4)
- printf "<the non-value debug>"
- else
- etp-cp-1 ($arg0)
- end
+ etp-cp-1 ($arg0)
end
end
end