🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #50516

Backtracing through Stack Frames

#50516
From: Woody Rowand
Date: Fri, 17 Sep 1993 22:23
25 lines
1523 bytes
I'm using gdb-4.7 on a Sun workstation to debug a remote system (via
the serial port) and have been having trouble with the backtrace
function ('bt' or 'where').  I would like to have the backtrace stop
when it reaches my 'main' function or my 'process_start' function.  I
have looked through the gdb source files and there is some information
about redefining the FRAME_CHAIN_VALID macro so that it uses the
functions inside_main_func and inside_entry_func.

My question is, how do I go about initializing the variables:

	symfile_objfile ->
			   entry_func_lowpc
			   entry_func_highpc
                           main_func_lowpc
                           main_func_highpc

What is the best way to get the starting and ending addresses of my
'main' and 'process_start' functions out of the symbol table?

I would appreciate any help.


Regards,

Woody  (woody@istwok.ods.com)
Technical Details
Message-ID: <1993Sep17.222335.3319@ods.com>
Path: arc1-ca.pugleaf.net!gmd.de!urmel.informatik.rwth-aachen.de!news-rhrz!mpifr-bonn.mpg.de!uniol!math.fu-berlin.de!xlink.net!howland.reston.ans.net!usc!cs.utexas.edu!uunet!ods!woody

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,779d4613d982f13c,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-09-17 22:17:27 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!gmd.de!urmel.informatik.rwth-aachen.de!news-rhrz!mpifr-bonn.mpg.de!uniol!math.fu-berlin.de!xlink.net!howland.reston.ans.net!usc!cs.utexas.edu!uunet!ods!woody
From: woody@ods.com (Woody Rowand)
Subject: Backtracing through Stack Frames
Message-ID: <1993Sep17.222335.3319@ods.com>
Organization: Optical Data Systems, Inc.
X-Newsreader: TIN [version 1.2 PL1]
Date: Fri, 17 Sep 1993 22:23:35 GMT
Lines: 25