* [PATCH v2 1/3] MAINTAINERS: Cover the GDB Python scripts in the gdbstub section
2020-04-30 6:57 [PATCH v2 0/3] scripts: More Python fixes Philippe Mathieu-Daudé
@ 2020-04-30 6:57 ` Philippe Mathieu-Daudé
2020-04-30 7:59 ` Kevin Wolf
2020-04-30 6:57 ` [PATCH v2 2/3] scripts/qemugdb: Remove shebang header Philippe Mathieu-Daudé
2020-04-30 6:57 ` [PATCH v2 3/3] scripts/qmp: Use Python 3 interpreter Philippe Mathieu-Daudé
2 siblings, 1 reply; 6+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-04-30 6:57 UTC (permalink / raw)
To: qemu-devel
Cc: Fam Zheng, Eduardo Habkost, qemu-block,
Philippe Mathieu-Daudé,
Markus Armbruster, Philippe Mathieu-Daudé,
Alex Bennée, Stefan Hajnoczi, Cleber Rosa, John Snow
Keep an eye on these "same same, but different" files.
Acked-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
MAINTAINERS | 1 +
1 file changed, 1 insertion(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index 8cbc1fac2b..7a7f2b9c31 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -2083,6 +2083,7 @@ R: Philippe Mathieu-Daudé <philmd@redhat.com>
S: Maintained
F: gdbstub*
F: gdb-xml/
+F: scripts/qemugdb/
Memory API
M: Paolo Bonzini <pbonzini@redhat.com>
--
2.21.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH v2 1/3] MAINTAINERS: Cover the GDB Python scripts in the gdbstub section
2020-04-30 6:57 ` [PATCH v2 1/3] MAINTAINERS: Cover the GDB Python scripts in the gdbstub section Philippe Mathieu-Daudé
@ 2020-04-30 7:59 ` Kevin Wolf
2020-05-04 8:52 ` Philippe Mathieu-Daudé
0 siblings, 1 reply; 6+ messages in thread
From: Kevin Wolf @ 2020-04-30 7:59 UTC (permalink / raw)
To: Philippe Mathieu-Daudé
Cc: Fam Zheng, Eduardo Habkost, qemu-block, Alex Bennée,
Markus Armbruster, qemu-devel, Stefan Hajnoczi, Cleber Rosa,
Philippe Mathieu-Daudé
Am 30.04.2020 um 08:57 hat Philippe Mathieu-Daudé geschrieben:
> Keep an eye on these "same same, but different" files.
>
> Acked-by: Alex Bennée <alex.bennee@linaro.org>
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---
> MAINTAINERS | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 8cbc1fac2b..7a7f2b9c31 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -2083,6 +2083,7 @@ R: Philippe Mathieu-Daudé <philmd@redhat.com>
> S: Maintained
> F: gdbstub*
> F: gdb-xml/
> +F: scripts/qemugdb/
Wouldn't it make sense to add scripts/qemu-gdb.py as well?
Kevin
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2 1/3] MAINTAINERS: Cover the GDB Python scripts in the gdbstub section
2020-04-30 7:59 ` Kevin Wolf
@ 2020-05-04 8:52 ` Philippe Mathieu-Daudé
0 siblings, 0 replies; 6+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-05-04 8:52 UTC (permalink / raw)
To: Kevin Wolf
Cc: Fam Zheng, Eduardo Habkost, qemu-block, Alex Bennée,
Markus Armbruster, qemu-devel, Stefan Hajnoczi, Cleber Rosa,
Philippe Mathieu-Daudé
On 4/30/20 9:59 AM, Kevin Wolf wrote:
> Am 30.04.2020 um 08:57 hat Philippe Mathieu-Daudé geschrieben:
>> Keep an eye on these "same same, but different" files.
>>
>> Acked-by: Alex Bennée <alex.bennee@linaro.org>
>> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
>> ---
>> MAINTAINERS | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/MAINTAINERS b/MAINTAINERS
>> index 8cbc1fac2b..7a7f2b9c31 100644
>> --- a/MAINTAINERS
>> +++ b/MAINTAINERS
>> @@ -2083,6 +2083,7 @@ R: Philippe Mathieu-Daudé <philmd@redhat.com>
>> S: Maintained
>> F: gdbstub*
>> F: gdb-xml/
>> +F: scripts/qemugdb/
>
> Wouldn't it make sense to add scripts/qemu-gdb.py as well?
I agree scripts/qemu-gdb.py with scripts/qemugdb/*py, but now looking at
the files closely I don't think they belong to the gdbstub section (GDB
protocol, with no knowledge of Python), and rather deserve a new section
(GDB Python scripts, with no knowledge of GDB protocol).
I am discarding this patch.
Regards,
Phil.
>
> Kevin
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v2 2/3] scripts/qemugdb: Remove shebang header
2020-04-30 6:57 [PATCH v2 0/3] scripts: More Python fixes Philippe Mathieu-Daudé
2020-04-30 6:57 ` [PATCH v2 1/3] MAINTAINERS: Cover the GDB Python scripts in the gdbstub section Philippe Mathieu-Daudé
@ 2020-04-30 6:57 ` Philippe Mathieu-Daudé
2020-04-30 6:57 ` [PATCH v2 3/3] scripts/qmp: Use Python 3 interpreter Philippe Mathieu-Daudé
2 siblings, 0 replies; 6+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-04-30 6:57 UTC (permalink / raw)
To: qemu-devel
Cc: Fam Zheng, Eduardo Habkost, qemu-block,
Philippe Mathieu-Daudé,
Markus Armbruster, Philippe Mathieu-Daudé,
Alex Bennée, Stefan Hajnoczi, Cleber Rosa, John Snow
These scripts are loaded as plugin by GDB (and they don't
have any __main__ entry point). Remove the shebang header.
Acked-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
scripts/qemugdb/__init__.py | 3 +--
scripts/qemugdb/aio.py | 3 +--
scripts/qemugdb/coroutine.py | 3 +--
scripts/qemugdb/mtree.py | 4 +---
scripts/qemugdb/tcg.py | 1 -
5 files changed, 4 insertions(+), 10 deletions(-)
diff --git a/scripts/qemugdb/__init__.py b/scripts/qemugdb/__init__.py
index 969f552b26..da8ff612e5 100644
--- a/scripts/qemugdb/__init__.py
+++ b/scripts/qemugdb/__init__.py
@@ -1,5 +1,4 @@
-#!/usr/bin/python
-
+#
# GDB debugging support
#
# Copyright (c) 2015 Linaro Ltd
diff --git a/scripts/qemugdb/aio.py b/scripts/qemugdb/aio.py
index 2ba00c4444..d7c1ba0c28 100644
--- a/scripts/qemugdb/aio.py
+++ b/scripts/qemugdb/aio.py
@@ -1,5 +1,4 @@
-#!/usr/bin/python
-
+#
# GDB debugging support: aio/iohandler debug
#
# Copyright (c) 2015 Red Hat, Inc.
diff --git a/scripts/qemugdb/coroutine.py b/scripts/qemugdb/coroutine.py
index 41e079d0e2..db61389022 100644
--- a/scripts/qemugdb/coroutine.py
+++ b/scripts/qemugdb/coroutine.py
@@ -1,5 +1,4 @@
-#!/usr/bin/python
-
+#
# GDB debugging support
#
# Copyright 2012 Red Hat, Inc. and/or its affiliates
diff --git a/scripts/qemugdb/mtree.py b/scripts/qemugdb/mtree.py
index 3030a60d3f..8fe42c3c12 100644
--- a/scripts/qemugdb/mtree.py
+++ b/scripts/qemugdb/mtree.py
@@ -1,5 +1,4 @@
-#!/usr/bin/python
-
+#
# GDB debugging support
#
# Copyright 2012 Red Hat, Inc. and/or its affiliates
@@ -84,4 +83,3 @@ def print_item(self, ptr, offset = gdb.Value(0), level = 0):
while not isnull(subregion):
self.print_item(subregion, addr, level)
subregion = subregion['subregions_link']['tqe_next']
-
diff --git a/scripts/qemugdb/tcg.py b/scripts/qemugdb/tcg.py
index 18880fc9a7..16c03c06a9 100644
--- a/scripts/qemugdb/tcg.py
+++ b/scripts/qemugdb/tcg.py
@@ -1,4 +1,3 @@
-#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# GDB debugging support, TCG status
--
2.21.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v2 3/3] scripts/qmp: Use Python 3 interpreter
2020-04-30 6:57 [PATCH v2 0/3] scripts: More Python fixes Philippe Mathieu-Daudé
2020-04-30 6:57 ` [PATCH v2 1/3] MAINTAINERS: Cover the GDB Python scripts in the gdbstub section Philippe Mathieu-Daudé
2020-04-30 6:57 ` [PATCH v2 2/3] scripts/qemugdb: Remove shebang header Philippe Mathieu-Daudé
@ 2020-04-30 6:57 ` Philippe Mathieu-Daudé
2 siblings, 0 replies; 6+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-04-30 6:57 UTC (permalink / raw)
To: qemu-devel
Cc: Fam Zheng, Eduardo Habkost, qemu-block,
Philippe Mathieu-Daudé,
Markus Armbruster, Philippe Mathieu-Daudé,
Alex Bennée, Stefan Hajnoczi, Cleber Rosa, John Snow
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
v2: Use /usr/bin/env (jsnow)
---
scripts/qmp/qom-get | 2 +-
scripts/qmp/qom-list | 2 +-
scripts/qmp/qom-set | 2 +-
scripts/qmp/qom-tree | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/scripts/qmp/qom-get b/scripts/qmp/qom-get
index 007b4cd442..7c5ede91bb 100755
--- a/scripts/qmp/qom-get
+++ b/scripts/qmp/qom-get
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
##
# QEMU Object Model test tools
#
diff --git a/scripts/qmp/qom-list b/scripts/qmp/qom-list
index 03bda3446b..bb68fd65d4 100755
--- a/scripts/qmp/qom-list
+++ b/scripts/qmp/qom-list
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
##
# QEMU Object Model test tools
#
diff --git a/scripts/qmp/qom-set b/scripts/qmp/qom-set
index c37fe78b00..19881d85e9 100755
--- a/scripts/qmp/qom-set
+++ b/scripts/qmp/qom-set
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
##
# QEMU Object Model test tools
#
diff --git a/scripts/qmp/qom-tree b/scripts/qmp/qom-tree
index 1c8acf61e7..fa91147a03 100755
--- a/scripts/qmp/qom-tree
+++ b/scripts/qmp/qom-tree
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
##
# QEMU Object Model test tools
#
--
2.21.1
^ permalink raw reply related [flat|nested] 6+ messages in thread