GNU Binutils with patches for OS216
Révision | 09b0e4b047b44063cf4c8c00527886743619c24e (tree) |
---|---|
l'heure | 2016-11-09 00:26:44 |
Auteur | Pedro Alves <palves@redh...> |
Commiter | Pedro Alves |
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.
@@ -1,5 +1,10 @@ | ||
1 | 1 | 2016-11-08 Pedro Alves <palves@redhat.com> |
2 | 2 | |
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 | + | |
3 | 8 | * utils.c (error_stream): Use ui_file_as_string and std::string. |
4 | 9 | |
5 | 10 | 2016-11-08 Pedro Alves <palves@redhat.com> |
@@ -9584,7 +9584,7 @@ _initialize_arm_tdep (void) | ||
9584 | 9584 | const char *setdesc; |
9585 | 9585 | const char *const *regnames; |
9586 | 9586 | int i; |
9587 | - static char *helptext; | |
9587 | + static std::string helptext; | |
9588 | 9588 | char regdesc[1024], *rdptr = regdesc; |
9589 | 9589 | size_t rest = sizeof (regdesc); |
9590 | 9590 |
@@ -9655,14 +9655,14 @@ _initialize_arm_tdep (void) | ||
9655 | 9655 | _("The valid values are:\n"), |
9656 | 9656 | regdesc, |
9657 | 9657 | _("The default is \"std\".")); |
9658 | - helptext = ui_file_xstrdup (stb, NULL); | |
9658 | + helptext = ui_file_as_string (stb); | |
9659 | 9659 | ui_file_delete (stb); |
9660 | 9660 | |
9661 | 9661 | add_setshow_enum_cmd("disassembler", no_class, |
9662 | 9662 | valid_disassembly_styles, &disassembly_style, |
9663 | 9663 | _("Set the disassembly style."), |
9664 | 9664 | _("Show the disassembly style."), |
9665 | - helptext, | |
9665 | + helptext.c_str (), | |
9666 | 9666 | set_disassembly_style_sfunc, |
9667 | 9667 | NULL, /* FIXME: i18n: The disassembly style is |
9668 | 9668 | \"%s\". */ |