• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Shell GDB - Dwarf Error

balanga

Daemon

Thanks: 62
Messages: 1,993

#1
My first steps with GDB are not being very fruitful...
Bash:
root@FreeBSD:~/projects/kwboot # gdb kwboot

GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in module /root/projects/kwboot/kwboot]

(gdb) start
Undefined command: "start".  Try "help".
(gdb) step
The program is not being run.
(gdb) quit
Anyone know what this Dwarf Error is?

I'm using the built-in version of gdb. Should I use one from ports/pkgs?
 

balanga

Daemon

Thanks: 62
Messages: 1,993

#2
It seems like I'm using the built in version of GDB which apparently should not be used...

Having installed the gdb pkg, how do I make sure I get the pkg version when I just run gdb from the command line?
 

balanga

Daemon

Thanks: 62
Messages: 1,993

#3
I just wanted to run gdb from within emacs - not sure what sort of tie up there is between them...

Eventually decided, and I know it's not ideal, to create a shell script called gdb which invokes /usr/local/bin/gdb and stick it in /sbin.
 
Top