From: Keith Seitz <keiths@redhat.com>
To: Tom Tromey <tom@tromey.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH 1/6] Add check-gdbarch.py
Date: Thu, 5 Dec 2024 14:47:24 -0800 [thread overview]
Message-ID: <f9c4aa10-ec68-411c-8f41-1260203ca924@redhat.com> (raw)
In-Reply-To: <20241104-check-unused-gdbarch-v1-1-7082f2121077@tromey.com>
Hi,
On 11/4/24 1:14 PM, Tom Tromey wrote:
> This adds a new check-gdbarch.py script. This script checks the
> sources to see which gdbarch methods are set but never called, and
> which ones are called but never set.
While I was playing with this, I (naively?) tried to run the script
from my play branch in my virgin master branch. Much to my surprise,
it output exactly the same output as when it was run in my play
branch (which contains this entire series).
Do we care? If not, please feel free to ignore this.
It's a pretty easy thing to change:
diff --git a/gdb/check-gdbarch.py b/gdb/check-gdbarch.py
index 6f2983c7984..da27c481017 100755
--- a/gdb/check-gdbarch.py
+++ b/gdb/check-gdbarch.py
@@ -21,9 +21,14 @@
import fileinput
import glob
+import os
import re
import sys
+# Insert CWD in case this script is run from some other gdb src
+# directory.
+sys.path.insert(0, os.getcwd())
+
# gdbarch_components is imported only for its side-effect of filling
# `gdbarch_types.components`.
import gdbarch_components # noqa: F401 # type: ignore
Keith
next prev parent reply other threads:[~2024-12-05 22:48 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-04 21:14 [PATCH 0/6] Add gdbarch-checking script Tom Tromey
2024-11-04 21:14 ` [PATCH 1/6] Add check-gdbarch.py Tom Tromey
2024-12-05 22:47 ` Keith Seitz [this message]
2024-11-04 21:14 ` [PATCH 2/6] Use 'invalid' rather than 'predicate' in some gdbarch functions Tom Tromey
2024-11-04 21:14 ` [PATCH 3/6] Remove solib_symbols_extension gdbarch hook Tom Tromey
2024-11-04 21:14 ` [PATCH 4/6] Remove skip_permanent_breakpoint " Tom Tromey
2024-11-04 21:14 ` [PATCH 5/6] Remove the print_vector_info " Tom Tromey
2024-12-05 22:49 ` Keith Seitz
2024-11-04 21:14 ` [PATCH 6/6] Remove the auto_charset " Tom Tromey
2024-12-05 22:50 ` [PATCH 0/6] Add gdbarch-checking script Keith Seitz
2024-12-06 2:58 ` Sergio Durigan Junior
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=f9c4aa10-ec68-411c-8f41-1260203ca924@redhat.com \
--to=keiths@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=tom@tromey.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