From: Tom de Vries <tdevries@suse.de>
To: William Ferreira <wqferr@gmail.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH v3] [gdb] Create script to convert old tests into Dwarf::assemble calls.
Date: Thu, 16 Oct 2025 08:47:51 +0200 [thread overview]
Message-ID: <9ed77b4f-d7b7-429a-ae90-2a746ce3fd99@suse.de> (raw)
In-Reply-To: <20251012211555.8103-1-wqferr@gmail.com>
On 10/12/25 11:15 PM, William Ferreira wrote:
> + sys.exit(errno.EOPNOTSUP)
Hi,
I run into:
...
$ ./gdb/contrib/dwarf-to-dwarf-assembler.py
Usage:
python ./asm_to_dwarf_assembler.py <path/to/elf/file>
Traceback (most recent call last):
File
"/data/vries/gdb/binutils-gdb.git/./gdb/contrib/dwarf-to-dwarf-assembler.py",
line 662, in main
filename = argv[1]
~~~~^^^
IndexError: list index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File
"/data/vries/gdb/binutils-gdb.git/./gdb/contrib/dwarf-to-dwarf-assembler.py",
line 680, in <module>
main(sys.argv)
~~~~^^^^^^^^^^
File
"/data/vries/gdb/binutils-gdb.git/./gdb/contrib/dwarf-to-dwarf-assembler.py",
line 666, in main
sys.exit(errno.EOPNOTSUP)
^^^^^^^^^^^^^^^
AttributeError: module 'errno' has no attribute 'EOPNOTSUP'. Did you
mean: 'EOPNOTSUPP'?
$
...
Fixed by:
...
diff --git a/gdb/contrib/dwarf-to-dwarf-assembler.py
b/gdb/contrib/dwarf-to-dwarf-assembler.py
index 4d545cf4b13..24d8e83932e 100755
--- a/gdb/contrib/dwarf-to-dwarf-assembler.py
+++ b/gdb/contrib/dwarf-to-dwarf-assembler.py
@@ -663,7 +663,7 @@ def main(argv):
except IndexError:
print("Usage:", file=sys.stderr)
print("python ./asm_to_dwarf_assembler.py <path/to/elf/file>",
file=sys.stderr)
- sys.exit(errno.EOPNOTSUP)
+ sys.exit(errno.EOPNOTSUPP)
try:
with open(filename, "rb") as elf_file:
...
after which I get:
...
$ ./gdb/contrib/dwarf-to-dwarf-assembler.py
Usage:
python ./asm_to_dwarf_assembler.py <path/to/elf/file>
$
...
Thanks,
- Tom
next prev parent reply other threads:[~2025-10-16 6:49 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-12 21:15 William Ferreira
2025-10-15 20:50 ` Tom Tromey
2025-10-15 21:10 ` William Ferreira
2025-10-16 15:52 ` Tom Tromey
2025-10-16 6:47 ` Tom de Vries [this message]
2025-10-16 7:14 ` Tom de Vries
2025-10-16 15:55 ` Tom Tromey
2025-10-20 20:52 ` William Ferreira
2025-10-21 17:17 ` Tom Tromey
2025-10-21 19:18 ` Tom de Vries
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9ed77b4f-d7b7-429a-ae90-2a746ce3fd99@suse.de \
--to=tdevries@suse.de \
--cc=gdb-patches@sourceware.org \
--cc=wqferr@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox