Re: Defaulting to stabs debug output from AS Cygwin64

2018-05-15 Thread Hans-Bernhard Bröker
Am 15.05.2018 um 19:17 schrieb Michael Enright: The GCC driver uses -gdwarf2 if you do 'gcc -g' on a .s file. Using -gdwarf2 with assembly code manually or through gcc is successful in producing a Cygwin64 executable that Cygwin64 GDB can work with. This combination of circumstances led me to

Re: Defaulting to stabs debug output from AS Cygwin64

2018-05-15 Thread Michael Enright
On Tue, May 15, 2018 at 5:58 AM, cyg Simple wrote: > > Years of work tells me to not trust the default of any option. You > should be specific. I have a few years under my belt (come to think of it they are threatening to engulf my belt). For work, I'd do what's necessary

Re: Defaulting to stabs debug output from AS Cygwin64

2018-05-15 Thread cyg Simple
On 5/15/2018 12:17 AM, Michael Enright wrote: > I am working on a little compiler for fun, which generates assembly > code. At this point I manually invoke as and ld. > > For debugging I added the -g option to the invocation of as, but then > ld failed with > Years of work tells me to not

Defaulting to stabs debug output from AS Cygwin64

2018-05-14 Thread Michael Enright
I am working on a little compiler for fun, which generates assembly code. At this point I manually invoke as and ld. For debugging I added the -g option to the invocation of as, but then ld failed with t.o:t.s:1:(.stab+0x14): relocation truncated to fit: R_X86_64_32 against `.text' Looking