alternative to printf for debugging on hlfs?
g.esp at free.fr
Sat Jun 11 00:30:44 PDT 2011
----- Original Message -----
From: "Rogelio Serrano" <rogelio.serrano at gmail.com>
To: "Hardened LFS Development List" <hlfs-dev at linuxfromscratch.org>
Sent: Saturday, June 11, 2011 3:46 AM
Subject: Re: alternative to printf for debugging on hlfs?
> On Fri, Jun 10, 2011 at 7:28 PM, Jan Dvořák <mordae at anilinux.org> wrote:
> > On Fri, 10 Jun 2011 12:55:45 +0200
> > Aleksandar Kuktin <akuktin at gmail.com> wrote:
> >> >On Fri, 10 Jun 2011 17:22:19 +0800
> >> >Rogelio Serrano <rogelio.serrano at gmail.com> wrote:
> >> >
> >> > is there another way to debug applications? im used to printf
> >> > debugging and unit testing but stepping through running code can be
> >> > handy.
> >> >
> >> The GNU Debugger? GDB.
> >> http://www.gnu.org/software/gdb/
> > And cgdb for additional comfort (code browsing, breakpoints).
> well gdb doesnt work for me.
> i get this error every time:
> Starting program: /bin/xfm
> Cannot insert breakpoint 1.
> Error accessing memory address 0x2b65d3820f: Input/output error.
> Cannot insert breakpoint -1.
> Temporarily disabling shared library breakpoints:
> breakpoint #-1
> i tried setting all pax flags off and i still get the same error.
there is the same error on this report
and it is written that using -fno-pie during linking and disabling MPROTECT
with paxctl fixed that issue. gdb version was much older (6.1)
More information about the hlfs-dev