forked from Imagelibrary/binutils-gdb
Remove cleanups from link_callbacks_einfo
This removes a cleanup from link_callbacks_einfo by using std::string. gdb/ChangeLog 2017-11-04 Tom Tromey <tom@tromey.com> * compile/compile-object-load.c (link_callbacks_einfo): Use std::string.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2017-11-04 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
|
* compile/compile-object-load.c (link_callbacks_einfo): Use
|
||||||
|
std::string.
|
||||||
|
|
||||||
2017-11-04 Tom Tromey <tom@tromey.com>
|
2017-11-04 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
* dwarf2read.c (process_full_comp_unit, process_full_type_unit):
|
* dwarf2read.c (process_full_comp_unit, process_full_type_unit):
|
||||||
|
|||||||
@@ -281,18 +281,13 @@ static void link_callbacks_einfo (const char *fmt, ...)
|
|||||||
static void
|
static void
|
||||||
link_callbacks_einfo (const char *fmt, ...)
|
link_callbacks_einfo (const char *fmt, ...)
|
||||||
{
|
{
|
||||||
struct cleanup *cleanups;
|
|
||||||
va_list ap;
|
va_list ap;
|
||||||
char *str;
|
|
||||||
|
|
||||||
va_start (ap, fmt);
|
va_start (ap, fmt);
|
||||||
str = xstrvprintf (fmt, ap);
|
std::string str = string_vprintf (fmt, ap);
|
||||||
va_end (ap);
|
va_end (ap);
|
||||||
cleanups = make_cleanup (xfree, str);
|
|
||||||
|
|
||||||
warning (_("Compile module: warning: %s"), str);
|
warning (_("Compile module: warning: %s"), str.c_str ());
|
||||||
|
|
||||||
do_cleanups (cleanups);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Helper for bfd_get_relocated_section_contents.
|
/* Helper for bfd_get_relocated_section_contents.
|
||||||
|
|||||||
Reference in New Issue
Block a user