• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Révision09b0e4b047b44063cf4c8c00527886743619c24e (tree)
l'heure2016-11-09 00:26:44
AuteurPedro Alves <palves@redh...>
CommiterPedro Alves

Message de Log

Use ui_file_as_string in gdb/arm-tdep.c

gdb/ChangeLog:
2016-11-08 Pedro Alves <palves@redhat.com>

* arm-tdep.c (_initialize_arm_tdep): Use ui_file_as_string and
std::string.

Change Summary

Modification

--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
11 2016-11-08 Pedro Alves <palves@redhat.com>
22
3+ * arm-tdep.c (_initialize_arm_tdep): Use ui_file_as_string and
4+ std::string.
5+
6+2016-11-08 Pedro Alves <palves@redhat.com>
7+
38 * utils.c (error_stream): Use ui_file_as_string and std::string.
49
510 2016-11-08 Pedro Alves <palves@redhat.com>
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -9584,7 +9584,7 @@ _initialize_arm_tdep (void)
95849584 const char *setdesc;
95859585 const char *const *regnames;
95869586 int i;
9587- static char *helptext;
9587+ static std::string helptext;
95889588 char regdesc[1024], *rdptr = regdesc;
95899589 size_t rest = sizeof (regdesc);
95909590
@@ -9655,14 +9655,14 @@ _initialize_arm_tdep (void)
96559655 _("The valid values are:\n"),
96569656 regdesc,
96579657 _("The default is \"std\"."));
9658- helptext = ui_file_xstrdup (stb, NULL);
9658+ helptext = ui_file_as_string (stb);
96599659 ui_file_delete (stb);
96609660
96619661 add_setshow_enum_cmd("disassembler", no_class,
96629662 valid_disassembly_styles, &disassembly_style,
96639663 _("Set the disassembly style."),
96649664 _("Show the disassembly style."),
9665- helptext,
9665+ helptext.c_str (),
96669666 set_disassembly_style_sfunc,
96679667 NULL, /* FIXME: i18n: The disassembly style is
96689668 \"%s\". */