Review Request: Add Thread and Frame Information on Execution
David Narváez
david.narvaez at computer.org
Thu Jul 19 11:49:18 UTC 2012
> On June 18, 2012, 12:30 p.m., Milian Wolff wrote:
> > could you please create a unit test for that in the gdb plugin? I guess that should be possible following the steps you outlined above
>
> David Narváez wrote:
> How should I write the unit test? Using the breakpoint.kdevelop file found in the tests folder or using the new Unit Test feature in KDevelop?
>
> Milian Wolff wrote:
> no, see e.g. kdevelop/debuggers/gdb/unittests/gdbtest.cpp
I'm having trouble designing the unit test for this. I'm thinking I need to check that the thread and frame information of a BreakInsert command are added during the execCmd method but there's no way to check the internal queue from the unit test. Can somebody help me design the test?
- David
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/105210/#review14828
-----------------------------------------------------------
On June 10, 2012, 11:23 p.m., David Narváez wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/105210/
> -----------------------------------------------------------
>
> (Updated June 10, 2012, 11:23 p.m.)
>
>
> Review request for KDevelop.
>
>
> Description
> -------
>
> Moved the code that adds frame and thread information when not present in the command already from the queueCmd method to the executeCmd method and added some info at the debug strings to make clear that the queued command will be modified upon execution. This is needed in order to be able to queue commands whose information depend on previous commands in the same queue.
>
>
> This addresses bug 301287.
> http://bugs.kde.org/show_bug.cgi?id=301287
>
>
> Diffs
> -----
>
> debuggers/gdb/debugsession.cpp ed3598e
>
> Diff: http://git.reviewboard.kde.org/r/105210/diff/
>
>
> Testing
> -------
>
> 1. Set up a breakpoint in a debug project
> 2. Add a variable to the watch list
> 3. Check the debugging output about the queued command and executed command.
>
> Previously, these two would be the same. After this patch, the executed command has the --thread and --frame parameters.
>
>
> Thanks,
>
> David Narváez
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20120719/9214e4ef/attachment.html>
More information about the KDevelop-devel
mailing list