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