Patchwork FYI: Add missing i18n marker in dwarf2_evaluate_property warning message.

login
register
mail settings
Submitter Joel Brobecker
Date Feb. 2, 2015, 3:57 a.m.
Message ID <1422849466-12439-1-git-send-email-brobecker@adacore.com>
Download mbox | patch
Permalink /patch/4869/
State New
Headers show

Comments

Joel Brobecker - Feb. 2, 2015, 3:57 a.m.
gdb/ChangeLog:

        * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.

Tested by rebuilding GDB on x86_64-linux.

---
 gdb/ChangeLog   | 4 ++++
 gdb/dwarf2loc.c | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

Patch

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index eadf210..351ccdd 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@ 
 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
 
+	* dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
+
+2015-02-02  Joel Brobecker  <brobecker@adacore.com>
+
 	PR gdb/17856:
 	* ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
 	results found in the cache.
diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c
index fae67ee..fc0f112 100644
--- a/gdb/dwarf2loc.c
+++ b/gdb/dwarf2loc.c
@@ -2524,7 +2524,7 @@  dwarf2_evaluate_property (const struct dynamic_prop *prop,
 	  if (pinfo->type == baton->referenced_type)
 	    break;
 	if (pinfo == NULL)
-	  error ("cannot find reference address for offset property");
+	  error (_("cannot find reference address for offset property"));
 	val = value_at (baton->offset_info.type,
 			pinfo->addr + baton->offset_info.offset);
 	*value = value_as_address (val);