www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/23/18:08:57

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: rhide/call trace back - small question
Date: Sun, 23 Feb 1997 16:39:49 -0800
Organization: Two pounds of chaos and a pinch of salt
Lines: 32
Message-ID: <3310E355.59ED@cs.com>
References: <330D08FC DOT 4034 AT mbnet DOT mb DOT ca> <330EC4AB DOT 77E1 AT cs DOT com> <330F813E DOT 77E1 AT mbnet DOT mb DOT ca>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp104.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Alex Demko wrote:
> 
> Great, thanks! Also, is there a way to redirect stderr under plain DOS
> (ie. someone who doesn't have djgpp, bash and other such utils
> installed)? Again, rhide does this so maybe it's built into djgpp
> executables (like globbing)

The whole reason the 'redir' utility exists for DJGPP is that standard
COMMAND.COM is incapable of redirecting stderr.  It's just another
wonderful Microsoft "innovation"...  Unless you want to bundle 'redir'
with your programs, the only solution for redirection is to use a
smarter shell, such as 4DOS.

> I know that much :) Can do I the same (symify or something similar) to
> my bombed linux/sunos files (as vi lacks rhide's built in feature)? IE.
> some how use the 'core' file to make a call stack?

As I understand it, Unix-style core files are actually complete dumps of
the program's memory space at the time of the error.  Unix debuggers are
capable of reading this corefile and jumping directly to the point in
the program where the crash occurred.  At least, I know that gdb has
this capability on the one Unix box I used it on.  Try typing "gdb
myprog core" or something similar (I may have the syntax wrong - it's
been a while).

-- 
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I      |   mailto:fighteer AT cs DOT com   |
| God's final message to His Creation: | http://www.cs.com/fighteer |
| "We apologize for the inconvenience."| Fight against proprietary  |
|                      - Douglas Adams | software - support the FSF!|
---------------------------------------------------------------------

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019