pike.git/
src/
modules/
_Debug/
debug.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2016-09-01
2016-09-01 07:11:50 by Arne Goedeke <el@laramies.com>
0f3431f976769cb37d29e7d1a14b398f69272d96 (
4
lines) (+
2
/-
2
)
[
Show
|
Annotate
]
Branch:
8.1
Debug.get_program_layout: behave as documented
533:
struct svalue key, value; SET_SVAL(key, PIKE_T_INT, NUMBER_NUMBER, integer, 0);
-
/* FIXME: this could overflow.. typewise, at least. */
+
SET_SVAL(value, PIKE_T_INT, NUMBER_NUMBER, integer,
-
PTR_TO_INT(
p->program
+
p->num
_
program
));
+
p->
num_
program
*
sizeof(PIKE
_
OPCODE_T
));
mapping_insert(m, &key, &value); } }