Branch: Tag:

2004-03-12

2004-03-12 21:58:28 by Martin Stjernholm <mast@lysator.liu.se>

Separated the return address from Pike_fp->pc. pc always points to the
current opcode now, which makes everything a lot simpler. This fixes
off-by-one bugs that could occur for the innermost line in backtraces when
machine code is used.

Rev: src/builtin.cmod:1.108
Rev: src/interpret.h:1.124
Rev: src/interpret_functions.h:1.127

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: interpret.h,v 1.123 2003/12/09 17:44:59 grubba Exp $ + || $Id: interpret.h,v 1.124 2004/03/12 21:58:28 mast Exp $   */      #ifndef INTERPRET_H
59:    INT16 ident;    struct pike_frame *next;    struct pike_frame *scope; -  PIKE_OPCODE_T *pc; /* Program counter of last/next opcode. */ +  PIKE_OPCODE_T *pc; /* Address of current opcode. */ +  PIKE_OPCODE_T *return_addr; /* Address of opcode to continue at after call. */    struct svalue *locals; /* Start of local variables. */       /* This is <= locals, and this is where the