* [pushed] Constify targ_desc
@ 2026-09-03 17:11 Tom Tromey
0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2026-09-03 17:11 UTC (permalink / raw)
To: gdb-patches; +Cc: Tom Tromey
This changes the targ_desc global to use 'const'. This moves it into
the rodata section.
---
gdb/target.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdb/target.c b/gdb/target.c
index 5d937f3ae85..13a3b1d7464 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -4246,7 +4246,7 @@ target_done_generating_core (void)
\f
-static char targ_desc[] =
+static char const targ_desc[] =
"Names of targets and files being debugged.\nShows the entire \
stack of targets currently in use (including the exec-file,\n\
core-file, and process, if any), as well as the symbol file name.";
base-commit: 21e7edb10530341334a02c873aa9f7f5aeb0138a
--
2.55.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-03 17:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-03 17:11 [pushed] Constify targ_desc Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox