public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: Keith Seitz <kseitz@firetalk.com>
To: Paul_Heijman@eu.omron.com
Cc: insight@sourceware.cygnus.com
Subject: Re: Insight exits abrupt when trying to view in ASM or MIXED mode.
Date: Thu, 18 May 2000 08:55:00 -0000	[thread overview]
Message-ID: <3924126C.D7063160@firetalk.com> (raw)
In-Reply-To: <412568E3.005B3A0E.00@eu.omron.com>

Paul_Heijman@eu.omron.com wrote:
> 
> >When you say that you load the ".cof" file, are you loading symbols only
> >or the executable with symbols? (Are you using Insight's
> >File->Open/console window's "file" command or using the console command
> >"add-symbol-file"?)
> 
> I load the symbol file from the commandline:
> GDB --baud=38400 -d=//O/Alt/Fwk/new/src -s=//O/Alt/Fwk/new/bin/framewrk.cof
> -readnow
> 
> The .cof file contains code information and also the symbol table.

The file may contain code and symbols, but using "-s=..." will cause gdb
to ONLY read symbols. This is why gdbtk was failing to disassemble
anything.

> The cases that I tried were when connected to the target. When not connected, i
> don't manage to see any code, source nor assembly.

It would make sense that you could not disassemble (and maybe even not
see source). Like I said before, if you are not attached to a remote
target, gdb (and gdbtk) will look at the code you've loaded to do
disassembly. Since you didn't load any code, gdb couldn't show you
anything.

> I can look to the assembly code now, like you said I opened the cof-file
> manually with File->Open.
> After I connected to the target I could see the ASM-source!

Cool! Not bad for my first guess. :-)

> 
> Does this mean it will never work through the commandline ?
> I also didn't provide the source-path in the commandline, so at the moment I
> don't see the C-source.
> 

No, you should be able to invoke gdb/Insight passing the file on the
command line:
$ gdb [args, sans the -s one] myExecutable.cof

In general, the use of "add-symbol-file" and the "-s" command line flag
should be used to read ADDITIONAL symbols into gdb. (Purists will say
that this is not true, and they are correct. However, my experience with
gdb, this advice has never failed.)

Keith
-- 
Why chat when you can Firetalk?
Firetalk ID: Keith (10320)
www.firetalk.com

       reply	other threads:[~2000-05-18  8:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <412568E3.005B3A0E.00@eu.omron.com>
2000-05-18  8:55 ` Keith Seitz [this message]
2000-05-18  1:12 Paul_Heijman
2000-05-18  5:42 ` Keith Seitz
2000-05-19  4:05 ` Kai Ruottu

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=3924126C.D7063160@firetalk.com \
    --to=kseitz@firetalk.com \
    --cc=Paul_Heijman@eu.omron.com \
    --cc=insight@sourceware.cygnus.com \
    /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).