Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "agan" <sharegan@sh.t2-design.com>
To: "Andrew Cagney" <ac131313@cygnus.com>
Cc: <gdb@sources.redhat.com>
Subject: help about debugging embedded linux  by GDB target remote debugging
Date: Thu, 30 Aug 2001 00:05:00 -0000	[thread overview]
Message-ID: <008801c1319f$e892cb20$ea0c0fd2@agan> (raw)
In-Reply-To: <3B8D0480.9020902@cygnus.com>

hi,
    I want to use GDB for mips , to remote debugging  vmlinux(embedded linux
for mips) , I have builded vmlinux by adding gdb_stub.c for mips , add
set_debug_traps() , and breakpoint() function into vmlinux top, and
configure  debuging vmlinuc kernel by GDB  remote serial line.
    but I cannot get remote serila connection by typing 'target mips
/dev/ttyS0' or 'target remote /dev/ttyS0'  ; what the matter that I face is
the same as the attach mail archive"Problem on gdb (insight) under cgywin!
".
    please help me find tha matter. tks a lot.

    my debugging environment:
host:
        cpu arch: x86, os: linux (redhat 6.2) ,
        run  gdb: for target MIPS target ( configure  --target=mips-elf )
target:
        cpu arch: mips, os:wince 3.0( pocket pc) ,
        i download the vmlinux into the pocket pc, and start to run it.

matter:
        gdb cannot connect vmlinux(gdb_stubs) by serial line.


best regards.
agan shao











----------------------------------------------------------------------------
------------------

attach file ( get from GDB maillist :
                    Date: Wed, 18 Apr 2001 10:08:40 -0400 )

<Obvious question:
<To use GDB this way you must be running the GDB stub on your target
<board. Are you running the stub?

<What are you running on the 68K target?

<Also if this is an embedded target then are you sure that the
<console_output is being piped through the GDB stub?

<At 10:13 AM 4/18/01 +0800, you wrote:
>Hi:
>     I've build insight under cygwin for my m68k target.
>     I have some problems.
>
>     1.First I execute m68k-coff-gdb.
>        and open a m68k-coff image, but a error occur
>         => Error loading "...../test.coff"
>             bad offset (0x12264) in compilation unit header(offset 0x0+6)
>         The test.coff is workable when running in target.
>         So I have no idea about why GDB don't accept the coff image?
>
>    2.Using File->target setting,I set target using
Remote/serial,57600,com2.
>       and Run->connect to target.
>       After a long time,there is a message->"connected successfully".
>       But When I ececute a "console_output" command at the target,
>       sending a string like "Hello,Insight" to insight.
>       I think I should see this string at the console window?
>       But nothing there.Do I make any mistake?
>
>    3.I try another method.
>       I open insight and use console window to connect to target.
>       (gdb)target remote com2
>       After long time,the message appear."Ignoring packet
error....continue"
>       Why?
>
>    4.Because I only see baud setting and com port selection in insight.
>       But I set following configuration in target's uart:
>       =>baudrate 57600,8-bits data,1 stop-bit,no parity.
>       How do I make sure  inshgt on the host can recognize this
>configuration at the target?
>
>    5.I've see a message at the ecos-discuss mailing list about ignoring
>packet error
>       The author said he wired up the connector at the PC end to connect
>RTS&CTS,DSR&DTR,
>       and permanently enable DCD.Then it works fine?
>       What did he mean? Do I need a special serial line?Or I can use
common
>serial line that buy from store.
>
>Thank very much!
>B.R.
>



  reply	other threads:[~2001-08-30  0:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-29  4:26 multiarch x86_64 target Jiri Smid
2001-08-29  8:04 ` Andrew Cagney
2001-08-30  0:05   ` agan [this message]
2001-09-01  2:34   ` Mark Kettenis

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='008801c1319f$e892cb20$ea0c0fd2@agan' \
    --to=sharegan@sh.t2-design.com \
    --cc=ac131313@cygnus.com \
    --cc=gdb@sources.redhat.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