[darwin/gdb] Use <setjmp.h> instead of <machine/setjmp.h>
[external/binutils.git] / gdb / ChangeLog
1 2015-01-12  James Clarke  <jrtc27@jrtc27.com>  (tiny patch)
2
3         PR gdb/17046
4         * darwin-nat.c: Replace <machine/setjmp.h> #include by
5         <setjmp.h> #include.
6
7 2015-01-11  Doug Evans  <xdje42@gmail.com>
8
9         * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
10
11 2015-01-11  Doug Evans  <xdje42@gmail.com>
12
13         PR gdb/15830
14         * NEWS: The "maint demangle" command is renamed as "demangle".
15         * demangle.c: #include cli/cli-utils.h, language.h.
16         (demangle_command): New function.
17         (_initialize_demangle): Add new command "demangle".
18         * maint.c (maintenance_demangle): Stub out.
19         (_initialize_maint_cmds): Update help text for "maint demangle",
20         and mark as deprecated.
21
22 2015-01-11  Mark Kettenis  <kettenis@gnu.org>
23
24         * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
25         inferior_thread is a function.
26
27 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
28
29         * Makefile.in (.y.c): Don't munge yacc's #line
30         directives.
31
32 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
33
34         * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
35         to prompt for input.
36         * tui/tui-hooks.c (tui_query_hook): Remove.
37         (tui_install_hooks): Don't set deprecated_query_hook.
38         * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
39         height calculation.  Always update the command window's cur_line.
40
41 2015-01-09  Pedro Alves  <palves@redhat.com>
42
43         * breakpoint.c (hardware_breakpoint_inserted_here_p): New
44         function.
45         * breakpoint.h (hardware_breakpoint_inserted_here_p): New
46         declaration.
47         * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
48         (linux_resume_one_lwp): Store the thread's PC.  Adjust to clear
49         stop_reason.
50         (check_stopped_by_watchpoint): New function.
51         (save_sigtrap): Reimplement.
52         (linux_nat_stopped_by_watchpoint): Adjust.
53         (linux_nat_lp_status_is_event): Delete.
54         (stop_wait_callback): Only call save_sigtrap after storing the
55         pending status.
56         (status_callback): If the thread had been stopped for a breakpoint
57         that has since been removed, discard the event and resume the LWP.
58         (count_events_callback, select_event_lwp_callback): Use
59         lwp_status_pending_p instead of linux_nat_lp_status_is_event.
60         (cancel_breakpoint): Rename to ...
61         (check_stopped_by_breakpoint): ... this.  Record whether the LWP
62         stopped for a software breakpoint or hardware breakpoint.
63         (select_event_lwp): Only give preference to the stepping LWP in
64         all-stop mode.  Adjust comments.
65         (stop_and_resume_callback): Remove references to new_pending_p.
66         (linux_nat_filter_event): Likewise.  Leave exit events of the
67         leader thread pending here.  Handle signal short circuiting here.
68         Only call save_sigtrap after storing the pending waitstatus.
69         (linux_nat_wait_1): Remove 'retry' label.  Remove references to
70         new_pending.  Don't handle leaving events the caller is not
71         interested in pending here, nor handle signal short-circuiting
72         here.  Also give equal priority to all LWPs that have had events
73         in non-stop mode.  If reporting a software breakpoint event,
74         unadjust the LWP's PC.
75         * linux-nat.h (enum lwp_stop_reason): New.
76         (struct lwp_info) <stop_pc>: New field.
77         (struct lwp_info) <stopped_by_watchpoint>: Delete field.
78         (struct lwp_info) <stop_reason>: New field.
79         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
80
81 2015-01-09  Pedro Alves  <palves@redhat.com>
82
83         * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
84         Set the LWP's 'resumed' flag.
85
86 2015-01-09  Pedro Alves  <palves@redhat.com>
87
88         * linux-nat.c (linux_resume_one_lwp): New function.
89         (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
90         (linux_nat_resume): Use lwp_status_pending_p and
91         linux_resume_one_lwp.
92         (linux_handle_syscall_trap): Use linux_resume_one_lwp.
93         (linux_handle_extended_wait): Use linux_resume_one_lwp.
94         (status_callback, running_callback): Use lwp_status_pending_p.
95         (lwp_status_pending_p): New function.
96         (stop_and_resume_callback): Use lwp_status_pending_p.
97         (linux_nat_filter_event): Use linux_resume_one_lwp.
98         (linux_nat_wait_1): Always use status_callback to look for an LWP
99         with a pending status.  Use linux_resume_one_lwp.
100         (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
101         linux_resume_one_lwp.
102
103 2015-01-09  Pedro Alves  <palves@redhat.com>
104
105         * breakpoint.c (bp_location_inserted_here_p): New function,
106         factored out from ...
107         (breakpoint_inserted_here_p): ... here.  Use
108         ALL_BP_LOCATIONS_AT_ADDR.
109         (software_breakpoint_inserted_here_p): Use
110         bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
111
112 2014-01-09  Pedro Alves  <palves@redhat.com>
113
114         Skip enabling event reporting if the kernel supports
115         PTRACE_EVENT_CLONE.
116         * linux-thread-db.c: Include "nat/linux-ptrace.h".
117         (thread_db_use_events): New function.
118         (try_thread_db_load_1): Check thread_db_use_events before enabling
119         event reporting.
120         (update_thread_state): New function.
121         (attach_thread): Use it.  Check thread_db_use_events before
122         enabling event reporting.
123         (thread_db_detach): Check thread_db_use_events before disabling
124         event reporting.
125         (find_new_threads_callback): Check thread_db_use_events before
126         enabling event reporting.  Update the thread's state if not using
127         libthread_db events.
128
129 2015-01-09  Pedro Alves  <palves@redhat.com>
130
131         * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
132         about to wait for is > 0.
133         * linux-thread-db.c (find_new_threads_callback): Ignore thread if
134         the kernel thread ID is -1.
135
136 2015-01-09  Pedro Alves  <palves@redhat.com>
137
138         * linux-nat.c (attach_proc_task_lwp_callback): New function.
139         (linux_nat_attach): Use linux_proc_attach_tgid_threads.
140         (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
141         ptrace option flags.
142         * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
143         field.
144         * nat/linux-procfs.c: Include <dirent.h>.
145         (linux_proc_get_int): New parameter "warn".  Handle it.
146         (linux_proc_get_tgid): Adjust.
147         (linux_proc_get_tracerpid): Rename to ...
148         (linux_proc_get_tracerpid_nowarn): ... this.
149         (linux_proc_pid_get_state): New function, factored out from
150         (linux_proc_pid_has_state): ... this.  Add new parameter "warn"
151         and handle it.
152         (linux_proc_pid_is_gone): New function.
153         (linux_proc_pid_is_stopped): Adjust.
154         (linux_proc_pid_is_zombie_maybe_warn)
155         (linux_proc_pid_is_zombie_nowarn): New functions.
156         (linux_proc_pid_is_zombie): Use
157         linux_proc_pid_is_zombie_maybe_warn.
158         (linux_proc_attach_tgid_threads): New function.
159         * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
160         (linux_proc_get_tracerpid): Rename to ...
161         (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
162         (linux_proc_pid_is_gone): New declaration.
163         (linux_proc_pid_is_zombie): Update comment.
164         (linux_proc_pid_is_zombie_nowarn): New declaration.
165         (linux_proc_attach_lwp_func): New typedef.
166         (linux_proc_attach_tgid_threads): New declaration.
167         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
168         use nowarn functions.
169         (linux_ptrace_attach_fail_reason_string): Move here from
170         gdbserver/linux-low.c and rename.
171         (ptrace_supports_feature): If the current ptrace options are not
172         known yet, check them now, instead of asserting.
173         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
174         Declare.
175
176 2015-01-09  Pedro Alves  <palves@redhat.com>
177
178         * linux-thread-db.c (thread_db_find_new_threads_silently)
179         (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
180         (find_new_threads_once): Print debug output on gdb_stdlog.
181
182 2015-01-09  Chen Gang  <gang.chen.5i5j@gmail.com>
183             Pedro Alves  <palves@redhat.com>
184
185         * compile/compile.c: Include "gdb_wait.h".
186         (do_rmdir): Check return value, and free 'zap'.
187
188 2015-01-08  Pedro Alves  <palves@redhat.com>
189             Yao Qi  <yao@codesourcery.com>
190
191         * dwarf2loc.c (indirect_pieced_value): Don't call
192         gdb_sign_extend.  Call extract_signed_integer instead.
193         * utils.c (gdb_sign_extend): Remove.
194         * utils.h (gdb_sign_extend): Remove declaration.
195
196 2015-01-07  Pierre Muller  <muller@sourceware.org>
197
198         PR symtab/17811
199         * stabsread.c (define_symbol): Set language for C++ special symbols.
200
201 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
202
203         * inflow.c (initial_gdb_ttystate): Tweak comment.
204
205 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
206
207         * inflow.c (set_initial_gdb_ttystate): Add empty line after
208         comment documenting function.
209
210 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
211
212         * terminal.h (set_initial_gdb_ttystate): Declare.
213         * inflow.c (initial_gdb_ttystate): New static variable.
214         (set_initial_gdb_ttystate): New setter.
215         (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
216         instead of our current terminal state.
217         * top.c (gdb_init): Call set_initial_gdb_ttystate.
218
219 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
220
221         * guile/scm-type.c (tyscm_array_1): Add comment.
222         * python/py-type.c (typy_array_1): Add comment.
223
224 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
225
226         * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
227         error if N2 is equal to N1 - 1.
228
229 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
230
231         * python/py-type.c (typy_array_1): Do not raise negative-length
232         exception if N2 is equal to N1 - 1.
233
234 2015-01-03  Doug Evans  <xdje42@gmail.com>
235
236         * c-exp.y: Whitespace cleanup.
237         (classify_inner_name): Remove extra ;.
238
239 2015-01-02  Maciej W. Rozycki  <macro@codesourcery.com>
240
241         * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
242         offset signed.
243
244 2015-01-02  Doug Evans  <dje@google.com>
245
246         * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
247
248 2015-01-02  Doug Evans  <dje@google.com>
249
250         * symtab.h (struct symbol): Fix typo in comment.
251
252 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
253
254         Update year range in copyright notice of all files.
255
256 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
257
258         * top.c (print_gdb_version): Update copyright year to 2015.
259
260 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
261
262         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
263
264 For older changes see ChangeLog-2014.
265 \f
266 Local Variables:
267 mode: change-log
268 left-margin: 8
269 fill-column: 74
270 version-control: never
271 coding: utf-8
272 End: