* stacktrace.cc (_Jv_StackTrace::UnwindTraceFn): Fix typo in newLength
assignment. Cast operands of compare to function pointer type.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103325
138bc75d-0d04-0410-961f-
82ee72b054a4
+2005-08-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
+
+ PR libgcj/23507
+ * stacktrace.cc (_Jv_StackTrace::UnwindTraceFn): Fix typo in newLength
+ assignment. Cast operands of compare to function pointer type.
+
2005-08-21 Tom Tromey <tromey@redhat.com>
* HACKING: Updated for hacking classpath in libgcj.
2005-08-21 Tom Tromey <tromey@redhat.com>
* HACKING: Updated for hacking classpath in libgcj.
// Check if the trace buffer needs to be extended.
if (pos == state->length)
{
// Check if the trace buffer needs to be extended.
if (pos == state->length)
{
- int newLength = state->length *= 2;
+ int newLength = state->length * 2;
void *newFrames = _Jv_AllocBytes (newLength * sizeof(_Jv_StackFrame));
memcpy (newFrames, state->frames, state->length * sizeof(_Jv_StackFrame));
state->frames = (_Jv_StackFrame *) newFrames;
void *newFrames = _Jv_AllocBytes (newLength * sizeof(_Jv_StackFrame));
memcpy (newFrames, state->frames, state->length * sizeof(_Jv_StackFrame));
state->frames = (_Jv_StackFrame *) newFrames;
// correspondance between call frames in the interpreted stack and occurances
// of _Jv_InterpMethod::run() on the native stack.
#ifdef INTERPRETER
// correspondance between call frames in the interpreted stack and occurances
// of _Jv_InterpMethod::run() on the native stack.
#ifdef INTERPRETER
- if (func_addr == (_Unwind_Ptr) &_Jv_InterpMethod::run)
+ if ((void (*)(void)) func_addr == (void (*)(void)) &_Jv_InterpMethod::run)
{
state->frames[pos].type = frame_interpreter;
state->frames[pos].interp.meth = state->interp_frame->self;
{
state->frames[pos].type = frame_interpreter;
state->frames[pos].interp.meth = state->interp_frame->self;