This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fw: Debugging plugins with gdb


Sending this to "gcc" since I got no help from sending it to "gcc-help"

--- On Sun, 8/8/10, Jeff Saremi <jeffsaremi@yahoo.com> wrote:

> From: Jeff Saremi <jeffsaremi@yahoo.com>
> Subject: Debugging plugins with gdb
> To: gcc-help@gcc.gnu.org
> Date: Sunday, August 8, 2010, 9:52 AM
> I'd like to step into my plugin to
> see if I can debug it. My plugin currently causes gcc to
> crash.
> Trying to use "break execute_xxxxx" command in
> "add-symbol-file myplugin.so" but neither of them work. The
> first one complains that "function not defined" and the 2nd
> one says that "the address where xxxx.so has been loaded is
> missing".
> Try run with the arugments did not help either. After gcc
> returns, it has unloaded the shared libraries.
> I'd appreciate if anyone would share his experience in
> successfully debugging a plugin. thanks
> jeff
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]