cannot get autoload to work

Borislav Kapukaranov <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CAGE-agH2wvBz0f6tADEf_7ya2bqh6F26DAPAB949=FZvwifQUw@mail.gmail.com>
Hi,

I'm trying to get autoloading to work with gdb 7.6.1. From the
documentation I gather there are two ways to plug in autoloading
scripts:
 - using objfile-gdb.py files
 - or using the DEFINE_GDB_SCRIPT macro

I can't seem to get any of them working. I have a bunch of
spidermonkey pretty printers that seem to be built with autoloading in
mind. Since there weren't any objfile-gdb.py style printers I tried
with the macro.
The docu says "gdb will look for each specified script file first in
the current directory".

Which is the current dir in this case? - the dir where I start gdb, or
the one with the executable or what?

Can you point me to examples of both approaches so that I can be able
to auto-load pretty printers for my own types?

Thanks,
Bobby
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.