libthread_db: Skip attaching to terminated and joined threads
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2015-01-09 Pedro Alves <palves@redhat.com>
2
3 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
4 about to wait for is > 0.
5 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
6 the kernel thread ID is -1.
7
8 2015-01-09 Pedro Alves <palves@redhat.com>
9
10 * linux-nat.c (attach_proc_task_lwp_callback): New function.
11 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
13 ptrace option flags.
14 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
15 field.
16 * nat/linux-procfs.c: Include <dirent.h>.
17 (linux_proc_get_int): New parameter "warn". Handle it.
18 (linux_proc_get_tgid): Adjust.
19 (linux_proc_get_tracerpid): Rename to ...
20 (linux_proc_get_tracerpid_nowarn): ... this.
21 (linux_proc_pid_get_state): New function, factored out from
22 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
23 and handle it.
24 (linux_proc_pid_is_gone): New function.
25 (linux_proc_pid_is_stopped): Adjust.
26 (linux_proc_pid_is_zombie_maybe_warn)
27 (linux_proc_pid_is_zombie_nowarn): New functions.
28 (linux_proc_pid_is_zombie): Use
29 linux_proc_pid_is_zombie_maybe_warn.
30 (linux_proc_attach_tgid_threads): New function.
31 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
32 (linux_proc_get_tracerpid): Rename to ...
33 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
34 (linux_proc_pid_is_gone): New declaration.
35 (linux_proc_pid_is_zombie): Update comment.
36 (linux_proc_pid_is_zombie_nowarn): New declaration.
37 (linux_proc_attach_lwp_func): New typedef.
38 (linux_proc_attach_tgid_threads): New declaration.
39 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
40 use nowarn functions.
41 (linux_ptrace_attach_fail_reason_string): Move here from
42 gdbserver/linux-low.c and rename.
43 (ptrace_supports_feature): If the current ptrace options are not
44 known yet, check them now, instead of asserting.
45 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
46 Declare.
47
48 2015-01-09 Pedro Alves <palves@redhat.com>
49
50 * linux-thread-db.c (thread_db_find_new_threads_silently)
51 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
52 (find_new_threads_once): Print debug output on gdb_stdlog.
53
54 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
55 Pedro Alves <palves@redhat.com>
56
57 * compile/compile.c: Include "gdb_wait.h".
58 (do_rmdir): Check return value, and free 'zap'.
59
60 2015-01-08 Pedro Alves <palves@redhat.com>
61 Yao Qi <yao@codesourcery.com>
62
63 * dwarf2loc.c (indirect_pieced_value): Don't call
64 gdb_sign_extend. Call extract_signed_integer instead.
65 * utils.c (gdb_sign_extend): Remove.
66 * utils.h (gdb_sign_extend): Remove declaration.
67
68 2015-01-07 Pierre Muller <muller@sourceware.org>
69
70 PR symtab/17811
71 * stabsread.c (define_symbol): Set language for C++ special symbols.
72
73 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
74
75 * inflow.c (initial_gdb_ttystate): Tweak comment.
76
77 2015-01-07 Joel Brobecker <brobecker@adacore.com>
78
79 * inflow.c (set_initial_gdb_ttystate): Add empty line after
80 comment documenting function.
81
82 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
83
84 * terminal.h (set_initial_gdb_ttystate): Declare.
85 * inflow.c (initial_gdb_ttystate): New static variable.
86 (set_initial_gdb_ttystate): New setter.
87 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
88 instead of our current terminal state.
89 * top.c (gdb_init): Call set_initial_gdb_ttystate.
90
91 2015-01-07 Joel Brobecker <brobecker@adacore.com>
92
93 * guile/scm-type.c (tyscm_array_1): Add comment.
94 * python/py-type.c (typy_array_1): Add comment.
95
96 2015-01-06 Joel Brobecker <brobecker@adacore.com>
97
98 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
99 error if N2 is equal to N1 - 1.
100
101 2015-01-06 Joel Brobecker <brobecker@adacore.com>
102
103 * python/py-type.c (typy_array_1): Do not raise negative-length
104 exception if N2 is equal to N1 - 1.
105
106 2015-01-03 Doug Evans <xdje42@gmail.com>
107
108 * c-exp.y: Whitespace cleanup.
109 (classify_inner_name): Remove extra ;.
110
111 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
112
113 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
114 offset signed.
115
116 2015-01-02 Doug Evans <dje@google.com>
117
118 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
119
120 2015-01-02 Doug Evans <dje@google.com>
121
122 * symtab.h (struct symbol): Fix typo in comment.
123
124 2015-01-01 Joel Brobecker <brobecker@adacore.com>
125
126 Update year range in copyright notice of all files.
127
128 2015-01-01 Joel Brobecker <brobecker@adacore.com>
129
130 * top.c (print_gdb_version): Update copyright year to 2015.
131
132 2015-01-01 Joel Brobecker <brobecker@adacore.com>
133
134 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
135
136 For older changes see ChangeLog-2014.
137 \f
138 Local Variables:
139 mode: change-log
140 left-margin: 8
141 fill-column: 74
142 version-control: never
143 coding: utf-8
144 End:
This page took 0.043258 seconds and 4 git commands to generate.