From: "Pierre Muller" <muller@ics.u-strasbg.fr>
To: "'Carlos Eduardo Seo'" <cseo@linux.vnet.ibm.com>,
"'Daniel Jacobowitz'" <drow@false.org>
Cc: <gdb@sourceware.org>, <brobecker@adacore.com>
Subject: RE: Problems while debugging fortran
Date: Wed, 26 Sep 2007 21:51:00 -0000 [thread overview]
Message-ID: <000001c80087$6603f720$320be560$@u-strasbg.fr> (raw)
In-Reply-To: <46FAD136.5030406@linux.vnet.ibm.com>
I am about to commit a similar patch to
recognize the special symbol name used
by GNU pascal compiler.
I tought about adding a check for
current_language == language_pascal,
but the language is only set if the
program is compiled with debug information
on (will be the case most of the time),
but also only if the main source is recognized
as a pascal source.
Currently, '.inc', '.p', '.pp' and '.pas'
suffixes are recognized as pascal sources,
but Delphi uses '.dpr' so chances are that
you compile a source that will not be recognized
as a pascal source and in that case, the
pascal_main_name would not be called at all.
Pierre Muller
pascal language maintainer
> -----Original Message-----
> From: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] On
> Behalf Of Carlos Eduardo Seo
> Sent: Wednesday, September 26, 2007 11:38 PM
> To: Daniel Jacobowitz
> Cc: gdb@sourceware.org; brobecker@adacore.com
> Subject: Re: Problems while debugging fortran
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Daniel Jacobowitz wrote:
> >
> > Here's a relevant patch from the Debian packages of GDB. As you can
> > see it comes from a mailing list message - I don't remember exactly
> > who submitted it without looking it up and I don't remember exactly
> > why it was never committed, but it was probably Wu Zhou and it was
> > probably never merged because of the larger issue of symbol case
> > sensitivity.
> This patch works fine _if_ the compiler is gfortran/g77. However, not
> all compilers call the program by "MAIN__". So, I was thinking about
> having something in symtab.c:find_main_name that checks DW_CC_program
> value if the language is Fortran and get the name from the main
> routine from DW_AT_name. Is that an acceptable solution?
>
> Regards,
>
> - --
> Carlos Eduardo Seo
> Software Engineer
> IBM Linux Technology Center
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.7 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFG+tE1qvq7Aov/qQARAprFAJ0aijQ2D6Mhuc4e4mGr/y1VAskdfgCfQeXT
> /47+1mSHn6XRATG0ihLyUo0=
> =DbGQ
> -----END PGP SIGNATURE-----
next prev parent reply other threads:[~2007-09-26 21:51 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-15 11:37 Carlos Eduardo Seo
2007-09-20 19:47 ` Joel Brobecker
2007-09-20 20:46 ` Carlos Eduardo Seo
2007-09-20 20:56 ` Joel Brobecker
2007-09-21 6:52 ` Daniel Jacobowitz
2007-09-26 21:46 ` Carlos Eduardo Seo
2007-09-26 21:51 ` Joel Brobecker
2007-10-24 16:20 ` Carlos Eduardo Seo
2007-10-24 19:33 ` Joel Brobecker
2007-10-24 19:57 ` Daniel Jacobowitz
2007-10-24 20:16 ` Carlos Eduardo Seo
2007-10-24 21:56 ` Carlos Eduardo Seo
2007-09-26 21:51 ` Pierre Muller [this message]
2007-09-23 2:52 ` Carlos Eduardo Seo
2007-09-24 10:01 ` Joel Brobecker
2007-09-24 23:49 ` Carlos Eduardo Seo
2007-09-25 1:29 ` Joel Brobecker
2007-09-25 17:34 ` Carlos Eduardo Seo
2007-09-26 6:29 ` Joel Brobecker
2007-10-25 16:07 François-Xavier Coudert
2007-10-25 17:06 ` Daniel Jacobowitz
2007-10-25 18:44 ` Jim Blandy
2007-10-25 19:01 ` Daniel Jacobowitz
2007-10-25 19:27 ` Jim Blandy
2007-10-25 20:24 ` Joel Brobecker
2007-10-25 20:36 ` Carlos Eduardo Seo
2007-10-25 20:41 ` Joel Brobecker
2007-10-25 20:55 ` Andreas Schwab
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000001c80087$6603f720$320be560$@u-strasbg.fr' \
--to=muller@ics.u-strasbg.fr \
--cc=brobecker@adacore.com \
--cc=cseo@linux.vnet.ibm.com \
--cc=drow@false.org \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox