equal
deleted
inserted
replaced
1 --- gdb-7.6/gdb/sol-thread.c 2012-12-31 22:32:50.000000000 -0800 |
1 --- gdb-7.6/gdb/sol-thread.c 2012-12-31 22:32:50.000000000 -0800 |
2 +++ gdb-7.6/gdb/sol-thread.c 2013-08-22 12:03:52.780558508 -0700 |
2 +++ gdb-7.6/gdb/sol-thread.c 2013-08-22 12:03:52.780558508 -0700 |
|
3 @@ -588,6 +588,10 @@ |
|
4 td_err_e err; |
|
5 ptid_t ptid; |
|
6 |
|
7 + /* Don't attempt to use thread_db for remote targets. */ |
|
8 + if (!(target_can_run (¤t_target) || core_bfd)) |
|
9 + return; |
|
10 + |
|
11 /* Do nothing if we couldn't load libthread_db.so.1. */ |
|
12 if (p_td_ta_new == NULL) |
|
13 return; |
3 @@ -1224,7 +1224,7 @@ |
14 @@ -1224,7 +1224,7 @@ |
4 |
15 |
5 init_sol_thread_ops (); |
16 init_sol_thread_ops (); |
6 |
17 |
7 - dlhandle = dlopen ("libthread_db.so.1", RTLD_NOW); |
18 - dlhandle = dlopen ("libthread_db.so.1", RTLD_NOW); |