* Cygwin GCC and debug info source file paths
@ 2012-08-14 20:45 David Lindström
2012-08-14 20:50 ` Larry Hall (Cygwin)
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: David Lindström @ 2012-08-14 20:45 UTC (permalink / raw)
To: cygwin; +Cc: gcc-help
Hi, I didn't know where to put this. I'm trying to use a cygwin build of GCC
for arm (binaries from gnuarm.com). When I build a simple dummy application
just doing some matrix multiplications in a loop, it creates a nice
executable file with debug info, but the path to the source file is a cygwin
path which is incompatible with the debugging tool I'm trying to use. I'm
wondering if there's a way to generate the exe with relative paths to the
source files, alternatively to use windows paths?
The tool is Trace32 from Lauterbach, currently experementing with the arm
simulator from the website.
Mvh
David Lindström
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Cygwin GCC and debug info source file paths
2012-08-14 20:45 Cygwin GCC and debug info source file paths David Lindström
@ 2012-08-14 20:50 ` Larry Hall (Cygwin)
2012-08-15 0:34 ` Ian Lance Taylor
2012-08-16 0:44 ` David Lindström
2 siblings, 0 replies; 5+ messages in thread
From: Larry Hall (Cygwin) @ 2012-08-14 20:50 UTC (permalink / raw)
To: cygwin
On 8/14/2012 2:13 PM, David Lindström wrote:
> Hi, I didn't know where to put this. I'm trying to use a cygwin build of GCC
> for arm (binaries from gnuarm.com). When I build a simple dummy application
> just doing some matrix multiplications in a loop, it creates a nice
> executable file with debug info, but the path to the source file is a cygwin
> path which is incompatible with the debugging tool I'm trying to use. I'm
> wondering if there's a way to generate the exe with relative paths to the
> source files, alternatively to use windows paths?
>
> The tool is Trace32 from Lauterbach, currently experementing with the arm
> simulator from the website.
You need to ask the folks at gnuarm.com to make mingw versions of GCC
available or use the debugging tools they provide.
--
Larry
_____________________________________________________________________
A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Cygwin GCC and debug info source file paths
2012-08-14 20:45 Cygwin GCC and debug info source file paths David Lindström
2012-08-14 20:50 ` Larry Hall (Cygwin)
@ 2012-08-15 0:34 ` Ian Lance Taylor
2012-08-15 8:54 ` David Lindström
2012-08-16 0:44 ` David Lindström
2 siblings, 1 reply; 5+ messages in thread
From: Ian Lance Taylor @ 2012-08-15 0:34 UTC (permalink / raw)
To: David Lindström; +Cc: gcc-help, cygwin
On Tue, Aug 14, 2012 at 11:13 AM, David Lindström
<info@davidlindstrom.se> wrote:
> Hi, I didn't know where to put this. I'm trying to use a cygwin build of GCC
> for arm (binaries from gnuarm.com). When I build a simple dummy application
> just doing some matrix multiplications in a loop, it creates a nice
> executable file with debug info, but the path to the source file is a cygwin
> path which is incompatible with the debugging tool I'm trying to use. I'm
> wondering if there's a way to generate the exe with relative paths to the
> source files, alternatively to use windows paths?
>
> The tool is Trace32 from Lauterbach, currently experementing with the arm
> simulator from the website.
You may be able to use GCC's -fdebug-prefix-map option.
Ian
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Cygwin GCC and debug info source file paths
2012-08-15 0:34 ` Ian Lance Taylor
@ 2012-08-15 8:54 ` David Lindström
0 siblings, 0 replies; 5+ messages in thread
From: David Lindström @ 2012-08-15 8:54 UTC (permalink / raw)
To: cygwin; +Cc: gcc-help
Thanks, this was pretty much exactly what I was looking for, but it turned
out the builds at gnuarm.org are so outdated that the option does not exist
(-fdebug-prefix-map=/cygdrive/c/=C:/ resulted in an error at least).
I managed to create a really dirty workaround for now which was to create
C:\cygdrive and then symlink/mklink 'c' => 'C:\' which appears to work but
is extremely ugly. Still open for suggestions.
Mvh
David Lindström
"Ian Lance Taylor" wrote in message
news:CAKOQZ8wXhCTrMkm6yEBW1eysQO5jhaD+3x6AzHN=hTeBCSLueQ@mail.gmail.com...
On Tue, Aug 14, 2012 at 11:13 AM, David Lindström
<info@davidlindstrom.se> wrote:
> Hi, I didn't know where to put this. I'm trying to use a cygwin build of
> GCC
> for arm (binaries from gnuarm.com). When I build a simple dummy
> application
> just doing some matrix multiplications in a loop, it creates a nice
> executable file with debug info, but the path to the source file is a
> cygwin
> path which is incompatible with the debugging tool I'm trying to use. I'm
> wondering if there's a way to generate the exe with relative paths to the
> source files, alternatively to use windows paths?
>
> The tool is Trace32 from Lauterbach, currently experementing with the arm
> simulator from the website.
You may be able to use GCC's -fdebug-prefix-map option.
Ian
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 5+ messages in thread
* Cygwin GCC and debug info source file paths
2012-08-14 20:45 Cygwin GCC and debug info source file paths David Lindström
2012-08-14 20:50 ` Larry Hall (Cygwin)
2012-08-15 0:34 ` Ian Lance Taylor
@ 2012-08-16 0:44 ` David Lindström
2 siblings, 0 replies; 5+ messages in thread
From: David Lindström @ 2012-08-16 0:44 UTC (permalink / raw)
To: cygwin; +Cc: gcc-help
Hi, I didn't know where to put this. I'm trying to use a cygwin build of GCC
for arm (binaries from gnuarm.com). When I build a simple dummy application
just doing some matrix multiplications in a loop, it creates a nice
executable file with debug info, but the path to the source file is a cygwin
path which is incompatible with the debugging tool I'm trying to use. I'm
wondering if there's a way to generate the exe with relative paths to the
source files, alternatively to use windows paths?
The tool is Trace32 from Lauterbach, currently experementing with the arm
simulator from the website.
Mvh
David Lindström
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-08-15 20:45 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-14 20:45 Cygwin GCC and debug info source file paths David Lindström
2012-08-14 20:50 ` Larry Hall (Cygwin)
2012-08-15 0:34 ` Ian Lance Taylor
2012-08-15 8:54 ` David Lindström
2012-08-16 0:44 ` David Lindström
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).