Re: DEBUG build of cygwin

2003-03-21 Thread Vishal Jain
make CFLAGS_FOR_TARGET=-g CFLAGS=-g worked for me. Although files under newlib are still compiled with O2 flag. thanks, Vishal On Fri, Mar 21, 2003 at 10:20:35PM +0100, Corinna Vinschen wrote: On Fri, Mar 21, 2003 at 01:03:50PM -0800, Vishal Jain wrote: Hi, Just typing make CFLAGS=-g does not help

Re: DEBUG build of cygwin

2003-03-21 Thread Christopher Faylor
On Fri, Mar 21, 2003 at 10:20:35PM +0100, Corinna Vinschen wrote: >On Fri, Mar 21, 2003 at 01:03:50PM -0800, Vishal Jain wrote: >> Hi, Just typing make CFLAGS=-g does not help. It still adds -O2. >> Removing -O2 from the top level makefile also does not help. Vishal > >make CFLAGS_FOR_TARGET=-g E

Re: DEBUG build of cygwin

2003-03-21 Thread Vishal Jain
This also does not help. Vishal On Fri, Mar 21, 2003 at 01:03:50PM -0800, Vishal Jain wrote: Hi, Just typing make CFLAGS=-g does not help. It still adds -O2. Removing -O2 from the top level makefile also does not help. Vishal make CFLAGS_FOR_TARGET=-g Corinna

Re: DEBUG build of cygwin

2003-03-21 Thread Corinna Vinschen
On Fri, Mar 21, 2003 at 01:03:50PM -0800, Vishal Jain wrote: > Hi, Just typing make CFLAGS=-g does not help. It still adds -O2. > Removing -O2 from the top level makefile also does not help. Vishal make CFLAGS_FOR_TARGET=-g Corinna -- Corinna Vinschen Please, send mails regard

Re: DEBUG build of cygwin

2003-03-21 Thread Joe Buehler
Vishal Jain wrote: Just typing make CFLAGS=-g does not help. It still adds -O2. Removing -O2 from the top level makefile also does not help. Here's what I do: cat >$_BUILD/gcc <<-\! && #!/bin/bash I=0 unset ARGV for ARG; do case "$ARG" in -O*) ARGV[

Re: DEBUG build of cygwin

2003-03-21 Thread Vishal Jain
Hi, Just typing make CFLAGS=-g does not help. It still adds -O2. Removing -O2 from the top level makefile also does not help. Vishal On Thu, Mar 20, 2003 at 09:15:36PM -0800, Vishal Jain wrote: Is there a single place in a config file where I can specify CFLAGS? Where do I have to change it? Just t

Re: DEBUG build of cygwin

2003-03-20 Thread Christopher Faylor
On Thu, Mar 20, 2003 at 09:15:36PM -0800, Vishal Jain wrote: >Is there a single place in a config file where I can specify CFLAGS? >Where do I have to change it? Just type "make CFLAGS=-g", as I said. Or modify the Makefile. Or, more generally "grep is your friend". If you'd typed "grep CFLAGS

Re: DEBUG build of cygwin

2003-03-20 Thread Vishal Jain
Hi, Is there a single place in a config file where I can specify CFLAGS? Where do I have to change it? thanks, Vishal On Thu, Mar 20, 2003 at 06:25:45PM -0800, Vishal Jain wrote: When I try to set the breakpoint to seteuid() or fopen, and run the program, it does not stop at that function. Try set

Re: DEBUG build of cygwin

2003-03-20 Thread Christopher Faylor
On Thu, Mar 20, 2003 at 06:25:45PM -0800, Vishal Jain wrote: >When I try to set the breakpoint to seteuid() or fopen, and run the >program, it does not stop at that function. Try setting the breakpoint on the first line number of the function rather than on the function itself. Also for complete

Re: DEBUG build of cygwin

2003-03-20 Thread Vishal Jain
Hi, But I am unable to step into cygwin code. When I try to set the breakpoint to seteuid() or fopen, and run the program, it does not stop at that function. It is kind of working partially. I can set a breakpoint and step into cygwin_logon_user but it won't let me "step" into cygwin_set_impers

Re: DEBUG build of cygwin

2003-03-20 Thread Igor Pechtchanski
On Thu, 20 Mar 2003, Vishal Jain wrote: > Hi, > How do you make a "debug" build of cygwin so that I could debug it through > gdb? > thanks, > Vishal <http://cygwin.com/faq/faq.html#SEC103>. The default build contains the debugging symbols. Igor --

DEBUG build of cygwin

2003-03-20 Thread Vishal Jain
Hi, How do you make a "debug" build of cygwin so that I could debug it through gdb? thanks, Vishal _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail -- Unsubs

Debug build of Cygwin tools

2002-01-21 Thread Cheuk Cheng
Hi, how do I build debug versions of Cygwin tools? Currently, I have exported CFLAGS, CXXFLAGS and LDFLAGS all equal to -g in bash before doing a build. I have also changed the same flags within the Makefile.in file within each the main source directory of each tool. Is their a better way of do