Re: how to find where a port came from and rebuild with debug symbols

2013-08-24 Thread ill...@gmail.com
On 24 August 2013 12:05, Gary Aitken vagab...@blackfoot.net wrote:
 If I have a core file that implicates a library:
   #0  0x00080525cab0 in wxWindow::DoSetSize () from 
 /usr/local/lib/libwx_gtk2u_core-2.8.so.0
 and
 #16 0x0008056bf720 in wxAuiManager::Update () from 
 /usr/local/lib/libwx_gtk2u_aui-2.8.so.0

 and I want to find out which port these came from so I can rebuild it
 with debug symbols, how do I do that?

As to the first look at pkg-which(8):
% pkg which /usr/local/lib/libwx_gtk2_aui-2.8.so.0
/usr/local/lib/libwx_gtk2_aui-2.8.so.0 was installed by package wxgtk2-2.8.12_2
% pkg which -o /usr/local/lib/libwx_gtk2_aui-2.8.so.0
/usr/local/lib/libwx_gtk2_aui-2.8.so.0 was installed by package
x11-toolkits/wxgtk28
(the -q flag makes it all lovely  terse)

As to the second:
I don't know, some ports have an option to build with debug symbols, but if not
you might have to edit some Makefiles, or worse.

-- 
--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: how to find where a port came from and rebuild with debug symbols

2013-08-24 Thread Warren Block

On Sat, 24 Aug 2013, ill...@gmail.com wrote:


On 24 August 2013 12:05, Gary Aitken vagab...@blackfoot.net wrote:

If I have a core file that implicates a library:
  #0  0x00080525cab0 in wxWindow::DoSetSize () from 
/usr/local/lib/libwx_gtk2u_core-2.8.so.0
and
#16 0x0008056bf720 in wxAuiManager::Update () from 
/usr/local/lib/libwx_gtk2u_aui-2.8.so.0

and I want to find out which port these came from so I can rebuild it
with debug symbols, how do I do that?


As to the first look at pkg-which(8):
% pkg which /usr/local/lib/libwx_gtk2_aui-2.8.so.0
/usr/local/lib/libwx_gtk2_aui-2.8.so.0 was installed by package wxgtk2-2.8.12_2
% pkg which -o /usr/local/lib/libwx_gtk2_aui-2.8.so.0
/usr/local/lib/libwx_gtk2_aui-2.8.so.0 was installed by package
x11-toolkits/wxgtk28
(the -q flag makes it all lovely  terse)

As to the second:
I don't know, some ports have an option to build with debug symbols, but if not
you might have to edit some Makefiles, or worse.


Can't you just add WITH_DEBUG=yes to the make command or make.conf?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org