[PATCH v1 0/9] gdbstub/next

Alex Bennée posted 9 patches 4 years ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20200430190122.4592-1-alex.bennee@linaro.org
Test docker-mingw@fedora passed
Test checkpatch failed
Test asan passed
Test docker-quick@centos7 passed
Test FreeBSD passed
configure                                   |   4 +-
include/exec/gdbstub.h                      |  25 +++-
bsd-user/main.c                             |   8 +-
gdbstub.c                                   | 119 ++++++++++++++++----
linux-user/main.c                           |  12 +-
target/m68k/cpu.c                           |  52 ++++++---
target/m68k/helper.c                        |   3 +-
target/ppc/gdbstub.c                        |   4 +-
target/ppc/translate_init.inc.c             |   2 +-
gdb-xml/m68k-core.xml                       |  29 +++++
tests/guest-debug/run-test.py               |  30 ++++-
tests/tcg/aarch64/Makefile.target           |   5 +-
tests/tcg/aarch64/gdbstub/test-sve-ioctl.py |   4 -
tests/tcg/aarch64/gdbstub/test-sve.py       |   4 -
tests/tcg/cris/Makefile.target              |   1 +
tests/tcg/multiarch/Makefile.target         |  14 +++
tests/tcg/multiarch/gdbstub/sha1.py         |  81 +++++++++++++
17 files changed, 323 insertions(+), 74 deletions(-)
create mode 100644 gdb-xml/m68k-core.xml
create mode 100644 tests/tcg/multiarch/gdbstub/sha1.py
[PATCH v1 0/9] gdbstub/next
Posted by Alex Bennée 4 years ago
Hi,

As another release is cut from the tree we start again the collection
of patches fixes and enhancements that weren't yet ready to be
released on an unsuspecting world.

Some of these patches have been seen before in my random collection
series but these are all gdbstub related, This includes more testing,
a new unix socket mode for linux-user to support the testing and a few
other bits and pieces.

The following patches need review:

 - tests/tcg: add a multiarch linux-user gdb test
 - tests/guest-debug: use the unix socket for linux-user tests
 - gdbstub/linux-user: support debugging over a unix socket
 - gdbstub: eliminate gdbserver_fd global
 - tests/tcg: drop inferior.was_attached() test
 - tests/tcg: better trap gdb failures
 - configure: favour gdb-multiarch if we have it

Alex Bennée (7):
  configure: favour gdb-multiarch if we have it
  tests/tcg: better trap gdb failures
  tests/tcg: drop inferior.was_attached() test
  gdbstub: eliminate gdbserver_fd global
  gdbstub/linux-user: support debugging over a unix socket
  tests/guest-debug: use the unix socket for linux-user tests
  tests/tcg: add a multiarch linux-user gdb test

KONRAD Frederic (1):
  target/m68k: fix gdb for m68xxx

Philippe Mathieu-Daudé (1):
  gdbstub: Introduce gdb_get_float64() to get 64-bit float registers

 configure                                   |   4 +-
 include/exec/gdbstub.h                      |  25 +++-
 bsd-user/main.c                             |   8 +-
 gdbstub.c                                   | 119 ++++++++++++++++----
 linux-user/main.c                           |  12 +-
 target/m68k/cpu.c                           |  52 ++++++---
 target/m68k/helper.c                        |   3 +-
 target/ppc/gdbstub.c                        |   4 +-
 target/ppc/translate_init.inc.c             |   2 +-
 gdb-xml/m68k-core.xml                       |  29 +++++
 tests/guest-debug/run-test.py               |  30 ++++-
 tests/tcg/aarch64/Makefile.target           |   5 +-
 tests/tcg/aarch64/gdbstub/test-sve-ioctl.py |   4 -
 tests/tcg/aarch64/gdbstub/test-sve.py       |   4 -
 tests/tcg/cris/Makefile.target              |   1 +
 tests/tcg/multiarch/Makefile.target         |  14 +++
 tests/tcg/multiarch/gdbstub/sha1.py         |  81 +++++++++++++
 17 files changed, 323 insertions(+), 74 deletions(-)
 create mode 100644 gdb-xml/m68k-core.xml
 create mode 100644 tests/tcg/multiarch/gdbstub/sha1.py

-- 
2.20.1


Re: [PATCH v1 0/9] gdbstub/next
Posted by no-reply@patchew.org 4 years ago
Patchew URL: https://patchew.org/QEMU/20200430190122.4592-1-alex.bennee@linaro.org/



Hi,

This series seems to have some coding style problems. See output below for
more information:

Message-id: 20200430190122.4592-1-alex.bennee@linaro.org
Subject: [PATCH  v1 0/9] gdbstub/next
Type: series

=== TEST SCRIPT BEGIN ===
#!/bin/bash
git rev-parse base > /dev/null || exit 0
git config --local diff.renamelimit 0
git config --local diff.renames True
git config --local diff.algorithm histogram
./scripts/checkpatch.pl --mailback base..
=== TEST SCRIPT END ===

From https://github.com/patchew-project/qemu
 * [new tag]         patchew/20200430190122.4592-1-alex.bennee@linaro.org -> patchew/20200430190122.4592-1-alex.bennee@linaro.org
Switched to a new branch 'test'
cbeaa01 target/m68k: fix gdb for m68xxx
0ef9fc4 tests/tcg: add a multiarch linux-user gdb test
2eaef59 tests/guest-debug: use the unix socket for linux-user tests
c0635bc gdbstub/linux-user: support debugging over a unix socket
bc7fbda gdbstub: eliminate gdbserver_fd global
9fc5b1f tests/tcg: drop inferior.was_attached() test
d5abc1a tests/tcg: better trap gdb failures
43ab101 gdbstub: Introduce gdb_get_float64() to get 64-bit float registers
b2085b3 configure: favour gdb-multiarch if we have it

=== OUTPUT BEGIN ===
1/9 Checking commit b2085b336372 (configure: favour gdb-multiarch if we have it)
2/9 Checking commit 43ab101ae057 (gdbstub: Introduce gdb_get_float64() to get 64-bit float registers)
3/9 Checking commit d5abc1a10211 (tests/tcg: better trap gdb failures)
4/9 Checking commit 9fc5b1f56fbd (tests/tcg: drop inferior.was_attached() test)
5/9 Checking commit bc7fbda9f7e4 (gdbstub: eliminate gdbserver_fd global)
ERROR: suspect code indent for conditional statements (2, 6)
#34: FILE: gdbstub.c:2965:
+  if (gdbserver_state.fd < 0) {
       return;

total: 1 errors, 0 warnings, 74 lines checked

Patch 5/9 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.

6/9 Checking commit c0635bc3b0e0 (gdbstub/linux-user: support debugging over a unix socket)
ERROR: suspect code indent for conditional statements (2, 6)
#67: FILE: gdbstub.c:2966:
+  if (gdbserver_state.socket_path) {
+      unlink(gdbserver_state.socket_path);

ERROR: space required before the open parenthesis '('
#93: FILE: gdbstub.c:3088:
+    for(;;) {

total: 2 errors, 0 warnings, 220 lines checked

Patch 6/9 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.

7/9 Checking commit 2eaef5943ca6 (tests/guest-debug: use the unix socket for linux-user tests)
8/9 Checking commit 0ef9fc4e47a9 (tests/tcg: add a multiarch linux-user gdb test)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#75: 
new file mode 100644

total: 0 errors, 1 warnings, 124 lines checked

Patch 8/9 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
9/9 Checking commit cbeaa014520b (target/m68k: fix gdb for m68xxx)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#51: 
new file mode 100644

total: 0 errors, 1 warnings, 105 lines checked

Patch 9/9 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
=== OUTPUT END ===

Test command exited with code: 1


The full log is available at
http://patchew.org/logs/20200430190122.4592-1-alex.bennee@linaro.org/testing.checkpatch/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to patchew-devel@redhat.com