Re: gcc -g -O2 == gdb stepping problems [Was: gdb mod_perl-2.0?]

2001-05-11 Thread barries
On Thu, May 10, 2001 at 08:37:38PM -0700, Roy T. Fielding wrote: Yes, that is the standard reasonable default per the Gnu project's makefile standards, which is why autoconf sets it. As you discovered, it can be overridden by setting any value for CFLAGS prior to running configure. Should

Re: gcc -g -O2 == gdb stepping problems [Was: gdb mod_perl-2.0?]

2001-05-11 Thread Roy T. Fielding
Should the apr/configure.in prevent -O... options when it notes a -g? Seems like it's an awkward reasonable default for debug / maintainer mode. I don't think it should default to anything, but then I am not Gnu. I've never had any problems stepping through -O2 code, but that was before all

Re: gcc -g -O2 == gdb stepping problems [Was: gdb mod_perl-2.0?]

2001-05-10 Thread Roy T. Fielding
Ok, got back to playing with this today: looks like the default CFLAGS setting for autoconf (created by AC_PROG_CC) is -g -O2. That seems like an odd combination to me, but it's as-installed on two RedHats and a FreeBSD. Yes, that is the standard reasonable default per the Gnu project's

Re: gcc -g -O2 == gdb stepping problems [Was: gdb mod_perl-2.0?]

2001-05-10 Thread Doug MacEachern
On Thu, 10 May 2001, barries wrote: [cross-posting to new-httpd, since that's the more appropriate forum] Background: I had trouble single-stepping through the routine defined by AP_IMPLEMENT_HOOK_RUN_ALL(int,pre_connection,(conn_rec *c),(c),OK,DECLINED) seems like the rest of your