RE: What are the procedures to use self declared convenience functions in GDB?

Aktemur, Tankut Baris via Gdb
2020-11-19T10:59:26Z

On Thursday, November 19, 2020 11:39 AM, Christian Biesinger wrote:
> On Thu, Nov 19, 2020 at 9:34 AM Nagmat Nazar via Gdb <gdb@sourceware.org> wrote:
> >
> > Dear Mr. Baris,
> >
> > Thanks for your response, I have added it to Makefile.in as you told me,
> > but it is not functioning. How can I check If it was loaded or not?
>
> Did you verify that it gets installed with the other python files? And
> you are using "import greet" when using it?
>
> Christian

Hi Nagmat,

Assuming you did "make install" first, you can check if the file is installed
by looking at the share/gdb/python/gdb/function/ folder in the install directory.

If you did not "make install" but started gdb from its build directory, you may have
to pass the --data-directory flag. Like this:

$ my-gdb-build-dir/gdb/gdb --data-directory=my-gdb-build-dir/gdb/data-directory

-Baris

Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Christin Eisenschmid, Gary Kershaw
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928