From: Tom Tromey <tromey@redhat.com>
To: Taisuke Yamada <tai@rakugaki.org>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] sys.argv and ipython (interactive python) support in GDB/Python
Date: Fri, 01 Jul 2011 14:27:00 -0000 [thread overview]
Message-ID: <m3r56acc0d.fsf@fleche.redhat.com> (raw)
In-Reply-To: <BANLkTi=36=aFZPsBDJacOWvh-2Pk7OHKfQ@mail.gmail.com> (Taisuke Yamada's message of "Fri, 1 Jul 2011 13:00:27 +0900")
>>>>> "Taisuke" == Taisuke Yamada <tai@rakugaki.org> writes:
Taisuke> So here is a patch to set sys.argv when initializing embedded
Taisuke> Python interpreter.
Taisuke> + char *argv[] = { "gdb", NULL };
It seems to me that this should probably be { "", NULL }.
From the docs:
-- Function: void PySys_SetArgvEx (int argc, char **argv,
int updatepath)
[...]
If there isn't a script that will be run,
the first entry in _argv_ can be an empty string.
Tom
prev parent reply other threads:[~2011-07-01 14:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-01 4:00 Taisuke Yamada
[not found] ` <BANLkTimcWKLMOkd0R8bNT-z4yqr0FJ_uog@mail.gmail.com>
2011-07-01 10:31 ` Kevin Pouget
2011-07-01 10:59 ` Phil Muldoon
2011-07-01 14:10 ` Taisuke Yamada
2011-07-01 14:14 ` Phil Muldoon
2011-07-01 14:34 ` Tom Tromey
2011-07-01 14:27 ` Tom Tromey [this message]
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=m3r56acc0d.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=tai@rakugaki.org \
/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