NetBSD Problem Report #7711
Received: (qmail 21635 invoked from network); 5 Jun 1999 13:40:54 -0000
Message-Id: <199906051340.XAA18467@sibyl.chez-dall.org.au>
Date: Sat, 5 Jun 1999 23:10:39 +0930 (CST)
From: Ian Dall <Ian.Dall@dsto.defence.gov.au>
Reply-To: Ian.Dall@dsto.defence.gov.au
To: gnats-bugs@gnats.netbsd.org
Subject: gdb does not do tracebacks for pc532
X-Send-Pr-Version: 3.95
>Number: 7711
>Category: port-pc532
>Synopsis: gdb does not do tracebacks for pc532
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: port-pc532-maintainer
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jun 05 06:50:00 +0000 1999
>Closed-Date: Sun Jun 06 19:52:29 +0000 1999
>Last-Modified: Sun Jun 06 19:54:19 +0000 1999
>Originator: Ian Dall
>Release: <NetBSD-current source date>1.4C
>Organization:
>Environment:
System: NetBSD sibyl.chez-dall.org.au 1.4C NetBSD 1.4C (SIBYL) #1: Tue Jun 1 15:34:02 CST 1999 ian@sibyl.chez-dall.org.au:/usr3/netbsd-1.2/lsrc/sys/arch/pc532/compile/SIBYL pc532
>Description:
gdb does not do tracebacks for pc532
>How-To-Repeat:
Run gdb, attach to a process, type bt. Note that only the current frame is shown.
>Fix:
The problem arises due to doing a signed comparison of frame addresses when unsigned
comparisons should be used. A patch follows.
*** /usr3/netbsd-1.2/src/gnu/dist/gdb/config/ns32k/tm-nbsd.h Thu Feb 11 22:43:13 1999
--- tm-nbsd.h Sat Jun 5 00:01:52 1999
***************
*** 41,47 ****
#define FRAME_SAVED_PC(FRAME) \
(((FRAME)->signal_handler_caller \
? sigtramp_saved_pc (FRAME) \
! : read_memory_integer ((FRAME)->frame + 4, 4)) \
)
#undef FRAME_NUM_ARGS
--- 41,47 ----
#define FRAME_SAVED_PC(FRAME) \
(((FRAME)->signal_handler_caller \
? sigtramp_saved_pc (FRAME) \
! : read_memory_unsigned_integer ((FRAME)->frame + 4, 4)) \
)
#undef FRAME_NUM_ARGS
***************
*** 49,56 ****
#undef FRAME_CHAIN
#define FRAME_CHAIN(thisframe) \
! (read_memory_integer ((thisframe)->frame, 4) > (thisframe)->frame ? \
! read_memory_integer ((thisframe)->frame, 4) : 0)
#define FRAME_CHAIN_VALID(chain, thisframe)\
((chain) != 0\
--- 49,56 ----
#undef FRAME_CHAIN
#define FRAME_CHAIN(thisframe) \
! (read_memory_unsigned_integer ((thisframe)->frame, 4) > (thisframe)->frame ? \
! read_memory_unsigned_integer ((thisframe)->frame, 4) : 0)
#define FRAME_CHAIN_VALID(chain, thisframe)\
((chain) != 0\
***************
*** 98,105 ****
#undef FRAME_CHAIN
#define FRAME_CHAIN(thisframe) \
! (read_memory_integer ((thisframe)->frame, 4) > (thisframe)->frame ? \
! read_memory_integer ((thisframe)->frame, 4) : 0)
#undef FRAME_CHAIN_VALID
#define FRAME_CHAIN_VALID(chain, thisframe) \
--- 98,105 ----
#undef FRAME_CHAIN
#define FRAME_CHAIN(thisframe) \
! (read_memory_unsigned_integer ((thisframe)->frame, 4) > (thisframe)->frame ? \
! read_memory_unsigned_integer ((thisframe)->frame, 4) : 0)
#undef FRAME_CHAIN_VALID
#define FRAME_CHAIN_VALID(chain, thisframe) \
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: matthias
State-Changed-When: Sun Jun 6 12:52:29 PDT 1999
State-Changed-Why:
Patch from Ian Dall applied
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.