This is the mail archive of the
mailing list for the GDB project.
[GDB] Re: About break and run-time loaded lib
- From: Salvatore Lionetti <salvatorelionetti at yahoo dot it>
- To: gdb at sourceware dot org
- Cc: Pedro Alves <pedro at codesourcery dot com>
- Date: Fri, 22 Oct 2010 16:22:28 +0100 (BST)
- Subject: [GDB] Re: About break and run-time loaded lib
Many thanks Pedro, you are right, work like a charme. Could in generally 'O' packet like an event? (without a request)
Packet received: O53414C5659
SALVYPacket received: S02
Sending packet: $p40#d4...Ack
Packet received: 00000000
Program received signal SIGINT, Interrupt.
0x00000000 in ?? ()
(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 <email@example.com> ha scritto:
> Da: Pedro Alves <firstname.lastname@example.org>
> Oggetto: Re: About break
> A: email@example.com
> Cc: "Salvatore Lionetti" <firstname.lastname@example.org>
> 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
> > 1) On gdb6.8 or before, is there another way to
> accomplish the lack of 'set breakpoint always-inserted' ?
> > 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