mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-10 10:35:23 +02:00
Allow debug JUnit test apps to be compiled for 64bit.
Change-Id: I57f0fd810817b660a05bfebd50f2eb6ae3420e18
This commit is contained in:
parent
38dc64f012
commit
47b003fad0
3 changed files with 7 additions and 7 deletions
|
@ -21,8 +21,8 @@ unsigned int __stdcall PrintHello(void *threadid)
|
|||
void *PrintHello(void *threadid)
|
||||
#endif
|
||||
{
|
||||
int tid = (int)threadid;
|
||||
printf("Hello World! It's me, thread #%d!\n", tid);
|
||||
long tid = (long)threadid;
|
||||
printf("Hello World! It's me, thread #%ld!\n", tid);
|
||||
SLEEP(2); // keep this thread around for a bit; the tests will check for its existence while the main thread is stopped at a breakpoint
|
||||
|
||||
#ifdef __MINGW32__
|
||||
|
|
|
@ -14,9 +14,9 @@ typedef pthread_t TID;
|
|||
#endif
|
||||
|
||||
// Set a breakpoint here so that both threads stop.
|
||||
void firstBreakpoint(int id)
|
||||
void firstBreakpoint(long id)
|
||||
{
|
||||
printf("First breakpoint method from thread %d\n", id);
|
||||
printf("First breakpoint method from thread %ld\n", id);
|
||||
}
|
||||
|
||||
|
||||
|
@ -26,7 +26,7 @@ unsigned int __stdcall PrintHello(void *threadid)
|
|||
void *PrintHello(void *threadId)
|
||||
#endif
|
||||
{
|
||||
int tId = (int)threadId;
|
||||
long tId = (long)threadId;
|
||||
firstBreakpoint(tId); // Stop a first time
|
||||
|
||||
SLEEP(1); // Keep state running a little
|
||||
|
|
|
@ -73,8 +73,8 @@ unsigned int __stdcall testTracepoints(void *threadid)
|
|||
void *testTracepoints(void *threadid)
|
||||
#endif
|
||||
{
|
||||
int tid = (int)threadid;
|
||||
printf("Hello World! It's me, thread #%d!\n", tid);
|
||||
long tid = (long)threadid;
|
||||
printf("Hello World! It's me, thread #%ld!\n", tid);
|
||||
|
||||
int lIntVar = 12345;
|
||||
double lDoubleVar = 12345.12345;
|
||||
|
|
Loading…
Add table
Reference in a new issue