----- Original Message ----- From: "Rogelio Serrano" <rogelio.serr...@gmail.com> To: "Hardened LFS Development List" <hlfs-dev@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 <mor...@anilinux.org> wrote: > > On Fri, 10 Jun 2011 12:55:45 +0200 > > Aleksandar Kuktin <akuk...@gmail.com> wrote: > > > >> >On Fri, 10 Jun 2011 17:22:19 +0800 > >> >Rogelio Serrano <rogelio.serr...@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 > Warning: > 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 http://bugs.gentoo.org/show_bug.cgi?id=75417 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) Gilles -- http://linuxfromscratch.org/mailman/listinfo/hlfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page