Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Can GDB stub report every module loading event so that the host can   load every module symbol automatically?
@ 2010-04-26  7:36 倪瑞煜
  2010-04-26 17:21 ` Michael Snyder
  0 siblings, 1 reply; 5+ messages in thread
From: 倪瑞煜 @ 2010-04-26  7:36 UTC (permalink / raw)
  To: gdb

Hi,

I want my GDB stub to report every module loading event so that the
GDB in the host can receive the message and load every module symbol
automatically during my OS booting.
I searched the GDB serial protocol but didn't find any message can
meet my requirement.
Can anyone kindly help me on this?

Thanks,
Ruiyu


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Can GDB stub report every module loading event so that the host  can   load every module symbol automatically?
  2010-04-26  7:36 Can GDB stub report every module loading event so that the host can load every module symbol automatically? 倪瑞煜
@ 2010-04-26 17:21 ` Michael Snyder
  2010-04-26 17:36   ` Joel Brobecker
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Snyder @ 2010-04-26 17:21 UTC (permalink / raw)
  To: 倪瑞莘; +Cc: gdb

倪瑞莘 wrote:
> Hi,
> 
> I want my GDB stub to report every module loading event so that the
> GDB in the host can receive the message and load every module symbol
> automatically during my OS booting.
> I searched the GDB serial protocol but didn't find any message can
> meet my requirement.
> Can anyone kindly help me on this?
> 
> Thanks,
> Ruiyu

There is no such message because the stub doesn't know
anything about modules.  There is no particular "event"
when execution first enters a module.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Can GDB stub report every module loading event so that the  host  can   load every module symbol automatically?
  2010-04-26 17:21 ` Michael Snyder
@ 2010-04-26 17:36   ` Joel Brobecker
  2010-04-27  2:47     ` Hui Zhu
  0 siblings, 1 reply; 5+ messages in thread
From: Joel Brobecker @ 2010-04-26 17:36 UTC (permalink / raw)
  To: Michael Snyder; +Cc: ?$BPd?pzx, gdb

> There is no such message because the stub doesn't know
> anything about modules.  There is no particular "event"
> when execution first enters a module.

Could these modules be seen as "shared libraries"? The remote protocol
supports that...

-- 
Joel


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Can GDB stub report every module loading event so that the host   can load every module symbol automatically?
  2010-04-26 17:36   ` Joel Brobecker
@ 2010-04-27  2:47     ` Hui Zhu
  2010-04-27  2:57       ` Hui Zhu
  0 siblings, 1 reply; 5+ messages in thread
From: Hui Zhu @ 2010-04-27  2:47 UTC (permalink / raw)
  To: Joel Brobecker; +Cc: Michael Snyder, ?$BPd?pzx, gdb

On Tue, Apr 27, 2010 at 01:36, Joel Brobecker <brobecker@adacore.com> wrote:
>> There is no such message because the stub doesn't know
>> anything about modules.  There is no particular "event"
>> when execution first enters a module.
>
> Could these modules be seen as "shared libraries"? The remote protocol
> supports that...
>

I think we have 2 trouble about it:
1.  Some stub for example a qemu, let itself set the breakpoint to
stop the event and get the lib name and address is not easy.
2.  For GDB part, let it know where is the solib in sometime is not
easy.  For example, cross compile kernel will be put to anywhere and
each module will be put a different dir.

Regards,
Hui


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Can GDB stub report every module loading event so that the host   can load every module symbol automatically?
  2010-04-27  2:47     ` Hui Zhu
@ 2010-04-27  2:57       ` Hui Zhu
  0 siblings, 0 replies; 5+ messages in thread
From: Hui Zhu @ 2010-04-27  2:57 UTC (permalink / raw)
  To: Joel Brobecker; +Cc: Michael Snyder, ?$BPd?pzx, gdb

On Tue, Apr 27, 2010 at 10:47, Hui Zhu <teawater@gmail.com> wrote:
> On Tue, Apr 27, 2010 at 01:36, Joel Brobecker <brobecker@adacore.com> wrote:
>>> There is no such message because the stub doesn't know
>>> anything about modules.  There is no particular "event"
>>> when execution first enters a module.
>>
>> Could these modules be seen as "shared libraries"? The remote protocol
>> supports that...
>>
>
> I think we have 2 trouble about it:
> 1.  Some stub for example a qemu, let itself set the breakpoint to
> stop the event and get the lib name and address is not easy.
> 2.  For GDB part, let it know where is the solib in sometime is not
> easy.  For example, cross compile kernel will be put to anywhere and
> each module will be put a different dir.
>
http://sourceware.org/ml/gdb/2010-02/msg00022.html

This thread is talk about LKM in before.

Regards,
Hui


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-04-27  2:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-26  7:36 Can GDB stub report every module loading event so that the host can load every module symbol automatically? 倪瑞煜
2010-04-26 17:21 ` Michael Snyder
2010-04-26 17:36   ` Joel Brobecker
2010-04-27  2:47     ` Hui Zhu
2010-04-27  2:57       ` Hui Zhu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox