🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #302

Functions

#302
From: Richard Evans
Date: Thu, 19 Oct 1989 17:09
34 lines
2015 bytes
SUN4/OS4 GDB version 3.1
------------------------

This is not really a bug but a problem I am having.  I am trying to use gdb
with a compiler developed here for a strange language (BCPL) which does not
use external names for functions - most calls go via a jump table. 

This causes a problem when trying to use the 'next' command to step over
a call to a library routine.  The compiler declares the library name in the
object file with type N_TEXT (without the N_EXT bit) and so GDB does not
record it in its 'misc_functions' structure.  As a consequence, trying to
'next' over the call results in a stop at the function entry (because stop_pc
does not equal stop_func_start in 'wait_for_inferior'.

I just wonder whether N_TEXT names could be recorded even without N_EXT?

Also, I have some names declared in a BCOMM/ECOMM block.  GDB does not seem
to recognise these - is this because they are not C-like objects?

Here is a selection of nm -pa output describing these common names:

00000000 - 00 0000 BCOMM BCPL_GV
00000000 - 00 0004  GSYM globalsize:V1
00000004 - 00 0004  GSYM start:V1
00000008 - 00 0004  GSYM stop:V1
00000014 - 00 0004  GSYM result2:V1
000039d8 - 00 0000 ECOMM BCPL_GV

-------------------------------------------------------------------------------
Richard Evans			 	Telephone : (+44) 223 462121   
Topexpress Ltd			 	Telex     : 817911 Topexp G 
Poseidon House, Castle Park	 	Fax       : (+44) 223 315057   
Cambridge, CB3 0RD, UK		 	E-Mail    : rde@uk.co.topexp
-------------------------------------------------------------------------------
Technical Details
Message-ID: <771.8910191709@igor.topexp.co.uk>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!gatech!tut.cis.ohio-state.edu!NSFNET-RELAY.AC.UK!rde%topexpress.co.uk

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!gatech!tut.cis.ohio-state.edu!NSFNET-RELAY.AC.UK!rde%topexpress.co.uk
From: rde%topexpress.co.uk@NSFNET-RELAY.AC.UK (Richard Evans)
Newsgroups: gnu.gdb.bug
Subject: Functions
Message-ID: <771.8910191709@igor.topexp.co.uk>
Date: 19 Oct 89 17:09:32 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 34