🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #10202

gdb 3.5 question

#10202
From: James Van Artsdalen
Date: Mon, 12 Mar 1990 22:57
7 lines
1104 bytes
How do I tell gdb to set argv[0] to just "-bash"?  gdb normally
inserts the entire path into argv[0].  Also, in emacs using "M-x gdb
RET -bash" to debug a program named "-bash", the elisp doesn't insert
a -- to tell gdb that the actual filename has a leading dash.
--
James R. Van Artsdalen          james@raid.dell.com       "Live Free or Die"
Dell Computer Corporation  9505 Arboretum Blvd Austin TX 78759  512-338-8789
Technical Details
Message-ID: <2920@uudell.dell.com>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!bu.edu!spdcc!snorkelwacker!apple!usc!cs.utexas.edu!milano!uudell!raid.dell.com!james

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5053,98130275e38a243b,start
X-Google-Attributes: gidf5053,public
X-Google-ArrivalTime: 1990-03-12 14:57:01 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!bu.edu!spdcc!snorkelwacker!apple!usc!cs.utexas.edu!milano!uudell!raid.dell.com!james
From: james@raid.dell.com (James Van Artsdalen)
Newsgroups: gnu.gdb.bug
Subject: gdb 3.5 question
Keywords: SysVr3.2 i386
Message-ID: <2920@uudell.dell.com>
Date: 12 Mar 90 22:57:01 GMT
Sender: news@uudell.dell.com
Reply-To: james@raid.dell.com (James Van Artsdalen)
Distribution: gnu
Organization: Institute for Applied Cosmology
Lines: 7
Posted: Mon Mar 12 23:57:01 1990