aboutsummaryrefslogtreecommitdiff
path: root/gdb/utils.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2019-04-11 13:00:48 -0600
committerTom Tromey <tromey@adacore.com>2019-04-11 13:00:48 -0600
commit02cf60c7a42710ee0364698c436b6ca5e771374b (patch)
treefd52f3b13a43822ab68e3958bcc004ae6a1904f7 /gdb/utils.c
parentc0b4cd465573f1772927cb3ad5d6e7d17af21622 (diff)
downloadgdb-02cf60c7a42710ee0364698c436b6ca5e771374b.zip
gdb-02cf60c7a42710ee0364698c436b6ca5e771374b.tar.gz
gdb-02cf60c7a42710ee0364698c436b6ca5e771374b.tar.bz2
Make "msg" const in internal_vproblem
I noticed that the "msg" variable in internal_vproblem could be "const". This seems like an improvement because it can wind up in rodata. Tested by rebuilding. gdb/ChangeLog 2019-04-11 Tom Tromey <tromey@adacore.com> * utils.c (internal_vproblem): Make "msg" const.
Diffstat (limited to 'gdb/utils.c')
-rw-r--r--gdb/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/utils.c b/gdb/utils.c
index 840779a..700f54f 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -300,7 +300,7 @@ internal_vproblem (struct internal_problem *problem,
/* Don't allow infinite error/warning recursion. */
{
- static char msg[] = "Recursive internal problem.\n";
+ static const char msg[] = "Recursive internal problem.\n";
switch (dejavu)
{