This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug python/11407] -stack-list-locals should catch python exceptions and return the error per variable


------- Additional Comments From pmuldoon at redhat dot com  2010-04-01 12:40 -------
The problem I noted on my setup was common_val_print was raising a GDB error()
due to a read at an invalid location.  The function print_children() handles and
clears its own Python exceptions, but this error() call was neither converted or
handled. So this error was propagating as unhandled and the pretty printing
process terminated in the command that called it. So commands like
-stack-list-locals which print large amount of different variables were
terminating prematurely.

This draft patch in #12 fixes it for me, but I am not sure if it is correct. 
Does it work for you? I'd like Tom to have a look at this, hence the CC addition.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=11407

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]