After installing gdb 7.11 from the ports tree I could no longer debug in Netbeans. The debugged program would start, I would invoke a scope with a breakpoint, but the environment would never stop or actually show any breakpoints as if I never set them.
So I decided to uninstall the ports version and try the packaged and what the?
So which version is it? Why does it say it is 7.11, but after it was installed said 6.1.1? And of course it is refusing to work with the program as dwarf format 4 that
So I decided to uninstall the ports version and try the packaged and what the?
Code:
[leo@leo00 /usr/ports/devel/gdb]$ make deinstall
===> Switching to root credentials for 'deinstall' target
Password:
===> Deinstalling for gdb
===> Deinstalling gdb-7.11
Updating database digests format: 100%
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):
Installed packages to be REMOVED:
gdb-7.11
The operation will free 43 MiB.
[1/1] Deinstalling gdb-7.11...
[1/1] Deleting files for gdb-7.11: 100%
===> Returning to user credentials
[leo@leo00 /usr/ports/devel/gdb]$ sudo pkg delete gdb
Checking integrity... done (0 conflicting)
Package(s) not found!
[leo@leo00 /usr/ports/devel/gdb]$ sudo pkg install gdb
Updating FreeBSD repository catalogue...
Fetching meta.txz: 100% 944 B 0.9kB/s 00:01
Fetching packagesite.txz: 100% 5 MiB 1.9MB/s 00:03
Processing entries: 100%
FreeBSD repository update completed. 25149 packages processed.
The following 1 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
gdb: 7.11
The process will require 43 MiB more space.
8 MiB to be downloaded.
Proceed with this action? [y/N]: y
Fetching gdb-7.11.txz: 100% 8 MiB 2.0MB/s 00:04
Checking integrity... done (0 conflicting)
[1/1] Installing gdb-7.11...
[1/1] Extracting gdb-7.11: 100%
[leo@leo00 /usr/ports/devel/gdb]$ which gdb
/usr/bin/gdb
[leo@leo00 /usr/ports/devel/gdb]$ gdb --version
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 "amd64-marcel-freebsd".
So which version is it? Why does it say it is 7.11, but after it was installed said 6.1.1? And of course it is refusing to work with the program as dwarf format 4 that
g++
compiled with is not supported by gdb 6.1.1.