mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 11:00:01 +08:00
* gdb.base/solib-disc.c (main): Make format of fprintf a string
literal. Add missing endlines to prints to stderr.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2010-03-14 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
|
* gdb.base/solib-disc.c (main): Make format of fprintf a string
|
||||||
|
literal. Add missing endlines to prints to stderr.
|
||||||
|
|
||||||
2010-03-12 Tom Tromey <tromey@redhat.com>
|
2010-03-12 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
PR c++/9708:
|
PR c++/9708:
|
||||||
|
@ -36,14 +36,14 @@ int main()
|
|||||||
handle = dlopen (SHLIB_NAME, RTLD_LAZY);
|
handle = dlopen (SHLIB_NAME, RTLD_LAZY);
|
||||||
if (!handle)
|
if (!handle)
|
||||||
{
|
{
|
||||||
fprintf (stderr, dlerror ());
|
fprintf (stderr, "%s\n", dlerror ());
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
func = (void (*)(void)) dlsym (handle, "shrfunc");
|
func = (void (*)(void)) dlsym (handle, "shrfunc");
|
||||||
if (!func)
|
if (!func)
|
||||||
{
|
{
|
||||||
fprintf (stderr, dlerror ());
|
fprintf (stderr, "%s\n", dlerror ());
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user