* [pushed] Fix error message in compile-object-load.c
@ 2020-03-25 17:27 Tom Tromey
0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2020-03-25 17:27 UTC (permalink / raw)
To: gdb-patches; +Cc: Tom Tromey
I noticed that an error message in compile-object-load.c mentions the
wrong symbol name. The loop just above the error is looking for
COMPILE_I_EXPR_VAL, but the error references COMPILE_I_EXPR_PTR_TYPE.
I'm checking this in as obvious. I don't have a test case -- I
noticed it because another patch I'm working on caused this error to
be thrown, but that was due to regression in my patch.
gdb/ChangeLog
2020-03-25 Tom Tromey <tom@tromey.com>
* compile/compile-object-load.c (get_out_value_type): Mention
correct symbol name in error message.
---
gdb/ChangeLog | 5 +++++
gdb/compile/compile-object-load.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/gdb/compile/compile-object-load.c b/gdb/compile/compile-object-load.c
index 8106a56902f..3fe95183e32 100644
--- a/gdb/compile/compile-object-load.c
+++ b/gdb/compile/compile-object-load.c
@@ -439,7 +439,7 @@ get_out_value_type (struct symbol *func_sym, struct objfile *objfile,
break;
}
if (block_loop == nblocks)
- error (_("No \"%s\" symbol found"), COMPILE_I_EXPR_PTR_TYPE);
+ error (_("No \"%s\" symbol found"), COMPILE_I_EXPR_VAL);
gdb_type = SYMBOL_TYPE (gdb_val_sym);
gdb_type = check_typedef (gdb_type);
--
2.17.2
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-03-25 17:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-25 17:27 [pushed] Fix error message in compile-object-load.c Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).