dwayneyuen / pygdb

Automatically exported from code.google.com/p/pygdb
Other
0 stars 0 forks source link

pygdb block #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.use tests/test.py
  block in this line:  print gdb.version().wait()
2. use tests/test.py

3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
GNU gdb Red Hat Linux (6.3.0.0-1.132.EL4rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu".

Please provide any additional information below.
(gdb)
2-gdb-version
~"GNU gdb Red Hat Linux (6.3.0.0-1.132.EL4rh)\n"
~"Copyright 2004 Free Software Foundation, Inc.\n"
~"GDB is free software, covered by the GNU General Public License, and you
are\n"
~"welcome to change it and/or distribute copies of it under certain
conditions.\n"
~"Type \"show copying\" to see the conditions.\n"
~"There is absolutely no warranty for GDB.  Type \"show warranty\" for
details.\n"
~"This GDB was configured as \"i386-redhat-linux-gnu\".\n"
2^done
(gdb)

in mi.py,
    def wait(self):
        try:
            self.__condition.acquire()
            while not self.result: //this block,because result is None
                self.__condition.wait()

result: [2] done
{'class_': 'done',
 'record_type': 'result',
 'result': None,
 'token': '2',
 'type': 'result'}

Original issue reported on code.google.com by ufwt...@gmail.com on 3 Sep 2008 at 5:39

GoogleCodeExporter commented 9 years ago
Same problem on Fedora Core 9.   I see there is no update to the parser to set 
this
field correctly yet in the svn repository ?

Original comment by john.wil...@gmail.com on 21 Oct 2008 at 12:39

GoogleCodeExporter commented 9 years ago
I'm experiencing the same thing on Ubuntu 8.04
I've had trouble before with subprocess.Popen and programs that want to do fancy
things with the terminal (like ffmpeg).  
I'm now playing with gdb via the newish python pexpect module;it's working well

Original comment by david.ma...@gmail.com on 6 Mar 2009 at 12:02

GoogleCodeExporter commented 9 years ago
Same problem on Debian with pygdb-0.2

It looks like GDB is allowed to return no result (see 
http://sourceware.org/gdb/current/onlinedocs/gdb/GDB_002fMI-Result-Records.html)

My quick-fix is to change

 while not self.result:

to

 while self.status == 'pending':

Original comment by budzynow...@gmail.com on 21 Jul 2010 at 6:01