Re: gdb unable to read python frame information

2014-03-11 Thread dieter
Wesley writes: > Now, I fixed the problem... > > Instead of python2.6.6, for python 2.7 it's OK.. > > Why? gdb does not support python 2.6.6? gdb supports python 2.6.6 as well (it is a C level debugger with very few dependencies on Python). Your reports seem to suggest that your Python 2.6.6 in

Re: gdb unable to read python frame information

2014-03-11 Thread dieter
Wesley writes: > ... > [root@localhost ~]# gdb python > GNU gdb (GDB) Red Hat Enterprise Linux (7.2-60.el6_4.1) > This GDB was configured as "x86_64-redhat-linux-gnu". > Reading symbols from /usr/bin/python...Reading symbols from > /usr/lib/debug/usr/bin/python2.6.debug...done. > done. > (gdb) ru

Re: gdb unable to read python frame information

2014-03-10 Thread Wesley
Now, I fixed the problem... Instead of python2.6.6, for python 2.7 it's OK.. Why? gdb does not support python 2.6.6? Is it related to python-gdb.py? I googled a lot, seems only has python2.7-gdb.py, no python2.6-gdb.py. 在 2014年3月10日星期一UTC+8下午3时28分30秒,dieter写道: > Wesley writes: > > > > > I

Re: gdb unable to read python frame information

2014-03-10 Thread Wesley
[root@localhost ~]# gdb python GNU gdb (GDB) Red Hat Enterprise Linux (7.2-60.el6_4.1) Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRA

Re: gdb unable to read python frame information

2014-03-10 Thread dieter
Wesley writes: > If you don't read the loop from the top, and don't tell me exactly what you > want by just keep saying context, please ingore this post. You are doing things only a few people do: trying to debug a Python process on C level -- and you observe really strange things. It is very d

Re: gdb unable to read python frame information

2014-03-10 Thread dieter
Mark Lawrence writes: > On 10/03/2014 01:06, Wesley wrote: > ... > Context, you just keep sending messages like the above which on its > own is meaningless. The original poster has send messages lacking important pieces of information -- but on request from the list, he has fixed this initial err

Re: gdb unable to read python frame information

2014-03-10 Thread dieter
Wesley writes: > So, let me clarify here, in order to try, I get a clean machine. > > Centos 6.5 64bit. > Now , I try this: > 1. install gdb 7.7 from source , with configure option --with-python > > 2. install python 2.6.6 from source, with configure option --with-pydebug > > 3. run a python scri

Re: gdb unable to read python frame information

2014-03-09 Thread Mark Lawrence
On 10/03/2014 02:54, Wesley wrote: If you don't read the loop from the top, and don't tell me exactly what you want by just keep saying context, please ingore this post. Thanks. Wesley 在 2014年3月10日星期一UTC+8上午9时48分41秒,Mark Lawrence写道: On 10/03/2014 01:06, Wesley wrote: What's information do y

Re: gdb unable to read python frame information

2014-03-09 Thread Wesley
If you don't read the loop from the top, and don't tell me exactly what you want by just keep saying context, please ingore this post. Thanks. Wesley 在 2014年3月10日星期一UTC+8上午9时48分41秒,Mark Lawrence写道: > On 10/03/2014 01:06, Wesley wrote: > > > What's information do you want? > > > > > > I told t

Re: gdb unable to read python frame information

2014-03-09 Thread Mark Lawrence
On 10/03/2014 01:06, Wesley wrote: What's information do you want? I told the OS, gdb and python version. And my operation steps. What do you want more, then, I can type here. Wesley Context, you just keep sending messages like the above which on its own is meaningless. Why should anybod

Re: gdb unable to read python frame information

2014-03-09 Thread Wesley
What's information do you want? I told the OS, gdb and python version. And my operation steps. What do you want more, then, I can type here. Wesley -- https://mail.python.org/mailman/listinfo/python-list

Re: gdb unable to read python frame information

2014-03-09 Thread Terry Reedy
On 3/9/2014 10:57 AM, Mark Lawrence wrote: On 09/03/2014 03:49, Wesley wrote: Anybody has suggestions? Don't expect crazy things. Send suggestions to the right place (a gdb list for a gdb enhancement). This really makes me crazy... What makes you crazy? The supposed fact that GnuDeBug d

Re: gdb unable to read python frame information

2014-03-09 Thread Mark Lawrence
On 09/03/2014 03:49, Wesley wrote: Anybody has suggestions? This really makes me crazy... What makes you crazy? You keep sending messages with no context. We might be smart, but we're not (yet :) mind readers. -- My fellow Pythonistas, ask not what our language can do for you, ask what

Re: gdb unable to read python frame information

2014-03-08 Thread Wesley
Anybody has suggestions? This really makes me crazy... -- https://mail.python.org/mailman/listinfo/python-list

Re: gdb unable to read python frame information

2014-03-08 Thread Wesley
So, let me clarify here, in order to try, I get a clean machine. Centos 6.5 64bit. Now , I try this: 1. install gdb 7.7 from source , with configure option --with-python 2. install python 2.6.6 from source, with configure option --with-pydebug 3. run a python script 4. from command line, gdb py

Re: gdb unable to read python frame information

2014-03-08 Thread Wesley
Now I use gdb python -p then, import libpython py-bt is null, py-locals raise here: Unable to locate python frame What's going on... -- https://mail.python.org/mailman/listinfo/python-list

Re: gdb unable to read python frame information

2014-03-08 Thread Mark Lawrence
On 08/03/2014 13:32, Wesley wrote: python debuginfo is installed... Still,py-bt, py-locals.etc cannot read python frame If you don't provide context people are less likely to help you. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language.

Re: gdb unable to read python frame information

2014-03-08 Thread Wesley
1. install gdb from source with configure option --with-python 2. install python from source with configure option --with-pydebug 3. Got error in gdb here: 2.6.6 (r266:84292, Jan 22 2014, 09:42:36) [GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] (gdb) py-bt Undefined command: "py-bt". Try "help". (gdb)

Re: gdb unable to read python frame information

2014-03-08 Thread Wesley
python debuginfo is installed... Still,py-bt, py-locals.etc cannot read python frame -- https://mail.python.org/mailman/listinfo/python-list

Re: gdb unable to read python frame information

2014-03-07 Thread dieter
Wesley writes: > Install python from source with some special configure options? When I last generated Python from source, there was no need to do anything special to get debugging symbols (the option ("gcc") option "-g" was automatically included). -- https://mail.python.org/mailman/listinfo/

Re: gdb unable to read python frame information

2014-03-07 Thread Ned Deily
In article , Wesley wrote: > Then, how to make python get debug symbols? > > Install python from source with some special configure options? If your distribution doesn't have a debug version of Python and you need to build your own, add --with-pydebug to your ./configure options. See: ./con

Re: gdb unable to read python frame information

2014-03-07 Thread Neal Becker
dieter wrote: > Wesley writes: > >> I wanna use gdb to attach my running python scripts. >> Successfully import libpython in gdb, but seems all py operations failed to >> read python information. >> >> Here is the snippet: >> (gdb) python >>>import libpython >>>end >> (gdb) py-bt >> #3 (unable t

Re: gdb unable to read python frame information

2014-03-07 Thread Wesley
Then, how to make python get debug symbols? Install python from source with some special configure options? -- https://mail.python.org/mailman/listinfo/python-list

Re: gdb unable to read python frame information

2014-03-06 Thread dieter
Wesley writes: > I wanna use gdb to attach my running python scripts. > Successfully import libpython in gdb, but seems all py operations failed to > read python information. > > Here is the snippet: > (gdb) python >>import libpython >>end > (gdb) py-bt > #3 (unable to read python frame informat

gdb unable to read python frame information

2014-03-06 Thread Wesley
Hi guys, My env: centos 6.5 64 bit; gdb 7.1; python 2.6.6 I wanna use gdb to attach my running python scripts. Successfully import libpython in gdb, but seems all py operations failed to read python information. Here is the snippet: (gdb) python >import libpython >end (gdb) py-bt #3 (unable to