aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2024-07-31 14:34:53 -0400
committerSimon Marchi <simon.marchi@efficios.com>2024-08-05 10:41:45 -0400
commit61fd04f37c570b19f939641dde582b59e1aef2ac (patch)
treed01538475b133515223a46920d9d98ce76f762e9
parentb43f37b77fd5d47466c7f35ec9acde68908d7aeb (diff)
downloadgdb-61fd04f37c570b19f939641dde582b59e1aef2ac.zip
gdb-61fd04f37c570b19f939641dde582b59e1aef2ac.tar.gz
gdb-61fd04f37c570b19f939641dde582b59e1aef2ac.tar.bz2
gdb: rename gdbarch.c to gdbarch-gen.c
For clarity and symmetry with `gdbarch-gen.h`. I wouldn't mind if all generated files had the `-gen` suffix. Change-Id: Icb70194fb0e3e2fa9d1c6f0d9331be09b805b428 Approved-By: John Baldwin <jhb@FreeBSD.org>
-rw-r--r--gdb/arch-utils.c2
-rw-r--r--gdb/gdbarch-gen.c (renamed from gdb/gdbarch.c)0
-rwxr-xr-xgdb/gdbarch.py2
3 files changed, 2 insertions, 2 deletions
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c
index fb5634d..13984eb 100644
--- a/gdb/arch-utils.c
+++ b/gdb/arch-utils.c
@@ -1192,7 +1192,7 @@ pstring_list (const char *const *list)
return ret;
}
-#include "gdbarch.c"
+#include "gdbarch-gen.c"
enum return_value_convention
default_gdbarch_return_value
diff --git a/gdb/gdbarch.c b/gdb/gdbarch-gen.c
index 58e9ebb..58e9ebb 100644
--- a/gdb/gdbarch.c
+++ b/gdb/gdbarch-gen.c
diff --git a/gdb/gdbarch.py b/gdb/gdbarch.py
index 4b4db66..19a888e 100755
--- a/gdb/gdbarch.py
+++ b/gdb/gdbarch.py
@@ -119,7 +119,7 @@ with open("gdbarch-gen.h", "w") as f:
file=f,
)
-with open("gdbarch.c", "w") as f:
+with open("gdbarch-gen.c", "w") as f:
print(copyright, file=f)
print(file=f)
print(file=f)