Linux: on attach, attach to lwps listed under /proc/$pid/task/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
8784d563
PA
12015-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
883ed13e
PA
412015-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
1710aab8
CG
472015-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
b597c318
YQ
532015-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
025ac414
PM
612015-01-07 Pierre Muller <muller@sourceware.org>
62
63 PR symtab/17811
64 * stabsread.c (define_symbol): Set language for C++ special symbols.
65
fa5af12a
PP
662015-01-07 Patrick Palka <patrick@parcs.ath.cx>
67
68 * inflow.c (initial_gdb_ttystate): Tweak comment.
69
ea42d6f8
JB
702015-01-07 Joel Brobecker <brobecker@adacore.com>
71
72 * inflow.c (set_initial_gdb_ttystate): Add empty line after
73 comment documenting function.
74
6a06d660
PP
752015-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
e810d75b
JB
842015-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
fce10a84
JB
892015-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
8503d6e1
JB
942015-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
4d29c0a8
DE
992015-01-03 Doug Evans <xdje42@gmail.com>
100
101 * c-exp.y: Whitespace cleanup.
102 (classify_inner_name): Remove extra ;.
103
eaa6a9a4
MR
1042015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
105
106 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
107 offset signed.
108
02fe9972
DE
1092015-01-02 Doug Evans <dje@google.com>
110
111 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
112
e2ada9cb
DE
1132015-01-02 Doug Evans <dje@google.com>
114
115 * symtab.h (struct symbol): Fix typo in comment.
116
32d0add0
JB
1172015-01-01 Joel Brobecker <brobecker@adacore.com>
118
119 Update year range in copyright notice of all files.
120
76f2b779
JB
1212015-01-01 Joel Brobecker <brobecker@adacore.com>
122
123 * top.c (print_gdb_version): Update copyright year to 2015.
124
077309e2 1252015-01-01 Joel Brobecker <brobecker@adacore.com>
6bf6fd09 126
077309e2 127 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
6bf6fd09 128
077309e2 129For older changes see ChangeLog-2014.
c906108c
SS
130\f
131Local Variables:
132mode: change-log
133left-margin: 8
134fill-column: 74
135version-control: never
57da7796 136coding: utf-8
c906108c 137End:
This page took 1.725193 seconds and 4 git commands to generate.