* gdb.base/sizeof.c (main): Cast return of sizeof to int.
* gdb.base/unload.c (main): Make format of fprintf a string
literal. Add missing endlines to prints to stderr.
* gdb.base/watchpoint-solib.c (open_shlib): Ditto.
+2010-02-17 Pedro Alves <pedro@codesourcery.com>
+
+ * gdb.base/shmain.c (main): Remove printf call.
+ * gdb.base/sizeof.c (main): Cast return of sizeof to int.
+ * gdb.base/unload.c (main): Make format of fprintf a string
+ literal. Add missing endlines to prints to stderr.
+ * gdb.base/watchpoint-solib.c (open_shlib): Ditto.
+
2010-02-17 Tom Tromey <tromey@redhat.com>
* gdb.java/jprint.java (jprint.props): New field.
g = shr2(g);
g = mainshr1(g);
sg = 1.1;
- printf("address of sg is 0x%x\n", &sg);
y.a = 3;
y.b = 4;
g = local_structarg(y);
{
fill_structs ();
- printf ("sizeof (char) == %d\n", sizeof (char));
- printf ("sizeof (short) == %d\n", sizeof (short));
- printf ("sizeof (int) == %d\n", sizeof (int));
- printf ("sizeof (long) == %d\n", sizeof (long));
- printf ("sizeof (long long) == %d\n", sizeof (long long));
-
- printf ("sizeof (void *) == %d\n", sizeof (void*));
- printf ("sizeof (void (*)(void)) == %d\n", sizeof (void (*)(void)));
-
- printf ("sizeof (float) == %d\n", sizeof (float));
- printf ("sizeof (double) == %d\n", sizeof (double));
- printf ("sizeof (long double) == %d\n", sizeof (long double));
+ printf ("sizeof (char) == %d\n", (int) sizeof (char));
+ printf ("sizeof (short) == %d\n", (int) sizeof (short));
+ printf ("sizeof (int) == %d\n", (int) sizeof (int));
+ printf ("sizeof (long) == %d\n", (int) sizeof (long));
+ printf ("sizeof (long long) == %d\n", (int) sizeof (long long));
+
+ printf ("sizeof (void *) == %d\n", (int) sizeof (void*));
+ printf ("sizeof (void (*)(void)) == %d\n", (int) sizeof (void (*)(void)));
+
+ printf ("sizeof (float) == %d\n", (int) sizeof (float));
+ printf ("sizeof (double) == %d\n", (int) sizeof (double));
+ printf ("sizeof (long double) == %d\n", (int) sizeof (long double));
/* Signed char? */
printf ("valueof ('\\377') == %d\n", '\377');
if (!handle)
{
- fprintf (stderr, dlerror ());
+ fprintf (stderr, "%s\n", dlerror ());
exit (1);
}
if (!unloadshr)
{
#ifdef __WIN32__
- fprintf (stderr, "error %d occurred", GetLastError ());
+ fprintf (stderr, "error %d occurred\n", GetLastError ());
#else
- fprintf (stderr, "%s", dlerror ());
+ fprintf (stderr, "%s\n", dlerror ());
#endif
exit (1);
}
if (!handle)
{
- fprintf (stderr, dlerror ());
+ fprintf (stderr, "%s\n", dlerror ());
exit (1);
}
if (!unloadshr)
{
#ifdef __WIN32__
- fprintf (stderr, "error %d occurred", GetLastError ());
+ fprintf (stderr, "error %d occurred\n", GetLastError ());
#else
- fprintf (stderr, "%s", dlerror ());
+ fprintf (stderr, "%s\n", dlerror ());
#endif
exit (1);
}
if (!handle)
{
#ifdef __WIN32__
- fprintf (stderr, "error %d occurred", GetLastError ());
+ fprintf (stderr, "error %d occurred\n", GetLastError ());
#else
- fprintf (stderr, "%s", dlerror ());
+ fprintf (stderr, "%s\n", dlerror ());
#endif
exit (1);
}
if (!foo)
{
- fprintf (stderr, dlerror ());
+ fprintf (stderr, "%s\n", dlerror ());
exit (1);
}