RE: What are the procedures to use self declared convenience functions in GDB?
"Aktemur, Tankut Baris via Gdb" <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <SN6PR11MB289325C84C572C15BCEFCA0CC4E00@SN6PR11MB2893.namprd11.prod.outlook.com> |
On Thursday, November 19, 2020 11:39 AM, Christian Biesinger wrote: > On Thu, Nov 19, 2020 at 9:34 AM Nagmat Nazar via Gdb <[email protected]> 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