Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: Peter Barada <pbarada@mail.wm.sps.mot.com>
Cc: Peter.Barada@motorola.com, gdb@sources.redhat.com
Subject: Re: Torubles with remote stub for m68k
Date: Mon, 24 Jun 2002 15:07:00 -0000	[thread overview]
Message-ID: <20020624220628.GB31470@branoic.them.org> (raw)
In-Reply-To: <200206242156.g5OLumH25691@hyper.wm.sps.mot.com>

On Mon, Jun 24, 2002 at 05:56:48PM -0400, Peter Barada wrote:
> 
> >>> When I execute that with gdb-5.1.1, it attempts to step the processor
> >>> without removing the trap instruction so the target processor never
> >>> steps past the trap instruction.
> >>
> >>You also should try with 5.2 or CVS rather than 5.1.1, probably...
> >
> >I'm grabbing and building it now.  I'll post an update tomorrow.
> >
> 
> I got to it quicker than I thought.  Nope, same problem as with gdb-5.1.1:
> 
> [Switching to thread 1 (Thread 9)]#0  FRSfindfont (
>     name=0x1fd6b70 "AlbertusMT", idptr=0x1fd6b4c, ftype=0x1fd6b50, 
>     fclass=0x1fd6b54, font_mat=0x4c589c, painttype=0x1fd6b58, 
>     fontname=0x1fd6b5c) at ../pdi/fntsockt.c:604
> 604	    if (fs_first_unused == (FRS_ID *) NULL)
> (gdb) show version
> GNU gdb 5.2
> Copyright 2002 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "--host=i686-pc-linux-gnu --target=m68k-elf".
> (gdb) set debug remote 1
> (gdb) si
> Sending packet: $Hc9#e4...Ack
> Packet received: OK
> Sending packet: $s#73...Ack
> Packet received: T05thread:9;
> Sending packet: $g#67...Ack
> Packet received: 0000000a00000000001fc9ac0000000501fd6b5c01fd6b58004c589c01fd6b54002161620021616d005e874001fd6b5001fd6b70005ca4cc01fd6ae001fd6ab04084a0000003af3c4046800000000000404ca5dc000000007fffffffffffffff7fffffffffffffff7fffffffffffffff7fffffffffffffff7fffffffffffffff7fffffffffffffff000000000000008800000000
> 604	    if (fs_first_unused == (FRS_ID *) NULL)
> (gdb) p/x $pc
> $1 = 0x3af3c
> (gdb) si
> Sending packet: $s#73...Ack
> Packet received: T05thread:9;
> Sending packet: $g#67...Ack
> Packet received: 0000000a00000000001fc9ac0000000501fd6b5c01fd6b58004c589c01fd6b54002161620021616d005e874001fd6b5001fd6b70005ca4cc01fd6ae001fd6aac4084a0000003af3c4046800000000000404ca5dc000000007fffffffffffffff7fffffffffffffff7fffffffffffffff7fffffffffffffff7fffffffffffffff7fffffffffffffff000000000000008800000000
> 604	    if (fs_first_unused == (FRS_ID *) NULL)
> (gdb) p/x $pc
> $2 = 0x3af3c
> (gdb) 
> 
> With gdb-5, if the stub doesn't use breakpoint registers, is it gdb's
> responsibility to save/restore the brekpoint across a 's' packet, or
> is that the stub's responsibility?
> 
> Any help is appreciated!

If GDB sets the breakpoint using 'M' (or presumably 'X') commands, then
it is the client's responsibility to clear it.  It would be nice to
know why that isn't happening.  To observe it in action you can use
gdbserver on a GNU/Linux system...

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer


  reply	other threads:[~2002-06-24 22:07 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-24 12:46 [MI/testsuite] mi_gdb_test: expected result priority? Keith Seitz
2002-06-24 13:20 ` Elena Zannoni
2002-06-24 14:04 ` Torubles with remote stub for m68k Peter Barada
2002-06-24 14:13   ` Daniel Jacobowitz
2002-06-24 14:40     ` Peter Barada
2002-06-24 14:56       ` Peter Barada
2002-06-24 15:07         ` Daniel Jacobowitz [this message]
2002-06-24 15:30           ` Andrew Cagney
2002-06-24 15:35             ` Quality Quorum
2002-06-25  7:53             ` Peter Barada
2002-06-25 10:44               ` Andrew Cagney
2002-06-25  9:38                 ` Peter Barada
2002-06-25 13:28                   ` Andrew Cagney
2002-06-25 10:02                 ` Daniel Jacobowitz
2002-06-25  8:13           ` Peter Barada
2002-06-25  8:17             ` Daniel Jacobowitz
2002-06-25  8:32               ` Peter Barada
2002-06-25  8:40                 ` Daniel Jacobowitz
2002-06-25 13:43   ` Andrew Cagney

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=20020624220628.GB31470@branoic.them.org \
    --to=drow@mvista.com \
    --cc=Peter.Barada@motorola.com \
    --cc=gdb@sources.redhat.com \
    --cc=pbarada@mail.wm.sps.mot.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