[gvd-devel] Gvd cant use dbx

Carl Jolly Carl_Jolly@notes.teradyne.com
Mon, 26 Mar 2001 11:13:08 -0600


Following is output of gvd on commandline as program fails to even start completely
after dbx decides it sees an option that it can't handle. Some how you code to
start the debugger gives an extra n option somewhere.  your example in the 
documentation gives a -nx to gdb maybe this is a default in your code. I
got the same result no matter how I invoked gvd:
gvd --debugger dbx --dargs -c a.out
gvd --debugger dbx

I would use gdb but unfortunately I am forced to use the Sun compiler and gdb
does not see the symbols.

Gdk-WARNING **: shmget failed!
Bug detected in GVD
Please report with the contents of the file /home/jollyc/.gvd/log
the following information:
Version: 1.1.0
Date: 20010307
Target: sparc-sun-solaris2.5.1
Exception name: CONSTRAINT_ERROR
Message: debugger.adb:513
Call stack traceback locations:
0x1d96a4 0x297d38 0x289ae0 0x219db0 0xf16b4 0xef4bc

and a description as complete as possible (including sources) to reproduce the b
ug
log file:

[1] <- "dbx: unknown option letter: 'n' in "/opt/SUNWspro/bin/dbx"\n"
[1] <- "usage: dbx [options] a.out [core_or_PID]\n"
[1] <- "    supported options:\n"
[1] <- "\t-B              # Suppress everything and just run under dbx\n"
[1] <- "\t-c <cmds>       # Execute <cmds> before prompting for input\n"
[1] <- "\t-C              # Preload the Run Time Checking library\n"
[1] <- "\t-d              # Used with -s, removes <file> after reading\n"
[1] <- "\t-e              # Echo each command before execution\n"
[1] <- "\t-F              # Enable Cfront demangling\n"
[1] <- "\t-h              # Print the usage help on dbx\n"
[1] <- "\t-I <dir>        # Add <dir> to `pathmap' set, See `help pathmap'\n"
[1] <- "\t-k              # Save and restore keyboard translation state\n"
[1] <- "\t-q              # Suppress messages about reading stabs\n"
[1] <- "\t-r              # Run program; if program exits normally, exit\n"
[1] <- "\t-R              # Print the readme file on dbx\n"
[1] <- "\t-s <file>       # Use <file> instead of .dbxrc or .dbxinit\n"
[1] <- "\t-S              # Suppress reading of site-specific init file\n"
[1] <- "\t-V              # Print the version of dbx\n"
[1] <- "\t-w <n>          # Skip <n> frames on `where' command\n"
[1] <- "\t--              # Marks the end of the option list\n"
[1] <- "    For more help, use the 'help' command in dbx\n"
[1] <- "dbx: option usage error\n"