public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Simon Marchi <simark@simark.ca>
To: Nagmat Nazar <nagmat@gmail.com>, gdb@sourceware.org
Subject: Re: What are the procedures to use self declared convenience functions in GDB?
Date: Tue, 17 Nov 2020 09:34:38 -0500	[thread overview]
Message-ID: <f0842d30-2073-0e7b-26bd-79909e7944a2@simark.ca> (raw)
In-Reply-To: <CAJnvuZ-ZhEcSPe0HE7sF8qece8K3eymB_+J7N7OC3yqvBAG44A@mail.gmail.com>

On 2020-11-17 4:03 a.m., Nagmat Nazar via Gdb wrote:
> I have implemented a convenience function on python in order to use it on
> GDB. What shall I do in order to use it on GDB. As I know the convenience
> functions are located in
> 
> ~/gdb/python/lib/gdb/function/
> 
> I have copied context_checker.py into this folder but it is not working.
> What other procedures shall I do in order to use the convenience function
> on GDB?
> 
> 
> https://stackoverflow.com/questions/64815891/what-are-the-procedures-to-use-self-declared-convenience-functions-in-gdb
> 
> 
> 
> Kind regards
> 
> Nagmat Nazarov
> 

IIRC, you can use them with $ followed by the name of the function.  So if you declaire a function foo, use $foo(...).

Simon

  reply	other threads:[~2020-11-17 14:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-17  9:03 Nagmat Nazar
2020-11-17 14:34 ` Simon Marchi [this message]
     [not found]   ` <CAJnvuZ_UEox9FvcNVS2rUC+=5P8_g=_hLOG13FdQBP-2x_e+pg@mail.gmail.com>
2020-11-18 20:39     ` Simon Marchi
2020-11-19  7:48       ` Aktemur, Tankut Baris
2020-11-19  8:34         ` Nagmat Nazar
2020-11-19 10:39           ` Christian Biesinger
2020-11-19 10:59             ` Aktemur, Tankut Baris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f0842d30-2073-0e7b-26bd-79909e7944a2@simark.ca \
    --to=simark@simark.ca \
    --cc=gdb@sourceware.org \
    --cc=nagmat@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).