Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Paul Koning <paul_koning@dell.com>
To: Michel METZGER <michel.metzger@st.com>
Cc: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: Undefine python command
Date: Thu, 31 Mar 2011 19:46:00 -0000	[thread overview]
Message-ID: <4A96DB50-64BB-48FC-8515-E5367E59BA29@dell.com> (raw)
In-Reply-To: <5B4CE209869C6A4797F5FAA0B348F0A0D9F183F45F@SAFEX1MAIL1.st.com>

"del" is the way.

def foo():
  print "hello world"

foo()
hello world
del foo
foo()
Traceback...
NameError: name 'foo' is not defined.

	paul

On Mar 31, 2011, at 3:27 PM, Michel METZGER wrote:

> Hi,
> 
> Is there a way to remove a commands defined in Python?
> I need to define specific commands depending on the type of binary being debugged. It's not a problem for the first binary loaded, 
> but if the user loads a new binary with 'file', I will need to remove some commands.
> 
> Thanks,
> 
> Michel.


  reply	other threads:[~2011-03-31 19:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-31 19:28 Michel METZGER
2011-03-31 19:46 ` Paul Koning [this message]
2011-03-31 20:10   ` Michel METZGER
2011-04-01 13:11 ` Tom Tromey

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=4A96DB50-64BB-48FC-8515-E5367E59BA29@dell.com \
    --to=paul_koning@dell.com \
    --cc=gdb@sourceware.org \
    --cc=michel.metzger@st.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