DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 3rd March 2018
Funkygoby Funkygoby is offline
Fdisk Soldier
 
Join Date: Aug 2015
Posts: 57
Default How to debug a port

Thunar (the Xfce's file manager) have been dumping .core files and I am willing to investigate.
Note: I set my /etc/mk.conf so that my ports tree is read-only. Everything produced by the tree goes in /var/ports

I have several, a lot, of questions:
1. I need a binary build with debug symbols so that I can use it with [cmd]gdb[/cmd] and the .core file, but can I use a .core file produced by a binary without debug symbols ?
2. How to make a binary with debug symbols. I tried # cd /usr/ports/x11/xfce4/thunar && make DEBUG_FLAGS=-g ?
3. By doing # make install I am sure /usr/local/bin/thunar binary will be replaced ?
4. I don't want to install the new binary. I just want to use it for the debugging part: % gdb /var/ports/obj/ ... /.libs/thunar thunar.core. Is this reasonnable? By the way, thunar seems to be a shared library.
5. How to properly clean the ports tree ? # make clean && make clean=depends && make clean=dist && pkg_delete -a is ok ?

Thank you.
Reply With Quote
 

Tags
debug, ports

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Security Security hole in Sudo's debug option closed J65nko News 0 31st January 2012 10:24 PM
The right way to build an OpenBSD port with debug symbols WeakSauceIII OpenBSD Packages and Ports 7 20th April 2009 12:40 PM
SSH on port 443 maxrussell General software and network 4 6th April 2009 05:16 AM
Trying to Debug C++ Compile Error [Shibboleth] on FreeBSD starbuck Programming 4 15th January 2009 10:30 PM
port forwarding ikevmowe OpenBSD Security 13 21st November 2008 06:03 PM


All times are GMT. The time now is 10:43 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick