diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2024-08-05 11:24:36 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2024-08-12 09:45:51 -0400 |
commit | 7ee8372bdbd218295ca6147ef31174ad827a00cb (patch) | |
tree | a375315572cc892338f4a8fa87d0590cc8bda7af /gdb | |
parent | 3338faa385acab7503cb1dd973e633c8020e5acd (diff) | |
download | gdb-7ee8372bdbd218295ca6147ef31174ad827a00cb.zip gdb-7ee8372bdbd218295ca6147ef31174ad827a00cb.tar.gz gdb-7ee8372bdbd218295ca6147ef31174ad827a00cb.tar.bz2 |
gdb: rename target-delegates.c to target-delegates-gen.c
Following this suggestion:
https://inbox.sourceware.org/gdb-patches/2a0520ec-ccfe-4fc3-b051-7b8c60294de5@efficios.com/T/#md537792a1871addf153f3e406224f9baf025414a
Change-Id: I30988c46505f130ca16155891958f92621cada97
Approved-By: John Baldwin <jhb@FreeBSD.org>
Approved-By: Andrew Burgess <aburgess@redhat.com>
Diffstat (limited to 'gdb')
-rwxr-xr-x | gdb/make-target-delegates.py | 2 | ||||
-rw-r--r-- | gdb/target-debug.h | 6 | ||||
-rw-r--r-- | gdb/target-delegates-gen.c (renamed from gdb/target-delegates.c) | 0 | ||||
-rw-r--r-- | gdb/target.c | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/gdb/make-target-delegates.py b/gdb/make-target-delegates.py index bfcf7fa..fc69cb3 100755 --- a/gdb/make-target-delegates.py +++ b/gdb/make-target-delegates.py @@ -362,7 +362,7 @@ for current_line in scan_target_h(): delegators.append(name) -with open("target-delegates.c", "w") as f: +with open("target-delegates-gen.c", "w") as f: print( gdbcopyright.copyright( "make-target-delegates.py", "Boilerplate target methods for GDB" diff --git a/gdb/target-debug.h b/gdb/target-debug.h index b5eb338..bba51eb 100644 --- a/gdb/target-debug.h +++ b/gdb/target-debug.h @@ -26,7 +26,7 @@ behavior is needed. References to these printers are automatically generated by - make-target-delegates. See the generated file target-delegates.c. + make-target-delegates. See the generated file target-delegates-gen.c. In a couple cases, a special printing function is defined and then used via the TARGET_DEBUG_PRINTER macro. See target.h. @@ -46,8 +46,8 @@ #include "target/waitstatus.h" /* The functions defined in this header file are not marked "inline", such - that any function not used by target-delegates.c (the only user of this file) - will be flagged as unused. */ + that any function not used by target-delegates-gen.c (the only user of this + file) will be flagged as unused. */ static std::string target_debug_print_target_object (target_object object) diff --git a/gdb/target-delegates.c b/gdb/target-delegates-gen.c index dd20e14..dd20e14 100644 --- a/gdb/target-delegates.c +++ b/gdb/target-delegates-gen.c diff --git a/gdb/target.c b/gdb/target.c index a80b133..47f09f5 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -3698,7 +3698,7 @@ dummy_make_corefile_notes (struct target_ops *self, return NULL; } -#include "target-delegates.c" +#include "target-delegates-gen.c" /* The initial current target, so that there is always a semi-valid current target. */ |