TIP: Click on subject to list as thread! ANSI
echo: 80xxx
to: JERRY COFFIN
from: JAMES VAHN
date: 1997-07-25 07:53:00
subject: Re: sat.s (Linux-Asm)

> Well, if you had reasonable video board, I'd reccomend using xgdb and
> displaying the help in another window at the same time, but if curses is
> causing you problems, I doubt you want to even think of trying to get an
> X server running.
As far is X goes, it runs fine on the Hercules- even Netscape. :-)  As far
as ncurses goes, it's just little problems like getting proper definitions
for things and fiddling with termcap gizmos. X was easy in comparison, but
I'm still prefering the good ol' command line though.
I did find the magic command that might provide a big arrow to the problem
once I get symbols: gdb sat core
> Hmmm...as?  or is that really gas?  In any case, ld certainly normally
> puts debugging symbols in the executable by default, and you normally
> have to specify --strip-all or --strip-debug to get rid of symbols.  You
> _might_ want to try running ld directly instead of via gcc to see if you
> get symbols that way - I s'pose your copy of gcc might have been setup
> to leave symbols out for some reason or other.
It's gas but the filename must've been changed (GNU/Debian Linux). I tried
the following as a Makefile, with dismal results:
all: 	
	gcc -E sat.S -o sat.s
	as sat.s -o sat.o
	ld -e main sat.o -o sat -lncurses  
Lots of "undefined references".
Normally I have to strip symbols out with "strip ".	
> I should warn you that while I've used gdb on a couple of different
> systems, I haven't done it on Linux, so things _may_ be a bit different
> for you. 
Your help is appreciated nonetheless, many thanks. 
--- ifmail-tx (i386 Linux)
---------------
* Origin: 300 miles East of Seattle, WA (1:346/15.1)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.