* linux-thread-db.c (add_thread_db_info): Delete unused variable.
(thread_from_lwp): Delete unused variable.
(enable_thread_event_reporting): Delete unused variable.
(check_for_thread_db): Delete unused variables.
(thread_db_find_new_threads_2): Delete unused variable.
* linux-fork.c (info_checkpoints_command): Delete unused variables.
(checkpoint_command): Delete unused variable.
(linux_fork_context): Delete unused variables.
2010-05-05 Michael Snyder <msnyder@vmware.com>
2010-05-05 Michael Snyder <msnyder@vmware.com>
+ * linux-thread-db.c (add_thread_db_info): Delete unused variable.
+ (thread_from_lwp): Delete unused variable.
+ (enable_thread_event_reporting): Delete unused variable.
+ (check_for_thread_db): Delete unused variables.
+ (thread_db_find_new_threads_2): Delete unused variable.
+
+ * linux-fork.c (info_checkpoints_command): Delete unused variables.
+ (checkpoint_command): Delete unused variable.
+ (linux_fork_context): Delete unused variables.
+
* linux-nat.c (top level): Delete unused global variable.
(linux_tracefork_child): Delete unused variable.
(linux_child_follow_fork): Delete unused variable.
* linux-nat.c (top level): Delete unused global variable.
(linux_tracefork_child): Delete unused variable.
(linux_child_follow_fork): Delete unused variable.
info_checkpoints_command (char *arg, int from_tty)
{
struct gdbarch *gdbarch = get_current_arch ();
info_checkpoints_command (char *arg, int from_tty)
{
struct gdbarch *gdbarch = get_current_arch ();
- struct frame_info *cur_frame;
struct symtab_and_line sal;
struct symtab_and_line sal;
- struct symtab *cur_symtab;
ULONGEST pc;
int requested = -1;
struct fork_info *printed = NULL;
ULONGEST pc;
int requested = -1;
struct fork_info *printed = NULL;
struct fork_info *fp;
pid_t retpid;
struct cleanup *old_chain;
struct fork_info *fp;
pid_t retpid;
struct cleanup *old_chain;
/* Make the inferior fork, record its (and gdb's) state. */
/* Make the inferior fork, record its (and gdb's) state. */
{
/* Now we attempt to switch processes. */
struct fork_info *oldfp;
{
/* Now we attempt to switch processes. */
struct fork_info *oldfp;
- ptid_t ptid;
- int id, i;
gdb_assert (newfp != NULL);
gdb_assert (newfp != NULL);
static struct thread_db_info *
add_thread_db_info (void *handle)
{
static struct thread_db_info *
add_thread_db_info (void *handle)
{
struct thread_db_info *info;
info = xcalloc (1, sizeof (*info));
struct thread_db_info *info;
info = xcalloc (1, sizeof (*info));
{
td_thrhandle_t th;
td_err_e err;
{
td_thrhandle_t th;
td_err_e err;
struct thread_db_info *info;
struct thread_get_info_inout io = {0};
struct thread_db_info *info;
struct thread_get_info_inout io = {0};
enable_thread_event_reporting (void)
{
td_thr_events_t events;
enable_thread_event_reporting (void)
{
td_thr_events_t events;
td_err_e err;
#ifdef HAVE_GNU_LIBC_VERSION_H
const char *libc_version;
td_err_e err;
#ifdef HAVE_GNU_LIBC_VERSION_H
const char *libc_version;
void
check_for_thread_db (void)
{
void
check_for_thread_db (void)
{
- td_err_e err;
- static void *last_loaded;
-
/* Do nothing if we couldn't load libthread_db.so.1. */
if (!thread_db_load ())
return;
/* Do nothing if we couldn't load libthread_db.so.1. */
if (!thread_db_load ())
return;
find_new_threads_once (info, 0, &err);
if (err != TD_OK)
error (_("Cannot find new threads: %s"), thread_db_err_str (err));
find_new_threads_once (info, 0, &err);
if (err != TD_OK)
error (_("Cannot find new threads: %s"), thread_db_err_str (err));