Update of /cvsroot/ups/ups/ups
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv19083/ups
Modified Files:
obj_bpt.c
Log Message:
If a breakpoint is marked as need initialisation and it has references
to functions in the breakpoint code then make sure we recompile the
code in case the function has moved in memory.
Index: obj_bpt.c
===================================================================
RCS file: /cvsroot/ups/ups/ups/obj_bpt.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** obj_bpt.c 21 Jun 2006 16:25:27 -0000 1.6
--- obj_bpt.c 22 Nov 2007 15:37:28 -0000 1.7
***************
*** 1633,1636 ****
--- 1633,1640 ----
if (bd->data_needs_initialising) {
+ if (bd->code_has_func_calls && bd->machine && bd->parse_id) {
+ ci_free_machine(bd->machine);
+ bd->machine = recompile_code(bd->parse_id, (char *)NULL);
+ }
ci_initialise_machine(bd->machine, TRUE, FALSE,
(char **)NULL, (char **)NULL);
|