<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/scripts/qemugdb, branch master</title>
<subtitle>Experimental fork of QEMU with video encoding patches</subtitle>
<id>https://git.openslx.org/bwlp/qemu.git/atom/scripts/qemugdb?h=master</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/scripts/qemugdb?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2021-01-12T11:38:03+00:00</updated>
<entry>
<title>scripts/gdb: implement 'qemu bt'</title>
<updated>2021-01-12T11:38:03+00:00</updated>
<author>
<name>Maxim Levitsky</name>
</author>
<published>2020-12-17T15:54:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=b9a0de3773ff2cae858434d44ef04ee257025c76'/>
<id>urn:sha1:b9a0de3773ff2cae858434d44ef04ee257025c76</id>
<content type='text'>
This script first runs the regular gdb's 'bt' command, and then if we are in a
coroutine it prints the coroutines backtraces in the order in which they
were called.

Signed-off-by: Maxim Levitsky &lt;mlevitsk@redhat.com&gt;
Message-Id: &lt;20201217155436.927320-3-mlevitsk@redhat.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>scripts/gdb: fix 'qemu coroutine' when users selects a non topmost stack frame</title>
<updated>2021-01-12T11:38:03+00:00</updated>
<author>
<name>Maxim Levitsky</name>
</author>
<published>2020-12-17T15:54:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=4cbf8efc5b894f9dd86867d7e3de8e8f190618c4'/>
<id>urn:sha1:4cbf8efc5b894f9dd86867d7e3de8e8f190618c4</id>
<content type='text'>
The code that dumps the stack frame works like that:
* save current registers
* overwrite current registers (including rip/rsp) with coroutine snapshot
  in the jmpbuf
* print backtrace
* restore the saved registers.

If the user has currently selected a non topmost stack frame in gdb,
the above code will still restore the selected frame registers,
but the gdb will then lose the selected frame index, which makes it impossible
to switch back to frame 0, to continue debugging the executable.

Therefore switch temporarily to the topmost frame of the stack
for the above code.

Signed-off-by: Maxim Levitsky &lt;mlevitsk@redhat.com&gt;
Message-Id: &lt;20201217155436.927320-2-mlevitsk@redhat.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>scripts/qemugdb: Remove shebang header</title>
<updated>2020-05-31T11:56:46+00:00</updated>
<author>
<name>Philippe Mathieu-Daudé</name>
</author>
<published>2020-05-12T10:32:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=6acc5c046905183d38e2f44fb0fe69001939d969'/>
<id>urn:sha1:6acc5c046905183d38e2f44fb0fe69001939d969</id>
<content type='text'>
These scripts are loaded as plugin by GDB (and they don't
have any __main__ entry point). Remove the shebang header.

Signed-off-by: Philippe Mathieu-Daudé &lt;f4bug@amsat.org&gt;
Acked-by: Alex Bennée &lt;alex.bennee@linaro.org&gt;
Reviewed-by: John Snow &lt;jsnow@redhat.com&gt;
Reviewed-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
Message-Id: &lt;20200512103238.7078-2-philmd@redhat.com&gt;
Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
</content>
</entry>
<entry>
<title>scripts/qemugdb: re-license timers.py to GPLv2 or later</title>
<updated>2019-03-12T07:04:22+00:00</updated>
<author>
<name>Alex Bennée</name>
</author>
<published>2019-03-11T16:55:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=390947ed2a7e5e84fa912f275ac20eac48d2f8ca'/>
<id>urn:sha1:390947ed2a7e5e84fa912f275ac20eac48d2f8ca</id>
<content type='text'>
I'm the sole author (aside from a one line by Greg fixing encoding)
and I was asked nicely on IRC to bring it into line with the rest of
the files.

Cc: Greg Kurz &lt;groug@kaod.org&gt;
Signed-off-by: Alex Bennée &lt;alex.bennee@linaro.org&gt;
Signed-off-by: Thomas Huth &lt;thuth@redhat.com&gt;
</content>
</entry>
<entry>
<title>qemugdb: fix licensing</title>
<updated>2019-03-11T15:55:52+00:00</updated>
<author>
<name>Paolo Bonzini</name>
</author>
<published>2019-03-11T12:13:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=328eb60dc1a19448b36eb63901ca0b8f87ed6f57'/>
<id>urn:sha1:328eb60dc1a19448b36eb63901ca0b8f87ed6f57</id>
<content type='text'>
qemu-gdb.py was committed after 2012-01-13, so the notice about
GPL v2-only contributions does not apply.

Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>qemugdb/coroutine: fix arch_prctl has unknown return type</title>
<updated>2019-02-12T03:49:17+00:00</updated>
<author>
<name>Vladimir Sementsov-Ogievskiy</name>
</author>
<published>2019-02-06T15:14:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=6eaa20c8362cf8e12e023e2e05861f84cec6a438'/>
<id>urn:sha1:6eaa20c8362cf8e12e023e2e05861f84cec6a438</id>
<content type='text'>
qemu coroutine command results in following error output:

Python Exception &lt;class 'gdb.error'&gt; 'arch_prctl' has unknown return
type; cast the call to its declared return type: Error occurred in
Python command: 'arch_prctl' has unknown return type; cast the call to
its declared return type

Fix it by giving it what it wants: arch_prctl return type.

Information on the topic:
   https://sourceware.org/gdb/onlinedocs/gdb/Calling.html

Signed-off-by: Vladimir Sementsov-Ogievskiy &lt;vsementsov@virtuozzo.com&gt;
Message-id: 20190206151425.105871-1-vsementsov@virtuozzo.com
Signed-off-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
</content>
</entry>
<entry>
<title>scripts/qemu-gdb/timers.py: define encoding in header comment</title>
<updated>2018-02-05T12:54:39+00:00</updated>
<author>
<name>Greg Kurz</name>
</author>
<published>2018-01-18T17:11:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=b90d80a73e2f546117a776e899f826e2a9eb8301'/>
<id>urn:sha1:b90d80a73e2f546117a776e899f826e2a9eb8301</id>
<content type='text'>
This is required otherwise python complains because of the
accentuated letter in Alex's last name:

Traceback (most recent call last):
  File "scripts/qemu-gdb.py", line 29, in &lt;module&gt;
    from qemugdb import aio, mtree, coroutine, tcg, timers
  File "scripts/qemugdb/timers.py", line 1
SyntaxError: Non-ASCII character '\xc3' in file scripts/qemugdb/timers.py
 on line 1, but no encoding declared;
 see http://www.python.org/peps/pep-0263.html for details

Signed-off-by: Greg Kurz &lt;groug@kaod.org&gt;
Message-Id: &lt;151629549711.18276.15497684562308683805.stgit@bahia.lan&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>scripts/qemu-gdb/timers.py: new helper to dump timer state</title>
<updated>2018-01-16T13:54:51+00:00</updated>
<author>
<name>Alex Bennée</name>
</author>
<published>2018-01-11T08:27:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=c24999fa53e581335413c33f68748c1fc7b3d84b'/>
<id>urn:sha1:c24999fa53e581335413c33f68748c1fc7b3d84b</id>
<content type='text'>
This introduces the qemu-gdb command "qemu timers" which will dump the
state of the main timers in the system.

Signed-off-by: Alex Bennée &lt;alex.bennee@linaro.org&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;f4bug@amsat.org&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>scripts/qemu-gdb: add simple tcg lock status helper</title>
<updated>2018-01-16T13:54:51+00:00</updated>
<author>
<name>Alex Bennée</name>
</author>
<published>2018-01-11T08:27:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=f1cd52d8912f124cc513a00143fe3baeb44772d1'/>
<id>urn:sha1:f1cd52d8912f124cc513a00143fe3baeb44772d1</id>
<content type='text'>
Add a simple helper to dump lock state.

Signed-off-by: Alex Bennée &lt;alex.bennee@linaro.org&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>scripts/qemugdb/mtree.py: fix up mtree dump</title>
<updated>2017-04-07T14:24:56+00:00</updated>
<author>
<name>Alex Bennée</name>
</author>
<published>2017-03-21T16:26:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=8037fa55ace19e1f328d03e2cefa78d5f3d81310'/>
<id>urn:sha1:8037fa55ace19e1f328d03e2cefa78d5f3d81310</id>
<content type='text'>
Since QEMU has been able to build with native Int128 support this was
broken as it attempts to fish values out of the non-existent
structure. Also the alias print was trying to make a %x out of
gdb.ValueType directly which didn't seem to work.

Signed-off-by: Alex Bennée &lt;alex.bennee@linaro.org&gt;
</content>
</entry>
</feed>
