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