Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Salvatore Lionetti <salvatorelionetti@yahoo.it>
To: gdb@sourceware.org
Cc: Pedro Alves <pedro@codesourcery.com>
Subject: [GDB] Re: About break and run-time loaded lib
Date: Fri, 22 Oct 2010 15:22:00 -0000	[thread overview]
Message-ID: <530805.97008.qm@web27201.mail.ukl.yahoo.com> (raw)

Many thanks Pedro, you are right, work like a charme. Could in generally 'O' packet like an event? (without a request)
^Cremote_interrupt called
remote_stop called
Packet received: O53414C5659
SALVYPacket received: S02
Sending packet: $p40#d4...Ack
Packet received: 00000000

Program received signal SIGINT, Interrupt.
0x00000000 in ?? ()
(gdb) 

(Yes PC is NULL, to be implemented)

Now i've a less trivial problem (surely due to my ignorance):
My OS load dinamically some modules, at offset different (although near) over every boot.
So target know the base address (Text/Data/Bss)

- How could i explain to host gdb this information, when some of these library are loaded on the host?

Have a good day

P.S: I've already 'consumed' the 'qOffsets' packet

--- Sab 16/10/10, Pedro Alves <pedro@codesourcery.com> ha scritto:

> Da: Pedro Alves <pedro@codesourcery.com>
> Oggetto: Re: About break
> A: gdb@sourceware.org
> Cc: "Salvatore Lionetti" <salvatorelionetti@yahoo.it>
> Data: Sabato 16 ottobre 2010, 19:49
> On Friday 15 October 2010 14:32:41,
> Salvatore Lionetti wrote:
> > Hi,
> > 
> > just two curiosity in creating my first gdbstub via
> tcp:
> > 1) On gdb6.8 or before, is there another way to
> accomplish the lack of 'set breakpoint always-inserted' ?
> 
> No.
> 
> > 2) When a Ctrl-c is sent to the target, is there a way
> from the target to reply with boths 'OABCD...' and 'SXX'?
> 
> Did you try making the target do just that?  It should
> work, I think.
> 
> -- 
> Pedro Alves
> 




             reply	other threads:[~2010-10-22 15:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-22 15:22 Salvatore Lionetti [this message]
2010-10-22 15:39 ` Pedro Alves

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=530805.97008.qm@web27201.mail.ukl.yahoo.com \
    --to=salvatorelionetti@yahoo.it \
    --cc=gdb@sourceware.org \
    --cc=pedro@codesourcery.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