mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-02-13 13:35:56 +00:00
* event-loop.c (gdb_timer): Delete unused global.
(create_timer): Update.
This commit is contained in:
parent
24b066ba2b
commit
ae462839ef
@ -1,3 +1,8 @@
|
|||||||
|
2010-05-03 Doug Evans <dje@google.com>
|
||||||
|
|
||||||
|
* event-loop.c (gdb_timer): Delete unused global.
|
||||||
|
(create_timer): Update.
|
||||||
|
|
||||||
2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
|
2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||||
|
|
||||||
* cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
|
* cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
|
||||||
|
@ -218,8 +218,7 @@ struct gdb_timer
|
|||||||
struct gdb_timer *next;
|
struct gdb_timer *next;
|
||||||
timer_handler_func *proc; /* Function to call to do the work */
|
timer_handler_func *proc; /* Function to call to do the work */
|
||||||
gdb_client_data client_data; /* Argument to async_handler_func */
|
gdb_client_data client_data; /* Argument to async_handler_func */
|
||||||
}
|
};
|
||||||
gdb_timer;
|
|
||||||
|
|
||||||
/* List of currently active timers. It is sorted in order of
|
/* List of currently active timers. It is sorted in order of
|
||||||
increasing timers. */
|
increasing timers. */
|
||||||
@ -1188,7 +1187,7 @@ create_timer (int milliseconds, timer_handler_func * proc, gdb_client_data clien
|
|||||||
|
|
||||||
gettimeofday (&time_now, NULL);
|
gettimeofday (&time_now, NULL);
|
||||||
|
|
||||||
timer_ptr = (struct gdb_timer *) xmalloc (sizeof (gdb_timer));
|
timer_ptr = (struct gdb_timer *) xmalloc (sizeof (*timer_ptr));
|
||||||
timer_ptr->when.tv_sec = time_now.tv_sec + delta.tv_sec;
|
timer_ptr->when.tv_sec = time_now.tv_sec + delta.tv_sec;
|
||||||
timer_ptr->when.tv_usec = time_now.tv_usec + delta.tv_usec;
|
timer_ptr->when.tv_usec = time_now.tv_usec + delta.tv_usec;
|
||||||
/* carry? */
|
/* carry? */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user