mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 07:08:01 +08:00
* src/gdb/testsuite/gdb.base/shr1.c: Use %p in format string.
* src/gdb/testsuite/gdb.base/unload.c: Avoid warning in fprintf. * src/gdb/testsuite/gdb.base/watchpoint-solib.c: Idem.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2009-10-01 Pierre Muller <muller@ics.u-strasbg.fr>
|
||||||
|
|
||||||
|
* src/gdb/testsuite/gdb.base/shr1.c: Use %p in format string.
|
||||||
|
* src/gdb/testsuite/gdb.base/unload.c: Avoid warning in fprintf.
|
||||||
|
* src/gdb/testsuite/gdb.base/watchpoint-solib.c: Idem.
|
||||||
|
|
||||||
2009-10-01 Pierre Muller <muller@ics.u-strasbg.fr>
|
2009-10-01 Pierre Muller <muller@ics.u-strasbg.fr>
|
||||||
|
|
||||||
* gdb.base/fileio.c (test_lseek): typecast ofs_t ret variable to
|
* gdb.base/fileio.c (test_lseek): typecast ofs_t ret variable to
|
||||||
|
@ -25,7 +25,7 @@ int x;
|
|||||||
sg = 6.6;
|
sg = 6.6;
|
||||||
sgi++;
|
sgi++;
|
||||||
sgs = 8;
|
sgs = 8;
|
||||||
printf("address of sgs is 0x%x\n", &sgs);
|
printf("address of sgs is %p\n", &sgs);
|
||||||
return 2*x;
|
return 2*x;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,7 +27,6 @@
|
|||||||
# define dlsym(handle, func) GetProcAddress (handle, func)
|
# define dlsym(handle, func) GetProcAddress (handle, func)
|
||||||
#endif
|
#endif
|
||||||
#define dlclose(handle) FreeLibrary (handle)
|
#define dlclose(handle) FreeLibrary (handle)
|
||||||
#define dlerror() "error %d occurred", GetLastError ()
|
|
||||||
#else
|
#else
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
#endif
|
#endif
|
||||||
@ -53,7 +52,11 @@ int main()
|
|||||||
|
|
||||||
if (!unloadshr)
|
if (!unloadshr)
|
||||||
{
|
{
|
||||||
fprintf (stderr, dlerror ());
|
#ifdef __WIN32__
|
||||||
|
fprintf (stderr, "error %d occurred", GetLastError ());
|
||||||
|
#else
|
||||||
|
fprintf (stderr, "%s", dlerror ());
|
||||||
|
#endif
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,7 +27,6 @@
|
|||||||
# define dlsym(handle, func) GetProcAddress (handle, func)
|
# define dlsym(handle, func) GetProcAddress (handle, func)
|
||||||
#endif
|
#endif
|
||||||
#define dlclose(handle) FreeLibrary (handle)
|
#define dlclose(handle) FreeLibrary (handle)
|
||||||
#define dlerror() "error %d occurred", GetLastError ()
|
|
||||||
#else
|
#else
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
#endif
|
#endif
|
||||||
@ -42,7 +41,11 @@ void open_shlib ()
|
|||||||
|
|
||||||
if (!handle)
|
if (!handle)
|
||||||
{
|
{
|
||||||
fprintf (stderr, dlerror ());
|
#ifdef __WIN32__
|
||||||
|
fprintf (stderr, "error %d occurred", GetLastError ());
|
||||||
|
#else
|
||||||
|
fprintf (stderr, "%s", dlerror ());
|
||||||
|
#endif
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user