Call target_can_download_tracepoint if there are tracepoints to download
[external/binutils.git] / gdb / ChangeLog
1 2015-09-10  Yao Qi  <yao.qi@linaro.org>
2
3         * breakpoint.c (download_tracepoint_locations): New local
4         can_download_tracepoint.  Check the result of
5         target_can_download_tracepoint and save it in
6         can_download_tracepoint if there are tracepoints to download.
7         * linux-nat.h (enum tribool): Move it to ...
8         * common/common-types.h: ... here.
9
10 2015-09-09  Pedro Alves  <palves@redhat.com>
11
12         * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
13         * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
14
15 2015-09-09  Pedro Alves  <palves@redhat.com>
16
17         * continuations.c (add_continuation, restore_thread_cleanup)
18         (do_all_continuations_ptid, do_all_continuations_thread_callback)
19         (do_all_continuations_thread, do_all_continuations)
20         (discard_all_continuations_thread_callback)
21         (discard_all_continuations_thread, discard_all_continuations)
22         (add_intermediate_continuation)
23         (do_all_intermediate_continuations_thread_callback)
24         (do_all_intermediate_continuations_thread)
25         (do_all_intermediate_continuations)
26         (discard_all_intermediate_continuations_thread_callback)
27         (discard_all_intermediate_continuations_thread)
28         (discard_all_intermediate_continuations): Delete.
29         * continuations.h (add_continuation, do_all_continuations)
30         (do_all_continuations_thread, discard_all_continuations)
31         (discard_all_continuations_thread, add_intermediate_continuation)
32         (do_all_intermediate_continuations)
33         (do_all_intermediate_continuations_thread)
34         (discard_all_intermediate_continuations)
35         (discard_all_intermediate_continuations_thread): Delete
36         declarations.
37         * event-top.c (stdin_event_handler): Delete references to
38         continuations.
39         * gdbthread.h (struct thread_info): Delete continuations and
40         intermediate_continuations fields.
41         * inf-loop.c (inferior_event_handler): Remove references to
42         continuations.
43         * infrun.c (infrun_thread_stop_requested_callback): Remove
44         references to continuations.
45         * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
46         * thread.c: Don't include "continuations.h".
47         (clear_thread_inferior_resources): Remove references to
48         continuations.
49
50 2015-09-09  Pedro Alves  <palves@redhat.com>
51
52         * infcall.c (struct dummy_frame_context_saver): Delete.
53         (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
54         (dummy_frame_context_saver_drop)
55         (dummy_frame_context_saver_cleanup)
56         (dummy_frame_context_saver_get_regs)
57         (dummy_frame_context_saver_setup): Delete.
58         * infcall.h (dummy_frame_context_saver_drop)
59         (dummy_frame_context_saver_cleanup)
60         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
61         Delete.
62         (get_return_value): Remove 'ctx_saver' paremeter.  Adjust.
63         * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
64         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
65
66 2015-09-09  Pedro Alves  <palves@redhat.com>
67
68         * breakpoint.c: Include "thread-fsm.h".
69         (struct until_break_command_continuation_args): Delete.
70         (struct until_break_fsm): New.
71         (until_break_fsm_ops): New global.
72         (new_until_break_fsm, until_break_fsm_should_stop): New functions.
73         (until_break_command_continuation): Delete.
74         (until_break_fsm_clean_up): New function.
75         (until_break_fsm_async_reply_reason): New function.
76         (until_break_command): Adjust to create an until_break_fsm instead
77         of a continuation.
78         (momentary_bkpt_print_it): No longer print MI's async-stop-reason
79         here.
80         * infcmd.c (struct until_next_fsm): New.
81         (until_next_fsm_ops): New global.
82         (new_until_next_fsm, until_next_fsm_should_stop): New function.
83         (until_next_continuation): Delete.
84         (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
85         functions.
86         (until_next_command): Adjust to create a new until_next_fsm
87         instead of a continuation.
88
89 2015-09-09  Pedro Alves  <palves@redhat.com>
90
91         * infcall.c: Include thread_fsm.h.
92         (struct call_return_meta_info): New.
93         (get_call_return_value): New function, factored out from
94         call_function_by_hand_dummy.
95         (struct call_thread_fsm): New.
96         (call_thread_fsm_ops): New global.
97         (new_call_thread_fsm, call_thread_fsm_should_stop)
98         (call_thread_fsm_should_notify_stop): New functions.
99         (run_inferior_call): Add 'sm' parameter.  Associate the FSM with
100         the thread.
101         (call_function_by_hand_dummy): Create a new call_thread_fsm
102         instance, associate it with the thread, and wait for the FSM to
103         finish.  If finished successfully, fetch the function's result
104         value out of the FSM.
105         * infrun.c (fetch_inferior_event): If the FSM says the stop
106         shouldn't be notified, don't call normal_stop.
107         (maybe_remove_breakpoints): New function, factored out from ...
108         (normal_stop): ... here.  Simplify.
109         * infrun.h (maybe_remove_breakpoints): Declare.
110         * thread-fsm.c (thread_fsm_should_notify_stop): New function.
111         (thread-fsm.h) <struct thread_fsm_ops>: New field.
112         (thread_fsm_should_notify_stop): Declare.
113
114 2015-09-09  Pedro Alves  <palves@redhat.com>
115
116         * Makefile.in (COMMON_OBS): Add thread-fsm.o.
117         * breakpoint.c (handle_jit_event): Print debug output.
118         (bpstat_what): Split event callback handling to ...
119         (bpstat_run_callbacks): ... this new function.
120         (momentary_bkpt_print_it): No longer handle bp_finish here.
121         * breakpoint.h (bpstat_run_callbacks): Declare.
122         * gdbthread.h (struct thread_info) <step_multi>: Delete field.
123         <thread_fsm>: New field.
124         (thread_cancel_execution_command): Declare.
125         * infcmd.c: Include thread-fsm.h.
126         (struct step_command_fsm): New.
127         (step_command_fsm_ops): New global.
128         (new_step_command_fsm, step_command_fsm_prepare): New functions.
129         (step_1): Adjust to use step_command_fsm_prepare and
130         prepare_one_step.
131         (struct step_1_continuation_args): Delete.
132         (step_1_continuation): Delete.
133         (step_command_fsm_should_stop): New function.
134         (step_once): Delete.
135         (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
136         (prepare_one_step): New function, based on step_once.
137         (until_next_command): Remove step_multi reference.
138         (struct return_value_info): New.
139         (print_return_value): Rename to ...
140         (print_return_value_1): ... this.  New struct return_value_info
141         parameter.  Adjust.
142         (print_return_value): Reimplement as wrapper around
143         print_return_value_1.
144         (struct finish_command_fsm): New.
145         (finish_command_continuation): Delete.
146         (finish_command_fsm_ops): New global.
147         (new_finish_command_fsm, finish_command_fsm_should_stop): New
148         functions.
149         (finish_command_fsm_clean_up, finish_command_fsm_return_value):
150         New.
151         (finish_command_continuation_free_arg): Delete.
152         (finish_command_fsm_async_reply_reason): New.
153         (finish_backward, finish_forward): Change symbol parameter to a
154         finish_command_fsm.  Adjust.
155         (finish_command): Create a finish_command_fsm.  Adjust.
156         * infrun.c: Include "thread-fsm.h".
157         (clear_proceed_status_thread): Delete the thread's FSM.
158         (infrun_thread_stop_requested_callback): Cancel the thread's
159         execution command.
160         (clean_up_just_stopped_threads_fsms): New function.
161         (fetch_inferior_event): Handle the event_thread's should_stop
162         method saying the command isn't done yet.
163         (process_event_stop_test): Run breakpoint callbacks here.
164         (print_stop_event): Rename to ...
165         (print_stop_location): ... this.
166         (restore_current_uiout_cleanup): New function.
167         (print_stop_event): Reimplement.
168         (normal_stop): No longer notify the end_stepping_range observers
169         here handle "step N" nor "finish" here.  No longer call
170         print_stop_event here.
171         * infrun.h (struct return_value_info): Forward declare.
172         (print_return_value): Declare.
173         (print_stop_event): Change prototype.
174         * thread-fsm.c: New file.
175         * thread-fsm.h: New file.
176         * thread.c: Include "thread-fsm.h".
177         (thread_cancel_execution_command): New function.
178         (clear_thread_inferior_resources): Call it.
179         * cli/cli-interp.c (cli_on_normal_stop): New function.
180         (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
181         observer.
182         * mi/mi-interp.c: Include "thread-fsm.h".
183         (restore_current_uiout_cleanup): Delete.
184         (mi_on_normal_stop): If the thread has an FSM associated, and it
185         finished, ask it for the async-reply-reason to print.  Always call
186         print_stop_event here, regardless of the top-level interpreter.
187         Check bpstat_what to tell whether an asynchronous breakpoint hit
188         triggered.
189         * tui/tui-interp.c (tui_on_normal_stop): New function.
190         (tui_init): Install tui_on_normal_stop as normal_stop observer.
191
192 2015-09-09  Pedro Alves  <palves@redhat.com>
193
194         * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
195         check whether the target can async.
196         * inf-loop.c (inferior_event_handler): Only call target_async if
197         the target can async.
198         * infcall.c: Include top.h and interps.h.
199         (run_inferior_call): For the interpreter to sync mode while
200         running the infcall.  Call wait_sync_command_done instead of
201         wait_for_inferior plus normal_stop.
202         * infcmd.c (prepare_execution_command): Don't check whether the
203         target can async when running in the foreground.
204         (step_1): Delete synchronous case handling.
205         (step_once): Always install a continuation, even in sync mode.
206         (until_next_command, finish_forward): Don't check whether the
207         target can async.
208         (attach_command_post_wait, notice_new_inferior): Always install a
209         continuation, even in sync mode.
210         * infrun.c (mark_infrun_async_event_handler): New function.
211         (proceed): In sync mode, mark infrun's event source instead of
212         waiting for events here.
213         (fetch_inferior_event): If the target can't async, do a blocking
214         wait.
215         (prepare_to_wait): In sync mode, mark infrun's event source.
216         (infrun_async_inferior_event_handler): No longer bail out if the
217         target can't async.
218         * infrun.h (mark_infrun_async_event_handler): New declaration.
219         * linux-nat.c (linux_nat_wait_1): Remove calls to
220         set_sigint_trap/clear_sigint_trap.
221         (linux_nat_terminal_inferior): No longer check whether the target
222         can async.
223         * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
224         comment.
225         (mi_execute_command_input_handler): No longer check whether the
226         target is async.  Update and simplify comment.
227         * target.c (default_target_wait): New function.
228         * target.h (struct target_ops) <to_wait>: Now defaults to
229         default_target_wait.
230         (default_target_wait): Declare.
231         * top.c (wait_sync_command_done): New function, factored out from
232         ...
233         (maybe_wait_sync_command_done): ... this.
234         * top.h (wait_sync_command_done): Declare.
235         * target-delegates.c: Regenerate.
236
237 2015-09-09  Markus Metzger  <markus.t.metzger@intel.com>
238
239         * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
240         * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
241         Remove include of sys/utsname.h.
242         (linux_determine_kernel_ptr_bits): Remove.
243         (linux_determine_kernel_start): New.
244         (perf_event_is_kernel_addr): Remove tinfo argument.  Update users.
245         Update check.
246         (perf_event_skip_bts_record): Remove tinfo argument.  Update users.
247         (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
248         initialization.
249         * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
250         assignment.
251
252 2015-09-07  Pedro Alves  <palves@redhat.com>
253
254         * guile/guile-internal.h (as_a_scm_t_subr): New.
255         * guile/guile.c (misc_guile_functions): Use it.
256         * guile/scm-arch.c (arch_functions): Use it.
257         * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
258         Use it.
259         * guile/scm-breakpoint.c (breakpoint_functions): Use it.
260         * guile/scm-cmd.c (command_functions): Use it.
261         * guile/scm-disasm.c (disasm_functions): Use it.
262         * guile/scm-exception.c (exception_functions)
263         (private_exception_functions): Use it.
264         * guile/scm-frame.c (frame_functions)
265         * guile/scm-gsmob.c (gsmob_functions): Use it.
266         * guile/scm-iterator.c (iterator_functions): Use it.
267         * guile/scm-lazy-string.c (lazy_string_functions): Use it.
268         * guile/scm-math.c (math_functions): Use it.
269         * guile/scm-objfile.c (objfile_functions): Use it.
270         * guile/scm-param.c (parameter_functions): Use it.
271         * guile/scm-ports.c (port_functions, private_port_functions): Use
272         it.
273         * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
274         * guile/scm-progspace.c (pspace_functions): Use it.
275         * guile/scm-string.c (string_functions): Use it.
276         * guile/scm-symbol.c (symbol_functions): Use it.
277         * guile/scm-symtab.c (symtab_functions): Use it.
278         * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
279         it.
280         * guile/scm-value.c (value_functions): Use it.
281
282 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
283
284         * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
285         (tui_next_win): Likewise.
286         (tui_prev_win): Likewise.
287         (tui_partial_win_by_name): Likewise.
288         (tui_init_generic_part): Likewise.
289         (init_content_element): Likewise.
290         (tui_del_window): Likewise.
291         (tui_free_window): Likewise.
292         (tui_del_data_windows): Likewise.
293         (tui_free_data_content): Likewise.
294         * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
295         * tui/tui-regs.c (tui_show_register_group): Likewise.
296         * tui/tui-win.c (tui_resize_all): Likewise.
297         (tui_set_focus): Likewise.
298         (tui_set_win_height): Likewise.
299         (make_invisible_and_set_new_height): Likewise.
300         * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
301         * tui/tui-wingeneral.c (make_visible): Likewise.
302
303 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
304
305         * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
306
307 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
308
309         * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
310         pointer.
311         * dbxread.c (dbx_end_psymtab): Likewise.
312         * gnu-nat.c (gnu_write_inferior): Likewise.
313         * mdebugread.c (cross_ref): Likewise.
314         * p-valprint.c (pascal_val_print): Likewise.
315         * xcoffread.c (xcoff_end_psymtab): Likewise.
316
317 2015-09-04  Yao Qi  <yao.qi@linaro.org>
318
319         * NEWS: Mention the aarch64 multi-arch debugging support.
320
321 2015-09-03  Pierre-Marie de Rodat  <derodat@adacore.com>
322
323         * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
324         type instead of a TYPE_CODE_INT one for the string_char_type
325         and the ada_primitive_type_char types.
326
327 2015-09-03  Yao Qi  <yao.qi@linaro.org>
328
329         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
330         Move code to aarch64_linux_region_ok_for_watchpoint.  Call
331         aarch64_linux_region_ok_for_watchpoint.
332         * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
333         New function.
334         * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
335         Declare it.
336
337 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
338
339         * gdb_obstack.h (obstack_strdup): Declare.
340         * gdb_obstack.c (obstack_strdup): Define.
341         * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
342         * gdbarch.c: Regenerate.
343         * gdbarch.h: Regenerate.
344         * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
345
346 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
347
348         * gdbtypes.c (copy_type_recursive): Update documentation.
349
350 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
351
352         * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
353         as zero.
354
355 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
356
357         * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
358
359 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
360
361         * solib-svr4.c (solib_event_probe_action): Call
362         get_probe_argument_count using TRY...CATCH.
363         (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
364
365 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
366
367         * probe.h (struct probe_ops) <get_probe_argument_count,
368         evaluate_probe_argument, enable_probe, disable_probe>: Mention in
369         the comment that the function can throw an exception.
370         (get_probe_argument_count): Likewise.
371         (evaluate_probe_argument): Likewise.
372         * stap-probe.c (stap_get_opcode): Call error instead of
373         internal_error.
374         (stap_get_expected_argument_type): Likewise.  Add argument
375         'probe'.  Improve error message by mentioning the probe's name.
376         (stap_parse_probe_arguments): Adjust call to
377         stap_get_expected_argument_type.
378         (stap_get_arg): Add comment.  Assert that 'probe->args_parsed' is
379         not zero.  Call internal_error if GDB requests an argument but the
380         probe has no arguments.
381
382 2015-09-01  Pierre-Marie de Rodat  <derodat@adacore.com>
383
384         * ada-lang.c (ada_resolve_function): Do not ask the user what
385         match to use when in completion mode.
386
387 2015-08-31  Andrew Burgess  <andrew.burgess@embecosm.com>
388
389         * tui/tui-data.c (tui_win_name): Make local variable const, remove
390         cast of NULL.
391
392 2015-08-31  Max Filippov  <jcmvbkbc@gmail.com>
393
394         * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
395         call_abi using XSHAL_ABI macro.
396
397 2015-08-29  Doug Evans  <xdje42@gmail.com>
398
399         * symtab.h (struct symbol): Tweak comment.
400
401 2015-08-29  Patrick Palka  <patrick@parcs.ath.cx>
402
403         * gdbtypes.c (alloc_type_arch): Allocate the type on the given
404         gdbarch obstack instead of on the heap.  Update commentary
405         accordingly.
406
407 2015-08-28  Joel Brobecker  <brobecker@adacore.com>
408
409         GDB 7.10 released.
410
411 2015-08-28  Simon Marchi  <simon.marchi@ericsson.com>
412
413         * NEWS: Update entry about non-8-bits addressable memory.
414
415 2015-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
416
417         Revert:
418         2014-11-06  Doug Evans  <xdje42@gmail.com>
419         * solib.c (solib_global_lookup): Fetch arch from objfile,
420         not target_gdbarch.
421
422 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
423
424         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
425         attempt to relocate a TLS variable offset.
426
427 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
428
429         * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
430         registered yet.  Set inferior_ptid while calling target_read_memory.
431
432 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
433
434         * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
435         (GDB_ARCH_IS_TRAP_BRKPT): ... this.  Add __powerpc__ case.
436         * linux-nat.c (check_stopped_by_breakpoint): Use
437         GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
438
439 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
440
441         * linux-thread-db.c (thread_db_get_thread_local_address): If the
442         thread was not yet discovered, use thread_from_lwp instead of
443         calling thread_db_find_new_threads_1.
444
445 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
446
447         * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
448         statements.
449
450 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
451
452         * NEWS: Document support for non-8-bits addressable memory.
453
454 2015-08-27  Pedro Alves  <palves@redhat.com>
455
456         * configure.ac: Remove AC_TYPE_SIGNAL call.
457         * configure, config.in: Regenerate.
458
459 2015-08-27  Pedro Alves  <palves@redhat.com>
460
461         * cp-support.c (gdb_demangle): Use sighandler_t.  Remove cast.
462         * extension-priv.h: Include signal.h.
463         (struct signal_handler) <handler>: Change type to sighandler_t.
464         * extension.c (install_gdb_sigint_handler): Use sighandler_t.
465         * inflow.c (sigint_ours, sigquit_ours): Change type to
466         sighandler_t.
467         (child_terminal_inferior): Remove casts.
468         (child_terminal_ours_1, new_tty): Use sighandler_t.  Remove casts.
469         (osig): Change type to sighandler_t.
470         * nto-procfs.c (ofunc): Change type to sighandler_t.
471         (procfs_wait): Remove casts.
472         * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
473         * remote-sim.c (gdbsim_wait): Use sighandler_t.
474         * utils.c (wait_to_die_with_timeout): Use sighandler_t.
475
476 2015-08-27  Pedro Alves  <palves@redhat.com>
477
478         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
479         * gnulib/aclocal.m4: Renegerate.
480         * gnulib/config.in: Renegerate.
481         * gnulib/configure: Renegerate.
482         * gnulib/import/Makefile.am: Update.
483         * gnulib/import/Makefile.in: Regenerate.
484         * gnulib/import/m4/gnulib-cache.m4: Update.
485         * gnulib/import/m4/gnulib-comp.m4: Update.
486         * gnulib/import/m4/signal_h.m4: New file.
487         * gnulib/import/signal.in.h: New file.
488
489 2015-08-27  Pedro Alves  <palves@redhat.com>
490
491         * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
492         (MIN_MEMORY_PACKET_SIZE): New.
493         (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
494         (get_memory_packet_size): Adjust.  No longer limit the max packet
495         size.
496         (set_memory_packet_size): Adjust, and remove dead code.
497         (remote_check_symbols): Use xmalloc and a cleanup instead of
498         alloca.
499         (remote_packet_size): No longer cap the packet size.
500         (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
501
502 2015-08-26  Luis Machado  <lgustavo@codesourcery.com>
503
504         * compile/compile.c (compile_to_object): Mention language in
505         error message.
506
507 2015-08-26  Patrick Palka  <patrick@parcs.ath.cx>
508
509         * target.c (target_pre_inferior): Unset attach_flag.
510
511 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
512
513         * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
514         * gdbarch.c: Re-generate.
515
516 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
517
518         * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
519         function with the XNEW-family equivalent.
520         * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
521         * ada-exp.y (write_ambiguous_var): Likewise.
522         * ada-lang.c (resolve_subexp): Likewise.
523         (user_select_syms): Likewise.
524         (assign_aggregate): Likewise.
525         (ada_evaluate_subexp): Likewise.
526         (cache_symbol): Likewise.
527         * addrmap.c (allocate_key): Likewise.
528         (addrmap_create_mutable): Likewise.
529         * aix-thread.c (sync_threadlists): Likewise.
530         * alpha-tdep.c (alpha_push_dummy_call): Likewise.
531         (alpha_gdbarch_init): Likewise.
532         * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
533         * arm-linux-nat.c (arm_linux_add_process): Likewise.
534         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
535         * arm-tdep.c (push_stack_item): Likewise.
536         (arm_displaced_step_copy_insn): Likewise.
537         (arm_gdbarch_init): Likewise.
538         (_initialize_arm_tdep): Likewise.
539         * avr-tdep.c (push_stack_item): Likewise.
540         * ax-general.c (new_agent_expr): Likewise.
541         * block.c (block_initialize_namespace): Likewise.
542         * breakpoint.c (alloc_counted_command_line): Likewise.
543         (update_dprintf_command_list): Likewise.
544         (parse_breakpoint_sals): Likewise.
545         (decode_static_tracepoint_spec): Likewise.
546         (until_break_command): Likewise.
547         (clear_command): Likewise.
548         (update_global_location_list): Likewise.
549         (get_breakpoint_objfile_data) Likewise.
550         * btrace.c (ftrace_new_function): Likewise.
551         (btrace_set_insn_history): Likewise.
552         (btrace_set_call_history): Likewise.
553         * buildsym.c (add_symbol_to_list): Likewise.
554         (record_pending_block): Likewise.
555         (start_subfile): Likewise.
556         (start_buildsym_compunit): Likewise.
557         (push_subfile): Likewise.
558         (end_symtab_get_static_block): Likewise.
559         (buildsym_init): Likewise.
560         * cli/cli-cmds.c (source_command): Likewise.
561         * cli/cli-decode.c (add_cmd): Likewise.
562         * cli/cli-script.c (build_command_line): Likewise.
563         (setup_user_args): Likewise.
564         (realloc_body_list): Likewise.
565         (process_next_line): Likewise.
566         (copy_command_lines): Likewise.
567         * cli/cli-setshow.c (do_set_command): Likewise.
568         * coff-pe-read.c (read_pe_exported_syms): Likewise.
569         * coffread.c (coff_locate_sections): Likewise.
570         (coff_symtab_read): Likewise.
571         (coff_read_struct_type): Likewise.
572         * common/cleanups.c (make_my_cleanup2): Likewise.
573         * common/common-exceptions.c (throw_it): Likewise.
574         * common/filestuff.c (make_cleanup_close): Likewise.
575         * common/format.c (parse_format_string): Likewise.
576         * common/queue.h (DEFINE_QUEUE_P): Likewise.
577         * compile/compile-object-load.c (munmap_list_add): Likewise.
578         (compile_object_load): Likewise.
579         * compile/compile-object-run.c (compile_object_run): Likewise.
580         * compile/compile.c (append_args): Likewise.
581         * corefile.c (specify_exec_file_hook): Likewise.
582         * cp-support.c (make_symbol_overload_list): Likewise.
583         * cris-tdep.c (push_stack_item): Likewise.
584         (cris_gdbarch_init): Likewise.
585         * ctf.c (ctf_trace_file_writer_new): Likewise.
586         * dbxread.c (init_header_files): Likewise.
587         (add_new_header_file): Likewise.
588         (init_bincl_list): Likewise.
589         (dbx_end_psymtab): Likewise.
590         (start_psymtab): Likewise.
591         (dbx_end_psymtab): Likewise.
592         * dcache.c (dcache_init): Likewise.
593         * dictionary.c (dict_create_hashed): Likewise.
594         (dict_create_hashed_expandable): Likewise.
595         (dict_create_linear): Likewise.
596         (dict_create_linear_expandable): Likewise.
597         * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
598         * dummy-frame.c (register_dummy_frame_dtor): Likewise.
599         * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
600         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
601         (decode_frame_entry_1): Likewise.
602         * dwarf2expr.c (new_dwarf_expr_context): Likewise.
603         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
604         * dwarf2read.c (dwarf2_has_info): Likewise.
605         (create_signatured_type_table_from_index): Likewise.
606         (dwarf2_read_index): Likewise.
607         (dw2_get_file_names_reader): Likewise.
608         (create_all_type_units): Likewise.
609         (read_cutu_die_from_dwo): Likewise.
610         (init_tu_and_read_dwo_dies): Likewise.
611         (init_cutu_and_read_dies): Likewise.
612         (create_all_comp_units): Likewise.
613         (queue_comp_unit): Likewise.
614         (inherit_abstract_dies): Likewise.
615         (read_call_site_scope): Likewise.
616         (dwarf2_add_field): Likewise.
617         (dwarf2_add_typedef): Likewise.
618         (dwarf2_add_member_fn): Likewise.
619         (attr_to_dynamic_prop): Likewise.
620         (abbrev_table_alloc_abbrev): Likewise.
621         (abbrev_table_read_table): Likewise.
622         (add_include_dir): Likewise.
623         (add_file_name): Likewise.
624         (dwarf_decode_line_header): Likewise.
625         (dwarf2_const_value_attr): Likewise.
626         (dwarf_alloc_block): Likewise.
627         (parse_macro_definition): Likewise.
628         (set_die_type): Likewise.
629         (write_psymtabs_to_index): Likewise.
630         (create_cus_from_index): Likewise.
631         (dwarf2_create_include_psymtab): Likewise.
632         (process_psymtab_comp_unit_reader): Likewise.
633         (build_type_psymtab_dependencies): Likewise.
634         (read_comp_units_from_section): Likewise.
635         (compute_compunit_symtab_includes): Likewise.
636         (create_dwo_unit_in_dwp_v1): Likewise.
637         (create_dwo_unit_in_dwp_v2): Likewise.
638         (read_func_scope): Likewise.
639         (process_structure_scope): Likewise.
640         (mark_common_block_symbol_computed): Likewise.
641         (load_partial_dies): Likewise.
642         (dwarf2_symbol_mark_computed): Likewise.
643         * elfread.c (elf_symfile_segments): Likewise.
644         (elf_read_minimal_symbols): Likewise.
645         * environ.c (make_environ): Likewise.
646         * eval.c (evaluate_subexp_standard): Likewise.
647         * event-loop.c (create_file_handler): Likewise.
648         (create_async_signal_handler): Likewise.
649         (create_async_event_handler): Likewise.
650         (create_timer): Likewise.
651         * exec.c (build_section_table): Likewise.
652         * fbsd-nat.c (fbsd_remember_child): Likewise.
653         * fork-child.c (fork_inferior): Likewise.
654         * frv-tdep.c (new_variant): Likewise.
655         * gdbarch.sh (gdbarch_alloc): Likewise.
656         (append_name): Likewise.
657         * gdbtypes.c (rank_function): Likewise.
658         (copy_type_recursive): Likewise.
659         (add_dyn_prop): Likewise.
660         * gnu-nat.c (make_proc): Likewise.
661         (make_inf): Likewise.
662         (gnu_write_inferior): Likewise.
663         * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
664         (build_std_type_info_type): Likewise.
665         * guile/scm-param.c (compute_enum_list): Likewise.
666         * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
667         * guile/scm-value.c (gdbscm_value_call): Likewise.
668         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
669         * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
670         (read_unwind_info): Likewise.
671         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
672         * infcall.c (dummy_frame_context_saver_setup): Likewise.
673         (call_function_by_hand_dummy): Likewise.
674         * infcmd.c (step_once): Likewise.
675         (finish_forward): Likewise.
676         (attach_command): Likewise.
677         (notice_new_inferior): Likewise.
678         * inferior.c (add_inferior_silent): Likewise.
679         * infrun.c (add_displaced_stepping_state): Likewise.
680         (save_infcall_control_state): Likewise.
681         (save_inferior_ptid): Likewise.
682         (_initialize_infrun): Likewise.
683         * jit.c (bfd_open_from_target_memory): Likewise.
684         (jit_gdbarch_data_init): Likewise.
685         * language.c (add_language): Likewise.
686         * linespec.c (decode_line_2): Likewise.
687         * linux-nat.c (add_to_pid_list): Likewise.
688         (add_initial_lwp): Likewise.
689         * linux-thread-db.c (add_thread_db_info): Likewise.
690         (record_thread): Likewise.
691         (info_auto_load_libthread_db): Likewise.
692         * m32c-tdep.c (m32c_gdbarch_init): Likewise.
693         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
694         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
695         * m88k-tdep.c (m88k_analyze_prologue): Likewise.
696         * macrocmd.c (macro_define_command): Likewise.
697         * macroexp.c (gather_arguments): Likewise.
698         * macroscope.c (sal_macro_scope): Likewise.
699         * macrotab.c (new_macro_table): Likewise.
700         * mdebugread.c (push_parse_stack): Likewise.
701         (parse_partial_symbols): Likewise.
702         (parse_symbol): Likewise.
703         (psymtab_to_symtab_1): Likewise.
704         (new_block): Likewise.
705         (new_psymtab): Likewise.
706         (mdebug_build_psymtabs): Likewise.
707         (add_pending): Likewise.
708         (elfmdebug_build_psymtabs): Likewise.
709         * mep-tdep.c (mep_gdbarch_init): Likewise.
710         * mi/mi-main.c (mi_execute_command): Likewise.
711         * mi/mi-parse.c (mi_parse_argv): Likewise.
712         * minidebug.c (lzma_open): Likewise.
713         * minsyms.c (terminate_minimal_symbol_table): Likewise.
714         * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
715         * mips-tdep.c (mips_gdbarch_init): Likewise.
716         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
717         * msp430-tdep.c (msp430_gdbarch_init): Likewise.
718         * mt-tdep.c (mt_registers_info): Likewise.
719         * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
720         * nat/linux-btrace.c (linux_enable_bts): Likewise.
721         (linux_enable_pt): Likewise.
722         * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
723         (linux_xfer_osdata_processgroups): Likewise.
724         * nios2-tdep.c (nios2_gdbarch_init): Likewise.
725         * nto-procfs.c (procfs_meminfo): Likewise.
726         * objc-lang.c (start_msglist): Likewise.
727         (selectors_info): Likewise.
728         (classes_info): Likewise.
729         (find_methods): Likewise.
730         * objfiles.c (allocate_objfile): Likewise.
731         (update_section_map): Likewise.
732         * osabi.c (gdbarch_register_osabi): Likewise.
733         (gdbarch_register_osabi_sniffer): Likewise.
734         * parse.c (start_arglist): Likewise.
735         * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
736         (hwdebug_insert_point): Likewise.
737         * printcmd.c (display_command): Likewise.
738         (ui_printf): Likewise.
739         * procfs.c (create_procinfo): Likewise.
740         (load_syscalls): Likewise.
741         (proc_get_LDT_entry): Likewise.
742         (proc_update_threads): Likewise.
743         * prologue-value.c (make_pv_area): Likewise.
744         (pv_area_store): Likewise.
745         * psymtab.c (extend_psymbol_list): Likewise.
746         (init_psymbol_list): Likewise.
747         (allocate_psymtab): Likewise.
748         * python/py-inferior.c (add_thread_object): Likewise.
749         * python/py-param.c (compute_enum_values): Likewise.
750         * python/py-value.c (valpy_call): Likewise.
751         * python/py-varobj.c (py_varobj_iter_next): Likewise.
752         * python/python.c (ensure_python_env): Likewise.
753         * record-btrace.c (record_btrace_start_replaying): Likewise.
754         * record-full.c (record_full_reg_alloc): Likewise.
755         (record_full_mem_alloc): Likewise.
756         (record_full_end_alloc): Likewise.
757         (record_full_core_xfer_partial): Likewise.
758         * regcache.c (get_thread_arch_aspace_regcache): Likewise.
759         * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
760         * remote-notif.c (remote_notif_state_allocate): Likewise.
761         * remote.c (demand_private_info): Likewise.
762         (remote_notif_stop_alloc_reply): Likewise.
763         (remote_enable_btrace): Likewise.
764         * reverse.c (save_bookmark_command): Likewise.
765         * rl78-tdep.c (rl78_gdbarch_init): Likewise.
766         * rx-tdep.c (rx_gdbarch_init): Likewise.
767         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
768         * ser-go32.c (dos_get_tty_state): Likewise.
769         (dos_copy_tty_state): Likewise.
770         * ser-mingw.c (ser_windows_open): Likewise.
771         (ser_console_wait_handle): Likewise.
772         (ser_console_get_tty_state): Likewise.
773         (make_pipe_state): Likewise.
774         (net_windows_open): Likewise.
775         * ser-unix.c (hardwire_get_tty_state): Likewise.
776         (hardwire_copy_tty_state): Likewise.
777         * solib-aix.c (solib_aix_new_lm_info): Likewise.
778         * solib-dsbt.c (dsbt_current_sos): Likewise.
779         (dsbt_relocate_main_executable): Likewise.
780         * solib-frv.c (frv_current_sos): Likewise.
781         (frv_relocate_main_executable): Likewise.
782         * solib-spu.c (spu_bfd_fopen): Likewise.
783         * solib-svr4.c (lm_info_read): Likewise.
784         (svr4_copy_library_list): Likewise.
785         (svr4_default_sos): Likewise.
786         * source.c (find_source_lines): Likewise.
787         (line_info): Likewise.
788         (add_substitute_path_rule): Likewise.
789         * spu-linux-nat.c (spu_bfd_open): Likewise.
790         * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
791         * stabsread.c (dbx_lookup_type): Likewise.
792         (read_type): Likewise.
793         (read_member_functions): Likewise.
794         (read_struct_fields): Likewise.
795         (read_baseclasses): Likewise.
796         (read_args): Likewise.
797         (_initialize_stabsread): Likewise.
798         * stack.c (func_command): Likewise.
799         * stap-probe.c (handle_stap_probe): Likewise.
800         * symfile.c (addrs_section_sort): Likewise.
801         (addr_info_make_relative): Likewise.
802         (load_section_callback): Likewise.
803         (add_symbol_file_command): Likewise.
804         (init_filename_language_table): Likewise.
805         * symtab.c (create_filename_seen_cache): Likewise.
806         (sort_search_symbols_remove_dups): Likewise.
807         (search_symbols): Likewise.
808         * target.c (make_cleanup_restore_target_terminal): Likewise.
809         * thread.c (new_thread): Likewise.
810         (enable_thread_stack_temporaries): Likewise.
811         (make_cleanup_restore_current_thread): Likewise.
812         (thread_apply_all_command): Likewise.
813         * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
814         * top.c (gdb_readline_wrapper): Likewise.
815         * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
816         * tracepoint.c (trace_find_line_command): Likewise.
817         (all_tracepoint_actions_and_cleanup): Likewise.
818         (make_cleanup_restore_current_traceframe): Likewise.
819         (get_uploaded_tp): Likewise.
820         (get_uploaded_tsv): Likewise.
821         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
822         (tui_alloc_win_info): Likewise.
823         (tui_alloc_content): Likewise.
824         (tui_add_content_elements): Likewise.
825         * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
826         (tui_set_disassem_content): Likewise.
827         * ui-file.c (ui_file_new): Likewise.
828         (stdio_file_new): Likewise.
829         (tee_file_new): Likewise.
830         * utils.c (make_cleanup_restore_integer): Likewise.
831         (add_internal_problem_command): Likewise.
832         * v850-tdep.c (v850_gdbarch_init): Likewise.
833         * valops.c (find_oload_champ): Likewise.
834         * value.c (allocate_value_lazy): Likewise.
835         (record_latest_value): Likewise.
836         (create_internalvar): Likewise.
837         * varobj.c (install_variable): Likewise.
838         (new_variable): Likewise.
839         (new_root_variable): Likewise.
840         (cppush): Likewise.
841         (_initialize_varobj): Likewise.
842         * windows-nat.c (windows_make_so): Likewise.
843         * x86-nat.c (x86_add_process): Likewise.
844         * xcoffread.c (arrange_linetable): Likewise.
845         (allocate_include_entry): Likewise.
846         (process_linenos): Likewise.
847         (SYMBOL_DUP): Likewise.
848         (xcoff_start_psymtab): Likewise.
849         (xcoff_end_psymtab): Likewise.
850         * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
851         * xtensa-tdep.c (xtensa_register_type): Likewise.
852         * gdbarch.c: Regenerate.
853         * gdbarch.h: Regenerate.
854
855 2015-08-25  Don Breazeal  <donb@codesourcery.com>
856
857         * infrun.c (follow_exec): Re-order operations for
858         handling follow-exec-mode "new".
859         (handle_inferior_event_1): Assign ecs->event_thread
860         to the current thread.
861         * remote.c (get_remote_arch_state): Add an assertion.
862
863 2015-08-26  Pedro Alves  <palves@redhat.com>
864
865         * MAINTAINERS: Add Markus Metzger as btrace maintainer.
866
867 2015-08-25  Pedro Alves  <palves@redhat.com>
868
869         PR gdb/18804
870         * defs.h (maybe_quit): Declare.
871         (QUIT): Now calls maybe_quit.
872         * event-loop.c (clear_async_signal_handler)
873         (async_signal_handler_is_marked): New functions.
874         * event-loop.h (async_signal_handler_is_marked)
875         (clear_async_signal_handler): New declarations.
876         * remote.c (remote_check_pending_interrupt): New function.
877         (interrupt_query): Use make_cleanup_restore_target_terminal.  No
878         longer check whether the target is async.  If waiting for a stop
879         reply, and a Ctrl-C as been sent to the target, offer to
880         disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
881         Otherwise do not disconnect and throw a quit.
882         (_initialize_remote): Install remote_check_pending_interrupt as
883         to_check_pending_interrupt.
884         * target.c (target_check_pending_interrupt): New function.
885         * target.h (struct target_ops) <to_check_pending_interrupt>: New
886         field.
887         (target_check_pending_interrupt): New declaration.
888         * utils.c (maybe_quit): New function.
889         * target-delegates.c: Regenerate.
890
891 2015-08-25  Yao Qi  <yao.qi@linaro.org>
892
893         * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
894         Rename local variable pid to tid, and get lwpid of lwp.  Update
895         debug output.
896
897 2015-08-25  Pierre-Marie de Rodat  <derodat@adacore.com>
898
899         * ada-lang.c (ada_read_var_value): Add a var_block argument
900         and pass it to default_read_var_value.
901         * block.c (block_static_link): New accessor.
902         * block.h (block_static_link): Declare it.
903         * buildsym.c (finish_block_internal): Add a static_link
904         argument.  If there is a static link, associate it to the new
905         block.
906         (finish_block): Add a static link argument and pass it to
907         finish_block_internal.
908         (end_symtab_get_static_block): Update calls to finish_block and
909         to finish_block_internal.
910         (end_symtab_with_blockvector): Update call to
911         finish_block_internal.
912         * buildsym.h: Forward-declare struct dynamic_prop.
913         (struct context_stack): Add a static_link field.
914         (finish_block): Add a static link argument.
915         * c-exp.y: Remove an obsolete comment (evaluation of variables
916         already start from the selected frame, and now they climb *up*
917         the call stack) and propagate the block information to the
918         produced expression.
919         * d-exp.y: Likewise.
920         * f-exp.y: Likewise.
921         * go-exp.y: Likewise.
922         * jv-exp.y: Likewise.
923         * m2-exp.y: Likewise.
924         * p-exp.y: Likewise.
925         * coffread.c (coff_symtab_read): Update calls to finish_block.
926         * dbxread.c (process_one_symbol): Likewise.
927         * xcoffread.c (read_xcoff_symtab): Likewise.
928         * compile/compile-c-symbols.c (convert_one_symbol): Promote the
929         "sym" parameter to struct block_symbol, update its uses and pass
930         its block to calls to read_var_value.
931         (convert_symbol_sym): Update the calls to convert_one_symbol.
932         * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
933         call to read_var_value.
934         * dwarf2loc.c (block_op_get_frame_base): New.
935         (dwarf2_block_frame_base_locexpr_funcs): Implement the
936         get_frame_base method.
937         (dwarf2_block_frame_base_loclist_funcs): Likewise.
938         (dwarf2locexpr_baton_eval): Add a frame argument and use it
939         instead of the selected frame in order to evaluate the
940         expression.
941         (dwarf2_evaluate_property): Add a frame argument.  Update call
942         to dwarf2_locexpr_baton_eval to provide a frame in available and
943         to handle the absence of address stack.
944         * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
945         * dwarf2read.c (attr_to_dynamic_prop): Add a forward
946         declaration.
947         (read_func_scope): Record any available static link description.
948         Update call to finish_block.
949         (read_lexical_block_scope): Update call to finish_block.
950         * findvar.c (follow_static_link): New.
951         (get_hosting_frame): New.
952         (default_read_var_value): Add a var_block argument.  Use
953         get_hosting_frame to handle non-local references.
954         (read_var_value): Add a var_block argument and pass it to the
955         LA_READ_VAR_VALUE method.
956         * gdbtypes.c (resolve_dynamic_range): Update calls to
957         dwarf2_evaluate_property.
958         (resolve_dynamic_type_internal): Likewise.
959         * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
960         read_var_value, passing it the block coming from symbol lookup.
961         * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
962         read_var_value (TODO).
963         * infcmd.c (finish_command_continuation): Update call to
964         read_var_value, passing it the block coming from symbol lookup.
965         * infrun.c (insert_exception_resume_breakpoint): Likewise.
966         * language.h (struct language_defn): Add a var_block argument to
967         the LA_READ_VAR_VALUE method.
968         * objfiles.c (struct static_link_htab_entry): New.
969         (static_link_htab_entry_hash): New.
970         (static_link_htab_entry_eq): New.
971         (objfile_register_static_link): New.
972         (objfile_lookup_static_link): New.
973         (free_objfile): Free the STATIC_LINKS hashed map if needed.
974         * objfiles.h: Include hashtab.h.
975         (struct objfile): Add a static_links field.
976         (objfile_register_static_link): New.
977         (objfile_lookup_static_link): New.
978         * printcmd.c (print_variable_and_value): Update call to
979         read_var_value.
980         * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
981         * python/py-frame.c (frapy_read_var): Update call to
982         read_var_value, passing it the block coming from symbol lookup.
983         * python/py-framefilter.c (extract_sym): Add a sym_block
984         parameter and set the pointed value to NULL (TODO).
985         (enumerate_args): Update call to extract_sym.
986         (enumerate_locals): Update calls to extract_sym and to
987         read_var_value.
988         * python/py-symbol.c (sympy_value): Update call to
989         read_var_value (TODO).
990         * stack.c (read_frame_local): Update call to read_var_value.
991         (read_frame_arg): Likewise.
992         (return_command): Likewise.
993         * symtab.h (struct symbol_block_ops): Add a get_frame_base
994         method.
995         (struct symbol): Add a block field.
996         (SYMBOL_BLOCK): New accessor.
997         * valops.c (value_of_variable): Remove frame/block handling and
998         pass the block argument to read_var_value, which does this job
999         now.
1000         (value_struct_elt_for_reference): Update calls to
1001         read_var_value.
1002         (value_of_this): Pass the block found to read_var_value.
1003         * value.h (read_var_value): Add a var_block argument.
1004         (default_read_var_value): Likewise.
1005
1006 2015-08-25  Yao Qi  <yao.qi@linaro.org>
1007
1008         * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
1009         * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
1010         * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
1011
1012 2015-08-25  Yao Qi  <yao.qi@linaro.org>
1013
1014         * Makefile.in (aarch64-liunx.o): New rule.
1015         (HFILES_NO_SRCDIR): Add aarch64-linux.h.
1016         * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
1017         * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
1018         * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
1019         extern.
1020         (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
1021         * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
1022         * nat/aarch64-linux.c: New file.
1023         * nat/aarch64-linux.h: New file.
1024
1025 2015-08-25  Yao Qi  <yao.qi@linaro.org>
1026
1027         * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
1028         lwp_arch_private_info and ptid_of_lwp.
1029
1030 2015-08-25  Yao Qi  <yao.qi@linaro.org>
1031
1032         * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
1033         Move it to nat/aarch64-linux-hw-point.c.
1034         (debug_reg_change_callback): Likewise.
1035         (aarch64_notify_debug_reg_change): :Likewise.
1036         * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
1037         (aarch64_dr_update_callback_param): New.
1038         (debug_reg_change_callback): New function.
1039         (aarch64_notify_debug_reg_change): Likewise.
1040         * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
1041         Remove the declaration.
1042
1043 2015-08-25  Yao Qi  <yao.qi@linaro.org>
1044
1045         * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
1046         Call current_lwp_ptid.
1047
1048 2015-08-25  Yao Qi  <yao.qi@linaro.org>
1049
1050         * aarch64-linux-nat.c (debug_reg_change_callback): Use
1051         debug_printf.
1052
1053 2015-08-25  Yao Qi  <yao.qi@linaro.org>
1054
1055         * aarch64-linux-nat.c (debug_reg_change_callback): Call
1056         ptid_get_pid rather than ptid_get_lwp.
1057
1058 2015-08-24  Pedro Alves  <palves@redhat.com>
1059
1060         * NEWS (New commands): Mention set/show remote
1061         multiprocess-extensions-packet.
1062         * remote.c (remote_query_supported): Only tell the server to use
1063         the multiprocess extensions if the user hasn't force-disabled them
1064         with "set remote multiprocess-extensions-packet off".
1065
1066 2015-08-24  Pedro Alves  <palves@redhat.com>
1067
1068         * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1069         1029a8112290f6eee9d7878a391c49db42c999bd.
1070         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
1071         Regenerate.
1072         * gnulib/import/Makefile.am: Update.
1073         * gnulib/import/Makefile.in: Update.
1074         * gnulib/import/alloca.in.h: Update.
1075         * gnulib/import/basename-lgpl.c: Update.
1076         * gnulib/import/canonicalize-lgpl.c: Update.
1077         * gnulib/import/config.charset: Update.
1078         * gnulib/import/dirent.in.h: Update.
1079         * gnulib/import/dirfd.c: Update.
1080         * gnulib/import/dirname-lgpl.c: Update.
1081         * gnulib/import/dirname.h: Update.
1082         * gnulib/import/dosname.h: Update.
1083         * gnulib/import/errno.in.h: Update.
1084         * gnulib/import/extra/snippet/arg-nonnull.h: Update.
1085         * gnulib/import/extra/snippet/c++defs.h: Update.
1086         * gnulib/import/extra/snippet/warn-on-use.h: Update.
1087         * gnulib/import/extra/update-copyright: Update.
1088         * gnulib/import/float+.h: Update.
1089         * gnulib/import/float.c: Update.
1090         * gnulib/import/float.in.h: Update.
1091         * gnulib/import/fnmatch.c: Update.
1092         * gnulib/import/fnmatch.in.h: Update.
1093         * gnulib/import/fnmatch_loop.c: Update.
1094         * gnulib/import/fpucw.h: Update.
1095         * gnulib/import/frexp.c: Update.
1096         * gnulib/import/frexpl.c: Update.
1097         * gnulib/import/gettimeofday.c: Update.
1098         * gnulib/import/inttypes.in.h: Update.
1099         * gnulib/import/isnan.c: Update.
1100         * gnulib/import/isnand-nolibm.h: Update.
1101         * gnulib/import/isnand.c: Update.
1102         * gnulib/import/isnanl-nolibm.h: Update.
1103         * gnulib/import/isnanl.c: Update.
1104         * gnulib/import/itold.c: Update.
1105         * gnulib/import/localcharset.c: Update.
1106         * gnulib/import/localcharset.h: Update.
1107         * gnulib/import/lstat.c: Update.
1108         * gnulib/import/m4/00gnulib.m4: Update.
1109         * gnulib/import/m4/absolute-header.m4: Update.
1110         * gnulib/import/m4/alloca.m4: Update.
1111         * gnulib/import/m4/canonicalize.m4: Update.
1112         * gnulib/import/m4/codeset.m4: Update.
1113         * gnulib/import/m4/configmake.m4: Update.
1114         * gnulib/import/m4/dirent_h.m4: Update.
1115         * gnulib/import/m4/dirfd.m4: Update.
1116         * gnulib/import/m4/dirname.m4: Update.
1117         * gnulib/import/m4/double-slash-root.m4: Update.
1118         * gnulib/import/m4/eealloc.m4: Update.
1119         * gnulib/import/m4/errno_h.m4: Update.
1120         * gnulib/import/m4/exponentd.m4: Update.
1121         * gnulib/import/m4/exponentl.m4: Update.
1122         * gnulib/import/m4/extensions.m4: Update.
1123         * gnulib/import/m4/extern-inline.m4: Update.
1124         * gnulib/import/m4/fcntl-o.m4: Update.
1125         * gnulib/import/m4/float_h.m4: Update.
1126         * gnulib/import/m4/fnmatch.m4: Update.
1127         * gnulib/import/m4/fpieee.m4: Update.
1128         * gnulib/import/m4/frexp.m4: Update.
1129         * gnulib/import/m4/frexpl.m4: Update.
1130         * gnulib/import/m4/gettimeofday.m4: Update.
1131         * gnulib/import/m4/glibc21.m4: Update.
1132         * gnulib/import/m4/gnulib-cache.m4: Update.
1133         * gnulib/import/m4/gnulib-common.m4: Update.
1134         * gnulib/import/m4/gnulib-comp.m4: Update.
1135         * gnulib/import/m4/gnulib-tool.m4: Update.
1136         * gnulib/import/m4/include_next.m4: Update.
1137         * gnulib/import/m4/inttypes-pri.m4: Update.
1138         * gnulib/import/m4/inttypes.m4: Update.
1139         * gnulib/import/m4/isnand.m4: Update.
1140         * gnulib/import/m4/isnanl.m4: Update.
1141         * gnulib/import/m4/largefile.m4: Update.
1142         * gnulib/import/m4/localcharset.m4: Update.
1143         * gnulib/import/m4/locale-fr.m4: Update.
1144         * gnulib/import/m4/locale-ja.m4: Update.
1145         * gnulib/import/m4/locale-zh.m4: Update.
1146         * gnulib/import/m4/longlong.m4: Update.
1147         * gnulib/import/m4/lstat.m4: Update.
1148         * gnulib/import/m4/malloc.m4: Update.
1149         * gnulib/import/m4/malloca.m4: Update.
1150         * gnulib/import/m4/math_h.m4: Update.
1151         * gnulib/import/m4/mbrtowc.m4: Update.
1152         * gnulib/import/m4/mbsinit.m4: Update.
1153         * gnulib/import/m4/mbsrtowcs.m4: Update.
1154         * gnulib/import/m4/mbstate_t.m4: Update.
1155         * gnulib/import/m4/memchr.m4: Update.
1156         * gnulib/import/m4/memmem.m4: Update.
1157         * gnulib/import/m4/mmap-anon.m4: Update.
1158         * gnulib/import/m4/multiarch.m4: Update.
1159         * gnulib/import/m4/nocrash.m4: Update.
1160         * gnulib/import/m4/off_t.m4: Update.
1161         * gnulib/import/m4/pathmax.m4: Update.
1162         * gnulib/import/m4/readlink.m4: Update.
1163         * gnulib/import/m4/rename.m4: Update.
1164         * gnulib/import/m4/rmdir.m4: Update.
1165         * gnulib/import/m4/ssize_t.m4: Update.
1166         * gnulib/import/m4/stat.m4: Update.
1167         * gnulib/import/m4/stdbool.m4: Update.
1168         * gnulib/import/m4/stddef_h.m4: Update.
1169         * gnulib/import/m4/stdint.m4: Update.
1170         * gnulib/import/m4/stdio_h.m4: Update.
1171         * gnulib/import/m4/stdlib_h.m4: Update.
1172         * gnulib/import/m4/string_h.m4: Update.
1173         * gnulib/import/m4/strstr.m4: Update.
1174         * gnulib/import/m4/strtok_r.m4: Update.
1175         * gnulib/import/m4/sys_socket_h.m4: Update.
1176         * gnulib/import/m4/sys_stat_h.m4: Update.
1177         * gnulib/import/m4/sys_time_h.m4: Update.
1178         * gnulib/import/m4/sys_types_h.m4: Update.
1179         * gnulib/import/m4/time_h.m4: Update.
1180         * gnulib/import/m4/unistd_h.m4: Update.
1181         * gnulib/import/m4/warn-on-use.m4: Update.
1182         * gnulib/import/m4/wchar_h.m4: Update.
1183         * gnulib/import/m4/wchar_t.m4: Update.
1184         * gnulib/import/m4/wctype_h.m4: Update.
1185         * gnulib/import/m4/wint_t.m4: Update.
1186         * gnulib/import/malloc.c: Update.
1187         * gnulib/import/malloca.c: Update.
1188         * gnulib/import/malloca.h: Update.
1189         * gnulib/import/math.in.h: Update.
1190         * gnulib/import/mbrtowc.c: Update.
1191         * gnulib/import/mbsinit.c: Update.
1192         * gnulib/import/mbsrtowcs-impl.h: Update.
1193         * gnulib/import/mbsrtowcs-state.c: Update.
1194         * gnulib/import/mbsrtowcs.c: Update.
1195         * gnulib/import/memchr.c: Update.
1196         * gnulib/import/memmem.c: Update.
1197         * gnulib/import/pathmax.h: Update.
1198         * gnulib/import/readlink.c: Update.
1199         * gnulib/import/ref-add.sin: Update.
1200         * gnulib/import/ref-del.sin: Update.
1201         * gnulib/import/rename.c: Update.
1202         * gnulib/import/rmdir.c: Update.
1203         * gnulib/import/same-inode.h: Update.
1204         * gnulib/import/stat.c: Update.
1205         * gnulib/import/stdbool.in.h: Update.
1206         * gnulib/import/stddef.in.h: Update.
1207         * gnulib/import/stdint.in.h: Update.
1208         * gnulib/import/stdio.c: Update.
1209         * gnulib/import/stdio.in.h: Update.
1210         * gnulib/import/stdlib.in.h: Update.
1211         * gnulib/import/str-two-way.h: Update.
1212         * gnulib/import/streq.h: Update.
1213         * gnulib/import/string.in.h: Update.
1214         * gnulib/import/stripslash.c: Update.
1215         * gnulib/import/strnlen1.c: Update.
1216         * gnulib/import/strnlen1.h: Update.
1217         * gnulib/import/strstr.c: Update.
1218         * gnulib/import/strtok_r.c: Update.
1219         * gnulib/import/sys_stat.in.h: Update.
1220         * gnulib/import/sys_time.in.h: Update.
1221         * gnulib/import/sys_types.in.h: Update.
1222         * gnulib/import/time.in.h: Update.
1223         * gnulib/import/unistd.in.h: Update.
1224         * gnulib/import/verify.h: Update.
1225         * gnulib/import/wchar.in.h: Update.
1226         * gnulib/import/wctype.in.h: Update.
1227         * gnulib/import/gettimeofday.c: New file.
1228         * gnulib/import/m4/absolute-header.m4: New file.
1229         * gnulib/import/m4/gettimeofday.m4: New file.
1230         * gnulib/import/m4/sys_socket_h.m4: New file.
1231         * gnulib/import/m4/sys_time_h.m4: New file.
1232         * gnulib/import/stdio.c: Delete file.
1233         * gnulib/import/sys_time.in.h: New file.
1234
1235 2015-08-24  Pedro Alves  <palves@redhat.com>
1236
1237         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
1238         * common/gdb_sys_time.h: New file.
1239         * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
1240         * gdb_select.h: Likewise.
1241         * gdb_usleep.c: Likewise.
1242         * maint.c: Likewise.
1243         * mi/mi-main.c: Likewise.
1244         * mi/mi-parse.h: Likewise.
1245         * remote-fileio.c: Likewise.
1246         * remote-m32r-sdi.c: Likewise.
1247         * remote.c: Likewise.
1248         * ser-base.c: Likewise.
1249         * ser-pipe.c: Likewise.
1250         * ser-tcp.c: Likewise.
1251         * ser-unix.c: Likewise.
1252         * symfile.c: Likewise.
1253         * symfile.c: Likewise.  Rename OSIZE to SIZE throughout.
1254         * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
1255         * utils.c: Likewise.
1256
1257 2015-08-24  Pedro Alves  <palves@redhat.com>
1258
1259         * NEWS: Mention removed support for the various ROM monitors.
1260         * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
1261         ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
1262         * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
1263         gdb_target_obs.
1264         (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
1265         gdb_target_obs.
1266         (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
1267         dsrec.o from gdb_target_obs.
1268         (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
1269         from gdb_target_obs.
1270         (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
1271         gdb_target_obs.
1272         (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
1273         dink32-rom.o from gdb_target_obs.
1274         (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
1275         (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
1276         * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
1277         monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
1278
1279 2015-08-21  Pedro Alves  <palves@redhat.com>
1280
1281         * frame.c (null_frame_id): Explicitly zero-initialize.
1282
1283 2015-08-21  Tom Tromey  <tromey@redhat.com>
1284
1285         * dwarf2read.c (struct dwarf2_section_info): Rename field
1286         'asection' to 'section'.
1287         (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
1288         (dwarf2_locate_sections, dwarf2_locate_sections)
1289         (locate_dwz_sections, locate_v1_virtual_dwo_sections)
1290         (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
1291         (dwarf2_locate_v2_dwp_sections): Adjust.
1292
1293 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
1294
1295         * top.h (gdb_in_secondary_prompt_p): Declare.
1296         * top.c (gdb_secondary_prompt_depth): Define.
1297         (gdb_in_secondary_prompt_p): Define.
1298         (gdb_readline_wrapper_cleanup): Decrement
1299         gdb_secondary_prompt_depth.
1300         (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
1301         * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
1302         are in a secondary prompt.
1303
1304 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
1305
1306         * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
1307         emit the newline.
1308
1309 2015-08-21  Gary Benson  <gbenson@redhat.com>
1310
1311         * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
1312
1313 2015-08-21  Gary Benson  <gbenson@redhat.com>
1314
1315         * target.h (struct target_ops) <to_fileio_open>: New argument
1316         warn_if_slow.  Update comment.  All implementations updated.
1317         (target_fileio_open_warn_if_slow): New declaration.
1318         * target.c (target_fileio_open): Renamed as...
1319         (target_fileio_open_1): ...this.  New argument warn_if_slow.
1320         Pass warn_if_slow to implementation.  Update debug printing.
1321         (target_fileio_open): New function.
1322         (target_fileio_open_warn_if_slow): Likewise.
1323         * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
1324         target_fileio_open_warn_if_slow.
1325
1326 2015-08-21  Gary Benson  <gbenson@redhat.com>
1327
1328         * nat/linux-namespaces.c (linux_mntns_access_fs):
1329         Do not overwrite old_chain.
1330
1331 2015-08-20  Max Filippov  <jcmvbkbc@gmail.com>
1332
1333         * arch/xtensa.h: New file.
1334         * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
1335         (ps_get_thread_area): New function.
1336         * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
1337         set_gdbarch_fetch_tls_load_module_address to enable TLS support.
1338         * xtensa-tdep.c (osabi.h): New #include.
1339         (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
1340         xtensa-specific hooks.
1341         * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
1342         member and move the structure to arch/xtensa.h.
1343
1344 2015-08-21  Pedro Alves  <palves@redhat.com>
1345
1346         * remote.c (struct readahead_cache): New.
1347         (struct remote_state) <readahead_cache>: New field.
1348         (remote_open_1): Invalidate the cache.
1349         (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
1350         functions.
1351         (remote_hostio_pwrite): Invalidate the readahead cache.
1352         (remote_hostio_pread): Rename to ...
1353         (remote_hostio_pread_vFile): ... this.
1354         (remote_hostio_pread_from_cache): New function.
1355         (remote_hostio_pread): Reimplement.
1356         (remote_hostio_close): Invalidate the readahead cache.
1357
1358 2015-08-21  Marcin CieÅ›lak <saper@saper.info>  (tiny patch)
1359
1360         PR build/18843
1361         * procfs.c: Include "filestuff.h".
1362
1363 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
1364
1365         * tui/tui-data.h (tui_command_info): Remove fields cur_line and
1366         curch.
1367         * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
1368         cur_line or curch, instead call wmove().
1369         (init_win_info) [CMD_WIN]: Likewise.
1370         * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
1371         instead call getcury().
1372         (tui_redisplay_readline): Don't set cur_line or curch.
1373         (tui_mld_erase_entire_line): Don't read cur_line, instead call
1374         getcury().
1375         (tui_cont_sig): Remove call to wmove.
1376         (tui_getc): Don't read cur_line or curch, instead call getcury()
1377         or getyx().  Don't set curch.
1378         * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
1379         set cur_line or curch.  Always move cursor to (0,0).
1380
1381 2015-08-20  Pedro Alves  <palves@redhat.com>
1382
1383         * infrun.c (print_target_wait_results): Make extern.
1384         * infrun.h (print_target_wait_results): Declare.
1385         * remote.c (set_stop_requested_callback): Delete.
1386         (process_initial_stop_replies): New function.
1387         (remote_start_remote): Use it.
1388         (stop_reply_queue_length): New function.
1389
1390 2015-08-20  Pedro Alves  <palves@redhat.com>
1391
1392         * dwarf2read.c (process_full_comp_unit): To tell whether
1393         start_subfile managed to deduce a language, test for
1394         language_unknown instead of language_c.
1395
1396 2015-08-20  Pierre-Marie de Rodat  <derodat@adacore.com>
1397
1398         * ada-lex.l: Reset the start condition to INITIAL in the rule that
1399         matches attributes.
1400
1401 2015-08-19  Kevin Buettner  <kevinb@redhat.com>
1402
1403         * dwarf2read.c (dwarf2_string_attr): New function.
1404         (lookup_dwo_unit, process_psymtab_comp_unit_reader)
1405         (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
1406         (read_call_site_scope, namespace_name, guess_full_die_structure_name)
1407         (anonymous_struct_prefix, prepare_one_comp_unit): Use
1408         dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
1409
1410 2015-08-18  Doug Evans  <dje@google.com>
1411             Adrian Sendroiu <adrian.sendroiu@freescale.com>
1412
1413         PR mi/18833
1414         * cli/cli-logging.c (pop_output_files): Don't restore redirection
1415         if MI-like.
1416         * mi/mi-out.c: #include "vec.h".
1417         (ui_filep): New type.
1418         (DEV_VEC_P (ui_filep)): New type.
1419         (struct ui_out_data) <buffer, original_buffer>: Delete.
1420         (struct ui_out_data) <streams>: New member.
1421         (mi_ui_out_impl): Add data_destroy field.
1422         (mi_field_string, mi_field_fmt): Update.
1423         (mi_flush, mi_redirect, field_separator): Update.
1424         (mi_open, mi_close): Update.
1425         (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
1426         (mi_out_data_ctor, mi_out_data_dtor): New functions.
1427         (mi_out_new): Call mi_out_data_ctor.
1428
1429 2015-08-18  Sandra Loosemore  <sandra@codesourcery.com>
1430
1431         * remote.c (strprefix): New.
1432         (remote_parse_stop_reply): Use strprefix instead of strncmp
1433         to ensure exact match of keyword.
1434
1435 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
1436
1437         * gdb_bfd.c (debug_bfd_cache): New variable.
1438         (show_bfd_cache_debug): New function.
1439         (gdb_bfd_open): Add debug logging.
1440         (gdb_bfd_ref): Likewise.
1441         (gdb_bfd_unref): Likewise.
1442         (_initialize_gdb_bfd): Add new set/show command.
1443         * NEWS: Mention new command.
1444
1445 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
1446
1447         * gdb_bfd.c (bfd_sharing): New variable.
1448         (show_bfd_sharing): New function.
1449         (gdb_bfd_open): Check bfd_sharing variable.
1450         (_initialize_gdb_bfd): Add new set/show command.
1451         * NEWS: Mention new command.
1452
1453 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
1454
1455         * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
1456         field.
1457         (struct gdb_bfd_cache_search): Likewise.
1458         (eq_bfd): Compare the size, inode, and device id fields.
1459         (gdb_bfd_open): Initialise the size, inode, and device id fields.
1460         (gdb_bfd_ref): Likewise.
1461         (gdb_bfd_unref): Likewise.
1462
1463 2015-08-18  Pedro Alves  <palves@redhat.com>
1464
1465         * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
1466         target implements to_always_non_stop_p, call it.
1467         * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
1468         (x86_linux_create_target): Install it as to_always_non_stop_p
1469         method.
1470
1471 2015-08-17  Doug Evans  <dje@google.com>
1472
1473         * ui-out.c (default_ui_out_impl): Add comment.
1474
1475 2015-08-17  Iain Buclaw  <ibuclaw@gdcproject.org>
1476
1477         * d-exp.y (type_aggregate_p): New function.
1478         (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
1479         (classify_inner_name): Likewise.
1480         * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
1481
1482 2015-08-15  Doug Evans  <xdje42@gmail.com>
1483
1484         * psymtab.c (add_psymbol_to_bcache): Remove "val" arg.  All callers
1485         updated.
1486         (add_psymbol_to_list): Ditto.
1487
1488 2015-08-15  Doug Evans  <xdje42@gmail.com>
1489
1490         * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab.  All callers
1491         updated.  Call end_psymtab_common.
1492         * dwarf2read.c (process_psymtab_comp_unit_reader): Call
1493         end_psymtab_common.
1494         (build_type_psymtabs_reader): Ditto.
1495         * psympriv.h (sort_pst_symbols): Delete.
1496         (end_psymtab_common): Declare.
1497         * psymtab.c (sort_pst_symbols): Make static.
1498         (end_psymtab_common): New function.
1499         * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
1500
1501 2015-08-15  Doug Evans  <xdje42@gmail.com>
1502
1503         * defs.h (LANGUAGE_BITS): Define.
1504         * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
1505         (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
1506         * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
1507         (minimal_symbol_type): Add nr_minsym_types.
1508         (MINSYM_TYPE_BITS): Define.
1509         (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
1510         (domain_enum_tag): Add NR_DOMAINS.
1511         (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
1512         (SYMBOL_ACLASS_BITS): Define from 6 to 5.
1513
1514 2015-08-15  Doug Evans  <xdje42@gmail.com>
1515
1516         * objfiles.h: Whitespace cleanup.
1517         * psympriv.h: Whitespace cleanup.
1518         * psymtab.c: Whitespace/coding convention cleanup.
1519
1520 2015-08-15  Patrick Palka  <patrick@parcs.ath.cx>
1521
1522         * inferior.c (detach_inferior_command): Don't call
1523         any_thread_of_process when pid is 0.
1524         (kill_inferior_command): Likewise.
1525
1526 2015-08-14  Doug Evans  <xdje42@gmail.com>
1527
1528         PR gdb/11833
1529         * NEWS: Document new /s modifier for the disassemble command.
1530         * cli/cli-cmds.c (disassemble_command): Add support for /s.
1531         (_initialize_cli_cmds): Update online docs of disassemble command.
1532         * disasm.c: #include "source.h".
1533         (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
1534         All uses updated.
1535         (dis_line_entry): New struct.
1536         (hash_dis_line_entry, eq_dis_line_entry): New functions.
1537         (allocate_dis_line_table): New functions.
1538         (maybe_add_dis_line_entry, line_has_code_p): New functions.
1539         (dump_insns): New arg end_pc.  All callers updated.
1540         (do_mixed_source_and_assembly_deprecated): Renamed from
1541         do_mixed_source_and_assembly.  All callers updated.
1542         (do_mixed_source_and_assembly): New function.
1543         (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
1544         * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
1545         DISASSEMBLY_SOURCE.  All uses updated.
1546         (DISASSEMBLY_SOURCE): New macro.
1547         * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
1548
1549 2015-08-14  Keith Seitz  <keiths@redhat.com>
1550
1551         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
1552         `typename' to `type_name' to avoid C++ reserved word.
1553
1554 2015-08-14  Keith Seitz  <keiths@redhat.com>
1555
1556         * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
1557         (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
1558         silence ARI errors.
1559
1560 2015-08-14  Iain Buclaw  <ibuclaw@gdcproject.org>
1561
1562         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
1563         xstrprintf instead of malloc and sprintf.
1564         (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
1565         (lex_one_token): Likewise.
1566
1567 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
1568
1569         * solib-svr4.c (read_program_header): Add base_addr argument to
1570         report the runtime address of the segment.
1571         (find_program_interpreter): Update read_program_header call to pass
1572         a NULL pointer for the new argument.
1573         (scan_dyntag): Add ptr_addr argument to report the runtime address
1574         of the tag payload.
1575         (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
1576         read_program_header to get the base address of the dynamic segment.
1577         (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
1578         read_program_header.
1579         (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
1580
1581 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
1582
1583         * MAINTAINERS (Write After Approval): Add Matthew Fortune.
1584
1585 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
1586
1587         * d-exp.y (%union): Add voidval.
1588         (%token): Add UNKNOWN_NAME as a token to represent an unclassified
1589         name in the lexing stage.
1590         (PostfixExpression): Move symbol completion handling in grammar here
1591         from PrimaryExpression.
1592         (PrimaryExpression): Move routines to handle resolving identifier
1593         tokens in the grammar here from push_expression_name.
1594         (IdentifierExp): Remove the handling of alternating '.' and identifier
1595         tokens.
1596         (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
1597         (BasicType): Remove C-style typename rules.
1598         (d_type_from_name, d_module_from_name, push_variable)
1599         (push_fieldnames, push_type_name, push_module_name)
1600         (push_expression_name): Remove.
1601         (lex_one_token): Rename from yylex.  Replace pstate with par_state.
1602         (token_and_value): New type.
1603         (token_fifo, popping, name_obstack): New globals.
1604         (classify_name): New function.
1605         (classify_inner_name): Likewise.
1606         (yylex): Likewise.
1607         (d_parse): Initialize token_fifo, popping and name_obstack.
1608
1609 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
1610
1611         * Makefile.in (SFILES): Add d-namespace.c.
1612         (COMMON_OBS): Add d-namespace.o.
1613         * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
1614         la_lookup_symbol_nonlocal callback function pointer.
1615         * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
1616         (d_lookup_nested_symbol): New declaration.
1617         * d-namespace.c: New file.
1618
1619 2015-08-13  Pedro Alves  <palves@redhat.com>
1620
1621         * python/py-unwind.c (pyuw_sniffer): Install the invalidate
1622         cleanup after the decref cleanup, not before.
1623
1624 2015-08-13  Pierre-Marie de Rodat  <derodat@adacore.com>
1625
1626         * ada-lang.c: Include namespace.h
1627         (aux_add_nonlocal_symbols): Fix a function name in comment.
1628         (ada_add_block_renamings): New.
1629         (add_nonlocal_symbols): Add global renamings handling.
1630         (ada_lookup_symbol_list_worker): Move the symbol lookup part
1631         to...
1632         (ada_add_all_symbols): ... this new function.
1633         (ada_add_block_symbols): Try to match the input name against the
1634         "using directives list", perform a recursive symbol lookup on
1635         the matched declarations.
1636         * block.h (struct block): Move the_namespace to top-level as
1637         namespace_info. Remove the language_specific field.
1638         (BLOCK_NAMESPACE): Update access to the namespace_info field.
1639         * buildsym.h (using_directives): Rename into...
1640         (local_using_directives): ... this.
1641         (global_using_directives): New.
1642         (struct context_stack): Rename the using_directives field into
1643         local_using_directives.
1644         * buildsym.c (finish_block_internal): Deal with the proper
1645         using directives repository (local or global).
1646         (prepare_for_building): Reset local_using_directives. Assert
1647         that there is no pending global using directive.
1648         (reset_symtab_globals): Reset global_using_directives and
1649         local_using_directives.
1650         (end_symtab_get_static_block): Don't ignore symtabs that have
1651         only using directives.
1652         (push_context): Update references to local_using_directives.
1653         (buildsym_init): Do not reset using_directives.
1654         * cp-support.c: Include namespace.h.
1655         * cp-support.h (struct using_direct): Move to namespace.h.
1656         (cp_add_using_directives): Move to namespace.h.
1657         * cp-namespace.c: Include namespace.h
1658         (cp_add_using_directive): Move to namespace.c, rename it to
1659         add_using_directive, add a "using_directives" argument and use
1660         it as the pending using directives repository.  All callers
1661         updated.
1662         * dwarf2read.c (using_directives): New.
1663         (read_import_statement): Call using_directives.
1664         (read_func_scope): Update references to local_using_directives.
1665         (read_lexical_block_scope): Likewise.
1666         (read_namespace): Update the heading comment, call
1667         using_directives.
1668         * namespace.h: New file.
1669         * namespace.c: New file.
1670         * Makefile.in (SFILES): Add namespace.c.
1671         (COMMON_OBS): Add namespace.o
1672
1673 2015-08-12  Joel Brobecker  <brobecker@adacore.com>
1674
1675         * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
1676         compute RETADDR.
1677
1678 2015-08-12  Keith Seitz  <keiths@redhat.com>
1679
1680         * break-catch-throw.c (re_set_exception_catchpoint) Rename
1681         reserved C++ keyword "explicit" to "explicit_loc".
1682         * breakpoint.c (create_overlay_event_breakpoint)
1683         (create_longjmp_master_breakpoint)
1684         (create_std_terminate_master_breakpoint)
1685         (create_exception_master_breakpoint, update_static_tracepoint):
1686         Rename reserved C++ keyword "explicit" to "explicit_loc".
1687         * completer.c (collect_explicit_location_matches)
1688         (explicit_location_completer): Rename reserved C++ keyword
1689         "explicit" to "explicit_loc".
1690         * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
1691         (canonicalize_linespec, create_sals_line_offset)
1692         (convert_linespec_to_sals, convert_explicit_location_to_sals)
1693         (event_location_to_sals, decode_objc): Rename reserved C++ keyword
1694         "explicit" to "explicit_loc".
1695         * location.c (struct event_location) <explicit>: Rename to
1696         "explicit_loc".
1697         (initialize_explicit_location, new_explicit_location)
1698         (explicit_location_to_string_internal, explicit_location_to_linespec):
1699         Rename reserved C++ keyword "explicit" to "explicit_loc".
1700         * location.h (explicit_location_to_string)
1701         (explicit_location_to_linespec, initialize_explicit_location)
1702         (new_explicit_location): Rename reserved C++ keyword "explicit"
1703         to "explicit_loc".
1704         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
1705         keyword "explicit" to "explicit_loc".
1706
1707 2015-08-12  Keith Seitz  <keiths@redhat.com>
1708
1709         * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
1710         and only call decode_line_1 when it is non-NULL.
1711
1712 2015-08-12  Luis Machado  <lgustavo@codesourcery.com>
1713
1714         * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
1715         location address is not meaningful.
1716         (breakpoint_address_is_meaningful): Update comment.
1717
1718 2015-08-11  Keith Seitz  <keiths@redhat.com>
1719
1720         * NEWS: Mention explicit locations.
1721         * breakpoint.c [LOCATION_HELP_STRING]: New macro.
1722         [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
1723         (_initialize_breakpoint): Update documentation for
1724         "clear", "break", "trace", "strace", "ftrace", and "dprintf".
1725
1726 2015-08-11  Keith Seitz  <keiths@redhat.com>
1727
1728         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
1729         explicit locations, options "--source", "--function",
1730         "--label", and "--line".
1731
1732 2015-08-11  Keith Seitz  <keiths@redhat.com>
1733
1734         * completer.c: Include location.h.
1735         (enum match_type): New enum.
1736         (location_completer): Rename to ...
1737         (linespec_completer): ... this.
1738         (collect_explicit_location_matches, backup_text_ptr)
1739         (explicit_location_completer): New functions.
1740         (location_completer): "New" function; handle linespec
1741         and explicit location completions.
1742         (complete_line_internal): Remove all location completer-specific
1743         handling.
1744         * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
1745         (find_toplevel_char): Export.
1746         (linespec_parse_line_offset): Export.
1747         Issue error if STRING is not numerical.
1748         (gdb_get_linespec_parser_quote_characters): New function.
1749         * linespec.h (linespec_parse_line_offset): Declare.
1750         (get_gdb_linespec_parser_quote_characters): Declare.
1751         (is_ada_operator): Declare.
1752         (find_toplevel_char): Declare.
1753         (linespec_lexer_lex_keyword): Declare.
1754         * location.c (explicit_to_event_location): New function.
1755         (explicit_location_lex_one): New function.
1756         (string_to_explicit_location): New function.
1757         (string_to_event_location): Handle explicit locations.
1758         * location.h (explicit_to_event_location): Declare.
1759         (string_to_explicit_location): Declare.
1760
1761 2015-08-11  Keith Seitz  <keiths@redhat.com>
1762
1763         * break-catch-throw.c (re_set_exception_catchpoint): Convert
1764         linespec into explicit location.
1765         * breakpoint.c (create_overlay_breakpoint)
1766         (create_longjmp_master_breakpoint)
1767         (create_std_terminate_master_breakpoint)
1768         (create_exception_master_breakpoint): Convert linespec into explicit
1769         location.
1770         (update_static_tracepoint): Convert linespec into explicit location.
1771         * linespec.c (enum offset_relative_sign, struct line_offset): Move
1772         location.h.
1773         (struct linespec) <expression, expr_pc, source_filename>
1774         <function_name, label_name, line_offset>: Replace with ...
1775         <explicit>: ... this.
1776         <is_linespec>: New member.
1777         (PARSER_EXPLICIT): New accessor macro.
1778         (undefined_label_error): New function.
1779         (source_file_not_found_error): New function.
1780         (linespec_parse_basic): The parser result is now an explicit location.
1781         Use PARSER_EXPLICIT to access it.
1782         Use undefined_label_error.
1783         (canonicalize_linespec): Convert canonical linespec into explicit
1784         location.
1785         Move string representation of location to explicit_location_to_linespec
1786         and use it and explicit_location_to_string to save string
1787         representations of the canonical location.
1788         (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
1789         explicit location.  Update all references.
1790         (convert_explicit_location_to_sals): New function.
1791         (parse_linespec): Use PARSER_EXPLICIT to access the parser
1792         result's explicit location.
1793         (linespec_state_constructor): Initialize is_linespec.
1794         Use PARSER_EXPLICIT.
1795         (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
1796         result.
1797         (event_location_to_sals): For linespec locations, set is_linespec.
1798         Handle explicit locations.
1799         (decode_objc): 'ls' contains an explicit location now. Update all
1800         references.
1801         (symtabs_from_filename): Use source_file_not_found_error.
1802         * location.c (struct event_location.u) <explicit>: New member.
1803         (initialize_explicit_location): New function.
1804         (initialize_event_location): Initialize explicit locations.
1805         (new_explicit_location, get_explicit_location)
1806         (get_explicit_location_const): New functions.
1807         (explicit_to_string_internal): New function; most of contents moved
1808         from canonicalize_linespec.
1809         (explicit_location_to_string): New function.
1810         (explicit_location_to_linespec): New function.
1811         (copy_event_location, delete_event_location)
1812         (event_location_to_string_const, event_location_empty_p): Handle
1813         explicit locations.
1814         * location.h (enum offset_relative_sign, struct line_offset): Move
1815         here from linespec.h.
1816         (enum event_location_type): Add EXPLICIT_LOCATION.
1817         (struct explicit_location): New structure.
1818         (explicit_location_to_string): Declare.
1819         (explicit_location_to_linespec): Declare.
1820         (new_explicit_location, get_explicit_locationp
1821         (get_explicit_location_const, initialize_explicit_location): Declare.
1822
1823 2015-08-11  Keith Seitz  <keiths@redhat.com>
1824
1825         * break-catch-throw.c (re_set_exception_catchpoint): Convert
1826         linespec for stap probe to probe location.
1827         * breakpoint.c (create_longjmp_master_breakpoint)
1828         (create_exception_master_breakpoint): Likewise.
1829         (break_command_1): Remove local variable `arg_cp'.
1830         Check location type to set appropriate breakpoint ops methods.
1831         (trace_command): Likewise.
1832         * linespec.c (event_location_to_sals): Assert on probe locations.
1833         * location.c (EL_PROBE): Add macro definition.
1834         (new_probe_location, get_probe_location): New functions.
1835         (copy_event_location, delete_event_location, event_location_to_string)
1836         (string_to_event_location, event_location_empty_p): Handle probe
1837         locations.
1838         * location.h (enum event_location_type): Add PROBE_LOCATION.
1839         (new_probe_location, get_probe_location): Declare.
1840         * probe.c (parse_probes): Assert that LOCATION is a probe location.
1841         Convert linespec into probe location.
1842
1843 2015-08-11  Keith Seitz  <keiths@redhat.com>
1844
1845         * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
1846         Convert linespec to address location.
1847         * linespec.c (canonicalize_linespec): Do not handle address
1848         locations here.
1849         (convert_address_location_to_sals): New function; contents moved
1850         from ...
1851         (convert_linespc_to_sals): ... here.
1852         (parse_linespec): Remove address locations from linespec grammar.
1853         Remove handling of address locations.
1854         (linespec_lex_to_end): Remove handling of address linespecs.
1855         (event_location_to_sals): Handle ADDRESS_LOCATION.
1856         (linespec_expression_to_pc): Export.
1857         * linespec.h (linespec_expression_to_pc): Add declaration.
1858         * location.c (struct event_location.u) <address>: New member.
1859         (new_address_location, get_address_location): New functions.
1860         (copy_event_location, delete_event_location, event_location_to_string)
1861         (string_to_event_location, event_location_empty_p): Handle address
1862         locations.
1863         * location.h (enum event_location_type): Add ADDRESS_LOCATION.
1864         (new_address_location, get_address_location): Declare.
1865         * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
1866         to address location.
1867         * spu-tdep.c (spu_catch_start): Likewise.
1868
1869 2015-08-11  Keith Seitz  <keiths@redhat.com>
1870
1871         * ax-gdb.c: Include location.h.
1872         (agent_command_1) Use linespec location instead of address
1873         string.
1874         * break-catch-throw.c: Include location.h.
1875         (re_set_exception_catchpoint): Use linespec locations instead
1876         of address strings.
1877         * breakpoint.c: Include location.h.
1878         (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
1879         (create_std_terminate_master_breakpoint)
1880         (create_exception_master_breakpoint, update_breakpoints_after_exec):
1881         Use linespec location instead of address string.
1882         (print_breakpoint_location):  Use locations and
1883         event_location_to_string.
1884         Print extra_string for pending locations for non-MI streams.
1885         (print_one_breakpoint_location): Use locations and
1886         event_location_to_string.
1887         (init_raw_breakpoint_without_location): Initialize b->location.
1888         (create_thread_event_breakpoint): Use linespec location instead of
1889         address string.
1890         (init_breakpoint_sal): Likewise.
1891         Only save extra_string if it is non-NULL and not the empty string.
1892         Use event_location_to_string instead of `addr_string'.
1893         Constify `p' and `endp'.
1894         Use skip_spaces_const/skip_space_const instead of non-const versions.
1895         Copy the location into the breakpoint.
1896         If LOCATION is NULL, save the breakpoint address as a linespec location
1897         instead of an address string.
1898         (create_breakpoint_sal): Change `addr_string' parameter to a struct
1899         event_location. All uses updated.
1900         (create_breakpoints_sal): Likewise for local variable `addr_string'.
1901         (parse_breakpoint_sals): Use locations instead of address strings.
1902         Remove check for empty linespec with conditional.
1903         Refactor.
1904         (decode_static_tracepoint_spec): Make argument const and update
1905         function.
1906         (create_breakpoint): Change `arg' to a struct event_location and
1907         rename.
1908         Remove `copy_arg' and `addr_start'.
1909         If EXTRA_STRING is empty, set it to NULL.
1910         Don't populate `canonical' for pending breakpoints.
1911         Pass `extra_string' to find_condition_and_thread.
1912         Clear `extra_string' if `rest' was NULL.
1913         Do not error with "garbage after location" if setting a dprintf
1914         breakpoint.
1915         Copy the location into the breakpoint instead of an address string.
1916         (break_command_1): Use string_to_event_location and pass this to
1917         create_breakpoint instead of an address string.
1918         Check against `arg_cp' for a probe linespec.
1919         (dprintf_command): Use string_to_event_location and pass this to
1920         create_breakpoint instead of an address string.
1921         Throw an exception if no format string was specified.
1922         (print_recreate_ranged_breakpoint): Use event_location_to_string
1923         instead of address strings.
1924         (break_range_command, until_break_command)
1925         (init_ada_exception_breakpoint): Use locations instead
1926         of address strings.
1927         (say_where): Print out extra_string for pending locations.
1928         (base_breakpoint_dtor): Delete `location' and `location_range_end' of
1929         the breakpoint.
1930         (base_breakpoint_create_sals_from_location): Use struct event_location
1931         instead of address string.
1932         Remove `addr_start' and `copy_arg' parameters.
1933         (base_breakpoint_decode_location): Use struct event_location instead of
1934         address string.
1935         (bkpt_re_set): Use locations instead of address strings.
1936         Use event_location_empty_p to check for unset location.
1937         (bkpt_print_recreate): Use event_location_to_string instead of
1938         an address string.
1939         Print out extra_string for pending locations.
1940         (bkpt_create_sals_from_location, bkpt_decode_location)
1941         (bkpt_probe_create_sals_from_location): Use struct event_location
1942         instead of address string.
1943         (bkpt_probe_decode_location): Use struct event_location instead of
1944         address string.
1945         (tracepoint_print_recreate): Use event_location_to_string to
1946         recreate the tracepoint.
1947         (tracepoint_create_sals_from_location, tracepoint_decode_location)
1948         (tracepoint_probe_create_sals_from_location)
1949         (tracepoint_probe_decode_location): Use struct event_location
1950         instead of address string.
1951         (dprintf_print_recreate): Use event_location_to_string to recreate
1952         the dprintf.
1953         (dprintf_re_set): Remove check for valid/missing format string.
1954         (strace_marker_create_sals_from_location)
1955         (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
1956         (update_static_tracepoint): Use struct event_location instead of
1957         address string.
1958         (location_to_sals): Likewise.
1959         Pass `extra_string' to find_condition_and_thread.
1960         For newly resolved pending breakpoint locations, clear the location's
1961         string representation.
1962         Assert that the breakpoint's condition string is NULL when
1963         condition_not_parsed.
1964         (breakpoint_re_set_default, create_sals_from_location_default)
1965         (decode_location_default, trace_command, ftrace_command)
1966         (strace_command, create_tracepoint_from_upload): Use locations
1967         instead of address strings.
1968         * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
1969         Use struct event_location instead of address string.
1970         Update all uses.
1971         <decode_location>: Likewise.
1972         (struct breakpoint) <addr_string>: Change to struct event_location
1973         and rename `location'.
1974         <addr_string_range_end>: Change to struct event_location and rename
1975         `location_range_end'.
1976         (create_breakpoint): Use struct event_location instead of address
1977         string.
1978         * cli/cli-cmds.c: Include location.h.
1979         (edit_command, list_command): Use locations instead of address strings.
1980         * elfread.c: Include location.h.
1981         (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
1982         * guile/scm-breakpoint.c: Include location.h.
1983         (bpscm_print_breakpoint_smob): Use event_location_to_string.
1984         (gdbscm_register_breakpoint): Use locations instead of address
1985         strings.
1986         * linespec.c: Include location.h.
1987         (struct ls_parser) <stream>: Change to const char *.
1988         (PARSER_STREAM): Update.
1989         (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
1990         keywords must be followed by whitespace.
1991         (canonicalize_linespec): Save a linespec location into `canonical'.
1992         Save a canonical linespec into `canonical'.
1993         (parse_linespec): Change `argptr' to const char * and rename `arg'.
1994         All uses updated.
1995         Update function description.
1996         (linespec_parser_new): Initialize `parser'.
1997         Update initialization of  parsing stream.
1998         (event_location_to_sals): New function.
1999         (decode_line_full): Change `argptr' to a struct event_location and
2000         rename it `location'.
2001         Use locations instead of address strings.
2002         Call event_location_to_sals instead of parse_linespec.
2003         (decode_line_1): Likewise.
2004         (decode_line_with_current_source, decode_line_with_last_displayed)
2005         Use locations instead of address strings.
2006         (decode_objc): Likewise.
2007         Change `argptr' to const char * and rename `arg'.
2008         (destroy_linespec_result): Delete the linespec result's location
2009         instead of freeing the address string.
2010         * linespec.h (struct linespec_result) <addr_string>: Change to
2011         struct event_location and rename to ...
2012         <location>: ... this.
2013         (decode_line_1, decode_line_full): Change `argptr' to struct
2014         event_location.  All callers updated.
2015         * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
2016         (mi_cmd_break_insert_1): Use locations instead of address strings.
2017         Throw an error if there was "garbage" at the end of the specified
2018         linespec.
2019         * probe.c: Include location.h.
2020         (parse_probes): Change `argptr' to struct event_location.
2021         Use event locations instead of address strings.
2022         * probe.h (parse_probes): Change `argptr' to struct event_location.
2023         * python/py-breakpoint.c: Include location.h.
2024         (bppy_get_location): Constify local variable `str'.
2025         Use event_location_to_string.
2026         (bppy_init): Use locations instead of address strings.
2027         * python/py-finishbreakpoint.c: Include location.h.
2028         (bpfinishpy_init): Remove local variable `addr_str'.
2029         Use locations instead of address strings.
2030         * python/python.c: Include location.h.
2031         (gdbpy_decode_line): Use locations instead of address strings.
2032         * remote.c: Include location.h.
2033         (remote_download_tracepoint): Use locations instead of address
2034         strings.
2035         * spu-tdep.c: Include location.h.
2036         (spu_catch_start): Remove local variable `buf'.
2037         Use locations instead of address strings.
2038         * tracepoint.c: Include location.h.
2039         (scope_info): Use locations instead of address strings.
2040         (encode_source_string): Constify parameter `src'.
2041         * tracepoint.h (encode_source_string): Likewise.
2042
2043 2015-08-11  Keith Seitz  <keiths@redhat.com>
2044
2045         * Makefile.in (SFILES): Add location.c.
2046         (HFILES_NO_SRCDIR): Add location.h.
2047         (COMMON_OBS): Add location.o.
2048         * linespec.c (linespec_lex_to_end): New function.
2049         * linespec.h (linespec_lex_to_end): Declare.
2050         * location.c: New file.
2051         * location.h: New file.
2052
2053 2015-08-11  Keith Seitz  <keiths@redhat.com>
2054
2055         * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
2056         Renamed to create_sals_from_location.
2057         <decode_linespec>: Renamed to decode_location.
2058         Update all callers.
2059         * breakpoint.c (create_sals_from_address_default): Renamed to ...
2060         (create_sals_from_location_default): ... this.
2061         (addr_string_to_sals): Renamed to ...
2062         (location_to_sals): ... this.
2063         (decode_linespec_default): Renamed to ...
2064         (decode_location_default): ... this.
2065         (base_breakpoint_create_sals_from_address): Renamed to ...
2066         (base_breakpoint_create_sals_from_location): ... this.
2067         (bkpt_create_sals_from_address): Renamed to ...
2068         (bkpt_create_sals_from_location): ... this.
2069         (bkpt_decode_linespec): Renamed to ...
2070         (bkpt_decode_location): ... this.
2071         (bkpt_probe_create_sals_from_address): Renamed to ...
2072         (bkpt_probe_create_sals_from_location): ... this.
2073         (tracepoint_create_sals_from_address): Renamed to ...
2074         (tracepoint_create_sals_from_location): ... this.
2075         (tracepoint_decode_linespec): Renamed to ...
2076         (tracepoint_decode_location): ... this.
2077         (tracepoint_probe_create_sals_from_address): Renamed to ...
2078         (tracepoint_probe_create_sals_from_location): ... this.
2079         (tracepoint_probe_decode_linespec): Renamed to ...
2080         (tracepoint_probe_decode_location): ... this.
2081         (strace_marker_create_sals_from_address): Renamed to ...
2082         (strace_marker_create_sals_from_location): ... this.
2083         (decode_linespec_default): Renamed to ...
2084         (decode_location_default): ... this.
2085
2086 2015-08-10  Doug Evans  <dje@google.com>
2087             Keith Seitz  <keiths@redhat.com>
2088
2089         PR gdb/17960
2090         * symtab.c (make_file_symbol_completion_list_1): Renamed from
2091         make_file_symbol_completion_list and made static.
2092         (make_file_symbol_completion_list): New function.
2093
2094 2015-08-10  Joel Brobecker  <brobecker@adacore.com>
2095
2096         * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
2097         trailing new-line at end of warning message.
2098         (proceed): Add i18n marker to error messages.
2099
2100 2015-08-07  Pedro Alves  <palves@redhat.com>
2101
2102         * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
2103
2104 2015-08-07  Pedro Alves  <palves@redhat.com>
2105
2106         * s390-linux-tdep.c (is_non_branch_ril)
2107         (s390_displaced_step_copy_insn): New functions.
2108         (s390_displaced_step_fixup): Update comment.
2109         (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
2110         gdbarch_displaced_step_copy_insn hook.
2111
2112 2015-08-07  Pedro Alves  <palves@redhat.com>
2113
2114         * infrun.c (displaced_step_prepare_throw): Return -1 if
2115         gdbarch_displaced_step_copy_insn returns NULL.  Update intro
2116         comment.
2117         * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
2118         (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
2119         in file.
2120         (ppc_displaced_step_copy_insn): New function.
2121         (ppc_displaced_step_fixup): Update comment.
2122         (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
2123         gdbarch_displaced_step_copy_insn hook.
2124         * gdbarch.sh (displaced_step_copy_insn): Document what happens on
2125         NULL return.
2126         * gdbarch.h: Regenerate.
2127
2128 2015-08-07  Pedro Alves  <palves@redhat.com>
2129
2130         * inferior.h (struct inferior) <displaced_stepping_failed>: New
2131         field.
2132         * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
2133         Return false if dispaced stepping failed before.
2134         (resume): Pass the current inferior to
2135         use_displaced_stepping_now_p.  Wrap displaced_step_prepare in
2136         TRY/CATCH.  If we get a MEMORY_ERROR, set the inferior's
2137         displaced_stepping_failed flag, and fall back to an in-line
2138         step-over.
2139
2140 2015-08-07  Pedro Alves  <palves@redhat.com>
2141
2142         * darwin-nat.c (darwin_stop): Rename to ...
2143         (darwin_interrupt): ... this.
2144         (_initialize_darwin_inferior): Adjust.
2145         * gnu-nat.c (gnu_stop): Delete.
2146         (gnu_target): Don't install gnu_stop.
2147         * inf-ptrace.c (inf_ptrace_stop): Rename to ...
2148         (inf_ptrace_interrupt): ... this.
2149         (inf_ptrace_target): Adjust.
2150         * infcmd.c (interrupt_target_1): Use target_interrupt instead of
2151         target_stop.
2152         * linux-nat (linux_nat_stop): Rename to ...
2153         (linux_nat_interrupt): ... this.
2154         (linux_nat_stop): Reimplement.
2155         (linux_nat_add_target): Install linux_nat_interrupt.
2156         * nto-procfs.c (nto_interrupt_twice): Rename to ...
2157         (nto_handle_sigint_twice): ... this.
2158         (nto_interrupt): Rename to ...
2159         (nto_handle_sigint): ... this.  Call target_interrupt instead of
2160         target_stop.
2161         (procfs_wait): Adjust.
2162         (procfs_stop): Rename to ...
2163         (procfs_interrupt): ... this.
2164         (init_procfs_targets): Adjust.
2165         * procfs.c (procfs_stop): Rename to ...
2166         (procfs_interrupt): ... this.
2167         (procfs_target): Adjust.
2168         * remote-m32r-sdi.c (m32r_stop): Rename to ...
2169         (m32r_interrupt): ... this.
2170         (init_m32r_ops): Adjust.
2171         * remote-sim.c (gdbsim_stop_inferior): Rename to ...
2172         (gdbsim_interrupt_inferior): ... this.
2173         (gdbsim_stop): Rename to ...
2174         (gdbsim_interrupt): ... this.
2175         (gdbsim_cntrl_c): Adjust.
2176         (init_gdbsim_ops): Adjust.
2177         * remote.c (sync_remote_interrupt): Adjust comments.
2178         (remote_stop_as): Rename to ...
2179         (remote_interrupt_as): ... this.
2180         (remote_stop): Adjust comment.
2181         (remote_interrupt): New function.
2182         (init_remote_ops): Install remote_interrupt.
2183         * target.c (target_interrupt): New function.
2184         * target.h (struct target_ops) <to_interrupt>: New field.
2185         (target_interrupt): New declaration.
2186         * windows-nat.c (windows_stop): Rename to ...
2187         (windows_interrupt): ... this.
2188         * target-delegates.c: Regenerate.
2189
2190 2015-08-07  Pedro Alves  <palves@redhat.com>
2191
2192         * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
2193         threads" as alternative to "switching back to stepped thread".
2194
2195 2015-08-07  Pedro Alves  <palves@redhat.com>
2196
2197         * NEWS: Mention "maint set/show target-non-stop".
2198         * breakpoint.c (update_global_location_list): Check
2199         target_is_non_stop_p instead of non_stop.
2200         * infcmd.c (attach_command_post_wait, attach_command): Likewise.
2201         * infrun.c (show_can_use_displaced_stepping)
2202         (can_use_displaced_stepping_p, start_step_over_inferior):
2203         Likewise.
2204         (internal_resume_ptid): New function.
2205         (resume): Use it.
2206         (proceed): Check target_is_non_stop_p instead of non_stop.  If in
2207         all-stop mode but the target is always in non-stop mode, start all
2208         the other threads that are implicitly resumed too.
2209         (for_each_just_stopped_thread, fetch_inferior_event)
2210         (adjust_pc_after_break, stop_all_threads): Check
2211         target_is_non_stop_p instead of non_stop.
2212         (handle_inferior_event): Likewise.  Handle detach-fork in all-stop
2213         with the target always in non-stop mode.
2214         (handle_signal_stop) <random signal>: Check target_is_non_stop_p
2215         instead of non_stop.
2216         (switch_back_to_stepped_thread): Check target_is_non_stop_p
2217         instead of non_stop.
2218         (keep_going_stepped_thread): Use internal_resume_ptid.
2219         (stop_waiting): If in all-stop mode, and the target is in non-stop
2220         mode, stop all threads.
2221         (keep_going_pass): Likewise, when starting a new in-line step-over
2222         sequence.
2223         * linux-nat.c (get_pending_status, select_event_lwp)
2224         (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
2225         target_is_non_stop_p instead of non_stop.
2226         (linux_nat_always_non_stop_p): New function.
2227         (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
2228         (linux_nat_add_target): Install linux_nat_always_non_stop_p.
2229         * target-delegates.c: Regenerate.
2230         * target.c (target_is_non_stop_p): New function.
2231         (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
2232         (maint_set_target_non_stop_command)
2233         (maint_show_target_non_stop_command): New functions.
2234         (_initilize_target): Install "maint set/show target-non-stop"
2235         commands.
2236         * target.h (struct target_ops) <to_always_non_stop_p>: New field.
2237         (target_non_stop_enabled): New declaration.
2238         (target_is_non_stop_p): New declaration.
2239
2240 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
2241
2242         * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
2243         has a pending status, return true.
2244         * gdbthread.h: Include target/waitstatus.h.
2245         (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
2246         stop_pc>: New fields.
2247         (struct thread_info) <resumed>: New field.
2248         (set_resumed): Declare.
2249         * infrun.c: Include "event-loop.h".
2250         (infrun_async_inferior_event_token, infrun_is_async): New globals.
2251         (infrun_async): New function.
2252         (clear_step_over_info): Add debug output.
2253         (displaced_step_in_progress_any_inferior): New function.
2254         (displaced_step_fixup): New returns int.
2255         (start_step_over): Handle in-line step-overs too.  Assert the
2256         thread is marked resumed.
2257         (resume_cleanups): Clear the thread's resumed flag.
2258         (resume): Set the thread's resumed flag.  Return early if the
2259         thread has a pending status.  Allow stepping a breakpoint with no
2260         signal.
2261         (proceed): Adjust to check 'resumed' instead of 'executing'.
2262         (clear_proceed_status_thread): If the thread has a pending status,
2263         and that status is a finished step, discard the pending status.
2264         (clear_proceed_status): Don't clear step_over_info here.
2265         (random_pending_event_thread, do_target_wait): New functions.
2266         (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
2267         do_target_wait.
2268         (wait_one): New function.
2269         (THREAD_STOPPED_BY): New macro.
2270         (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2271         (thread_stopped_by_hw_breakpoint): New functions.
2272         (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
2273         functions.
2274         (handle_inferior_event): Also call set_resumed(false) on all
2275         threads implicitly stopped by the event.
2276         (restart_threads, resumed_thread_with_pending_status): New
2277         functions.
2278         (finish_step_over): If we were doing an in-line step-over before,
2279         and no longer are after trying to start a new step-over, restart
2280         all threads.  If we have multiple threads with pending events,
2281         save the current event and go through the event loop again.
2282         (handle_signal_stop): Return early if finish_step_over returns
2283         false.
2284         <random signal>: If we get a signal while stepping over a
2285         breakpoint in-line in non-stop mode, restart all threads.  Clear
2286         step_over_info before delivering the signal.
2287         (keep_going_stepped_thread): Use internal_error instead of
2288         gdb_assert.  Mark the thread as resumed.
2289         (keep_going_pass_signal): Assert the thread isn't already resumed.
2290         If some other thread is doing an in-line step-over, defer the
2291         resume.  If we just started a new in-line step-over, stop all
2292         threads.  Don't clear step_over_info.
2293         (infrun_async_inferior_event_handler): New function.
2294         (_initialize_infrun): Create async event handler with
2295         infrun_async_inferior_event_handler as callback.
2296         (infrun_async): New declaration.
2297         * target.c (target_async): New function.
2298         * target.h (target_async): Declare macro and readd as function
2299         declaration.
2300         * target/waitstatus.h (enum target_stop_reason)
2301         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
2302         * thread.c (new_thread): Clear the new waitstatus field.
2303         (set_resumed): New function.
2304
2305 2015-08-07  Pedro Alves  <palves@redhat.com>
2306
2307         * infrun.c (keep_going_stepped_thread): New function, factored out
2308         from ...
2309         (switch_back_to_stepped_thread): ... here.
2310
2311 2015-08-07  Pedro Alves  <palves@redhat.com>
2312
2313         * infrun.c (currently_stepping): Extend intro comment.
2314         * target.h (target_resume): Extend intro comment.
2315
2316 2015-08-07  Pedro Alves  <palves@redhat.com>
2317
2318         * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
2319         of inferior_ptid.  If the stepped thread vanished, return 0
2320         instead of resuming here.  Use reset_ecs.  Print the prev_pc and
2321         the current stop_pc in log message.  Clear trap_expected if the
2322         thread advanced.  Don't pass currently_stepping to
2323         do_target_resume.
2324
2325 2015-08-07  Pedro Alves  <palves@redhat.com>
2326
2327         * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
2328         * infrun.c (struct execution_control_state): Move higher up in the
2329         file.
2330         (reset_ecs): New function.
2331         (start_step_over): Now returns int.  Rewrite to use
2332         keep_going_pass_signal instead of manually starting a displaced step.
2333         (resume): Don't call set_running here.  If displaced stepping
2334         can't start now, clear trap_expected.
2335         (find_thread_needs_step_over): Delete function.
2336         (proceed): Set up finish_thread_state_cleanup.  Call set_running.
2337         If the current thread needs a step over, push it in the step-over
2338         chain.  Don't set insert breakpoints nor call resume directly
2339         here.  Instead rewrite to use start_step_over and
2340         keep_going_pass_signal.
2341         (finish_step_over): New function.
2342         (handle_signal_stop): Call finish_step_over instead of
2343         start_step_over.
2344         (switch_back_to_stepped_thread): If the event thread needs another
2345         step-over do that first.  Use start_step_over.
2346         (keep_going_pass_signal): New function, factored out from ...
2347         (keep_going): ... here.
2348         (_initialize_infrun): Comment moved here.
2349         * thread.c (set_running_thread): New function.
2350         (set_running, finish_thread_state): Use set_running_thread.
2351
2352 2015-08-07  Pedro Alves  <palves@redhat.com>
2353
2354         * gdbthread.h (struct thread_info) <step_over_prev,
2355         step_over_next>: New fields.
2356         (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
2357         (thread_step_over_chain_next, thread_is_in_step_over_chain): New
2358         declarations.
2359         * infrun.c (struct displaced_step_request): Delete.
2360         (struct displaced_step_inferior_state) <step_request_queue>:
2361         Delete field.
2362         (displaced_step_prepare): Assert that trap_expected is set.  Use
2363         thread_step_over_chain_enqueue.  Split starting a new displaced
2364         step to ...
2365         (start_step_over): ... this new function.
2366         (resume): Assert the thread isn't waiting for a step over already.
2367         (proceed): Assert the thread isn't waiting for a step over
2368         already.
2369         (infrun_thread_stop_requested): Adjust to remove threads from the
2370         embedded step-over chain.
2371         (handle_inferior_event) <fork/vfork>: Call start_step_over after
2372         displaced_step_fixup.
2373         (handle_signal_stop): Call start_step_over after
2374         displaced_step_fixup.
2375         * infrun.h (step_over_queue_head): New declaration.
2376         * thread.c (step_over_chain_enqueue, step_over_chain_remove)
2377         (thread_step_over_chain_next, thread_is_in_step_over_chain)
2378         (thread_step_over_chain_enqueue)
2379         (thread_step_over_chain_remove): New functions.
2380         (delete_thread_1): Remove thread from the step-over chain.
2381
2382 2015-08-07  Pedro Alves  <palves@redhat.com>
2383
2384         * infrun.c (thread_still_needs_step_over): Rename to ...
2385         (thread_still_needs_step_over_bp): ... this.
2386         (enum step_over_what): New.
2387         (thread_still_needs_step_over): Reimplement.
2388
2389 2015-08-07  Pedro Alves  <palves@redhat.com>
2390
2391         * remote.c (remote_wait_as): If not waiting for a stop reply,
2392         return TARGET_WAITKIND_NO_RESUMED.  If TARGET_WNOHANG is
2393         requested, don't block waiting forever.
2394
2395 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
2396
2397         * infrun.c (adjust_pc_after_break): Now takes thread_info and
2398         waitstatus pointers instead of an ecs.  Adjust.
2399         (handle_inferior_event): Adjust caller.
2400
2401 2015-08-07  Pedro Alves  <palves@redhat.com>
2402
2403         * infrun.c (handle_inferior_event): If we get
2404         TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
2405         mode, mark all threads of the exiting process as not-executing.
2406         (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
2407         TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
2408         exiting process, if inferior_ptid still points at a process.
2409         * thread.c (struct current_thread_cleanup) <next>: New field.
2410         (current_thread_cleanup_chain): New global.
2411         (restore_current_thread_ptid_changed): New function.
2412         (restore_current_thread_cleanup_dtor): Remove the cleanup from the
2413         current_thread_cleanup_chain list.
2414         (make_cleanup_restore_current_thread): Add the cleanup data to the
2415         current_thread_cleanup_chain list.
2416         (_initialize_thread): Install restore_current_thread_ptid_changed
2417         as thread_ptid_changed observer.
2418
2419 2015-08-07  Joel Brobecker  <brobecker@adacore.com>
2420
2421         * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
2422         data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
2423         smaller than expected.
2424
2425 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
2426
2427         * stack.c (get_frame_language): Moved ...
2428         * frame.c (get_frame_language): ... to here.
2429         * language.h (get_frame_language): Declaration moved to frame.h.
2430         * frame.h: Add language.h include, for language enum.
2431         (get_frame_language): Declaration moved from language.h.
2432         * language.c: Add frame.h include.
2433         * top.c: Add frame.h include.
2434         * symtab.h (struct obj_section): Declare.
2435         (struct cmd_list_element): Declare.
2436
2437 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
2438
2439         * language.c (show_language_command): Find selected frame before
2440         asking for the language of that frame.
2441         (set_language_command): Likewise.
2442         * language.h (get_frame_language): Add frame parameter.
2443         * stack.c (get_frame_language): Add frame parameter, assert
2444         parameter is not NULL, update comment and reindent.
2445         * top.c (check_frame_language_change): Pass the selected frame
2446         into get_frame_language.
2447
2448 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
2449
2450         * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
2451         (pt_btrace_insn_flags): New.
2452         (ftrace_add_pt): Call pt_btrace_insn_flags.
2453         * btrace.h (btrace_insn_flag): New.
2454         (btrace_insn) <flags>: New.
2455         * record-btrace.c (btrace_insn_history): Print insn prefix.
2456         * NEWS: Announce it.
2457
2458 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
2459
2460         * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
2461         * configure: Regenerate.
2462
2463 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
2464
2465         * Makefile.in (LIBICONV): Define.
2466         (CLIBS): Add LIBICONV.
2467         * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
2468         * configure: Regenerate.
2469
2470 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
2471             Pedro Alves  <palves@redhat.com>
2472
2473         * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
2474         (arm_set_abi): Likewise.
2475         * ax-general.c (ax_print): Likewise.
2476         * c-exp.y (exp : string_exp): Likewise.
2477         * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
2478         (do_compile_dwarf_expr_to_c): Likewise.
2479         * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
2480         Likewise.
2481         * dwarf2expr.c (execute_stack_op): Likewise.
2482         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
2483         (disassemble_dwarf_expression): Likewise.
2484         * dwarf2read.c (dwarf2_add_member_fn): Likewise.
2485         (read_array_order): Likewise.
2486         (abbrev_table_read_table): Likewise.
2487         (read_attribute_value): Likewise.
2488         (skip_unknown_opcode): Likewise.
2489         (dwarf_decode_macro_bytes): Likewise.
2490         (dwarf_decode_macros): Likewise.
2491         * eval.c (value_f90_subarray): Likewise.
2492         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
2493         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
2494         * infrun.c (handle_command): Likewise.
2495         * memory-map.c (memory_map_start_memory): Likewise.
2496         * osabi.c (set_osabi): Likewise.
2497         * parse.c (operator_length_standard): Likewise.
2498         * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
2499         single return point.
2500         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
2501         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2502         (gdbpy_lookup_global_symbol): Likewise.
2503         * record-full.c (record_full_restore): Likewise.
2504         * regcache.c (regcache_register_status): Likewise.
2505         (regcache_raw_read): Likewise.
2506         (regcache_cooked_read): Likewise.
2507         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
2508         * symtab.c (initialize_ordinary_address_classes): Likewise.
2509         * target-debug.h (target_debug_print_signals): Likewise.
2510         * utils.c (do_restore_current_language): Likewise.
2511
2512 2015-08-06  Clem Dickey  <clemd@acm.org>
2513
2514         PR python/17136
2515         * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
2516
2517 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
2518
2519         * complaints.c (enum complaint_series): Add newlines and remove
2520         out of date comment.
2521         (struct complaints) <series>: Change type to enum
2522         complaint_series and remove out of date comment.
2523         (symfile_complaint_hook): Use equivalent enum value
2524         ISOLATED_MESSAGE instead of 0.
2525
2526 2015-08-06  Pedro Alves  <palves@redhat.com>
2527
2528         * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
2529         returned > 0.
2530
2531 2015-08-06  Pierre Langlois  <pierre.langlois@arm.com>
2532
2533         * common/agent.c (symbol_list) <required>: Remove.
2534
2535 2015-08-06  Pedro Alves  <palves@redhat.com>
2536
2537         * target/waitstatus.h (enum target_stop_reason)
2538         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
2539
2540 2015-08-05  Pedro Alves  <palves@redhat.com>
2541             Joel Brobecker  <brobecker@adacore.com>
2542
2543         * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
2544         <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
2545         case where BS->STOP is not set.
2546
2547 2015-08-05  Ulrich Weigand  <uweigand@de.ibm.com>
2548
2549         * nat/gdb_thread_db.h: Add copyright header.
2550         Protect against multiple inclusion.
2551
2552 2015-08-05  Yao Qi  <yao.qi@linaro.org>
2553
2554         * aarch64-linux-nat.c (get_thread_id): Remove.
2555         (debug_reg_change_callback): Call ptid_get_lwp instead of
2556         get_thread_id.
2557         (fetch_gregs_from_thread): Likewise.
2558         (store_gregs_to_thread): Likewise.
2559         (fetch_fpregs_from_thread): Likewise.
2560         (store_fpregs_to_thread): Likewise.
2561         (aarch64_linux_get_debug_reg_capacity): Likewise.
2562         * arm-linux-nat.c (get_thread_id): Remove.
2563         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
2564         * xtensa-linux-nat.c (get_thread_id): Remove.
2565         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
2566         * arm-linux-nat.c (get_thread_id): Remove.
2567         (GET_THREAD_ID): Remove.
2568         (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
2569         (store_fpregs, fetch_regs, store_regs): Likewise.
2570         (fetch_wmmx_regs, store_wmmx_regs): Likewise.
2571         (fetch_vfp_regs, store_vfp_regs): Likewise.
2572         (arm_linux_read_description): Likewise.
2573         (arm_linux_get_hwbp_cap): Likewise.
2574         * xtensa-linux-nat.c (get_thread_id): Remove.
2575         (GET_THREAD_ID): Remove.
2576         (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
2577         GET_THREAD_ID.
2578
2579 2015-08-04  Ciro Santilli  <ciro.santilli@gmail.com>  (obvious patch)
2580
2581         * python/py-linetable.c: Fix case of Linetable to LineTable
2582         in docstrings and code comments.
2583         * python/py-symtab.c: Same.
2584
2585 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
2586
2587         * infcmd.c (signal_command): Call do_cleanups for args_chain.
2588
2589 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
2590
2591         PR gdb/18767
2592         * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
2593         use.
2594
2595 2015-08-04  Pedro Alves  <palves@redhat.com>
2596
2597         * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
2598         (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
2599         (td_ta_event_addr_ftype, td_ta_set_event_ftype)
2600         (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
2601         (td_thr_validate_ftype, td_thr_get_info_ftype)
2602         (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
2603         (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
2604         New typedefs.
2605         * linux-thread-db.c (struct thread_db_info): Use new typedefs.
2606         (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
2607         local macros and use them instead of verbose_dlsym and dlsym
2608         calls.
2609
2610 2015-08-03  Sandra Loosemore  <sandra@codesourcery.com>
2611
2612         * nios2-tdep.h: Include opcode/nios2.h here.
2613         (NIOS2_CDX_OPCODE_SIZE): New.
2614         (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
2615         * nios2-tdep.c: Don't include opcode/nios2.h here.
2616         (nios2_fetch_insn): For R2, try reading 2-byte instruction if
2617         4-byte read fails.
2618         (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
2619         (nios2_match_addi, nios2_match_orhi): Likewise.
2620         (nios2_match_stw, nios2_match_ldw): Likewise.
2621         (nios2_match_rdctl): Likewise.
2622         (nios2_match_stwm, nios2_match_ldwm): New.
2623         (nios2_match_branch): Add cases for R2 encodings.
2624         (nios2_match_jmpi, nios2_match_calli): Likewise.
2625         (nios2_match_jmpr, nios2_match_callr): Likewise.
2626         (nios2_match_break, nios2_match_trap): Likewise.
2627         (nios2_in_epilogue_p): Add R2 support.
2628         (nios2_analyze_prologue): Update comments.  Recognize R2 CDX
2629         prologues.
2630         (nios2_breakpoint_from_pc): Handle R2 instructions.
2631         (nios2_get_next_pc): Likewise.  Adjust call to
2632         tdep->syscall_next_pc.
2633         * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
2634         Renamed from nios2_linux_rt_sigreturn_tramp_frame.  Use
2635         instruction field macros instead of literal hex values.
2636         (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
2637         (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
2638         Use size field from OP instead of assuming all instructions
2639         are the same size.
2640         (nios2_linux_init_abi): Register appropriate unwinder for mach.
2641
2642 2015-08-03  Ulrich Weigand  <uweigand@de.ibm.com>
2643
2644         * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
2645         variable warning with some compilers.
2646
2647 2015-08-03  Yao Qi  <yao.qi@linaro.org>
2648
2649         * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
2650         in comment.  Replace "rw" with "type".
2651         (arm_linux_remove_watchpoint): Change type of "rw" to
2652         "enum target_hw_bp_type".
2653
2654 2015-08-02  Pierre-Marie de Rodat  <derodat@adacore.com>
2655
2656         * alpha-mdebug-tdep.c (find_proc_desc): Update call to
2657         lookup_symbol.
2658         * ft32-tdep.c (ft32_skip_prologue): Likewise.
2659         * moxie-tdep.c (moxie_skip_prologue): Likewise.
2660         * mt-tdep.c (mt_skip_prologue): Likewise.
2661         * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
2662
2663 2015-08-01  Pierre-Marie de Rodat  <derodat@adacore.com>
2664
2665         * ada-exp.y (write_object_renaming): Replace struct
2666         ada_symbol_info with struct block_symbol.  Update field
2667         references accordingly.
2668         (block_lookup, select_possible_type_sym): Likewise.
2669         (find_primitive_type): Likewise.  Also update call to
2670         ada_lookup_symbol to extract the symbol itself.
2671         (write_var_or_type, write_name_assoc): Likewise.
2672         * ada-lang.h (struct ada_symbol_info): Remove.
2673         (ada_lookup_symbol_list): Replace struct ada_symbol_info with
2674         struct block_symbol.
2675         (ada_lookup_encoded_symbol, user_select_syms): Likewise.
2676         (ada_lookup_symbol): Return struct block_symbol instead of a
2677         mere symbol.
2678         * ada-lang.c (defns_collected): Replace struct ada_symbol_info
2679         with struct block_symbol.
2680         (resolve_subexp, ada_resolve_function, sort_choices,
2681         user_select_syms, is_nonfunction, add_defn_to_vec,
2682         num_defns_collected, defns_collected,
2683         symbols_are_identical_enums, remove_extra_symbols,
2684         remove_irrelevant_renamings, add_lookup_symbol_list_worker,
2685         ada_lookup_symbol_list, ada_iterate_over_symbols,
2686         ada_lookup_encoded_symbol, get_var_value): Likewise.
2687         (ada_lookup_symbol): Return a block_symbol instead of a mere
2688         symbol.  Replace struct ada_symbol_info with struct
2689         block_symbol.
2690         (ada_lookup_symbol_nonlocal): Likewise.
2691         (standard_lookup): Make block passing explicit through
2692         lookup_symbol_in_language.
2693         * ada-tasks.c (get_tcb_types_info): Update the calls to
2694         lookup_symbol_in_language to extract the mere symbol out of the
2695         returned value.
2696         (ada_tasks_inferior_data_sniffer): Likewise.
2697         * ax-gdb.c (gen_static_field): Likewise for the call to
2698         lookup_symbol.
2699         (gen_maybe_namespace_elt): Deal with struct block_symbol from
2700         lookup functions.
2701         (gen_expr): Likewise.
2702         * c-exp.y: Likewise.  Remove uses of block_found.
2703         (lex_one_token, classify_inner_name, c_print_token): Likewise.
2704         (classify_name): Likewise.  Rename the "sym" local variable to
2705         "bsym".
2706         * c-valprint.c (print_unpacked_pointer): Likewise.
2707         * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
2708         "sym" parameter from struct symbol * to struct block_symbol.
2709         Use it to remove uses of block_found.  Deal with struct
2710         block_symbol from lookup functions.
2711         (gcc_convert_symbol): Likewise.  Update the call to
2712         convert_symbol_sym.
2713         * compile/compile-object-load.c (compile_object_load): Deal with
2714         struct block_symbol from lookup functions.
2715         * cp-namespace.c (cp_lookup_nested_symbol_1,
2716         cp_lookup_nested_symbol, cp_lookup_bare_symbol,
2717         cp_search_static_and_baseclasses,
2718         cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
2719         cp_lookup_symbol_imports_or_template,
2720         cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
2721         lookup_namespace_scope, cp_lookup_nonlocal,
2722         find_symbol_in_baseclass): Return struct block_symbol instead of
2723         mere symbols and deal with struct block_symbol from lookup
2724         functions.
2725         * cp-support.c (inspect_type, replace_typedefs,
2726         cp_lookup_rtti_type): Deal with struct block_symbol from
2727         lookup functions.
2728         * cp-support.h (cp_lookup_symbol_nonlocal,
2729         cp_lookup_symbol_from_namespace,
2730         cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
2731         Return struct block_symbol instead of mere symbols.
2732         * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
2733         push_module_name):
2734         Deal with struct block_symbol from lookup functions.  Remove
2735         uses of block_found.
2736         * eval.c (evaluate_subexp_standard): Update call to
2737         cp_lookup_symbol_namespace.
2738         * f-exp.y: Deal with struct block_symbol from lookup functions.
2739         Remove uses of block_found.
2740         (yylex): Likewise.
2741         * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
2742         lookup_enum, lookup_template_type, check_typedef): Deal with
2743         struct block_symbol from lookup functions.
2744         * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
2745         * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
2746         (gdbscm_lookup_global_symbol): Likewise.
2747         * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
2748         * go-exp.y: Likewise.  Remove uses of block_found.
2749         (package_name_p, classify_packaged_name, classify_name):
2750         Likewise.
2751         * infrun.c (insert_exception_resume_breakpoint): Likewise.
2752         * jv-exp.y (push_variable): Likewise.
2753         * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
2754         * language.c (language_bool_type): Likewise.
2755         * language.h (struct language_defn): Update
2756         la_lookup_symbol_nonlocal to return a struct block_symbol rather
2757         than a mere symbol.
2758         * linespec.c (find_label_symbols): Deal with struct block_symbol
2759         from lookup functions.
2760         * m2-exp.y: Likewise.  Remove uses of block_found.
2761         (yylex): Likewise.
2762         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
2763         * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
2764         * p-exp.y: Likewise.  Remove uses of block_found.
2765         (yylex): Likewise.
2766         * p-valprint.c (pascal_val_print): Likewise.
2767         * parse.c (write_dollar_variable): Likewise.  Remove uses of
2768         block_found.
2769         * parser-defs.h (struct symtoken): Turn the SYM field into a
2770         struct block_symbol.
2771         * printcmd.c (address_info): Deal with struct block_symbol from
2772         lookup functions.
2773         * python/py-frame.c (frapy_read_var): Likewise.
2774         * python/py-symbol.c (gdbpy_lookup_symbol,
2775         gdbpy_lookup_global_symbol): Likewise.
2776         * skip.c (skip_function_command): Likewise.
2777         * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
2778         block_symbol instead of a mere symbol.
2779         * solib-spu.c (spu_lookup_lib_symbol): Likewise.
2780         * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
2781         * solib.c (solib_global_lookup): Likewise.
2782         * solist.h (solib_global_lookup): Likewise.
2783         (struct target_so_ops): Update lookup_lib_global_symbol to
2784         return a struct block_symbol rather than a mere symbol.
2785         * source.c (select_source_symtab): Deal with struct block_symbol
2786         from lookup functions.
2787         * stack.c (print_frame_args, iterate_over_block_arg_vars):
2788         Likewise.
2789         * symfile.c (set_initial_language): Likewise.
2790         * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
2791         block_symbol.
2792         (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
2793         (struct symbol_cache_slot): Turn the FOUND field into a struct
2794         block_symbol.
2795         (block_found): Remove.
2796         (eq_symbol_entry): Update to deal with struct block_symbol in
2797         cache slots.
2798         (symbol_cache_lookup): Return a struct block_symbol rather than
2799         a mere symbol.
2800         (symbol_cache_mark_found): Add a BLOCK parameter to fill
2801         appropriately the cache slots.  Update callers.
2802         (symbol_cache_dump): Update cache slots handling to the type
2803         change.
2804         (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
2805         lookup_symbol_aux, lookup_local_symbol,
2806         lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
2807         lookup_symbol_in_objfile_symtabs,
2808         lookup_symbol_in_objfile_from_linkage_name,
2809         lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
2810         lookup_symbol_in_static_block, lookup_static_symbol,
2811         lookup_global_symbol):
2812         Return a struct block_symbol rather than a mere symbol.  Deal
2813         with struct block_symbol from other lookup functions.  Remove
2814         uses of block_found.
2815         (lookup_symbol_in_block): Remove uses of block_found.
2816         (struct global_sym_lookup_data): Turn the RESULT field into a
2817         struct block_symbol.
2818         (lookup_symbol_global_iterator_cb): Update references to the
2819         RESULT field.
2820         (search_symbols): Deal with struct block_symbol from lookup
2821         functions.
2822         * symtab.h (struct block_symbol): New structure.
2823         (block_found): Remove.
2824         (lookup_symbol_in_language, lookup_symbol,
2825         basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
2826         lookup_static_symbol, lookup_global_symbol, lookup_language_this,
2827         lookup_global_symbol_from_objfile): Return a struct block_symbol
2828         rather than just a mere symbol.  Update comments to remove
2829         mentions of block_found.
2830         * valops.c (find_function_in_inferior,
2831         value_struct_elt_for_reference, value_maybe_namespace_elt,
2832         value_of_this):  Deal with struct block_symbol from lookup
2833         functions.
2834         * value.c (value_static_field, value_fn_field): Likewise.
2835
2836 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
2837
2838         * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
2839         instead of integer.
2840
2841 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
2842             Pedro Alves  <palves@redhat.com>
2843
2844         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
2845         type or value instead of integer.
2846         (aarch64_linux_insert_watchpoint): Likewise.
2847         (aarch64_linux_remove_watchpoint): Likewise.
2848         * ada-lang.c (ada_op_print_tab): Likewise.
2849         * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
2850         (amd64_linux_syscall_record_common): Likewise.
2851         * arch-utils.c (target_byte_order_user): Likewise.
2852         (default_byte_order): Likewise.
2853         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
2854         (arm_linux_get_hwbp_type): Likewise.
2855         (arm_linux_hw_watchpoint_initialize): Likewise.
2856         (arm_linux_insert_watchpoint): Likewise.
2857         * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
2858         (arm_linux_syscall_record): Likewise.
2859         * breakpoint.c (update_watchpoint): Likewise.
2860         (breakpoint_here_p): Likewise.
2861         (bpstat_print): Likewise.
2862         (enable_breakpoint_disp): Likewise.
2863         * c-lang.c (c_op_print_tab): Likewise.
2864         * cli/cli-decode.c (add_info_alias): Likewise.
2865         * d-lang.c (d_op_print_tab): Likewise.
2866         * eval.c (evaluate_subexp_standard): Likewise.
2867         * f-exp.y (dot_ops): Likewise.
2868         (f77_keywords): Likewise.
2869         * f-lang.c (f_op_print_tab): Likewise.
2870         * go-lang.c (go_op_print_tab): Likewise.
2871         * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
2872         * guile/scm-cmd.c (gdbscm_make_command): Likewise.
2873         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
2874         * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
2875         * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
2876         (struct scm_from_stringn_data): Likewise.
2877         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
2878         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
2879         (ia64_linux_remove_watchpoint): Likewise.
2880         (ia64_linux_can_use_hw_breakpoint): Likewise.
2881         * infrun.c (print_stop_event): Likewise.
2882         * jv-lang.c (java_op_print_tab): Likewise.
2883         * linux-nat.c (linux_proc_xfer_partial): Likewise.
2884         * linux-nat.h (struct lwp_info): Likewise.
2885         * linux-thread-db.c (enable_thread_event): Likewise.
2886         * m2-lang.c (m2_op_print_tab): Likewise.
2887         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
2888         (mi_cmd_stack_list_variables): Likewise.
2889         * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
2890         * mi/mi-out.c (mi_table_begin): Likewise.
2891         (mi_table_header): Likewise.
2892         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
2893         (mips_linux_insert_watchpoint): Likewise.
2894         (mips_linux_remove_watchpoint): Likewise.
2895         * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
2896         * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
2897         (mips_linux_watch_type_to_irw): Likewise.
2898         * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
2899         (procfs_insert_hw_watchpoint): Likewise.
2900         (procfs_remove_hw_watchpoint): Likewise.
2901         (procfs_hw_watchpoint): Likewise.
2902         (procfs_can_use_hw_breakpoint): Likewise.
2903         (procfs_remove_hw_watchpoint): Likewise.
2904         (procfs_insert_hw_watchpoint): Likewise.
2905         * p-lang.c (pascal_op_print_tab): Likewise.
2906         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
2907         * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
2908         * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
2909         * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
2910         (procfs_insert_watchpoint): Likewise.
2911         (procfs_remove_watchpoint): Likewise.
2912         * psymtab.c (recursively_search_psymtabs): Likewise.
2913         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
2914         (m32r_insert_watchpoint): Likewise.
2915         * remote-mips.c (mips_can_use_watchpoint): Likewise.
2916         (mips_insert_watchpoint): Likewise.
2917         (mips_remove_watchpoint): Likewise.
2918         * remote.c (watchpoint_to_Z_packet): Likewise.
2919         (remote_insert_watchpoint): Likewise.
2920         (remote_remove_watchpoint): Likewise.
2921         (remote_check_watch_resources): Likewise.
2922         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
2923         (s390_remove_watchpoint): Likewise.
2924         (s390_can_use_hw_breakpoint): Likewise.
2925         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
2926         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
2927         * target.h (struct target_ops): Likewise.
2928         * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
2929         * ui-out.c (struct ui_out_hdr): Likewise.
2930         (append_header_to_list): Likewise.
2931         (get_next_header): Likewise.
2932         (verify_field): Likewise.
2933         (ui_out_begin): Likewise.
2934         (ui_out_field_int): Likewise.
2935         (ui_out_field_fmt_int): Likewise.
2936         (ui_out_field_skip): Likewise.
2937         (ui_out_field_string): Likewise.
2938         (ui_out_field_fmt): Likewise.
2939         * varobj.c (new_variable): Likewise.
2940         * x86-nat.c (x86_insert_watchpoint): Likewise.
2941         (x86_remove_watchpoint): Likewise.
2942         (x86_can_use_hw_breakpoint): Likewise.
2943         * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
2944         * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
2945         previously anonymous enumeration type..
2946         * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
2947         value.
2948         * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
2949         (target_debug_print_enum_bptype): New.
2950         * target-delegates.c: Regenerate.
2951
2952 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
2953
2954         * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
2955         already says and disallow non-stack memory writes in the prologue.
2956
2957 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
2958
2959         * nios2-tdep.c (nios2_analyze_prologue): Update comments to
2960         reflect how current GCC emits stack overflow checks.  Match
2961         both trap and break instructions for backward compatbility.
2962         Disallow other trap and break instructions in the prologue.
2963
2964 2015-07-30  Pedro Alves  <palves@redhat.com>
2965
2966         PR threads/18600
2967         * linux-nat.c (wait_lwp): Report to the core when thread group
2968         leader exits.
2969
2970 2015-07-30  Pedro Alves  <palves@redhat.com>
2971             Simon Marchi  <simon.marchi@ericsson.com>
2972
2973         PR threads/18600
2974         * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
2975         mark the new thread as resumed.  Remove STOPPING parameter.
2976         (wait_lwp): Adjust call to linux_handle_extended_wait.
2977         (linux_nat_filter_event): Adjust call to
2978         linux_handle_extended_wait.
2979         (resume_stopped_resumed_lwps): Add debug output.
2980
2981 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
2982
2983         * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
2984         isize argument.
2985         * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
2986         * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
2987         gdbarch_fast_tracepoint_valid_at.
2988         * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
2989         * gdbarch.h: Regenerate.
2990         * gdbarch.c: Regenerate.
2991         * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
2992         argument.  Do not set it.
2993         * remote.c (remote_download_tracepoint): Adjust call to
2994         gdbarch_fast_tracepoint_valid_at.  Call gdb_insn_length to get
2995         the instruction length.
2996
2997 2015-07-30  Yao Qi  <yao.qi@linaro.org>
2998
2999         * arm-tdep.h (enum gdb_regnum): Move it to ...
3000         * arch/arm.h: ... here.  New file.
3001         * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
3002
3003 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
3004
3005         * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
3006         Change its type to int *.
3007         (decode_br): Rename link argument to is_blr.  Change its type to
3008         int *.
3009         (decode_cb): Rename op argument to is_cbnz.  Change its type to
3010         int *.
3011         (decode_tb): Rename op argument to is_tbnz.  Change its type to
3012         int *.  Set is_tbnz to either 1 or 0.
3013         (aarch64_analyze_prologue): Change type of is_link to int.  Add
3014         new variables is_cbnz and is_tbnz.  Adjust call to
3015         aarch64_decode_cb and aarch64_decode_tb.
3016
3017 2015-07-29  Simon Marchi  <simon.marchi@ericsson.com>
3018
3019         * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
3020         parameter.
3021         (mips_linux_new_thread): Likewise.
3022         * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
3023
3024 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
3025
3026         * top.c: Include "tui/tui.h".
3027         (undo_terminal_modifications_before_exit): New static function.
3028         (quit_force): Use it.
3029
3030 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
3031
3032         * target.c (terminal_state): Initialize to terminal_is_ours.
3033
3034 2015-07-29  Yao Qi  <yao.qi@linaro.org>
3035
3036         PR record/18691
3037         * dcache.c (dcache_read_memory_partial): Call
3038         raw_memory_xfer_partial.
3039         * target.c (raw_memory_xfer_partial): Make it non-static.
3040         * target.h (raw_memory_xfer_partial): Declare.
3041
3042 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
3043
3044         * c-valprint.c (c_val_print_array): Consider addressable memory
3045         unit size.
3046         (c_val_print_ptr): Likewise.
3047         (c_val_print_int): Likewise.
3048         * findvar.c (read_frame_register_value): Likewise.
3049         * valarith.c (find_size_for_pointer_math): Likewise.
3050         (value_ptrdiff): Likewise.
3051         (value_subscripted_rvalue): Likewise.
3052         * valops.c (read_value_memory): Likewise (and rename variables).
3053         (value_assign): Likewise.
3054         (value_repeat): Likewise.
3055         (value_array): Likewise.
3056         (value_slice): Likewise.
3057         * valprint.c (generic_val_print_ptr): Likewise.
3058         (generic_val_print_enum): Likewise.
3059         (generic_val_print_bool): Likewise.
3060         (generic_val_print_int): Likewise.
3061         (generic_val_print_char): Likewise.
3062         (generic_val_print_float): Likewise.
3063         (generic_val_print_decfloat): Likewise.
3064         (generic_val_print_complex): Likewise.
3065         (val_print_scalar_formatted): Likewise.
3066         (val_print_array_elements): Likewise.
3067         * value.c (set_value_parent): Likewise.
3068         (value_contents_copy_raw): Likewise.
3069         (set_internalvar_component): Likewise.
3070         (value_primitive_field): Likewise.
3071         (value_fetch_lazy): Likewise.
3072         * value.h (read_value_memory): Update comment.
3073
3074 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
3075
3076         * value.c (get_value_arch): New function.
3077         * value.h (get_value_arch): New declaration.
3078
3079 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
3080
3081         * value.c (struct value): Update comments.
3082
3083 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
3084
3085         * gdbtypes.c (type_length_units): New function.
3086         * gdbtypes.h (type_length_units): New declaration.
3087         (struct type) <length>: Update comment.
3088
3089 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
3090
3091         * valprint.c (generic_val_print): Factor out complex
3092         printing code to ...
3093         (generic_val_print_complex): ... this new function.
3094
3095 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
3096
3097         * valprint.c (generic_val_print): Factor out decfloat
3098         printing code to ...
3099         (generic_val_print_decfloat): ... this new function.
3100
3101 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
3102
3103         * valprint.c (generic_val_print): Factor out float
3104         printing code to ...
3105         (generic_val_print_float): ... this new function.
3106
3107 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
3108
3109         * valprint.c (generic_val_print): Factor out char
3110         printing code to ...
3111         (generic_val_print_char): ... this new function.
3112
3113 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
3114
3115         * valprint.c (generic_val_print): Factor out integer
3116         printing code to ...
3117         (generic_val_print_int): ... this new function.
3118
3119 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
3120
3121         * valprint.c (generic_val_print): Factor out bool
3122         printing code to ...
3123         (generic_val_print_bool): ... this new function.
3124
3125 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
3126
3127         * valprint.c (generic_val_print): Factor out function/method
3128         printing code to ...
3129         (generic_val_print_func): ... this new function.
3130
3131 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
3132
3133         * valprint.c (generic_val_print): Factor out flags
3134         printing code to ...
3135         (generic_val_print_flags): ... this new function.
3136
3137 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
3138
3139         * valprint.c (generic_val_print): Factor out enum
3140         printing code to ...
3141         (generic_val_print_enum): ... this new function.
3142
3143 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
3144
3145         * valprint.c (generic_val_print): Factor out reference
3146         printing code to ...
3147         (generic_val_print_ref): ... this new function.
3148
3149 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
3150
3151         * valprint.c (generic_val_print): Factor out memberptr
3152         printing code to ...
3153         (generic_val_print_memberptr): ... this new function.
3154
3155 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
3156
3157         * valprint.c (generic_val_print): Factor out pointer
3158         printing code to ...
3159         (generic_val_print_ptr): ... this new function.
3160
3161 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
3162
3163         * valprint.c (generic_val_print): Factor out array
3164         printing code to ...
3165         (generic_val_print_array): ... this new function.
3166
3167 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
3168
3169         * valprint.c (generic_val_print): Factor out
3170         print_unpacked_pointer code to ...
3171         (print_unpacked_pointer): ... this new function.
3172
3173 2015-07-27  Patrick Palka  <patrick@parcs.ath.cx>
3174
3175         * event-top.c (handle_sigterm): Don't inspect
3176         target_can_async_p.  Always set the quit flag and always mark
3177         the async signal handler.
3178
3179 2015-07-27  Yao Qi  <yao.qi@linaro.org>
3180
3181         * Makefile.in (REMOTE_EXAMPLES): Remove it.
3182
3183 2015-07-25  Kevin Buettner  <kevinb@redhat.com>
3184
3185         * remote.c (read_ptid): Return null_ptid when no thread id
3186         is found.
3187         (remote_current_thread): Add log warning for malformed
3188         qC reply.
3189         (remote_start_remote): Add log warning when current thread
3190         not found.
3191
3192 2015-07-24  Pedro Alves  <palves@redhat.com>
3193
3194         * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
3195         (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
3196         forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
3197
3198 2015-07-24  Pedro Alves  <palves@redhat.com>
3199
3200         PR gdb/18717
3201         * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
3202         is resumed, and extend the debug log.
3203
3204 2015-07-24  Pedro Alves  <palves@redhat.com>
3205
3206         * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
3207
3208 2015-07-24  Pedro Alves  <palves@redhat.com>
3209
3210         * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
3211         sys/ptrace.h.
3212         * alpha-linux-nat.c: Likewise.
3213         * amd64-linux-nat.c: Likewise.
3214         * arm-linux-nat.c: Likewise.
3215         * hppa-linux-nat.c: Likewise.
3216         * i386-linux-nat.c: Likewise.
3217         * ia64-linux-nat.c: Likewise.
3218         * linux-fork.c: Likewise.
3219         * linux-nat.c: Likewise.
3220         * m32r-linux-nat.c: Likewise.
3221         * m68klinux-nat.c: Likewise.
3222         * mips-linux-nat.c: Likewise.
3223         * nat/linux-btrace.c: Likewise.
3224         * nat/linux-ptrace.c: Likewise.
3225         * nat/linux-ptrace.h
3226         * nat/mips-linux-watch.c: Likewise.
3227         * nat/x86-linux-dregs.c: Likewise.
3228         * ppc-linux-nat.c: Likewise.
3229         * s390-linux-nat.c: Likewise.
3230         * spu-linux-nat.c: Likewise.
3231         * tilegx-linux-nat.c: Likewise.
3232         * x86-linux-nat.c: Likewise.
3233         * xtensa-linux-nat.c: Likewise.
3234
3235 2015-07-24  Pedro Alves  <palves@redhat.com>
3236
3237         * ptrace.m4 (ptrace tests): Test in C++ mode.  Try with 'enum
3238         __ptrace_request as first parameter type instead of int.
3239         (PTRACE_TYPE_ARG1): Define.
3240         * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
3241         that casts first argument to PTRACE_TYPE_ARG1.
3242         * config.in: Regenerate.
3243         * configure: Regenerate.
3244
3245 2015-07-24  Pedro Alves  <palves@redhat.com>
3246
3247         * gdb_ptrace.h: Move ...
3248         * nat/gdb_ptrace.h: ... here.
3249         * inf-ptrace.c: Adjust.
3250
3251 2015-07-24  Pedro Alves  <palves@redhat.com>
3252
3253         * acinclude.m4: Include ptrace.m4.
3254         * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
3255         * ptrace.m4: ... to this new file.
3256
3257 2015-07-23  Doug Evans  <dje@google.com>
3258
3259         * dwarf2read.c (dwarf2_per_cu_data): Add comment.
3260         (load_cu): Handle dummy CUs.
3261         (dw2_do_instantiate_symtab, process_queuef): Ditto.
3262         (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
3263
3264 2015-07-23  Ciro Santilli  <ciro.santilli@gmail.com>  (tiny patch)
3265
3266         * py-linetable.c (ltpy_get_all_source_lines): Adjust function
3267         documentation to say that it returns a list rather than
3268         a FrozenSet.
3269         (linetable_object_methods): Update the docstring of the
3270         "source_line" entry.
3271
3272 2015-07-23  Pierre-Marie de Rodat  <derodat@adacore.com>
3273
3274         * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
3275         type to the recursive call instead of the original (maybe
3276         TYPE_CODE_TYPEDEF) type.
3277
3278 2015-07-23  Yao Qi  <yao.qi@linaro.org>
3279
3280         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
3281         TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
3282         If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
3283
3284 2015-07-21  Yao Qi  <yao.qi@linaro.org>
3285
3286         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
3287         Move it to nat/aarch64-linux-hw-point.c.
3288         (aarch64_linux_child_post_startup_inferior): Update.
3289         * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
3290         New function.
3291         * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
3292         Declare it.
3293
3294 2015-07-21  Markus Metzger  <markus.t.metzger@intel.com>
3295
3296         * common/btrace-common.c (btrace_data_append): Change case label.
3297
3298 2015-07-20  Yao Qi  <yao.qi@linaro.org>
3299
3300         * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
3301         Re-indent the code.
3302         * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
3303         "unsigned long long".
3304
3305 2015-07-18  Kevin Buettner  <kevinb@redhat.com>
3306
3307         * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
3308         to be set for SEC_ALLOC sections too.
3309
3310 2015-07-17  Yao Qi  <yao.qi@linaro.org>
3311
3312         * Makefile.in (HFILES_NO_SRCDIR): Add
3313         nat/aarch64-linux-hw-point.h.
3314         (aarch64-linux-hw-point.o): New rule.
3315         * nat/aarch64-linux-hw-point.h: New file.
3316         * nat/aarch64-linux-hw-point.c: New file.
3317         * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
3318         (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
3319         (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
3320         (AARCH64_HWP_ALIGNMENT): Likewise.
3321         (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
3322         (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
3323         (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
3324         (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
3325         (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
3326         (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
3327         (struct aarch64_debug_reg_state): Likewise.
3328         (struct arch_lwp_info): Likewise.
3329         (aarch64_linux_set_debug_regs): Likewise.
3330         (aarch64_notify_debug_reg_change): Remove static.
3331         (aarch64_align_watchpoint): Likewise.
3332         (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
3333         (aarch64_watchpoint_length): Likewise.
3334         (aarch64_point_encode_ctrl_reg): Likewise
3335         (aarch64_point_is_aligned): Likewise.
3336         (aarch64_dr_state_insert_one_point): Likewise.
3337         (aarch64_dr_state_remove_one_point): Likewise.
3338         (aarch64_handle_breakpoint): Likewise.
3339         (aarch64_handle_aligned_watchpoint): Likewise.
3340         (aarch64_handle_unaligned_watchpoint): Likewise.
3341         (aarch64_handle_watchpoint): Likewise.
3342         * config/aarch64/linux.mh (NAT_FILE): Add
3343         aarch64-linux-hw-point.o.
3344
3345 2015-07-17  Yao Qi  <yao.qi@linaro.org>
3346
3347         * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
3348         state and don't call aarch64_get_debug_reg_state.  All callers
3349         update.
3350         (aarch64_linux_insert_hw_breakpoint): Call
3351         aarch64_get_debug_reg_state earlier.
3352         (aarch64_linux_remove_hw_breakpoint): Likewise.
3353         (aarch64_handle_aligned_watchpoint): Add argument state and
3354         don't call aarch64_get_debug_reg_state.  All callers update.
3355         (aarch64_handle_unaligned_watchpoint): Likewise.
3356         (aarch64_handle_watchpoint): Add argument state.
3357         (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
3358         earlier.
3359         (aarch64_linux_remove_watchpoint): Likewise.
3360
3361 2015-07-17  Yao Qi  <yao.qi@linaro.org>
3362
3363         * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
3364         debug_printf.
3365         (aarch64_handle_unaligned_watchpoint): Likewise.
3366
3367 2015-07-17  Yao Qi  <yao.qi@linaro.org>
3368
3369         * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
3370         argument type's type to 'enum target_hw_bp_type'.
3371         (aarch64_dr_state_remove_one_point): Likewise.
3372         (aarch64_handle_breakpoint): Likewise.
3373         (aarch64_linux_insert_hw_breakpoint): Likewise.
3374         (aarch64_linux_remove_hw_breakpoint): Likewise.
3375         (aarch64_handle_aligned_watchpoint): Likewise.
3376
3377 2015-07-17  Yao Qi  <yao.qi@linaro.org>
3378
3379         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
3380         ptid_get_pid instead of get_thread_id.
3381
3382 2015-07-17  Yao Qi  <yao.qi@linaro.org>
3383
3384         * remote.c (get_current_thread): Initialise ptid to null_ptid.
3385         (add_current_inferior_and_thread): Don't initialise ptid.
3386
3387 2015-07-16  Pierre Langlois  <pierre.langlois@arm.com>
3388
3389         * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
3390         unavailable if invalid.
3391
3392 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
3393
3394         Revert the previous 6 commits:
3395         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
3396         Move gdb_regex* to common/
3397         Prepare linux_find_memory_regions_full & co. for move
3398         Move linux_find_memory_regions_full & co.
3399         gdbserver build-id attribute generator
3400         Validate symbol file using build-id
3401
3402 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
3403             Jan Kratochvil  <jan.kratochvil@redhat.com>
3404
3405         Validate symbol file using build-id.
3406         * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
3407         and 'show validate-build-id'.  Add build-id attribute.
3408         * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
3409         * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
3410         * solib-frv.c (_initialize_frv_solib): Ditto.
3411         * solib-spu.c (set_spu_solib_ops): Ditto.
3412         * solib-svr4.c: Include rsp-low.h.
3413         (NOTE_GNU_BUILD_ID_NAME): New define.
3414         (svr4_validate): New function.
3415         (svr4_copy_library_list): Duplicate field build_id.
3416         (library_list_start_library): Parse 'build-id' attribute.
3417         (svr4_library_attributes): Add 'build-id' attribute.
3418         (_initialize_svr4_solib): Assign validate value.
3419         * solib-target.c (solib.h): Include.
3420         (_initialize_solib_target): Assign validate value.
3421         * solib.c (validate_build_id, show_validate_build_id): New.
3422         (solib_map_sections): Use ops->validate.
3423         (clear_so): Free build_id.
3424         (default_solib_validate): New function.
3425         (_initialize_solib): Add "validate-build-id".
3426         * solib.h (default_solib_validate): New declaration.
3427         * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
3428         (target_so_ops): New field 'validate'.
3429
3430 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
3431             Jan Kratochvil  <jan.kratochvil@redhat.com>
3432
3433         gdbserver build-id attribute generator.
3434         * features/library-list-svr4.dtd (library-list-svr4): New
3435         'build-id' attribute.
3436
3437 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
3438             Jan Kratochvil  <jan.kratochvil@redhat.com>
3439
3440         Move linux_find_memory_regions_full & co.
3441         * linux-tdep.c (nat/linux-maps.h): Include.
3442         (gdb_regex.h): Remove the include.
3443         (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
3444         (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
3445         (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
3446         (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
3447         * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
3448         and target/target.h.
3449         (struct smaps_vmflags, read_mapping, decode_vmflags)
3450         (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
3451         (linux_find_memory_regions_full): Move from linux-tdep.c.
3452         * nat/linux-maps.h (read_mapping): New declaration.
3453         (linux_find_memory_region_ftype, enum filterflags): Moved from
3454         linux-tdep.c.
3455         (linux_find_memory_regions_full): New declaration.
3456         * target.c (target/target-utils.h): Include.
3457         (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
3458         (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
3459         definitions to target/target-utils.c.
3460         * target.h (target_fileio_read_stralloc): Move it to target/target.h.
3461         * target/target-utils.c (read_alloc, read_stralloc): Move definitions
3462         from target.c.
3463         * target/target-utils.h (read_alloc_pread_ftype): New typedef.
3464         (read_alloc): New declaration.
3465         (read_stralloc_func_ftype): New typedef.
3466         (read_stralloc): New declaration.
3467         * target/target.h (target_fileio_read_stralloc): Move it from target.h.
3468
3469 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
3470             Jan Kratochvil  <jan.kratochvil@redhat.com>
3471
3472         Prepare linux_find_memory_regions_full & co. for move.
3473         * linux-tdep.c (linux_find_memory_region_ftype): Comment.
3474         (linux_find_memory_regions_full): Change signature and prepare
3475         for moving to linux-maps.
3476         (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
3477         (linux_find_memory_regions_thunk): New.
3478         (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
3479         (linux_find_memory_regions_gdb): New.
3480         (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
3481         (linux_make_mappings_corefile_notes): Use
3482         linux_find_memory_regions_gdb.
3483         * target.c (read_alloc_pread_ftype): New typedef.
3484         (target_fileio_read_alloc_1_pread): New function.
3485         (read_alloc): Refactor from target_fileio_read_alloc_1.
3486         (read_stralloc_func_ftype): New typedef.
3487         (target_fileio_read_alloc_1): New implementation. Use read_alloc.
3488         (read_stralloc): Refactored from target_fileio_read_stralloc.
3489         (target_fileio_read_stralloc): New implementation, use read_stralloc.
3490
3491 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
3492
3493         * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
3494         common/gdb_regex.h.
3495         (COMMON_OBS): Add gdb_regex.o.
3496         (gdb_regex.o): New.
3497         * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
3498         --without-included-regex and USE_INCLUDED_REGEX.
3499         * common/gdb_regex.c: New file from utils.c functions.
3500         * common/gdb_regex.h: Move it here from gdb_regex.h, update include
3501         file wrapping define name.
3502         * configure: Rebuilt.
3503         * configure.ac (gdb_use_included_regex, --without-included-regex)
3504         (USE_INCLUDED_REGEX): Move them to common/common.m4.
3505         * gdb_regex.h: Move it to common/gdb_regex.h.
3506         * utils.c: Remove include gdb_regex.h.
3507         (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
3508         (compile_rx_or_error): Move them to common/gdb_regex.c.
3509
3510 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
3511             Jan Kratochvil  <jan.kratochvil@redhat.com>
3512
3513         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
3514         * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
3515         common/target-utils.h.
3516         (COMMON_OBS): Add target-utils.o.
3517         (linux-maps.o, target-utils.o): New.
3518         * target/target-utils.c: New file.
3519         * target/target-utils.h: New file.
3520         * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
3521         * config/i386/linux64.mh (NATDEPFILES): Ditto.
3522         * nat/linux-maps.c: New file.
3523         * nat/linux-maps.h: New file.
3524
3525 2015-07-15  Markus Metzger  <markus.t.metzger@intel.com>
3526             Pedro Alves <palves@redhat.com>
3527
3528         * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
3529         (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
3530         (perf_event_read_bts): Change the type of SIZE and READ.
3531         (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
3532         and DATA_OFFSET.  Move DATA_SIZE declaration.  Restrict the buffer size
3533         to UINT_MAX.  Check for overflows when using DATA_HEAD from the perf
3534         mmap page.
3535         (linux_enable_pt): Change the type of PAGES and SIZE.  Restrict the
3536         buffer size to UINT_MAX.
3537         (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
3538         DATA_TAIL.
3539         * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
3540         <last_head>: Change type.
3541         * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
3542         * common/btrace-common.c (btrace_data_append): Change the type of
3543         SIZE.
3544         * btrace.c (parse_xml_raw): Change the type of SIZE.  Change oddness
3545         check.
3546
3547 2015-07-14  Simon Marchi  <simon.marchi@ericsson.com>
3548
3549         * gdbtypes.h (CHECK_TYPEDEF): Remove.
3550         * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
3551         with check_typedef.
3552         * ada-lang.c (decode_constrained_packed_array_type): Likewise.
3553         (ada_array_length): Likewise.
3554         (find_parallel_type_by_descriptive_type): Likewise.
3555         (ada_check_typedef): Likewise.
3556         * arm-tdep.c (arm_return_in_memory): Likewise.
3557         * ax-gdb.c (gen_trace_static_fields): Likewise.
3558         (gen_struct_ref_recursive): Likewise.
3559         * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
3560         (variable: block COLONCOLON name): Likewise.
3561         (qualified_name: TYPENAME COLONCOLON name): Likewise.
3562         * c-lang.c (classify_type): Likewise.
3563         * c-typeprint.c (c_print_type): Likewise.
3564         (c_print_typedef): Likewise.
3565         (c_type_print_base): Likewise.
3566         * c-valprint.c (c_val_print): Likewise.
3567         * compile/compile-c-types.c (convert_type): Likewise.
3568         * compile/compile-object-load.c (get_out_value_type): Likewise.
3569         * completer.c (add_struct_fields): Likewise.
3570         (expression_completer): Likewise.
3571         * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
3572         (cp_lookup_nested_symbol_1): Likewise.
3573         (cp_lookup_nested_symbol): Likewise.
3574         * cp-valprint.c (cp_print_value_fields): Likewise.
3575         (cp_print_static_field): Likewise.
3576         * d-valprint.c (d_val_print): Likewise.
3577         * eval.c (evaluate_subexp_standard): Likewise.
3578         (evaluate_subexp_for_sizeof): Likewise.
3579         * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
3580         * f-typeprint.c (f_type_print_base): Likewise.
3581         * f-valprint.c (f_val_print): Likewise.
3582         * gdbtypes.c (get_discrete_bounds): Likewise.
3583         (create_array_type_with_stride): Likewise.
3584         (type_name_no_tag_or_error): Likewise.
3585         (lookup_struct_elt_type): Likewise.
3586         (get_unsigned_type_max): Likewise.
3587         (internal_type_vptr_fieldno): Likewise.
3588         (set_type_vptr_fieldno): Likewise.
3589         (internal_type_vptr_basetype): Likewise.
3590         (set_type_vptr_basetype): Likewise.
3591         (get_vptr_fieldno): Likewise.
3592         (is_integral_type): Likewise.
3593         (is_scalar_type): Likewise.
3594         (is_scalar_type_recursive): Likewise.
3595         (distance_to_ancestor): Likewise.
3596         (is_unique_ancestor_worker): Likewise.
3597         (check_types_equal): Likewise.
3598         * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
3599
3600 2015-07-14  Iain Buclaw  <ibuclaw@gdcproject.org>
3601
3602         * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
3603         also test for language_d.
3604         (dwarf2_compute_name): Likewise.
3605         (read_func_scope): Likewise.
3606         (read_structure_type): Likewise.
3607         (new_symbol_full): Likewise.
3608         (determine_prefix): Likewise.
3609         (read_import_statement): Use dot as the separator for language_d.
3610         (typename_concat): Likewise, but don't prefix the D main function.
3611
3612 2015-07-14  Peter Bergner  <bergner@vnet.ibm.com>
3613
3614         * nat/linux-namespaces.c (setns): Rename from this ...
3615         (do_setns): ... to this.  Support calling setns if it exists.
3616         (mnsh_handle_setns): Call do_setns.
3617
3618 2015-07-13  Yao Qi  <yao.qi@linaro.org>
3619
3620         * exec.c (exec_file_attach): Add period at the end of error
3621         message.
3622
3623 2015-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
3624
3625         * tui/tui-win.c (window_name_completer): New function.
3626         (focus_completer): Call window_name_completer.  All old content
3627         moved into window_name_completer.
3628         (winheight_completer): New function.
3629         (_initialize_tui_win): Rename variable.  Add completer to
3630         winheight command.  Update doc string on winheight.
3631
3632 2015-07-12  Sandra Loosemore  <sandra@codesourcery.com>
3633
3634         * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
3635         all nios2 mach variants.
3636
3637 2015-07-10  Kevin Buettner  <kevinb@redhat.com>
3638
3639         * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
3640         of target_read_memory.
3641
3642 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
3643
3644         * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
3645         string copy.
3646         (parse_scrolling_args): Likewise.
3647
3648 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
3649
3650         * tui/tui-win.c (focus_completer): Don't duplicate the tui window
3651         names in this function.
3652
3653 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
3654
3655         * tui/tui-data.h (SRC_NAME): Convert to lower case.
3656         (CMD_NAME): Likewise.
3657         (DATA_NAME): Likewise.
3658         (DISASSEM_NAME): Likewise.
3659         * tui/tui-win.c (tui_set_focus): Window names are now lower case.
3660         (tui_set_win_height): Likewise.
3661         (parse_scrolling_args): Likewise.
3662
3663 2015-07-10  Markus Metzger  <markus.t.metzger@intel.com>
3664
3665         * record-btrace.c (record_btrace_goto_begin)
3666         (record_btrace_goto_end, record_btrace_goto): Move call to
3667         print_stack_frame ...
3668         (record_btrace_set_replay): ... here.  Set stop_pc.
3669         * record-full.c (record_full_goto_entry): Set stop_pc.
3670
3671 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
3672
3673         * NEWS: Mention support for tracepoints on aarch64-linux.
3674
3675 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
3676
3677         * linux-aarch64-low.c (aarch64_supports_tracepoints): New
3678         function.  Return 1.
3679         (the_low_target): Install it.
3680
3681 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
3682
3683         * gdb.trace/backtrace.exp: Set registers for aarch64 target.
3684         * gdb.trace/collection.exp: Likewise.
3685         * gdb.trace/mi-trace-frame-collected.exp: Likewise.
3686         * gdb.trace/mi-trace-unavailable.exp: Likewise.
3687         * gdb.trace/report.exp: Likewise.
3688         * gdb.trace/trace-break.exp: Likewise.
3689         * gdb.trace/unavailable.exp: Likewise.
3690         * gdb.trace/while-dyn.exp: Likewise.
3691
3692 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
3693
3694         * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
3695         (aarch64_gen_return_address): New function.
3696         (aarch64_gdbarch_init): Hook it.
3697
3698 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
3699
3700         * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
3701         swallow NOT_AVAILABLE_ERROR.
3702         (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
3703         available_p is not set.
3704         (aarch64_stub_frame_unwind_stop_reason): New function.
3705         (aarch64_stub_unwind): Install it.
3706
3707 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
3708
3709         * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
3710         field.
3711         (aarch64_make_prologue_cache_1): New function, factored out from
3712         aarch64_make_prologue_cache.  Do not allocate cache.  Set
3713         available_p.
3714         (aarch64_make_prologue_cache): Reimplement wrapping
3715         aarch64_make_prologue_cache_1, and swallowing
3716         NOT_AVAILABLE_ERROR.
3717         (aarch64_prologue_frame_unwind_stop_reason): New function.
3718         Return UNWIND_UNAVAILABLE if available_p is not set.
3719         (aarch64_prologue_unwind): Install it.
3720         (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
3721         checks into aarch64_prologue_frame_unwind_stop_reason.  Call
3722         frame_id_build_unavailable_stack if available_p is not set.
3723
3724 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
3725
3726         * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
3727         fields.
3728         (aarch64_scan_prologue): Set prev_pc.
3729         (aarch64_make_prologue_cache): Set func.
3730         (aarch64_make_stub_cache): Set prev_pc.
3731         (aarch64_prologue_this_id): Remove local variables id, pc and
3732         func.  Read prev_pc and func from cache.
3733         (aarch64_stub_this_id): Read prev_pc from cache.
3734
3735 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
3736
3737         * aarch64-tdep.c (aarch64_make_stub_cache): Update comment.  New
3738         argument this_cache.  Remove unused local variables reg and
3739         unwound_fp.  Return early if this_cache is already set.  Set
3740         this_cache.
3741         (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
3742
3743 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
3744
3745         * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
3746         New argument this_cache.  Return early if this_cache is already
3747         set.  Set this_cache.
3748         (aarch64_prologue_this_id): Update call to
3749         aarch64_make_prologue_cache.
3750         (aarch64_prologue_prev_register): Likewise.
3751         (aarch64_normal_frame_base): Likewise.
3752
3753 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
3754
3755         * c-valprint.c (c_val_print): Factor out memberptr printing code
3756         from c_val_print to ...
3757         (c_val_print_memberptr): ... this new function.
3758
3759 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
3760
3761         * c-valprint.c (c_val_print): Factor out int printing code to ...
3762         (c_val_print_int): ... this new function.
3763
3764 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
3765
3766         * c-valprint.c (c_val_print): Factor out struct and union
3767         printing code to ...
3768         (c_val_print_struct): ... this new function ...
3769         (c_val_print_union): ... and this new function.
3770
3771 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
3772
3773         * c-valprint.c (c_val_print): Factor out pointer printing code
3774         to ...
3775         (c_val_print_ptr): ... this new function.
3776
3777 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
3778
3779         * c-valprint.c (c_valprint): Factor our array printing code from
3780         c_val_print to ...
3781         (c_val_print_array): ... this new function.
3782
3783 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
3784
3785         * c-valprint.c (c_val_print): Factor out pointer printing code
3786         to ...
3787         (print_unpacked_pointer): ... this new function.
3788
3789 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
3790
3791         * c-valprint.c (c_val_print): Remove an assignment to i and move
3792         its declaration.
3793
3794 2015-07-09  Yao Qi  <yao.qi@linaro.org>
3795
3796         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
3797         argument ptid.  Update comments.  Caller update.
3798
3799 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
3800
3801         * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
3802         mnt packets.
3803
3804 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
3805
3806         * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
3807
3808 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
3809
3810         * progspace.c (delete_program_space): Add missing spaces.
3811
3812 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
3813
3814         * inferior.c (delete_inferior_1): Rename to ...
3815         (delete_inferior): ..., remove 'silent' parameter, delete
3816         program space when unused and remove call to prune_program_spaces.
3817         Remove the old, unused, delete_inferior.
3818         (delete_inferior_silent): Remove.
3819         (prune_inferiors): Change call from delete_inferior_1 to
3820         delete_inferior and remove 'silent' parameter. Remove call to
3821         prune_program_spaces.
3822         (remove_inferior_command): Idem.
3823         * inferior.h (delete_inferior_1): Rename to...
3824         (delete_inferior): ..., remove 'silent' parameter and remove the
3825         original delete_inferior.
3826         (delete_inferior_silent): Remove.
3827         * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
3828         delete_inferior_1 to delete_inferior and remove 'silent'
3829         parameter.
3830         * progspace.c (prune_program_spaces): Remove.
3831         (pspace_empty_p): Rename to...
3832         (program_space_empty_p): ... and make non-static.
3833         (delete_program_space): New.
3834         * progspace.h (prune_program_spaces): Remove declaration.
3835         (program_space_empty_p): New declaration.
3836         (delete_program_space): New declaration.
3837         * monitor.c (monitor_close): Replace call to
3838         delete_thread_silent and delete_inferior_silent with
3839         discard_all_inferiors.
3840
3841 2015-07-08  Patrick Palka  <patrick@parcs.ath.cx>
3842
3843         * defs.h (deprecated_register_changed_hook): Remove prototype.
3844         * interps.c (clear_iterpreter_hooks): Remove reference to
3845         deprecated_register_changed_hook.
3846         * top.c (deprecated_register_changed_hook): Remove prototype.
3847         * valops.c (value_assign): Remove reference to
3848         deprecated_register_changed_hook.
3849         * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
3850         Add comment documenting the function.
3851         (tui_register_changed_observer): Define.
3852         (tui_install_hooks): Remove reference to
3853         deprecated_register_changed_hook.  Set
3854         tui_register_changed_observer.
3855         (tui_remove_hooks): Remove reference to
3856         deprecated_register_changed_hook.  Unset
3857         tui_register_changed_observer.
3858
3859 2015-07-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3860
3861         PR compile/18484
3862         * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
3863
3864 2015-07-08  Robert O'Callahan  <robert@ocallahan.org>
3865
3866         PR exp/18617
3867         * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
3868
3869 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
3870
3871         * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
3872
3873 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
3874
3875         * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
3876         Use safe_strerror() instead of strerror().
3877
3878 2015-07-07  Yao Qi  <yao.qi@linaro.org>
3879
3880         * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
3881         * features/arm-with-m-fpa-layout.c: Regenerated.
3882         * features/arm-with-m-vfp-d16.xml: Likewise.
3883         * features/arm-with-m-vfp-d16.c: Regenerated.
3884         * features/arm-with-m.xml: Likewise.
3885         * features/arm-with-m.c: Regenerated.
3886         * features/arm-with-neon.xml: Likewise.
3887         * features/arm-with-neon.c: Regenerated.
3888         * features/arm-with-vfpv2.xml: Likewise.
3889         * features/arm-with-vfpv2.c: Regenerated.
3890         * features/arm-with-vfpv3.xml: Likewise.
3891         * features/arm-with-vfpv3.c: Regenerated.
3892
3893 2015-07-07  Yao Qi  <yao.qi@linaro.org>
3894
3895         * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
3896         arm-linux-nat.c.
3897         * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
3898         elf/external.h.
3899         (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
3900         if target is 32-bit.
3901         (store_gregs_to_thread): Call aarch32_gp_regcache_collect
3902         if target is 32-bit.
3903         (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
3904         if target is 32-bit.
3905         (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
3906         if target is 32-bit.
3907         (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
3908         (aarch64_linux_read_description): Return the right target
3909         description.
3910         * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
3911         * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
3912         * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
3913         arm-linux-tdep.o.
3914
3915 2015-07-07  Yao Qi  <yao.qi@linaro.org>
3916
3917         * aarch32-linux-nat.c: New file.
3918         * aarch32-linux-nat.h: New file.
3919         * arm-linux-nat.c: Include aarch32-linux-nat.h.
3920         (fetch_regs): Move code to aarch32-linux-nat.c.  Call
3921         aarch32_gp_regcache_supply.
3922         (store_regs): Move code to aarch32-linux-nat.c.  Call
3923         aarch32_gp_regcache_collect.
3924         (fetch_vfp_regs): Move code to aarch32-linux-nat.c.  Call
3925         aarch32_vfp_regcache_supply.
3926         (store_vfp_regs): Move code to aarch32-linux-nat.c.  Call
3927         aarch32_vfp_regcache_collect.
3928         * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
3929
3930 2015-07-07  Yao Qi  <yao.qi@linaro.org>
3931
3932         * arm-linux-nat.c (store_fpregister): Remove.
3933         (store_register): Likewise.
3934         (fetch_fpregister): Likewise.
3935         (fetch_register): Likewise.
3936         (arm_linux_store_inferior_registers): Call store_regs and
3937         store_fpregs instead.
3938         (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
3939         fetch_regs instead.
3940
3941 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
3942
3943         * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
3944         and focus commands.
3945
3946 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
3947
3948         * NEWS: Create a new section for the next release branch.
3949         Rename the section of the current branch, now that it has
3950         been cut.
3951
3952 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
3953
3954         GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
3955         * version.in: Bump version to 7.10.50.DATE-cvs.
3956
3957 2015-07-06  Luis Machado  <lgustavo@codesourcery.com>
3958
3959         * breakpoint.c (remove_breakpoint_1): Don't handle permanent
3960         breakpoints in a special way.
3961         (remove_breakpoint): Likewise.
3962         (mark_breakpoints_out): Likewise.
3963
3964 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
3965
3966         * doc/gdb.texinfo (TUI): Add comma after @xref.
3967
3968 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
3969
3970         * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
3971         instead of casting the structure type.
3972
3973 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
3974
3975         * valops.c (search_struct_field): Remove OFFSET parameter.
3976         (value_cast_structs): Adjust calls to search_struct_field.
3977         (value_struct_elt): Same.
3978         (find_overload_match): Same.
3979
3980 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
3981
3982         * value.c (value_fetch_lazy): Update comment, change return
3983         value to void.
3984         * value.h (value_fetch_lazy): Change return value to void.
3985
3986 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
3987
3988         * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
3989         (tui_win_name): Make parameter and result const.
3990         * tui/tui-data.h (tui_win_name): Make parameter and result const.
3991
3992 2015-07-06  Patrick Palka  <patrick@parcs.ath.cx>
3993
3994         * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
3995         use printf_unfiltered.
3996         (set_mpx_cmd): Add missing trailing space to command string
3997         literal.
3998         (_initialize_i386_tdep): Give the "mpx" prefix command its
3999         correct name.
4000
4001 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
4002
4003         * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
4004         (enum rx_frame_type): New.
4005         (struct rx_prologue): Add new field `frame_type'.
4006         (rx_analyze_prologue): Add `frame_type' parameter. Cache this
4007         parameter in the prologue struct.  Add code for recording
4008         locations of PC and PSW for fast interrupt and exception frames.
4009         (rx_skip_prologue): Adjust call to rx_analyze_prologue.
4010         (rx_analyze_frame_prologue): Add `frame_type' parameter.
4011         (rx_frame_type): New function.
4012         (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
4013         (rx_frame_this_id): Rename parameter `this_prologue_cache' to
4014         `this_cache'.
4015         (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
4016         `this_cache'.  Add cases for RX_FRAME_TYPE_EXCEPTION and
4017         RX_FRAME_TYPE_FAST_INTERRUPT.
4018         (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
4019         (rx_frame_sniffer, rx_exception_sniffer): New functions.
4020         (rx_frame_unwind): Use rx_frame_sniffer instead of
4021         default_frame_sniffer.
4022         (rx_frame_unwind): New unwinder.
4023         (rx_gdbarch_init): Register new unwinder.
4024
4025 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
4026
4027         * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
4028         (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
4029         (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
4030         and RX_FPSW_REGNUM.
4031         (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
4032
4033 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4034
4035         Fix GCC false warning.
4036         * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
4037
4038 2015-07-02  Yao Qi  <yao.qi@linaro.org>
4039
4040         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
4041         typo in the debugging message.
4042
4043 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
4044
4045         * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
4046         (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
4047         (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
4048         (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
4049         (btrace_maint_clear): New.
4050         (btrace_fetch, btrace_clear): Call btrace_maint_clear.
4051         (pt_print_packet, btrace_maint_decode_pt)
4052         (btrace_maint_update_pt_packets, btrace_maint_update_packets)
4053         (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
4054         (maint_btrace_packet_history_cmd)
4055         (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
4056         (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
4057         (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
4058         (maint_info_btrace_cmd, _initialize_btrace): New.
4059         * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
4060         (btrace_maint_packet_history, btrace_maint_info): New.
4061         (btrace_thread_info) <maint>: New.
4062         * NEWS: Announce it.
4063
4064 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
4065
4066         * btrace.c (btrace_fetch): Append the new trace data.
4067         (btrace_clear): Clear the stored trace data.
4068         * btrace.h (btrace_thread_info) <data>: New.
4069         * common/btrace-common.h (btrace_data_clear)
4070         (btrace_data_append): New.
4071         * common/btrace-common.c (btrace_data_clear)
4072         (btrace_data_append): New.
4073
4074 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
4075
4076         * nat/linux-btrace.c (linux_enable_bts): Check for
4077         PERF_ATTR_SIZE_VER5.
4078         Check for data_offset and data_size fields.  Use them.
4079
4080 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
4081
4082         * NEWS: Announce new commands "record btrace pt" and "record pt".
4083         Announce new options "set|show record btrace pt buffer-size".
4084         * btrace.c: Include "rsp-low.h".
4085         Include "inttypes.h".
4086         (btrace_add_pc): Add forward declaration.
4087         (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
4088         (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
4089         (btrace_compute_ftrace_pt): New.
4090         (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
4091         (check_xml_btrace_version): Update version check.
4092         (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
4093         (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
4094         (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
4095         (btrace_pt_children): New.
4096         (btrace_children): Add support for "pt".
4097         (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
4098         (btrace_conf_children): Add support for "pt".
4099         * btrace.h: Include "intel-pt.h".
4100         (btrace_pt_error): New.
4101         * common/btrace-common.c (btrace_format_string, btrace_data_fini)
4102         (btrace_data_empty): Support BTRACE_FORMAT_PT.
4103         * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
4104         (struct btrace_config_pt): New.
4105         (struct btrace_config)<pt>: New.
4106         (struct btrace_data_pt_config, struct btrace_data_pt): New.
4107         (struct btrace_data)<pt>: New.
4108         * features/btrace-conf.dtd (btrace-conf)<pt>: New.
4109         (pt): New.
4110         * features/btrace.dtd (btrace)<pt>: New.
4111         (pt, pt-config, cpu): New.
4112         * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
4113         (perf_event_pt_event_type, kernel_supports_pt)
4114         (linux_supports_pt): New.
4115         (linux_supports_btrace): Support BTRACE_FORMAT_PT.
4116         (linux_enable_bts): Free tinfo on error.
4117         (linux_enable_pt): New.
4118         (linux_enable_btrace): Support BTRACE_FORMAT_PT.
4119         (linux_disable_pt): New.
4120         (linux_disable_btrace): Support BTRACE_FORMAT_PT.
4121         (linux_fill_btrace_pt_config, linux_read_pt): New.
4122         (linux_read_btrace): Support BTRACE_FORMAT_PT.
4123         * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
4124         (struct btrace_target_info)<pt>: New.
4125         * record-btrace.c (set_record_btrace_pt_cmdlist)
4126         (show_record_btrace_pt_cmdlist): New.
4127         (record_btrace_print_pt_conf): New.
4128         (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
4129         (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
4130         (cmd_record_btrace_pt_start): New.
4131         (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
4132         (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
4133         (_initialize_record_btrace): Add new commands.
4134         * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
4135         (remote_protocol_features): Add "Qbtrace:pt".
4136         Add "Qbtrace-conf:pt:size".
4137         (remote_supports_btrace): Support BTRACE_FORMAT_PT.
4138         (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
4139         (remote_enable_btrace): Support BTRACE_FORMAT_PT.
4140         (_initialize_remote): Add new commands.
4141
4142 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
4143
4144         * configure.ac: check for libipt
4145         * configure: Regenerate.
4146         * config.in: Regenerate.
4147         * Makefile.in (LIBIPT): New.
4148         (CLIBS): Add $LIBIPT.
4149         * NEWS: document new configure options
4150
4151 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4152
4153         * compile/compile-object-load.c (compile_object_load): Replace debug
4154         message "lookup undefined ELF symbol" by 3 more specific messages.
4155
4156 2015-07-01  Kevin Buettner  <kevinb@redhat.com>
4157
4158         * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
4159         (rl78_register_type): Add case for RL78_PSW_REGNUM.
4160         (rl78_gdbarch_init): Initialize rl78_psw_type.
4161
4162 2015-07-01  Patrick Palka  <patrick@parcs.ath.cx>
4163
4164         * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
4165         Update commentary.  Always refresh the registers when frame
4166         information has changed.
4167         * tui/tui-stack.c (tui_show_frame_info): Update commentary.
4168         Change return type to int.  Return 1 if frame information has
4169         changed, 0 otherwise.
4170         (tui_before_prompt): Update commentary.
4171         * tui/tui-stack.h (tui_show_frame_info): Change return type to
4172         int.
4173
4174 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
4175
4176         PR tui/13378
4177         * frame.c (select_frame): Remove reference to
4178         deprecated_selected_frame_level_changed_hook.
4179         * frame.h (deprecated_selected_frame_level_changed_hook): Remove
4180         declaration.
4181         * stack.c (deprecated_selected_frame_level_changed_hook):
4182         Likewise.
4183         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
4184         Rename to ...
4185         (tui_refresh_frame_and_register_information): ... this.  Bail
4186         out if there is no stack.  Don't update register information
4187         unless registers_too_p is true.
4188         (tui_print_frame_info_listing_hook): Rename to ...
4189         (tui_dummy_print_frame_info_listing_hook): ... this.
4190         (tui_before_prompt): New function.
4191         (tui_normal_stop): New function.
4192         (tui_before_prompt_observer): New observer.
4193         (tui_normal_stop_observer): New observer.
4194         (tui_install_hooks): Set
4195         deprecated_print_frame_info_listing_hook to
4196         tui_dummy_print_frame_info_listing_hook.  Register
4197         tui_before_prompt_observer to call tui_before_prompt and
4198         tui_normal_stop_observer to call tui_normal_stop.  Remove
4199         reference to deprecated_selected_frame_level_changed_hook.
4200         (tui_remove_hooks): Detach and unset tui_before_prompt_observer
4201         and tui_normal_stop_observer.  Remove reference to
4202         deprecated_selected_frame_level_changed_hook.
4203
4204 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
4205
4206         PR tui/13378
4207         * tui/tui-stack.c (tui_set_locator_info): Change prototype to
4208         return an int instead of void.  Return whether the locator
4209         window has changed.
4210         (tui_show_frame_info): If the locator info has not changed, then
4211         bail out early to avoid refreshing the windows.
4212
4213 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
4214
4215         * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
4216         LOCATOR_WIN to tui_alloc_content.
4217
4218 2015-06-30  Yao Qi  <yao.qi@linaro.org>
4219
4220         PR tdep/18605
4221         * arm-tdep.c (arm_get_next_pc_raw): Break for media
4222         instructions.
4223
4224 2015-06-29  Kevin Buettner  <kevinb@redhat.com>
4225
4226         * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
4227         (rx_dwarf_reg_to_regnum): New function.
4228         (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum.  Use dwarf2
4229         unwinding.
4230
4231 2015-06-29  Pedro Alves  <palves@redhat.com>
4232
4233         PR threads/18127
4234         * infcall.c (run_inferior_call): On infcall success, if the thread
4235         was marked stopped before, reset it back to stopped.
4236         * infrun.c (resume): Don't suppress the set_running calls when
4237         doing an infcall.
4238         (normal_stop): Only discard the finish_thread_state cleanup if the
4239         infcall succeeded.
4240
4241 2015-06-29  Pierre Langlois  <pierre.langlois@arm.com>
4242
4243         * MAINTAINERS (Write After Approval): Update my email address.
4244
4245 2015-06-26  Keith Seitz  <keiths@redhat.com>
4246             Doug Evans  <dje@google.com>
4247
4248         PR 16253
4249         * block.c (block_lookup_symbol): For non-function blocks,
4250         continue to search for a symbol with an exact domain match
4251         Otherwise, return any previously found "best domain" symbol.
4252         (block_lookup_symbol_primary): Likewise.
4253
4254 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
4255
4256         * NEWS: Mention the new option "history remove-duplicates".
4257         * top.c (history_remove_duplicates): New static variable.
4258         (show_history_remove_duplicates): New static function.
4259         (gdb_add_history): Conditionally remove duplicate history
4260         entries.
4261         (init_main): Add "history remove-duplicates" option.
4262
4263 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
4264
4265         * tui/tui-win.c (focus_completer): New static function.
4266         (_initialize_tui_win): Set the completion function of the
4267         "focus" command to focus_completer.
4268
4269 2015-06-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
4270
4271         * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
4272         and language_asm..
4273         * symtab.c (find_function_start_sal): Likewise.
4274
4275 2015-06-25  Gary Benson  <gbenson@redhat.com>
4276
4277         * solib.c (solib_find_1): Set local variable sysroot to NULL if
4278         it is the empty string after trailing slashes have been stripped.
4279
4280 2015-06-25  Gary Benson  <gbenson@redhat.com>
4281
4282         * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
4283         * infrun.c (follow_exec): Likewise.
4284         * remote.c (remote_filesystem_is_local): Likewise.
4285         * solib.c (solib_find_1): Likewise.
4286
4287 2015-06-24  Keith Seitz  <keiths@redhat.com>
4288
4289         * build-id.c (build_id_to_debug_bfd): Add cleanup to free
4290         return value from lrealpath.
4291
4292 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
4293
4294         * remote-sim.c (gdbsim_open): Move sysroot update to the top.
4295
4296 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
4297
4298         * remote-sim.c: Include gdb_bfd.h.
4299         (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
4300         Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
4301
4302 2015-06-24  Yao Qi  <yao.qi@linaro.org>
4303
4304         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
4305         set_gdbarch_get_siginfo_type.
4306         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
4307         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
4308         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
4309         * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
4310         * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
4311         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
4312         * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
4313         * linux-tdep.c (linux_get_siginfo_type): Change it to static.
4314         (linux_init_abi): Call set_gdbarch_get_siginfo_type.
4315         * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
4316
4317 2015-06-24  Gary Benson  <gbenson@redhat.com>
4318
4319         * common/buffer.c (stdint.h): Do not include.
4320         * common/print-utils.c (stdint.h): Likewise.
4321         * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
4322         * compile/compile-c-types.c (gdb_assert.h): Likewise.
4323         * ft32-tdep.c (gdb_assert.h): Likewise.
4324         * guile/scm-utils.c (stdint.h): Likewise.
4325         * i386-linux-tdep.c (stdint.h): Likewise.
4326         * i386-tdep.c (stdint.h): Likewise.
4327         * nat/linux-btrace.c (stdint.h): Likewise.
4328         * nat/linux-btrace.h (stdint.h): Likewise.
4329         * nat/linux-ptrace.c (stdint.h): Likewise.
4330         * nat/mips-linux-watch.h (stdint.h): Likewise.
4331         * ppc-linux-nat.c (stdint.h): Likewise.
4332         * python/python-internal.h (stdint.h): Likewise.
4333         * stub-termcap.c (stdlib.h): Likewise.
4334         * target/target.h (stdint.h): Likewise.
4335         * xtensa-linux-nat.c (stdint.h): Likewise.
4336
4337 2015-06-23  Patrick Palka  <patrick@parcs.ath.cx>
4338
4339         * top.c (init_history): Look at errno after calling strtol to
4340         properly map large GDBHISTSIZE values to infinity.
4341
4342 2015-06-23  Doug Evans  <dje@google.com>
4343
4344         * inferior.h (struct inferior_suspend_state): Delete, unused.
4345         All references deleted.
4346
4347 2015-06-23  Mike Frysinger  <vapier@gentoo.org>
4348
4349         * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
4350         (microblaze_push_dummy_call): Likewise.
4351         (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
4352         and set_gdbarch_push_dummy_call.
4353
4354 2015-06-23  Yao Qi  <yao.qi@linaro.org>
4355
4356         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
4357         Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
4358         (amd64_linux_store_inferior_registers): Likewise.
4359         * arm-linux-nat.c (fetch_fpregister): Likewise.
4360         (fetch_fpregs, store_fpregister): Likewise.
4361         (store_fpregister, store_fpregs): Likewise.
4362         (fetch_register, fetch_regs): Likewise.
4363         (store_register, store_regs): Likewise.
4364         (fetch_vfp_regs, store_vfp_regs): Likewise.
4365         (arm_linux_read_description): Check have_ptrace_getregset is
4366         TRIBOOL_UNKNOWN.  Set have_ptrace_getregset to TRIBOOL_TRUE
4367         or TRIBOOL_FALSE.
4368         * i386-linux-nat.c (fetch_xstateregs): Check
4369         have_ptrace_getregset is not TRIBOOL_TRUE.
4370         (store_xstateregs): Likewise.
4371         * linux-nat.c (have_ptrace_getregset): Change its type to
4372         enum tribool.
4373         * linux-nat.h (tribool): New enum.
4374         * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
4375         Check whether have_ptrace_getregset is TRIBOOL_TRUE.
4376
4377 2015-06-19  Doug Evans  <dje@google.com>
4378
4379         * NEWS: Mention Sun's version of stabs is no longer supported.
4380         * elfread.c (free_elfinfo): Delete.  All uses updated.
4381         (elfstab_offset_sections): Delete.  All uses updated.
4382         * gdb-stabs.h (stab_section_info): Delete.  All uses updated.
4383         * psympriv.h (partial_symtab) <section_offsets>: Delete.
4384         All uses updated.
4385         * psymtab.c (start_psymtab_common): Delete arg section_offsets.
4386         All callers updated.
4387
4388 2015-06-18  Simon Marchi  <simon.marchi@ericsson.com>
4389
4390         * common/rsp-low.c (needs_escaping): New.
4391         (remote_escape_output): Add unit_size parameter. Refactor to
4392         support multi-byte addressable units.  Rename parameters.
4393         * common/rsp-low.h (remote_escape_output): Add unit_size
4394         parameter and rename others. Update doc.
4395         * remote.c (align_for_efficient_write): New.
4396         (remote_write_bytes_aux): Add unit_size parameter and use it.
4397         Rename some variables.  Update doc.
4398         (remote_xfer_partial): Get unit size and use it.
4399         (remote_read_bytes_1): Add unit_size parameter and use it.
4400         Rename some variables. Update doc.
4401         (remote_write_bytes): Same.
4402         (remote_xfer_live_readonly_partial): Same.
4403         (remote_read_bytes): Same.
4404         (remote_flash_write): Update call to remote_write_bytes_aux.
4405         (remote_write_qxfer): Update call to remote_escape_output.
4406         (remote_search_memory): Same.
4407         (remote_hostio_pwrite): Same.
4408
4409 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
4410
4411         * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
4412         locations as inserted.
4413         Update and expand comment about permanent locations.
4414         (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
4415         Move comment to add_location_to_breakpoint.
4416         (update_global_location_list): Don't error out if a permanent
4417         breakpoint is not marked inserted.
4418         Don't error out if a non-permanent breakpoint location is inserted on
4419         top of a permanent breakpoint.
4420
4421 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
4422
4423         * breakpoint.c (make_breakpoint_permanent): Remove unused
4424         function.
4425         * breakpoint.h (make_breakpoint_permanent): Remove declaration.
4426
4427 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
4428
4429         PR gdb/16999
4430         * NEWS: Mention new GDBHISTSIZE behavior.
4431         * top.c (init_history): For null or out-of-range GDBHISTSIZE,
4432         set history size to unlimited.  Ignore non-numeric GDBHISTSIZE.
4433
4434 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
4435
4436         * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
4437         * top.c (init_history): Read from GDBHISTSIZE instead of
4438         HISTSIZE.
4439         (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
4440
4441 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
4442
4443         * top.c (gdb_safe_append_history): Do not call
4444         history_truncate_file if the history is not stifled.
4445
4446 2015-06-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4447
4448         * syscalls/s390-linux.xml: Add syscalls 344 through 354.
4449         * syscalls/s390x-linux.xml: Likewise.
4450
4451 2015-06-16  Michael Eager  <eager@eagercon.com>
4452
4453         * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
4454
4455 2015-06-16  Patrick Palka  <patrick@parcs.ath.cx>
4456
4457         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
4458         target_terminal_ours_for_output() before calling
4459         tui_show_frame_info(), and restore the original terminal
4460         settings afterwards.
4461
4462 2015-06-16  Martin Simmons  <martin@lispworks.com>  (tiny patch)
4463
4464         * arm-linux-nat.c: Include nat/linux-ptrace.h.
4465
4466 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
4467
4468         * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
4469         memory unit size.
4470         (mi_cmd_data_write_memory_bytes): Same.
4471
4472 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
4473
4474         * corefile.c (write_memory): Update doc.
4475         * gdbcore.h (write_memory): Same.
4476
4477 2015-06-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
4478
4479         * linux-tdep.c (enum filterflags): Make it from anonymous enum.
4480         (dump_mapping_p): Use it for parameter filterflags.
4481         (linux_find_memory_regions_full): Use it for variable filterflags.
4482
4483 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
4484             Jan Kratochvil  <jan.kratochvil@redhat.com>
4485
4486         Merge multiple hex conversions.
4487         * monitor.c: Include rsp-low.h.
4488         (fromhex): Remove definition.
4489
4490 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
4491             Jan Kratochvil  <jan.kratochvil@redhat.com>
4492
4493         Move utility functions to common/.
4494         * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
4495         Move defs to common/common-utils.c.
4496         * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
4497         (skip_to_space_const): Move decls to common/common-utils.h.
4498         * common/common-defs.h: Move include of common-types.h before
4499         common-utils.h.
4500         * common/common-utils.c: Include host-defs.h and ctype.h.
4501         (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
4502         from utils.c.
4503         (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
4504         cli/cli-utils.c.
4505         * common/common-utils.h (strtoulst): Move decl from utils.h.
4506         (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
4507         Move from cli/cli-utils.h.
4508         * common/host-defs.h: Include limits.h.
4509         (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
4510         (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
4511         * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
4512         common/common-utils.h.
4513         * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
4514         (strtoulst): Move to common/common-utils.c.
4515         * utils.h (strtoulst): Moved decl to common/common-utils.h.
4516
4517 2015-06-15  Yao Qi  <yao.qi@linaro.org>
4518
4519         * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
4520
4521 2015-06-10  Jon Turney  <jon.turney@dronecode.org.uk>
4522
4523         * build-id.c: Don't include elf-bfd.h.
4524         (build_id_bfd_get): Use bfd_build_id.
4525         (build_id_verify): Ditto.
4526         * build-id.h: Ditto.
4527         (find_separate_debug_file_by_buildid): Ditto.
4528         * python/py-objfile.c: Don't include elf-bfd.h.
4529         (objfpy_get_build_id) Use bfd_build_id.
4530         (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
4531         * coffread.c: Include build-id.h.
4532         (coff_symfile_read): Try find_separate_debug_file_by_buildid.
4533
4534 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
4535
4536         * windows-nat.c (do_windows_fetch_inferior_registers)
4537         (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
4538         conditional with __CYGWIN__.
4539
4540 2015-06-13  Andrew Burgess  <andrew.burgess@embecosm.com>
4541
4542         * completer.c: Add arch-utils.h include.
4543         (enum reg_completer_targets): New enum.
4544         (reg_or_group_completer_1): New function containing old
4545         reg_or_group_completer, add and use new parameter to control what
4546         is completed on.  Use get_current_arch rather than architecture of
4547         currently selected frame.
4548         (reg_or_group_completer): Call new reg_or_group_completer_1.
4549         (reggroup_completer): Call new reg_or_group_completer_1.
4550         * completer.h (reggroup_completer): Add declaration.
4551         * tui/tui-regs.c: Add 'completer.h' include.
4552         (tui_reg_next_command): Renamed to...
4553         (tui_reg_next): ...this.  Adjust parameters and return rather than
4554         display new group.
4555         (tui_reg_prev_command): Renamed to...
4556         (tui_reg_prev): ...this.  Adjust parameters and return rather than
4557         display new group.
4558         (tui_reg_float_command): Delete.
4559         (tui_reg_general_command): Delete.
4560         (tui_reg_system_command): Delete.
4561         (tui_reg_command): Rewrite to perform switching of register group.
4562         Add header comment.
4563         (tuireglist): Remove.
4564         (tui_reggroup_completer): New function.
4565         (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
4566         creation of 'tui reg' command.
4567         * NEWS: Add comment about 'tui reg' changes.
4568
4569 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
4570
4571         * target.c (target_read): Consider addressable unit size when
4572         reading from a memory object.
4573         (read_memory_robust): Same.
4574         (read_whatever_is_readable): Same.
4575         (target_write_with_progress): Consider addressable unit size
4576         when writing to a memory object.
4577         * target.h (target_read): Update documentation.
4578         (target_write): Add documentation.
4579
4580 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
4581
4582         * arch-utils.h (default_addressable_memory_unit_size): New.
4583         * arch-utils.c (default_addressable_memory_unit_size): New.
4584         * gdbarch.sh (addressable_memory_unit_size): New.
4585         * gdbarch.h: Re-generate.
4586         * gdbarch.c: Re-generate.
4587
4588 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
4589
4590         * target.c (target_read): Rename variables and use
4591         TARGET_XFER_E_IO.
4592         (target_read_with_progress): Same.
4593         (read_memory_robust): Constify parameters and rename
4594         variables.
4595         (read_whatever_is_readable): Constify parameters,
4596         rename variables, adjust formatting.
4597         * target.h (read_memory_robust): Constify parameters.
4598
4599 2015-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
4600
4601         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
4602         synthetic (non-AltiVec) vector types.
4603         (ppc64_sysv_abi_return_value): Likewise.
4604
4605 2015-06-12  Antoine Tremblay  <antoine.tremblay@ericsson.com>
4606
4607         PR breakpoints/16465
4608         * breakpoint.c (create_breakpoint): Save extra_string for
4609         pending breakpoints.
4610
4611 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
4612
4613         * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
4614         and bt_mask to CORE_ADDR.
4615
4616 2015-06-11  Gary Benson <gbenson@redhat.com>
4617
4618         * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
4619         (mnsh_recv_message): Likewise.
4620
4621 2015-06-11  Walfred Tedeschi  <walfred.tedeschi@intel.com>
4622
4623         * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
4624         long long int and plongest instead of %ll.
4625
4626 2015-06-11  Gary Benson <gbenson@redhat.com>
4627
4628         * nat/linux-namespaces.c (gdb_wait.h): New include.
4629         (sys/wait.h): Do not include.
4630
4631 2015-06-10  Simon Marchi  <simon.marchi@ericsson.com>
4632
4633         * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
4634         end_sequence is true.
4635
4636 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
4637
4638         Code cleanup.
4639         * solib-target.c (library_list_start_list): Use explicit NULL
4640         comparison.
4641
4642 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
4643
4644         * solib-target.c (library_list_start_list): Do not dereference
4645         variable version in its initialization.  Make the VERSION check handle
4646         NULL.
4647         (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
4648
4649 2015-06-10  Gary Benson <gbenson@redhat.com>
4650
4651         * NEWS: Announce support for direct access of executable and
4652         shared library files when attaching to inferiors in containers
4653         on GNU/Linux systems.
4654
4655 2015-06-10  Gary Benson <gbenson@redhat.com>
4656
4657         * remote.c (struct remote_state) <fs_pid>: New field.
4658         (new_remote_state): Initialize the above.
4659         (PACKET_vFile_setfs): New enum value.
4660         (remote_hostio_set_filesystem): New function.
4661         (remote_hostio_open): Call the above.
4662         (remote_hostio_unlink): Likewise.
4663         (remote_hostio_readlink): Likewise.
4664         (_initialize_remote): Register new "set/show remote
4665         hostio-setfs-packet" command.
4666         * NEWS: Announce new vFile:setfs packet.
4667
4668 2015-06-10  Gary Benson <gbenson@redhat.com>
4669
4670         * linux-nat.c (nat/linux-namespaces.h): New include.
4671         (fileio.h): Likewise.
4672         (linux_nat_filesystem_is_local): New function.
4673         (linux_nat_fileio_pid_of): Likewise.
4674         (linux_nat_fileio_open): Likewise.
4675         (linux_nat_fileio_readlink): Likewise.
4676         (linux_nat_fileio_unlink): Likewise.
4677         (linux_nat_add_target): Initialize to_filesystem_is_local,
4678         to_fileio_open, to_fileio_readlink and to_fileio_unlink.
4679         (_initialize_linux_nat): New "set/show debug linux-namespaces"
4680         commands.
4681         * NEWS: Mention new "set/show debug linux-namespaces" commands.
4682
4683 2015-06-10  Gary Benson <gbenson@redhat.com>
4684
4685         * target.h (struct inferior): New forward declaration.
4686         (struct target_ops) <to_filesystem_is_local>: Update comment.
4687         (struct target_ops) <to_fileio_open>: New argument inf.
4688         Update comment.  All implementations updated.
4689         (struct target_ops) <to_fileio_unlink>: Likewise.
4690         (struct target_ops) <to_fileio_readlink>: Likewise.
4691         (target_filesystem_is_local): Update comment.
4692         (target_fileio_open): New argument inf.  Update comment.
4693         (target_fileio_unlink): Likewise.
4694         (target_fileio_readlink): Likewise.
4695         (target_fileio_read_alloc): Likewise.
4696         (target_fileio_read_stralloc): Likewise.
4697         * target.c (target_fileio_open): New argument inf.
4698         Pass inf to implementation.  Update debug printing.
4699         (target_fileio_unlink): Likewise.
4700         (target_fileio_readlink): Likewise.
4701         (target_fileio_read_alloc_1): New argument inf. Pass inf
4702         to target_fileio_open.
4703         (target_fileio_read_alloc): New argument inf. Pass inf to
4704         target_fileio_read_alloc_1.
4705         (target_fileio_read_stralloc): Likewise.
4706         * gdb_bfd.c (inferior.h): New include.
4707         (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
4708         argument with new argument "inferior".  Pass inferior to
4709         target_fileio_open.
4710         (gdb_bfd_open): Supply inferior argument to
4711         gdb_bfd_iovec_fileio_open.
4712         * linux-tdep.c (linux_info_proc): Supply inf argument to
4713         relevant target_fileio calls.
4714         (linux_find_memory_regions_full): Likewise.
4715         (linux_fill_prpsinfo): Likewise.
4716         * remote.c (remote_filesystem_is_local): Supply inf
4717         argument to remote_hostio_open.
4718         (remote_file_put): Likewise.
4719         (remote_file_get): Likewise.
4720         (remote_file_delete): Supply inf argument to
4721         remote_hostio_unlink.
4722
4723 2015-06-10  Gary Benson <gbenson@redhat.com>
4724
4725         * inf-child.c (inf_child_fileio_open): Replace comment.
4726         (inf_child_fileio_pwrite): Likewise.
4727         (inf_child_fileio_pread): Likewise.
4728         (inf_child_fileio_fstat): Insert blank line before comment.
4729         (inf_child_fileio_close): Replace comment.
4730         (inf_child_fileio_unlink): Likewise.
4731         (inf_child_fileio_readlink): Likewise.
4732         * remote.c (remote_hostio_open): Likewise.
4733         (remote_hostio_pread): Likewise.
4734         (remote_hostio_pwrite): Likewise.
4735         (remote_hostio_close): Likewise.
4736         (remote_hostio_unlink): Likewise.
4737         (remote_hostio_readlink): Likewise.
4738         (remote_hostio_fstat): Likewise.
4739         (remote_filesystem_is_local): Likewise.
4740         * target.c (target_fileio_open): Likewise.
4741         (target_fileio_pwrite): Likewise.
4742         (target_fileio_pread): Likewise.
4743         (target_fileio_fstat): Insert blank line before comment.
4744         (target_fileio_close): Replace comment.
4745         (target_fileio_unlink): Likewise.
4746         (target_fileio_readlink): Likewise.
4747         (target_fileio_read_alloc): Likewise.
4748         (target_fileio_read_stralloc): Likewise.
4749
4750 2015-06-10  Gary Benson <gbenson@redhat.com>
4751
4752         * linux-thread-db.c (nat/linux-namespaces.h): New include.
4753         (check_pid_namespace_match): Use linux_ns_same rather than
4754         linux_proc_pid_get_ns to spot PID namespace mismatches.
4755         * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
4756         * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
4757
4758 2015-06-10  Gary Benson <gbenson@redhat.com>
4759
4760         * configure.ac (AC_CHECK_FUNCS): Add setns.
4761         * config.in: Regenerate.
4762         * configure: Likewise.
4763         * nat/linux-namespaces.h: New file.
4764         * nat/linux-namespaces.c: Likewise.
4765         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
4766         (linux-namespaces.o): New rule.
4767         * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
4768         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
4769         * config/arm/linux.mh (NATDEPFILES): Likewise.
4770         * config/i386/linux.mh (NATDEPFILES): Likewise.
4771         * config/i386/linux64.mh (NATDEPFILES): Likewise.
4772         * config/ia64/linux.mh (NATDEPFILES): Likewise.
4773         * config/m32r/linux.mh (NATDEPFILES): Likewise.
4774         * config/m68k/linux.mh (NATDEPFILES): Likewise.
4775         * config/mips/linux.mh (NATDEPFILES): Likewise.
4776         * config/pa/linux.mh (NATDEPFILES): Likewise.
4777         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4778         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
4779         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
4780         * config/s390/linux.mh (NATDEPFILES): Likewise.
4781         * config/sparc/linux.mh (NATDEPFILES): Likewise.
4782         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
4783         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
4784         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
4785
4786 2015-06-10  Gary Benson <gbenson@redhat.com>
4787
4788         * utils.h (make_cleanup_close): Moved to common/filestuff.h.
4789         * utils.c (do_close_cleanup): Moved to common/filestuff.c.
4790         (make_cleanup_close): Likewise.
4791         * common/filestuff.h (make_cleanup_close): Moved from utils.h.
4792         * common/filestuff.c (do_close_cleanup): Moved from utils.c.
4793         (make_cleanup_close): Likewise.
4794
4795 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
4796
4797         * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
4798         from SuspendThread().
4799
4800 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
4801
4802         * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
4803         from OutputDebugString.
4804
4805 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
4806                         Mircea Gherzan  <mircea.gherzan@intel.com>
4807
4808         * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
4809         MPX_BT_MASK_32): New macros.
4810         (i386_mpx_set_bounds): New function that implements
4811         the command "set-mpx-bound".
4812         (i386_mpx_enabled): Helper function to test MPX availability.
4813         (i386_mpx_bd_base): Helper function to calculate the base directory
4814         address.
4815         (i386_mpx_get_bt_entry): Helper function to access a bound
4816         table entry.
4817         (i386_mpx_print_bounds): Effectively display bound information.
4818         (_initialize_i386_tdep): Add new commands to commands "set mpx" and
4819         "show mpx".
4820         (_initialize_i386_tdep):
4821         Add "bound" to the commands "show mpx" and "set mpx" commands.
4822         (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
4823         and "show mpx" commands.
4824         * NEWS: List new commands for MPX support.
4825
4826 2015-06-09  Gary Benson <gbenson@redhat.com>
4827
4828         * common/fileio.h (fileio_to_host_mode): New declaration.
4829         * common/fileio.c (fileio_to_host_mode): New Function.
4830         * inf-child.c (inf_child_fileio_open): Process mode argument
4831         with fileio_to_host_mode.
4832
4833 2015-06-09  Gary Benson <gbenson@redhat.com>
4834
4835         * common/fileio.c (fileio_mode_pack): Fix preprocessor
4836         conditional.
4837
4838 2015-06-05  Gary Benson <gbenson@redhat.com>
4839
4840         * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
4841         * remote.c (remote_filesystem_is_local): ...here.
4842
4843 2015-06-04  Yao Qi  <yao.qi@linaro.org>
4844
4845         * gdbarch.c: Regenerate it.
4846
4847 2015-06-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
4848
4849         * arch-utils.c (default_infcall_munmap): New.
4850         * arch-utils.h (default_infcall_munmap): New declaration.
4851         * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
4852         (munmap_list_free, munmap_listp_free_cleanup): New.
4853         (struct setup_sections_data): Add field munmap_list_headp.
4854         (setup_sections): Call munmap_list_add.
4855         (compile_object_load): New variable munmap_list_head, initialize
4856         setup_sections_data.munmap_list_headp, return munmap_list_head.
4857         * compile/compile-object-load.h (struct munmap_list): New declaration.
4858         (struct compile_module): Add field munmap_list_head.
4859         (munmap_list_free): New declaration.
4860         * compile/compile-object-run.c (struct do_module_cleanup): Add field
4861         munmap_list_head.
4862         (do_module_cleanup): Call munmap_list_free.
4863         (compile_object_run): Pass munmap_list_head to do_module_cleanup.
4864         * gdbarch.c: Regenerate.
4865         * gdbarch.h: Regenerate.
4866         * gdbarch.sh (infcall_munmap): New.
4867         * linux-tdep.c (linux_infcall_munmap): New.
4868         (linux_init_abi): Install it.
4869
4870 2015-06-02  Simon Marchi  <simon.marchi@ericsson.com>
4871
4872         PR gdb/15564
4873         * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
4874
4875 2015-06-02  Yao Qi  <yao.qi@linaro.org>
4876
4877         * i386-linux-nat.c: Include linux-nat.h.
4878
4879 2015-06-01  Andreas Schwab  <schwab@linux-m68k.org>
4880             Jan Kratochvil  <jan.kratochvil@redhat.com>
4881
4882         PR symtab/18392
4883         * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
4884         assertion.
4885         * dwarf2loc.c (chain_candidate): Likewise.
4886
4887 2015-06-01  Yao Qi  <yao.qi@linaro.org>
4888
4889         * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
4890         (store_vfp_regs): Use PTRACE_SETREGSET.
4891
4892 2015-06-01  Yao Qi  <yao.qi@linaro.org>
4893
4894         * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
4895         (fetch_fpregs): Likewise.
4896         * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
4897         (store_fpregs): Likewise.
4898
4899 2015-06-01  Yao Qi  <yao.qi@linaro.org>
4900
4901         * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
4902         (fetch_regs): Likewise.
4903         (store_regs): Use PTRACE_SETREGSET.
4904         (store_register): Likewise.
4905
4906 2015-06-01  Yao Qi  <yao.qi@linaro.org>
4907
4908         * arm-linux-nat.c (arm_linux_read_description): Check whether
4909         kernel supports PTRACE_GETREGSET.
4910
4911 2015-06-01  Yao Qi  <yao.qi@linaro.org>
4912
4913         * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
4914         * linux-nat.c: ... here.
4915         * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
4916         to ...
4917         * linux-nat.h: ... here.
4918
4919 2015-06-01  Yao Qi  <yao.qi@linaro.org>
4920
4921         * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
4922         * i386-linux-nat.c: Likewise.
4923         * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
4924         * s390-linux-nat.c: Include "nat/linux-ptrace.h".
4925         (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
4926         * x86-linux-nat.c: Include "nat/linux-ptrace.h".
4927         * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
4928
4929 2015-05-30  Eli Zaretskii  <eliz@gnu.org>
4930
4931         * go32-nat.c (go32_xfer_memory): Fix the return value to be
4932         compatible to what read_child and write_child return.  This
4933         unbreaks that DJGPP build of GDB which was broken since v7.7.
4934
4935 2015-05-29  Martin Galvan  <martin.galvan@tallertechnologies.com>
4936
4937         * MAINTAINERS (Write After Approval): Add Martin Galvan.
4938
4939 2015-05-29  Roland McGrath  <mcgrathr@google.com>
4940
4941         PR gdb/18464
4942         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
4943         rather than internal_error for an unrecognized value.
4944
4945 2015-05-29  Max Filippov  <jcmvbkbc@gmail.com>
4946
4947         * xtensa-tdep.c (xtensa_pseudo_register_read)
4948         (xtensa_pseudo_register_write): Don't alias last pseudo register
4949         to a1.
4950
4951 2015-05-28  Don Breazeal  <donb@codesourcery.com>
4952
4953         * infrun.c (follow_fork_inferior): Ensure the use of
4954         process-style ptids (pid,0,0) in verbose/debug "Detaching"
4955         messages.
4956
4957 2015-05-28  Doug Evans  <dje@google.com>
4958
4959         * dwarf2read.c (record_line_ftype): Remove, duplicate.
4960
4961 2015-05-28  Yao Qi  <yao.qi@linaro.org>
4962
4963         * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
4964         (arm_linux_fetch_inferior_registers): Use
4965         tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
4966         (arm_linux_store_inferior_registers): Likewise.
4967         (arm_linux_read_description): Don't set
4968         arm_linux_has_wmmx_registers.
4969         * arm-tdep.c (arm_gdbarch_init): Set
4970         tdep->have_wmmx_registers according target descriptions.
4971         * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
4972         field.
4973
4974 2015-05-28  Yao Qi  <yao.qi@linaro.org>
4975
4976         * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
4977         (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
4978         instead of arm_linux_vfp_register_count.
4979         (store_vfp_regs): Likewise.
4980         (arm_linux_fetch_inferior_registers): Likewise.
4981         (arm_linux_store_inferior_registers): Likewise.
4982         (arm_linux_read_description): Don't set
4983         arm_linux_vfp_register_count.
4984         * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
4985         Adjust.
4986         * arm-tdep.c (arm_gdbarch_init): Add assert on
4987         vfp_register_count.
4988         * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
4989         field to vfp_register_count.  All users updated.
4990
4991 2015-05-28  Kyle Huey  <me@kylehuey.com>  (tiny patch)
4992
4993         * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
4994         ELFOSABI_GNU binaries.
4995
4996 2015-05-27  Doug Evans  <dje@google.com>
4997
4998         * dwarf2read.c (lnp_state_machine): New typedef.
4999         (lnp_reader_state): New typedef.
5000         (dwarf_record_line_1): Renamed from dwarf_record_line.
5001         All callers updated.
5002         (dwarf_record_line): New function.
5003         (init_lnp_state_machine): New function.
5004         (check_line_address): Replace p_record_line parameter with state.
5005         All callers updated.
5006         (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
5007         Update to record state in lnp_state_machine.
5008
5009 2015-05-27  Doug Evans  <dje@google.com>
5010
5011         * dwarf2read.c (record_line_ftype): New typedef.
5012         (check_line_address): New function.
5013         (dwarf_decode_lines_1): Call it.
5014
5015 2015-05-27  Doug Evans  <dje@google.com>
5016
5017         * NEWS: Mention "set debug dwarf-line".
5018         * dwarf2read.c (dwarf_line_debug): New static global.
5019         (add_include_dir): Add debug dwarf-line support.
5020         (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
5021         (_initialize_dwarf2_read): New parameter "debug dwarf-line".
5022
5023 2015-05-27  Doug Evans  <dje@google.com>
5024
5025         * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
5026         All callers updated.
5027         (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
5028         * cp-support.h (cp_lookup_nested_symbol): Update.
5029
5030 2015-05-27  Doug Evans  <dje@google.com>
5031
5032         PR symtab/18258
5033         * block.c (block_find_symbol): New function.
5034         (block_find_non_opaque_type): Ditto.
5035         (block_find_non_opaque_type_preferred): Ditto.
5036         * block.h (block_symbol_matcher_ftype): New typedef.
5037         (block_find_symbol): Declare.
5038         (block_find_non_opaque_type): Ditto.
5039         (block_find_non_opaque_type_preferred): Ditto.
5040         * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
5041         * psymtab.c (psym_lookup_symbol): Ditto.
5042         * symtab.c (basic_lookup_transparent_type_1): New function.
5043         (basic_lookup_transparent_type): Call it.
5044
5045 2015-05-27  Yao Qi  <yao.qi@linaro.org>
5046
5047         * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
5048         AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
5049
5050 2015-05-27  Yao Qi  <yao.qi@linaro.org>
5051
5052         * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
5053         before operator &&.
5054         (aarch64_record_load_store): Likewise.
5055
5056 2015-05-26  Doug Evans  <dje@google.com>
5057
5058         PR c++/18141, c++/18417.
5059         * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
5060         a typedef.
5061
5062 2015-05-26  Doug Evans  <dje@google.com>
5063
5064         * NEWS: Add entries for command renamings.
5065         * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
5066         All uses updated.
5067         (dwarf_die_debug): Renamed from dwarf2_die_debug.  All uses updated.
5068         (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
5069         All uses updated.
5070         (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
5071         All callers updated.  Fix spelling of DWARF in help text.
5072         (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
5073         All uses updated.
5074         (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
5075         All uses updated.
5076         (set_dwarf_cmd): Renamed from set_dwarf2_cmd.  All callers updated.
5077         (show_dwarf_cmd): Renamed from show_dwarf2_cmd.  All callers updated.
5078         (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
5079         All uses updated.
5080         (show_dwarf_always_disassemble): Renamed from
5081         show_dwarf2_always_disassemble.  All callers updated.
5082         (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
5083         "set/show dwarf".  Rename "set/show dwarf2 max-cache-age" to
5084         "set/show dwarf max-cache-age".  Rename
5085         "set/show dwarf2 always-disassemble" to
5086         "set/show dwarf always-disassemble".  Rename
5087         "set/show debug dwarf2-read" to "set/show debug dwarf-read".  Rename
5088         "set/show debug dwarf2-die" to "set/show debug dwarf-die".
5089
5090 2015-05-26  Doug Evans  <dje@google.com>
5091
5092         PR python/18438
5093         * python/py-lazy-string.c (stpy_convert_to_value): Use
5094         gdbpy_gdb_memory_error not PyExc_MemoryError.
5095         (gdbpy_create_lazy_string_object): Ditto.
5096
5097 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
5098
5099         * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
5100
5101 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
5102
5103         * tui/tui-regs.c (tui_reg_prev_command): New function.
5104         (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
5105         * reggroups.c (reggroup_prev): New function.
5106         * reggroups.h (reggroup_prev): Add declaration.  Update comment.
5107
5108 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
5109             Yao Qi  <yao.qi@linaro.org>
5110
5111         * aarch64-linux-tdep.c: Include linux-record.h and
5112         record-full.h.
5113         (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
5114         (aarch64_syscall): New enum.
5115         (aarch64_canonicalize_syscall): New function.
5116         (aarch64_all_but_pc_registers_record): New function.
5117         (aarch64_linux_syscall_record): New function.
5118         (aarch64_linux_init_abi): Install AArch64 process record
5119         handler.  Update to handle syscall recording.
5120         * aarch64-tdep.c: Include record.h and record-full.h.
5121         (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
5122         (struct aarch64_mem_r): Define.
5123         (aarch64_record_result): New enum.
5124         (struct insn_decode_record): Define.
5125         (insn_decode_record): New typedef.
5126         (aarch64_record_data_proc_reg): New function.
5127         (aarch64_record_data_proc_imm): New function.
5128         (aarch64_record_branch_except_sys): New function.
5129         (aarch64_record_load_store): New function.
5130         (aarch64_record_data_proc_simd_fp): New function.
5131         (aarch64_record_asimd_load_store): New function.
5132         (aarch64_record_decode_insn_handler): New function.
5133         (deallocate_reg_mem): New function.
5134         (aarch64_process_record): New function.
5135         * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
5136         New field.
5137         (aarch64_process_record): New extern declaration.
5138         * configure.tgt: Add linux-record.o to gdb_target_obs.
5139         * linux-record.h (struct linux_record_tdep) <arg7>: New field.
5140
5141 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
5142
5143         * NEWS: Add a note on process record-replay support on aarch64*-linux*
5144         targets.
5145
5146 2015-05-26  Martin Galvan  <martin.galvan@tallertechnologies.com>
5147
5148         * amd64-tdep.c: Replace in_function_epilogue_p with
5149         stack_frame_destroyed_p throughout.
5150         * arch-utils.c: Ditto.
5151         * arch-utils.h: Ditto.
5152         * arm-tdep.c: Ditto.
5153         * breakpoint.c: Ditto.
5154         * gdbarch.sh: Ditto.
5155         * hppa-tdep.c: Ditto.
5156         * i386-tdep.c: Ditto.
5157         * mips-tdep.c: Ditto.
5158         * nios2-tdep.c: Ditto.
5159         * rs6000-tdep.c: Ditto.
5160         * s390-linux-tdep.c: Ditto.
5161         * score-tdep.c: Ditto.
5162         * sh-tdep.c: Ditto.
5163         * sparc-tdep.c: Ditto.
5164         * sparc-tdep.h: Ditto.
5165         * sparc64-tdep.c: Ditto.
5166         * spu-tdep.c: Ditto.
5167         * tic6x-tdep.c: Ditto.
5168         * tilegx-tdep.c: Ditto.
5169         * xstormy16-tdep.c: Ditto.
5170         * gdbarch.c, gdbarch.h: Re-generated.
5171
5172 2015-05-22  Andrew Burgess  <andrew.burgess@embecosm.com>
5173
5174         * NEWS: Mention 'tui enable' and 'tui disable'.
5175         * tui/tui.c (tui_enable_command): New function.
5176         (tui_disable_command): New function.
5177         (_initialize_tui): New function.
5178
5179 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
5180
5181         * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
5182
5183 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
5184
5185         * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
5186         buf_ptr is freed.
5187
5188 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
5189
5190         * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
5191         into ...
5192         (tui_set_layout_for_display_command): ...here, before calling
5193         tui_set_layout.  Only set the layout if gdb has not already
5194         entered the TUI_FAILURE state.
5195
5196 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
5197
5198         * tui/tui-layout.c (layout_completer): New function.
5199         (_initialize_tui_layout): Set completer on layout command.
5200
5201 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
5202
5203         * tui/tui-layout.c (tui_set_layout): Remove
5204         tui_register_display_type parameter.  Remove all checking of this
5205         parameter, and reindent function.  Update header comment.
5206         (tui_set_layout_for_display_command): Rename to...
5207         (tui_set_layout_by_name): ...this, and don't check for different
5208         register class types, don't pass a tui_register_display_type to
5209         tui_set_layout.  Update header comment.
5210         (layout_names): Remove register set specific names.
5211         * tui/tui-layout.h (tui_set_layout): Remove
5212         tui_register_display_type parameter.
5213         * tui/tui.c (tui_rl_change_windows): Don't pass a
5214         tui_register_display_type to tui_set_layout.
5215         (tui_rl_delete_other_windows): Likewise.
5216         (tui_enable): Likewise.
5217         * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
5218         (TUI_FLOAT_REGS_NAME_LOWER): Remove.
5219         (TUI_GENERAL_REGS_NAME): Remove.
5220         (TUI_GENERAL_REGS_NAME_LOWER): Remove.
5221         (TUI_SPECIAL_REGS_NAME): Remove.
5222         (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
5223         (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
5224         (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
5225         (enum tui_register_display_type): Remove.
5226         (struct tui_layout_def): Remove regs_display_type and
5227         float_regs_display_type fields.
5228         (struct tui_data_info): Remove regs_display_type field.
5229         (tui_layout_command): Use new name for
5230         tui_set_layout_for_display_command.
5231         * tui/tui-data.c (layout_def): Don't initialise removed fields.
5232         (tui_clear_win_detail): Don't initialise removed fields of
5233         win_info.
5234         * tui/tui-regs.c (tui_show_registers): Use new name for
5235         tui_set_layout_for_display_command.
5236         * tui/tui.h (tui_set_layout_for_display_command): Rename
5237         declaration to...
5238         (tui_set_layout_by_name): ...this.
5239         * printcmd.c (display_command): Remove tui related layout call,
5240         and reindent.
5241
5242 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
5243
5244         * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
5245         (handle_inferior_event): New function.
5246
5247 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
5248
5249         * ada-lang.c (to_fixed_array_type): Rename local variable
5250         typename into type_name.
5251
5252 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
5253
5254         Fix ASAN crash for gdb.compile/compile.exp.
5255         * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
5256
5257 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
5258
5259         * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
5260         (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
5261         * compile/compile-object-load.c (setup_sections, compile_object_load):
5262         Likewise.
5263         * compile/compile.c (compile_to_object): Likewise.
5264
5265 2015-05-16  Doug Evans  <xdje42@gmail.com>
5266
5267         * NEWS: Mention support for unbuffered Guile memory ports.
5268         * scm-ports.c (ioscm_memory_port): Update comments on end, size.
5269         (ioscm_lseek_address): Improve overflow calculation.
5270         (gdbscm_memory_port_fill_input): Add assert.
5271         (gdbscm_memory_port_write): Handle unbuffered ports.
5272         Handle large writes identical to Guile's fport_write.
5273         (gdbscm_memory_port_seek): Fix seeking past end check.
5274         (gdbscm_memory_port_close): Handle closing unbuffered port.
5275         (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
5276         (ioscm_init_memory_port): Handle unbuffered ports.
5277         (ioscm_reinit_memory_port): Ditto.
5278         (ioscm_init_memory_port): Update size calculation.
5279         (gdbscm_open_memory): Support zero sized ports.
5280
5281 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
5282
5283         * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
5284         variable compiler warnings.
5285
5286 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
5287
5288         * compile/compile-object-load.c (get_out_value_type): Fix returned type.
5289
5290 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
5291             Phil Muldoon  <pmuldoon@redhat.com>
5292
5293         * NEWS (Changes since GDB 7.9): Add compile print.
5294         * compile/compile-c-support.c (add_code_header, add_code_footer)
5295         (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
5296         COMPILE_I_PRINT_VALUE_SCOPE.
5297         * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
5298         (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
5299         New.
5300         * compile/compile-object-load.c: Include block.h.
5301         (get_out_value_type): New function.
5302         (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
5303         COMPILE_I_PRINT_VALUE_SCOPE.  Set compile_module's OUT_VALUE_ADDR and
5304         OUT_VALUE_TYPE.
5305         * compile/compile-object-load.h (struct compile_module): Add fields
5306         out_value_addr and out_value_type.
5307         * compile/compile-object-run.c: Include valprint.h and compile.h.
5308         (struct do_module_cleanup): Add fields out_value_addr and
5309         out_value_type.
5310         (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
5311         COMPILE_I_PRINT_VALUE_SCOPE.
5312         (compile_object_run): Propagate out_value_addr and out_value_type.
5313         Pass OUT_VALUE_ADDR.
5314         * compile/compile.c: Include valprint.h.
5315         (compile_print_value, compile_print_command): New functions.
5316         (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
5317         (_initialize_compile): Update compile code help text.  Install
5318         compile_print_command.
5319         * compile/compile.h (compile_print_value): New prototype.
5320         * defs.h (enum compile_i_scope_types): Add
5321         COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
5322
5323 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
5324
5325         * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
5326         Rely on its parameter count.
5327         (compile_object_load): Replace lookup_minimal_symbol_text by
5328         lookup_global_symbol_from_objfile.  Verify FUNC_SYM.  Set it in the
5329         return value.
5330         * compile/compile-object-load.h (struct compile_module): Replace
5331         func_addr by func_sym.
5332         * compile/compile-object-run.c: Include block.h.
5333         (compile_object_run): Reset module variable after it is freed.  Use
5334         FUNC_SYM instead of FUNC_ADDR.  Rely on it.
5335
5336 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
5337
5338         * compile/compile-c-support.c (print_one_macro): Use #ifndef.
5339         (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
5340         (c_compute_program): Call generate_register_struct after typedefs.
5341         * compile/compile-loc2c.c (push, pushf_register_address)
5342         (pushf_register): Cast to GCC_UINTPTR.
5343         (do_compile_dwarf_expr_to_c): Use unused attribute.  Add space after
5344         type.  Use GCC_UINTPTR instead of void *.  Remove excessive cast.
5345         (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
5346         * compile/compile.c (_initialize_compile): Enable warnings for
5347         COMPILE_ARGS.
5348
5349 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
5350
5351         * cli/cli-script.c (execute_control_command): Update
5352         eval_compile_command caller.
5353         * compile/compile-object-load.c (compile_object_load): Add parameters
5354         scope and scope_data.  Set them.
5355         * compile/compile-object-load.h (struct compile_module): Add fields
5356         scope and scope_data.
5357         (compile_object_load): Add parameters scope and scope_data.
5358         * compile/compile-object-run.c (struct do_module_cleanup): Add fields
5359         scope and scope_data.
5360         (compile_object_run): Propagate the fields scope and scope_data.
5361         * compile/compile.c (compile_file_command, compile_code_command):
5362         Update eval_compile_command callers.
5363         (eval_compile_command): Add parameter scope_data.  Pass it plus scope.
5364         * compile/compile.h (eval_compile_command): Add parameter scope_data.
5365         * defs.h (struct command_line): Add field scope_data.
5366
5367 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
5368
5369         * printcmd.c (struct format_data): Move it to valprint.h.
5370         (print_command_parse_format, print_value): New functions from ...
5371         (print_command_1): ... here.  Call them.
5372         * valprint.h (struct format_data): Move it here from printcmd.c.
5373         (print_command_parse_format, print_value): New declarations.
5374
5375 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
5376
5377         * compile/compile-object-load.c (compile_object_load): Add
5378         COMPILE_DEBUG message.
5379
5380 2015-05-15  Jerome Guitton  <guitton@adacore.com>
5381
5382         * ada-lang.c (ada_value_ptr_subscript): Use enum position of
5383         index to get element instead of enum value.
5384         (ada_value_slice_from_ptr, ada_value_slice): Use enum position
5385         of index to compute length, but enum values to compute bounds.
5386         (ada_array_length): Use enum position of index instead of enum value.
5387         (pos_atr): Move position computation to...
5388         (ada_evaluate_subexp): Use enum values to compute bounds.
5389         * gdbtypes.c (discrete_position): ...this new function.
5390         * gdbtypes.h (discrete_position): New function declaration.
5391         * valprint.c (val_print_array_elements): Call discrete_position
5392         to handle array indexed by non-contiguous enumeration types.
5393
5394 2015-05-15  Jerome Guitton  <guitton@adacore.com>
5395
5396         * ada-lang.c (find_parallel_type_by_descriptive_type):
5397         Go through typedefs during lookup.
5398         (to_fixed_array_type): Add support for non-bit packed arrays
5399         as variable-length fields.
5400
5401 2015-05-15  Pedro Alves  <palves@redhat.com>
5402             Simon Marchi  <simon.marchi@ericsson.com>
5403
5404         * event-loop.c (gdb_notifier) <next_file_handler,
5405         next_poll_fds_index>: New fields.
5406         (get_next_file_handler_to_handle_and_advance): New function.
5407         (delete_file_handler): If deleting the next file handler to
5408         handle, advance to the next file handler.
5409         (gdb_wait_for_event): Bail early if no event fired.  Poll file
5410         handlers in round-robin fashion.
5411
5412 2015-05-15  Pedro Alves  <palves@redhat.com>
5413
5414         * linux-tdep.c (linux_find_memory_regions_full): Rename local
5415         'private' to 'priv'.
5416
5417 2015-05-15  Pedro Alves  <palves@redhat.com>
5418
5419         * nat/linux-nat.h: Include "target/waitstatus.h".
5420
5421 2015-05-15  Yuanhui Zhang  <asmwarrior@gmail.com>
5422
5423         * python/py-unwind.c (struct reg_info): Move out of ...
5424         (struct cached_frame_info): ... this scope.
5425         (pending_frame_object_type, unwind_info_object_type): Make extern.
5426
5427 2015-05-15  Joel Brobecker  <brobecker@adacore.com>
5428
5429         * ada-lang.c (ada_value_primitive_packed_val): Make sure
5430         accumSize is never negative.
5431
5432 2015-05-14  Patrick Palka  <patrick@parcs.ath.cx>
5433
5434         * tui/tui-command.c: Remove include of <ctype.h>.
5435         (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
5436
5437 2015-05-13  Martin Galvan  <martin.galvan@tallertechnologies.com>
5438
5439         * dwarf2read.c (die_needs_namespace): Return 1 for
5440         DW_TAG_inlined_subroutine.
5441
5442 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
5443
5444         * regcache.c (regcache_cpy_no_passthrough): New declaration.
5445         (regcache_cpy_no_passthrough): Make it static, add function comment.
5446         * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
5447         (regcache_cpy_no_passthrough): Remove declaration.
5448
5449 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
5450
5451         * gdbthread.h (struct thread_control_state): Update comment for
5452         proceed_to_finish.
5453         * infcall.c (run_inferior_call): Update comment about
5454         proceed_to_finish.
5455         * infcmd.c (get_return_value): Update comment about stop_registers.
5456         (finish_forward): Update comment about proceed_to_finish.
5457         * infrun.c (stop_registers): Remove.
5458         (clear_proceed_status, normal_stop): Remove stop_registers handling.
5459         * infrun.h (stop_registers): Remove.
5460
5461 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
5462
5463         * infcall.c (struct dummy_frame_context_saver)
5464         (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
5465         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
5466         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
5467         New.
5468         (call_function_by_hand_dummy): Move discard_cleanups of
5469         inf_status_cleanup before dummy_frame_push.  Call
5470         dummy_frame_context_saver_setup and prepare context_saver_cleanup.
5471         Use dummy_frame_context_saver_get_regs instead of stop_registers.
5472         * infcall.h (struct dummy_frame_context_saver)
5473         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
5474         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
5475         New declarations.
5476         * infcmd.c: Include infcall.h.
5477         (get_return_value): Add parameter ctx_saver, use it instead of
5478         stop_registers.
5479         (print_return_value): Add parameter ctx_saver, pass it.
5480         (struct finish_command_continuation_args): Add field ctx_saver.
5481         (finish_command_continuation): Update print_return_value caller.
5482         (finish_command_continuation_free_arg): Free also ctx_saver.
5483         (finish_forward): Call dummy_frame_context_saver_setup.
5484         * inferior.h (struct dummy_frame_context_saver): New declaration.
5485         (get_return_value): Add parameter ctx_saver.
5486         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
5487         get_return_value caller.
5488
5489 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
5490
5491         * dummy-frame.c (struct dummy_frame_dtor_list): New.
5492         (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
5493         (remove_dummy_frame): Process dtor_list.
5494         (pop_dummy_frame): Process dtor_list.
5495         (register_dummy_frame_dtor): Maintain dtor_list.
5496         (find_dummy_frame_dtor): Handle dtor_list.
5497         * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
5498         Update comments.
5499
5500 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
5501
5502         * compile/compile-object-run.c (do_module_cleanup): Add parameter
5503         registers_valid.
5504         (compile_object_run): Update do_module_cleanup caller.
5505         * dummy-frame.c: Include infcall.h.
5506         (struct dummy_frame): Update dtor comment.
5507         (remove_dummy_frame): Call dtor.
5508         (pop_dummy_frame): Update dtor caller.
5509         * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
5510         registers_valid.
5511
5512 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
5513
5514         GDB 7.9.1 released.
5515
5516 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
5517
5518         * NEWS: Create "Changes in GDB 7.9.1" section.  Move news about
5519         Xmethods now being able to specify a result type to that new
5520         sectioin.
5521
5522 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
5523
5524         * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
5525         first before resizing the window.
5526         * tui/tui.c (tui_enable): Likewise.
5527
5528 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
5529
5530         * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
5531         * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
5532         * infcall.c (call_function_by_hand_dummy): Use proper typedef for
5533         dummy_dtor parameter.
5534         * infcall.h: Include dummy-frame.h.
5535         (call_function_by_hand_dummy_dtor_ftype): Remove.
5536         (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
5537         parameter.
5538
5539 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
5540
5541         PR gdb/17820
5542         * top.c (history_size_setshow_var): Change type to signed.
5543         Initialize to -2.  Update documentation.
5544         (set_readline_history_size): Define.
5545         (set_history_size_command): Use it.  Remove logic for handling
5546         out-of-range sizes.
5547         (init_history): Use set_readline_history_size().  Test for a
5548         value of -2 instead of 0 when determining whether to set a
5549         default history size.
5550         (init_main): Decode the argument of the "size" command as a
5551         zuinteger_unlimited.
5552
5553 2015-05-12  Doug Evans  <dje@google.com>
5554
5555         * dwarf2read.c (struct file_entry): Tweak comments.
5556         (get_debug_line_section): Tweak comments.
5557
5558 2015-05-12  Don Breazeal  <donb@codesourcery.com>
5559
5560         * NEWS: Announce fork support in the RSP and support
5561         for fork debugging in extended mode.
5562
5563 2015-05-12  Don Breazeal  <donb@codesourcery.com>
5564
5565         * remote.c (remote_insert_fork_catchpoint): New function.
5566         (remote_remove_fork_catchpoint): New function.
5567         (remote_insert_vfork_catchpoint): New function.
5568         (remote_remove_vfork_catchpoint): New function.
5569         (pending_fork_parent_callback): New function.
5570         (remove_new_fork_child): New function.
5571         (remote_update_thread_list): Call remote_notif_get_pending_events
5572         and remove_new_fork_child.
5573         (extended_remote_kill): Kill fork child when killing the
5574         parent before follow_fork completes.
5575         (init_extended_remote_ops): Initialize target vector with
5576         new fork catchpoint functions.
5577
5578 2015-05-12  Don Breazeal  <donb@codesourcery.com>
5579
5580         * remote.c (remove_vfork_event_p): New function.
5581         (remote_follow_fork): Add vfork event type to event checking.
5582         (remote_parse_stop_reply): New stop reasons "vfork" and
5583         "vforkdone" for RSP 'T' Stop Reply Packet.
5584
5585 2015-05-12  Don Breazeal  <donb@codesourcery.com>
5586
5587         * linux-nat.c (linux_nat_ptrace_options): New function.
5588         (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
5589         Call linux_nat_ptrace_options and use different argument to
5590         linux_enable_event_reporting.
5591         (_initialize_linux_nat): Delete call to
5592         linux_ptrace_set_additional_flags.
5593         * nat/linux-ptrace.c (current_ptrace_options): Rename to
5594         supported_ptrace_options.
5595         (additional_flags): Delete variable.
5596         (linux_check_ptrace_features): Use supported_ptrace_options.
5597         (linux_test_for_tracesysgood, linux_test_for_tracefork):
5598         Likewise, and remove additional_flags check.
5599         (linux_enable_event_reporting): Change 'attached' argument to
5600         'options'.  Use supported_ptrace_options.
5601         (ptrace_supports_feature): Change comment.  Use
5602         supported_ptrace_options.
5603         (linux_ptrace_set_additional_flags): Delete function.
5604         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5605         Delete function prototype.
5606         * remote.c (remote_fork_event_p): New function.
5607         (remote_detach_pid): New function.
5608         (remote_detach_1): Call remote_detach_pid, don't mourn inferior
5609         if doing detach-on-fork.
5610         (remote_follow_fork): New function.
5611         (remote_parse_stop_reply): Handle new "T" stop reason "fork".
5612         (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
5613         (init_extended_remote_ops): Initialize to_follow_fork.
5614
5615 2015-05-12  Don Breazeal  <donb@codesourcery.com>
5616
5617         * nat/linux-ptrace.c (linux_check_ptrace_features): Change
5618         from static to extern.
5619         * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
5620         * remote.c (anonymous enum): <PACKET_fork_event_feature,
5621         * PACKET_vfork_event_feature>: New enumeration constants.
5622         (remote_protocol_features): Add table entries for new packets.
5623         (remote_query_supported): Add new feature queries to qSupported
5624         packet.
5625
5626 2015-05-12  Gary Benson <gbenson@redhat.com>
5627
5628         * remote.c (remote_add_inferior): Call exec_file_locate_attach
5629         for fake PIDs as well as real ones.
5630         (remote_pid_to_exec_file): Send empty annex if PID is fake.
5631
5632 2015-05-09  Siva Chandra Reddy  <sivachandra@google.com>
5633
5634         * NEWS (Python Scripting): Mention the new gdb.Value methods.
5635         * python/py-value.c (valpy_reference_value): New function.
5636         (valpy_const_value): Likewise.
5637         (value_object_methods): Add new methods.
5638         * value.c (make_cv_value): New function.
5639         * value.h (make_cv_value): Declare.
5640
5641 2015-05-08  Yao Qi  <yao@codesourcery.com>
5642             Sandra Loosemore  <sandra@codesourcery.com>
5643
5644         * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
5645         to 'lh->include_dirs' before accessing to it.
5646         (psymtab_include_file_name): Likewise.
5647         (dwarf_decode_lines_1): Likewise.
5648         (dwarf_decode_lines): Likewise.
5649         (file_file_name): Likewise.
5650
5651 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
5652
5653         * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
5654         (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
5655         (nios2_linux_rt_sigreturn_init): Adjust base address of
5656         register save area.
5657
5658 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
5659
5660         * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
5661         "trap 31" as the breakpoint instruction on all targets.
5662
5663 2015-05-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
5664
5665         * infcmd.c (print_return_value): Remove unused declaration.
5666
5667 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
5668
5669         * dwarf2read.c (attr_to_dynamic_prop)
5670         <DW_AT_data_member_location>: Use read_type_die isntead of
5671         get_die_type.
5672
5673 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
5674
5675         * ada-lang.c (ada_convert_actual): Add handling of formals
5676         passed inside an aligner type.
5677
5678 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
5679
5680         * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
5681
5682 2015-05-08  Siva Chandra Reddy  <sivachandra@google.com>
5683
5684         PR python/18291
5685         * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
5686         Print xmethod matcher status.
5687
5688 2015-05-08  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5689
5690         * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
5691         register in the regcache when treating the PSWM register, and vice
5692         versa.
5693
5694 2015-05-07  Gary Benson <gbenson@redhat.com>
5695
5696         * linux-thread-db.c (struct thread_db_info)
5697         <td_ta_map_id2thr_p>: Remove field.
5698         (try_thread_db_load_1): Remove initialization for the above.
5699
5700 2015-05-07  Gary Benson <gbenson@redhat.com>
5701
5702         * linux-thread-db.c (struct thread_db_info)
5703         <td_thr_validate_p>: Remove field.
5704         (try_thread_db_load_1): Remove initialization for the above.
5705
5706 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
5707
5708         * compile/compile-object-load.c (compile_object_load): Support
5709         mst_text_gnu_ifunc.
5710
5711 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
5712
5713         * compile/compile.c (compile_to_object): Make the cmd_string parameter
5714         const.  Use new variables for the const compatibility.
5715         (eval_compile_command): Make the cmd_string parameter const.
5716         * compile/compile.h (eval_compile_command): Make the cmd_string
5717         parameter const.
5718
5719 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
5720
5721         * defs.h (deprecated_init_ui_hook): Delete.  Remove associated
5722         comment.
5723         * top.c (deprecated_init_ui_hook): Delete.
5724         (gdb_init): Remove handling of deprecated_init_ui_hook.
5725         * interps.c (clear_interpreter_hooks): Remove handling of
5726         deprecated_init_ui_hook.
5727         * main.c (captured_main): Update comment.
5728
5729 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
5730
5731         * solib.c (_initialize_solib): Add "info dll" alias creation.
5732         * windows-nat.c (set_windows_aliases): Delete.
5733         (_initialize_windows_nat): Remove deprecated_init_ui_hook
5734         assignment.
5735         * NEWS: Add news entry about "info dll" now being available
5736         on all platforms.
5737
5738 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
5739
5740         * ada-lang.c (value_assign_to_component): Reformat and improve
5741         documentation. Remove all trailing spaces.
5742
5743 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
5744
5745         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5746         Stop counting inlined frames as soon as an out-of-line function
5747         is found.
5748
5749 2014-05-05  Pierre-Marie de Rodat  <derodat@adacore.com>
5750
5751         * dwarf2read.c (inherit_abstract_dies): Skip
5752         DW_TAG_GNU_call_site dies while inheriting children of an
5753         abstract DIE into a scope.
5754         (read_lexical_block_scope): Inherit abstract DIE's for
5755         lexical scopes.
5756
5757 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
5758
5759         * ada-valprint.c (val_print_packed_array_elements): Delete
5760         variable "len".  Add a type-length check when comparing two
5761         consecutive elements of the array.  Use the element's actual
5762         length in call to value_contents_eq.
5763         * ada-lang.c (ada_value_primitive_packed_val): Always return
5764         a value whose type has been resolved.
5765
5766 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
5767
5768         * ada-lang.c (ada_value_primitive_packed_val): Recompute
5769         BIT_SIZE and LEN if the size of the resolved type is smaller
5770         than BIT_SIZE * HOST_CHAR_BIT.
5771
5772 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
5773
5774         * ada-lang.c (ada_value_primitive_packed_val): Use a more
5775         correct address in call to value_at.  Adjust call to
5776         value_address accordingly.
5777
5778 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
5779
5780         * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
5781         to print it.
5782
5783 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
5784
5785         * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
5786         * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
5787         pinfo->valaddr.
5788         * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
5789         * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
5790         (resolve_dynamic_type_internal): Set pinfo.valaddr.
5791         Add handling of addr_stack->valaddr.
5792         (resolve_dynamic_type): Add "valaddr" parameter.
5793         Set pinfo.valaddr field.
5794         * ada-lang.c (ada_discrete_type_high_bound): Update call to
5795         resolve_dynamic_type.
5796         (ada_discrete_type_low_bound): Likewise.
5797         * findvar.c (default_read_var_value): Likewise.
5798         * value.c (value_from_contents_and_address): Likewise.
5799
5800 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
5801
5802         * gdbtypes.c (resolve_dynamic_array): Use
5803         create_array_type_with_stride instead of create_array_type.
5804
5805 2015-04-30  DJ Delorie  <dj@redhat.com>
5806
5807         * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
5808         rl78_decode_opcode
5809
5810 2015-04-29  Doug Evans  <dje@google.com>
5811
5812         PR python/18285
5813         * NEWS: Document new gdb.XMethodWorker.get_result_type method.
5814         * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
5815         EVAL_AVOID_SIDE_EFFECTS for xmethods.
5816         * extension-priv.h (struct extension_language_ops)
5817         <get_xmethod_result_type>: New member.
5818         * extension.c (get_xmethod_result_type): New function.
5819         * extension.h (get_xmethod_result_type): Declare.
5820         * python/py-xmethods.c (get_result_type_method_name): New static
5821         global.
5822         (py_get_result_type_method_name): Ditto.
5823         (gdbpy_get_xmethod_result_type): New function.
5824         (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
5825         * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
5826         * python/python.c (python_extension_ops): Add
5827         gdbpy_get_xmethod_result_type.
5828         * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
5829         * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
5830         xmethods.
5831         (value_x_unop): Ditto.
5832         * value.c (result_type_of_xmethod): New function.
5833         * value.h (result_type_of_xmethod): Declare.
5834
5835 2015-04-29  Gary Benson <gbenson@redhat.com>
5836
5837         * solib.c (solib_find_1): Allow fd argument to be NULL.
5838         (exec_file_find): Update comment.
5839         (solib_find): Likewise.
5840         * exec.c (exec_file_locate_attach): Use NULL as fd
5841         argument to exec_file_find to avoid having to close
5842         the opened file.
5843         * infrun.c (follow_exec): Likewise.
5844
5845 2015-04-28  Doug Evans  <dje@google.com>
5846
5847         PR python/18299
5848         * python/lib/gdb/printing.py (register_pretty_printer): Handle
5849         name or __name__ attributes.  Handle gdb module as first argument.
5850
5851 2015-04-28  Doug Evans  <dje@google.com>
5852
5853         PR python/18089
5854         * python/py-prettyprint.c (print_children): Verify result of children
5855         iterator.  Provide better error message.
5856         * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
5857         * python/python.c (gdbpy_print_python_errors_p): New function.
5858
5859 2015-04-28  Doug Evans  <dje@google.com>
5860
5861         * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
5862
5863 2015-04-28  Sasha Smundak  <asmundak@google.com>
5864
5865         * NEWS: Mention gdb.Type.optimized_out method.
5866         * python/py-type.c (typy_optimized_out):  New function.
5867
5868 2015-04-28  John Baldwin  <jhb@FreeBSD.org>
5869
5870         * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
5871
5872 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
5873
5874         * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
5875         (initialize_utils): Move call of init_page_info() to ...
5876         * top.c (gdb_init): ... here.
5877
5878 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
5879
5880         * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
5881         (tui_sigwinch_handler): Still update our idea of
5882         the terminal's width and height even when TUI is not active.
5883
5884 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
5885
5886         * utils.h (set_screen_width_and_height): Declare.
5887         * utils.c (set_screen_width_and_height): Define.
5888         * tui/tui-win.c (tui_update_gdb_sizes): Use it.
5889
5890 2015-04-28  Gary Benson <gbenson@redhat.com>
5891
5892         * infrun.c (solist.h): New include.
5893         (follow_exec): Use exec_file_find to prefix execd_pathname
5894         with gdb_sysroot.
5895
5896 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
5897
5898         * tui/tui-source.c (tui_set_source_content): Avoid calling
5899         strcpy() when offset is 0.
5900
5901 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
5902
5903         PR gdb/18155
5904         * tui/tui-data.c (tui_free_window): Don't free the locator
5905         window when passed an SRC_WIN or a DISASSEM_WIN.
5906
5907 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
5908
5909         * tui/tui-data.h (struct tui_win_element): Forward-declare.
5910         (tui_win_content): Move declaration.
5911         (struct tui_gen_win_info): Give 'content' field the
5912         type tui_win_content.
5913         * tui/tui-data.c (init_content_element): Remove redundant and
5914         erroneous casts.
5915         (tui_add_content_elements): Remove erroneous cast.
5916         * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
5917         casts.
5918         (tui_get_begin_asm_address): Likewise.
5919         * tui/tui-regs.c (tui_show_registers): Likewise.
5920         (tui_show_register_group): Likewise.
5921         (tui_display_registers_from): Likewise.
5922         (tui_check_register_values): Likewise.
5923         * tui/tui-source.c (tui_set_source_content): Likewise.
5924         (tui_set_source_content_nil): Likewise.
5925         (tui_source_is_displayed): Likewise.
5926         * tui/tui-stack.c (tui_show_locator_content): Likewise.
5927         (tui_set_locator_fullname): Likewise.
5928         (tui_set_locator_info): Likewise.
5929         (tui_show_frame_info): Likewise.
5930         * tui/tui-winsource.c (tui_clear_source_content): Likewise.
5931         (tui_show_source_line): Likewise.
5932         (tui_horizontal_source_scroll): Likewise.
5933         (tui_update_breakpoint_info): Likewise.
5934         (tui_set_exec_info_content): Likewise.
5935         (tui_show_exec_info_content): Likewise.
5936         (tui_alloc_source_buffer): Likewise.
5937         (tui_line_is_displayed): Likewise.
5938         (tui_addr_is_displayed): Likewise.
5939
5940 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
5941
5942         * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
5943         event if PL_FLAG_EXEC is set.
5944         [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
5945         [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
5946         (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
5947         "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
5948         Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
5949
5950 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
5951
5952         * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
5953         [TDP_RFPPWAIT] New variable fbsd_pending_children.
5954         [TDP_RFPPWAIT] (fbsd_remember_child): New function.
5955         [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
5956         [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
5957         [PT_LWPINFO] (fbsd_wait): New function.
5958         [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
5959         [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
5960         [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
5961         [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
5962         [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
5963         [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
5964         [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
5965         [TDP_RFPPWAIT] (fbsd_post_attach): New function.
5966         (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
5967         "fbsd_wait".
5968         [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
5969         Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
5970         Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
5971         Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
5972         Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
5973         Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
5974         Set "to_post_attach" to "fbsd_post_attach".
5975
5976 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
5977
5978         * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
5979         (fbsd_find_memory_regions): Mark static.
5980         (fbsd_nat_add_target): New function.
5981         * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
5982         fbsd_pid_to_exec_file and fbsd_find_memory_regions.
5983         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
5984         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
5985         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
5986         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
5987
5988 2015-04-27  Gary Benson <gbenson@redhat.com>
5989
5990         * objfiles.c (allocate_objfile): Do not attempt to expand name
5991         if name is a "target:" filename.
5992         * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
5993         to load auto-load scripts for objfiles with "target:" filenames.
5994
5995 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5996
5997         * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
5998         (enum s390_vector_abi_kind): New enum.
5999         (struct gdbarch_tdep)<vector_abi>: New field.
6000         (s390_effective_inner_type): Add parameter min_size.  Stop
6001         unwrapping if the inner type is smaller than min_size.
6002         (s390_function_arg_float): Adjust call to
6003         s390_effective_inner_type.
6004         (s390_function_arg_vector): New function.
6005         (s390_function_arg_integer): Adjust comment.
6006         (struct s390_arg_state)<vr>: New field.
6007         (s390_handle_arg): Add parameter 'is_unnamed'.  Pass vector
6008         arguments according to vector ABI when appropriate.
6009         (s390_push_dummy_call): Initialize the argument state's field
6010         'vr'.  Adjust calls to s390_handle_arg.
6011         (s390_register_return_value): Handle vector return values.
6012         (s390_return_value): Apply the "register" return value convention
6013         to a vector when appropriate.
6014         (s390_gdbarch_init): Initialize tdep->vector_abi.
6015         * NEWS: Announce S390 vector ABI support.
6016
6017 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6018
6019         * s390-linux-tdep.c (s390_return_value_convention): Remove
6020         function.  Inline its logic...
6021         (s390_return_value): ...here.  Instead, move the handling of the
6022         "register" return value convention...
6023         (s390_register_return_value): ...here.  New function.
6024
6025 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6026
6027         * s390-linux-tdep.c
6028         (is_float_singleton): Remove function.  Move the "singleton" part
6029         of the logic...
6030         (s390_effective_inner_type): ...here.  New function.
6031         (is_float_like): Remove function.  Inline its logic...
6032         (s390_function_arg_float): ...here.
6033         (is_pointer_like, is_integer_like, is_struct_like): Remove
6034         functions.  Inline their logic...
6035         (s390_function_arg_integer): ...here.
6036         (s390_function_arg_pass_by_reference): Remove function.
6037         (extend_simple_arg): Remove function.
6038         (alignment_of): Remove function.
6039         (struct s390_arg_state): New structure.
6040         (s390_handle_arg): New function.
6041         (s390_push_dummy_call): Move parameter placement logic to the new
6042         function s390_handle_arg.  Call it for calculating the stack area
6043         sizes first, and again for actually writing the parameters.
6044
6045 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6046
6047         * s390-linux-tdep.c (is_power_of_two): Add comment.  Return
6048           false if the argument is zero.
6049
6050 2015-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
6051
6052         * ada-lang.c (template_to_static_fixed_type): Return input type
6053         when it is already fixed.  Cache the input type itself when not
6054         creating a static fixed copy.  Make it explicit that we never
6055         molestate the input type.
6056         * gdbtypes.c (resolve_dynamic_struct): Reset the
6057         TYPE_TARGET_TYPE field for resolved copies.
6058
6059 2015-04-27  Joel Brobecker  <brobecker@adacore.com>
6060
6061         * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
6062         (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
6063         (template_to_static_fixed_type): Call ada_check_typedef only
6064         when necessary.
6065
6066 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
6067
6068         * cli/cli-dump.c (srec_dump_command): Add internationalization
6069         mark ups.
6070         (ihex_dump_command): Likewise.
6071         (tekhex_dump_command): Likewise.
6072         (binary_dump_command): Likewise.
6073         (binary_append_command): Likewise.
6074
6075 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
6076
6077         * cli/cli-dump.c (verilog_cmdlist): New variable.
6078         (dump_verilog_memory): New function.
6079         (dump_verilog_value): New function.
6080         (verilog_dump_command): New function.
6081         (_initialize_cli_dump): Add new commands to support verilog dump
6082         format.
6083         * NEWS: Add entry for "dump verilog".
6084
6085 2015-04-24  Pierre-Marie de Rodat  <derodat@adacore.com>
6086
6087         * gdbtypes.c (print_gnat_stuff): Do not recurse on the
6088         descriptive type when there is none.
6089
6090 2015-04-23  Patrick Palka  <patrick@parcs.ath.cx>
6091
6092         * tui/tui-win.c (tui_async_resize_screen): Call
6093         rl_resize_terminal().
6094
6095 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
6096
6097         * windows-nat.c (handle_output_debug_string): Don't change
6098         current_event.dwThreadId.
6099         (get_windows_debug_event): Use thread_id, rather than relying on
6100         current_event.dwThreadId being changed.
6101
6102 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
6103
6104         * windows-nat.c (windows_continue): Report an error if
6105         ContinueDebugEvent() fails.
6106
6107 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
6108
6109         * windows-nat.c (windows_resume): Fix misspelling in debug output.
6110
6111 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
6112
6113         * windows-nat.c (get_windows_debug_event): Replace retval with
6114         thread_id throughout.  Update stale comment.
6115
6116 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
6117
6118         * windows-nat.c (get_windows_debug_event): Don't use ternary
6119         conditional operator.
6120
6121 2015-04-21  Pierre Muller  <muller@sourceware.org>
6122
6123         PR pascal/17815
6124         p-exp.y (yylex): Reorganize code to return the matched pattern
6125         for a field of this.
6126
6127 2015-04-21  Gary Benson <gbenson@redhat.com>
6128
6129         * common/fileio.h (fileio_to_host_openflags): New declaration.
6130         * common/fileio.c (fcntl.h): New include.
6131         (fileio_to_host_openflags): New function, factored out from...
6132         * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
6133         Single use updated.
6134
6135 2015-04-21  Kevin Buettner  <kevinb@redhat.com>
6136
6137         * rl78-tdep.c (RL78_SP_ADDR): Define.
6138         (opc_reg_to_gdb_regnum): New static function.
6139         (rl78_analyze_prologue): Recognize instructions forming slightly
6140         more interesting prologues.
6141
6142 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
6143
6144         Revert:
6145         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
6146         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
6147         TYPE_CODE_REF types so that they are not considered as dynamic
6148         depending on the referenced type.
6149         (resolve_dynamic_type_internal): Likewise.
6150
6151 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
6152
6153         Revert:
6154         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
6155         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
6156         "top_level" parameter.
6157         (resolve_dynamic_type_internal): Remove the unused "top_level"
6158         parameter.  Update call to is_dynamic_type_internal.
6159         (is_dynamic_type): Update call to is_dynamic_type_internal.
6160         (resolve_dynamic_range): Update call to
6161         resolve_dynamic_type_internal.
6162         (resolve_dynamic_union): Likewise.
6163         (resolve_dynamic_struct): Likewise.
6164         (resolve_dynamic_type): Likewise.
6165
6166 2015-04-19  Gabriel Krisman Bertazi  <gabriel@krisman.be>
6167
6168         * breakpoint.c (update_dprintf_command_list): Remove duplicated
6169         xmalloc.
6170
6171 2015-04-20  Thomas Schwinge  <thomas@codesourcery.com>
6172
6173         * reply_mig_hack.awk: Robustify parsing.
6174
6175         * reply_mig_hack.awk: Don't bother to declare an intermediate
6176         function pointer variable.
6177
6178 2015-04-17  Doug Evans  <dje@google.com>
6179
6180         * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
6181         to "exec_displacement" to avoid confusion with inner use of the name.
6182
6183 2015-04-17  Pedro Alves  <palves@redhat.com>
6184
6185         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
6186         if HW point of TYPE isn't supported.
6187
6188 2015-04-17  Yao Qi  <yao.qi@linaro.org>
6189             Pedro Alves  <palves@redhat.com>
6190
6191         * target.h (target_can_use_hardware_watchpoint): Update comments.
6192         Remove trailing ";".
6193
6194 2015-04-17  Gary Benson <gbenson@redhat.com>
6195
6196         * remote.c (remote_add_inferior): New argument try_open_exec.
6197         If nonzero, attempt to open the inferior's executable file as
6198         the main executable if no main executable is open already.
6199         All callers updated.
6200         * NEWS: Mention that GDB now supports automatic location and
6201         retrieval of executable + files from remote targets.
6202
6203 2015-04-17  Gary Benson <gbenson@redhat.com>
6204
6205         * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
6206         * remote.c (PACKET_qXfer_exec_file): Likewise.
6207         (remote_protocol_features): Register the
6208         "qXfer:exec-file:read" feature.
6209         (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
6210         (remote_pid_to_exec_file): New function.
6211         (init_remote_ops): Initialize to_pid_to_exec_file.
6212         (_initialize_remote): Register new "set/show remote
6213         pid-to-exec-file-packet" command.
6214         * NEWS: Announce new qXfer:exec-file:read packet.
6215
6216 2015-04-17  Gary Benson <gbenson@redhat.com>
6217
6218         * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
6219         New declaration.
6220         * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
6221         New function, factored out from...
6222         * linux-nat.c (linux_child_pid_to_exec_file): ...here.
6223
6224 2015-04-17  Gary Benson <gbenson@redhat.com>
6225
6226         * exec.c (solist.h): New include.
6227         (exec_file_locate_attach): Prefix absolute executable
6228         paths with gdb_sysroot if set.
6229         * NEWS: Mention that executable paths may be prepended
6230         with sysroot.
6231
6232 2015-04-17  Gary Benson <gbenson@redhat.com>
6233
6234         * solist.h (exec_file_find): New declaration.
6235         * solib.c (solib_find_1): New function, factored out from...
6236         (solib_find): ...here.
6237         (exec_file_find): New function.
6238
6239 2015-04-17  Gary Benson <gbenson@redhat.com>
6240
6241         * gdbcore.h (exec_file_locate_attach): New declaration.
6242         * exec.c (exec_file_locate_attach): New function, factored
6243         out from...
6244         * infcmd.c (attach_command_post_wait): ...here.
6245
6246 2015-04-17  Mike Frysinger  <vapier@gentoo.org>
6247
6248         * MAINTAINERS: Add myself for Blackfin/write-after-approval.
6249
6250 2015-04-16  Yao Qi  <yao.qi@linaro.org>
6251
6252         * infrun.c (maybe_software_singlestep): Declare.
6253         (displaced_step_fixup): Call maybe_software_singlestep.
6254
6255 2015-04-15  Doug Evans  <dje@google.com>
6256
6257         * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
6258
6259 2015-04-15  Doug Evans  <dje@google.com>
6260
6261         * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
6262
6263 2015-04-15  Simon Marchi  <simon.marchi@ericsson.com>
6264
6265         * python/lib/gdb/command/unwinders.py: Add parentheses.
6266
6267 2015-04-15  Yao Qi  <yao.qi@linaro.org>
6268
6269         * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
6270
6271 2015-04-15  Yao Qi  <yao.qi@linaro.org>
6272
6273         * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
6274
6275 2015-04-15  Yao Qi  <yao.qi@linaro.org>
6276
6277         * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6278         dsc->insn_size instead of 4.
6279
6280 2015-04-14  Gary Benson <gbenson@redhat.com>
6281
6282         * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
6283         * minidebug.c (lzma_stat): Likewise.
6284         * solib-spu.c (spu_bfd_iovec_stat): Likewise.
6285         * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
6286
6287 2015-04-13  Stan Shebs  <stanshebs@google.com>
6288
6289         * MAINTAINERS: Update my email address.
6290
6291 2015-04-13  John Baldwin  <jhb@FreeBSD.org>
6292
6293         * amd64-tdep.c (amd64_target_description): New function.
6294         * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
6295         * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
6296         (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
6297         x86 extended save area.
6298         (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
6299         * amd64bsd-nat.h: Export amd64bsd_xsave_len.
6300         * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
6301         (_initialize_amd64fbsd_nat): Set "to_read_description" to
6302         "amd64fbsd_read_description".
6303         * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
6304         (amd64fbsd_supply_xstateregset): New function.
6305         (amd64fbsd_collect_xstateregset): New function.
6306         Add "amd64fbsd_xstateregset".
6307         (amd64fbsd_iterate_over_regset_sections): New function.
6308         (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
6309         "I386_FBSD_XSAVE_XCR0_OFFSET".
6310         Add "iterate_over_regset_sections" gdbarch method.
6311         Add "core_read_description" gdbarch method.
6312         * i386-tdep.c (i386_target_description): New function.
6313         * i386-tdep.h: Export i386_target_description and tdesc_i386.
6314         * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
6315         (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
6316         x86 extended save area.
6317         (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
6318         * i386bsd-nat.h: Export i386bsd_xsave_len.
6319         * i386fbsd-nat.c (i386fbsd_read_description): New function.
6320         (_initialize_i386fbsd_nat): Set "to_read_description" to
6321         "i386fbsd_read_description".
6322         * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
6323         (i386fbsd_core_read_description): New function.
6324         (i386fbsd_supply_xstateregset): New function.
6325         (i386fbsd_collect_xstateregset): New function.
6326         Add "i386fbsd_xstateregset".
6327         (i386fbsd_iterate_over_regset_sections): New function.
6328         (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
6329         "I386_FBSD_XSAVE_XCR0_OFFSET".
6330         Add "iterate_over_regset_sections" gdbarch method.
6331         Add "core_read_description" gdbarch method.
6332         * i386fbsd-tdep.h: New file.
6333
6334 2015-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6335
6336         * NEWS (Changes since GDB 7.9): Add removed -xdb.
6337         * breakpoint.c (command_line_is_silent): Remove xdb_commands
6338         conditional.
6339         (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
6340         and lb.
6341         * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
6342         va.
6343         * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
6344         conditional.
6345         * defs.h (xdb_commands): Remove declaration.
6346         * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
6347         * guile/scm-cmd.c (command_classes): Remove xdb from comment.
6348         * infcmd.c (run_no_args_command, go_command): Remove.
6349         (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
6350         * infrun.c (xdb_handle_command): Remove.
6351         (_initialize_infrun): Remove xdb_commands for lz and z.
6352         * main.c (xdb_commands): Remove variable.
6353         (captured_main): Remove "xdb" from long_options.
6354         (print_gdb_help): Remove --xdb from help.
6355         * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
6356         * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
6357         * stack.c (backtrace_full_command, args_plus_locals_info)
6358         (current_frame_command): Remove.
6359         (_initialize_stack): Remove xdb_commands for t, T and l.
6360         * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
6361         * thread.c (_initialize_thread): Remove xdb_commands condition.
6362         * tui/tui-layout.c (tui_toggle_layout_command)
6363         (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
6364         (_initialize_tui_layout): Remove xdb_commands for td and ts.
6365         * tui/tui-regs.c (tui_scroll_regs_forward_command)
6366         (tui_scroll_regs_backward_command): Remove.
6367         (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
6368         * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
6369         (_initialize_tui_win): Remove xdb_commands for U and w.
6370         * utils.c (pagination_on_command, pagination_off_command): Remove.
6371         (initialize_utils): Remove xdb_commands for am and sm.
6372
6373 2015-04-10  Pedro Alves  <palves@redhat.com>
6374
6375         * infrun.c (displaced_step_fixup): Switch to the event ptid
6376         earlier.  If the thread stopped for a watchpoint and the
6377         target/arch has non-continuable watchpoints, cancel the displaced
6378         step.
6379         (resume): Don't start a displaced step if in-line step-over info
6380         is valid.
6381
6382 2015-04-10  Pedro Alves  <palves@redhat.com>
6383
6384         * infrun.c (displaced_step_in_progress): New function.
6385         (do_target_resume): Advise target to report all signals if
6386         displaced stepping.
6387
6388 2015-04-10  Pedro Alves  <palves@redhat.com>
6389
6390         PR gdb/18216
6391         * infrun.c (process_event_stop_test): Don't assume a step-resume
6392         is set if tp->stepped_breakpoint is true.
6393
6394 2015-04-10  Yao Qi  <yao.qi@linaro.org>
6395
6396         * arm-tdep.c (install_alu_reg): Update comment.
6397         (thumb_copy_alu_reg): Remove local variable rn.  Update
6398         debugging message.  Use r2 instead of r1 in the modified
6399         instruction.
6400
6401 2015-04-10  Pedro Alves  <palves@redhat.com>
6402
6403         PR gdb/13858
6404         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
6405         linux_displaced_step_location as gdbarch_displaced_step_location
6406         hook.
6407         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6408         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6409         * linux-tdep.c (linux_displaced_step_location): New function,
6410         based on ppc_linux_displaced_step_location.
6411         * linux-tdep.h (linux_displaced_step_location): New declaration.
6412         * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
6413         (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
6414         Delete.
6415         (ppc_linux_init_abi): Install linux_displaced_step_location as
6416         gdbarch_displaced_step_location hook, even without Cell/B.E..
6417         (_initialize_ppc_linux_tdep): Don't install
6418         ppc_linux_inferior_created as inferior_created observer.
6419         * s390-linux-tdep.c (s390_gdbarch_init): Install
6420         linux_displaced_step_location as gdbarch_displaced_step_location
6421         hook.
6422
6423 2015-04-09  Gary Benson <gbenson@redhat.com>
6424
6425         * common/common-remote-fileio.h: Rename to...
6426         * common/fileio.h: ...this.  Update all references.
6427         (remote_fileio_to_fio_error): Rename to...
6428         (host_to_fileio_error): ...this.
6429         (remote_fileio_to_be): Rename to...
6430         (host_to_bigendian): ...this.  Update all callers.
6431         (remote_fileio_to_fio_uint): Rename to...
6432         (host_to_fileio_uint): ...this.  Update all callers.
6433         (remote_fileio_to_fio_time): Rename to...
6434         (host_to_fileio_time): ...this.  Update all callers.
6435         (remote_fileio_to_fio_stat): Rename to...
6436         (host_to_fileio_stat): ...this.
6437         Update all references.
6438         * common/common-remote-fileio.c: Rename to...
6439         * common/fileio.c: ...this.  Update all references.
6440         (remote_fileio_to_fio_error): Rename to...
6441         (host_to_fileio_error): ...this.  Update all callers.
6442         (remote_fileio_mode_to_target): Rename to...
6443         (fileio_mode_pack): ...this.  Update all callers.
6444         (remote_fileio_to_fio_mode): Rename to...
6445         (host_to_fileio_mode): ...this.  Update all callers.
6446         (remote_fileio_to_fio_ulong): Rename to...
6447         (host_to_fileio_ulong): ...this.  Update all callers.
6448         (remote_fileio_to_fio_stat): Rename to...
6449         (host_to_fileio_stat): ...this.  Update all callers.
6450
6451 2015-04-09  Andy Wingo  <wingo@igalia.com>
6452
6453         * guile/scm-frame.c (gdbscm_frame_read_register): New function.
6454         (frame_functions): Bind gdbscm_frame_read_register to
6455         frame-read-register.
6456         * guile/lib/gdb.scm (frame-read-register): Export.
6457
6458 2015-04-09  Gary Benson <gbenson@redhat.com>
6459
6460         * common/common-remote-fileio.h (remote_fileio_to_fio_error):
6461         New declaration.
6462         * common/common-remote-fileio.c (remote_fileio_to_fio_error):
6463         New function, factored out the named functions below.
6464         * inf-child.c (gdb/fileio.h): Remove include.
6465         (common-remote-fileio.h): New include.
6466         (inf_child_errno_to_fileio_error): Remove function.  Update
6467         all callers to use remote_fileio_to_fio_error.
6468         * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
6469
6470 2015-04-09  Andy Wingo  <wingo@igalia.com>
6471
6472         * MAINTAINERS (Write After Approval): Add Andy Wingo.
6473
6474 2015-04-09  H.J. Lu  <hongjiu.lu@intel.com>
6475
6476         * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
6477         Replace $zlibdir with $ZLIBDIR in LDFLAGS.
6478         * configure: Regenerated.
6479
6480 2015-04-09  Pedro Alves  <palves@redhat.com>
6481
6482         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
6483         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
6484         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
6485         * gnulib/import/Makefile.am: Update.
6486         * gnulib/import/Makefile.in: Update.
6487         * gnulib/import/m4/gnulib-cache.m4: Update.
6488         * gnulib/import/m4/gnulib-comp.m4: Update.
6489         * gnulib/import/m4/strtok_r.m4: New file.
6490         * gnulib/import/strtok_r.c: New file.
6491
6492 2015-04-09  Pedro Alves  <palves@redhat.com>
6493
6494         * gnulib/update-gnulib.sh (aclocal version check): Filter out
6495         "called too early to check prototype".
6496
6497 2015-04-08  Sergio Durigan Junior  <sergiodj@redhat.com>
6498
6499         PR python/16699
6500         * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
6501         use a caching mechanism.  Adjust comments and code to reflect
6502         that.  Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
6503         (cmdpy_completer_handle_brkchars): Adjust call to
6504         cmdpy_completer_helper.  Call Py_XDECREF for 'resultobj'.
6505         (cmdpy_completer): Likewise.
6506
6507 2015-04-08  Yao Qi  <yao.qi@linaro.org>
6508
6509         * spu-tdep.c (spu_gdbarch_init): Don't call
6510         set_gdbarch_cannot_step_breakpoint.
6511
6512 2015-04-07  Sergio Durigan Junior  <sergiodj@redhat.com>
6513
6514         * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
6515
6516 2015-04-07  Pedro Alves  <palves@redhat.com>
6517
6518         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
6519         (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
6520         (delete_exited_threads): New declaration.
6521         * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
6522         * linux-nat.c (linux_nat_update_thread_list): New function.
6523         (linux_nat_add_target): Install it.
6524         * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
6525         * thread.c (prune_threads): Use ALL_THREADS_SAFE.
6526         (delete_exited_threads): New function.
6527
6528 2015-04-07  Pedro Alves  <pedro@codesourcery.com>
6529
6530         * infrun.c (resume) <displaced stepping debug output>: Get the
6531         leader thread's regcache, not resume_ptid's.
6532
6533 2015-04-06  Doug Evans  <xdje42@gmail.com>
6534
6535         * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
6536         VAR_DOMAIN.
6537         (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
6538         Include symbol domain in debugging output.
6539
6540 2015-04-06  Pedro Alves  <palves@redhat.com>
6541             Bernd Edlinger  <bernd.edlinger@hotmail.de>
6542
6543         * configure.ac: Remove the mingw32-specific stub-termcap.o
6544         fallback, and instead fallback to the stub termcap on all hosts.
6545         * configure: Regenerate.
6546         * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
6547         symbols.
6548
6549 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
6550
6551         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
6552         "top_level" parameter.
6553         (resolve_dynamic_type_internal): Remove the unused "top_level"
6554         parameter.  Update call to is_dynamic_type_internal.
6555         (is_dynamic_type): Update call to is_dynamic_type_internal.
6556         (resolve_dynamic_range): Update call to
6557         resolve_dynamic_type_internal.
6558         (resolve_dynamic_union): Likewise.
6559         (resolve_dynamic_struct): Likewise.
6560         (resolve_dynamic_type): Likewise.
6561
6562 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
6563
6564         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
6565         TYPE_CODE_REF types so that they are not considered as dynamic
6566         depending on the referenced type.
6567         (resolve_dynamic_type_internal): Likewise.
6568
6569 2015-04-02  H.J. Lu  <hongjiu.lu@intel.com>
6570
6571         * Makefile.in (top_srcdir): New.
6572         * configure: Regenerated.
6573
6574 2015-04-02  Gary Benson <gbenson@redhat.com>
6575
6576         * NEWS: Announce the new default sysroot of "target:".
6577
6578 2015-04-02  Gary Benson <gbenson@redhat.com>
6579
6580         * main.c (captured_main): Set gdb_sysroot to "target:"
6581         if not otherwise set.
6582
6583 2015-04-02  Gary Benson <gbenson@redhat.com>
6584
6585         * exec.c (exec_file_attach): Support "target:" filenames.
6586
6587 2015-04-02  Gary Benson <gbenson@redhat.com>
6588
6589         * solib.c (solib_find): Strip "target:" prefix from sysroot
6590         if accessing local files.
6591
6592 2015-04-02  Gary Benson <gbenson@redhat.com>
6593
6594         * symfile.c (symfile_bfd_open): Reorder to remove duplicated
6595         checks and error messages.
6596
6597 2015-04-02  Gary Benson <gbenson@redhat.com>
6598
6599         * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
6600         (remote_filename_p): Remove declaration.
6601         (remote_bfd_open): Likewise.
6602         * remote.c (remote_bfd_iovec_open): Remove function.
6603         (remote_bfd_iovec_close): Likewise.
6604         (remote_bfd_iovec_pread): Likewise.
6605         (remote_bfd_iovec_stat): Likewise.
6606         (remote_filename_p): Likewise.
6607         (remote_bfd_open): Likewise.
6608         * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
6609         * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
6610         (gdb_bfd_open_maybe_remote): Remove function.
6611         (symfile_bfd_open):  Replace remote filename check with
6612         target filename check.
6613         (reread_symbols): Use gdb_bfd_open.
6614         * build-id.c (gdbcore.h): New include.
6615         (build_id_to_debug_bfd): Use gdb_bfd_open.
6616         * infcmd.c (attach_command_post_wait): Remove remote filename
6617         check.
6618         * solib.c (solib_find): Replace remote-specific handling with
6619         target-specific handling.  Update comments where necessary.
6620         (solib_bfd_open): Replace remote-specific handling with
6621         target-specific handling.
6622         (gdb_sysroot_changed): New function.
6623         (_initialize_solib): Call the above when gdb_sysroot changes.
6624         * windows-tdep.c (gdbcore.h): New include.
6625         (windows_xfer_shared_library): Use gdb_bfd_open.
6626
6627 2015-04-02  Gary Benson <gbenson@redhat.com>
6628
6629         * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
6630         (is_target_filename): New declaration.
6631         (gdb_bfd_has_target_filename): Likewise.
6632         (gdb_bfd_open): Update documentation comment.
6633         * gdb_bfd.c (target.h): New include.
6634         (gdb/fileio.h): Likewise.
6635         (is_target_filename): New function.
6636         (gdb_bfd_has_target_filename): Likewise.
6637         (fileio_errno_to_host): Likewise.
6638         (gdb_bfd_iovec_fileio_open): Likewise.
6639         (gdb_bfd_iovec_fileio_pread): Likewise.
6640         (gdb_bfd_iovec_fileio_close): Likewise.
6641         (gdb_bfd_iovec_fileio_fstat): Likewise.
6642         (gdb_bfd_open): Use target fileio to access paths prefixed
6643         with "target:" where necessary.
6644
6645 2015-04-02  Gary Benson <gbenson@redhat.com>
6646
6647         * target.h (struct target_ops) <to_filesystem_is_local>:
6648         New field.
6649         (target_filesystem_is_local): New macro.
6650         * target-delegates.c: Regenerate.
6651         * remote.c (remote_filesystem_is_local): New function.
6652         (init_remote_ops): Initialize to_filesystem_is_local.
6653
6654 2015-04-02  Gary Benson <gbenson@redhat.com>
6655
6656         * target.h (struct target_ops) <to_fileio_fstat>: New field.
6657         (target_fileio_fstat): New declaration.
6658         * target.c (target_fileio_fstat): New function.
6659         * inf-child.c (inf_child_fileio_fstat): Likewise.
6660         (inf_child_target): Initialize to_fileio_fstat.
6661         * remote.c (init_remote_ops): Likewise.
6662
6663 2015-04-01  Sasha Smundak  <asmundak@google.com>
6664
6665         * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
6666         (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
6667         (py-unwind.o): New recipe.
6668         * NEWS: mention Python frame unwinding.
6669         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
6670         gdb/unwinder.py and gdb/command/unwinder.py
6671         * python/lib/gdb/__init__.py (packages): Add frame_unwinders
6672         list.
6673         (execute_unwinders): New function.
6674         * python/lib/gdb/command/unwinders.py: New file.
6675         * python/lib/gdb/unwinder.py: New file.
6676         * python/py-objfile.c (objfile_object): Add frame_unwinders field.
6677         (objfpy_dealloc): Decrement frame_unwinders reference count.
6678         (objfpy_initialize): Create frame_unwinders list.
6679         (objfpy_get_frame_unwinders): New function.
6680         (objfpy_set_frame_unwinders): Ditto.
6681         (objfile_getset): Add frame_unwinders attribute to Objfile.
6682         * python/py-progspace.c (pspace_object): Add frame_unwinders field.
6683         (pspy_dealloc): Decrement frame_unwinders reference count.
6684         (pspy_initialize): Create frame_unwinders list.
6685         (pspy_get_frame_unwinders): New function.
6686         (pspy_set_frame_unwinders): Ditto.
6687         (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
6688         * python/py-unwind.c: New file.
6689         * python/python-internal.h (pspy_get_name_unwinders): New prototype.
6690         (objpy_get_frame_unwinders): New prototype.
6691         (gdbpy_initialize_unwind): New prototype.
6692         * python/python.c (gdbpy_apply_type_printers): Call
6693         gdbpy_initialize_unwind.
6694
6695 2015-04-01  Pedro Alves  <palves@redhat.com>
6696
6697         * infrun.c (resume): Check currently_stepping after clearing
6698         stepped_breakpoint, not before.
6699
6700 2015-04-01  Pedro Alves  <palves@redhat.com>
6701
6702         * infrun.c (print_target_wait_results): Print all the ptid
6703         elements.
6704
6705 2015-04-01  Pedro Alves  <palves@redhat.com>
6706
6707         * infrun.c (keep_going): Also discard cleanups if inserting
6708         breakpoints fails.
6709
6710 2015-04-01  Pedro Alves  <palves@redhat.com>
6711
6712         * infrun.c (wait_for_inferior): Install the
6713         finish_thread_state_cleanup cleanup across the whole function, not
6714         just around handle_inferior_event.
6715
6716 2015-04-01  Pedro Alves  <palves@redhat.com>
6717
6718         * infrun.c (resume) <step past permanent breakpoint>: Use
6719         do_target_resume.
6720
6721 2015-04-01  Pedro Alves  <palves@redhat.com>
6722
6723         * linux-nat.c (linux_handle_extended_wait): Always call set_running.
6724
6725 2015-04-01  Pierre-Marie de Rodat  <derodat@adacore.com>
6726
6727         * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
6728
6729 2015-04-01  Pedro Alves  <palves@redhat.com>
6730
6731         * linux-thread-db.c (record_thread): Readd the thread to gdb's
6732         list if it was marked exited.
6733
6734 2015-04-01  H.J. Lu  <hongjiu.lu@intel.com>
6735
6736         * configure: Regenerated.
6737
6738 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
6739             Jan Kratochvil  <jan.kratochvil@redhat.com>
6740             Oleg Nesterov  <oleg@redhat.com>
6741
6742         PR corefiles/16092
6743         * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
6744         New enum identifying the various options of the coredump_filter
6745         file.
6746         (struct smaps_vmflags): New struct.
6747         (use_coredump_filter): New variable.
6748         (decode_vmflags): New function.
6749         (mapping_is_anonymous_p): Likewise.
6750         (dump_mapping_p): Likewise.
6751         (linux_find_memory_regions_full): New variables
6752         'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
6753         Removed variable 'modified'.  Read /proc/<PID>/smaps file; improve
6754         parsing of its information.  Implement memory mapping filtering
6755         based on its contents.
6756         (show_use_coredump_filter): New function.
6757         (_initialize_linux_tdep): New command 'set use-coredump-filter'.
6758         * NEWS: Mention the possibility of using the
6759         '/proc/PID/coredump_filter' file when generating a corefile.
6760         Mention new command 'set use-coredump-filter'.
6761
6762 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
6763
6764         * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
6765         read_memory_unsigned_integer.
6766
6767 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
6768
6769         * Makefile.in (ZLIB): New.
6770         (ZLIBINC): Likewise.
6771         (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
6772         (CLIBS): Add $(ZLIB).
6773         * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
6774         Add -lz to LIBS.
6775         * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
6776         * top.c (print_gdb_configuration): Remove --with-zlib and
6777         --without-zlib.
6778         * config.in: Regenerated.
6779         * configure: Likewise.
6780
6781 2015-03-31  Antoine Tremblay  <antoine.tremblay@ericsson.com>
6782
6783         * NEWS: Mention info os cpus support.
6784         * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
6785         (struct osdata_type): Add cpus entry, reorder the entries in
6786         alphabetical order.
6787
6788 2015-03-31  Matthias Klose  <doko@ubuntu.com>
6789
6790         * compile/compile.c (compile_to_object): Allow triplets with or
6791         without vendor set.
6792
6793 2015-03-30  Doug Evans  <dje@google.com>
6794
6795         PR c++/18141
6796         * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
6797         klass in VAR_DOMAIN.
6798
6799 2015-03-30  Gary Benson <gbenson@redhat.com>
6800
6801         * remote.c (remote_mourn_1): Remove function.  Update all callers
6802         to use remote_mourn.
6803         (extended_remote_mourn_1): Remove function.  Update all callers
6804         to use extended_remote_mourn.
6805         (extended_remote_attach_1): Remove function.  Update all callers
6806         to use extended_remote_attach.
6807
6808 2015-03-28  James Bowman  <james.bowman@ftdichip.com>
6809
6810         * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
6811         (HFILES_NO_SRCDIR): Add ft32-tdep.h.
6812         (ALLDEPFILES): Add ft32-tdep.c.
6813         * configure.tgt: Add FT32 entry.
6814         * ft32-tdep.c: New file, FT32 target-dependent code.
6815         * ft32-tdep.h: New file, FT32 target-dependent code.
6816
6817 2015-03-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
6818
6819         Revert:
6820         2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
6821         Code cleanup.
6822         * printcmd.c (print_command_1): Move expr variable scope.
6823
6824 2015-03-27  Joel Brobecker  <brobecker@adacore.com>
6825
6826         * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
6827
6828 2015-03-27  Andrzej Kaczmarek  <andrzej.kaczmarek@tieto.com>
6829
6830         * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
6831         sections.
6832
6833 2015-03-26  Joel Brobecker  <brobecker@adacore.com>
6834
6835         * dtrace-probe.c (dtrace_process_dof_probe): Contain any
6836         exception raised while parsing the probe arguments.
6837         Force parsing to be done using the C language parser.
6838         * expression.h (parse_expression_with_language): Declare.
6839         * parse.c (parse_expression_with_language): New function.
6840
6841 2015-03-26  Jon Turney  <jon.turney@dronecode.org.uk>
6842
6843         * MAINTAINERS (Write After Approval): Add "Jon Turney".
6844
6845 2015-03-26  Andy Wingo  <wingo@igalia.com>
6846
6847         PR symtab/18148
6848         * dwarf2read.c (struct partial_die_info): Add has_const_value
6849         member.
6850         (add_partial_symbol): Don't punt on symbols that have const_value
6851         attributes.
6852         (read_partial_die): Detect DW_AT_const_value.
6853
6854 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
6855
6856         Code cleanup.
6857         * printcmd.c (print_command_1): Move expr variable scope.
6858
6859 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
6860
6861         Code cleanup.
6862         * printcmd.c (validate_format): Make the parameter cmdname const.
6863
6864 2015-03-26  Don Breazeal  <donb@codesourcery.com>
6865
6866         * remote.c (_initialize_remote): Update comment.
6867
6868 2015-03-26  Pedro Alves  <palves@redhat.com>
6869             Jon TURNEY  <jon.turney@dronecode.org.uk>
6870
6871         * coffread.c (coff_symfile_read): When constructing the name of an
6872         import stub symbol from import symbol for amd64, only skip the
6873         char after _imp_ if the target is underscored (like i386) and the
6874         char is indeed the target's leading char.
6875
6876 2015-03-25  Pedro Alves  <palves@redhat.com>
6877
6878         * target.h <to_async>: Replace 'callback' and 'context' parameters
6879         with boolean 'enable' parameter.
6880         (target_async): Replace CALLBACK and CONTEXT parameters with
6881         boolean ENABLE parameter.
6882         * inf-loop.c (inferior_event_handler): Adjust.
6883         * linux-nat.c (linux_nat_attach, linux_nat_resume)
6884         (linux_nat_resume): Adjust.
6885         (async_client_callback, async_client_context): Delete.
6886         (handle_target_event): Call inferior_event_handler directly.
6887         (linux_nat_async): Replace 'callback' and 'context' parameters
6888         with boolean 'enable' parameter.  Adjust.  Remove references to
6889         async_client_callback and async_client_context.
6890         (linux_nat_close): Adjust.
6891         * record-btrace.c (record_btrace_async): Replace 'callback' and
6892         'context' parameters with boolean 'enable' parameter.  Adjust.
6893         (record_btrace_resume): Adjust.
6894         * record-full.c (record_full_async): Replace 'callback' and
6895         'context' parameters with boolean 'enable' parameter.  Adjust.
6896         (record_full_resume, record_full_core_resume): Adjust.
6897         * remote.c (struct remote_state) <async_client_callback,
6898         async_client_context>: Delete fields.
6899         (remote_start_remote, extended_remote_attach_1, remote_resume)
6900         (extended_remote_create_inferior): Adjust.
6901         (remote_async_serial_handler): Call inferior_event_handler
6902         directly.
6903         (remote_async): Replace 'callback' and 'context' parameters with
6904         boolean 'enable' parameter.  Adjust.
6905         * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
6906         Adjust.
6907         * target-delegates.c: Regenerate.
6908
6909 2015-03-25  Gary Benson <gbenson@redhat.com>
6910             Pedro Alves  <palves@redhat.com>
6911
6912         * target.c (fileio_ft_t): New typedef, define object vector.
6913         (fileio_fhandles): New static variable.
6914         (is_closed_fileio_fh): New macro.
6915         (lowest_closed_fd): New static variable.
6916         (acquire_fileio_fd): New function.
6917         (release_fileio_fd): Likewise.
6918         (fileio_fd_to_fh): New macro.
6919         (target_fileio_open): Wrap the file descriptor on success.
6920         (target_fileio_pwrite): Updated to use wrapped file descriptor.
6921         (target_fileio_pread): Likewise.
6922         (target_fileio_close): Likewise.
6923
6924 2015-03-24  Pedro Alves  <palves@redhat.com>
6925
6926         * thread.c (thread_apply_all_command): Take exited threads into
6927         account.
6928
6929 2015-03-24  Pedro Alves  <palves@redhat.com>
6930
6931         * infrun.c (resume, proceed): Mention
6932         switch_back_to_stepped_thread, not switch_back_to_stepping.
6933
6934 2015-03-24  Pedro Alves  <palves@redhat.com>
6935
6936         * infrun.c (user_visible_resume_ptid): Rewrite going from
6937         most-locked to unlocked instead of the opposite.  Move comment ...
6938         * infrun.h (user_visible_resume_ptid): ... here.
6939
6940 2015-03-24  Pedro Alves  <palves@redhat.com>
6941
6942         * linux-nat.c (linux_nat_resume): Output debug logs before trying
6943         to resume the event lwp.  Use the lwp's ptid instead of the passed
6944         in (maybe wildcard) ptid.
6945         (stop_wait_callback): Tweak debug log output.
6946         (check_stopped_by_breakpoint): Tweak debug log output.  Also dump
6947         TRAP_TRACE.
6948         (linux_nat_filter_event): In debug output, distinguish a
6949         resume_stop SIGSTOP from a delayed SIGSTOP.  Output debug logs
6950         before trying to resume the lwp.
6951
6952 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
6953
6954         * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
6955         pointer indirection.
6956         * gdbtypes.c (get_dyn_prop): Adjust, following change above.
6957         (add_dyn_prop, copy_dynamic_prop_list): Likewise.
6958
6959 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
6960
6961         * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
6962         Renames DYN_ATTR_DATA_LOCATION.
6963         (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
6964         DYN_ATTR_DATA_LOCATION.
6965         * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
6966         instead of DYN_ATTR_DATA_LOCATION.
6967
6968 2015-03-24  Pedro Alves  <palves@redhat.com>
6969
6970         * breakpoint.c (until_break_command): Adjust call to proceed.
6971         * gdbthread.h (struct thread_control_state) <stepping_command>:
6972         New field.
6973         * infcall.c (run_inferior_call): Adjust call to proceed.
6974         * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
6975         Adjust calls to proceed.
6976         (set_step_frame): Set the current thread's step_start_function
6977         here.
6978         (step_once): Adjust calls to proceed.
6979         (jump_command, signal_command, until_next_command)
6980         (finish_backward, finish_forward, proceed_after_attach_callback)
6981         (attach_command_post_wait): Adjust calls to proceed.
6982         * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
6983         (do_target_resume): New function, factored out from ...
6984         (resume): ... here.  Remove 'step' parameter.  Instead, check
6985         currently_stepping to determine whether the thread should be
6986         single-stepped.
6987         (proceed): Remove 'step' parameter and don't set the thread's
6988         step_start_function here.  Adjust call to 'resume'.
6989         (handle_inferior_event): Adjust calls to 'resume'.
6990         (switch_back_to_stepped_thread): Use do_target_resume instead of
6991         'resume'.
6992         (keep_going): Adjust calls to 'resume'.
6993         * infrun.h (proceed): Remove 'step' parameter.
6994         (resume): Likewise.
6995         * windows-nat.c (do_initial_windows_stuff): Adjust call to
6996         'resume'.
6997         * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
6998
6999 2015-03-24  Pedro Alves  <palves@redhat.com>
7000
7001         * gdbthread.h (struct thread_control_state) <stepping_command>:
7002         New field.
7003         * infcmd.c (step_once): Pass step=1 to clear_proceed_status.  Set
7004         the thread's stepping_command field.
7005         * infrun.c (resume): Check the thread's stepping_command flag to
7006         determine which threads should be resumed.  Rename 'entry_step'
7007         local to user_step.
7008         (clear_proceed_status_thread): Clear 'stepping_command'.
7009         (schedlock_applies): Change parameter type to struct thread_info
7010         pointer.  Adjust.
7011         (find_thread_needs_step_over): Remove 'step' parameter.  Adjust.
7012         (switch_back_to_stepped_thread): Adjust calls to
7013         'schedlock_applies'.
7014         (_initialize_infrun): Adjust "set scheduler-locking step" help.
7015
7016 2015-03-24  Pedro Alves  <palves@redhat.com>
7017
7018         * infrun.c (step_start_function): Delete and ...
7019         * gdbthread.h (struct thread_control_state) <step_start_function>:
7020         ... now a field here.
7021         * infrun.c (clear_proceed_status_thread): Clear the thread's
7022         step_start_function.
7023         (proceed, process_event_stop_test, print_stop_event): Adjust.
7024
7025 2015-03-24  Pedro Alves  <palves@redhat.com>
7026
7027         * infrun.c (proceed): No longer handle negative step.
7028
7029 2015-03-24  Gary Benson  <gbenson@redhat.com>
7030
7031         * nat/x86-linux.h (x86_linux_new_thread): New declaration.
7032         (x86_linux_prepare_to_resume): Likewise.
7033         * x86-linux-nat.c (x86_linux_new_thread):
7034         Moved to nat/x86-linux.c.
7035         (x86_linux_prepare_to_resume): Likewise.
7036         * nat/x86-linux.c (x86_linux_new_thread): New function.
7037         (x86_linux_prepare_to_resume): Likewise.
7038
7039 2015-03-24  Gary Benson  <gbenson@redhat.com>
7040
7041         * nat/x86-linux-dregs.h: New file.
7042         * nat/x86-linux-dregs.c: Likewise.
7043         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
7044         (x86-linux-dregs.o): New rule.
7045         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
7046         * config/i386/linux64.mh (NATDEPFILES): Likewise.
7047         * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
7048         (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
7049         (x86_linux_dr_get): Likewise.
7050         (x86_linux_dr_set): Likewise.
7051         (x86_linux_dr_get_addr): Likewise.
7052         (x86_linux_dr_get_control): Likewise.
7053         (x86_linux_dr_get_status): Likewise.
7054         (update_debug_registers_callback): Likewise.
7055         (x86_linux_dr_set_control): Likewise.
7056         (x86_linux_dr_set_addr): Likewise.
7057         (x86_linux_update_debug_registers): Likewise.
7058
7059 2015-03-24  Gary Benson  <gbenson@redhat.com>
7060
7061         * x86-linux-nat.c (x86_linux_update_debug_registers):
7062         New function, factored out from...
7063         (x86_linux_prepare_to_resume): ...this.
7064
7065 2015-03-24  Gary Benson  <gbenson@redhat.com>
7066
7067         * x86-linux-nat.c (x86_linux_dr_get): Update comments.
7068         (x86_linux_dr_set): Likewise.
7069         (x86_linux_dr_get_addr): Likewise.
7070         (x86_linux_dr_get_control): Likewise.
7071         (x86_linux_dr_get_status): Likewise.
7072         (update_debug_registers_callback): Likewise.
7073         (x86_linux_dr_set_control): Likewise.
7074         (x86_linux_dr_set_addr): Likewise.
7075         (x86_linux_prepare_to_resume): Likewise.
7076         (x86_linux_new_thread): Likewise.
7077
7078 2015-03-24  Gary Benson  <gbenson@redhat.com>
7079
7080         * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
7081         (x86_linux_new_thread): Rename argument.
7082
7083 2015-03-24  Gary Benson  <gbenson@redhat.com>
7084
7085         * nat/x86-linux.h: New file.
7086         * nat/x86-linux.c: Likewise.
7087         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
7088         (x86-linux.o): New rule.
7089         * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
7090         * config/i386/linux64.mh (NATDEPFILES): Likewise.
7091         * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
7092         (lwp_set_arch_private_info): New declaration.
7093         (lwp_arch_private_info): Likewise.
7094         * linux-nat.c (lwp_set_arch_private_info): New function.
7095         (lwp_arch_private_info): Likewise.
7096         * x86-linux-nat.c: Include nat/x86-linux.h.
7097         (arch_lwp_info): Removed structure.
7098         (update_debug_registers_callback):
7099         Use lwp_set_debug_registers_changed.
7100         (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
7101         and lwp_set_debug_registers_changed.
7102         (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
7103
7104 2015-03-24  Gary Benson  <gbenson@redhat.com>
7105
7106         * nat/linux-nat.h (ptid_of_lwp): New declaration.
7107         (lwp_is_stopped): Likewise.
7108         (lwp_stop_reason): Likewise.
7109         * linux-nat.c (ptid_of_lwp): New function.
7110         (lwp_is_stopped): Likewise.
7111         (lwp_is_stopped_by_watchpoint): Likewise.
7112         * x86-linux-nat.c (update_debug_registers_callback):
7113         Use lwp_is_stopped.
7114         (x86_linux_prepare_to_resume): Use ptid_of_lwp and
7115         lwp_stop_reason.
7116
7117 2015-03-24  Gary Benson  <gbenson@redhat.com>
7118
7119         * linux-nat.h (linux_stop_lwp): Move declaration to...
7120         * nat/linux-nat.h (linux_stop_lwp): New declaration.
7121
7122 2015-03-24  Gary Benson  <gbenson@redhat.com>
7123
7124         * linux-nat.h: Include nat/linux-nat.h.
7125         (iterate_over_lwps): Move declaration to nat/linux-nat.h.
7126         * nat/linux-nat.h (struct lwp_info): New forward declaration.
7127         (iterate_over_lwps_ftype): New typedef.
7128         (iterate_over_lwps): New declaration.
7129         * linux-nat.h (iterate_over_lwps): Update comment.  Use
7130         iterate_over_lwps_ftype.  Update callback return value check.
7131
7132 2015-03-24  Gary Benson  <gbenson@redhat.com>
7133
7134         * x86-nat.h (x86_debug_reg_state): Move declaration to...
7135         * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
7136
7137 2015-03-24  Gary Benson  <gbenson@redhat.com>
7138
7139         * nat/linux-nat.h (current_lwp_ptid): New declaration.
7140         * linux-nat.c (current_lwp_ptid): New function.
7141         * x86-linux-nat.c: Include nat/linux-nat.h.
7142         (x86_linux_dr_get_addr): Use current_lwp_ptid.
7143         (x86_linux_dr_get_control): Likewise.
7144         (x86_linux_dr_get_status): Likewise.
7145         (x86_linux_dr_set_control): Likewise.
7146         (x86_linux_dr_set_addr): Likewise.
7147
7148 2015-03-24  Antoine Tremblay  <antoine.tremblay@ericsson.com>
7149
7150         PR breakpoints/16466
7151         * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
7152
7153 2015-03-23  Joel Brobecker  <brobecker@adacore.com>
7154
7155         * ser-mingw.c (ser_windows_setparity): Fix indentation.
7156         * ser-unix.c (hardwire_setparity): Likewise.
7157
7158 2015-03-23  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
7159
7160         * NEWS: Mention set/show serial parity command.
7161         * monitor.c (monitor_open): Call serial_setparity.
7162         * remote.c (remote_open_1): Likewise.
7163         * ser-base.c (ser_base_serparity): New function.
7164         * ser-base.h (ser_base_setparity): Add  declaration.
7165         * ser-go32.c (dos_ops): Set "setparity" field.
7166         * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
7167         state.Parity.
7168         (ser_windows_setparity): New function.
7169         (hardwire_ops): Add ser_windows_setparity.
7170         (tty_ops): Add NULL for setparity field.
7171         (pipe_ops): Add ser_base_setparity.
7172         (tcp_ops): Likewise.
7173         * ser-pipe.c (pipe_ops): Likewise.
7174         * ser-tcp.c (tcp_ops): Likewise.
7175         * ser-unix.c (hardwire_setparity): Add declaration.
7176         (hardwire_raw): Don't reset PARENB flag.
7177         (hardwire_setparity): New function.
7178         (hardwire_ops): Add hardwire_setparity.
7179         * serial.c (serial_setparity): New function.
7180         (serial_parity): New global.
7181         (parity_none, parity_odd, parity_even, parity_enums, parity):
7182         New static globals.
7183         (set_parity): New function.
7184         (_initialize_serial): Add set/show serial parity commands.
7185         * serial.h (GDBPARITY_NONE): Define.
7186         (GDBPARITY_ODD): Define.
7187         (GDBPARITY_EVEN): Define.
7188         (serial_setparity) Add declaration.
7189         (struct serial_ops): Add setparity field.
7190         * target.h (serial_parity): Add declaration.
7191
7192 2015-03-23  Keith Seitz  <keiths@redhat.com>
7193
7194         * linespec.c (linespec_lexer_lex_keyword): Update comment.
7195
7196 2015-03-23  Keith Seitz  <keiths@redhat.com>
7197
7198         * breakpoint.c (parse_breakpoint_sals): Use
7199         linespec_lexer_lex_keyword to ascertain if the user specified
7200         a NULL location.
7201         * linespec.c [IF_KEYWORD_INDEX]: Define.
7202         (linespec_lexer_lex_keyword): Export.
7203         (struct ls_parser) <keyword_ok>: Remove.
7204         A keyword is only a keyword if not followed by another keyword.
7205         (linespec_lexer_lex_one): Remove keyword_ok handling.
7206         Add comment explaining why the parsing stream is not advanced
7207         when a keyword is seen.
7208         (parse_linespec): Remove parser->keyword_ok.
7209         * linespec.h (linespec_lexer_lex_keyword): Add declaration.
7210
7211 2015-03-23  Keith Seitz  <keiths@redhat.com>
7212
7213         PR gdb/18021
7214         * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
7215         if we find a static method with DW_AT_vtable_elem_location.
7216
7217 2015-03-21  Eli Zaretskii  <eliz@gnu.org>
7218
7219         * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
7220         before the second loop, to avoid undefined behavior.  Reported by
7221         Anton Blanchard <anton@samba.org>.
7222
7223 2015-03-20  Keven Boell  <keven.boell@intel.com>
7224
7225         * gdbtypes.c (resolve_dynamic_type_internal): Adapt
7226         data_location usage to linked list.
7227         (resolve_dynamic_type_internal): Adapt data_location to
7228         linked list.
7229         (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
7230         (copy_type_recursive, copy_type): Add copy of linked list.
7231         * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
7232         (struct dynamic_prop_list): New struct.
7233         * dwarf2read.c (set_die_type): Set data_location data.
7234
7235 2015-03-20  Pedro Alves  <palves@redhat.com>
7236
7237         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
7238         inner block and make it const.
7239         * machoread.c (get_archive_prefix_len): Make "lparen" const.
7240
7241 2015-03-20  Pedro Alves  <palves@redhat.com>
7242
7243         * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
7244         * breakpoint.h (set_breakpoint_condition): Update declaration.
7245
7246 2015-03-20  Pedro Alves  <palves@redhat.com>
7247
7248         * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
7249
7250 2015-03-20  Pedro Alves  <palves@redhat.com>
7251
7252         * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
7253
7254 2015-03-20  Pedro Alves  <palves@redhat.com>
7255
7256         * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
7257
7258 2015-03-20  Pedro Alves  <palves@redhat.com>
7259
7260         * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
7261         (nto_init_solib_absolute_prefix): Likewise.
7262
7263 2015-03-20  Pedro Alves  <palves@redhat.com>
7264
7265         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
7266         * spu-tdep.c (spu_gdbarch_init): Make "name" const.
7267
7268 2015-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
7269
7270         * config/djgpp/README: Remove gdb.hp.
7271
7272 2015-03-20  Yao Qi  <yao.qi@linaro.org>
7273
7274         * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
7275         set_gdbarch_cannot_step_breakpoint.
7276
7277 2015-03-19  Pedro Alves  <palves@redhat.com>
7278
7279         * linux-nat.c (linux_resume_one_lwp): Rename to ...
7280         (linux_resume_one_lwp_throw): ... this.  Don't handle ESRCH here,
7281         instead call perror_with_name.
7282         (check_ptrace_stopped_lwp_gone): New function.
7283         (linux_resume_one_lwp): Reimplement as wrapper around
7284         linux_resume_one_lwp_throw that swallows errors if the LWP is
7285         gone.
7286         (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
7287         swallows errors if the LWP is gone.  Use
7288         linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
7289
7290 2015-03-19  Pedro Alves  <palves@redhat.com>
7291
7292         * linux-nat.c (status_callback): Return early if the LWP has no
7293         status pending.
7294
7295 2015-03-19  Pedro Alves  <palves@redhat.com>
7296
7297         * linux-nat.c (select_event_lwp_callback): Update comment to no
7298         longer mention SIGTRAP.
7299
7300 2015-03-18  Tristan Gingold  <gingold@adacore.com>
7301
7302         * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
7303         redirection code to ...
7304         (amd64_windows_frame_decode_insns): ... Here.  Fix in prologue
7305         checks.  Fix SAVE_NONVOL operations.  Add debug code and comments.
7306
7307 2015-03-18  Gary Benson <gbenson@redhat.com>
7308
7309         (remote_protocol_features): Remove the "vFile:fstat" feature.
7310         (remote_hostio_fstat): Probe for "vFile:fstat" support.
7311
7312 2015-03-11  Yao Qi  <yao.qi@linaro.org>
7313
7314         PR tdep/18107
7315         * aarch64-linux-tdep.c: Include xml-syscall.h
7316         (aarch64_linux_get_syscall_number): New function.
7317         (aarch64_linux_init_abi): Call
7318         set_gdbarch_get_syscall_number.
7319         * syscalls/aarch64-linux.xml: New file.
7320
7321 2015-03-17  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
7322
7323         * ser-base.h (ser_base_setstopbits): Change second argument name
7324         from "rate" to "num".
7325
7326 2015-03-17  Gary Benson <gbenson@redhat.com>
7327             Luke Allardyce <lukeallardyce@gmail.com>
7328
7329         PR gdb/18131
7330         * common/common-remote-fileio.h (sys/stat.h): New include.
7331         (stuct stat): Remove forward declaration.
7332
7333 2015-03-16  John Baldwin  <jhb@FreeBSD.org>
7334
7335         * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
7336         before writing core register notes.
7337
7338 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
7339             Pedro Alves  <palves@redhat.com>
7340
7341         * gdb_curses.h (tgetnum): Mark with EXTERN_C.
7342         * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
7343         (tgoto): Wrap with extern "C".
7344
7345 2015-03-16  Pedro Alves  <palves@redhat.com>
7346             Yuanhui Zhang  <asmwarrior@gmail.com>
7347
7348         * stub-termcap.c (tputs): Change prototype.
7349
7350 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
7351             Pedro Alves  <palves@redhat.com>
7352
7353         * windows-nat.c (struct thread_info_struct): Rename to ...
7354         (struct windows_thread_info_struct): ... this.
7355         (thread_info): Rename to ...
7356         (windows_thread_info): ... this.
7357         All users updated.
7358
7359 2015-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
7360             Pedro Alves  <palves@redhat.com>
7361
7362         * NEWS: New Removed targets and native configurations.
7363
7364 2015-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7365
7366         Remove HPUX.
7367         * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
7368         (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
7369         (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
7370         ia64-hpux-tdep.h, solib-ia64-hpux.h.
7371         (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
7372         ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
7373         * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
7374         hppa-hpux-tdep.c.
7375         * config/ia64/hpux.mh: Remove file.
7376         * config/pa/hpux.mh: Remove file.
7377         * configure: Rebuilt.
7378         * configure.ac (dlgetmodinfo, somread.o): Remove.
7379         * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
7380         (ia64-*-hpux*): Remove its float format exception.
7381         * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
7382         * hppa-hpux-nat.c: Remove file.
7383         * hppa-hpux-tdep.c: Remove file.
7384         * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
7385         Move them here from hppa-tdep.h
7386         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
7387         (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
7388         * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
7389         Move them to hppa-tdep.c.
7390         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
7391         declarations.
7392         * ia64-hpux-nat.c: Remove file.
7393         * ia64-hpux-tdep.c: Remove file.
7394         * ia64-hpux-tdep.h: Remove file.
7395         * inf-ttrace.c: Remove file.
7396         * inf-ttrace.h: Remove file.
7397         * solib-ia64-hpux.c: Remove file.
7398         * solib-ia64-hpux.h: Remove file.
7399         * solib-pa64.c: Remove file.
7400         * solib-pa64.h: Remove file.
7401         * solib-som.c: Remove file.
7402         * solib-som.h: Remove file.
7403         * somread.c: Remove file.
7404
7405 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
7406
7407         * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
7408         * config.in: Regenerate.
7409         * configure: Regenerate.
7410         * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
7411         define.
7412         (fbsd_find_memory_regions): Use kinfo_getvmmap to
7413         enumerate memory regions if present.
7414
7415 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
7416
7417         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
7418         * i386fbsd-tdep.c: Fix style in various gdb_static_assert
7419         expressions.
7420         (i386fbsd_sigtramp_p): Likewise.
7421
7422 2015-03-12  John Baldwin  <jhb@FreeBSD.org>
7423
7424         * MAINTAINERS (Write After Approval): Add John Baldwin.
7425
7426 2015-03-12  Gary Benson <gbenson@redhat.com>
7427
7428         * solib.c (_initialize_solib): Make "set/show sysroot" use
7429         add_setshow_optional_filename_cmd so it can be restored to
7430         empty after being set.
7431
7432 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
7433
7434         * Makefile.in (SFILES): New source break-catch-syscall.c.
7435         (COMMON_OBS): New object break-catch-syscall.o.
7436         * break-catch-syscall.c: New file.
7437         * breakpoint.c: Remove inclusion of "xml-syscall.h".
7438         (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
7439         (struct syscall_catchpoint): Likewise.
7440         (dtor_catch_syscall): Likewise.
7441         (catch_syscall_inferior_data): Likewise.
7442         (struct catch_syscall_inferior_data): Likewise.
7443         (get_catch_syscall_inferior_data): Likewise.
7444         (catch_syscall_inferior_data_cleanup): Likewise.
7445         (insert_catch_syscall): Likewise.
7446         (remove_catch_syscall): Likewise.
7447         (breakpoint_hit_catch_syscall): Likewise.
7448         (print_it_catch_syscall): Likewise.
7449         (print_one_catch_syscall): Likewise.
7450         (print_mention_catch_syscall): Likewise.
7451         (print_recreate_catch_syscall): Likewise.
7452         (catch_syscall_breakpoint_ops): Likewise.
7453         (syscall_catchpoint_p): Likewise.
7454         (create_syscall_event_catchpoint): Likewise.
7455         (catch_syscall_split_args): Likewise.
7456         (catch_syscall_command_1): Likewise.
7457         (is_syscall_catchpoint_enabled): Likewise.
7458         (catch_syscall_enabled): Likewise.
7459         (catching_syscall_number): Likewise.
7460         (catch_syscall_completer): Likewise.
7461         (clear_syscall_counts): Likewise.
7462         (initialize_breakpoint_ops): Move initialization of syscall
7463         catchpoints to break-catch-syscall.c.
7464         (_initialize_breakpoint): Move code related to syscall catchpoints
7465         to break-catch-syscall.c.
7466
7467 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
7468
7469         * breakpoint.c (breakpoint_find_if): New function.
7470         * breakpoint.h (breakpoint_find_if): New prototype.
7471
7472 2015-03-11  Gary Benson <gbenson@redhat.com>
7473
7474         * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
7475         * remote-fileio.c (remote_fileio_to_host_uint): New function.
7476         (remote_fileio_to_host_ulong): Likewise.
7477         (remote_fileio_to_host_mode): Likewise.
7478         (remote_fileio_to_host_time): Likewise.
7479         (remote_fileio_to_host_stat): Likewise.
7480         * remote.c (PACKET_vFile_fstat): New enum value.
7481         (remote_protocol_features): Register the "vFile:fstat" feature.
7482         (remote_hostio_fstat): New function.
7483         (remote_bfd_iovec_stat): Use the above.
7484         (_initialize_remote): Register new "set/show remote
7485         hostio-fstat-packet" command.
7486         * symfile.c (separate_debug_file_exists): Update comment.
7487         * NEWS: Announce new vFile:fstat packet.
7488
7489 2015-03-11  Gary Benson <gbenson@redhat.com>
7490
7491         * common/common-remote-fileio.h: New file.
7492         * common/common-remote-fileio.c: Likewise.
7493         * Makefile.in (SFILES): Add common/common-remote-fileio.c.
7494         (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
7495         (COMMON_OBS): Add common-remote-fileio.o.
7496         (common-remote-fileio.o): New rule.
7497         * remote-fileio.h (common-remote-fileio.h): New include.
7498         * remote-fileio.c (gdb/fileio.h): Do not include.
7499         (remote_fileio_to_be): Moved to common-remote-fileio.h.
7500         (remote_fileio_to_fio_uint): Likewise.
7501         (remote_fileio_to_fio_time): Likewise.
7502         (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
7503         (remote_fileio_to_fio_mode): Likewise.
7504         (remote_fileio_to_fio_ulong): Likewise.
7505         (remote_fileio_to_fio_stat): Likewise.
7506
7507 2015-03-11  Andy Wingo  <wingo@igalia.com>
7508
7509         * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
7510         we were checking the cached type, not the cached dynamic type.
7511
7512 2015-03-11  Andy Wingo  <wingo@igalia.com>
7513
7514         * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
7515         other strings, as these are on the GC'd heap, and will be
7516         collected along with the smob.
7517
7518 2015-03-11  Andy Wingo  <wingo@igalia.com>
7519
7520         * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
7521         (objfile_functions): Bind gdbscm_objfile_progspace to
7522         objfile-progspace.
7523         * guile/lib/gdb.scm: Add objfile-progspace to exports.
7524
7525 2015-03-11  Andy Wingo  <wingo@igalia.com>
7526
7527         * guile/guile.c (_initialize_guile): Disable automatic
7528         finalization, if Guile offers us that possibility.
7529         * guile/guile.c (call_initialize_gdb_module):
7530         * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
7531         finalizers in appropriate places.
7532         * configure.ac (AC_TRY_LIBGUILE): Add a check for
7533         scm_set_automatic_finalization_enabled.
7534         * configure: Regenerated.
7535
7536 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7537
7538         * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
7539         SAL, if possible.
7540
7541 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7542
7543         * s390-linux-nat.c (struct arch_lwp_info): New.
7544         (s390_fix_watch_points): Rename to...
7545         (s390_prepare_to_resume): ...this.  Skip the PER info update
7546         unless the watch points have changed.
7547         (s390_refresh_per_info, s390_new_thread): New functions.
7548         (s390_insert_watchpoint): Call s390_refresh_per_info instead of
7549         s390_fix_watch_points.
7550         (s390_remove_watchpoint): Likewise.
7551         (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
7552         Register s390_prepare_to_resume.
7553
7554 2015-03-09  Pedro Alves  <palves@redhat.com>
7555
7556         Revert:
7557         2015-03-07  Pedro Alves  <palves@redhat.com>
7558         * common/gdb_socket.h: New file.
7559         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
7560         sys/socket.h.
7561         (net_open): Use union gdb_sockaddr_u.
7562
7563 2015-03-07  Pedro Alves  <palves@redhat.com>
7564
7565         * configure.ac (build_warnings): Move -Wmissing-prototypes
7566         -Wdeclaration-after-statement -Wmissing-parameter-type
7567         -Wold-style-declaration -Wold-style-definition to the C-specific
7568         set.
7569         * configure: Regenerate.
7570
7571 2015-03-07  Pedro Alves  <palves@redhat.com>
7572
7573         * common/gdb_socket.h: New file.
7574         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
7575         sys/socket.h.
7576         (net_open): Use union gdb_sockaddr_u.
7577
7578 2015-03-07  Pedro Alves  <palves@redhat.com>
7579
7580         * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
7581         (exceptions_state_mc_action_iter)
7582         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
7583         Don't define.
7584         [__cplusplus] (try_scope_depth): New global.
7585         [__cplusplus] (exception_try_scope_entry)
7586         (exception_try_scope_exit, gdb_exception_sliced_copy)
7587         (exception_rethrow): New functions.
7588         (throw_exception): In C++ mode, throw
7589         gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
7590         gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
7591         (throw_it): In C++ mode, use try_scope_depth.
7592         * common/common-exceptions.h [!__cplusplus]
7593         (exceptions_state_mc_action_iter)
7594         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
7595         Don't declare.
7596         [__cplusplus] (exception_try_scope_entry)
7597         (exception_try_scope_exit, exception_rethrow): Declare.
7598         [__cplusplus] (struct exception_try_scope): New struct.
7599         [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
7600         C++ exceptions.
7601         (struct gdb_exception_RETURN_MASK_ALL)
7602         (struct gdb_exception_RETURN_MASK_ERROR)
7603         (struct gdb_exception_RETURN_MASK_QUIT): New types.
7604
7605 2015-03-07  Pedro Alves  <palves@redhat.com>
7606
7607         * main.c (handle_command_errors): Remove volatile qualifier from
7608         parameter.
7609
7610 2015-03-07  Pedro Alves  <palves@redhat.com>
7611
7612         * breakpoint.c (save_breakpoints): Adjust to avoid code between
7613         TRY and CATCH.
7614         * gdbtypes.c (safe_parse_type): Remove empty line.
7615         (types_deeply_equal):
7616         * guile/scm-frame.c (gdbscm_frame_name):
7617         * linux-thread-db.c (find_new_threads_once):
7618         * python/py-breakpoint.c (bppy_get_commands):
7619         * record-btrace.c (record_btrace_insert_breakpoint)
7620         (record_btrace_remove_breakpoint, record_btrace_start_replaying)
7621         (record_btrace_start_replaying): Adjust to avoid code between TRY
7622         and CATCH.
7623
7624 2015-03-07  Pedro Alves  <palves@redhat.com>
7625
7626         * common/common-exceptions.c (struct catcher) <exception>: No
7627         longer a pointer to volatile exception.  Now an exception value.
7628         <mask>: Delete field.
7629         (exceptions_state_mc_init): Remove all parameters.  Adjust.
7630         (exceptions_state_mc): No longer pop the catcher here.
7631         (exceptions_state_mc_catch): New function.
7632         (throw_exception): Adjust.
7633         * common/common-exceptions.h (exceptions_state_mc_init): Remove
7634         all parameters.
7635         (exceptions_state_mc_catch): Declare.
7636         (TRY_CATCH): Rename to ...
7637         (TRY): ... this.  Remove EXCEPTION and MASK parameters.
7638         (CATCH, END_CATCH): New.
7639         All callers adjusted.
7640
7641 2015-03-07  Tom Tromey  <tromey@redhat.com>
7642
7643         * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
7644
7645 2015-03-07  Pedro Alves  <palves@redhat.com>
7646
7647         * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
7648         (amd64_epilogue_frame_cache): Normal exception handling code.
7649         * break-catch-throw.c (check_status_exception_catchpoint)
7650         (re_set_exception_catchpoint): Ditto.
7651         * cli/cli-interp.c (safe_execute_command):
7652         * cli/cli-script.c (script_from_file): Ditto.
7653         * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
7654         Ditto.
7655         * compile/compile-object-run.c (compile_object_run): Ditto.
7656         * cp-abi.c (baseclass_offset): Ditto.
7657         * cp-valprint.c (cp_print_value): Ditto.
7658         * exceptions.c (catch_exceptions_with_msg):
7659         * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
7660         * frame.c (get_frame_address_in_block_if_available): Ditto.
7661         * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
7662         (i386_sigtramp_frame_cache): Ditto.
7663         * infcmd.c (post_create_inferior): Ditto.
7664         * linespec.c (parse_linespec, find_linespec_symbols):
7665         * p-valprint.c (pascal_object_print_value): Ditto.
7666         * parse.c (parse_expression_for_completion): Ditto.
7667         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
7668         * remote.c (remote_get_noisy_reply): Ditto.
7669         * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
7670         * solib-svr4.c (solib_svr4_r_map): Ditto.
7671
7672 2015-03-06  Gary Benson  <gbenson@redhat.com>
7673
7674         * common/common-utils.h (startswith): New inline function.
7675         All places where this logic was used updated to use the above.
7676
7677 2015-03-05  Pedro Alves  <palves@redhat.com>
7678
7679         PR gdb/18002
7680         * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
7681         after reading the breakpoint's shadow memory.
7682
7683 2015-03-05  Mark Kettenis  <kettenis@gnu.org>
7684
7685         * hppabsd-nat.c: Remove file.
7686         * hppaobsd-nat.c: New file.
7687         * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c.  Add
7688         hppaobsd-nat.c.
7689         * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
7690         hppaobsd-nat.o.
7691
7692 2015-03-04  Pedro Alves  <palves@redhat.com>
7693
7694         * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
7695         (target_decr_pc_after_break): Delete declaration.
7696         * target.c (default_target_decr_pc_after_break)
7697         (target_decr_pc_after_break): Delete.
7698         * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
7699         gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
7700         * linux-thread-db.c (check_event): Likewise.
7701         * infrun.c (adjust_pc_after_break): Likewise.
7702         * darwin-nat.c (cancel_breakpoint): Likewise.
7703         * aix-thread.c (aix_thread_wait): Likewise.
7704         * target-delegates.c: Regenerate.
7705
7706 2015-03-04  Pedro Alves  <palves@redhat.com>
7707
7708         * linux-nat.c (save_sigtrap): Check for breakpoints before
7709         checking watchpoints.
7710         (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
7711         breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
7712         (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
7713         a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
7714         (linux_nat_stopped_by_sw_breakpoint)
7715         (linux_nat_supports_stopped_by_sw_breakpoint)
7716         (linux_nat_stopped_by_hw_breakpoint)
7717         (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
7718         (linux_nat_wait_1): Don't re-increment the PC if relying on
7719         SIGTRAP's siginfo->si_code.
7720         (linux_nat_add_target): Install new target methods.
7721         * linux-thread-db.c (check_event): Don't account for breakpoint PC
7722         offset if the target already adjusted the PC.
7723         * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
7724         (GDB_ARCH_TRAP_BRKPT): New.
7725         (TRAP_HWBKPT): Define if not already defined.
7726
7727 2015-03-04  Pedro Alves  <palves@redhat.com>
7728
7729         * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
7730         * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
7731         Delete field.
7732         <stop_reason>: New field.
7733         (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
7734         (packet_set_cmd_state): New function.
7735         (remote_protocol_features): Register the "swbreak" and "hwbreak"
7736         features.
7737         (remote_query_supported): If not disabled with the corresponding
7738         "set remote foo-packet" command, report support for the swbreak
7739         and hwbreak features.
7740         (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
7741         field.
7742         <stop_reason>: New field.
7743         (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
7744         (remote_wait_as): Adjust.
7745         (remote_stopped_by_sw_breakpoint)
7746         (remote_supports_stopped_by_sw_breakpoint)
7747         (remote_stopped_by_hw_breakpoint)
7748         (remote_supports_stopped_by_hw_breakpoint): New functions.
7749         (remote_stopped_by_watchpoint): New function.
7750         (init_remote_ops): Install them.
7751         (_initialize_remote): Register new "set/show remote
7752         swbreak-feature-packet" and "set/show remote
7753         swbreak-feature-packet" commands.
7754
7755 2015-03-04  Pedro Alves  <palves@redhat.com>
7756
7757         * btrace.h: Include target/waitstatus.h.
7758         (struct btrace_thread_info) <stop_reason>: New field.
7759         * record-btrace.c (record_btrace_step_thread): Use
7760         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
7761         (record_btrace_decr_pc_after_break): Delete.
7762         (record_btrace_stopped_by_sw_breakpoint)
7763         (record_btrace_supports_stopped_by_sw_breakpoint)
7764         (record_btrace_stopped_by_hw_breakpoint)
7765         (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
7766         (init_record_btrace_ops): Install them.
7767         * record-full.c (record_full_hw_watchpoint): Delete and replace
7768         with ...
7769         (record_full_stop_reason): ... this throughout.
7770         (record_full_exec_insn): Adjust.
7771         (record_full_wait_1): Adjust.  No longer re-increment the PC.
7772         (record_full_wait_1): Adjust.  Use
7773         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
7774         (record_full_stopped_by_watchpoint): Adjust.
7775         (record_full_stopped_by_sw_breakpoint)
7776         (record_full_supports_stopped_by_sw_breakpoint)
7777         (record_full_supports_stopped_by_sw_breakpoint)
7778         (record_full_stopped_by_hw_breakpoint)
7779         (record_full_supports_stopped_by_hw_breakpoint): New functions.
7780         (init_record_full_ops, init_record_full_core_ops): Install them.
7781         * record.c (record_check_stopped_by_breakpoint): New function.
7782         * record.h: Include target/waitstatus.h.
7783         (record_check_stopped_by_breakpoint): New declaration.
7784
7785 2015-03-04  Pedro Alves  <palves@redhat.com>
7786
7787         enum lwp_stop_reason -> enum target_stop_reason
7788         * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
7789         (linux_nat_stopped_by_watchpoint, status_callback)
7790         (linux_nat_wait_1): Adjust.
7791         * linux-nat.h (enum lwp_stop_reason): Delete.
7792         (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
7793         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
7794         * target/waitstatus.h (enum target_stop_reason): New.
7795
7796 2015-03-04  Pedro Alves  <palves@redhat.com>
7797
7798         * breakpoint.c (need_moribund_for_location_type): New function.
7799         (bpstat_stop_status): Don't skipping checking moribund locations
7800         of breakpoint types which the target tell caused a stop.
7801         (program_breakpoint_here_p): New function, factored out from ...
7802         (bp_loc_is_permanent): ... this.
7803         (update_global_location_list): Don't create a moribund location if
7804         the target supports reporting stops of the type of the removed
7805         breakpoint.
7806         * breakpoint.h (program_breakpoint_here_p): New declaration.
7807         * infrun.c (adjust_pc_after_break): Return early if the target has
7808         already adjusted the PC.  Add comments.
7809         (handle_signal_stop): If nothing explains a signal, and the target
7810         tells us the stop was caused by a software breakpoint, check if
7811         there's a breakpoint instruction in the memory.  If so, adjust the
7812         PC before presenting the stop to the user.  Otherwise, ignore the
7813         trap.  If nothing explains a signal, and the target tells us the
7814         stop was caused by a hardware breakpoint, ignore the trap.
7815         * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
7816         to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
7817         to_supports_stopped_by_hw_breakpoint>: New fields.
7818         (target_stopped_by_sw_breakpoint)
7819         (target_supports_stopped_by_sw_breakpoint)
7820         (target_stopped_by_hw_breakpoint)
7821         (target_supports_stopped_by_hw_breakpoint): Define.
7822         * target-delegates.c: Regenerate.
7823
7824 2015-03-04  Pedro Alves  <palves@redhat.com>
7825
7826         * infrun.c (follow_fork_inferior): Use the whole of the
7827         inferior_ptid and pending_follow.related_pid ptids instead of
7828         building ptids from the process components.  Adjust verbose output
7829         to use target_pid_to_str.
7830         * linux-nat.c (linux_child_follow_fork): Use the whole of the
7831         inferior_ptid and pending_follow.related_pid ptids instead of
7832         building ptids from the process components.
7833
7834 2015-03-04  Mark Kettenis  <kettenis@gnu.org>
7835
7836         * inf-ptrace.c [PT_GET_PROCESS_STATE]
7837         (inf_ptrace_insert_fork_catchpoint): New function.
7838         (inf_ptrace_remove_fork_catchpoint): New function.
7839         (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
7840
7841 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7842
7843         * s390-linux-tdep.c (s390_register_name): Return empty string
7844         instead of NULL for registers that shouldn't be visible.
7845
7846 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7847
7848         * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
7849         XML file for 64-bit targets.
7850
7851 2015-03-03  Simon Marchi  <simon.marchi@ericsson.com>
7852
7853         * target.h (find_default_create_inferior): Remove declaration.
7854         (find_default_attach): Likewise.
7855
7856 2015-03-03  Pedro Alves  <palves@redhat.com>
7857
7858         * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
7859         Use ptid_get_pid to get the overall process id when resuming all
7860         threads.
7861
7862 2015-03-03  Pedro Alves  <palves@redhat.com>
7863
7864         * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
7865         the lwp field of ptid.  Pass the full ptid to get_thread_regcache.
7866         * inf-ptrace.c (get_ptrace_pid): New function.
7867         (inf_ptrace_resume): Use it.
7868         * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
7869         to the lower layer.
7870
7871 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
7872
7873         * nat/linux-btrace.c: Include sys/utsname.h.
7874         (linux_determine_kernel_ptr_bits): New.
7875         (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
7876         * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
7877         ptr_bits.
7878
7879 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
7880
7881         * btrace.c (ftrace_update_function): Treat return as tailcall for
7882         "_dl_runtime_resolve".
7883
7884 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
7885
7886         * btrace.h (btrace_function) <lbegin, lend>: Remove.
7887         * btrace.c (ftrace_debug): Do not print the line range.
7888         (ftrace_skip_file, ftrace_update_lines): Remove.
7889         (ftrace_new_function): Remove lbegin and lend initialization.
7890         (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
7891         * record-btrace.c (btrace_compute_src_line_range): New.
7892         (btrace_call_history_src_line): Call btrace_compute_src_line_range.
7893
7894 2015-03-02  Pedro Alves  <palves@redhat.com>
7895
7896         * infrun.c (follow_exec): Delete all threads of the process except
7897         the event thread.  Extended comments.
7898
7899 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
7900
7901         * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
7902
7903 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
7904
7905         * utils.h: Remove <stdbool.h> #include.
7906         (producer_is_gcc): Change return type to "int".
7907         * utils.c (producer_is_gcc): Change return type to int.
7908         Return 1 instead of true, and 0 instead of false.
7909         Adjust function documentation accordingly.
7910
7911 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7912
7913         * s390-linux-nat.c (have_regset_vxrs): New static variable.
7914         (s390_linux_fetch_inferior_registers): Handle vector registers, if
7915         present.
7916         (s390_linux_store_inferior_registers): Likewise.
7917         (s390_get_hwcap): Remove function.  Embed its logic...
7918         (s390_read_description): ...here.  Yield a target description with
7919         vector registers if applicable.
7920         * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
7921         "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
7922         "features/s390x-tevx-linux64.c".
7923         (struct gdbarch_tdep) <v0_full_regnum>: New field.
7924         (s390_dwarf_regmap): Add vector registers.  Remove bogus entries
7925         for "GNU/Linux-specific registers".
7926         (s390_dwarf_reg_r0l): New enum value.
7927         (s390_dwarf_reg_to_regnum): Support vector registers.
7928         (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
7929         of GPR lower halves.
7930         (regnum_is_vxr_full): New function.
7931         (s390_register_name): New function.
7932         (s390_pseudo_register_name): Handle v0-v15, which are composed of
7933         f0-f15 and v0l-v15l.
7934         (s390_pseudo_register_type): Likewise.
7935         (s390_pseudo_register_read): Likewise.
7936         (s390_pseudo_register_write): Likewise.
7937         (s390_value_from_register): Account for the fact that values are
7938         placed left-justified in vector registers.
7939         (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
7940         the vector reggroup and omit them from the general reggroup.
7941         (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
7942         (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
7943         (s390_iterate_over_regset_sections): Add iterations for the two
7944         new vector regsets.
7945         (s390_core_read_description): Yield a target description with
7946         vector registers if applicable.
7947         (s390_gdbarch_init): Handle target descriptions with vector
7948         registers.  Add "register_name" gdbarch method.
7949         (_initialize_s390_tdep): Call new tdesc initialization functions.
7950         * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
7951         (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
7952         (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
7953         (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
7954         (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
7955         (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
7956         (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
7957         (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
7958         (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
7959         (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
7960         (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
7961         (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
7962         (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
7963         (S390_NUM_REGS): Adjust value.
7964         (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
7965         (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
7966         (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
7967         * NEWS: Announce S/390 vector register support.
7968
7969 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7970
7971         * features/s390-tevx-linux64.xml: New file.
7972         * features/s390-vx-linux64.xml: New file.
7973         * features/s390-vx.xml: New file.
7974         * features/s390x-tevx-linux64.xml: New file.
7975         * features/s390x-vx-linux64.xml: New file.
7976         * features/Makefile (WHICH): Add s390-vx-linux64,
7977         s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
7978         (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
7979         (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
7980         macros.
7981         * features/s390-tevx-linux64.c: New generated file.
7982         * features/s390-vx-linux64.c: Likewise.
7983         * features/s390x-tevx-linux64.c: Likewise.
7984         * features/s390x-vx-linux64.c: Likewise.
7985         * regformats/s390-tevx-linux64.dat: Likewise.
7986         * regformats/s390-vx-linux64.dat: Likewise.
7987         * regformats/s390x-tevx-linux64.dat: Likewise.
7988         * regformats/s390x-vx-linux64.dat: Likewise.
7989
7990 2015-02-28  Doug Evans  <xdje42@gmail.com>
7991
7992         * symtab.h (struct symtab) <next>: Fix comment.
7993
7994 2015-02-27  Simon Marchi  <simon.marchi@ericsson.com>
7995
7996         * python/python.c (python_GdbModuleDef): Rename GdbMethods to
7997         python_GdbMethods.
7998
7999 2015-02-27  Pedro Alves  <palves@redhat.com>
8000
8001         * dtrace-probe.c (dtrace_probe_ops): Make extern.
8002
8003 2015-02-27  Pedro Alves  <palves@redhat.com>
8004
8005         * common/common-exceptions.h (exception_none): Declare.
8006         * common/common-exceptions.c (exception_none): Moved from
8007         exceptions.c.
8008         (exceptions_state_mc_init): Use exception_none.
8009         * exceptions.c (exception_none): Move to
8010         common/common-exceptions.c.
8011         * exceptions.h (exception_none): Move to
8012         common/common-exceptions.h.
8013
8014 2015-02-27  Pedro Alves  <palves@redhat.com>
8015
8016         * main.c (catch_command_errors, catch_command_errors_const):
8017         Remove 'mask' argument.  Adjust.
8018         (captured_main): Adjust callers.
8019
8020 2015-02-27  Pedro Alves  <palves@redhat.com>
8021
8022         * python/python-internal.h: Include "extension-priv.h".
8023
8024 2015-02-27  Pedro Alves  <palves@redhat.com>
8025
8026         * breakpoint.h (enum print_stop_action): Move further up in the
8027         file.
8028
8029 2015-02-27  Pedro Alves  <palves@redhat.com>
8030
8031         * gdbarch.sh: Include regcache.h.
8032         * gdbarch.h: Regenerate.
8033
8034 2015-02-27  Pedro Alves  <palves@redhat.com>
8035
8036         * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
8037         Remove duplicate const.
8038         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
8039         duplicate const.
8040
8041 2015-02-27  Pedro Alves  <palves@redhat.com>
8042
8043         * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
8044         * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
8045         * features/feature_to_c.sh: Tag the generated xml_builtin array
8046         with extern const in C++ mode.
8047
8048 2015-02-27  Tom Tromey  <tromey@redhat.com>
8049
8050         * minidebug.c (struct lzma_stream): Rename to ...
8051         (struct gdb_lzma_stream): ... this.
8052         (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
8053
8054 2015-02-27  Pedro Alves  <palves@redhat.com>
8055
8056         * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
8057         function.
8058         (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8059         (mi_cmd_stack_list_variables): Use it.
8060
8061 2015-02-27  Pedro Alves  <palves@redhat.com>
8062
8063         * x86-linux-nat.c (u_debugreg_offset): New function.
8064         (x86_linux_dr_get, x86_linux_dr_set): Use it.
8065
8066 2015-02-27  Pedro Alves  <palves@redhat.com>
8067
8068         * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
8069         declaration.
8070         Include break-common.h.
8071
8072 2015-02-27  Tom Tromey  <tromey@redhat.com>
8073             Pedro Alves <palves@redhat.com>
8074
8075         * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
8076         local used to iterate over enums.
8077         * completer.c (signal_completer): Likewise.
8078         * i386-tdep.c (i386_stap_parse_special_token): Likewise.
8079         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
8080         * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
8081         * tui/tui-layout.c (next_layout, prev_layout): Likewise.
8082         * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
8083         (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
8084         * tui-wingeneral.c (tui_refresh_all):  Likewise.
8085
8086 2015-02-27  Pedro Alves  <palves@redhat.com>
8087
8088         * target.h: Include "infrun.h".
8089
8090 2015-02-27  Pedro Alves  <palves@redhat.com>
8091
8092         * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
8093
8094 2015-02-27  Pedro Alves  <palves@redhat.com>
8095
8096         * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
8097         (IPA_SYM): Use it.
8098         * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
8099
8100 2015-02-27  Pedro Alves  <palves@redhat.com>
8101
8102         * cli-out.c (_rl_erase_entire_line): Move declaration out of
8103         cli_mld_erase_entire_line, and make it extern "C".
8104         * common/common-defs.h (EXTERN_C): New.
8105         * completer.c (_rl_completion_prefix_display_length)
8106         (_rl_print_completions_horizontally, QSFUNC): Move declarations
8107         out of gdb_display_match_list_1.
8108         (_rl_qsort_string_compare): Move declaration out of
8109         gdb_display_match_list_1, and make it extern "C".
8110         * defs.h (re_comp): Use EXTERN_C.
8111         * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
8112         and make it extern "C".
8113         (monstartup): Move declaration out of maintenance_set_profile_cmd,
8114         and make it extern "C".
8115         (main): Move declaration out of maintenance_set_profile_cmd.
8116         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
8117         EXTERN_C.
8118
8119 2015-02-27  Pedro Alves  <palves@redhat.com>
8120
8121         * python/python.c (GdbMethods): Rename to ...
8122         (python_GdbMethods): ... this and make extern.
8123         (GdbModuleDef): Rename to ...
8124         (python_GdbModuleDef): ... this and make extern.
8125
8126 2015-02-27  Pedro Alves  <palves@redhat.com>
8127
8128         * record-btrace.c (set_record_btrace_cmdlist)
8129         (show_record_btrace_cmdlist): Remove redefinitions.
8130
8131 2015-02-27  Tom Tromey  <tromey@redhat.com>
8132             Pedro Alves  <palves@redhat.com>
8133
8134         * dwarf2-frame.c (enum cfa_how_kind, struct
8135         dwarf2_frame_state_reg_info): Move out of struct
8136         dwarf2_frame_state.
8137         * dwarf2read.c (struct tu_stats): Move out of struct
8138         dwarf2_per_objfile.
8139         (struct file_entry): Move out of struct line_header.
8140         (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
8141         typedef_field_list): Move out of struct field_info.
8142         * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
8143         Move out of struct dynamic_prop.
8144         (union type_owner, union field_location, struct field, struct
8145         range_bounds, union type_specific): Move out of struct main_type.
8146         (struct fn_fieldlist, struct fn_field, struct typedef_field)
8147         (VOFFSET_STATIC): Move out of struct cplus_struct_type.
8148         (struct call_site_target, union call_site_parameter_u, struct
8149         call_site_parameter): Move out of struct call_site.
8150         * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
8151         m32c_prologue.
8152         (enum srcdest_kind): Move out of struct srcdest.
8153         * main.c (enum cmdarg_kind): Move out of struct cmdarg.
8154         * prologue-value.h (enum prologue_value_kind): Move out of struct
8155         prologue_value.
8156         * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
8157         gdbarch_tdep.
8158         * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
8159         out of struct field_info.
8160         * symfile.h (struct other_sections): Move out of struct
8161         section_addr_info.
8162         * symtab.c (struct symbol_cache_slot): Move out struct
8163         block_symbol_cache.
8164         * target-descriptions.c (enum tdesc_type_kind): Move out of
8165         typedef struct tdesc_type.
8166         * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
8167         struct tui_line_or_address.
8168         * value.c (enum internalvar_kind, union internalvar_data): Move
8169         out of struct internalvar.
8170         * xtensa-tdep.h (struct ctype_cache): Move out of struct
8171         gdbarch_tdep.
8172
8173 2015-02-27  Tom Tromey  <tromey@redhat.com>
8174             Pedro Alves  <palves@redhat.com>
8175
8176         Rename symbols whose names are reserved C++ keywords throughout.
8177
8178 2015-02-27  Pedro Alves  <palves@redhat.com>
8179
8180         * Makefile.in (COMPILER): New, get it from autoconf.
8181         (COMPILE.pre, CC_LD): Use COMPILER.
8182         (CXX): Get from autoconf instead.
8183         (CXX_FOR_TARGET): Default to g++ instead of gcc.
8184         * acinclude.m4: Include build-with-cxx.m4.
8185         * build-with-cxx.m4: New file.
8186         * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
8187         Disable -Werror by default if building in C++ mode.
8188         (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
8189         -Wno-narrowing in C++ mode.  Only enable -Wpointer-sign in C mode.
8190         Run supported-warning-flags tests with the C++ compiler.
8191         Save/restore CXXFLAGS too.
8192         * configure: Regenerate.
8193
8194 2015-02-27  Pedro Alves  <palves@redhat.com>
8195
8196         * libiberty.m4: New file.
8197         * acinclude.m4: Include libiberty.m4.
8198         * configure.ac: Call libiberty_INIT.
8199         * config.in, configure: Regenerate.
8200
8201 2015-02-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8202
8203         * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
8204         31-bit targets, but 64-bit targets as well.
8205         (s390_gnu_triplet_regexp): New function.
8206         (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
8207         64-bit targets as well.  Set the gnu_triplet_regexp gdbarch
8208         method.
8209
8210 2015-02-27  Jon TURNEY  <jon.turney@dronecode.org.uk>  (tiny patch)
8211
8212         * windows-nat.c (CONTEXT_DEBUGGER): Remove.
8213         (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS.  Incorporate flags
8214         from CONTEXT_DEBUGGER.
8215
8216 2015-02-26  Doug Evans  <dje@google.com>
8217
8218         * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
8219         CHECK_TYPEDEF.
8220         (set_type_vptr_fieldno): Ditto.
8221         (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
8222         * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
8223
8224 2015-02-26  Pedro Alves  <palves@redhat.com>
8225
8226         * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
8227         * complaints.c (vcomplaint): Pass argument FMT directly to
8228         printf-like functions instead of complaint->fmt.
8229         * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
8230         * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
8231         * compile/compile-loc2c.c (pushf, unary, binary): Add
8232         ATTRIBUTE_PRINTF.
8233         (do_compile_dwarf_expr_to_c): Pass string literal as format string
8234         to pushf.
8235         (BINARY): Pass string literal as format string to 'binary'.
8236         * compile/compile-object-load.c (link_callbacks_einfo): Add
8237         ATTRIBUTE_PRINTF.
8238         * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
8239
8240 2015-02-26  Pedro Alves  <palves@redhat.com>
8241
8242         * windows-termcap.c: Rename to ...
8243         * stub-termcap.c: ... this.  Adjust header line.
8244         * Makefile.in (SFILES): Refer to stub-termcap.c instead of
8245         windows-termcap.c.
8246         * configure: Regenerate.
8247         * configure.ac: Refer to stub-termcap.o instead of
8248         windows-termcap.o.
8249         * gdb_curses.h: Mention stub-termcap.c instead of
8250         windows-termcap.c.
8251
8252 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
8253
8254         * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
8255         (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
8256
8257 2015-02-26  Antoine Tremblay  <antoine.tremblay@ericsson.com>
8258
8259         * gdb/infcmd.c (print_return_value): use type_to_string to print type.
8260
8261 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
8262
8263         * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
8264         bfd_canonicalize_symtab.
8265
8266 2015-02-25  John Baldwin  <jhb@FreeBSD.org>
8267
8268         * amd64fbsd-nat.c: Include sys/user.h.
8269         (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
8270         instead of KERN_PS_STRINGS to locate the signal trampoline.
8271         * i386fbsd-nat.c: Include sys/user.h.
8272         (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
8273         instead of KERN_PS_STRINGS to locate the signal trampoline.
8274         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
8275         (amd64fbsd_sigtramp_p): New.
8276         (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
8277         longer set default values.
8278         (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
8279         * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
8280         (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
8281         (i386fbsd_freebsd4_sigtramp_start)
8282         (i386fbsd_freebsd4_sigtramp_middle)
8283         (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
8284         (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
8285         (i386fbsd_sigtramp_p): New.
8286         (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
8287         longer set default values.
8288         (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
8289
8290 2015-02-25  John Baldwin  <jhb@freebsd.org>
8291
8292         * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
8293         get_frame_register instead of frame_unwind_register_unsigned.
8294
8295 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
8296
8297         PR build/18033
8298         * compile/compile-c-support.c (c_compute_program): Change // comment.
8299         * compile/compile-object-load.c (setup_sections): Change // comment.
8300
8301 2015-02-26  Joel Brobecker  <brobecker@adacore.com>
8302
8303         PR build/18033:
8304         * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
8305
8306 2015-02-23  Pedro Alves  <palves@redhat.com>
8307
8308         * remote.c (skip_to_semicolon): New function.
8309         (remote_parse_stop_reply) <T stop reply>: Use it.  Don't
8310         special case the stop reasons that look like hex numbers
8311         upfront.  Instead handle real register numbers after matching
8312         all the known stop reasons.
8313
8314 2015-02-21  Doug Evans  <dje@google.com>
8315
8316         PR c++/17976, symtab/17821
8317         * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
8318         is_in_anonymous.  All callers updated.
8319         (find_symbol_in_baseclass): Ditto.
8320         (cp_lookup_nested_symbol_1): Ditto.  Don't search all static blocks
8321         for symbols in an anonymous namespace.
8322         * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
8323         DW_AT_name directly.
8324         (dwarf2_name): Convert missing namespace name to
8325         CP_ANONYMOUS_NAMESPACE_STR.
8326
8327 2015-02-20  Pedro Alves  <palves@redhat.com>
8328
8329         * linux-nat.c (linux_handle_extended_wait): Call
8330         thread_db_notice_clone whenever a new clone LWP is detected.
8331         (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
8332         functions.
8333         * linux-nat.h (thread_db_attach_lwp): Delete declaration.
8334         (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
8335         (linux_unstop_all_lwps): Declare.
8336         * linux-thread-db.c (struct thread_get_info_inout): Delete.
8337         (thread_get_info_callback): Delete.
8338         (thread_from_lwp): Use td_thr_get_info and record_thread.
8339         (thread_db_attach_lwp): Delete.
8340         (thread_db_notice_clone): New function.
8341         (try_thread_db_load_1): If /proc is mounted and shows the
8342         process'es task list, walk over all LWPs and call thread_from_lwp
8343         instead of relying on td_ta_thr_iter.
8344         (attach_thread): Don't call check_thread_signals here.  Split the
8345         tail part of the function (which adds the thread to the core GDB
8346         thread list) to ...
8347         (record_thread): ... this function.  Call check_thread_signals
8348         here.
8349         (thread_db_wait): Don't call thread_db_find_new_threads_1.  Always
8350         call thread_from_lwp.
8351         (thread_db_update_thread_list): Rename to ...
8352         (thread_db_update_thread_list_org): ... this.
8353         (thread_db_update_thread_list): New function.
8354         (thread_db_find_thread_from_tid): Delete.
8355         (thread_db_get_ada_task_ptid): Simplify.
8356         * nat/linux-procfs.c: Include <sys/stat.h>.
8357         (linux_proc_task_list_dir_exists): New function.
8358         * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
8359
8360 2015-02-20  Pedro Alves  <palves@redhat.com>
8361
8362         * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
8363         main LWP.  Handle the case of waitpid returning 0 if we're already
8364         attached to the LWP.  Don't set the LWP's last_resume_kind to
8365         resume_stop if we already knew about the LWP.
8366         (linux_nat_filter_event): Add debug logs.
8367
8368 2015-02-20  Pedro Alves  <palves@redhat.com>
8369
8370         * target.h (forward_target_decr_pc_after_break): Delete
8371         declaration.
8372
8373 2015-02-20  Pedro Alves  <palves@redhat.com>
8374
8375         PR threads/18006
8376         * linux-thread-db.c (thread_get_info_callback): Return early if
8377         the thread's lwp id is -1.
8378
8379 2015-02-20  Joel Brobecker  <brobecker@adacore.com>
8380
8381         GDB 7.9 released.
8382
8383 2015-02-19  Steve Ellcey  <sellcey@imgtec.com>
8384
8385         * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
8386         (dtrace_get_probes) Change type of variable 'dof'.
8387
8388 2015-02-19  Antoine Tremblay  <antoine.tremblay@ericsson.com>
8389
8390         PR breakpoints/16812
8391         * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
8392         * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
8393         * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
8394
8395 2015-02-19  David Taylor  <dtaylor@emc.com>
8396
8397         * common/ax.def (setv): Fix consumed entry in setv DEFOP.
8398
8399 2015-02-18  Patrick Palka  <patrick@parcs.ath.cx>
8400
8401         * tui/tui-io.c (tui_handle_resize_during_io): Remove this
8402         function.
8403         (tui_putc): Don't call tui_handle_resize_during_io.
8404         (tui_getc): Likewise.
8405         (tui_mld_getc): Likewise.
8406         * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
8407         (tui_sigwinch_token): New static variable.
8408         (tui_initialize_win): Adjust documentation.  Set
8409         tui_sigwinch_token.
8410         (tui_async_resize_screen): New asynchronous callback.
8411         (tui_sigwinch_handler): Adjust documentation.  Asynchronously
8412         invoke tui_async_resize_screen.
8413
8414 2015-02-18  Jose E. Marchesi  <jose.marchesi@oracle.com>
8415
8416         * configure: Regenerated.
8417         * configure.ac: Use GDB_AC_TRANSFORM.
8418         * Makefile.in (aclocal_m4_deps): Added transform.m4.
8419         * acinclude.m4: sinclude transform.m4.
8420         * transform.m4: New file.
8421         (GDB_AC_TRANSFORM): New macro.
8422
8423 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
8424
8425         * NEWS: Announce the support for DTrace SDT probes.
8426
8427 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
8428
8429         * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
8430         (amd64_dtrace_parse_probe_argument): New function.
8431         (amd64_dtrace_probe_is_enabled): Likewise.
8432         (amd64_dtrace_enable_probe): Likewise.
8433         (amd64_dtrace_disable_probe): Likewise.
8434         (amd64_linux_init_abi): Register the
8435         `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
8436         `gdbarch_dtrace_disable_probe' and
8437         `gdbarch_dtrace_probe_is_enabled' hooks.
8438         (amd64_dtrace_disabled_probe_sequence_1): New constant.
8439         (amd64_dtrace_disabled_probe_sequence_2): Likewise.
8440         (amd64_dtrace_enable_probe_sequence): Likewise.
8441         (amd64_dtrace_disable_probe_sequence): Likewise.
8442
8443 2015-01-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
8444
8445         * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
8446         the -probe-dtrace new vpossible value for PROBE_MODIFIER.
8447         * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
8448         handle ELF files.
8449         * Makefile.in (SFILES): dtrace-probe.c added.
8450         * configure: Regenerate.
8451         * dtrace-probe.c: New file.
8452         (SHT_SUNW_dof): New constant.
8453         (dtrace_probe_type): New enum.
8454         (dtrace_probe_arg): New struct.
8455         (dtrace_probe_arg_s): New typedef.
8456         (struct dtrace_probe_enabler): New struct.
8457         (dtrace_probe_enabler_s): New typedef.
8458         (dtrace_probe): New struct.
8459         (dtrace_probe_is_linespec): New function.
8460         (dtrace_dof_sect_type): New enum.
8461         (dtrace_dof_dofh_ident): Likewise.
8462         (dtrace_dof_encoding): Likewise.
8463         (DTRACE_DOF_ENCODE_LSB): Likewise.
8464         (DTRACE_DOF_ENCODE_MSB): Likewise.
8465         (dtrace_dof_hdr): New struct.
8466         (dtrace_dof_sect): Likewise.
8467         (dtrace_dof_provider): Likewise.
8468         (dtrace_dof_probe): Likewise.
8469         (DOF_UINT): New macro.
8470         (DTRACE_DOF_PTR): Likewise.
8471         (DTRACE_DOF_SECT): Likewise.
8472         (dtrace_process_dof_probe): New function.
8473         (dtrace_process_dof): Likewise.
8474         (dtrace_build_arg_exprs): Likewise.
8475         (dtrace_get_arg): Likewise.
8476         (dtrace_get_probes): Likewise.
8477         (dtrace_get_probe_argument_count): Likewise.
8478         (dtrace_can_evaluate_probe_arguments): Likewise.
8479         (dtrace_evaluate_probe_argument): Likewise.
8480         (dtrace_compile_to_ax): Likewise.
8481         (dtrace_probe_destroy): Likewise.
8482         (dtrace_gen_info_probes_table_header): Likewise.
8483         (dtrace_gen_info_probes_table_values): Likewise.
8484         (dtrace_probe_is_enabled): Likewise.
8485         (dtrace_probe_ops): New variable.
8486         (info_probes_dtrace_command): New function.
8487         (_initialize_dtrace_probe): Likewise.
8488         (dtrace_type_name): Likewise.
8489
8490 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
8491
8492         * gdbarch.sh (dtrace_parse_probe_argument): New.
8493         (dtrace_probe_is_enabled): Likewise.
8494         (dtrace_enable_probe): Likewise.
8495         (dtrace_disable_probe): Likewise.
8496         * gdbarch.c: Regenerate.
8497         * gdbarch.h: Regenerate.
8498
8499 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
8500
8501         * stap-probe.c (stap_probe_ops): Add NULLs in the static
8502         stap_probe_ops for `enable_probe' and `disable_probe'.
8503         * probe.c (enable_probes_command): New function.
8504         (disable_probes_command): Likewise.
8505         (_initialize_probe): Define the cli commands `enable probe' and
8506         `disable probe'.
8507         (parse_probe_linespec): New function.
8508         (info_probes_for_ops): Use parse_probe_linespec.
8509         * probe.h (probe_ops): New hooks `enable_probe' and
8510         `disable_probe'.
8511
8512 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
8513
8514         * probe.c (compute_probe_arg): Moved from stap-probe.c
8515         (compile_probe_arg): Likewise.
8516         (probe_funcs): Likewise.
8517         * stap-probe.c (compute_probe_arg): Moved to probe.c.
8518         (compile_probe_arg): Likewise.
8519         (probe_funcs): Likewise.
8520
8521 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
8522
8523         * probe.c (print_ui_out_not_applicables): New function.
8524         (exists_probe_with_pops): Likewise.
8525         (info_probes_for_ops): Do not include column headers for probe
8526         types for which no probe has been actually found on any object.
8527         Also invoke `print_ui_out_not_applicables' in order to match the
8528         column rows with the header when probes of several types are
8529         listed.
8530         Print the "Type" column.
8531         * probe.h (probe_ops): Added a new probe operation `type_name'.
8532         * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
8533         (stap_type_name): New function.
8534
8535 2015-02-17  Patrick Palka  <patrick@parcs.ath.cx>
8536
8537         * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
8538         (key_is_command_char): Delete.
8539
8540 2015-02-17  Pedro Alves  <palves@redhat.com>
8541
8542         * tui/tui.c (tui_enable): Resize windows before anything
8543         might show a window.
8544
8545 2015-02-17  Max Ostapenko  <m.ostapenko@partner.samsung.com>
8546
8547         PR gdb/17984
8548         * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
8549         (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
8550         call.
8551         * aarch64-tdep.h (tdesc_aarch64): Declare.
8552
8553 2015-02-12  Mark Wielaard  <mjw@redhat.com>
8554
8555         * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
8556
8557 2015-02-13  Doug Evans  <dje@google.com>
8558
8559         * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
8560         anonymous_namespace to is_in_anonymous for consistency with the rest
8561         of the file.
8562         (cp_lookup_bare_symbol): Fix typo in comment.
8563         (cp_search_static_and_baseclasses): Ditto.
8564         (search_symbol_list): Use vertical space in comment better.
8565         (reset_directive_searched): Ditto. Fix typo.
8566         (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
8567
8568 2015-02-13  Yao Qi  <yao.qi@arm.com>
8569
8570         * MAINTAINERS: Update my email address.
8571
8572 2015-02-12  Doug Evans  <dje@google.com>
8573
8574         * symtab.c (completion_list_add_name): Fix memory leak.
8575
8576 2015-02-12  Doug Evans  <dje@google.com>
8577
8578         * completer.c (complete_line): Remove incorrect comment.
8579
8580 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
8581
8582         * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
8583         (py_print_frame): Use RETURN_MASK_ERROR.
8584
8585 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
8586
8587         * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
8588         function comment.  Wrap all function that can throw in cleanups.
8589         (gdbpy_apply_frame_filter): Wrap all function that can throw in
8590         cleanups.
8591
8592 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
8593
8594         * python/py-framefilter.c (py_print_frame): Substitute goto error.
8595         Remove the error label.
8596
8597 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
8598
8599         * python/py-framefilter.c (py_print_frame): Put conditional code paths
8600         with goto first, indent the former else codepath left.  Put variable
8601         'elided' to a new inner block.
8602
8603 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
8604
8605         * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
8606
8607 2015-02-11  Pedro Alves  <palves@redhat.com>
8608
8609         * xcoffread.c (within_function): Delete.
8610
8611 2015-02-11  Tom Tromey  <tromey@redhat.com>
8612             Pedro Alves <palves@redhat.com>
8613
8614         * breakpoint.c (base_breakpoint_ops): Delete.
8615         * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
8616         * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
8617         * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
8618         * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
8619         * python/py-arch.c (arch_object_type): Make extern.
8620         * python/py-block.c (block_syms_iterator_object_type): Make extern.
8621         * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
8622         * python/py-cmd.c (cmdpy_object_type): Make extern.
8623         * python/py-continueevent.c (continue_event_object_type)
8624         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
8625         parameter.  Update all callers.
8626         * python/py-evtregistry.c (eventregistry_object_type): Make extern.
8627         * python/py-exitedevent.c (exited_event_object_type): Make extern.
8628         * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
8629         * python/py-function.c (fnpy_object_type): Make extern.
8630         * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
8631         * python/py-infevents.c (call_pre_event_object_type)
8632         (inferior_call_post_event_object_type).
8633         (memory_changed_event_object_type): Make extern.
8634         * python/py-infthread.c (thread_object_type): Make extern.
8635         * python/py-lazy-string.c (lazy_string_object_type): Make extern.
8636         * python/py-linetable.c (linetable_entry_object_type)
8637         (linetable_object_type, ltpy_iterator_object_type): Make extern.
8638         * python/py-newobjfileevent.c (new_objfile_event_object_type)
8639         (clear_objfiles_event_object_type): Make extern.
8640         * python/py-objfile.c (objfile_object_type): Make extern.
8641         * python/py-param.c (parmpy_object_type): Make extern.
8642         * python/py-progspace.c (pspace_object_type): Make extern.
8643         * python/py-signalevent.c (signal_event_object_type): Make extern.
8644         * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
8645         * python/py-type.c (type_object_type, field_object_type)
8646         (type_iterator_object_type): Make extern.
8647         * python/python.c (python_extension_script_ops)
8648         (python_extension_ops): Make extern.
8649         * stap-probe.c (stap_probe_ops): Make extern.
8650
8651 2015-02-11  Pedro Alves  <pedro@codesourcery.com>
8652
8653         * infrun.c (adjust_pc_after_break): Don't adjust the PC just
8654         because the event thread is not the current thread.
8655
8656 2015-02-11  Doug Evans  <xdje42@gmail.com>
8657
8658         * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
8659         been initialized yet, return NULL.
8660
8661 2015-02-11  Doug Evans  <dje@google.com>
8662
8663         * symfile.h (new_symfile_objfile): Delete.
8664         * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
8665         All callers updated.
8666
8667 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
8668
8669         * tui/tui-io.c (tui_handle_resize_during_io): Call
8670         tui_update_gdb_sizes() after resizing the screen.
8671         * tui/tui.c (tui_enable): Resize the terminal before
8672         calling tui_update_gdb_sizes().
8673
8674 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
8675
8676         * tui/tui-io.c (tui_getc): Move cursor to the end of the command
8677         line before printing a newline.
8678
8679 2015-02-11  Mark Wielaard  <mjw@redhat.com>
8680
8681         * utils.c (producer_is_gcc): Return true or false.
8682
8683 2015-02-10  Mark Wielaard  <mjw@redhat.com>
8684
8685         * utils.h (producer_is_gcc): Change return type to bool. Add major
8686         argument.
8687         * utils.c (producer_is_gcc): Likewise.
8688         (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
8689         * dwarf2read.c (check_producer): Likewise.
8690
8691 2015-02-10  Pedro Alves  <palves@redhat.com>
8692
8693         * infrun.c (displaced_step_fixup): Switch to the event thread
8694         before calling gdbarch_displaced_step_fixup.
8695
8696 2015-02-10  Antoine Tremblay <antoine.tremblay@ericsson.com>
8697
8698         * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
8699
8700 2015-02-10  Simon Marchi  <simon.marchi@ericsson.com>
8701
8702         * ada-varobj.c (ada_name_of_child): Constify parent.
8703         (ada_path_expr_of_child): Same.
8704         (ada_value_of_child): Same.
8705         (ada_type_of_child): Same.
8706         * c-varobj.c (c_is_path_expr_parent): Same.
8707         (c_describe_child): Same.
8708         (c_name_of_child): Same.
8709         (c_value_of_child): Same.
8710         (c_type_of_child): Same.
8711         (cplus_number_of_children): Same.
8712         (cplus_describe_child): Constify var.
8713         (cplus_name_of_child): Constify parent.
8714         (cplus_value_of_child): Same.
8715         (cplus_type_of_child): Same.
8716         * jv-varobj.c (java_name_of_child): Same.
8717         (java_value_of_child): Same.
8718         (java_type_of_child): Same.
8719         * varobj.c (value_of_child): Same.
8720         (varobj_default_is_path_expr_parent): Constify var, parent and return
8721         value.
8722         (varobj_get_path_expr): Constify var, modify path_expr through
8723         mutable_var.
8724         (install_new_value): Constify parent.
8725         (value_of_child): Constify parent.
8726         * varobj.h (struct varobj): Constify parent.
8727         (struct lang_varobj_ops): Constify name_of_child, value_of_child and
8728         type_of_child.
8729         (varobj_get_path_expr): Constify var.
8730         (varobj_get_path_expr_parent): Constify var and return value.
8731
8732 2015-02-10  Luis Machado  <lgustavo@codesourcery.com>
8733
8734         * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
8735         (arm_prologue_this_id): Move PC and SP limit checks to
8736         arm_prologue_unwind_stop_reason.
8737         (arm_prologue_unwind) <stop_reason> : Set to
8738         arm_prologue_unwind_stop_reason.
8739
8740 2015-02-09  Mark Wielaard  <mjw@redhat.com>
8741
8742         * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
8743         DW_LANG_Fortran08 as language_fortran.
8744
8745 2015-02-09  Sergio Durigan Junior  <sergiodj@redhat.com>
8746
8747         PR remote/17946
8748         * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
8749         of pointer against char.
8750
8751 2015-02-09  Mark Wielaard  <mjw@redhat.com>
8752
8753         * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
8754         (c_type_print_modifier): Likewise.
8755         * dwarf2read.c (read_tag_atomic_type): New function.
8756         (read_type_die_1): Handle DW_TAG_atomic_type.
8757         * gdbtypes.c (make_atomic_type): New function.
8758         (recursive_dump_type): Handle TYPE_ATOMIC.
8759         * gdbtypes.h (enum type_flag_values): Renumber.
8760         (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
8761         (TYPE_ATOMIC): New macro.
8762         (make_atomic_type): Declare.
8763
8764 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
8765
8766         * btrace.c (ftrace_find_call): Skip gaps.
8767         (ftrace_new_function): Initialize level.
8768         (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
8769         (ftrace_new_switch): Update
8770         level computation.
8771         (ftrace_new_gap): New.
8772         (ftrace_update_function): Create new function after gap.
8773         (btrace_compute_ftrace_bts): Create gap on error.
8774         (btrace_stitch_bts): Update parameters.  Clear trace if it
8775         becomes empty.
8776         (btrace_stitch_trace): Update parameters.  Update callers.
8777         (btrace_clear): Reset the number of gaps.
8778         (btrace_insn_get): Return NULL if the iterator points to a gap.
8779         (btrace_insn_number): Return zero if the iterator points to a gap.
8780         (btrace_insn_end): Allow gaps at the end.
8781         (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
8782         (btrace_find_insn_by_number): Assert that the found iterator does
8783         not point to a gap.
8784         (btrace_call_next, btrace_call_prev): Assert that the last function
8785         is not a gap.
8786         * btrace.h (btrace_bts_error): New.
8787         (btrace_function): Update comment.
8788         (btrace_function) <insn, insn_offset, number>: Update comment.
8789         (btrace_function) <errcode>: New.
8790         (btrace_thread_info) <ngaps>: New.
8791         (btrace_thread_info) <replay>: Update comment.
8792         (btrace_insn_get): Update comment.
8793         * record-btrace.c (btrace_ui_out_decode_error): New.
8794         (record_btrace_info): Print number of gaps.
8795         (btrace_insn_history, btrace_call_history): Call
8796         btrace_ui_out_decode_error for gaps.
8797         (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
8798
8799 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
8800
8801         * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
8802         * nat/linux-btrace.c: (btrace_this_cpu): New.
8803         (cpu_supports_bts): Call btrace_this_cpu.
8804         (intel_supports_bts): Add cpu parameter.
8805
8806 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
8807
8808         * btrace.h (btrace_insn_class): New.
8809         (btrace_insn) <size, iclass>: New.
8810         * btrace.c (ftrace_find_call): Update parameters.  Update users.
8811         Use instruction classification.
8812         (ftrace_new_return): Update parameters.  Update users.
8813         (ftrace_update_function): Update parameters.  Update users.  Use
8814         instruction classification.
8815         (ftrace_update_insns): Update parameters.  Update users.
8816         (ftrace_classify_insn): New.
8817         (btrace_compute_ftrace_bts): Fill in new btrace_insn fields.  Add
8818         TRY_CATCH around call to gdb_insn_length.
8819
8820 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
8821
8822         * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
8823         Update parameters.  Update users.
8824
8825 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
8826
8827         * btrace.c (parse_xml_btrace_conf_bts): Add size.
8828         (btrace_conf_bts_attributes): New.
8829         (btrace_conf_children): Add attributes.
8830         * common/btrace-common.h (btrace_config_bts): New.
8831         (btrace_config)<bts>: New.
8832         (btrace_config): Update comment.
8833         * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
8834         Use config.
8835         * features/btrace-conf.dtd: Increment version.  Add size
8836         attribute to bts element.
8837         * record-btrace.c (set_record_btrace_bts_cmdlist,
8838         show_record_btrace_bts_cmdlist): New.
8839         (record_btrace_adjust_size, record_btrace_print_bts_conf,
8840         record_btrace_print_conf, cmd_set_record_btrace_bts,
8841         cmd_show_record_btrace_bts): New.
8842         (record_btrace_info): Call record_btrace_print_conf.
8843         (_initialize_record_btrace): Add commands.
8844         * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
8845         (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
8846         (btrace_sync_conf): Synchronize bts size.
8847         (_initialize_remote): Add Qbtrace-conf:bts:size packet.
8848         * NEWS: Announce new commands and new packets.
8849
8850 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
8851
8852         * Makefile.in (XMLFILES): Add btrace-conf.dtd.
8853         * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
8854         (x86_linux_btrace_conf): New.
8855         (x86_linux_create_target): Initialize to_btrace_conf.
8856         * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
8857         Check format.  Split into this and ...
8858         (linux_enable_bts): ... this.
8859         (linux_btrace_conf): New.
8860         (perf_event_skip_record): Renamed into ...
8861         (perf_event_skip_bts_record): ... this.  Updated users.
8862         (linux_disable_btrace): Split into this and ...
8863         (linux_disable_bts): ... this.
8864         (linux_read_btrace): Check format.
8865         * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
8866         (linux_btrace_conf): New.
8867         (btrace_target_info)<ptid>: Moved.
8868         (btrace_target_info)<conf>: New.
8869         (btrace_target_info): Split into this and ...
8870         (btrace_tinfo_bts): ... this.  Updated users.
8871         * btrace.c (btrace_enable): Update parameters.
8872         (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
8873         (btrace_conf_children, btrace_conf_attributes)
8874         (btrace_conf_elements): New.
8875         * btrace.h (btrace_enable): Update parameters.
8876         (btrace_conf, parse_xml_btrace_conf): New.
8877         * common/btrace-common.h (btrace_config): New.
8878         * feature/btrace-conf.dtd: New.
8879         * record-btrace.c (record_btrace_conf): New.
8880         (record_btrace_cmdlist): New.
8881         (record_btrace_enable_warn, record_btrace_open): Pass
8882         &record_btrace_conf.
8883         (record_btrace_info): Print recording format.
8884         (cmd_record_btrace_bts_start): New.
8885         (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
8886         (_initialize_record_btrace): Add "record btrace bts" subcommand.
8887         Add "record bts" alias command.
8888         * remote.c (remote_state)<btrace_config>: New.
8889         (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
8890         (remote_protocol_features): Add qXfer:btrace-conf:read.
8891         (remote_open_1): Call remote_btrace_reset.
8892         (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
8893         (btrace_target_info)<conf>: New.
8894         (btrace_sync_conf, btrace_read_config): New.
8895         (remote_enable_btrace): Update parameters.  Call btrace_sync_conf and
8896         btrace_read_conf.
8897         (remote_btrace_conf): New.
8898         (init_remote_ops): Initialize to_btrace_conf.
8899         (_initialize_remote): Add qXfer:btrace-conf packet.
8900         * target.c (target_enable_btrace): Update parameters.
8901         (target_btrace_conf): New.
8902         * target.h (target_enable_btrace): Update parameters.
8903         (target_btrace_conf): New.
8904         (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
8905         (target_ops)<to_enable_btrace>: Update parameters and comment.
8906         (target_ops)<to_btrace_conf>: New.
8907         * target-delegates: Regenerate.
8908         * target-debug.h (target_debug_print_const_struct_btrace_config_p)
8909         (target_debug_print_const_struct_btrace_target_info_p): New.
8910         * NEWS: Announce new command and new packet.
8911
8912 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
8913
8914         * nat/linux-btrace.h (perf_event_buffer): New.
8915         (btrace_target_info) <buffer, size, data_head>: Replace with ...
8916         <bts>: ... this.
8917         * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
8918         (perf_event_buffer_size, perf_event_buffer_begin)
8919         (perf_event_buffer_end, linux_btrace_has_changed): Removed.
8920         Updated users.
8921         (perf_event_new_data): New.
8922
8923 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
8924
8925         * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
8926         * record-btrace.c (record_btrace_open): Remove call to
8927         target_supports_btrace.
8928         * remote.c (remote_supports_btrace): Update parameters.
8929         * target.c (target_supports_btrace): Update parameters.
8930         * target.h (to_supports_btrace, target_supports_btrace): Update
8931         parameters.
8932         * target-delegates.c: Regenerate.
8933         * target-debug.h (target_debug_print_enum_btrace_format): New.
8934         * nat/linux-btrace.c
8935         (kernel_supports_btrace): Rename into ...
8936         (kernel_supports_bts): ... this.  Update users.  Update warning text.
8937         (intel_supports_btrace): Rename into ...
8938         (intel_supports_bts): ... this.  Update users.
8939         (cpu_supports_btrace): Rename into ...
8940         (cpu_supports_bts): ... this.  Update users.
8941         (linux_supports_btrace): Update parameters.  Split into this and ...
8942         (linux_supports_bts): ... this.
8943         * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
8944
8945 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
8946
8947         * Makefile.in (SFILES): Add common/btrace-common.c.
8948         (COMMON_OBS): Add common/btrace-common.o.
8949         (btrace-common.o): Add build rules.
8950         * btrace.c (parse_xml_btrace): Update parameters.
8951         (parse_xml_btrace_block): Set format field.
8952         (btrace_add_pc, btrace_fetch): Use struct btrace_data.
8953         (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
8954         (btrace_compute_ftrace): Split into this and...
8955         (btrace_compute_ftrace_bts): ...this.
8956         (btrace_stitch_trace): Split into this and...
8957         (btrace_stitch_bts): ...this.
8958         * btrace.h (parse_xml_btrace): Update parameters.
8959         (make_cleanup_btrace_data): New.
8960         * common/btrace-common.c: New.
8961         * common/btrace-common.h: Include common-defs.h.
8962         (btrace_block_s): Update comment.
8963         (btrace_format): New.
8964         (btrace_format_string): New.
8965         (btrace_data_bts): New.
8966         (btrace_data): New.
8967         (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
8968         * remote.c (remote_read_btrace): Update parameters.
8969         * target.c (target_read_btrace): Update parameters.
8970         * target.h (target_read_btrace): Update parameters.
8971         (target_ops)<to_read_btrace>: Update parameters.
8972         * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
8973         * target-delegates.c: Regenerate.
8974         * target-debug (target_debug_print_struct_btrace_data_p): New.
8975         * nat/linux-btrace.c (linux_read_btrace): Split into this and...
8976         (linux_read_bts): ...this.
8977         * nat/linux-btrace.h (linux_read_btrace): Update parameters.
8978
8979 2015-02-06  Doug Evans  <dje@google.com>
8980
8981         * remote-m32r-sdi.c: Include symfile.h.
8982
8983 2015-02-06  Doug Evans  <dje@google.com>
8984
8985         * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
8986         * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
8987         to here.
8988
8989 2015-02-06  Pedro Alves  <palves@redhat.com>
8990
8991         * linux-thread-db.c (find_new_threads_callback): Add debug output.
8992
8993 2015-02-06  Simon Marchi  <simon.marchi@ericsson.com>
8994
8995         PR gdb/15678
8996         * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
8997         (enable_count_command): Check args for NULL value.
8998
8999 2015-02-05  Doug Evans  <xdje42@gmail.com>
9000
9001         * guile/scm-frame.c: Fix spelling errors in a comment.
9002
9003 2015-02-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
9004
9005         * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
9006         * python/py-value.c (valpy_fetch_lazy): Use it.  Remove cast to the
9007         return type.
9008
9009 2015-02-04  Pedro Alves  <palves@redhat.com>
9010
9011         * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
9012         (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
9013         returns true.
9014         (resume_stopped_resumed_lwps): Don't check whether the thread is
9015         marked as executing.
9016         (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
9017
9018 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9019
9020         * regset.h (struct regset): Add flags field.
9021         (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
9022         * corelow.c (get_core_register_section): Add warning if the size
9023         exceeds the requested size and the regset does not have the
9024         REGSET_VARIABLE_SIZE flag set.
9025         * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
9026         flag.
9027         * armbsd-tdep.c (armbsd_gregset): Likewise.
9028         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
9029         * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
9030         * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
9031         * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
9032
9033 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9034
9035         * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
9036         For ".reg-xstate", explicitly specify the requested section size
9037         via X86_XSTATE_SIZE instead of just 0 on input and
9038         X86_XSTATE_MAX_SIZE on output.
9039         * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
9040         Likewise.
9041
9042 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9043
9044         PR corefiles/17808:
9045         * gdbarch.sh (iterate_over_regset_sections_cb): Document this
9046         function type, particularly its SIZE parameter.
9047         * gdbarch.h: Regenerate.
9048         * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
9049         actual against required size using ">=" instead of "==".
9050         (amd64_collect_fpregset): Likewise.
9051         * i386-tdep.c (i386_supply_gregset): Likewise.
9052         (i386_collect_gregset): Likewise.
9053         (i386_supply_fpregset): Likewise.
9054         (i386_collect_fpregset): Likewise.
9055         * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
9056         (mips_fill_gregset_wrapper): Likewise.
9057         (mips_supply_fpregset_wrapper): Likewise.
9058         (mips_fill_fpregset_wrapper): Likewise.
9059         (mips64_supply_gregset_wrapper): Likewise.
9060         (mips64_fill_gregset_wrapper): Likewise.
9061         (mips64_supply_fpregset_wrapper): Likewise.
9062         (mips64_fill_fpregset_wrapper): Likewise.
9063         * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
9064         (am33_supply_fpregset_method): Likewise.
9065         (am33_collect_gregset_method): Likewise.
9066         (am33_collect_fpregset_method): Likewise.
9067
9068 2015-02-04  Doug Evans  <dje@google.com>
9069             Pedro Alves  <palves@redhat.com>
9070             Eli Zaretskii  <eliz@gnu.org>
9071
9072         PR tui/17810
9073         * tui/tui-command.c (tui_refresh_cmd_win): New function.
9074         * tui/tui-command.c (tui_refresh_cmd_win): Declare.
9075         * tui/tui-file.c: #include tui/tui-command.h.
9076         (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
9077         (tui_file_flush): Refresh command window if stream is gdb_stdout.
9078         * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
9079
9080 2015-02-04  Pedro Alves  <palves@redhat.com>
9081
9082         Fix build breakage.
9083         * event-loop.c (gdb_do_one_event): Add default switch case.
9084
9085 2015-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
9086
9087         Filter out inferior gcc option -fpreprocessed.
9088         * compile/compile.c (filter_args): New function.
9089         (get_args): Use it.
9090
9091 2015-02-03  Pedro Alves  <palves@redhat.com>
9092
9093         * event-loop.c: Don't declare nor define a queue type for
9094         gdb_event_p.
9095         (event_queue): Delete.
9096         (create_event, create_file_event, gdb_event_xfree)
9097         (initialize_event_loop, process_event): Delete.
9098         (gdb_do_one_event): Return as soon as one event is handled.
9099         (handle_file_event): Change prototype.  Used the passed in
9100         file_handler pointer and ready_mask instead of looping over all
9101         file handlers.
9102         (gdb_wait_for_event): Update the poll/select timeouts before
9103         blocking.  Run event handlers directly instead of queueing events.
9104         Return as soon as one event is handled.
9105         (struct async_event_handler_data): Delete.
9106         (invoke_async_event_handler): Delete.
9107         (check_async_event_handlers): Change return type to int.  Run
9108         event handlers directly instead of queueing events.  Return as
9109         soon as one event is handled.
9110         (handle_timer_event): Delete.
9111         (update_wait_timeout): New function, factored out from
9112         poll_timers.
9113         (poll_timers): Reimplement.
9114         * event-loop.h (initialize_event_loop): Delete declaration.
9115         * top.c (gdb_init): Don't call initialize_event_loop.
9116
9117 2015-02-03  Pedro Alves  <palves@redhat.com>
9118
9119         * event-loop.c (clear_async_event_handler): New function.
9120         * event-loop.h (clear_async_event_handler): New declaration.
9121         * record-btrace.c (record_btrace_async): New function.
9122         (init_record_btrace_ops): Install record_btrace_async.
9123         * record-full.c (record_full_async): New function.
9124         (record_full_resume): Don't mark the async event source here.
9125         (init_record_full_ops): Install record_full_async.
9126         (record_full_core_resume): Don't mark the async event source here.
9127         (init_record_full_core_ops): Install record_full_async.
9128         * remote.c (remote_async): Mark and clear the async stop reply
9129         queue event-loop token as appropriate.
9130
9131 2015-02-03  Pedro Alves  <palves@redhat.com>
9132
9133         * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
9134         target_is_async_p instead of target_can_async.
9135         (linux_nat_wait): Use target_is_async_p instead of
9136         target_can_async.  Don't enable async here.
9137         * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
9138         target_is_async_p instead of target_can_async.
9139
9140 2015-02-02  Simon Marchi  <simon.marchi@ericsson.com>
9141
9142         * varobj.h (lang_varobj_ops): Mention which return values need
9143         to be freed.
9144
9145 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
9146
9147         * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
9148
9149 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
9150
9151         PR gdb/17856:
9152         * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
9153         results found in the cache.
9154
9155 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
9156
9157         PR gdb/17854:
9158         * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
9159         when allocating a new one.
9160
9161 2015-02-01  Tom Tromey  <tom@tromey.com>
9162
9163         * MAINTAINERS: Remove myself.
9164
9165 2015-01-31  Doug Evans  <xdje42@gmail.com>
9166
9167         * dwarf2read.c (process_structure_scope): Update setting of
9168         TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
9169         * gdbtypes.c (internal_type_vptr_fieldno): New function.
9170         (set_type_vptr_fieldno): New function.
9171         (internal_type_vptr_basetype): New function.
9172         (set_type_vptr_basetype): New function.
9173         (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
9174         TYPE_VPTR_BASETYPE.
9175         (allocate_cplus_struct_type): Initialize vptr_fieldno.
9176         (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
9177         (print_cplus_stuff): ... moved here.
9178         (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
9179         * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
9180         moved to ...
9181         (struct cplus_struct_type): ... here.  All uses updated.
9182         (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
9183         (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
9184         (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
9185         * stabsread.c (read_tilde_fields): Update setting of
9186         TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
9187
9188 2015-01-31  Doug Evans  <xdje42@gmail.com>
9189
9190         * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
9191         to self_p.
9192         (cp_print_class_member): Rename local domain to self_type.
9193         * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
9194         domain_type to self_type.
9195         (set_die_type) <need_gnat_info>: Handle
9196         TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
9197         * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
9198         TYPE_SPECIFIC_SELF_TYPE.
9199         * gdbtypes.c (internal_type_self_type): New function.
9200         (set_type_self_type): New function.
9201         (smash_to_memberptr_type): Rename parameter domain to self_type.
9202         Update setting of TYPE_SELF_TYPE.
9203         (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
9204         (smash_to_method_type): Rename parameter domain to self_type.
9205         Update setting of TYPE_SELF_TYPE.
9206         (check_stub_method): Call smash_to_method_type.
9207         (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
9208         (copy_type_recursive): Ditto.
9209         * gdbtypes.h (enum type_specific_kind): New value
9210         TYPE_SPECIFIC_SELF_TYPE.
9211         (struct main_type) <type_specific>: New member self_type.
9212         (struct cplus_struct_type) <fn_field.type>: Update comment.
9213         (TYPE_SELF_TYPE): Rewrite.
9214         (internal_type_self_type, set_type_self_type): Declare.
9215         * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
9216         self_type.
9217         (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
9218         * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
9219         TYPE_TARGET_TYPE.
9220         * stabsread.c (read_member_functions): Mark methods with
9221         TYPE_CODE_METHOD, not TYPE_CODE_FUNC.  Update setting of
9222         TYPE_SELF_TYPE.
9223
9224 2015-01-31  Doug Evans  <xdje42@gmail.com>
9225
9226         * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
9227         All uses updated.
9228
9229 2015-01-31  Doug Evans  <xdje42@gmail.com>
9230
9231         * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
9232         or unions.  Return zero if union.
9233         (gnuv3_get_vtable): Call check_typedef.  Assert only passed structs.
9234         (gnuv3_rtti_type): Pass already-check_typedef'd value to
9235         gnuv3_get_vtable.
9236         (compute_vtable_size): Assert only passed structs.
9237         (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
9238
9239 2015-01-31  Doug Evans  <xdje42@gmail.com>
9240
9241         * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
9242         kinds.
9243
9244 2015-01-31  Gary Benson <gbenson@redhat.com>
9245             Doug Evans  <dje@google.com>
9246
9247         PR cli/9007
9248         PR cli/11920
9249         PR cli/15548
9250         * cli/cli-cmds.c (complete_command): Notify user if max-completions
9251         reached.
9252         * common/common-exceptions.h (enum errors)
9253         <MAX_COMPLETIONS_REACHED_ERROR>: New value.
9254         * completer.h (get_max_completions_reached_message): New declaration.
9255         (max_completions): Likewise.
9256         (completion_tracker_t): New typedef.
9257         (new_completion_tracker): New declaration.
9258         (make_cleanup_free_completion_tracker): Likewise.
9259         (maybe_add_completion_enum): New enum.
9260         (maybe_add_completion): New declaration.
9261         (throw_max_completions_reached_error): Likewise.
9262         * completer.c (max_completions): New global variable.
9263         (new_completion_tracker): New function.
9264         (free_completion_tracker): Likewise.
9265         (make_cleanup_free_completion_tracker): Likewise.
9266         (maybe_add_completions): Likewise.
9267         (throw_max_completions_reached_error): Likewise.
9268         (complete_line): Remove duplicates and limit result to max_completions
9269         entries.
9270         (get_max_completions_reached_message): New function.
9271         (gdb_display_match_list): Handle max_completions.
9272         (_initialize_completer): New declaration and function.
9273         * symtab.c: Include completer.h.
9274         (completion_tracker): New static variable.
9275         (completion_list_add_name): Call maybe_add_completion.
9276         (default_make_symbol_completion_list_break_on_1): Renamed from
9277         default_make_symbol_completion_list_break_on.  Maintain
9278         completion_tracker across calls to completion_list_add_name.
9279         (default_make_symbol_completion_list_break_on): New function.
9280         * top.c (init_main): Set rl_completion_display_matches_hook.
9281         * tui/tui-io.c: Include completer.h.
9282         (tui_old_rl_display_matches_hook): New static global.
9283         (tui_rl_display_match_list): Notify user if max-completions reached.
9284         (tui_setup_io): Save/restore rl_completion_display_matches_hook.
9285         * NEWS (New Options): Mention set/show max-completions.
9286
9287 2015-01-31  Gary Benson  <gbenson@redhat.com>
9288
9289         * symtab.c (struct add_name_data) <code>: New field.
9290         Updated comments.
9291         (add_symtab_completions): New function.
9292         (symtab_expansion_callback): Likewise.
9293         (default_make_symbol_completion_list_break_on): Set datum.code.
9294         Move minimal symbol scan before calling expand_symtabs_matching.
9295         Scan known primary symtabs for externs and statics before calling
9296         expand_symtabs_matching.  Pass symtab_expansion_callback as
9297         expansion_notify argument to expand_symtabs_matching.  Do not scan
9298         primary symtabs for externs and statics after calling
9299         expand_symtabs_matching.
9300
9301 2015-01-31  Gary Benson  <gbenson@redhat.com>
9302
9303         * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
9304         (struct quick_symbol_functions) <expand_symtabs_matching>:
9305         New argument expansion_notify.  All uses updated.
9306         (expand_symtabs_matching): New argument expansion_notify.
9307         All uses updated.
9308         * symfile-debug.c (debug_qf_expand_symtabs_matching):
9309         Also print expansion notify.
9310         * symtab.c (expand_symtabs_matching_via_partial): Call
9311         expansion_notify whenever a partial symbol table is expanded.
9312         * dwarf2read.c (dw2_expand_symtabs_matching): Call
9313         expansion_notify whenever a symbol table is instantiated.
9314
9315 2015-01-31  Doug Evans  <xdje42@gmail.com>
9316
9317         * cli-out.c: #include completer.h, readline/readline.h.
9318         (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
9319         (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
9320         (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
9321         * cli-out.h (cli_display_match_list): Declare.
9322         * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
9323         (ELLIPSIS_LEN): Ditto.
9324         (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
9325         (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
9326         (gdb_fnprint, gdb_print_filename): Ditto.
9327         (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
9328         (gdb_display_match_list): Ditto.
9329         * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
9330         (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
9331         (mld_beep_ftype, mld_read_key_ftype): Ditto.
9332         (match_list_displayer): New struct.
9333         (gdb_display_match_list): Declare.
9334         * top.c (init_main): Set rl_completion_display_matches_hook.
9335         * tui/tui-io.c: #include completer.h.
9336         (printable_part, PUTX, print_filename, get_y_or_n): Delete.
9337         (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
9338         (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
9339         (tui_mld_getc, tui_mld_read_key): Ditto.
9340         (tui_rl_display_match_list): Rewrite.
9341         (tui_handle_resize_during_io): New arg for_completion.  All callers
9342         updated.
9343
9344 2015-01-31  Doug Evans  <xdje42@gmail.com>
9345
9346         Add symbol lookup cache.
9347         * NEWS: Document new options and commands.
9348         * symtab.c (symbol_cache_key): New static global.
9349         (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
9350         (SYMBOL_LOOKUP_FAILED): New macro.
9351         (symbol_cache_slot_state): New enum.
9352         (block_symbol_cache): New struct.
9353         (symbol_cache): New struct.
9354         (new_symbol_cache_size, symbol_cache_size): New static globals.
9355         (hash_symbol_entry, eq_symbol_entry): New functions.
9356         (symbol_cache_byte_size, resize_symbol_cache): New functions.
9357         (make_symbol_cache, free_symbol_cache): New functions.
9358         (get_symbol_cache, symbol_cache_cleanup): New function.
9359         (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
9360         (symbol_cache_lookup, symbol_cache_clear_slot): New function.
9361         (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
9362         (symbol_cache_flush, symbol_cache_dump): New functions.
9363         (maintenance_print_symbol_cache): New function.
9364         (maintenance_flush_symbol_cache): New function.
9365         (symbol_cache_stats): New function.
9366         (maintenance_print_symbol_cache_statistics): New function.
9367         (symtab_new_objfile_observer): New function.
9368         (symtab_free_objfile_observer): New function.
9369         (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
9370         (_initialize_symtab): Init symbol_cache_key.  New parameter
9371         maint symbol-cache-size.  New maint commands print symbol-cache,
9372         print symbol-cache-statistics, flush-symbol-cache.
9373         Install new_objfile, free_objfile observers.
9374
9375 2015-01-31  Joel Brobecker  <brobecker@adacore.com>
9376
9377         PR symtab/17855
9378         * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
9379         to end.
9380
9381 2015-01-31  Doug Evans  <xdje42@gmail.com>
9382
9383         * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
9384         * auto-load.c: #include ctype.h.
9385         (struct auto_load_pspace_info): Replace member loaded_scripts with
9386         new members loaded_script_files, loaded_script_texts.
9387         (auto_load_pspace_data_cleanup): Update.
9388         (init_loaded_scripts_info): Update.
9389         (get_auto_load_pspace_data_for_loading): Update.
9390         (maybe_add_script_file): Renamed from maybe_add_script.  All callers
9391         updated.
9392         (maybe_add_script_text): New function.
9393         (clear_section_scripts): Update.
9394         (source_script_file, execute_script_contents): New functions.
9395         (source_section_scripts): Add support for
9396         SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
9397         (print_scripts): New function.
9398         (auto_load_info_scripts): Also print inlined scripts.
9399         (maybe_print_unsupported_script_warning): Renamed from
9400         unsupported_script_warning_print.  All callers updated.
9401         (maybe_print_script_not_found_warning): Renamed from
9402         script_not_found_warning_print.  All callers updated.
9403         * extension-priv.h (struct extension_language_script_ops): New member
9404         objfile_script_executor.
9405         * extension.c (ext_lang_objfile_script_executor): New function.
9406         * extension.h (objfile_script_executor_func): New typedef.
9407         (ext_lang_objfile_script_executor): Declare.
9408         * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
9409         * guile/guile.c (guile_extension_script_ops): Update.
9410         * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
9411         * python/python.c (python_extension_script_ops): Update.
9412         (gdbpy_execute_objfile_script): New function.
9413
9414 2015-01-31  Eli Zaretskii  <eliz@gnu.org>
9415
9416         * tui/tui-io.c (tui_expand_tabs): New function.
9417         (tui_puts, tui_redisplay_readline): Expand TABs into the
9418         appropriate number of spaces.
9419         * tui/tui-regs.c: Include tui-io.h.
9420         (tui_register_format): Call tui_expand_tabs to expand TABs into
9421         the appropriate number of spaces.
9422         * tui/tui-io.h: Add prototype for tui_expand_tabs.
9423
9424 2015-01-30  Doug Evans  <dje@google.com>
9425
9426         * NEWS: "info source" command now display producer string if present.
9427         * source.c (source_info): Print producer string if present.
9428
9429 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
9430
9431         * varobj.c (varobj_delete): Fix comment.
9432
9433 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
9434
9435         * varobj.c (create_child): Modify comment.
9436
9437 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
9438
9439         * ada-varobj.c (ada_number_of_children): Constify struct varobj *
9440         parameter.
9441         (ada_name_of_variable): Same.
9442         (ada_path_expr_of_child): Same.
9443         (ada_value_of_variable): Same.
9444         (ada_value_is_changeable_p): Same.
9445         (ada_value_has_mutated): Same.
9446         * c-varobj.c (varobj_is_anonymous_child): Same.
9447         (c_is_path_expr_parent): Same.
9448         (c_number_of_children): Same.
9449         (c_name_of_variable): Same.
9450         (c_path_expr_of_child): Same.
9451         (get_type): Same.
9452         (c_value_of_variable): Same.
9453         (cplus_number_of_children): Same.
9454         (cplus_name_of_variable): Same.
9455         (cplus_path_expr_of_child): Same.
9456         (cplus_value_of_variable): Same.
9457         * jv-varobj.c (java_number_of_children): Same.
9458         (java_name_of_variable): Same.
9459         (java_path_expr_of_child): Same.
9460         (java_value_of_variable): Same.
9461         * varobj.c (number_of_children): Same.
9462         (name_of_variable): Same.
9463         (is_root_p): Same.
9464         (varobj_ensure_python_env): Same.
9465         (varobj_get_objname): Same.
9466         (varobj_get_expression): Same.
9467         (varobj_get_display_format): Same.
9468         (varobj_get_display_hint): Same.
9469         (varobj_has_more): Same.
9470         (varobj_get_thread_id): Same.
9471         (varobj_get_frozen): Same.
9472         (dynamic_varobj_has_child_method): Same.
9473         (varobj_get_gdb_type): Same.
9474         (is_path_expr_parent): Same.
9475         (varobj_default_is_path_expr_parent): Same.
9476         (varobj_get_language): Same.
9477         (varobj_get_attributes): Same.
9478         (varobj_is_dynamic_p): Same.
9479         (varobj_get_child_range): Same.
9480         (varobj_value_has_mutated): Same.
9481         (varobj_get_value_type): Same.
9482         (number_of_children): Same.
9483         (name_of_variable): Same.
9484         (check_scope): Same.
9485         (varobj_editable_p): Same.
9486         (varobj_value_is_changeable_p): Same.
9487         (varobj_floating_p): Same.
9488         (varobj_default_value_is_changeable_p): Same.
9489
9490 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
9491
9492         * varobj.c (varobj_get_path_expr): Set var->path_expr.
9493         * c-varobj.c (c_path_expr_of_child): Set local var instead of
9494         child->path_expr.
9495         (cplus_path_expr_of_child): Same.
9496
9497 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
9498
9499         * mi-cmd-var.c (print_varobj): Free varobj_get_expression
9500         result.
9501         (mi_cmd_var_info_expression): Same.
9502         * varobj.c (varobj_get_expression): Mention in the comment that
9503         the result must by freed by the caller.
9504
9505 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
9506
9507         * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
9508         varobj_get_type.
9509         (varobj_update_one): Same.
9510         * varobj.c (update_type_if_necessary): Free curr_type_str and
9511         new_type_str.
9512         (varobj_get_type): Specify in comment that the result needs to be
9513         freed by the caller.
9514
9515 2015-01-29  Doug Evans  <dje@google.com>
9516
9517         PR symtab/17890
9518         * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
9519
9520 2015-01-25  Mark Wielaard  <mjw@redhat.com>
9521
9522         * dwarf2read.c (checkproducer): Call producer_is_gcc.
9523         * utils.c (producer_is_gcc_ge_4): Likewise.
9524         (producer_is_gcc): New function.
9525         * utils.h (producer_is_gcc): New declaration.
9526
9527 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
9528
9529         * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
9530         kind.
9531         * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
9532         parameter by "addr_stack" parameter.
9533         (resolve_dynamic_range): Replace "addr" parameter by
9534         "stack_addr" parameter.  Update function documentation.
9535         Update code accordingly.
9536         (resolve_dynamic_array, resolve_dynamic_union)
9537         (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
9538         (resolve_dynamic_type): Update code, following the changes made
9539         to resolve_dynamic_type_internal's interface.
9540         * dwarf2loc.h (struct property_addr_info): New.
9541         (dwarf2_evaluate_property): Replace "address" parameter
9542         by "addr_stack" parameter.  Adjust function documentation.
9543         (struct dwarf2_offset_baton): New.
9544         (struct dwarf2_property_baton): Update documentation of
9545         field "referenced_type" to be more general. New field
9546         "offset_info" in union data field.
9547         * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
9548         parameter by "addr_stack" parameter.  Adjust code accordingly.
9549         Add support for PROP_ADDR_OFFSET properties.
9550         * dwarf2read.c (attr_to_dynamic_prop): Add support for
9551         DW_AT_data_member_location attributes as well.  Use case
9552         statements instead of if/else condition.
9553
9554 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
9555
9556         * ada-varobj.c (ada_varobj_get_array_number_of_children):
9557         Return zero if PARENT_VALUE is NULL and parent_type's
9558         range type is dynamic.
9559
9560 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
9561
9562         * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
9563         nonzero if the type's subtype is dynamic.
9564         (resolve_dynamic_range): Also resolve the range's subtype.
9565
9566 2015-01-29  Alexander Klimov  <alserkli@inbox.ru>  (tiny patch)
9567
9568         Pushed by Joel Brobecker  <brobecker@adacore.com>.
9569         * symfile.c (unmap_overlay_command): Initialize sec to NULL.
9570
9571 2015-01-27  Doug Evans  <dje@google.com>
9572
9573         * NEWS: Mention gdb.Objfile.username.
9574         * python/py-objfile.c (objfpy_get_username): New function.
9575         (objfile_getset): Add "username".
9576
9577 2015-01-24  Mark Wielaard  <mjw@redhat.com>
9578
9579         * stack.c (return_command): Markup warning message with _.
9580
9581 2015-01-24  Doug Evans  <xdje42@gmail.com>
9582
9583         * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
9584
9585 2015-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
9586
9587         Fix 100x slowdown regression on DWZ files.
9588         * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
9589         (struct line_header): Add offset and offset_in_dwz.
9590         (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
9591         (free_line_header_voidp): New declaration.
9592         (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
9593         functions.
9594         (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
9595         (handle_DW_AT_stmt_list): Use line_header_hash.
9596         (free_line_header_voidp): New function.
9597         (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
9598         (dwarf_decode_lines): New parameter decode_mapping, use it.
9599         (dwarf2_free_objfile): Free line_header_hash.
9600
9601 2015-01-23  Simon Marchi  <simon.marchi@ericsson.com>
9602
9603         PR gdb/17416
9604         * valops.c (value_rtti_indirect_type): Catch exception thrown by
9605         value_ind.
9606
9607 2015-01-15  Mark Wielaard  <mjw@redhat.com>
9608
9609         * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
9610         DW_AT_noreturn.
9611         * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
9612         calling_convention an 8 bit bit field.
9613         (TYPE_NO_RETURN): New macro.
9614         * infcmd.c (finish_command): Query if function does not return
9615         normally.
9616         * stack.c (return_command): Likewise.
9617
9618 2015-01-23  Pedro Alves  <palves@redhat.com>
9619
9620         * linux-nat.c (linux_is_async_p): New macro.
9621         (linux_nat_is_async_p):
9622         (linux_nat_terminal_inferior): Check whether the target can async
9623         instead of whether it is already async.
9624         (linux_nat_terminal_ours): Don't check whether the target is
9625         async.
9626         (linux_async_pipe): Use linux_is_async_p.
9627
9628 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
9629
9630         * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
9631         '-ascending'.
9632         * thread.c (tp_array_compar_ascending, tp_array_compar): New.
9633         (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
9634         Sort tp_array using tp_array_compar.
9635         (_initialize_thread): Extend thread_apply_all_command help.
9636
9637 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
9638
9639         * corelow.c (core_open): Call also thread_command.
9640         * gdbthread.h (thread_command): New prototype moved from ...
9641         * thread.c (thread_command): ... here.
9642         (thread_command): Make it global.
9643
9644 2015-01-22  Pedro Alves  <palves@redhat.com>
9645
9646         * configure.ac [*mingw32*]: Check $curses_found instead of
9647         $prefer_curses.
9648         * configure: Regenerate.
9649         * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
9650         HAVE_NCURSES_NCURSES_H checks.
9651
9652 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
9653
9654         * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
9655         fails with the 1st arg NULL, try again with "unknown".  Don't test
9656         the "cup" capability: it isn't supported by the Windows port of
9657         ncurses, but the Windows console driver is still capable of
9658         supporting TUI.
9659
9660 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
9661
9662         * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
9663
9664 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
9665
9666         * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
9667         (ALLDEPFILES): Remove irix5-nat.c.  These two are part of the
9668         reason that "make TAGS" is broken.
9669
9670 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
9671
9672         * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
9673         and check additional store instructions.
9674
9675 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
9676
9677         * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
9678
9679 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
9680
9681         * ppc-linux-tdep.c (ppc_skip_trampoline_code,
9682         ppc_canonicalize_syscall, ppc_linux_syscall_record,
9683         ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
9684         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
9685         * rs6000-tdep.c (rs6000_epilogue_frame_cache,
9686         rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
9687         rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
9688         ppc_process_record_op19, ppc_process_record_op31,
9689         ppc_process_record_op59, ppc_process_record_op60,
9690         ppc_process_record_op63): Likewise.
9691
9692 2015-01-20  Joel Brobecker  <brobecker@adacore.com>
9693
9694         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
9695         (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
9696         strerror.
9697
9698 2015-01-20  Wei-cheng Wang  <cole945@gmail.com>
9699
9700         * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
9701         ppc_process_record_op31, ppc_process_record_op59,
9702         ppc_process_record_op60, ppc_process_record_op63,
9703         ppc_process_record): Fix -Wformat warning.
9704         * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
9705         Remove unused variables.
9706
9707 2015-01-20  Chen Gang  <gang.chen.5i5j@gmail.com>
9708
9709         * MAINTAINERS (Write After Approval): Add "Chen Gang".
9710
9711 2015-01-19  Eli Zaretskii  <eliz@gnu.org>
9712
9713         * configure.ac [*mingw32*]: Only add windows-termcap.o to
9714         CONFIG_OBS if not building with a curses library.
9715         * configure: Regenerate.
9716
9717         * windows-termcap.c: Include defs.h.  Make the whole body empty if
9718         either one of HAVE_CURSES_H or HAVE_NCURSES_H or
9719         HAVE_NCURSES_NCURSES_H is defined.
9720
9721 2015-01-19  Joel Brobecker  <brobecker@adacore.com>
9722
9723         * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
9724         from end of line to start of next line.
9725
9726 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
9727
9728         * ppc-linux-tdep.c (ppc_skip_trampoline_code):
9729         Scan PLT stub backward for reverse debugging.
9730         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
9731
9732 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
9733             Ulrich Weigand  <uweigand@de.ibm.com>
9734
9735         * configure.tgt (powerpc*-*-linux): Add linux-record.o to
9736         gdb_target_obs.
9737         (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
9738         record.
9739         (ppc_canonicalize_syscall, ppc_linux_syscall_record,
9740         ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
9741         (ppc_linux_init_abi): Set process_record, process_record_signal.
9742         * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
9743         ppc_linux_record_tdep to gdbarch_tdep.
9744         (ppc_process_record): New declaration.
9745         * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
9746         ppc_process_record_op19, ppc_process_record_op31,
9747         ppc_process_record_op59, ppc_process_record_op60,
9748         ppc_process_record_op63, ppc_process_record): New functions.
9749
9750 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
9751
9752         * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
9753         rs6000_in_function_epilogue_frame_p and add an argument
9754         for frame_info.
9755         (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
9756         rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
9757         New functions.
9758         (rs6000_epilogue_frame_unwind): New.
9759         (rs6000_gdbarch_init): Append epilogue unwinder.
9760
9761 2015-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
9762
9763         * nat/linux-personality.c: Replace "#ifndef
9764         HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
9765         !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
9766         systems.
9767
9768 2015-01-16  Eli Zaretskii  <eliz@gnu.org>
9769
9770         * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
9771         functions.
9772         (_initialize_tui_win) <border-kind, border-mode>:
9773         <active-border-mode>: Use tui_set_var_cmd as the "set" function.
9774         (tui_set_tab_width_command): Fix the commentary.
9775
9776         * tui/tui-win.h: Add prototype for tui_rehighlight_all.
9777
9778         * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
9779         Doc fix.
9780         (tui_set_tab_width_command): Delete and recreate the source and
9781         the disassembly windows, to show the effect of the changed tab
9782         size immediately.
9783
9784         * tui/tui-data.h (LINE_PREFIX): Make shorter
9785         (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
9786         "Thread NNNNN.XXXX" thread ID notation on Windows.
9787
9788 2015-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
9789
9790         Fix gcc-5 compilation.
9791         * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
9792
9793 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
9794
9795         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
9796         (linux-personality.o): New rule.
9797         * common/common-defs.h: Include <stdint.h>.
9798         * config/aarch64/linux.mh (NATDEPFILES): Include
9799         linux-personality.o.
9800         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
9801         * config/arm/linux.mh (NATDEPFILES): Likewise.
9802         * config/i386/linux64.mh (NATDEPFILES): Likewise.
9803         * config/i386/linux.mh (NATDEPFILES): Likewise.
9804         * config/ia64/linux.mh (NATDEPFILES): Likewise.
9805         * config/m32r/linux.mh (NATDEPFILES): Likewise.
9806         * config/m68k/linux.mh (NATDEPFILES): Likewise.
9807         * config/mips/linux.mh (NATDEPFILES): Likewise.
9808         * config/pa/linux.mh (NATDEPFILES): Likewise.
9809         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
9810         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
9811         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
9812         * config/s390/linux.mh (NATDEPFILES): Likewise.
9813         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
9814         * config/sparc/linux.mh (NATDEPFILES): Likewise.
9815         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
9816         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
9817         * defs.h: Remove #include <stdint.h> (moved to
9818         common/common-defs.h).
9819         * linux-nat.c: Include nat/linux-personality.h.  Remove #include
9820         <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
9821         nat/linux-personality.c).
9822         (linux_nat_create_inferior): Remove code to disable address space
9823         randomization (moved to nat/linux-personality.c).  Create cleanup
9824         to disable address space randomization.
9825         * nat/linux-personality.c: New file.
9826         * nat/linux-personality.h: Likewise.
9827
9828 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
9829
9830         * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
9831         common/posix-strerror.c.
9832         (posix-strerror.o): New rule.
9833         (mingw-strerror.o): Likewise.
9834         * common/common-utils.h (safe_strerror): Move prototype to here,
9835         from utils.h.
9836         * common/common.host: New file.
9837         * common/mingw-strerror.c: Likewise.
9838         * common/posix-strerror.c: Likewise.
9839         * configure: Regenerated.
9840         * configure.ac: Source common/common.host.  Add variable
9841         common_host_obs to gdb_host_obs.
9842         * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
9843         gdb/common/posix-strerror.c when warning about the use of
9844         strerror.
9845         * mingw-hdep.c (safe_strerror): Remove definition; move it to
9846         common/mingw-strerror.c.
9847         * posix-hdep.c (safe_strerror): Remove definition; move it to
9848         common/posix-hdep.c.
9849         * utils.h (safe_strerror): Remove prototype; move to
9850         common/common-utils.h.
9851
9852 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
9853
9854         GDB 7.8.2 released.
9855
9856 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
9857
9858         * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
9859         ___XA type if the array has already been fixed.
9860
9861 2015-01-14  Yao Qi  <yao@codesourcery.com>
9862
9863         * Makefile.in (ppc-linux.o): New rule.
9864         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
9865         * configure.ac: AC_CHECK_FUNCS(getauxval).
9866         * config.in: Re-generated.
9867         * configure: Re-generated.
9868         * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
9869         Declare.
9870         * nat/ppc-linux.c: New file.
9871         * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
9872         Call ppc64_64bit_inferior_p.
9873
9874 2015-01-14  Yao Qi  <yao@codesourcery.com>
9875
9876         * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
9877         nat/ppc-linux.h.
9878         (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
9879         (PPC_FEATURE_HAS_DFP): Likewise.
9880         (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
9881         (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
9882         (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
9883         Include "nat/ppc-linux.h".
9884         * nat/ppc-linux.h: New file.
9885         * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
9886
9887 2015-01-14  Pedro Alves  <palves@redhat.com>
9888
9889         PR gdb/17525
9890         * breakpoint.c: Include "interps.h".
9891         (bpstat_do_actions_1): Also check whether the interpreter is
9892         async.
9893
9894 2015-01-14  Pedro Alves  <palves@redhat.com>
9895
9896         PR cli/17828
9897         * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
9898         reinstall if the interpreter is sync.
9899
9900 2015-01-13  Doug Evans  <dje@google.com>
9901
9902         * objfiles.c (objfile_filename): New function.
9903         * objfiles.h (objfile_filename): Declare it.
9904         (objfile_name): Add function comment.
9905         * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
9906         bfd file name (which may be realpath'd), and the original name.
9907
9908 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
9909
9910         * NEWS: Create a new section for the next release branch.
9911         Rename the section of the current branch, now that it has
9912         been cut.
9913
9914 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
9915
9916         GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
9917         * version.in: Bump version to 7.9.50.DATE-cvs.
9918
9919 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
9920
9921         * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
9922         Remove trailing new-line in argument of call to warning.
9923
9924 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
9925
9926         * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
9927         new-line in argument of call to "warning".
9928
9929 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
9930
9931         * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
9932         in static block, then try searching for primitive types.
9933
9934 2015-01-12  Patrick Palka  <patrick@parcs.ath.cx>
9935
9936         * top.h (gdb_add_history): Declare.
9937         * top.c (command_count): New variable.
9938         (gdb_add_history): New function.
9939         (gdb_safe_append_history): New static function.
9940         (quit_force): Call it.
9941         (command_line_input): Use gdb_add_history instead of
9942         add_history.
9943         * event-top.c (command_line_handler): Likewise.
9944
9945 2015-01-12  James Clarke  <jrtc27@jrtc27.com>  (tiny patch)
9946
9947         PR gdb/17046
9948         * darwin-nat.c: Replace <machine/setjmp.h> #include by
9949         <setjmp.h> #include.
9950
9951 2015-01-11  Doug Evans  <xdje42@gmail.com>
9952
9953         * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
9954
9955 2015-01-11  Doug Evans  <xdje42@gmail.com>
9956
9957         PR gdb/15830
9958         * NEWS: The "maint demangle" command is renamed as "demangle".
9959         * demangle.c: #include cli/cli-utils.h, language.h.
9960         (demangle_command): New function.
9961         (_initialize_demangle): Add new command "demangle".
9962         * maint.c (maintenance_demangle): Stub out.
9963         (_initialize_maint_cmds): Update help text for "maint demangle",
9964         and mark as deprecated.
9965
9966 2015-01-11  Mark Kettenis  <kettenis@gnu.org>
9967
9968         * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
9969         inferior_thread is a function.
9970
9971 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
9972
9973         * Makefile.in (.y.c): Don't munge yacc's #line
9974         directives.
9975
9976 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
9977
9978         * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
9979         to prompt for input.
9980         * tui/tui-hooks.c (tui_query_hook): Remove.
9981         (tui_install_hooks): Don't set deprecated_query_hook.
9982         * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
9983         height calculation.  Always update the command window's cur_line.
9984
9985 2015-01-09  Pedro Alves  <palves@redhat.com>
9986
9987         * breakpoint.c (hardware_breakpoint_inserted_here_p): New
9988         function.
9989         * breakpoint.h (hardware_breakpoint_inserted_here_p): New
9990         declaration.
9991         * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
9992         (linux_resume_one_lwp): Store the thread's PC.  Adjust to clear
9993         stop_reason.
9994         (check_stopped_by_watchpoint): New function.
9995         (save_sigtrap): Reimplement.
9996         (linux_nat_stopped_by_watchpoint): Adjust.
9997         (linux_nat_lp_status_is_event): Delete.
9998         (stop_wait_callback): Only call save_sigtrap after storing the
9999         pending status.
10000         (status_callback): If the thread had been stopped for a breakpoint
10001         that has since been removed, discard the event and resume the LWP.
10002         (count_events_callback, select_event_lwp_callback): Use
10003         lwp_status_pending_p instead of linux_nat_lp_status_is_event.
10004         (cancel_breakpoint): Rename to ...
10005         (check_stopped_by_breakpoint): ... this.  Record whether the LWP
10006         stopped for a software breakpoint or hardware breakpoint.
10007         (select_event_lwp): Only give preference to the stepping LWP in
10008         all-stop mode.  Adjust comments.
10009         (stop_and_resume_callback): Remove references to new_pending_p.
10010         (linux_nat_filter_event): Likewise.  Leave exit events of the
10011         leader thread pending here.  Handle signal short circuiting here.
10012         Only call save_sigtrap after storing the pending waitstatus.
10013         (linux_nat_wait_1): Remove 'retry' label.  Remove references to
10014         new_pending.  Don't handle leaving events the caller is not
10015         interested in pending here, nor handle signal short-circuiting
10016         here.  Also give equal priority to all LWPs that have had events
10017         in non-stop mode.  If reporting a software breakpoint event,
10018         unadjust the LWP's PC.
10019         * linux-nat.h (enum lwp_stop_reason): New.
10020         (struct lwp_info) <stop_pc>: New field.
10021         (struct lwp_info) <stopped_by_watchpoint>: Delete field.
10022         (struct lwp_info) <stop_reason>: New field.
10023         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10024
10025 2015-01-09  Pedro Alves  <palves@redhat.com>
10026
10027         * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
10028         Set the LWP's 'resumed' flag.
10029
10030 2015-01-09  Pedro Alves  <palves@redhat.com>
10031
10032         * linux-nat.c (linux_resume_one_lwp): New function.
10033         (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
10034         (linux_nat_resume): Use lwp_status_pending_p and
10035         linux_resume_one_lwp.
10036         (linux_handle_syscall_trap): Use linux_resume_one_lwp.
10037         (linux_handle_extended_wait): Use linux_resume_one_lwp.
10038         (status_callback, running_callback): Use lwp_status_pending_p.
10039         (lwp_status_pending_p): New function.
10040         (stop_and_resume_callback): Use lwp_status_pending_p.
10041         (linux_nat_filter_event): Use linux_resume_one_lwp.
10042         (linux_nat_wait_1): Always use status_callback to look for an LWP
10043         with a pending status.  Use linux_resume_one_lwp.
10044         (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
10045         linux_resume_one_lwp.
10046
10047 2015-01-09  Pedro Alves  <palves@redhat.com>
10048
10049         * breakpoint.c (bp_location_inserted_here_p): New function,
10050         factored out from ...
10051         (breakpoint_inserted_here_p): ... here.  Use
10052         ALL_BP_LOCATIONS_AT_ADDR.
10053         (software_breakpoint_inserted_here_p): Use
10054         bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
10055
10056 2014-01-09  Pedro Alves  <palves@redhat.com>
10057
10058         Skip enabling event reporting if the kernel supports
10059         PTRACE_EVENT_CLONE.
10060         * linux-thread-db.c: Include "nat/linux-ptrace.h".
10061         (thread_db_use_events): New function.
10062         (try_thread_db_load_1): Check thread_db_use_events before enabling
10063         event reporting.
10064         (update_thread_state): New function.
10065         (attach_thread): Use it.  Check thread_db_use_events before
10066         enabling event reporting.
10067         (thread_db_detach): Check thread_db_use_events before disabling
10068         event reporting.
10069         (find_new_threads_callback): Check thread_db_use_events before
10070         enabling event reporting.  Update the thread's state if not using
10071         libthread_db events.
10072
10073 2015-01-09  Pedro Alves  <palves@redhat.com>
10074
10075         * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
10076         about to wait for is > 0.
10077         * linux-thread-db.c (find_new_threads_callback): Ignore thread if
10078         the kernel thread ID is -1.
10079
10080 2015-01-09  Pedro Alves  <palves@redhat.com>
10081
10082         * linux-nat.c (attach_proc_task_lwp_callback): New function.
10083         (linux_nat_attach): Use linux_proc_attach_tgid_threads.
10084         (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
10085         ptrace option flags.
10086         * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
10087         field.
10088         * nat/linux-procfs.c: Include <dirent.h>.
10089         (linux_proc_get_int): New parameter "warn".  Handle it.
10090         (linux_proc_get_tgid): Adjust.
10091         (linux_proc_get_tracerpid): Rename to ...
10092         (linux_proc_get_tracerpid_nowarn): ... this.
10093         (linux_proc_pid_get_state): New function, factored out from
10094         (linux_proc_pid_has_state): ... this.  Add new parameter "warn"
10095         and handle it.
10096         (linux_proc_pid_is_gone): New function.
10097         (linux_proc_pid_is_stopped): Adjust.
10098         (linux_proc_pid_is_zombie_maybe_warn)
10099         (linux_proc_pid_is_zombie_nowarn): New functions.
10100         (linux_proc_pid_is_zombie): Use
10101         linux_proc_pid_is_zombie_maybe_warn.
10102         (linux_proc_attach_tgid_threads): New function.
10103         * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
10104         (linux_proc_get_tracerpid): Rename to ...
10105         (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
10106         (linux_proc_pid_is_gone): New declaration.
10107         (linux_proc_pid_is_zombie): Update comment.
10108         (linux_proc_pid_is_zombie_nowarn): New declaration.
10109         (linux_proc_attach_lwp_func): New typedef.
10110         (linux_proc_attach_tgid_threads): New declaration.
10111         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
10112         use nowarn functions.
10113         (linux_ptrace_attach_fail_reason_string): Move here from
10114         gdbserver/linux-low.c and rename.
10115         (ptrace_supports_feature): If the current ptrace options are not
10116         known yet, check them now, instead of asserting.
10117         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
10118         Declare.
10119
10120 2015-01-09  Pedro Alves  <palves@redhat.com>
10121
10122         * linux-thread-db.c (thread_db_find_new_threads_silently)
10123         (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
10124         (find_new_threads_once): Print debug output on gdb_stdlog.
10125
10126 2015-01-09  Chen Gang  <gang.chen.5i5j@gmail.com>
10127             Pedro Alves  <palves@redhat.com>
10128
10129         * compile/compile.c: Include "gdb_wait.h".
10130         (do_rmdir): Check return value, and free 'zap'.
10131
10132 2015-01-08  Pedro Alves  <palves@redhat.com>
10133             Yao Qi  <yao@codesourcery.com>
10134
10135         * dwarf2loc.c (indirect_pieced_value): Don't call
10136         gdb_sign_extend.  Call extract_signed_integer instead.
10137         * utils.c (gdb_sign_extend): Remove.
10138         * utils.h (gdb_sign_extend): Remove declaration.
10139
10140 2015-01-07  Pierre Muller  <muller@sourceware.org>
10141
10142         PR symtab/17811
10143         * stabsread.c (define_symbol): Set language for C++ special symbols.
10144
10145 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
10146
10147         * inflow.c (initial_gdb_ttystate): Tweak comment.
10148
10149 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
10150
10151         * inflow.c (set_initial_gdb_ttystate): Add empty line after
10152         comment documenting function.
10153
10154 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
10155
10156         * terminal.h (set_initial_gdb_ttystate): Declare.
10157         * inflow.c (initial_gdb_ttystate): New static variable.
10158         (set_initial_gdb_ttystate): New setter.
10159         (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
10160         instead of our current terminal state.
10161         * top.c (gdb_init): Call set_initial_gdb_ttystate.
10162
10163 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
10164
10165         * guile/scm-type.c (tyscm_array_1): Add comment.
10166         * python/py-type.c (typy_array_1): Add comment.
10167
10168 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
10169
10170         * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
10171         error if N2 is equal to N1 - 1.
10172
10173 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
10174
10175         * python/py-type.c (typy_array_1): Do not raise negative-length
10176         exception if N2 is equal to N1 - 1.
10177
10178 2015-01-03  Doug Evans  <xdje42@gmail.com>
10179
10180         * c-exp.y: Whitespace cleanup.
10181         (classify_inner_name): Remove extra ;.
10182
10183 2015-01-02  Maciej W. Rozycki  <macro@codesourcery.com>
10184
10185         * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
10186         offset signed.
10187
10188 2015-01-02  Doug Evans  <dje@google.com>
10189
10190         * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
10191
10192 2015-01-02  Doug Evans  <dje@google.com>
10193
10194         * symtab.h (struct symbol): Fix typo in comment.
10195
10196 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
10197
10198         Update year range in copyright notice of all files.
10199
10200 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
10201
10202         * top.c (print_gdb_version): Update copyright year to 2015.
10203
10204 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
10205
10206         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
10207
10208 For older changes see ChangeLog-2014.
10209 \f
10210 Local Variables:
10211 mode: change-log
10212 left-margin: 8
10213 fill-column: 74
10214 version-control: never
10215 coding: utf-8
10216 End: