Re: [arch-general] Generating gdb debug logs for devs

2017-02-03 Thread Christoph Gysin via arch-general
On Fri, Feb 3, 2017 at 2:37 AM, Pekka Järvinen via arch-general wrote: > This finally provided results! > > main (argc=, argv=) at lxrandr.c:783 > 783fixed = LVDS ? LVDS : monitors->data; At this point, lxrandr has crashed and you are left at the gdb prompt. Type "bt" to create a backtrace sh

Re: [arch-general] Generating gdb debug logs for devs

2017-02-03 Thread Christoph Gysin via arch-general
On Thu, Feb 2, 2017 at 3:54 PM, Pekka Järvinen via arch-general wrote: > % makepkg -sfi > ... > error: unresolvable package conflicts detected > error: failed to prepare transaction (conflicting dependencies) > :: lxrandr-gtk3 and lxrandr are in conflict Ah, in this case -i won't work because the

Re: [arch-general] Generating gdb debug logs for devs

2017-02-02 Thread Ralf Mardorf
On Fri, 3 Feb 2017 02:37:53 +0200, Pekka Järvinen wrote: >I would suggest mentioning this manual compiling to the wiki page Hi, IMO using a PKGBUILD from ABS and changing options by the PKGBUILD or a config is the easiest way to go. Compiling without building a package could lead to issues. Could

Re: [arch-general] Generating gdb debug logs for devs

2017-02-02 Thread Pekka Järvinen via arch-general
Hi, 2017-02-02 21:43 GMT+02:00 Neven Sajko via arch-general < arch-general@archlinux.org>: > Since you are a beginner, maybe it would have been better to first > just compile lxrandr manually, instead of with makepkg. > This finally provided results! main (argc=, argv=) at lxrandr.c:783 783

Re: [arch-general] Generating gdb debug logs for devs

2017-02-02 Thread Neven Sajko via arch-general
After glimpsing through your makepkg and PKGBUILD: Are you sure you are using makepkg-debug.conf instead of makepkg.conf as the config? Since you are a beginner, maybe it would have been better to first just compile lxrandr manually, instead of with makepkg.

Re: [arch-general] Generating gdb debug logs for devs

2017-02-02 Thread Neven Sajko via arch-general
BTW, maybe arandr would suffice as a replacement for lxrandr?

Re: [arch-general] Generating gdb debug logs for devs

2017-02-02 Thread Neven Sajko via arch-general
A few notes: You can use, eg., the file command to check if executables are stripped. (with something like "file /bin/executable") But gdb already tells you that no debugging symbols were found for the executable. Thus, you either need install an lxrandr package with debugging symbols (with -g an

Re: [arch-general] Generating gdb debug logs for devs

2017-02-02 Thread Pekka Järvinen via arch-general
Hi, This will only build the package. Make sure to install it, or use > 'makepkg -sfi' to install it automatically. > % makepkg -sfi ... loading packages... warning: lxrandr-0.3.1-1 is up to date -- reinstalling resolving dependencies... looking for conflicting packages... error: unresolvable pac

Re: [arch-general] Generating gdb debug logs for devs

2017-02-02 Thread Christoph Gysin via arch-general
> I've installed ABS, modified PKGBUILD and made my own /etc/makepkg-dev.conf No need to change both makepkg.conf and the PKGBUILD. Either will do. > makepkg -sf --config /etc/makepkg-dev.conf generates the executable. This will only build the package. Make sure to install it, or use 'makepkg -s

Re: [arch-general] Generating gdb debug logs for devs

2017-02-01 Thread Pekka Järvinen via arch-general
Hi, Here's the configs: lxrandr: % cat PKGBUILD # $Id: PKGBUILD 162929 2016-02-21 01:19:49Z bgyorgy $ # Maintainer: Sergej Pupykin # Contributor: Geoffroy Carrier options=(debug !strip) pkgbase=lxrandr pkgname=(lxrandr lxrandr-gtk3) pkgver=0.3.1 pkgrel=1 pkgdesc="Monitor configuration tool (pa

Re: [arch-general] Generating gdb debug logs for devs

2017-02-01 Thread Martin Kühne via arch-general
So uh for all this to take effect you have to do the updates on the PKGBUILD options=(!strip debug) most notably I guess... not sure what makepkg.conf adjustments you made, but I'm pretty sure the main lifting is up to these two options being set. Is it possible that you would share the makepkg.co

[arch-general] Generating gdb debug logs for devs

2017-02-01 Thread Pekka Järvinen via arch-general
Hi, I have segfaulting lxrandr and I was referred to https://wiki.archlinux.org/index.php/Debug_-_Getting_Traces after filing bug report. I've installed ABS, modified PKGBUILD and made my own /etc/makepkg-dev.conf makepkg -sf --config /etc/makepkg-dev.conf generates the executable. Still gdb giv