public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: Keith Seitz <keiths@redhat.com>
To: daniel tian <daniel.xntian@gmail.com>
Cc: insight@sourceware.org
Subject: Re: About machine.md in Insight Gdb in GCC porting
Date: Tue, 07 Jul 2009 02:49:00 -0000	[thread overview]
Message-ID: <4A52B7A1.1080104@redhat.com> (raw)
In-Reply-To: <121fadb80907061938v25fe8ad7od0ee292c19b06f4a@mail.gmail.com>

daniel tian wrote:

> I didn't used the normal gdb command mode. I just type the Insight
> command, and run it, then open my cc1 file.

Change of tack: whenever you get somewhere you expect to see you .md 
file, open the console window and type "list". What does that say?
Also, can you tell me what you do to reproduce the problem?

If you give me a target triple and a test procedure, I can try to 
reproduce a working case here and use that to troubleshoot your 
scenario. Did you say some variety of arm worked?

> Here is my compiling command:
> 
> export CFLAGS='-gdwarf-2 -g3'
> export LIBCFLAGS='-gdwarf-2 -g3'
> export BOOT_CFLAGS='-gdwarf-2 -g3'

You should not need to specify -gdwarf-2 and -g3 (that I know). On most 
targets, -g will default to outputting dwarf 2. Just to eliminate the 
possibility (and I'm not saying that specifying both will do anything 
wrong), try just using "-g" -- at least while we try to debug this.

> I have to say the md file is not a pure C file.

That should not matter as long as the compiler (and assembler, if 
assembly is involved) are outputting debug info. I suspect they are not, 
but again, I don't know anything about gcc .md files or how they are used.

Keith

  reply	other threads:[~2009-07-07  2:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <121fadb80906291848y61466ae6yd167e6a03321d9fa@mail.gmail.com>
2009-07-06 22:04 ` Keith Seitz
2009-07-07  2:04   ` daniel tian
2009-07-07  2:10     ` Keith Seitz
2009-07-07  2:39       ` daniel tian
2009-07-07  2:49         ` Keith Seitz [this message]
2009-07-07  9:38           ` daniel tian

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=4A52B7A1.1080104@redhat.com \
    --to=keiths@redhat.com \
    --cc=daniel.xntian@gmail.com \
    --cc=insight@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).