Re: [PATCH] sys.argv and ipython (interactive python) support in GDB/Python

Phil Muldoon
2011-07-01T14:14:22Z

Taisuke Yamada <tai@rakugaki.org> writes:

> Not really. I'm just setting "gdb" as a text label to use when generating
> log message both in python and python library. Just like in C, it *usually*
> points to executing script itself, but after all, there's nothing that
> gurantees that.
>
> Alternatively, you can do "PySys_SetArgvEx (0, NULL, 0);", but then
> python will automatically generate empty (= "") argv[0]. That means any
> logs generated will be somewhat odd, so my idea was to have something
> instead.

Ah ok, thanks for the explanation.

> If you're concerned, maybe "python-gdb" would be better.

I'm not, your explanation is good.

Cheers

Phil