gdb/linux-record: Fix sizes of sigaction and sigset_t
[external/binutils.git] / gdb / ChangeLog
1 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
2
3         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Fix size_sigaction,
4         size_sigset_t, size_old_sigaction, size_old_sigset_t.
5         * amd64-linux-tdep.c (amd64_linux_init_abi): Fix size_sigaction,
6         size_sigset_t, size_old_sigaction, size_old_sigset_t.
7         (amd64_x32_linux_init_abi): Fix size_sigaction, size_sigset_t,
8         size_old_sigaction, size_old_sigset_t.
9         * arm-linux-tdep.c (arm_linux_init_abi): Fix size_sigaction,
10         size_old_sigaction, size_old_sigset_t.
11         * i386-linux-tdep.c (i386_linux_init_abi): Fix size_sigaction,
12         size_old_sigaction, size_old_sigset_t.
13         * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Fix size_sigaction,
14         size_sigset_t, size_old_sigaction, size_old_sigset_t.
15
16 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
17
18         * arm-linux-tdep.c (arm_linux_init_abi): Fix size_[ug]id.
19         * i386-linux-tdep.c (i386_linux_init_abi): Fix size_[ug]id.
20
21 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
22
23         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove size_siginfo.
24         * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_siginfo.
25         (amd64_x32_linux_init_abi): Remove size_siginfo.
26         * arm-linux-tdep.c (arm_linux_init_abi): Remove size_siginfo.
27         * i386-linux-tdep.c (i386_linux_init_abi): Remove size_siginfo.
28         * linux-record.c (record_linux_system_call): Change size_siginfo
29         to size_siginfo_t.
30         * linux-record.h (struct linux_record_tdep): Remove size_siginfo.
31         * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove size_siginfo.
32
33 2015-10-29  Pedro Alves  <palves@redhat.com>
34
35         * mdebugread.c (add_data_symbol): New function, factored out from
36         ...
37         (parse_symbol): ... here.  Delete 'theclass' local.
38
39 2015-10-29  Simon Marchi  <simon.marchi@polymtl.ca>
40
41         * jit.c (jit_target_read_impl): Add cast.
42
43 2015-10-29  Simon Marchi  <simon.marchi@polymtl.ca>
44
45         * jit.c (jit_reader_load): Add cast.
46
47 2015-10-29  Simon Marchi  <simon.marchi@polymtl.ca>
48
49         * dwarf2read.c (partial_die_full_name): Add cast.
50
51 2015-10-29  Pedro Alves  <palves@redhat.com>
52
53         * common/vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
54
55 2015-10-29  Pedro Alves  <palves@redhat.com>
56
57         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Add cast.
58
59 2015-10-29  Eli Zaretskii  <eliz@gnu.org>
60
61         * utils.c (init_page_info): Disable paging if INSIDE_EMACS is set
62         in the environment.
63
64 2015-10-29  Pedro Alves  <palves@redhat.com>
65
66         * gnu-v2-abi.c (gnuv2_is_destructor_name)
67         (gnuv2_is_constructor_name): Add casts.
68
69 2015-10-29  Pedro Alves  <palves@redhat.com>
70
71         * common/common-exceptions.c (exception_none): Add cast.
72
73 2015-10-29  Pedro Alves  <palves@redhat.com>
74
75         * compile/compile-c-types.c (struct type_map_instance)
76         <gcc_type>: Rename to gcc_type_handle.
77         (insert_type, convert_type): Adjust.
78
79 2015-10-29  Pedro Alves  <palves@redhat.com>
80
81         * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Don't
82         assume that "break" breaks out of a TRY/CATCH.
83         * python/py-framefilter.c (py_print_single_arg): Don't assume
84         "continue" breaks out of a TRY/CATCH.
85         * python/py-value.c (valpy_binop_throw): New function, factored
86         out from ...
87         (valpy_binop): ... this.
88         (valpy_richcompare_throw): New function, factored
89         out from ...
90         (valpy_richcompare): ... this.
91         * solib.c (solib_read_symbols): Don't assume "break" breaks out
92         of a TRY/CATCH.
93         * common/common-exceptions.h [USE_RAW_CXX_TRY]
94         <TRY/CATCH/END_CATCH>: Define as 1-1 wrappers around try/catch.
95
96 2015-10-28  Simon Dardis  <Simon.Dardis@imgtec.com>
97
98         * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Recognise 'or'
99         as move along with [d]addu.
100
101 2015-10-28  Yao Qi  <yao.qi@linaro.org>
102
103         * aarch64-tdep.c (aarch64_software_single_step): Pass 1 to
104         aarch64_decode_insn.
105
106 2015-10-27  Pedro Alves  <palves@redhat.com>
107
108         * common/print-utils.c (host_address_to_string): Rename to ...
109         (host_address_to_string_1): ... this.
110         * common/print-utils.h (host_address_to_string): Reimplement as
111         wrapper around host_address_to_string_1.
112         * utils.c (gdb_print_host_address): Rename to ...
113         (gdb_print_host_address_1): ... this.
114         * utils.h (gdb_print_host_address): Reimplement as wrapper macro
115         around  host_address_to_string_1.
116
117 2015-10-27  Pedro Alves  <palves@redhat.com>
118
119         * alpha-tdep.c (alpha_read_insn): Always pass TARGET_XFER_E_IO to
120         memory_error.  Rename local 'status' to 'res'.
121         * c-lang.c (c_get_string): Always pass TARGET_XFER_E_IO to
122         memory_error.
123         * corefile.c (read_stack, read_code, write_memory): Always pass
124         TARGET_XFER_E_IO to memory_error.
125         * disasm.c (dis_asm_memory_error): Always pass TARGET_XFER_E_IO to
126         memory_error.  Rename parameter 'status' to 'err'.
127         (dump_insns): Rename local 'status' to 'err'.
128         * mips-tdep.c (mips_fetch_instruction): Rename parameter 'statusp'
129         to 'errp'.  Rename local 'status' to 'err'.  Always pass
130         TARGET_XFER_E_IO to memory_error.
131         (mips_breakpoint_from_pc): Rename local 'status' to 'err'.
132         * target.c (target_read_memory, target_read_raw_memory)
133         (target_read_stack, target_read_code, target_write_memory)
134         (target_write_raw_memory): Return -1 on error instead of
135         TARGET_XFER_E_IO.
136         * valprint.c (val_print_string): Rename local 'errcode' to 'err'.
137         Always pass TARGET_XFER_E_IO to memory_error.  Update comment.
138
139 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
140
141         * guile/guile-internal.h (gdbscm_with_guile): Change return
142         types to const char *.
143         * guile/scm-safe-call.c (gdbscm_with_guile): Likewise.
144         (struct c_data) <func>: Likewise.
145         (struct c_data) <result>: Change type to const char *.
146         (scscm_eval_scheme_string): Change return type to
147         const char *.
148         (scscm_source_scheme_script): Likewise.
149         (gdbscm_safe_eval_string): Change type of result variable to
150         const char * and remove cast.
151         (gdbscm_safe_source_script): Likewise.
152         * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker):
153         Change return type to const char *.
154         (gdbscm_disasm_read_memory): Change type of status to
155         const char *.
156
157 2015-10-27  Pedro Alves  <palves@redhat.com>
158
159         * source.c (openp): New local 'last_errno'.  Use it to
160         save/restore errno.
161
162 2015-10-27  Pedro Alves  <palves@redhat.com>
163
164         * psymtab.c (dump_psymtab_addrmap_1): Add casts.
165
166 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
167
168         * ctf.c (SET_ENUM_FIELD): New macro.
169         (ctf_read_status): Use it.
170         (ctf_read_tp): Use it.
171
172 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
173
174         * guile/scm-breakpoint.c (gdbscm_set_breakpoint_stop_x): Add
175         scm_t_dynwind_flags casts.
176         * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
177         * guile/scm-ports.c (gdbscm_open_memory): Likewise.
178         * guile/scm-value.c (gdbscm_value_to_string): Likewise.
179
180 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
181
182         * ax.h (ax_raw_byte): New declaration.
183         * ax-general.c (ax_raw_byte): New function.
184         (ax_simple): Use ax_raw_byte.
185         * ax-gdb.c (gen_printf): Likewise.
186
187 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
188
189         * ada-lang.h (GROW_VECT): Add cast.
190
191 2015-10-26  Doug Evans  <xdje42@gmail.com>
192
193         * symtab.h (struct general_symbol_info> <ada_mangled>: Update comment.
194
195 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
196
197         * target.c (memory_xfer_partial): Change type of buf to gdb_byte
198         pointer.
199         (simple_search_memory): Cast return of memmem.
200
201 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
202
203         * stap-probe.c (handle_stap_probe): Add (const char *) casts.
204
205 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
206
207         * ctf.c (ctf_xfer_partial): Return TARGET_XFER_E_IO instead of
208         -1 on error.
209
210 2015-10-26  Doug Evans  <dje@google.com>
211
212         PR symtab/17391
213         * dwarf2-frame.c (dwarf2_restore_rule): Call dwarf_reg_to_regnum
214         instead of gdbarch_dwarf2_reg_to_regnum.
215         (dwarf2_frame_cache): Ditto.
216         (read_addr_from_reg): Call dwarf_reg_to_regnum_or_error instead of
217         gdbarch_dwarf2_reg_to_regnum.
218         (get_reg_value): Ditto.
219         (dwarf2_fetch_cfa_info): Ditto.
220         (dwarf2_frame_prev_register): Ditto.
221         * dwarf2loc.c: #include "complaints.h".
222         (dwarf_expr_read_addr_from_reg): Call dwarf_reg_to_regnum_or_error
223         instead of gdbarch_dwarf2_reg_to_regnum.
224         (dwarf_expr_get_reg_value): Ditto.
225         (read_pieced_value): Ditto.
226         (write_pieced_value): Ditto.
227         (dwarf2_evaluate_loc_desc_full): Ditto.
228         (dwarf_reg_to_regnum): New function.
229         (throw_bad_regnum_error): New function.
230         (dwarf_reg_to_regnum_or_error): Renamed from
231         dwarf2_reg_to_regnum_or_errorChange to take a ULONGEST regnum.
232         All callers updated.  Call throw_bad_regnum_error.
233         (locexpr_regname): Improve text of bad register number.
234         * dwarf2loc.h (dwarf_reg_to_regnum): Declare.
235         (dwarf_reg_to_regnum_or_error): Update prototype.
236         * dwarf2expr.c: #include "dwarf2loc.h".
237         (dwarf_block_to_sp_offset): Call dwarf_reg_to_regnum instead of
238         gdbarch_dwarf2_reg_to_regnum.
239         * gdbarch.sh (dwarf2_reg_to_regnum): Add comment.
240         * gdbarch.h: Regenerate.
241         * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Remove warning for bad
242         register.
243         * avr-tdep.c (avr_dwarf_reg_to_regnum): Ditto.
244         * cris-tdep.c (cris_dwarf2_reg_to_regnum): Ditto.
245         * bfin-tdep.c (bfin_reg_to_regnum): Fix error checking.
246         * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Improve error checking.
247         Remove warning for bad register.
248         * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Ditto.
249         * i386-tdep.c (i386_svr4_dwarf_reg_to_regnum): Renamed from
250         i386_svr4_reg_to_regnum.  Return -1 for bad registers.
251         (i386_svr4_reg_to_regnum): New function.
252         (i386_gdbarch_init): Update call to set_gdbarch_dwarf2_reg_to_regnum.
253         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Don't assert
254         on bad registers, return -1.
255         * msp430-tdep.c (msp430_dwarf2_reg_to_regnum): Improve error checking.
256         Remove warning for bad register.
257         * nios2-tdep.c: Add static assert for NIOS2_NUM_REGS.
258         (nios2_dwarf_reg_to_regnum): Fix off-by-one error.
259         Remove warning for bad register.  Return -1 for bad register.
260         * rl78-tdep.c (rl78_dwarf_reg_to_regnum): Don't flag an internal error
261         for bad register, return -1.
262         * rx-tdep.c (rx_dwarf_reg_to_regnum): Ditto.
263         * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Fix error result.
264         * mep-tdep.c (mep_debug_reg_to_regnum): Ditto.
265         * mips-tdep.c (mips_stab_reg_to_regnum): Ditto.
266         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
267         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Remove warning
268         for bad regs.
269         * xtensa-tdep.c (xtensa_reg_to_regnum): Remove internal error for
270         bad regs.  Fix error result.
271         * stabsread.c (stab_reg_to_regnum): Watch for negative regno.
272         (reg_value_complaint): Update complaint text.
273         * mdebugread.c (reg_value_complaint): New function.
274         (mdebug_reg_to_regnum): Rewrite to watch for bad reg numbers.
275
276 2015-10-26  Doug Evans  <dje@google.com>
277
278         PR python/18938
279         * cli/cli-cmds (source_script_fron_sctream): New arg file_to_open.
280         All callers updated.
281
282 2015-10-26  Doug Evans  <dje@google.com>
283
284         * psymtab.c (struct dump_psymtab_addrmap_data): Define.
285         (dump_psymtab_addrmap_1, dump_psymtab_addrmap): New functions.
286         (maintenance_print_psymbols): Print address map.
287
288 2015-10-26  Doug Evans  <dje@google.com>
289
290         * nat/linux-nat.h (__SIGRTMIN): Move here from gdbserver/linux-low.c.
291
292 2015-10-26  Doug Evans  <dje@google.com>
293
294         * common/gdb_wait.h (W_STOPCODE): Define, moved here from
295         gdbserver/linux-low.c.
296         (WSETSTOP): Simplify.
297
298 2015-10-26  Doug Evans  <dje@google.com>
299
300         * linux-thread-db.c (find_new_threads_callback): Ditto.
301         (thread_db_pid_to_str): Ditto.
302
303 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
304
305         * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Do not pass a
306         local char array to scm_mode_bits, use a cast instead.
307
308 2015-10-26  Simon Marchi  <simon.marchi@ericsson.com>
309
310         * tui/tui-data.c (tui_alloc_content): Don't check xmalloc
311         result.  Change type of element_block_ptr.  Change allocation to
312         use XNEWVEC.
313
314 2015-10-26  Luis Machado  <lgustavo@codesourcery.com>
315
316         * record-full.c (record_full_message_wrapper_safe): Pass empty string to
317         catch_errors call instead of NULL.
318
319 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
320
321         * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Pass non-const
322         char pointer to scm_mode_bits.
323
324 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
325
326         * symtab.c (default_make_symbol_completion_list_break_on_1): Add
327         cast.
328
329 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
330
331         * guile/scm-ports.c (gdbscm_memory_port_write): Declare new
332         "data" local variable and use it.
333
334 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
335
336         * guile/scm-symbol.c (gdbscm_lookup_global_symbol): Add
337         domain_enum cast.
338         (gdbscm_lookup_symbol): Likewise.
339
340 2015-10-25  Iain Buclaw  <ibuclaw@gdcproject.org>
341
342         * d-exp.y: Remove an obsolete comment and propagate the block
343         information to the produced expression.
344
345 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
346
347         * tui/tui-data.c (tui_add_to_source_windows): Remove void *
348         cast.
349         (tui_add_content_elements): Likewise.
350
351 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
352
353         * cli/cli-setshow.c (do_set_command): Constify p.
354
355 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
356
357         * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Replace
358         (void *) cast with (gdb_byte *).
359
360 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
361
362         * proc-service.c (ps_pdread): Add cast.
363
364 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
365
366         * sparc64-tdep.c (sparc64_store_arguments): Split assignment of
367         valbuf.
368
369 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
370
371         * ia64-tdep.c (ia64_pseudo_register_write): Remove cast.
372         (ia64_push_dummy_call): Remove cast and change type of "to" to
373         array of gdb_byte.
374
375 2015-10-23  Simon Marchi  <simon.marchi@polymtl.ca>
376
377         * linux-btrace.c (linux_enable_pt): Add cast to mmap return.
378
379 2015-10-23  Simon Marchi  <simon.marchi@ericsson.com>
380
381         * observer.h (observer_${event}_notification_stub): Add cast.
382
383 2015-10-23  Yao Qi  <yao.qi@linaro.org>
384
385         * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set
386         dsd.insn_count to zero.
387
388 2015-10-22  Pedro Alves  <palves@redhat.com>
389
390         * infrun.c (stop_after_trap): Delete.
391         (clear_proceed_status, handle_signal_stop, struct
392         infcall_control_state, save_infcall_control_state)
393         (restore_infcall_control_state): Remove references to
394         stop_after_trap.
395
396 2015-10-22  Simon Marchi  <simon.marchi@ericsson.com>
397
398         * python/python.c (_initialize_python): Add cast.
399
400 2015-10-22  Simon Marchi  <simon.marchi@ericsson.com>
401
402         * nto-tdep.c (nto_inferior_data): Add cast.
403
404 2015-10-22  Pedro Alves  <palves@redhat.com>
405
406         * windows-nat.c (do_initial_windows_stuff): Rewrite loop using
407         windows_wait and windows_resume directly instead of
408         wait_for_inferior and resume.
409
410 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
411
412         * xtensa-tdep.h (XTREG): Add casts.
413         (XTREG_END): Likewise.
414
415 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
416
417         * solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
418
419 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
420
421         * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
422
423 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
424
425         * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
426         buf to gdb_byte*.
427         (supply_32bit_reg): Add cast.
428         (mips64_fill_gregset): Likewise.
429
430 2015-10-21  Simon Marchi  <simon.marchi@polymtl.ca>
431
432         PR python/18073
433         * python/py-type.c (typy_get_composite): Allow returning a
434         function type.
435
436 2015-10-21  Keven Boell  <keven.boell@intel.com>
437
438         * dwarf2read.c (set_die_type): Add read of
439         DW_AT_allocated and DW_AT_associated.
440         * f-typeprint.c: New include of typeprint.h
441         (f_print_type): Add check for allocated/associated
442         status of type.
443         (f_type_print_varspec_suffix): Add check for
444         * gdbtypes.c (create_array_type_with_stride):
445         Add check for valid data location of type in
446         case allocated or associated attributes are set.
447         Length of an array should be only calculated if
448         allocated or associated is resolved as true.
449         (is_dynamic_type_internal): Add check for allocated/
450         associated.
451         (resolve_dynamic_array): Evaluate allocated/associated
452         properties.
453         * gdbtypes.h (enum dynamic_prop_node_kind): <DYN_PROP_ALLOCATED>
454         <DYN_PROP_ASSOCIATED>: New enums.
455         (TYPE_ALLOCATED_PROP, TYPE_ASSOCIATED_PROP): New macros.
456         (type_not_allocated): New function.
457         (type_not_associated): New function.
458         * valarith.c (value_subscripted_rvalue): Add check for
459         allocated/associated.
460         * valprint.c: New include of typeprint.h.
461         (valprint_check_validity): Add check for allocated/associated.
462         (value_check_printable): Add check for allocated/
463         associated.
464         * typeprint.h (val_print_not_allocated): New function.
465         (val_print_not_associated): New function.
466         * typeprint.c (val_print_not_allocated): New function.
467         (val_print_not_associated): New function.
468
469 2015-10-21  Antoine Tremblay  <antoine.tremblay@ericsson.com>
470
471         * Makefile.in: Add arm.c/o.
472         * arch/arm.c: New file.
473         * arch/arm.h: (IS_THUMB_ADDR): Move macro from arm-tdep.c.
474         (MAKE_THUMB_ADDR): Likewise.
475         (UNMAKE_THUMB_ADDR): Likewise.
476         * arm-tdep.c (int thumb_insn_size): Move to arm.c.
477         (IS_THUMB_ADDR): Move to arm.h.
478         (MAKE_THUMB_ADDR): Likewise.
479         (UNMAKE_THUMB_ADDR): Likewise.
480         * configure.tgt: Add arm.o to all ARM configs.
481
482 2015-10-21  Yao Qi  <yao.qi@linaro.org>
483
484         * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
485         Remove argument exp_vCont_s.
486         * gdb.base/range-stepping.exp: Callers updated.
487         * gdb.trace/range-stepping.exp: Likewise.
488
489 2015-10-21  Aleksandar Ristovski  <aristovski@qnx.com>
490
491         * gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
492         (nto_sniff_abi_note_section): New function.
493         (nto_elf_osabi_sniffer): Use new function to recognize nto specific
494         binary.
495
496 2015-10-21  Aleksandar Ristovski  <aristovski@qnx.com>
497
498         * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
499         (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
500         * nto-tdep.c (nto_new_inferior_data_reg): New definition.
501         (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
502         New functions.
503         (_initialize_nto_tdep): New forward declaration, new function.
504         * nto-tdep.h (struct nto_inferior_data): New struct.
505         (nto_inferior_data): New function declaration.
506
507 2015-10-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
508
509         * findvar.c (address_from_register): Check REGNUM validity.
510
511 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
512
513         * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
514         (init_procfs_targets): Wire new function.
515
516 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
517
518         * nto-procfs.c (sys/auxv.h): Include.
519         (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
520         * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
521         * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
522
523 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
524
525         * nto-procfs.c (nto_procfs_path): Rename to...
526         (nodestr): ... this, and change type.
527         (nto_node): Use new variable and logic accordingly.
528         (procfs_open_1): Use new variable name. Use local buffer to construct
529         procfrs path.
530         (procfs_pidlist): Use NODESTR to construct procfs path.
531         (procfs_files_info): Use NODESTR to output meaningful text.
532         (do_attach): Construct procfs using NODESTR.
533         (procfs_create_inferior): Compare pointer to NULL.
534
535 2015-10-19  Josh Stone  <jistone@redhat.com>
536
537         * linux-nat.c (linux_handle_syscall_trap): Always update entry/
538         return state, even when not actively catching syscalls at all.
539         (linux_handle_extended_wait): Mark syscall_state like an entry.
540         (wait_lwp): Set syscall_state ignored for other traps.
541         (linux_nat_filter_event): Likewise.
542
543 2015-10-19  Luis Machado  <lgustavo@codesourcery.com>
544
545         * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
546         when handling 'E', 'T', 'S', 'X' and 'W' packets.
547         Do not set rs->waiting_for_stop_reply back to 1.
548
549 2015-10-16  Aleksandar Ristovski  <aristovski@qnx.com>
550
551         * nto-procfs.c (common/filestuff.h): Include.
552         (procfs_can_use_hw_breakpoint): Fix enum name.
553         (procfs_open_1): Fix compiler warning.
554         (procfs_pidlist): Make static.
555         (procfs_meminfo): Make static, fix type name, add missing argument.
556         (procfs_store_registers): Make static.
557         (procfs_thread_info): Remove unused function.
558         (_initialize_procfs): Forward declare.
559
560 2015-10-16  Yao Qi  <yao.qi@arm.com>
561
562         * MAINTAINERS: Update my email address.
563
564 2015-10-15  Yao Qi  <yao.qi@linaro.org>
565
566         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
567         Call gdbarch_breakpoint_from_pc to instruction length.
568         (aarch64_linux_remove_hw_breakpoint): Likewise.
569         * common/common-regcache.h (regcache_register_size): Declare.
570         * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
571         (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
572         the process is 32bit, otherwise set alignment to 4.
573         (aarch64_handle_breakpoint): Update comments.
574         * regcache.c (regcache_register_size): New function.
575
576 2015-10-15  Aleksandar Ristovski  <aristovski@qnx.com>
577
578         * gdbarch.sh (core_regset_section): Remove.
579         * gdbarch.h: Regenerate.
580
581 2015-10-14  Yao Qi  <yao.qi@linaro.org>
582
583         * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
584         out of it.
585         (enum aarch64_memory_operand_type): New.
586
587 2015-10-13  David Edelsohn  <dje.gcc@gmail.com>
588
589         * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
590
591 2015-10-13  Pedro Alves  <palves@redhat.com>
592
593         * ada-lang.c (ada_enum_name): Constify local.
594         * ada-typeprint.c (print_range_bound): Constify locals.
595         * c-varobj.c (c_describe_child): Likewise.
596         * cli/cli-setshow.c (do_set_command): Likewise.
597         * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
598         * dwarf2read.c (find_file_and_directory): Likewise.
599         (anonymous_struct_prefix, dwarf2_name): Likewise.
600         * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
601         * go-lang.c (unpack_mangled_go_symbol): Likewise.
602         * jv-typeprint.c (java_type_print_base): Likewise.
603         * ser-tcp.c (net_open): Likewise.
604         * symfile.c (deduce_language_from_filename): Likewise.
605         * symtab.c (gdb_mangle_name): Likewise.
606         * tui/tui-io.c (tui_redisplay_readline): Likewise.
607
608 2015-10-13  Pedro Alves  <palves@redhat.com>
609
610         * infrun.c (restore_execution_direction): New function.
611         (fetch_inferior_event): Use it instead of
612         make_cleanup_restore_integer.
613         (execution_direction): Change type to enum
614         exec_direction_kind.
615         * infrun.h (execution_direction): Likewise.
616
617 2015-10-13  Pedro Alves  <palves@redhat.com>
618
619         * ada-lang.c (ada_value_primitive_packed_val): Constify
620         locals.  Use value_contents_writeable.  Remove casts.
621
622 2015-10-13  Pedro Alves  <palves@redhat.com>
623
624         * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
625         and alloca calls.
626
627 2015-10-13  Simon Marchi  <simon.marchi@polymtl.ca>
628
629         * lm32-tdep.c (lm32_push_dummy_call): Replace call to
630         write_memory with write_memory_unsigned_integer.
631
632 2015-10-13  Simon Marchi  <simon.marchi@polymtl.ca>
633
634         * solib-dsbt.c (cmp_name): Constify arguments.
635         * solib-frv.c (cmp_name): Likewise.
636         * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
637         * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
638         (bfd_lookup_symbol_from_dyn_symtab): Likewise.
639         (gdb_bfd_lookup_symbol): Likewise.
640         * solib.h (gdb_bfd_lookup_symbol): Likewise.
641         (gdb_bfd_lookup_symbol_from_symtab): Likewise.
642
643 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
644
645         * stack.c (parse_frame_specification): Remove message parameter,
646         replace with fixed string in function body, update function
647         comment.
648         (frame_info): Remove message to parse_frame_specification.
649         (select_frame_command): Likewise.
650
651 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
652
653         * stack.c (parse_frame_specification): Delete.
654         (parse_frame_specification_1): Rename to
655         parse_frame_specification.
656         (frame_info): Use parse_frame_specification.
657         (select_frame_command): Likewise.
658         (return_command): Use select_frame and print_stack_frame rather
659         than frame_command and select_frame_command.
660         (func_command): Use get_current_frame rather than
661         parse_frame_specification.
662
663 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
664
665         * stack.c (func_command): Return early when there is no ARG
666         string.
667
668 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
669
670         * stack.c: Include safe-ctype.h not ctype.h.
671         (parse_frame_specification): Use ISSPACE not isspace.
672         (backtrace_command): Use TOLOWER not tolower.
673
674 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
675
676         * mep-tdep.c (current_me_module): Add cast.
677         (mep_gdbarch_init): Likewise.
678
679 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
680
681         * m32c-tdep.c (m32c_move_reg_t): Replace with...
682         (m32c_write_reg_t): ...this and...
683         (m32c_read_reg_t): ...this.
684         (struct m32c_reg): Update types of read and write.
685         (m32c_raw_read): Change declaration type to m32c_read_reg_t and
686         adjust definition.
687         (m32c_banked_read): Likewise.
688         (m32c_sb_read): Likewise.
689         (m32c_part_read): Likewise.
690         (m32c_cat_read): Likewise.
691         (m32c_r3r2r1r0_read): Likewise.
692         (m32c_raw_write): Change declaration type to m32c_write_reg_t
693         and adjust definition.
694         (m32c_banked_write): Likewise.
695         (m32c_sb_write): Likewise.
696         (m32c_part_write): Likewise.
697         (m32c_cat_write): Likewise.
698         (m32c_r3r2r1r0_write): Likewise.
699
700 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
701
702         * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
703
704 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
705
706         * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
707         gdb_sys_no_syscall instead of -1.
708
709 2015-10-12  Yao Qi  <yao.qi@linaro.org>
710
711         * NEWS: Mention the change.
712
713 2015-10-12  Yao Qi  <yao.qi@linaro.org>
714
715         * arch/aarch64-insn.c (emit_load_store): Rename to ...
716         (aarch64_emit_load_store): ... it.  All callers updated.
717
718 2015-10-12  Yao Qi  <yao.qi@linaro.org>
719
720         * arch/aarch64-insn.c (emit_insn): Rename to ...
721         (aarch64_emit_insn): ... it.  All callers updated.
722
723 2015-10-12  Yao Qi  <yao.qi@linaro.org>
724
725         * aarch64-linux-tdep.c: Include arch-utils.h.
726         (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
727         set_gdbarch_displaced_step_copy_insn,
728         set_gdbarch_displaced_step_fixup,
729         set_gdbarch_displaced_step_free_closure,
730         set_gdbarch_displaced_step_location,
731         and set_gdbarch_displaced_step_hw_singlestep.
732         * aarch64-tdep.c (struct displaced_step_closure): New.
733         (struct aarch64_displaced_step_data): New.
734         (aarch64_displaced_step_b): New function.
735         (aarch64_displaced_step_b_cond): Likewise.
736         (aarch64_register): Likewise.
737         (aarch64_displaced_step_cb): Likewise.
738         (aarch64_displaced_step_tb): Likewise.
739         (aarch64_displaced_step_adr): Likewise.
740         (aarch64_displaced_step_ldr_literal): Likewise.
741         (aarch64_displaced_step_others): Likewise.
742         (aarch64_displaced_step_copy_insn): Likewise.
743         (aarch64_displaced_step_fixup): Likewise.
744         (aarch64_displaced_step_hw_singlestep): Likewise.
745         * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
746         (aarch64_displaced_step_copy_insn): Declare.
747         (aarch64_displaced_step_fixup): Declare.
748         (aarch64_displaced_step_hw_singlestep): Declare.
749         * arch/aarch64-insn.c (emit_insn): Moved from
750         gdbserver/linux-aarch64-low.c.
751         (emit_load_store): Likewise.
752         * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
753         gdbserver/linux-aarch64-low.c.
754         (struct aarch64_register): Likewise.
755         (struct aarch64_memory_operand): Likewise.
756         (ENCODE): Likewise.
757         (can_encode_int32): New macro.
758         (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
759         (emit_tb, emit_nop): Likewise.
760         (emit_insn): Declare.
761         (emit_load_store): Declare.
762
763 2015-10-12  Yao Qi  <yao.qi@linaro.org>
764
765         * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
766         gdbserver/linux-aarch64-low.c.
767         (aarch64_relocate_instruction): Likewise.
768         * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
769         (struct aarch64_insn_data): Moved from
770         gdbserver/linux-aarch64-low.c.
771         (struct aarch64_insn_visitor): Likewise.
772         (aarch64_relocate_instruction): Declare.
773
774 2015-10-12  Pierre-Marie de Rodat  <derodat@adacore.com>
775
776         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
777         EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
778         to the returned value.
779
780 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
781
782         * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
783         is large enough for BIT_SIZE.  Update function comment.
784
785 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
786
787         * ada-lang.c (ada_value_primitive_packed_val): Move
788         src_len variable to local block where used.  Override
789         BIT_SIZE if bigger than size of resolved type.
790
791 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
792
793         * gdbtypes.h (is_scalar_type): Add extern declaration.
794         * gdbtypes.c (is_scalar_type): Make non-static.
795         * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
796         to compute IS_SCALAR instead of doing it ourselves.
797
798 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
799
800         * ada-lang.c (ada_value_primitive_packed_val): Rework handling
801         of case where TYPE is dynamic.
802
803 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
804
805         * ada-lang.c (ada_unpack_from_contents): New function,
806         extracted from ada_value_primitive_packed_val.
807         (ada_value_primitive_packed_val): Replace extracted out code
808         by call to ada_unpack_from_contents.
809
810 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
811
812         * ada-lang.c (ada_value_primitive_packed_val): Reorder local
813         variable declarations.
814
815 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
816
817         * ada-lang.c (ada_value_primitive_packed_val): Change the type
818         of local variables src and unpacked to "gdb_type *" instead of
819         "unsigned char *".
820
821 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
822
823         * ada-lang.c (ada_value_primitive_packed_val): Make the name
824         of various local variables more explicit and consistent.
825         No real code change otherwise.
826
827 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
828
829         * i386-tdep.h (struct gdbarch_tdep): Change type of
830         register_reggroup_p to gdbarch_register_reggroup_p_ftype.
831
832 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
833
834         * cris-tdep.c (struct instruction_environment): Change type of
835         byte_order to enum bfd_endian.
836
837 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
838
839         * arm-linux-tdep.c (arm_canonicalize_syscall): Add
840         enum gdb_syscall casts.
841
842 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
843
844         * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
845         * arm-tdep.c (struct stack_item): Likewise.
846         (push_stack_item): Add gdb_byte* cast.
847         * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
848         (push_stack_item): Add gdb_byte* cast.
849         * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
850         and add cast.
851         * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
852         (push_stack_item): Add gdb_byte* cast.
853         * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
854         add cast.
855         * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
856         gdb_byte*.
857         * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
858         gdb_byte* and remove unnecessary cast.
859         (h8300h_extract_return_value): Likewise.
860         (h8300_store_return_value): Change type of valbuf to gdb_byte*.
861         (h8300h_store_return_value): Likewise.
862         * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
863         gdb_byte* and remove unnecessary cast.
864         * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
865         and add cast.
866         * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
867         gdb_byte* and remove unnecessary cast.
868         (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
869         valbuf.
870         * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
871         (mep_pseudo_cr64_read): Likewise.
872         (mep_pseudo_csr_write): Likewise.
873         (mep_pseudo_cr32_write): Likewise.
874         (mep_pseudo_cr64_write): Likewise.
875         * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
876         gdb_byte* and add cast.
877         * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
878         gdb_byte* and remove unnecessary cast.
879         (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
880         valbuf.
881         * p-valprint.c (print_scalar_formatted): Change type of valaddr to
882         gdb_byte*.
883         * printcmd.c (void): Likewise.
884         * python/py-inferior.c (infpy_read_memory): Change type of buffer to
885         gdb_byte* and add cast.
886         (infpy_write_memory): Likewise.
887         (infpy_search_memory): Likewise.
888         * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
889         and add cast.
890         (regcache_raw_write_unsigned): Likewise.
891         (regcache_cooked_write_signed): Likewise.
892         (regcache_cooked_write_unsigned): Likewise.
893         * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
894         gdb_byte*.
895
896 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
897
898         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
899         * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
900
901 2015-10-09  Eli Zaretskii  <eliz@gnu.org>
902
903         * stack.c (print_stack_frame):
904         * utils.c (printchar): Fix typos in commentary.
905
906 2015-10-08  Iain Buclaw  <ibuclaw@gdcproject.org>
907
908         * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
909         (PostfixExpression): Support `expr.sizeof' expressions.
910         (PrimaryExpression): Support `typeof(expr)' expressions.
911
912 2015-10-08  Maciej W. Rozycki  <macro@imgtec.com>
913
914         * MAINTAINERS: Update my email address.
915
916 2015-10-08  Markus Metzger  <markus.t.metzger@intel.com>
917
918         * record-btrace.c (record_btrace_resume): Fix void return.
919
920 2015-10-07  Yao Qi  <yao.qi@linaro.org>
921
922         * aarch64-tdep.c: Include opcode/aarch64.h.
923         (submask): Move it above.
924         (bit): Likewise.
925         (bits): Likewise.
926         (aarch64_software_single_step): Call aarch64_decode_insn.
927         Decode instruction by aarch64_inst instead of using
928         aarch64_decode_bcond and decode_masked_match.
929
930 2015-10-06  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
931
932         * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
933         only when the file is binary.
934
935 2015-10-02  James Bowman  <james.bowman@ftdichip.com>
936
937         * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
938         subroutine handling.
939
940 2015-10-01  Simon Marchi  <simon.marchi@ericsson.com>
941
942         * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
943
944 2015-09-30  Doug Evans  <dje@google.com>
945
946         * dwarf2read.c (setup_type_unit_groups): Add comment.
947
948 2015-09-30  Pedro Alves  <palves@redhat.com>
949
950         * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
951         * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
952         (x86_linux_create_target): Don't install
953         x86_linux_always_non_stop_p.
954
955 2015-09-30  Don Breazeal  <donb@codesourcery.com>
956
957         * remote.c (remote_parse_stop_reply): Call strprefix instead
958         of strncmp.
959
960 2015-09-30  Simon Marchi  <simon.marchi@ericsson.com>
961
962         * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
963         * gdbarch.h: Regenerate.
964         * i386-tdep.c (i386_gdbarch_init): Remove cast to
965         struct gdbarch_tdep_info *.
966         * mips-tdep.c (mips_gdbarch_init): Likewise.
967         * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
968         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
969         * spu-multiarch.c (spu_gdbarch): Likewise.
970
971 2015-09-30  Kevin Buettner  <kevinb@redhat.com>
972
973         * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
974         record a NULL value.
975
976 2015-09-29  Kevin Buettner  <kevinb@redhat.com>
977
978         * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
979         and union arguments the same as pointer arguments when determining
980         size of argument.
981
982 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
983
984         * ft32-tdep.c: #include "opcode/ft32.h".
985         Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
986         (ft32_analyze_prologue): Use FT32_* macros.
987
988 2015-09-28  Simon Marchi  <simon.marchi@ericsson.com>
989
990         * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
991         comment.
992
993 2015-09-28  Doug Evans  <dje@google.com>
994
995         * MAINTAINERS: Add Iain Buclaw as D language maintainer.
996
997 2015-09-28  Doug Evans  <dje@google.com>
998
999         * common/filestuff.c (make_cleanup_close): Update comment.
1000
1001 2015-09-26  Simon Marchi  <simon.marchi@polymtl.ca>
1002
1003         * btrace.c (parse_xml_btrace_block): Fix cast of
1004         xml_find_attribute's return value.
1005         * memory-map.c (memory_map_start_memory): Likewise.
1006         * solib-svr4.c (library_list_start_library): Likewise.
1007         * solib-target.c (library_list_start_segment): Likewise.
1008         (library_list_start_section): Likewise.
1009         * tracepoint.c (traceframe_info_start_memory): Likewise.
1010
1011 2015-09-26  Iain Buclaw  <ibuclaw@gdcproject.org>
1012
1013         * d-namespace.c (d_lookup_symbol): New arg langdef.
1014         All callers updated.  Support looking up symbol as a primitive type.
1015         (lookup_module_scope): New arg langdef.  All callers updated.
1016         Call d_lookup_symbol directly for simple bare symbols.
1017
1018 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
1019
1020         * macrocmd.c (print_macro_callback): Add cast(s).
1021         * macrotab.c (macro_bcache_str): Likewise.
1022         (new_macro_definition): Likewise.
1023         * main.c (captured_main): Likewise.
1024         * maint.c (print_bfd_section_info): Likewise.
1025         * mdebugread.c (mdebug_build_psymtabs): Likewise.
1026         (basic_type): Likewise.
1027         * memattr.c (mem_region_cmp): Likewise.
1028         * memory-map.c (memory_map_start_memory): Likewise.
1029         (memory_map_end_memory): Likewise.
1030         (memory_map_start_property): Likewise.
1031         (memory_map_end_property): Likewise.
1032         (clear_result): Likewise.
1033         * memrange.c (compare_mem_ranges): Likewise.
1034         * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
1035         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
1036         * mi/mi-console.c (mi_console_file_delete): Likewise.
1037         (mi_console_file_fputs): Likewise.
1038         (mi_console_raw_packet): Likewise.
1039         (mi_console_file_flush): Likewise.
1040         (mi_console_set_raw): Likewise.
1041         * mi/mi-interp.c (mi_interpreter_resume): Likewise.
1042         (mi_new_thread): Likewise.
1043         (mi_thread_exit): Likewise.
1044         (mi_record_changed): Likewise.
1045         (mi_inferior_added): Likewise.
1046         (mi_inferior_appeared): Likewise.
1047         (mi_inferior_exit): Likewise.
1048         (mi_inferior_removed): Likewise.
1049         (mi_interp_data): Likewise.
1050         (mi_on_normal_stop): Likewise.
1051         (mi_traceframe_changed): Likewise.
1052         (mi_tsv_created): Likewise.
1053         (mi_tsv_deleted): Likewise.
1054         (mi_tsv_modified): Likewise.
1055         (mi_breakpoint_created): Likewise.
1056         (mi_breakpoint_deleted): Likewise.
1057         (mi_breakpoint_modified): Likewise.
1058         (mi_output_running_pid): Likewise.
1059         (mi_inferior_count): Likewise.
1060         (mi_solib_loaded): Likewise.
1061         (mi_solib_unloaded): Likewise.
1062         (mi_command_param_changed): Likewise.
1063         (mi_memory_changed): Likewise.
1064         (report_initial_inferior): Likewise.
1065         (mi_ui_out): Likewise.
1066         (mi_set_logging): Likewise.
1067         * mi/mi-main.c (collect_cores): Likewise.
1068         (print_one_inferior): Likewise.
1069         (free_vector_of_ints): Likewise.
1070         (free_splay_tree): Likewise.
1071         (mi_execute_command): Likewise.
1072         * mi/mi-out.c (mi_table_body): Likewise.
1073         (mi_table_end): Likewise.
1074         (mi_table_header): Likewise.
1075         (mi_begin): Likewise.
1076         (mi_end): Likewise.
1077         (mi_field_int): Likewise.
1078         (mi_field_string): Likewise.
1079         (mi_field_fmt): Likewise.
1080         (mi_flush): Likewise.
1081         (mi_redirect): Likewise.
1082         (field_separator): Likewise.
1083         (mi_open): Likewise.
1084         (mi_close): Likewise.
1085         (mi_out_buffered): Likewise.
1086         (mi_out_rewind): Likewise.
1087         (mi_out_put): Likewise.
1088         (mi_version): Likewise.
1089         (mi_out_data_dtor): Likewise.
1090         * mi/mi-parse.c (mi_parse_cleanup): Likewise.
1091         * microblaze-tdep.c (microblaze_frame_cache): Likewise.
1092         * minidebug.c (lzma_open): Likewise.
1093         (lzma_pread): Likewise.
1094         (lzma_close): Likewise.
1095         (lzma_stat): Likewise.
1096         * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1097         * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
1098         (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
1099         * mips-tdep.c (mips_insn16_frame_cache): Likewise.
1100         (mips_micro_frame_cache): Likewise.
1101         (mips_insn32_frame_cache): Likewise.
1102         (mips_stub_frame_cache): Likewise.
1103         (gdb_print_insn_mips): Likewise.
1104         (value_of_mips_user_reg): Likewise.
1105         (mips_gdbarch_init): Likewise.
1106         * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
1107         * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
1108         (mipsnbsd_supply_gregset): Likewise.
1109         * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
1110         (am33_collect_gregset_method): Likewise.
1111         (am33_collect_fpregset_method): Likewise.
1112         * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
1113         * moxie-tdep.c (moxie_frame_cache): Likewise.
1114         * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
1115         (msp430_analyze_frame_prologue): Likewise.
1116         * mt-tdep.c (mt_frame_unwind_cache): Likewise.
1117         * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
1118         (nios2_collect_gregset): Likewise.
1119         * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
1120         (nios2_stub_frame_cache): Likewise.
1121         * objc-lang.c (find_methods): Likewise.
1122         * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1123         (get_objfile_pspace_data): Likewise.
1124         (get_objfile_bfd_data): Likewise.
1125         (objfile_bfd_data_free): Likewise.
1126         (add_to_objfile_sections): Likewise.
1127         (do_free_objfile_cleanup): Likewise.
1128         (resume_section_map_updates_cleanup): Likewise.
1129         * opencl-lang.c (builtin_opencl_type): Likewise.
1130         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1131         * osdata.c (osdata_start_osdata): Likewise.
1132         (osdata_start_item): Likewise.
1133         (osdata_start_column): Likewise.
1134         (osdata_end_column): Likewise.
1135         (clear_parsing_data): Likewise.
1136         (osdata_free_cleanup): Likewise.
1137         * parse.c (type_stack_cleanup): Likewise.
1138         (exp_uses_objfile_iter): Likewise.
1139         * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
1140         (ppc_linux_collect_gregset): Likewise.
1141         (ppu2spu_prev_arch): Likewise.
1142         (ppu2spu_this_id): Likewise.
1143         (ppu2spu_prev_register): Likewise.
1144         (ppu2spu_unwind_register): Likewise.
1145         (ppu2spu_sniffer): Likewise.
1146         (ppu2spu_dealloc_cache): Likewise.
1147         (ppc_linux_init_abi): Likewise.
1148         * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
1149         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1150         * progspace.c (restore_program_space): Likewise.
1151         * psymtab.c (find_pc_sect_psymtab): Likewise.
1152         (compare_psymbols): Likewise.
1153         (psymbol_bcache_full): Likewise.
1154         (allocate_psymtab): Likewise.
1155         (discard_psymtabs_upto): Likewise.
1156         * python/py-block.c (set_block): Likewise.
1157         (del_objfile_blocks): Likewise.
1158         * python/py-breakpoint.c (build_bp_list): Likewise.
1159         * python/py-inferior.c (inferior_to_inferior_object): Likewise.
1160         (build_inferior_list): Likewise.
1161         (py_free_inferior): Likewise.
1162         * python/py-objfile.c (py_free_objfile): Likewise.
1163         (objfile_to_objfile_object): Likewise.
1164         * python/py-prettyprint.c (py_restore_tstate): Likewise.
1165         * python/py-progspace.c (py_free_pspace): Likewise.
1166         (pspace_to_pspace_object): Likewise.
1167         * python/py-symbol.c (set_symbol): Likewise.
1168         (del_objfile_symbols): Likewise.
1169         * python/py-symtab.c (set_sal): Likewise.
1170         (set_symtab): Likewise.
1171         (del_objfile_symtab): Likewise.
1172         (del_objfile_sal): Likewise.
1173         * python/py-type.c (save_objfile_types): Likewise.
1174         (set_type): Likewise.
1175         * python/py-unwind.c (pyuw_prev_register): Likewise.
1176         (pyuw_on_new_gdbarch): Likewise.
1177         * python/py-utils.c (py_decref): Likewise.
1178         (py_xdecref): Likewise.
1179         (gdb_py_generic_dict): Likewise.
1180         * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
1181         (gdbpy_clone_xmethod_worker_data): Likewise.
1182         (gdbpy_get_xmethod_arg_types): Likewise.
1183         (gdbpy_get_xmethod_result_type): Likewise.
1184         (gdbpy_invoke_xmethod): Likewise.
1185         * python/python.c (gdbpy_apply_type_printers): Likewise.
1186         (gdbpy_free_type_printers): Likewise.
1187         * record-btrace.c (record_btrace_disable_callback): Likewise.
1188         (bfcache_hash): Likewise.
1189         (bfcache_eq): Likewise.
1190         (btrace_get_frame_function): Likewise.
1191         (record_btrace_frame_unwind_stop_reason): Likewise.
1192         (record_btrace_frame_this_id): Likewise.
1193         (record_btrace_frame_prev_register): Likewise.
1194         (record_btrace_frame_dealloc_cache): Likewise.
1195         * record-full.c (record_full_message_wrapper): Likewise.
1196         (record_full_save_cleanups): Likewise.
1197         * regcache.c (regcache_descr): Likewise.
1198         (do_regcache_xfree): Likewise.
1199         (do_regcache_invalidate): Likewise.
1200         (do_cooked_read): Likewise.
1201         (regcache_transfer_regset): Likewise.
1202         * reggroups.c (reggroup_add): Likewise.
1203         (reggroup_next): Likewise.
1204         (reggroup_prev): Likewise.
1205         * remote-fileio.c (do_remote_fileio_request): Likewise.
1206         * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
1207         (do_notif_event_xfree): Likewise.
1208         * remote.c (get_remote_arch_state): Likewise.
1209         (remote_pspace_data_cleanup): Likewise.
1210         (get_remote_exec_file): Likewise.
1211         (set_pspace_remote_exec_file): Likewise.
1212         (compare_pnums): Likewise.
1213         (clear_threads_listing_context): Likewise.
1214         (remote_newthread_step): Likewise.
1215         (start_thread): Likewise.
1216         (end_thread): Likewise.
1217         (remove_child_of_pending_fork): Likewise.
1218         (remove_stop_reply_for_inferior): Likewise.
1219         (remove_stop_reply_of_remote_state): Likewise.
1220         (remote_notif_remove_once_on_match): Likewise.
1221         (stop_reply_match_ptid_and_ws): Likewise.
1222         (kill_child_of_pending_fork): Likewise.
1223         (register_remote_g_packet_guess): Likewise.
1224         (remote_read_description_p): Likewise.
1225         (remote_read_description): Likewise.
1226         (free_actions_list_cleanup_wrapper): Likewise.
1227         (remote_async_serial_handler): Likewise.
1228         * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
1229         (rl78_analyze_frame_prologue): Likewise.
1230         * rs6000-tdep.c (ppc_supply_gregset): Likewise.
1231         (ppc_supply_fpregset): Likewise.
1232         (ppc_supply_vsxregset): Likewise.
1233         (ppc_supply_vrregset): Likewise.
1234         (ppc_collect_gregset): Likewise.
1235         (ppc_collect_fpregset): Likewise.
1236         (ppc_collect_vsxregset): Likewise.
1237         (ppc_collect_vrregset): Likewise.
1238         (e500_move_ev_register): Likewise.
1239         (do_regcache_raw_write): Likewise.
1240         (rs6000_frame_cache): Likewise.
1241         (rs6000_epilogue_frame_cache): Likewise.
1242         (rs6000_gdbarch_init): Likewise.
1243         * rx-tdep.c (rx_get_opcode_byte): Likewise.
1244         (rx_analyze_frame_prologue): Likewise.
1245         (rx_frame_type): Likewise.
1246         (rx_frame_sniffer_common): Likewise.
1247         * s390-linux-tdep.c (s390_check_for_saved): Likewise.
1248         (s390_frame_unwind_cache): Likewise.
1249         (s390_stub_frame_unwind_cache): Likewise.
1250         (s390_sigtramp_frame_unwind_cache): Likewise.
1251         * score-tdep.c (score_make_prologue_cache): Likewise.
1252         * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
1253         (sentinel_frame_prev_arch): Likewise.
1254         * ser-base.c (fd_event): Likewise.
1255         (push_event): Likewise.
1256         (ser_base_write): Likewise.
1257         * ser-pipe.c (pipe_close): Likewise.
1258         * serial.c (serial_write): Likewise.
1259         * sh-tdep.c (sh_frame_cache): Likewise.
1260         (sh_stub_this_id): Likewise.
1261         * sh64-tdep.c (sh64_frame_cache): Likewise.
1262         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
1263         (library_list_start_library): Likewise.
1264         (library_list_start_list): Likewise.
1265         (solib_aix_free_library_list): Likewise.
1266         * solib-darwin.c (get_darwin_info): Likewise.
1267         * solib-dsbt.c (get_dsbt_info): Likewise.
1268         * solib-spu.c (append_ocl_sos): Likewise.
1269         * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1270         (get_svr4_info): Likewise.
1271         (library_list_start_library): Likewise.
1272         (svr4_library_list_start_list): Likewise.
1273         (hash_probe_and_action): Likewise.
1274         (equal_probe_and_action): Likewise.
1275         (svr4_update_solib_event_breakpoint): Likewise.
1276         (set_solib_svr4_fetch_link_map_offsets): Likewise.
1277         (svr4_fetch_link_map_offsets): Likewise.
1278         (svr4_have_link_map_offsets): Likewise.
1279         * solib-target.c (library_list_start_segment): Likewise.
1280         (library_list_start_section): Likewise.
1281         (library_list_start_library): Likewise.
1282         (library_list_end_library): Likewise.
1283         (library_list_start_list): Likewise.
1284         (solib_target_free_library_list): Likewise.
1285         * solib.c (solib_ops): Likewise.
1286         (set_solib_ops): Likewise.
1287         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1288         * sparc-tdep.c (sparc_frame_cache): Likewise.
1289         (sparc32_frame_cache): Likewise.
1290         (sparc32_supply_gregset): Likewise.
1291         (sparc32_collect_gregset): Likewise.
1292         (sparc32_supply_fpregset): Likewise.
1293         (sparc32_collect_fpregset): Likewise.
1294         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1295         * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1296         (sparc64_collect_gregset): Likewise.
1297         (sparc64_supply_fpregset): Likewise.
1298         (sparc64_collect_fpregset): Likewise.
1299         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
1300         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
1301         * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
1302         (sparc64obsd_trapframe_cache): Likewise.
1303         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
1304         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
1305         * spu-multiarch.c (spu_gdbarch): Likewise.
1306         * spu-tdep.c (spu_frame_unwind_cache): Likewise.
1307         (spu2ppu_prev_arch): Likewise.
1308         (spu2ppu_this_id): Likewise.
1309         (spu2ppu_prev_register): Likewise.
1310         (spu2ppu_dealloc_cache): Likewise.
1311         (spu_dis_asm_print_address): Likewise.
1312         (gdb_print_insn_spu): Likewise.
1313         (spu_get_overlay_table): Likewise.
1314         * stabsread.c (rs6000_builtin_type): Likewise.
1315         * stack.c (do_print_variable_and_value): Likewise.
1316         * stap-probe.c (get_stap_base_address_1): Likewise.
1317         * symfile-debug.c (debug_qf_has_symbols): Likewise.
1318         (debug_qf_find_last_source_symtab): Likewise.
1319         (debug_qf_forget_cached_source_info): Likewise.
1320         (debug_qf_map_symtabs_matching_filename): Likewise.
1321         (debug_qf_lookup_symbol): Likewise.
1322         (debug_qf_print_stats): Likewise.
1323         (debug_qf_dump): Likewise.
1324         (debug_qf_relocate): Likewise.
1325         (debug_qf_expand_symtabs_for_function): Likewise.
1326         (debug_qf_expand_all_symtabs): Likewise.
1327         (debug_qf_expand_symtabs_with_fullname): Likewise.
1328         (debug_qf_map_matching_symbols): Likewise.
1329         (debug_qf_expand_symtabs_matching): Likewise.
1330         (debug_qf_find_pc_sect_compunit_symtab): Likewise.
1331         (debug_qf_map_symbol_filenames): Likewise.
1332         (debug_sym_get_probes): Likewise.
1333         (debug_sym_new_init): Likewise.
1334         (debug_sym_init): Likewise.
1335         (debug_sym_read): Likewise.
1336         (debug_sym_read_psymbols): Likewise.
1337         (debug_sym_finish): Likewise.
1338         (debug_sym_offsets): Likewise.
1339         (debug_sym_read_linetable): Likewise.
1340         (debug_sym_relocate): Likewise.
1341         (uninstall_symfile_debug_logging): Likewise.
1342         * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
1343         * symfile.c (place_section): Likewise.
1344         (add_section_size_callback): Likewise.
1345         (load_progress): Likewise.
1346         (load_section_callback): Likewise.
1347         (clear_memory_write_data): Likewise.
1348         (allocate_symtab): Likewise.
1349         * symmisc.c (maintenance_expand_file_matcher): Likewise.
1350         * symtab.c (lookup_symtab_callback): Likewise.
1351         (hash_demangled_name_entry): Likewise.
1352         (eq_demangled_name_entry): Likewise.
1353         (get_symbol_cache): Likewise.
1354         (symbol_cache_cleanup): Likewise.
1355         (set_symbol_cache_size): Likewise.
1356         (symbol_cache_flush): Likewise.
1357         (maintenance_print_symbol_cache): Likewise.
1358         (maintenance_print_symbol_cache_statistics): Likewise.
1359         (delete_filename_seen_cache): Likewise.
1360         (output_partial_symbol_filename): Likewise.
1361         (search_symbols_file_matches): Likewise.
1362         (search_symbols_name_matches): Likewise.
1363         (do_free_completion_list): Likewise.
1364         (maybe_add_partial_symtab_filename): Likewise.
1365         (get_main_info): Likewise.
1366         (main_info_cleanup): Likewise.
1367         * target-dcache.c (target_dcache_cleanup): Likewise.
1368         (target_dcache_init_p): Likewise.
1369         (target_dcache_invalidate): Likewise.
1370         (target_dcache_get): Likewise.
1371         (target_dcache_get_or_init): Likewise.
1372         * target-descriptions.c (target_find_description): Likewise.
1373         (tdesc_find_type): Likewise.
1374         (tdesc_data_cleanup): Likewise.
1375         (tdesc_find_arch_register): Likewise.
1376         (tdesc_register_name): Likewise.
1377         (tdesc_register_type): Likewise.
1378         (tdesc_register_reggroup_p): Likewise.
1379         (set_tdesc_pseudo_register_name): Likewise.
1380         (set_tdesc_pseudo_register_type): Likewise.
1381         (set_tdesc_pseudo_register_reggroup_p): Likewise.
1382         (tdesc_use_registers): Likewise.
1383         (free_target_description): Likewise.
1384         * target-memory.c (compare_block_starting_address): Likewise.
1385         (cleanup_request_data): Likewise.
1386         (cleanup_write_requests_vector): Likewise.
1387         * target.c (open_target): Likewise.
1388         (cleanup_restore_target_terminal): Likewise.
1389         (free_memory_read_result_vector): Likewise.
1390         * thread.c (disable_thread_stack_temporaries): Likewise.
1391         (finish_thread_state_cleanup): Likewise.
1392         (do_restore_current_thread_cleanup): Likewise.
1393         (restore_current_thread_cleanup_dtor): Likewise.
1394         (set_thread_refcount): Likewise.
1395         (tp_array_compar): Likewise.
1396         (do_captured_thread_select): Likewise.
1397         * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
1398         (tic6x_stub_this_id): Likewise.
1399         * tilegx-tdep.c (tilegx_frame_cache): Likewise.
1400         * top.c (do_restore_instream_cleanup): Likewise.
1401         (gdb_readline_wrapper_cleanup): Likewise.
1402         (kill_or_detach): Likewise.
1403         (print_inferior_quit_action): Likewise.
1404         * tracefile-tfile.c (match_blocktype): Likewise.
1405         (build_traceframe_info): Likewise.
1406         * tracefile.c (trace_file_writer_xfree): Likewise.
1407         * tracepoint.c (memrange_cmp): Likewise.
1408         (do_collect_symbol): Likewise.
1409         (do_clear_collection_list): Likewise.
1410         (do_restore_current_traceframe_cleanup): Likewise.
1411         (restore_current_traceframe_cleanup_dtor): Likewise.
1412         (free_current_marker): Likewise.
1413         (traceframe_info_start_memory): Likewise.
1414         (traceframe_info_start_tvar): Likewise.
1415         (free_result): Likewise.
1416         * tramp-frame.c (tramp_frame_cache): Likewise.
1417         * tui/tui-file.c (tui_file_delete): Likewise.
1418         (tui_fileopen): Likewise.
1419         (tui_sfileopen): Likewise.
1420         (tui_file_isatty): Likewise.
1421         (tui_file_rewind): Likewise.
1422         (tui_file_put): Likewise.
1423         (tui_file_fputs): Likewise.
1424         (tui_file_get_strbuf): Likewise.
1425         (tui_file_adjust_strbuf): Likewise.
1426         (tui_file_flush): Likewise.
1427         * tui/tui-layout.c (make_command_window): Likewise.
1428         (make_data_window): Likewise.
1429         (show_source_disasm_command): Likewise.
1430         (show_data): Likewise.
1431         (make_source_or_disasm_window): Likewise.
1432         (show_source_or_disasm_and_command): Likewise.
1433         * tui/tui-out.c (tui_field_int): Likewise.
1434         (tui_field_string): Likewise.
1435         (tui_field_fmt): Likewise.
1436         (tui_text): Likewise.
1437         * typeprint.c (hash_typedef_field): Likewise.
1438         (eq_typedef_field): Likewise.
1439         (do_free_typedef_hash): Likewise.
1440         (copy_typedef_hash_element): Likewise.
1441         (do_free_global_table): Likewise.
1442         (find_global_typedef): Likewise.
1443         (find_typedef_in_hash): Likewise.
1444         * ui-file.c (ui_file_write_for_put): Likewise.
1445         (do_ui_file_xstrdup): Likewise.
1446         (mem_file_delete): Likewise.
1447         (mem_file_rewind): Likewise.
1448         (mem_file_put): Likewise.
1449         (mem_file_write): Likewise.
1450         (stdio_file_delete): Likewise.
1451         (stdio_file_flush): Likewise.
1452         (stdio_file_read): Likewise.
1453         (stdio_file_write): Likewise.
1454         (stdio_file_write_async_safe): Likewise.
1455         (stdio_file_fputs): Likewise.
1456         (stdio_file_isatty): Likewise.
1457         (stdio_file_fseek): Likewise.
1458         (tee_file_delete): Likewise.
1459         (tee_file_flush): Likewise.
1460         (tee_file_write): Likewise.
1461         (tee_file_fputs): Likewise.
1462         (tee_file_isatty): Likewise.
1463         * ui-out.c (do_cleanup_table_end): Likewise.
1464         (do_cleanup_end): Likewise.
1465         * user-regs.c (user_reg_add): Likewise.
1466         (user_reg_map_name_to_regnum): Likewise.
1467         (usernum_to_user_reg): Likewise.
1468         (maintenance_print_user_registers): Likewise.
1469         * utils.c (do_bfd_close_cleanup): Likewise.
1470         (do_fclose_cleanup): Likewise.
1471         (do_obstack_free): Likewise.
1472         (do_ui_file_delete): Likewise.
1473         (do_ui_out_redirect_pop): Likewise.
1474         (do_free_section_addr_info): Likewise.
1475         (restore_integer): Likewise.
1476         (do_unpush_target): Likewise.
1477         (do_htab_delete_cleanup): Likewise.
1478         (do_restore_ui_file): Likewise.
1479         (do_value_free): Likewise.
1480         (do_free_so): Likewise.
1481         (free_current_contents): Likewise.
1482         (do_regfree_cleanup): Likewise.
1483         (core_addr_hash): Likewise.
1484         (core_addr_eq): Likewise.
1485         (do_free_char_ptr_vec): Likewise.
1486         * v850-tdep.c (v850_frame_cache): Likewise.
1487         * varobj.c (do_free_variable_cleanup): Likewise.
1488         * vax-tdep.c (vax_supply_gregset): Likewise.
1489         (vax_frame_cache): Likewise.
1490         * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
1491         * xml-support.c (gdb_xml_body_text): Likewise.
1492         (gdb_xml_values_cleanup): Likewise.
1493         (gdb_xml_start_element): Likewise.
1494         (gdb_xml_start_element_wrapper): Likewise.
1495         (gdb_xml_end_element): Likewise.
1496         (gdb_xml_end_element_wrapper): Likewise.
1497         (gdb_xml_cleanup): Likewise.
1498         (gdb_xml_fetch_external_entity): Likewise.
1499         (gdb_xml_parse_attr_enum): Likewise.
1500         (xinclude_start_include): Likewise.
1501         (xinclude_end_include): Likewise.
1502         (xml_xinclude_default): Likewise.
1503         (xml_xinclude_start_doctype): Likewise.
1504         (xml_xinclude_end_doctype): Likewise.
1505         (xml_xinclude_cleanup): Likewise.
1506         (xml_fetch_content_from_file): Likewise.
1507         * xml-syscall.c (free_syscalls_info): Likewise.
1508         (syscall_start_syscall): Likewise.
1509         * xml-tdesc.c (tdesc_end_arch): Likewise.
1510         (tdesc_end_osabi): Likewise.
1511         (tdesc_end_compatible): Likewise.
1512         (tdesc_start_target): Likewise.
1513         (tdesc_start_feature): Likewise.
1514         (tdesc_start_reg): Likewise.
1515         (tdesc_start_union): Likewise.
1516         (tdesc_start_struct): Likewise.
1517         (tdesc_start_flags): Likewise.
1518         (tdesc_start_field): Likewise.
1519         (tdesc_start_vector): Likewise.
1520         (fetch_available_features_from_target): Likewise.
1521         * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
1522         * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
1523         (xtensa_frame_cache): Likewise.
1524         (xtensa_frame_prev_register): Likewise.
1525         (xtensa_extract_return_value): Likewise.
1526
1527 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
1528
1529         * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
1530         (aarch64_make_stub_cache): Likewise.
1531         (value_of_aarch64_user_reg): Likewise.
1532         * ada-lang.c (ada_inferior_data_cleanup): Likewise.
1533         (get_ada_inferior_data): Likewise.
1534         (get_ada_pspace_data): Likewise.
1535         (ada_pspace_data_cleanup): Likewise.
1536         (ada_complete_symbol_matcher): Likewise.
1537         (ada_exc_search_name_matches): Likewise.
1538         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
1539         (get_ada_tasks_inferior_data): Likewise.
1540         * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
1541         (splay_obstack_alloc): Likewise.
1542         (splay_obstack_free): Likewise.
1543         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
1544         (alpha_linux_collect_gregset): Likewise.
1545         (alpha_linux_supply_fpregset): Likewise.
1546         (alpha_linux_collect_fpregset): Likewise.
1547         * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1548         * alpha-tdep.c (alpha_lds): Likewise.
1549         (alpha_sts): Likewise.
1550         (alpha_sigtramp_frame_unwind_cache): Likewise.
1551         (alpha_heuristic_frame_unwind_cache): Likewise.
1552         (alpha_supply_int_regs): Likewise.
1553         (alpha_fill_int_regs): Likewise.
1554         (alpha_supply_fp_regs): Likewise.
1555         (alpha_fill_fp_regs): Likewise.
1556         * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
1557         (alphanbsd_aout_supply_gregset): Likewise.
1558         (alphanbsd_supply_gregset): Likewise.
1559         * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
1560         (amd64_x32_linux_init_abi): Likewise.
1561         * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1562         (amd64_collect_native_gregset): Likewise.
1563         * amd64-tdep.c (amd64_frame_cache): Likewise.
1564         (amd64_sigtramp_frame_cache): Likewise.
1565         (amd64_epilogue_frame_cache): Likewise.
1566         (amd64_supply_fxsave): Likewise.
1567         (amd64_supply_xsave): Likewise.
1568         (amd64_collect_fxsave): Likewise.
1569         (amd64_collect_xsave): Likewise.
1570         * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
1571         * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
1572         * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1573         (arm_linux_collect_gregset): Likewise.
1574         (arm_linux_supply_nwfpe): Likewise.
1575         (arm_linux_collect_nwfpe): Likewise.
1576         (arm_linux_supply_vfp): Likewise.
1577         (arm_linux_collect_vfp): Likewise.
1578         * arm-tdep.c (arm_find_mapping_symbol): Likewise.
1579         (arm_prologue_unwind_stop_reason): Likewise.
1580         (arm_prologue_this_id): Likewise.
1581         (arm_prologue_prev_register): Likewise.
1582         (arm_exidx_data_free): Likewise.
1583         (arm_find_exidx_entry): Likewise.
1584         (arm_stub_this_id): Likewise.
1585         (arm_m_exception_this_id): Likewise.
1586         (arm_m_exception_prev_register): Likewise.
1587         (arm_normal_frame_base): Likewise.
1588         (gdb_print_insn_arm): Likewise.
1589         (arm_objfile_data_free): Likewise.
1590         (arm_record_special_symbol): Likewise.
1591         (value_of_arm_user_reg): Likewise.
1592         * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
1593         (armbsd_supply_gregset): Likewise.
1594         * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
1595         (get_auto_load_pspace_data): Likewise.
1596         (hash_loaded_script_entry): Likewise.
1597         (eq_loaded_script_entry): Likewise.
1598         (clear_section_scripts): Likewise.
1599         (collect_matching_scripts): Likewise.
1600         * auxv.c (auxv_inferior_data_cleanup): Likewise.
1601         (get_auxv_inferior_data): Likewise.
1602         * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1603         * ax-general.c (do_free_agent_expr_cleanup): Likewise.
1604         * bfd-target.c (target_bfd_xfer_partial): Likewise.
1605         (target_bfd_xclose): Likewise.
1606         (target_bfd_get_section_table): Likewise.
1607         * bfin-tdep.c (bfin_frame_cache): Likewise.
1608         * block.c (find_block_in_blockvector): Likewise.
1609         (call_site_for_pc): Likewise.
1610         (block_find_non_opaque_type_preferred): Likewise.
1611         * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
1612         (signal_catchpoint_remove_location): Likewise.
1613         (signal_catchpoint_breakpoint_hit): Likewise.
1614         (signal_catchpoint_print_one): Likewise.
1615         (signal_catchpoint_print_mention): Likewise.
1616         (signal_catchpoint_print_recreate): Likewise.
1617         * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
1618         * breakpoint.c (do_cleanup_counted_command_line): Likewise.
1619         (bp_location_compare_addrs): Likewise.
1620         (get_first_locp_gte_addr): Likewise.
1621         (check_tracepoint_command): Likewise.
1622         (do_map_commands_command): Likewise.
1623         (get_breakpoint_objfile_data): Likewise.
1624         (free_breakpoint_probes): Likewise.
1625         (do_captured_breakpoint_query): Likewise.
1626         (compare_breakpoints): Likewise.
1627         (bp_location_compare): Likewise.
1628         (bpstat_remove_breakpoint_callback): Likewise.
1629         (do_delete_breakpoint_cleanup): Likewise.
1630         * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
1631         (bsd_uthread_set_collect_uthread): Likewise.
1632         (bsd_uthread_activate): Likewise.
1633         (bsd_uthread_fetch_registers): Likewise.
1634         (bsd_uthread_store_registers): Likewise.
1635         * btrace.c (check_xml_btrace_version): Likewise.
1636         (parse_xml_btrace_block): Likewise.
1637         (parse_xml_btrace_pt_config_cpu): Likewise.
1638         (parse_xml_btrace_pt_raw): Likewise.
1639         (parse_xml_btrace_pt): Likewise.
1640         (parse_xml_btrace_conf_bts): Likewise.
1641         (parse_xml_btrace_conf_pt): Likewise.
1642         (do_btrace_data_cleanup): Likewise.
1643         * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
1644         * charset.c (cleanup_iconv): Likewise.
1645         (do_cleanup_iterator): Likewise.
1646         * cli-out.c (cli_uiout_dtor): Likewise.
1647         (cli_table_begin): Likewise.
1648         (cli_table_body): Likewise.
1649         (cli_table_end): Likewise.
1650         (cli_table_header): Likewise.
1651         (cli_begin): Likewise.
1652         (cli_end): Likewise.
1653         (cli_field_int): Likewise.
1654         (cli_field_skip): Likewise.
1655         (cli_field_string): Likewise.
1656         (cli_field_fmt): Likewise.
1657         (cli_spaces): Likewise.
1658         (cli_text): Likewise.
1659         (cli_message): Likewise.
1660         (cli_wrap_hint): Likewise.
1661         (cli_flush): Likewise.
1662         (cli_redirect): Likewise.
1663         (out_field_fmt): Likewise.
1664         (field_separator): Likewise.
1665         (cli_out_set_stream): Likewise.
1666         * cli/cli-cmds.c (compare_symtabs): Likewise.
1667         * cli/cli-dump.c (call_dump_func): Likewise.
1668         (restore_section_callback): Likewise.
1669         * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
1670         (do_restore_user_call_depth): Likewise.
1671         (do_free_command_lines_cleanup): Likewise.
1672         * coff-pe-read.c (get_section_vmas): Likewise.
1673         (pe_as16): Likewise.
1674         (pe_as32): Likewise.
1675         * coffread.c (coff_symfile_read): Likewise.
1676         * common/agent.c (agent_look_up_symbols): Likewise.
1677         * common/filestuff.c (do_close_cleanup): Likewise.
1678         * common/format.c (free_format_pieces_cleanup): Likewise.
1679         * common/vec.c (vec_o_reserve): Likewise.
1680         * compile/compile-c-support.c (print_one_macro): Likewise.
1681         * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
1682         (eq_symbol_error): Likewise.
1683         (del_symbol_error): Likewise.
1684         (error_symbol_once): Likewise.
1685         (gcc_convert_symbol): Likewise.
1686         (gcc_symbol_address): Likewise.
1687         (hash_symname): Likewise.
1688         (eq_symname): Likewise.
1689         * compile/compile-c-types.c (hash_type_map_instance): Likewise.
1690         (eq_type_map_instance): Likewise.
1691         (insert_type): Likewise.
1692         (convert_type): Likewise.
1693         * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
1694         (setup_sections): Likewise.
1695         (link_hash_table_free): Likewise.
1696         (copy_sections): Likewise.
1697         * compile/compile-object-run.c (do_module_cleanup): Likewise.
1698         * compile/compile.c (compile_print_value): Likewise.
1699         (do_rmdir): Likewise.
1700         (cleanup_compile_instance): Likewise.
1701         (cleanup_unlink_file): Likewise.
1702         * completer.c (free_completion_tracker): Likewise.
1703         * corelow.c (add_to_spuid_list): Likewise.
1704         * cp-namespace.c (reset_directive_searched): Likewise.
1705         * cp-support.c (reset_directive_searched): Likewise.
1706         * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
1707         (cris_frame_unwind_cache): Likewise.
1708         * d-lang.c (builtin_d_type): Likewise.
1709         * d-namespace.c (reset_directive_searched): Likewise.
1710         * dbxread.c (dbx_free_symfile_info): Likewise.
1711         (do_free_bincl_list_cleanup): Likewise.
1712         * disasm.c (hash_dis_line_entry): Likewise.
1713         (eq_dis_line_entry): Likewise.
1714         (dis_asm_print_address): Likewise.
1715         (fprintf_disasm): Likewise.
1716         (do_ui_file_delete): Likewise.
1717         * doublest.c (convert_floatformat_to_doublest): Likewise.
1718         * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1719         (dummy_frame_prev_register): Likewise.
1720         (dummy_frame_this_id): Likewise.
1721         * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1722         (cache_eq): Likewise.
1723         (cache_find): Likewise.
1724         (tailcall_frame_this_id): Likewise.
1725         (dwarf2_tailcall_prev_register_first): Likewise.
1726         (tailcall_frame_prev_register): Likewise.
1727         (tailcall_frame_dealloc_cache): Likewise.
1728         (tailcall_frame_prev_arch): Likewise.
1729         * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1730         (dwarf2_frame_set_init_reg): Likewise.
1731         (dwarf2_frame_init_reg): Likewise.
1732         (dwarf2_frame_set_signal_frame_p): Likewise.
1733         (dwarf2_frame_signal_frame_p): Likewise.
1734         (dwarf2_frame_set_adjust_regnum): Likewise.
1735         (dwarf2_frame_adjust_regnum): Likewise.
1736         (clear_pointer_cleanup): Likewise.
1737         (dwarf2_frame_cache): Likewise.
1738         (find_cie): Likewise.
1739         (dwarf2_frame_find_fde): Likewise.
1740         * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1741         (free_dwarf_expr_context_cleanup): Likewise.
1742         * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1743         (locexpr_get_frame_base): Likewise.
1744         (loclist_find_frame_base_location): Likewise.
1745         (loclist_get_frame_base): Likewise.
1746         (dwarf_expr_dwarf_call): Likewise.
1747         (dwarf_expr_get_base_type): Likewise.
1748         (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1749         (dwarf_expr_get_obj_addr): Likewise.
1750         (entry_data_value_coerce_ref): Likewise.
1751         (entry_data_value_copy_closure): Likewise.
1752         (entry_data_value_free_closure): Likewise.
1753         (get_frame_address_in_block_wrapper): Likewise.
1754         (dwarf2_evaluate_property): Likewise.
1755         (dwarf2_compile_property_to_c): Likewise.
1756         (needs_frame_read_addr_from_reg): Likewise.
1757         (needs_frame_get_reg_value): Likewise.
1758         (needs_frame_frame_base): Likewise.
1759         (needs_frame_frame_cfa): Likewise.
1760         (needs_frame_tls_address): Likewise.
1761         (needs_frame_dwarf_call): Likewise.
1762         (needs_dwarf_reg_entry_value): Likewise.
1763         (get_ax_pc): Likewise.
1764         (locexpr_read_variable): Likewise.
1765         (locexpr_read_variable_at_entry): Likewise.
1766         (locexpr_read_needs_frame): Likewise.
1767         (locexpr_describe_location): Likewise.
1768         (locexpr_tracepoint_var_ref): Likewise.
1769         (locexpr_generate_c_location): Likewise.
1770         (loclist_read_variable): Likewise.
1771         (loclist_read_variable_at_entry): Likewise.
1772         (loclist_describe_location): Likewise.
1773         (loclist_tracepoint_var_ref): Likewise.
1774         (loclist_generate_c_location): Likewise.
1775         * dwarf2read.c (line_header_hash_voidp): Likewise.
1776         (line_header_eq_voidp): Likewise.
1777         (dwarf2_has_info): Likewise.
1778         (dwarf2_get_section_info): Likewise.
1779         (locate_dwz_sections): Likewise.
1780         (hash_file_name_entry): Likewise.
1781         (eq_file_name_entry): Likewise.
1782         (delete_file_name_entry): Likewise.
1783         (dw2_setup): Likewise.
1784         (dw2_get_file_names_reader): Likewise.
1785         (dw2_find_pc_sect_compunit_symtab): Likewise.
1786         (hash_signatured_type): Likewise.
1787         (eq_signatured_type): Likewise.
1788         (add_signatured_type_cu_to_table): Likewise.
1789         (create_debug_types_hash_table): Likewise.
1790         (lookup_dwo_signatured_type): Likewise.
1791         (lookup_dwp_signatured_type): Likewise.
1792         (lookup_signatured_type): Likewise.
1793         (hash_type_unit_group): Likewise.
1794         (eq_type_unit_group): Likewise.
1795         (get_type_unit_group): Likewise.
1796         (process_psymtab_comp_unit_reader): Likewise.
1797         (sort_tu_by_abbrev_offset): Likewise.
1798         (process_skeletonless_type_unit): Likewise.
1799         (psymtabs_addrmap_cleanup): Likewise.
1800         (dwarf2_read_symtab): Likewise.
1801         (psymtab_to_symtab_1): Likewise.
1802         (die_hash): Likewise.
1803         (die_eq): Likewise.
1804         (load_full_comp_unit_reader): Likewise.
1805         (reset_die_in_process): Likewise.
1806         (free_cu_line_header): Likewise.
1807         (handle_DW_AT_stmt_list): Likewise.
1808         (hash_dwo_file): Likewise.
1809         (eq_dwo_file): Likewise.
1810         (hash_dwo_unit): Likewise.
1811         (eq_dwo_unit): Likewise.
1812         (create_dwo_cu_reader): Likewise.
1813         (create_dwo_unit_in_dwp_v1): Likewise.
1814         (create_dwo_unit_in_dwp_v2): Likewise.
1815         (lookup_dwo_unit_in_dwp): Likewise.
1816         (dwarf2_locate_dwo_sections): Likewise.
1817         (dwarf2_locate_common_dwp_sections): Likewise.
1818         (dwarf2_locate_v2_dwp_sections): Likewise.
1819         (hash_dwp_loaded_cutus): Likewise.
1820         (eq_dwp_loaded_cutus): Likewise.
1821         (lookup_dwo_cutu): Likewise.
1822         (abbrev_table_free_cleanup): Likewise.
1823         (dwarf2_free_abbrev_table): Likewise.
1824         (find_partial_die_in_comp_unit): Likewise.
1825         (free_line_header_voidp): Likewise.
1826         (follow_die_offset): Likewise.
1827         (follow_die_sig_1): Likewise.
1828         (free_heap_comp_unit): Likewise.
1829         (free_stack_comp_unit): Likewise.
1830         (dwarf2_free_objfile): Likewise.
1831         (per_cu_offset_and_type_hash): Likewise.
1832         (per_cu_offset_and_type_eq): Likewise.
1833         (get_die_type_at_offset): Likewise.
1834         (partial_die_hash): Likewise.
1835         (partial_die_eq): Likewise.
1836         (dwarf2_per_objfile_free): Likewise.
1837         (hash_strtab_entry): Likewise.
1838         (eq_strtab_entry): Likewise.
1839         (add_string): Likewise.
1840         (hash_symtab_entry): Likewise.
1841         (eq_symtab_entry): Likewise.
1842         (delete_symtab_entry): Likewise.
1843         (cleanup_mapped_symtab): Likewise.
1844         (add_indices_to_cpool): Likewise.
1845         (hash_psymtab_cu_index): Likewise.
1846         (eq_psymtab_cu_index): Likewise.
1847         (add_address_entry_worker): Likewise.
1848         (unlink_if_set): Likewise.
1849         (write_one_signatured_type): Likewise.
1850         (save_gdb_index_command): Likewise.
1851         * elfread.c (elf_symtab_read): Likewise.
1852         (elf_gnu_ifunc_cache_hash): Likewise.
1853         (elf_gnu_ifunc_cache_eq): Likewise.
1854         (elf_gnu_ifunc_record_cache): Likewise.
1855         (elf_gnu_ifunc_resolve_by_cache): Likewise.
1856         (elf_get_probes): Likewise.
1857         (probe_key_free): Likewise.
1858         * f-lang.c (builtin_f_type): Likewise.
1859         * frame-base.c (frame_base_append_sniffer): Likewise.
1860         (frame_base_set_default): Likewise.
1861         (frame_base_find_by_frame): Likewise.
1862         * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1863         (frame_unwind_append_unwinder): Likewise.
1864         (frame_unwind_find_by_frame): Likewise.
1865         * frame.c (frame_addr_hash): Likewise.
1866         (frame_addr_hash_eq): Likewise.
1867         (frame_stash_find): Likewise.
1868         (do_frame_register_read): Likewise.
1869         (unwind_to_current_frame): Likewise.
1870         (frame_cleanup_after_sniffer): Likewise.
1871         * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1872         * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1873         * ft32-tdep.c (ft32_frame_cache): Likewise.
1874         * gcore.c (do_bfd_delete_cleanup): Likewise.
1875         (gcore_create_callback): Likewise.
1876         * gdb_bfd.c (hash_bfd): Likewise.
1877         (eq_bfd): Likewise.
1878         (gdb_bfd_open): Likewise.
1879         (free_one_bfd_section): Likewise.
1880         (gdb_bfd_ref): Likewise.
1881         (gdb_bfd_unref): Likewise.
1882         (get_section_descriptor): Likewise.
1883         (gdb_bfd_map_section): Likewise.
1884         (gdb_bfd_crc): Likewise.
1885         (gdb_bfd_mark_parent): Likewise.
1886         (gdb_bfd_record_inclusion): Likewise.
1887         (gdb_bfd_requires_relocations): Likewise.
1888         (print_one_bfd): Likewise.
1889         * gdbtypes.c (type_pair_hash): Likewise.
1890         (type_pair_eq): Likewise.
1891         (builtin_type): Likewise.
1892         (objfile_type): Likewise.
1893         * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1894         (vtable_address_point_offset): Likewise.
1895         (gnuv3_get_vtable): Likewise.
1896         (hash_value_and_voffset): Likewise.
1897         (eq_value_and_voffset): Likewise.
1898         (compare_value_and_voffset): Likewise.
1899         (compute_vtable_size): Likewise.
1900         (gnuv3_get_typeid_type): Likewise.
1901         * go-lang.c (builtin_go_type): Likewise.
1902         * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1903         (bkscm_eq_block_smob): Likewise.
1904         (bkscm_objfile_block_map): Likewise.
1905         (bkscm_del_objfile_blocks): Likewise.
1906         * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1907         * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1908         (gdbscm_disasm_print_address): Likewise.
1909         * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1910         (frscm_eq_frame_smob): Likewise.
1911         (frscm_inferior_frame_map): Likewise.
1912         (frscm_del_inferior_frames): Likewise.
1913         * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1914         * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1915         (ofscm_objfile_smob_from_objfile): Likewise.
1916         * guile/scm-ports.c (ioscm_write): Likewise.
1917         (ioscm_file_port_delete): Likewise.
1918         (ioscm_file_port_rewind): Likewise.
1919         (ioscm_file_port_put): Likewise.
1920         (ioscm_file_port_write): Likewise.
1921         * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1922         (psscm_pspace_smob_from_pspace): Likewise.
1923         * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1924         (scscm_recording_unwind_handler): Likewise.
1925         (gdbscm_with_catch): Likewise.
1926         (scscm_call_0_body): Likewise.
1927         (scscm_call_1_body): Likewise.
1928         (scscm_call_2_body): Likewise.
1929         (scscm_call_3_body): Likewise.
1930         (scscm_call_4_body): Likewise.
1931         (scscm_apply_1_body): Likewise.
1932         (scscm_eval_scheme_string): Likewise.
1933         (gdbscm_safe_eval_string): Likewise.
1934         (scscm_source_scheme_script): Likewise.
1935         (gdbscm_safe_source_script): Likewise.
1936         * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1937         (gdbscm_call_scm_from_stringn): Likewise.
1938         * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1939         (syscm_eq_symbol_smob): Likewise.
1940         (syscm_get_symbol_map): Likewise.
1941         (syscm_del_objfile_symbols): Likewise.
1942         * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1943         (stscm_eq_symtab_smob): Likewise.
1944         (stscm_objfile_symtab_map): Likewise.
1945         (stscm_del_objfile_symtabs): Likewise.
1946         * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1947         (tyscm_eq_type_smob): Likewise.
1948         (tyscm_type_map): Likewise.
1949         (tyscm_copy_type_recursive): Likewise.
1950         (save_objfile_types): Likewise.
1951         * guile/scm-utils.c (extract_arg): Likewise.
1952         * h8300-tdep.c (h8300_frame_cache): Likewise.
1953         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1954         * hppa-tdep.c (compare_unwind_entries): Likewise.
1955         (find_unwind_entry): Likewise.
1956         (hppa_frame_cache): Likewise.
1957         (hppa_stub_frame_unwind_cache): Likewise.
1958         * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1959         * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1960         (hppaobsd_supply_fpregset): Likewise.
1961         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1962         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1963         * i386-tdep.c (i386_frame_cache): Likewise.
1964         (i386_epilogue_frame_cache): Likewise.
1965         (i386_sigtramp_frame_cache): Likewise.
1966         (i386_supply_gregset): Likewise.
1967         (i386_collect_gregset): Likewise.
1968         (i386_gdbarch_init): Likewise.
1969         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1970         (i386obsd_trapframe_cache): Likewise.
1971         * i387-tdep.c (i387_supply_fsave): Likewise.
1972         (i387_collect_fsave): Likewise.
1973         (i387_supply_fxsave): Likewise.
1974         (i387_collect_fxsave): Likewise.
1975         (i387_supply_xsave): Likewise.
1976         (i387_collect_xsave): Likewise.
1977         * ia64-tdep.c (ia64_frame_cache): Likewise.
1978         (ia64_sigtramp_frame_cache): Likewise.
1979         * infcmd.c (attach_command_continuation): Likewise.
1980         (attach_command_continuation_free_args): Likewise.
1981         * inferior.c (restore_inferior): Likewise.
1982         (delete_thread_of_inferior): Likewise.
1983         * inflow.c (inflow_inferior_data_cleanup): Likewise.
1984         (get_inflow_inferior_data): Likewise.
1985         (inflow_inferior_exit): Likewise.
1986         * infrun.c (displaced_step_clear_cleanup): Likewise.
1987         (restore_current_uiout_cleanup): Likewise.
1988         (release_stop_context_cleanup): Likewise.
1989         (do_restore_infcall_suspend_state_cleanup): Likewise.
1990         (do_restore_infcall_control_state_cleanup): Likewise.
1991         (restore_inferior_ptid): Likewise.
1992         * inline-frame.c (block_starting_point_at): Likewise.
1993         * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1994         * jit.c (get_jit_objfile_data): Likewise.
1995         (get_jit_program_space_data): Likewise.
1996         (jit_object_close_impl): Likewise.
1997         (jit_find_objf_with_entry_addr): Likewise.
1998         (jit_breakpoint_deleted): Likewise.
1999         (jit_unwind_reg_set_impl): Likewise.
2000         (jit_unwind_reg_get_impl): Likewise.
2001         (jit_dealloc_cache): Likewise.
2002         (jit_frame_sniffer): Likewise.
2003         (jit_frame_prev_register): Likewise.
2004         (jit_prepend_unwinder): Likewise.
2005         (jit_inferior_exit_hook): Likewise.
2006         (free_objfile_data): Likewise.
2007         * jv-lang.c (jv_per_objfile_free): Likewise.
2008         (get_dynamics_objfile): Likewise.
2009         (get_java_class_symtab): Likewise.
2010         (builtin_java_type): Likewise.
2011         * language.c (language_string_char_type): Likewise.
2012         (language_bool_type): Likewise.
2013         (language_lookup_primitive_type): Likewise.
2014         (language_lookup_primitive_type_as_symbol): Likewise.
2015         * linespec.c (hash_address_entry): Likewise.
2016         (eq_address_entry): Likewise.
2017         (iterate_inline_only): Likewise.
2018         (iterate_name_matcher): Likewise.
2019         (decode_line_2_compare_items): Likewise.
2020         (collect_one_symbol): Likewise.
2021         (compare_symbols): Likewise.
2022         (compare_msymbols): Likewise.
2023         (add_symtabs_to_list): Likewise.
2024         (collect_symbols): Likewise.
2025         (compare_msyms): Likewise.
2026         (add_minsym): Likewise.
2027         (cleanup_linespec_result): Likewise.
2028         * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
2029         * linux-nat.c (delete_lwp_cleanup): Likewise.
2030         (count_events_callback): Likewise.
2031         (select_event_lwp_callback): Likewise.
2032         (resume_stopped_resumed_lwps): Likewise.
2033         * linux-tdep.c (get_linux_gdbarch_data): Likewise.
2034         (invalidate_linux_cache_inf): Likewise.
2035         (get_linux_inferior_data): Likewise.
2036         (linux_find_memory_regions_thunk): Likewise.
2037         (linux_make_mappings_callback): Likewise.
2038         (linux_corefile_thread_callback): Likewise.
2039         (find_mapping_size): Likewise.
2040         * linux-thread-db.c (find_new_threads_callback): Likewise.
2041         * lm32-tdep.c (lm32_frame_cache): Likewise.
2042         * m2-lang.c (builtin_m2_type): Likewise.
2043         * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
2044         * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
2045         (m32r_linux_supply_gregset): Likewise.
2046         (m32r_linux_collect_gregset): Likewise.
2047         * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
2048         * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
2049         * m68k-tdep.c (m68k_frame_cache): Likewise.
2050         * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
2051         (m68kbsd_supply_gregset): Likewise.
2052         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
2053         * m88k-tdep.c (m88k_frame_cache): Likewise.
2054         (m88k_supply_gregset): Likewise.
2055
2056 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
2057
2058         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
2059         to allocation result assignment.
2060         * ada-exp.y (write_object_renaming): Likewise.
2061         (write_ambiguous_var): Likewise.
2062         (ada_nget_field_index): Likewise.
2063         (write_var_or_type): Likewise.
2064         * ada-lang.c (ada_decode_symbol): Likewise.
2065         (ada_value_assign): Likewise.
2066         (value_pointer): Likewise.
2067         (cache_symbol): Likewise.
2068         (add_nonlocal_symbols): Likewise.
2069         (ada_name_for_lookup): Likewise.
2070         (symbol_completion_add): Likewise.
2071         (ada_to_fixed_type_1): Likewise.
2072         (ada_get_next_arg): Likewise.
2073         (defns_collected): Likewise.
2074         * ada-lex.l (processId): Likewise.
2075         (processString): Likewise.
2076         * ada-tasks.c (read_known_tasks_array): Likewise.
2077         (read_known_tasks_list): Likewise.
2078         * ada-typeprint.c (decoded_type_name): Likewise.
2079         * addrmap.c (addrmap_mutable_create_fixed): Likewise.
2080         * amd64-tdep.c (amd64_push_arguments): Likewise.
2081         (amd64_displaced_step_copy_insn): Likewise.
2082         (amd64_classify_insn_at): Likewise.
2083         (amd64_relocate_instruction): Likewise.
2084         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
2085         * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
2086         (initialize_current_architecture): Likewise.
2087         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2088         * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
2089         * arm-tdep.c (arm_exidx_new_objfile): Likewise.
2090         (arm_push_dummy_call): Likewise.
2091         (extend_buffer_earlier): Likewise.
2092         (arm_adjust_breakpoint_address): Likewise.
2093         (arm_skip_stub): Likewise.
2094         * auto-load.c (filename_is_in_pattern): Likewise.
2095         (maybe_add_script_file): Likewise.
2096         (maybe_add_script_text): Likewise.
2097         (auto_load_objfile_script_1): Likewise.
2098         * auxv.c (ld_so_xfer_auxv): Likewise.
2099         * ax-general.c (new_agent_expr): Likewise.
2100         (grow_expr): Likewise.
2101         (ax_reg_mask): Likewise.
2102         * bcache.c (bcache_full): Likewise.
2103         * breakpoint.c (program_breakpoint_here_p): Likewise.
2104         * btrace.c (parse_xml_raw): Likewise.
2105         * build-id.c (build_id_to_debug_bfd): Likewise.
2106         * buildsym.c (end_symtab_with_blockvector): Likewise.
2107         * c-exp.y (string_exp): Likewise.
2108         (qualified_name): Likewise.
2109         (write_destructor_name): Likewise.
2110         (operator_stoken): Likewise.
2111         (parse_number): Likewise.
2112         (scan_macro_expansion): Likewise.
2113         (yylex): Likewise.
2114         (c_print_token): Likewise.
2115         * c-lang.c (c_get_string): Likewise.
2116         (emit_numeric_character): Likewise.
2117         * charset.c (wchar_iterate): Likewise.
2118         * cli/cli-cmds.c (complete_command): Likewise.
2119         (make_command): Likewise.
2120         * cli/cli-dump.c (restore_section_callback): Likewise.
2121         (restore_binary_file): Likewise.
2122         * cli/cli-interp.c (cli_interpreter_exec): Likewise.
2123         * cli/cli-script.c (execute_control_command): Likewise.
2124         * cli/cli-setshow.c (do_set_command): Likewise.
2125         * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
2126         (read_pe_exported_syms): Likewise.
2127         * coffread.c (coff_read_struct_type): Likewise.
2128         (coff_read_enum_type): Likewise.
2129         * common/btrace-common.c (btrace_data_append): Likewise.
2130         * common/buffer.c (buffer_grow): Likewise.
2131         * common/filestuff.c (gdb_fopen_cloexec): Likewise.
2132         * common/format.c (parse_format_string): Likewise.
2133         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
2134         * common/xml-utils.c (xml_escape_text): Likewise.
2135         * compile/compile-object-load.c (copy_sections): Likewise.
2136         (compile_object_load): Likewise.
2137         * compile/compile-object-run.c (compile_object_run): Likewise.
2138         * completer.c (filename_completer): Likewise.
2139         * corefile.c (read_memory_typed_address): Likewise.
2140         (write_memory_unsigned_integer): Likewise.
2141         (write_memory_signed_integer): Likewise.
2142         (complete_set_gnutarget): Likewise.
2143         * corelow.c (get_core_register_section): Likewise.
2144         * cp-name-parser.y (d_grab): Likewise.
2145         (allocate_info): Likewise.
2146         (cp_new_demangle_parse_info): Likewise.
2147         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
2148         (cp_lookup_symbol_in_namespace): Likewise.
2149         (lookup_namespace_scope): Likewise.
2150         (find_symbol_in_baseclass): Likewise.
2151         (cp_lookup_nested_symbol): Likewise.
2152         (cp_lookup_transparent_type_loop): Likewise.
2153         * cp-support.c (copy_string_to_obstack): Likewise.
2154         (make_symbol_overload_list): Likewise.
2155         (make_symbol_overload_list_namespace): Likewise.
2156         (make_symbol_overload_list_adl_namespace): Likewise.
2157         (first_component_command): Likewise.
2158         * cp-valprint.c (cp_print_value): Likewise.
2159         * ctf.c (ctf_xfer_partial): Likewise.
2160         * d-exp.y (StringExp): Likewise.
2161         * d-namespace.c (d_lookup_symbol_in_module): Likewise.
2162         (lookup_module_scope): Likewise.
2163         (find_symbol_in_baseclass): Likewise.
2164         (d_lookup_nested_symbol): Likewise.
2165         * dbxread.c (find_stab_function_addr): Likewise.
2166         (read_dbx_symtab): Likewise.
2167         (dbx_end_psymtab): Likewise.
2168         (cp_set_block_scope): Likewise.
2169         * dcache.c (dcache_alloc): Likewise.
2170         * demangle.c (_initialize_demangler): Likewise.
2171         * dicos-tdep.c (dicos_load_module_p): Likewise.
2172         * dictionary.c (dict_create_hashed_expandable): Likewise.
2173         (dict_create_linear_expandable): Likewise.
2174         (expand_hashtable): Likewise.
2175         (add_symbol_linear_expandable): Likewise.
2176         * dwarf2-frame.c (add_cie): Likewise.
2177         (add_fde): Likewise.
2178         (dwarf2_build_frame_info): Likewise.
2179         * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
2180         (dwarf_expr_fetch_address): Likewise.
2181         (add_piece): Likewise.
2182         (execute_stack_op): Likewise.
2183         * dwarf2loc.c (chain_candidate): Likewise.
2184         (dwarf_entry_parameter_to_value): Likewise.
2185         (read_pieced_value): Likewise.
2186         (write_pieced_value): Likewise.
2187         * dwarf2read.c (dwarf2_read_section): Likewise.
2188         (add_type_unit): Likewise.
2189         (read_comp_units_from_section): Likewise.
2190         (fixup_go_packaging): Likewise.
2191         (dwarf2_compute_name): Likewise.
2192         (dwarf2_physname): Likewise.
2193         (create_dwo_unit_in_dwp_v1): Likewise.
2194         (create_dwo_unit_in_dwp_v2): Likewise.
2195         (read_func_scope): Likewise.
2196         (read_call_site_scope): Likewise.
2197         (dwarf2_attach_fields_to_type): Likewise.
2198         (process_structure_scope): Likewise.
2199         (mark_common_block_symbol_computed): Likewise.
2200         (read_common_block): Likewise.
2201         (abbrev_table_read_table): Likewise.
2202         (guess_partial_die_structure_name): Likewise.
2203         (fixup_partial_die): Likewise.
2204         (add_file_name): Likewise.
2205         (dwarf2_const_value_data): Likewise.
2206         (dwarf2_const_value_attr): Likewise.
2207         (build_error_marker_type): Likewise.
2208         (guess_full_die_structure_name): Likewise.
2209         (anonymous_struct_prefix): Likewise.
2210         (typename_concat): Likewise.
2211         (dwarf2_canonicalize_name): Likewise.
2212         (dwarf2_name): Likewise.
2213         (write_constant_as_bytes): Likewise.
2214         (dwarf2_fetch_constant_bytes): Likewise.
2215         (copy_string): Likewise.
2216         (parse_macro_definition): Likewise.
2217         * elfread.c (elf_symfile_segments): Likewise.
2218         (elf_rel_plt_read): Likewise.
2219         (elf_gnu_ifunc_resolve_by_cache): Likewise.
2220         (elf_gnu_ifunc_resolve_by_got): Likewise.
2221         (elf_read_minimal_symbols): Likewise.
2222         (elf_gnu_ifunc_record_cache): Likewise.
2223         * event-top.c (top_level_prompt): Likewise.
2224         (command_line_handler): Likewise.
2225         * exec.c (resize_section_table): Likewise.
2226         * expprint.c (print_subexp_standard): Likewise.
2227         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2228         * findcmd.c (parse_find_args): Likewise.
2229         * findvar.c (address_from_register): Likewise.
2230         * frame.c (get_prev_frame_always): Likewise.
2231         * gdb_bfd.c (gdb_bfd_ref): Likewise.
2232         (get_section_descriptor): Likewise.
2233         * gdb_obstack.c (obconcat): Likewise.
2234         (obstack_strdup): Likewise.
2235         * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
2236         (create_set_type): Likewise.
2237         (lookup_unsigned_typename): Likewise.
2238         (lookup_signed_typename): Likewise.
2239         (resolve_dynamic_union): Likewise.
2240         (resolve_dynamic_struct): Likewise.
2241         (add_dyn_prop): Likewise.
2242         (copy_dynamic_prop_list): Likewise.
2243         (arch_flags_type): Likewise.
2244         (append_composite_type_field_raw): Likewise.
2245         * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
2246         * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
2247         * go-exp.y (string_exp): Likewise.
2248         * go-lang.c (go_demangle): Likewise.
2249         * guile/guile.c (compute_scheme_string): Likewise.
2250         * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2251         (gdbscm_canonicalize_command_name): Likewise.
2252         * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
2253         (ioscm_init_memory_port): Likewise.
2254         (ioscm_reinit_memory_port): Likewise.
2255         * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
2256         (gdbscm_gc_dup_argv): Likewise.
2257         * h8300-tdep.c (h8300_push_dummy_call): Likewise.
2258         * hppa-tdep.c (internalize_unwinds): Likewise.
2259         (read_unwind_info): Likewise.
2260         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
2261         (windows_core_xfer_shared_libraries): Likewise.
2262         * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
2263         (i386_stap_parse_special_token_triplet): Likewise.
2264         (i386_stap_parse_special_token_three_arg_disp): Likewise.
2265         * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
2266         * inf-child.c (inf_child_fileio_readlink): Likewise.
2267         * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
2268         (inf_ptrace_store_register): Likewise.
2269         * infrun.c (follow_exec): Likewise.
2270         (displaced_step_prepare_throw): Likewise.
2271         (save_stop_context): Likewise.
2272         (save_infcall_suspend_state): Likewise.
2273         * jit.c (jit_read_descriptor): Likewise.
2274         (jit_read_code_entry): Likewise.
2275         (jit_symtab_line_mapping_add_impl): Likewise.
2276         (finalize_symtab): Likewise.
2277         (jit_unwind_reg_get_impl): Likewise.
2278         * jv-exp.y (QualifiedName): Likewise.
2279         * jv-lang.c (get_java_utf8_name): Likewise.
2280         (type_from_class): Likewise.
2281         (java_demangle_type_signature): Likewise.
2282         (java_class_name_from_physname): Likewise.
2283         * jv-typeprint.c (java_type_print_base): Likewise.
2284         * jv-valprint.c (java_value_print): Likewise.
2285         * language.c (add_language): Likewise.
2286         * linespec.c (add_sal_to_sals_basic): Likewise.
2287         (add_sal_to_sals): Likewise.
2288         (decode_objc): Likewise.
2289         (find_linespec_symbols): Likewise.
2290         * linux-fork.c (fork_save_infrun_state): Likewise.
2291         * linux-nat.c (linux_nat_detach): Likewise.
2292         (linux_nat_fileio_readlink): Likewise.
2293         * linux-record.c (record_linux_sockaddr): Likewise.
2294         (record_linux_msghdr): Likewise.
2295         (Do): Likewise.
2296         * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
2297         (linux_collect_regset_section_cb): Likewise.
2298         (linux_get_siginfo_data): Likewise.
2299         * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
2300         (try_thread_db_load_from_dir): Likewise.
2301         (thread_db_load_search): Likewise.
2302         (info_auto_load_libthread_db): Likewise.
2303         * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
2304         (m32c_m16c_pointer_to_address): Likewise.
2305         * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
2306         * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2307         * machoread.c (macho_check_dsym): Likewise.
2308         * macroexp.c (resize_buffer): Likewise.
2309         (gather_arguments): Likewise.
2310         (maybe_expand): Likewise.
2311         * macrotab.c (new_macro_key): Likewise.
2312         (new_source_file): Likewise.
2313         (new_macro_definition): Likewise.
2314         * mdebugread.c (parse_symbol): Likewise.
2315         (parse_type): Likewise.
2316         (parse_partial_symbols): Likewise.
2317         (psymtab_to_symtab_1): Likewise.
2318         * mem-break.c (default_memory_insert_breakpoint): Likewise.
2319         * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
2320         * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
2321         (mi_cmd_data_read_memory_bytes): Likewise.
2322         (mi_cmd_data_write_memory_bytes): Likewise.
2323         (mi_cmd_trace_frame_collected): Likewise.
2324         * mi/mi-parse.c (mi_parse_argv): Likewise.
2325         (mi_parse): Likewise.
2326         * minidebug.c (lzma_open): Likewise.
2327         (lzma_pread): Likewise.
2328         * mips-tdep.c (mips_read_fp_register_single): Likewise.
2329         (mips_print_fp_register): Likewise.
2330         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
2331         * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2332         * mt-tdep.c (mt_register_name): Likewise.
2333         (mt_registers_info): Likewise.
2334         (mt_push_dummy_call): Likewise.
2335         * namespace.c (add_using_directive): Likewise.
2336         * nat/linux-btrace.c (perf_event_read): Likewise.
2337         (linux_enable_bts): Likewise.
2338         * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
2339         * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
2340         * nto-tdep.c (nto_find_and_open_solib): Likewise.
2341         (nto_parse_redirection): Likewise.
2342         * objc-lang.c (objc_demangle): Likewise.
2343         (find_methods): Likewise.
2344         * objfiles.c (get_objfile_bfd_data): Likewise.
2345         (set_objfile_main_name): Likewise.
2346         (allocate_objfile): Likewise.
2347         (objfile_relocate): Likewise.
2348         (update_section_map): Likewise.
2349         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
2350         * p-exp.y (exp): Likewise.
2351         (yylex): Likewise.
2352         * p-valprint.c (pascal_object_print_value): Likewise.
2353         * parse.c (initialize_expout): Likewise.
2354         (mark_completion_tag): Likewise.
2355         (copy_name): Likewise.
2356         (parse_float): Likewise.
2357         (type_stack_reserve): Likewise.
2358         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2359         (ppu2spu_prev_register): Likewise.
2360         * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
2361         * printcmd.c (printf_wide_c_string): Likewise.
2362         (printf_pointer): Likewise.
2363         * probe.c (parse_probes): Likewise.
2364         * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2365         (cmdpy_init): Likewise.
2366         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
2367         * python/py-symtab.c (set_sal): Likewise.
2368         * python/py-unwind.c (pyuw_sniffer): Likewise.
2369         * python/python.c (python_interactive_command): Likewise.
2370         (compute_python_string): Likewise.
2371         * ravenscar-thread.c (get_running_thread_id): Likewise.
2372         * record-full.c (record_full_exec_insn): Likewise.
2373         (record_full_core_open_1): Likewise.
2374         * regcache.c (regcache_raw_read_signed): Likewise.
2375         (regcache_raw_read_unsigned): Likewise.
2376         (regcache_cooked_read_signed): Likewise.
2377         (regcache_cooked_read_unsigned): Likewise.
2378         * remote-fileio.c (remote_fileio_func_open): Likewise.
2379         (remote_fileio_func_rename): Likewise.
2380         (remote_fileio_func_unlink): Likewise.
2381         (remote_fileio_func_stat): Likewise.
2382         (remote_fileio_func_system): Likewise.
2383         * remote-mips.c (mips_xfer_memory): Likewise.
2384         (mips_load_srec): Likewise.
2385         (pmon_end_download): Likewise.
2386         * remote.c (new_remote_state): Likewise.
2387         (map_regcache_remote_table): Likewise.
2388         (remote_register_number_and_offset): Likewise.
2389         (init_remote_state): Likewise.
2390         (get_memory_packet_size): Likewise.
2391         (remote_pass_signals): Likewise.
2392         (remote_program_signals): Likewise.
2393         (remote_start_remote): Likewise.
2394         (remote_check_symbols): Likewise.
2395         (remote_query_supported): Likewise.
2396         (extended_remote_attach): Likewise.
2397         (process_g_packet): Likewise.
2398         (store_registers_using_G): Likewise.
2399         (putpkt_binary): Likewise.
2400         (read_frame): Likewise.
2401         (compare_sections_command): Likewise.
2402         (remote_hostio_pread): Likewise.
2403         (remote_hostio_readlink): Likewise.
2404         (remote_file_put): Likewise.
2405         (remote_file_get): Likewise.
2406         (remote_pid_to_exec_file): Likewise.
2407         (_initialize_remote): Likewise.
2408         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2409         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2410         * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2411         (bfd_uses_spe_extensions): Likewise.
2412         * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
2413         * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
2414         * solib-dsbt.c (decode_loadmap): Likewise.
2415         (fetch_loadmap): Likewise.
2416         (scan_dyntag): Likewise.
2417         (enable_break): Likewise.
2418         (dsbt_relocate_main_executable): Likewise.
2419         * solib-frv.c (fetch_loadmap): Likewise.
2420         (enable_break2): Likewise.
2421         (frv_relocate_main_executable): Likewise.
2422         * solib-spu.c (spu_relocate_main_executable): Likewise.
2423         (spu_bfd_open): Likewise.
2424         * solib-svr4.c (lm_info_read): Likewise.
2425         (read_program_header): Likewise.
2426         (find_program_interpreter): Likewise.
2427         (scan_dyntag): Likewise.
2428         (elf_locate_base): Likewise.
2429         (open_symbol_file_object): Likewise.
2430         (read_program_headers_from_bfd): Likewise.
2431         (svr4_relocate_main_executable): Likewise.
2432         * solib-target.c (solib_target_relocate_section_addresses): Likewise.
2433         * solib.c (solib_find_1): Likewise.
2434         (exec_file_find): Likewise.
2435         (solib_find): Likewise.
2436         * source.c (openp): Likewise.
2437         (print_source_lines_base): Likewise.
2438         (forward_search_command): Likewise.
2439         * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
2440         * spu-tdep.c (spu2ppu_prev_register): Likewise.
2441         (spu_get_overlay_table): Likewise.
2442         * stabsread.c (patch_block_stabs): Likewise.
2443         (define_symbol): Likewise.
2444         (again:): Likewise.
2445         (read_member_functions): Likewise.
2446         (read_one_struct_field): Likewise.
2447         (read_enum_type): Likewise.
2448         (common_block_start): Likewise.
2449         * stack.c (read_frame_arg): Likewise.
2450         (backtrace_command): Likewise.
2451         * stap-probe.c (stap_parse_register_operand): Likewise.
2452         * symfile.c (syms_from_objfile_1): Likewise.
2453         (find_separate_debug_file): Likewise.
2454         (load_command): Likewise.
2455         (load_progress): Likewise.
2456         (load_section_callback): Likewise.
2457         (reread_symbols): Likewise.
2458         (add_filename_language): Likewise.
2459         (allocate_compunit_symtab): Likewise.
2460         (read_target_long_array): Likewise.
2461         (simple_read_overlay_table): Likewise.
2462         * symtab.c (symbol_set_names): Likewise.
2463         (resize_symbol_cache): Likewise.
2464         (rbreak_command): Likewise.
2465         (completion_list_add_name): Likewise.
2466         (completion_list_objc_symbol): Likewise.
2467         (add_filename_to_list): Likewise.
2468         * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
2469         * target-memory.c (target_write_memory_blocks): Likewise.
2470         * target.c (target_read_string): Likewise.
2471         (read_whatever_is_readable): Likewise.
2472         (target_read_alloc_1): Likewise.
2473         (simple_search_memory): Likewise.
2474         (target_fileio_read_alloc_1): Likewise.
2475         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2476         * top.c (command_line_input): Likewise.
2477         * tracefile-tfile.c (tfile_fetch_registers): Likewise.
2478         * tracefile.c (tracefile_fetch_registers): Likewise.
2479         * tracepoint.c (add_memrange): Likewise.
2480         (init_collection_list): Likewise.
2481         (add_aexpr): Likewise.
2482         (trace_dump_actions): Likewise.
2483         (parse_trace_status): Likewise.
2484         (parse_tracepoint_definition): Likewise.
2485         (parse_tsv_definition): Likewise.
2486         (parse_static_tracepoint_marker_definition): Likewise.
2487         * tui/tui-file.c (tui_sfileopen): Likewise.
2488         (tui_file_adjust_strbuf): Likewise.
2489         * tui/tui-io.c (tui_expand_tabs): Likewise.
2490         * tui/tui-source.c (tui_set_source_content): Likewise.
2491         * typeprint.c (find_global_typedef): Likewise.
2492         * ui-file.c (do_ui_file_xstrdup): Likewise.
2493         (ui_file_obsavestring): Likewise.
2494         (mem_file_write): Likewise.
2495         * utils.c (make_hex_string): Likewise.
2496         (get_regcomp_error): Likewise.
2497         (puts_filtered_tabular): Likewise.
2498         (gdb_realpath_keepfile): Likewise.
2499         (ldirname): Likewise.
2500         (gdb_bfd_errmsg): Likewise.
2501         (substitute_path_component): Likewise.
2502         * valops.c (search_struct_method): Likewise.
2503         (find_oload_champ_namespace_loop): Likewise.
2504         * valprint.c (print_decimal_chars): Likewise.
2505         (read_string): Likewise.
2506         (generic_emit_char): Likewise.
2507         * varobj.c (varobj_delete): Likewise.
2508         (varobj_value_get_print_value): Likewise.
2509         * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
2510         * windows-tdep.c (display_one_tib): Likewise.
2511         * xcoffread.c (read_xcoff_symtab): Likewise.
2512         (process_xcoff_symbol): Likewise.
2513         (swap_sym): Likewise.
2514         (scan_xcoff_symtab): Likewise.
2515         (xcoff_initial_scan): Likewise.
2516         * xml-support.c (gdb_xml_end_element): Likewise.
2517         (xml_process_xincludes): Likewise.
2518         (xml_fetch_content_from_file): Likewise.
2519         * xml-syscall.c (xml_list_of_syscalls): Likewise.
2520         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2521
2522 2015-09-23  James Bowman  <james.bowman@ftdichip.com>
2523
2524         * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
2525         instead of builtin_func_ptr.
2526         (ft32_pointer_to_address): New function.
2527         (ft32_address_class_type_flags): New function.
2528         (ft32_address_class_type_flags_to_name): New function.
2529         (ft32_address_class_name_to_type_flags): New function.
2530         (ft32_gdbarch_init): Set tdep->pc_type.  Call
2531         set_gdbarch_pointer_to_address,
2532         set_gdbarch_address_class_type_flags
2533         set_gdbarch_address_class_name_to_type_flags,
2534         and set_gdbarch_address_class_type_flags_to_name.
2535         * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
2536
2537 2015-09-23  Pierre-Marie de Rodat  <derodat@adacore.com>
2538
2539         * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
2540         value is a reference, actually dereference it in order to get
2541         the underlying value.
2542
2543 2015-09-22  Simon Marchi  <simon.marchi@ericsson.com>
2544
2545         * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
2546
2547 2015-09-21  Simon Marchi  <simon.marchi@ericsson.com>
2548
2549         * cli/cli-setshow.c (cmd_show_list): Constify a variable.
2550         * linespec.c (linespec_lexer_lex_string): Same.
2551
2552 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2553
2554         * NEWS: Mention support for fast tracepoints on aarch64-linux.
2555
2556 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2557
2558         * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
2559         variable.  Call aarch64_decode_adr instead of
2560         aarch64_decode_adrp.
2561         * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
2562         (aarch64_decode_adr): New function declaration.
2563         * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
2564         (aarch64_decode_adr): New function, factored out from
2565         aarch64_decode_adrp to decode both adr and adrp instructions.
2566
2567 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2568
2569         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
2570         (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
2571         (aarch64-insn.o): New rule.
2572         * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
2573         (aarch64*-*-linux*): Likewise.
2574         * arch/aarch64-insn.c: New file.
2575         * arch/aarch64-insn.h: New file.
2576         * aarch64-tdep.c: Include arch/aarch64-insn.h.
2577         (aarch64_debug): Move to arch/aarch64-insn.c.  Declare in
2578         arch/aarch64-insn.h.
2579         (decode_add_sub_imm): Rename to ...
2580         (aarch64_decode_add_sub_imm): ... this.
2581         (decode_adrp): Rename to ...
2582         (aarch64_decode_adrp): ... this.  Move to arch/aarch64-insn.c.
2583         Declare in arch/aarch64-insn.h.
2584         (decode_b): Rename to ...
2585         (aarch64_decode_b): ... this.  Move to arch/aarch64-insn.c.
2586         Declare in arch/aarch64-insn.h.
2587         (decode_bcond): Rename to ...
2588         (aarch64_decode_bcond): ... this.  Move to arch/aarch64-insn.c.
2589         Declare in arch/aarch64-insn.h.
2590         (decode_br): Rename to ...
2591         (aarch64_decode_br): ... this.
2592         (decode_cb): Rename to ...
2593         (aarch64_decode_cb): ... this.  Move to arch/aarch64-insn.c.
2594         Declare in arch/aarch64-insn.h.
2595         (decode_eret): Rename to ...
2596         (aarch64_decode_eret): ... this.
2597         (decode_movz): Rename to ...
2598         (aarch64_decode_movz): ... this.
2599         (decode_orr_shifted_register_x): Rename to ...
2600         (aarch64_decode_orr_shifted_register_x): ... this.
2601         (decode_ret): Rename to ...
2602         (aarch64_decode_ret): ... this.
2603         (decode_stp_offset): Rename to ...
2604         (aarch64_decode_stp_offset): ... this.
2605         (decode_stp_offset_wb): Rename to ...
2606         (aarch64_decode_stp_offset_wb): ... this.
2607         (decode_stur): Rename to ...
2608         (aarch64_decode_stur): ... this.
2609         (decode_tb): Rename to ...
2610         (aarch64_decode_tb): ... this.  Move to arch/aarch64-insn.c.
2611         Declare in arch/aarch64-insn.h.
2612         (aarch64_analyze_prologue): Adjust calls to renamed functions.
2613
2614 2015-09-20  Doug Evans  <xdje42@gmail.com>
2615
2616         * dwarf2read.c (add_partial_symbol): Remove outdated comments.
2617
2618 2015-09-20  Doug Evans  <xdje42@gmail.com>
2619
2620         * dwarf2read.c (dwarf2_compute_name): Add FIXME.  Don't use a local
2621         variable name that collides with a parameter.
2622
2623 2015-09-20  Joel Brobecker  <brobecker@adacore.com>
2624
2625         * dwarf2loc.c (locexpr_get_frame_base): Renames
2626         block_op_get_frame_base.
2627         (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
2628         block_op_get_frame_base by reference to locexpr_get_frame_base.
2629         (loclist_get_frame_base): New function, near identical copy of
2630         locexpr_get_frame_base.
2631         (dwarf2_block_frame_base_loclist_funcs): Replace reference to
2632         block_op_get_frame_base by reference to loclist_get_frame_base.
2633
2634 2015-09-19  Doug Evans  <xdje42@gmail.com>
2635
2636         * ravenscar-thread.c (ravenscar_inferior_created): Replace
2637         current_inferior ()->gdbarch with its wrapper target_gdbarch.
2638
2639 2015-09-18  Doug Evans  <xdje42@gmail.com>
2640
2641         * linux-thread-db.c (record_thread): Return the created thread.
2642         (thread_from_lwp): Likewise.
2643         (thread_db_get_thread_local_address): Update.
2644
2645 2015-09-18  Doug Evans  <xdje42@gmail.com>
2646
2647         * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
2648         move only member demangled_name up.  All uses updated.
2649
2650 2015-09-18  Doug Evans  <xdje42@gmail.com>
2651
2652         * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
2653         kind of minimal symbol in the error message.
2654         * objfiles.c (objfile_flavour_name): New function.
2655         * objfiles.h (objfile_flavour_name): Declare.
2656
2657 2015-09-18  Yao Qi  <yao.qi@linaro.org>
2658
2659         * nat/aarch64-linux.c: Include elf/common.h,
2660         nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
2661         (aarch64_ps_get_thread_area): New function.
2662         * nat/aarch64-linux.h: Include gdb_proc_service.h.
2663         (aarch64_ps_get_thread_area): Declare.
2664         * aarch64-linux-nat.c (ps_get_thread_area): Call
2665         aarch64_ps_get_thread_area.
2666
2667 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2668
2669         * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
2670
2671 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2672
2673         * NEWS: Announce new scheduler-locking mode.
2674         * infrun.c (schedlock_replay): New.
2675         (scheduler_enums): Add schedlock_replay.
2676         (scheduler_mode): Change default to schedlock_replay.
2677         (user_visible_resume_ptid): Handle schedlock_replay.
2678         (clear_proceed_status_thread): Stop replaying if resumed thread is
2679         not replaying.
2680         (schedlock_applies): Handle schedlock_replay.
2681         (_initialize_infrun): Document new scheduler-locking mode.
2682         * record-btrace.c (record_btrace_resume): Remove code to stop other
2683         threads when not replaying the resumed thread.
2684
2685 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2686
2687         * record-btrace.c ((record_btrace_will_replay): New.
2688         (init_record_btrace_ops): Initialize to_record_will_replay.
2689         * record-full.c ((record_full_will_replay): New.
2690         (init_record_full_ops): Initialize to_record_will_replay.
2691         * target-delegates.c: Regenerated.
2692         * target.c (target_record_will_replay): New.
2693         * target.h (struct target_ops) <to_record_will_replay>: New.
2694         (target_record_will_replay): New.
2695
2696 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2697
2698         * record-btrace.c (record_btrace_resume): Call
2699         target_record_stop_replaying.
2700         (record_btrace_stop_replaying_all): New.
2701         (init_record_btrace_ops): Initialize to_record_stop_replaying.
2702         * record-full.c (record_full_stop_replaying): New.
2703         (init_record_full_ops ): Initialize to_record_stop_replaying.
2704         * target-delegates.c: Regenerated.
2705         * target.c (target_record_stop_replaying): New.
2706         * target.h (struct target_ops) <to_record_stop_replaying>: New.
2707         (target_record_stop_replaying): New.
2708
2709 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2710
2711         * record-btrace.c (record_btrace_xfer_partial)
2712         (record_btrace_store_registers, record_btrace_prepare_to_store):
2713         Call record_btrace_is_replaying with inferior_ptid instead of
2714         minus_one_ptid.
2715         (record_btrace_store_registers): Change error message.
2716
2717 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2718
2719         * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2720         Update users to pass minus_one_ptid.
2721         * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2722         * record.c (cmd_record_delete): Pass inferior_ptid to
2723         target_record_is_replaying.
2724         * target-delegates.c: Regenerated.
2725         * target.c (target_record_is_replaying): Add ptid argument.
2726         * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2727         argument.
2728         (target_record_is_replaying): Add ptid argument.
2729
2730 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2731
2732         * record-btrace.c (record_btrace_open): Remove non_stop check.
2733         * NEWS: Announce that record btrace supports non-stop mode.
2734
2735 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2736
2737         * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2738         in the TARKET_WAITKIND_NO_HISTORY case.
2739
2740 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2741
2742         * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2743         (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2744
2745 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2746
2747         * record-btrace.c (get_thread_current_frame): New.
2748         (record_btrace_start_replaying): Call get_thread_current_frame.
2749
2750 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2751
2752         * record-btrace.c (record_btrace_resume_thread): A move request
2753         overwrites a previous move request.
2754         (record_btrace_find_resume_thread): Removed.
2755         (record_btrace_resume): Resume all requested threads.
2756
2757 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2758
2759         * record-btrace.c: Include vec.h.
2760         (record_btrace_find_thread_to_move): Removed.
2761         (btrace_step_no_resumed, btrace_step_again)
2762         (record_btrace_stop_replaying_at_end): New.
2763         (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2764         (record_btrace_single_step_forward): Remove calls to
2765         record_btrace_stop_replaying.
2766         (record_btrace_step_thread): Do only one step for BTHR_CONT and
2767         BTHR_RCONT.  Keep threads at the end of their history moving.
2768         (record_btrace_wait): Call record_btrace_step_thread for all threads
2769         until one reports an event.  Call record_btrace_stop_replaying_at_end
2770         for the eventing thread.
2771
2772 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2773
2774         * record-btrace.c (record_btrace_single_step_forward): Return
2775         NO_HISTORY if a step brings us to the end of the execution history.
2776
2777 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2778
2779         * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2780         to ...
2781         (record_btrace_single_step_forward): ... here and
2782         (record_btrace_single_step_backward): ... here.
2783
2784 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2785
2786         * record-btrace.c (btrace_step_spurious)
2787         (record_btrace_single_step_forward)
2788         (record_btrace_single_step_backward): New.
2789         (record_btrace_step_thread): Call record_btrace_single_step_forward
2790         and record_btrace_single_step_backward.
2791
2792 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2793
2794         * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2795         (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2796
2797 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2798
2799         * record-btrace.c (btrace_thread_flag_to_str)
2800         (record_btrace_cancel_resume): New.
2801         (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2802         (record_btrace_resume): Print execution direction.
2803         (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2804         (record_btrace_wait): Call record_btrace_cancel_resume.
2805
2806 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2807
2808         * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2809         * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2810         (record_btrace_find_thread_to_move): Also accept threads that have
2811         BTHR_STOP set.
2812         (btrace_step_stopped_on_request, record_btrace_stop): New.
2813         (record_btrace_step_thread): Support BTHR_STOP.
2814         (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2815         (init_record_btrace_ops): Initialize to_stop.
2816
2817 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2818
2819         * record-btrace.c (record_btrace_wait): Replace non_stop check with
2820         target_is_non_stop_p ().
2821
2822 2015-09-15  Pierre-Marie de Rodat  <derodat@adacore.com>
2823
2824         * ada-typeprint.c (print_array_type): Do not describe arrays as
2825         packed when they embed dynamic elements.
2826
2827 2015-09-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
2828
2829         * symtab.h (address_class): Document that TLS variables
2830         are handled by LOC_UNRESOLVED.
2831         * findvar.c (default_read_var_value): Don't relocate TLS variables.
2832         * printcmd.c (address_info): Don't relocate TLS variables.
2833
2834 2015-09-15  Pierre Langlois  <pierre.langlois@arm.com>
2835
2836         * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2837         (decode_adrp): Likewise.
2838         (decode_b): Likewise.
2839         (decode_bcond): Likewise.
2840         (decode_br): Likewise.
2841         (decode_cb): Likewise.
2842         (decode_eret): Likewise.
2843         (decode_movz): Likewise.
2844         (decode_orr_shifted_register_x): Likewise.
2845         (decode_ret): Likewise.
2846         (decode_stp_offset): Likewise.
2847         (decode_stp_offset_wb): Likewise.
2848         (decode_stur): Likewise.
2849         (decode_tb): Likewise.
2850         (aarch64_analyze_prologue): Likewise.
2851         (pass_in_x): Likewise.
2852         (pass_in_v): Likewise.
2853         (pass_on_stack): Likewise.
2854         (aarch64_push_dummy_call): Likewise.
2855         (aarch64_extract_return_value): Likewise.
2856         (aarch64_store_return_value): Likewise.
2857         (aarch64_return_value): Likewise.
2858         (aarch64_record_asimd_load_store): Likewise.
2859         (aarch64_record_load_store): Likewise.
2860         (aarch64_record_data_proc_simd_fp): Likewise.
2861
2862 2015-09-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
2863
2864         * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2865         * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2866         (ppc64_skip_trampoline_code_1): ... here.
2867         (ppc64_skip_trampoline_code): New wrapper function.
2868         * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2869
2870 2015-09-15  Yao Qi  <yao.qi@linaro.org>
2871
2872         * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2873         function.
2874         (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2875         * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2876         if target_can_do_single_step returns 1.
2877         * remote.c (struct vCont_action_support) <s, S>: New fields.
2878         (PACKET_vContSupported): New enum.
2879         (remote_protocol_features): New element for vContSupported.
2880         (remote_query_supported): Append "vContSupported+".
2881         (remote_vcont_probe): Remove support_s and support_S, use
2882         rs->supports_vCont.s and rs->supports_vCont.S instead.  Disable
2883         vCont packet if c and C actions are not supported.
2884         (remote_can_do_single_step): New function.
2885         (init_remote_ops): Install it to to_can_do_single_step.
2886         (_initialize_remote): Call add_packet_config_cmd.
2887         * target.h (struct target_ops) <to_can_do_single_step>: New field.
2888         (target_can_do_single_step): New macro.
2889         * target-delegates.c: Re-generated.
2890
2891 2015-09-15  Yao Qi  <yao.qi@linaro.org>
2892
2893         * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2894         (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2895         * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2896         New function.
2897         (aarch64_siginfo_from_compat_siginfo): New function.
2898         * nat/aarch64-linux.h: Include signal.h.
2899         (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2900         (compat_timer_t, compat_clock_t): Likewise.
2901         (struct compat_timeval): New.
2902         (union compat_sigval): New.
2903         (struct compat_siginfo): New.
2904         (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2905         (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2906         (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2907         (cpt_si_band, cpt_si_fd): Likewise.
2908
2909 2015-09-14  Pedro Alves  <palves@redhat.com>
2910
2911         * infrun.c (current_stop_id): New global.
2912         (get_stop_id, new_stop_id): New functions.
2913         (fetch_inferior_event): Handle normal_stop proceeding the target.
2914         (struct stop_context): New.
2915         (save_stop_context, release_stop_context_cleanup)
2916         (stop_context_changed): New functions.
2917         (normal_stop): Return true if the hook-stop changes the stop
2918         context.
2919         * infrun.h (get_stop_id): Declare.
2920         (normal_stop): Now returns int.  Add documentation.
2921
2922 2015-09-14  Pierre-Marie de Rodat  <derodat@adacore.com>
2923
2924         * ada-lang.c (ada_value_ptr_subscript): Update the heading
2925         comment.  Handle packed arrays.
2926
2927 2015-09-14  Pedro Alves  <palves@redhat.com>
2928
2929         * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2930         mention of maint set/show target-non-stop.
2931
2932 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2933
2934         * NEWS: Announce new remote packets for the exec-events
2935         feature and the exec-events feature and associated commands.
2936
2937 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2938
2939         * remote.c (remote_exec_event_p): New function.
2940         (remote_insert_exec_catchpoint): New function.
2941         (remote_remove_exec_catchpoint): New function.
2942         (init_extended_remote_ops): Initialize extended_remote_ops
2943         members to_insert_exec_catchpoint and
2944         to_remove_exec_catchpoint.
2945
2946 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2947             Luis Machado  <lgustavo@codesourcery.com>
2948
2949         * infrun.c (follow_exec): Use process-style ptid for
2950         exec message.  Call add_inferior_with_spaces and
2951         target_follow_exec.
2952         * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2953         * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2954         * remote.c (remote_pspace_data): New static variable.
2955         (remote_pspace_data_cleanup): New function.
2956         (get_remote_exec_file): New function.
2957         (set_remote_exec_file_1): New function.
2958         (set_remote_exec_file): New function.
2959         (show_remote_exec_file): New function.
2960         (remote_exec_file): Delete static variable.
2961         (anonymous enum) <PACKET_exec_event_feature>: New
2962         enumeration constant.
2963         (remote_protocol_features): Add entry for exec-events feature.
2964         (remote_query_supported): Add client side of qSupported query
2965         for exec-events feature.
2966         (remote_follow_exec): New function.
2967         (remote_parse_stop_reply): Handle 'exec' stop reason.
2968         (extended_remote_run, extended_remote_create_inferior): Call
2969         get_remote_exec_file and set_remote_exec_file_1.
2970         (init_extended_remote_ops) <to_follow_exec>: Initialize new
2971         member.
2972         (_initialize_remote): Call
2973         register_program_space_data_with_cleanup.  Call
2974         add_packet_config_cmd for remote exec-events feature.
2975         Modify call to add_setshow_string_noescape_cmd for exec-file
2976         to use new functions set_remote_exec_file and
2977         show_remote_exec_file.
2978         * target-debug.h, target-delegates.c: Regenerated.
2979         * target.c (target_follow_exec): New function.
2980         * target.h (struct target_ops) <to_follow_exec>: New member.
2981         (target_follow_exec): Declare new function.
2982
2983 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
2984
2985         * aarch64-tdep.c (decode_cb): Move up comment describing the
2986         encoding.
2987         (decode_tb): Fix a typo in comment above the function.  Move up
2988         comment describing the encoding.
2989
2990 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
2991
2992         * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2993
2994 2015-09-11  Mihail-Marian Nistor  <mihail.nistor@freescale.com>
2995
2996         PR gdb/18947
2997         * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2998         glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2999
3000 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
3001
3002         * ada-lang.c (scan_discrim_bound): Factor out arithmetic
3003         operations.
3004
3005 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
3006
3007         * ada-lang.c (ada_search_struct_field): Constify parameters
3008         and/or variables..
3009         (xget_renaming_scope): Likewise.
3010         (ada_is_redundant_range_encoding): Likewise.
3011         (scan_discrim_bound): Likewise.
3012         (to_fixed_range_type): Likewise.
3013
3014 2015-09-10  Yao Qi  <yao.qi@linaro.org>
3015
3016         * breakpoint.c (download_tracepoint_locations): New local
3017         can_download_tracepoint.  Check the result of
3018         target_can_download_tracepoint and save it in
3019         can_download_tracepoint if there are tracepoints to download.
3020         * linux-nat.h (enum tribool): Move it to ...
3021         * common/common-types.h: ... here.
3022
3023 2015-09-09  Pedro Alves  <palves@redhat.com>
3024
3025         * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
3026         * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
3027
3028 2015-09-09  Pedro Alves  <palves@redhat.com>
3029
3030         * continuations.c (add_continuation, restore_thread_cleanup)
3031         (do_all_continuations_ptid, do_all_continuations_thread_callback)
3032         (do_all_continuations_thread, do_all_continuations)
3033         (discard_all_continuations_thread_callback)
3034         (discard_all_continuations_thread, discard_all_continuations)
3035         (add_intermediate_continuation)
3036         (do_all_intermediate_continuations_thread_callback)
3037         (do_all_intermediate_continuations_thread)
3038         (do_all_intermediate_continuations)
3039         (discard_all_intermediate_continuations_thread_callback)
3040         (discard_all_intermediate_continuations_thread)
3041         (discard_all_intermediate_continuations): Delete.
3042         * continuations.h (add_continuation, do_all_continuations)
3043         (do_all_continuations_thread, discard_all_continuations)
3044         (discard_all_continuations_thread, add_intermediate_continuation)
3045         (do_all_intermediate_continuations)
3046         (do_all_intermediate_continuations_thread)
3047         (discard_all_intermediate_continuations)
3048         (discard_all_intermediate_continuations_thread): Delete
3049         declarations.
3050         * event-top.c (stdin_event_handler): Delete references to
3051         continuations.
3052         * gdbthread.h (struct thread_info): Delete continuations and
3053         intermediate_continuations fields.
3054         * inf-loop.c (inferior_event_handler): Remove references to
3055         continuations.
3056         * infrun.c (infrun_thread_stop_requested_callback): Remove
3057         references to continuations.
3058         * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
3059         * thread.c: Don't include "continuations.h".
3060         (clear_thread_inferior_resources): Remove references to
3061         continuations.
3062
3063 2015-09-09  Pedro Alves  <palves@redhat.com>
3064
3065         * infcall.c (struct dummy_frame_context_saver): Delete.
3066         (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
3067         (dummy_frame_context_saver_drop)
3068         (dummy_frame_context_saver_cleanup)
3069         (dummy_frame_context_saver_get_regs)
3070         (dummy_frame_context_saver_setup): Delete.
3071         * infcall.h (dummy_frame_context_saver_drop)
3072         (dummy_frame_context_saver_cleanup)
3073         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
3074         Delete.
3075         (get_return_value): Remove 'ctx_saver' paremeter.  Adjust.
3076         * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
3077         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
3078
3079 2015-09-09  Pedro Alves  <palves@redhat.com>
3080
3081         * breakpoint.c: Include "thread-fsm.h".
3082         (struct until_break_command_continuation_args): Delete.
3083         (struct until_break_fsm): New.
3084         (until_break_fsm_ops): New global.
3085         (new_until_break_fsm, until_break_fsm_should_stop): New functions.
3086         (until_break_command_continuation): Delete.
3087         (until_break_fsm_clean_up): New function.
3088         (until_break_fsm_async_reply_reason): New function.
3089         (until_break_command): Adjust to create an until_break_fsm instead
3090         of a continuation.
3091         (momentary_bkpt_print_it): No longer print MI's async-stop-reason
3092         here.
3093         * infcmd.c (struct until_next_fsm): New.
3094         (until_next_fsm_ops): New global.
3095         (new_until_next_fsm, until_next_fsm_should_stop): New function.
3096         (until_next_continuation): Delete.
3097         (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
3098         functions.
3099         (until_next_command): Adjust to create a new until_next_fsm
3100         instead of a continuation.
3101
3102 2015-09-09  Pedro Alves  <palves@redhat.com>
3103
3104         * infcall.c: Include thread_fsm.h.
3105         (struct call_return_meta_info): New.
3106         (get_call_return_value): New function, factored out from
3107         call_function_by_hand_dummy.
3108         (struct call_thread_fsm): New.
3109         (call_thread_fsm_ops): New global.
3110         (new_call_thread_fsm, call_thread_fsm_should_stop)
3111         (call_thread_fsm_should_notify_stop): New functions.
3112         (run_inferior_call): Add 'sm' parameter.  Associate the FSM with
3113         the thread.
3114         (call_function_by_hand_dummy): Create a new call_thread_fsm
3115         instance, associate it with the thread, and wait for the FSM to
3116         finish.  If finished successfully, fetch the function's result
3117         value out of the FSM.
3118         * infrun.c (fetch_inferior_event): If the FSM says the stop
3119         shouldn't be notified, don't call normal_stop.
3120         (maybe_remove_breakpoints): New function, factored out from ...
3121         (normal_stop): ... here.  Simplify.
3122         * infrun.h (maybe_remove_breakpoints): Declare.
3123         * thread-fsm.c (thread_fsm_should_notify_stop): New function.
3124         (thread-fsm.h) <struct thread_fsm_ops>: New field.
3125         (thread_fsm_should_notify_stop): Declare.
3126
3127 2015-09-09  Pedro Alves  <palves@redhat.com>
3128
3129         * Makefile.in (COMMON_OBS): Add thread-fsm.o.
3130         * breakpoint.c (handle_jit_event): Print debug output.
3131         (bpstat_what): Split event callback handling to ...
3132         (bpstat_run_callbacks): ... this new function.
3133         (momentary_bkpt_print_it): No longer handle bp_finish here.
3134         * breakpoint.h (bpstat_run_callbacks): Declare.
3135         * gdbthread.h (struct thread_info) <step_multi>: Delete field.
3136         <thread_fsm>: New field.
3137         (thread_cancel_execution_command): Declare.
3138         * infcmd.c: Include thread-fsm.h.
3139         (struct step_command_fsm): New.
3140         (step_command_fsm_ops): New global.
3141         (new_step_command_fsm, step_command_fsm_prepare): New functions.
3142         (step_1): Adjust to use step_command_fsm_prepare and
3143         prepare_one_step.
3144         (struct step_1_continuation_args): Delete.
3145         (step_1_continuation): Delete.
3146         (step_command_fsm_should_stop): New function.
3147         (step_once): Delete.
3148         (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
3149         (prepare_one_step): New function, based on step_once.
3150         (until_next_command): Remove step_multi reference.
3151         (struct return_value_info): New.
3152         (print_return_value): Rename to ...
3153         (print_return_value_1): ... this.  New struct return_value_info
3154         parameter.  Adjust.
3155         (print_return_value): Reimplement as wrapper around
3156         print_return_value_1.
3157         (struct finish_command_fsm): New.
3158         (finish_command_continuation): Delete.
3159         (finish_command_fsm_ops): New global.
3160         (new_finish_command_fsm, finish_command_fsm_should_stop): New
3161         functions.
3162         (finish_command_fsm_clean_up, finish_command_fsm_return_value):
3163         New.
3164         (finish_command_continuation_free_arg): Delete.
3165         (finish_command_fsm_async_reply_reason): New.
3166         (finish_backward, finish_forward): Change symbol parameter to a
3167         finish_command_fsm.  Adjust.
3168         (finish_command): Create a finish_command_fsm.  Adjust.
3169         * infrun.c: Include "thread-fsm.h".
3170         (clear_proceed_status_thread): Delete the thread's FSM.
3171         (infrun_thread_stop_requested_callback): Cancel the thread's
3172         execution command.
3173         (clean_up_just_stopped_threads_fsms): New function.
3174         (fetch_inferior_event): Handle the event_thread's should_stop
3175         method saying the command isn't done yet.
3176         (process_event_stop_test): Run breakpoint callbacks here.
3177         (print_stop_event): Rename to ...
3178         (print_stop_location): ... this.
3179         (restore_current_uiout_cleanup): New function.
3180         (print_stop_event): Reimplement.
3181         (normal_stop): No longer notify the end_stepping_range observers
3182         here handle "step N" nor "finish" here.  No longer call
3183         print_stop_event here.
3184         * infrun.h (struct return_value_info): Forward declare.
3185         (print_return_value): Declare.
3186         (print_stop_event): Change prototype.
3187         * thread-fsm.c: New file.
3188         * thread-fsm.h: New file.
3189         * thread.c: Include "thread-fsm.h".
3190         (thread_cancel_execution_command): New function.
3191         (clear_thread_inferior_resources): Call it.
3192         * cli/cli-interp.c (cli_on_normal_stop): New function.
3193         (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
3194         observer.
3195         * mi/mi-interp.c: Include "thread-fsm.h".
3196         (restore_current_uiout_cleanup): Delete.
3197         (mi_on_normal_stop): If the thread has an FSM associated, and it
3198         finished, ask it for the async-reply-reason to print.  Always call
3199         print_stop_event here, regardless of the top-level interpreter.
3200         Check bpstat_what to tell whether an asynchronous breakpoint hit
3201         triggered.
3202         * tui/tui-interp.c (tui_on_normal_stop): New function.
3203         (tui_init): Install tui_on_normal_stop as normal_stop observer.
3204
3205 2015-09-09  Pedro Alves  <palves@redhat.com>
3206
3207         * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
3208         check whether the target can async.
3209         * inf-loop.c (inferior_event_handler): Only call target_async if
3210         the target can async.
3211         * infcall.c: Include top.h and interps.h.
3212         (run_inferior_call): For the interpreter to sync mode while
3213         running the infcall.  Call wait_sync_command_done instead of
3214         wait_for_inferior plus normal_stop.
3215         * infcmd.c (prepare_execution_command): Don't check whether the
3216         target can async when running in the foreground.
3217         (step_1): Delete synchronous case handling.
3218         (step_once): Always install a continuation, even in sync mode.
3219         (until_next_command, finish_forward): Don't check whether the
3220         target can async.
3221         (attach_command_post_wait, notice_new_inferior): Always install a
3222         continuation, even in sync mode.
3223         * infrun.c (mark_infrun_async_event_handler): New function.
3224         (proceed): In sync mode, mark infrun's event source instead of
3225         waiting for events here.
3226         (fetch_inferior_event): If the target can't async, do a blocking
3227         wait.
3228         (prepare_to_wait): In sync mode, mark infrun's event source.
3229         (infrun_async_inferior_event_handler): No longer bail out if the
3230         target can't async.
3231         * infrun.h (mark_infrun_async_event_handler): New declaration.
3232         * linux-nat.c (linux_nat_wait_1): Remove calls to
3233         set_sigint_trap/clear_sigint_trap.
3234         (linux_nat_terminal_inferior): No longer check whether the target
3235         can async.
3236         * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
3237         comment.
3238         (mi_execute_command_input_handler): No longer check whether the
3239         target is async.  Update and simplify comment.
3240         * target.c (default_target_wait): New function.
3241         * target.h (struct target_ops) <to_wait>: Now defaults to
3242         default_target_wait.
3243         (default_target_wait): Declare.
3244         * top.c (wait_sync_command_done): New function, factored out from
3245         ...
3246         (maybe_wait_sync_command_done): ... this.
3247         * top.h (wait_sync_command_done): Declare.
3248         * target-delegates.c: Regenerate.
3249
3250 2015-09-09  Markus Metzger  <markus.t.metzger@intel.com>
3251
3252         * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
3253         * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
3254         Remove include of sys/utsname.h.
3255         (linux_determine_kernel_ptr_bits): Remove.
3256         (linux_determine_kernel_start): New.
3257         (perf_event_is_kernel_addr): Remove tinfo argument.  Update users.
3258         Update check.
3259         (perf_event_skip_bts_record): Remove tinfo argument.  Update users.
3260         (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
3261         initialization.
3262         * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
3263         assignment.
3264
3265 2015-09-07  Pedro Alves  <palves@redhat.com>
3266
3267         * guile/guile-internal.h (as_a_scm_t_subr): New.
3268         * guile/guile.c (misc_guile_functions): Use it.
3269         * guile/scm-arch.c (arch_functions): Use it.
3270         * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
3271         Use it.
3272         * guile/scm-breakpoint.c (breakpoint_functions): Use it.
3273         * guile/scm-cmd.c (command_functions): Use it.
3274         * guile/scm-disasm.c (disasm_functions): Use it.
3275         * guile/scm-exception.c (exception_functions)
3276         (private_exception_functions): Use it.
3277         * guile/scm-frame.c (frame_functions)
3278         * guile/scm-gsmob.c (gsmob_functions): Use it.
3279         * guile/scm-iterator.c (iterator_functions): Use it.
3280         * guile/scm-lazy-string.c (lazy_string_functions): Use it.
3281         * guile/scm-math.c (math_functions): Use it.
3282         * guile/scm-objfile.c (objfile_functions): Use it.
3283         * guile/scm-param.c (parameter_functions): Use it.
3284         * guile/scm-ports.c (port_functions, private_port_functions): Use
3285         it.
3286         * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
3287         * guile/scm-progspace.c (pspace_functions): Use it.
3288         * guile/scm-string.c (string_functions): Use it.
3289         * guile/scm-symbol.c (symbol_functions): Use it.
3290         * guile/scm-symtab.c (symtab_functions): Use it.
3291         * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
3292         it.
3293         * guile/scm-value.c (value_functions): Use it.
3294
3295 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
3296
3297         * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
3298         (tui_next_win): Likewise.
3299         (tui_prev_win): Likewise.
3300         (tui_partial_win_by_name): Likewise.
3301         (tui_init_generic_part): Likewise.
3302         (init_content_element): Likewise.
3303         (tui_del_window): Likewise.
3304         (tui_free_window): Likewise.
3305         (tui_del_data_windows): Likewise.
3306         (tui_free_data_content): Likewise.
3307         * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
3308         * tui/tui-regs.c (tui_show_register_group): Likewise.
3309         * tui/tui-win.c (tui_resize_all): Likewise.
3310         (tui_set_focus): Likewise.
3311         (tui_set_win_height): Likewise.
3312         (make_invisible_and_set_new_height): Likewise.
3313         * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
3314         * tui/tui-wingeneral.c (make_visible): Likewise.
3315
3316 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
3317
3318         * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
3319
3320 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
3321
3322         * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
3323         pointer.
3324         * dbxread.c (dbx_end_psymtab): Likewise.
3325         * gnu-nat.c (gnu_write_inferior): Likewise.
3326         * mdebugread.c (cross_ref): Likewise.
3327         * p-valprint.c (pascal_val_print): Likewise.
3328         * xcoffread.c (xcoff_end_psymtab): Likewise.
3329
3330 2015-09-04  Yao Qi  <yao.qi@linaro.org>
3331
3332         * NEWS: Mention the aarch64 multi-arch debugging support.
3333
3334 2015-09-03  Pierre-Marie de Rodat  <derodat@adacore.com>
3335
3336         * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
3337         type instead of a TYPE_CODE_INT one for the string_char_type
3338         and the ada_primitive_type_char types.
3339
3340 2015-09-03  Yao Qi  <yao.qi@linaro.org>
3341
3342         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
3343         Move code to aarch64_linux_region_ok_for_watchpoint.  Call
3344         aarch64_linux_region_ok_for_watchpoint.
3345         * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
3346         New function.
3347         * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
3348         Declare it.
3349
3350 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
3351
3352         * gdb_obstack.h (obstack_strdup): Declare.
3353         * gdb_obstack.c (obstack_strdup): Define.
3354         * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
3355         * gdbarch.c: Regenerate.
3356         * gdbarch.h: Regenerate.
3357         * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
3358
3359 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
3360
3361         * gdbtypes.c (copy_type_recursive): Update documentation.
3362
3363 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
3364
3365         * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
3366         as zero.
3367
3368 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
3369
3370         * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
3371
3372 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
3373
3374         * solib-svr4.c (solib_event_probe_action): Call
3375         get_probe_argument_count using TRY...CATCH.
3376         (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
3377
3378 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
3379
3380         * probe.h (struct probe_ops) <get_probe_argument_count,
3381         evaluate_probe_argument, enable_probe, disable_probe>: Mention in
3382         the comment that the function can throw an exception.
3383         (get_probe_argument_count): Likewise.
3384         (evaluate_probe_argument): Likewise.
3385         * stap-probe.c (stap_get_opcode): Call error instead of
3386         internal_error.
3387         (stap_get_expected_argument_type): Likewise.  Add argument
3388         'probe'.  Improve error message by mentioning the probe's name.
3389         (stap_parse_probe_arguments): Adjust call to
3390         stap_get_expected_argument_type.
3391         (stap_get_arg): Add comment.  Assert that 'probe->args_parsed' is
3392         not zero.  Call internal_error if GDB requests an argument but the
3393         probe has no arguments.
3394
3395 2015-09-01  Pierre-Marie de Rodat  <derodat@adacore.com>
3396
3397         * ada-lang.c (ada_resolve_function): Do not ask the user what
3398         match to use when in completion mode.
3399
3400 2015-08-31  Andrew Burgess  <andrew.burgess@embecosm.com>
3401
3402         * tui/tui-data.c (tui_win_name): Make local variable const, remove
3403         cast of NULL.
3404
3405 2015-08-31  Max Filippov  <jcmvbkbc@gmail.com>
3406
3407         * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
3408         call_abi using XSHAL_ABI macro.
3409
3410 2015-08-29  Doug Evans  <xdje42@gmail.com>
3411
3412         * symtab.h (struct symbol): Tweak comment.
3413
3414 2015-08-29  Patrick Palka  <patrick@parcs.ath.cx>
3415
3416         * gdbtypes.c (alloc_type_arch): Allocate the type on the given
3417         gdbarch obstack instead of on the heap.  Update commentary
3418         accordingly.
3419
3420 2015-08-28  Joel Brobecker  <brobecker@adacore.com>
3421
3422         GDB 7.10 released.
3423
3424 2015-08-28  Simon Marchi  <simon.marchi@ericsson.com>
3425
3426         * NEWS: Update entry about non-8-bits addressable memory.
3427
3428 2015-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
3429
3430         Revert:
3431         2014-11-06  Doug Evans  <xdje42@gmail.com>
3432         * solib.c (solib_global_lookup): Fetch arch from objfile,
3433         not target_gdbarch.
3434
3435 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3436
3437         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
3438         attempt to relocate a TLS variable offset.
3439
3440 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3441
3442         * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
3443         registered yet.  Set inferior_ptid while calling target_read_memory.
3444
3445 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3446
3447         * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
3448         (GDB_ARCH_IS_TRAP_BRKPT): ... this.  Add __powerpc__ case.
3449         * linux-nat.c (check_stopped_by_breakpoint): Use
3450         GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
3451
3452 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3453
3454         * linux-thread-db.c (thread_db_get_thread_local_address): If the
3455         thread was not yet discovered, use thread_from_lwp instead of
3456         calling thread_db_find_new_threads_1.
3457
3458 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
3459
3460         * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
3461         statements.
3462
3463 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
3464
3465         * NEWS: Document support for non-8-bits addressable memory.
3466
3467 2015-08-27  Pedro Alves  <palves@redhat.com>
3468
3469         * configure.ac: Remove AC_TYPE_SIGNAL call.
3470         * configure, config.in: Regenerate.
3471
3472 2015-08-27  Pedro Alves  <palves@redhat.com>
3473
3474         * cp-support.c (gdb_demangle): Use sighandler_t.  Remove cast.
3475         * extension-priv.h: Include signal.h.
3476         (struct signal_handler) <handler>: Change type to sighandler_t.
3477         * extension.c (install_gdb_sigint_handler): Use sighandler_t.
3478         * inflow.c (sigint_ours, sigquit_ours): Change type to
3479         sighandler_t.
3480         (child_terminal_inferior): Remove casts.
3481         (child_terminal_ours_1, new_tty): Use sighandler_t.  Remove casts.
3482         (osig): Change type to sighandler_t.
3483         * nto-procfs.c (ofunc): Change type to sighandler_t.
3484         (procfs_wait): Remove casts.
3485         * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
3486         * remote-sim.c (gdbsim_wait): Use sighandler_t.
3487         * utils.c (wait_to_die_with_timeout): Use sighandler_t.
3488
3489 2015-08-27  Pedro Alves  <palves@redhat.com>
3490
3491         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
3492         * gnulib/aclocal.m4: Renegerate.
3493         * gnulib/config.in: Renegerate.
3494         * gnulib/configure: Renegerate.
3495         * gnulib/import/Makefile.am: Update.
3496         * gnulib/import/Makefile.in: Regenerate.
3497         * gnulib/import/m4/gnulib-cache.m4: Update.
3498         * gnulib/import/m4/gnulib-comp.m4: Update.
3499         * gnulib/import/m4/signal_h.m4: New file.
3500         * gnulib/import/signal.in.h: New file.
3501
3502 2015-08-27  Pedro Alves  <palves@redhat.com>
3503
3504         * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
3505         (MIN_MEMORY_PACKET_SIZE): New.
3506         (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
3507         (get_memory_packet_size): Adjust.  No longer limit the max packet
3508         size.
3509         (set_memory_packet_size): Adjust, and remove dead code.
3510         (remote_check_symbols): Use xmalloc and a cleanup instead of
3511         alloca.
3512         (remote_packet_size): No longer cap the packet size.
3513         (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
3514
3515 2015-08-26  Luis Machado  <lgustavo@codesourcery.com>
3516
3517         * compile/compile.c (compile_to_object): Mention language in
3518         error message.
3519
3520 2015-08-26  Patrick Palka  <patrick@parcs.ath.cx>
3521
3522         * target.c (target_pre_inferior): Unset attach_flag.
3523
3524 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
3525
3526         * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
3527         * gdbarch.c: Re-generate.
3528
3529 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
3530
3531         * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
3532         function with the XNEW-family equivalent.
3533         * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
3534         * ada-exp.y (write_ambiguous_var): Likewise.
3535         * ada-lang.c (resolve_subexp): Likewise.
3536         (user_select_syms): Likewise.
3537         (assign_aggregate): Likewise.
3538         (ada_evaluate_subexp): Likewise.
3539         (cache_symbol): Likewise.
3540         * addrmap.c (allocate_key): Likewise.
3541         (addrmap_create_mutable): Likewise.
3542         * aix-thread.c (sync_threadlists): Likewise.
3543         * alpha-tdep.c (alpha_push_dummy_call): Likewise.
3544         (alpha_gdbarch_init): Likewise.
3545         * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
3546         * arm-linux-nat.c (arm_linux_add_process): Likewise.
3547         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3548         * arm-tdep.c (push_stack_item): Likewise.
3549         (arm_displaced_step_copy_insn): Likewise.
3550         (arm_gdbarch_init): Likewise.
3551         (_initialize_arm_tdep): Likewise.
3552         * avr-tdep.c (push_stack_item): Likewise.
3553         * ax-general.c (new_agent_expr): Likewise.
3554         * block.c (block_initialize_namespace): Likewise.
3555         * breakpoint.c (alloc_counted_command_line): Likewise.
3556         (update_dprintf_command_list): Likewise.
3557         (parse_breakpoint_sals): Likewise.
3558         (decode_static_tracepoint_spec): Likewise.
3559         (until_break_command): Likewise.
3560         (clear_command): Likewise.
3561         (update_global_location_list): Likewise.
3562         (get_breakpoint_objfile_data) Likewise.
3563         * btrace.c (ftrace_new_function): Likewise.
3564         (btrace_set_insn_history): Likewise.
3565         (btrace_set_call_history): Likewise.
3566         * buildsym.c (add_symbol_to_list): Likewise.
3567         (record_pending_block): Likewise.
3568         (start_subfile): Likewise.
3569         (start_buildsym_compunit): Likewise.
3570         (push_subfile): Likewise.
3571         (end_symtab_get_static_block): Likewise.
3572         (buildsym_init): Likewise.
3573         * cli/cli-cmds.c (source_command): Likewise.
3574         * cli/cli-decode.c (add_cmd): Likewise.
3575         * cli/cli-script.c (build_command_line): Likewise.
3576         (setup_user_args): Likewise.
3577         (realloc_body_list): Likewise.
3578         (process_next_line): Likewise.
3579         (copy_command_lines): Likewise.
3580         * cli/cli-setshow.c (do_set_command): Likewise.
3581         * coff-pe-read.c (read_pe_exported_syms): Likewise.
3582         * coffread.c (coff_locate_sections): Likewise.
3583         (coff_symtab_read): Likewise.
3584         (coff_read_struct_type): Likewise.
3585         * common/cleanups.c (make_my_cleanup2): Likewise.
3586         * common/common-exceptions.c (throw_it): Likewise.
3587         * common/filestuff.c (make_cleanup_close): Likewise.
3588         * common/format.c (parse_format_string): Likewise.
3589         * common/queue.h (DEFINE_QUEUE_P): Likewise.
3590         * compile/compile-object-load.c (munmap_list_add): Likewise.
3591         (compile_object_load): Likewise.
3592         * compile/compile-object-run.c (compile_object_run): Likewise.
3593         * compile/compile.c (append_args): Likewise.
3594         * corefile.c (specify_exec_file_hook): Likewise.
3595         * cp-support.c (make_symbol_overload_list): Likewise.
3596         * cris-tdep.c (push_stack_item): Likewise.
3597         (cris_gdbarch_init): Likewise.
3598         * ctf.c (ctf_trace_file_writer_new): Likewise.
3599         * dbxread.c (init_header_files): Likewise.
3600         (add_new_header_file): Likewise.
3601         (init_bincl_list): Likewise.
3602         (dbx_end_psymtab): Likewise.
3603         (start_psymtab): Likewise.
3604         (dbx_end_psymtab): Likewise.
3605         * dcache.c (dcache_init): Likewise.
3606         * dictionary.c (dict_create_hashed): Likewise.
3607         (dict_create_hashed_expandable): Likewise.
3608         (dict_create_linear): Likewise.
3609         (dict_create_linear_expandable): Likewise.
3610         * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
3611         * dummy-frame.c (register_dummy_frame_dtor): Likewise.
3612         * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
3613         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3614         (decode_frame_entry_1): Likewise.
3615         * dwarf2expr.c (new_dwarf_expr_context): Likewise.
3616         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
3617         * dwarf2read.c (dwarf2_has_info): Likewise.
3618         (create_signatured_type_table_from_index): Likewise.
3619         (dwarf2_read_index): Likewise.
3620         (dw2_get_file_names_reader): Likewise.
3621         (create_all_type_units): Likewise.
3622         (read_cutu_die_from_dwo): Likewise.
3623         (init_tu_and_read_dwo_dies): Likewise.
3624         (init_cutu_and_read_dies): Likewise.
3625         (create_all_comp_units): Likewise.
3626         (queue_comp_unit): Likewise.
3627         (inherit_abstract_dies): Likewise.
3628         (read_call_site_scope): Likewise.
3629         (dwarf2_add_field): Likewise.
3630         (dwarf2_add_typedef): Likewise.
3631         (dwarf2_add_member_fn): Likewise.
3632         (attr_to_dynamic_prop): Likewise.
3633         (abbrev_table_alloc_abbrev): Likewise.
3634         (abbrev_table_read_table): Likewise.
3635         (add_include_dir): Likewise.
3636         (add_file_name): Likewise.
3637         (dwarf_decode_line_header): Likewise.
3638         (dwarf2_const_value_attr): Likewise.
3639         (dwarf_alloc_block): Likewise.
3640         (parse_macro_definition): Likewise.
3641         (set_die_type): Likewise.
3642         (write_psymtabs_to_index): Likewise.
3643         (create_cus_from_index): Likewise.
3644         (dwarf2_create_include_psymtab): Likewise.
3645         (process_psymtab_comp_unit_reader): Likewise.
3646         (build_type_psymtab_dependencies): Likewise.
3647         (read_comp_units_from_section): Likewise.
3648         (compute_compunit_symtab_includes): Likewise.
3649         (create_dwo_unit_in_dwp_v1): Likewise.
3650         (create_dwo_unit_in_dwp_v2): Likewise.
3651         (read_func_scope): Likewise.
3652         (process_structure_scope): Likewise.
3653         (mark_common_block_symbol_computed): Likewise.
3654         (load_partial_dies): Likewise.
3655         (dwarf2_symbol_mark_computed): Likewise.
3656         * elfread.c (elf_symfile_segments): Likewise.
3657         (elf_read_minimal_symbols): Likewise.
3658         * environ.c (make_environ): Likewise.
3659         * eval.c (evaluate_subexp_standard): Likewise.
3660         * event-loop.c (create_file_handler): Likewise.
3661         (create_async_signal_handler): Likewise.
3662         (create_async_event_handler): Likewise.
3663         (create_timer): Likewise.
3664         * exec.c (build_section_table): Likewise.
3665         * fbsd-nat.c (fbsd_remember_child): Likewise.
3666         * fork-child.c (fork_inferior): Likewise.
3667         * frv-tdep.c (new_variant): Likewise.
3668         * gdbarch.sh (gdbarch_alloc): Likewise.
3669         (append_name): Likewise.
3670         * gdbtypes.c (rank_function): Likewise.
3671         (copy_type_recursive): Likewise.
3672         (add_dyn_prop): Likewise.
3673         * gnu-nat.c (make_proc): Likewise.
3674         (make_inf): Likewise.
3675         (gnu_write_inferior): Likewise.
3676         * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3677         (build_std_type_info_type): Likewise.
3678         * guile/scm-param.c (compute_enum_list): Likewise.
3679         * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
3680         * guile/scm-value.c (gdbscm_value_call): Likewise.
3681         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3682         * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3683         (read_unwind_info): Likewise.
3684         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3685         * infcall.c (dummy_frame_context_saver_setup): Likewise.
3686         (call_function_by_hand_dummy): Likewise.
3687         * infcmd.c (step_once): Likewise.
3688         (finish_forward): Likewise.
3689         (attach_command): Likewise.
3690         (notice_new_inferior): Likewise.
3691         * inferior.c (add_inferior_silent): Likewise.
3692         * infrun.c (add_displaced_stepping_state): Likewise.
3693         (save_infcall_control_state): Likewise.
3694         (save_inferior_ptid): Likewise.
3695         (_initialize_infrun): Likewise.
3696         * jit.c (bfd_open_from_target_memory): Likewise.
3697         (jit_gdbarch_data_init): Likewise.
3698         * language.c (add_language): Likewise.
3699         * linespec.c (decode_line_2): Likewise.
3700         * linux-nat.c (add_to_pid_list): Likewise.
3701         (add_initial_lwp): Likewise.
3702         * linux-thread-db.c (add_thread_db_info): Likewise.
3703         (record_thread): Likewise.
3704         (info_auto_load_libthread_db): Likewise.
3705         * m32c-tdep.c (m32c_gdbarch_init): Likewise.
3706         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3707         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3708         * m88k-tdep.c (m88k_analyze_prologue): Likewise.
3709         * macrocmd.c (macro_define_command): Likewise.
3710         * macroexp.c (gather_arguments): Likewise.
3711         * macroscope.c (sal_macro_scope): Likewise.
3712         * macrotab.c (new_macro_table): Likewise.
3713         * mdebugread.c (push_parse_stack): Likewise.
3714         (parse_partial_symbols): Likewise.
3715         (parse_symbol): Likewise.
3716         (psymtab_to_symtab_1): Likewise.
3717         (new_block): Likewise.
3718         (new_psymtab): Likewise.
3719         (mdebug_build_psymtabs): Likewise.
3720         (add_pending): Likewise.
3721         (elfmdebug_build_psymtabs): Likewise.
3722         * mep-tdep.c (mep_gdbarch_init): Likewise.
3723         * mi/mi-main.c (mi_execute_command): Likewise.
3724         * mi/mi-parse.c (mi_parse_argv): Likewise.
3725         * minidebug.c (lzma_open): Likewise.
3726         * minsyms.c (terminate_minimal_symbol_table): Likewise.
3727         * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3728         * mips-tdep.c (mips_gdbarch_init): Likewise.
3729         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3730         * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3731         * mt-tdep.c (mt_registers_info): Likewise.
3732         * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3733         * nat/linux-btrace.c (linux_enable_bts): Likewise.
3734         (linux_enable_pt): Likewise.
3735         * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3736         (linux_xfer_osdata_processgroups): Likewise.
3737         * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3738         * nto-procfs.c (procfs_meminfo): Likewise.
3739         * objc-lang.c (start_msglist): Likewise.
3740         (selectors_info): Likewise.
3741         (classes_info): Likewise.
3742         (find_methods): Likewise.
3743         * objfiles.c (allocate_objfile): Likewise.
3744         (update_section_map): Likewise.
3745         * osabi.c (gdbarch_register_osabi): Likewise.
3746         (gdbarch_register_osabi_sniffer): Likewise.
3747         * parse.c (start_arglist): Likewise.
3748         * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3749         (hwdebug_insert_point): Likewise.
3750         * printcmd.c (display_command): Likewise.
3751         (ui_printf): Likewise.
3752         * procfs.c (create_procinfo): Likewise.
3753         (load_syscalls): Likewise.
3754         (proc_get_LDT_entry): Likewise.
3755         (proc_update_threads): Likewise.
3756         * prologue-value.c (make_pv_area): Likewise.
3757         (pv_area_store): Likewise.
3758         * psymtab.c (extend_psymbol_list): Likewise.
3759         (init_psymbol_list): Likewise.
3760         (allocate_psymtab): Likewise.
3761         * python/py-inferior.c (add_thread_object): Likewise.
3762         * python/py-param.c (compute_enum_values): Likewise.
3763         * python/py-value.c (valpy_call): Likewise.
3764         * python/py-varobj.c (py_varobj_iter_next): Likewise.
3765         * python/python.c (ensure_python_env): Likewise.
3766         * record-btrace.c (record_btrace_start_replaying): Likewise.
3767         * record-full.c (record_full_reg_alloc): Likewise.
3768         (record_full_mem_alloc): Likewise.
3769         (record_full_end_alloc): Likewise.
3770         (record_full_core_xfer_partial): Likewise.
3771         * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3772         * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3773         * remote-notif.c (remote_notif_state_allocate): Likewise.
3774         * remote.c (demand_private_info): Likewise.
3775         (remote_notif_stop_alloc_reply): Likewise.
3776         (remote_enable_btrace): Likewise.
3777         * reverse.c (save_bookmark_command): Likewise.
3778         * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3779         * rx-tdep.c (rx_gdbarch_init): Likewise.
3780         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3781         * ser-go32.c (dos_get_tty_state): Likewise.
3782         (dos_copy_tty_state): Likewise.
3783         * ser-mingw.c (ser_windows_open): Likewise.
3784         (ser_console_wait_handle): Likewise.
3785         (ser_console_get_tty_state): Likewise.
3786         (make_pipe_state): Likewise.
3787         (net_windows_open): Likewise.
3788         * ser-unix.c (hardwire_get_tty_state): Likewise.
3789         (hardwire_copy_tty_state): Likewise.
3790         * solib-aix.c (solib_aix_new_lm_info): Likewise.
3791         * solib-dsbt.c (dsbt_current_sos): Likewise.
3792         (dsbt_relocate_main_executable): Likewise.
3793         * solib-frv.c (frv_current_sos): Likewise.
3794         (frv_relocate_main_executable): Likewise.
3795         * solib-spu.c (spu_bfd_fopen): Likewise.
3796         * solib-svr4.c (lm_info_read): Likewise.
3797         (svr4_copy_library_list): Likewise.
3798         (svr4_default_sos): Likewise.
3799         * source.c (find_source_lines): Likewise.
3800         (line_info): Likewise.
3801         (add_substitute_path_rule): Likewise.
3802         * spu-linux-nat.c (spu_bfd_open): Likewise.
3803         * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3804         * stabsread.c (dbx_lookup_type): Likewise.
3805         (read_type): Likewise.
3806         (read_member_functions): Likewise.
3807         (read_struct_fields): Likewise.
3808         (read_baseclasses): Likewise.
3809         (read_args): Likewise.
3810         (_initialize_stabsread): Likewise.
3811         * stack.c (func_command): Likewise.
3812         * stap-probe.c (handle_stap_probe): Likewise.
3813         * symfile.c (addrs_section_sort): Likewise.
3814         (addr_info_make_relative): Likewise.
3815         (load_section_callback): Likewise.
3816         (add_symbol_file_command): Likewise.
3817         (init_filename_language_table): Likewise.
3818         * symtab.c (create_filename_seen_cache): Likewise.
3819         (sort_search_symbols_remove_dups): Likewise.
3820         (search_symbols): Likewise.
3821         * target.c (make_cleanup_restore_target_terminal): Likewise.
3822         * thread.c (new_thread): Likewise.
3823         (enable_thread_stack_temporaries): Likewise.
3824         (make_cleanup_restore_current_thread): Likewise.
3825         (thread_apply_all_command): Likewise.
3826         * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3827         * top.c (gdb_readline_wrapper): Likewise.
3828         * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3829         * tracepoint.c (trace_find_line_command): Likewise.
3830         (all_tracepoint_actions_and_cleanup): Likewise.
3831         (make_cleanup_restore_current_traceframe): Likewise.
3832         (get_uploaded_tp): Likewise.
3833         (get_uploaded_tsv): Likewise.
3834         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3835         (tui_alloc_win_info): Likewise.
3836         (tui_alloc_content): Likewise.
3837         (tui_add_content_elements): Likewise.
3838         * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3839         (tui_set_disassem_content): Likewise.
3840         * ui-file.c (ui_file_new): Likewise.
3841         (stdio_file_new): Likewise.
3842         (tee_file_new): Likewise.
3843         * utils.c (make_cleanup_restore_integer): Likewise.
3844         (add_internal_problem_command): Likewise.
3845         * v850-tdep.c (v850_gdbarch_init): Likewise.
3846         * valops.c (find_oload_champ): Likewise.
3847         * value.c (allocate_value_lazy): Likewise.
3848         (record_latest_value): Likewise.
3849         (create_internalvar): Likewise.
3850         * varobj.c (install_variable): Likewise.
3851         (new_variable): Likewise.
3852         (new_root_variable): Likewise.
3853         (cppush): Likewise.
3854         (_initialize_varobj): Likewise.
3855         * windows-nat.c (windows_make_so): Likewise.
3856         * x86-nat.c (x86_add_process): Likewise.
3857         * xcoffread.c (arrange_linetable): Likewise.
3858         (allocate_include_entry): Likewise.
3859         (process_linenos): Likewise.
3860         (SYMBOL_DUP): Likewise.
3861         (xcoff_start_psymtab): Likewise.
3862         (xcoff_end_psymtab): Likewise.
3863         * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3864         * xtensa-tdep.c (xtensa_register_type): Likewise.
3865         * gdbarch.c: Regenerate.
3866         * gdbarch.h: Regenerate.
3867
3868 2015-08-25  Don Breazeal  <donb@codesourcery.com>
3869
3870         * infrun.c (follow_exec): Re-order operations for
3871         handling follow-exec-mode "new".
3872         (handle_inferior_event_1): Assign ecs->event_thread
3873         to the current thread.
3874         * remote.c (get_remote_arch_state): Add an assertion.
3875
3876 2015-08-26  Pedro Alves  <palves@redhat.com>
3877
3878         * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3879
3880 2015-08-25  Pedro Alves  <palves@redhat.com>
3881
3882         PR gdb/18804
3883         * defs.h (maybe_quit): Declare.
3884         (QUIT): Now calls maybe_quit.
3885         * event-loop.c (clear_async_signal_handler)
3886         (async_signal_handler_is_marked): New functions.
3887         * event-loop.h (async_signal_handler_is_marked)
3888         (clear_async_signal_handler): New declarations.
3889         * remote.c (remote_check_pending_interrupt): New function.
3890         (interrupt_query): Use make_cleanup_restore_target_terminal.  No
3891         longer check whether the target is async.  If waiting for a stop
3892         reply, and a Ctrl-C as been sent to the target, offer to
3893         disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3894         Otherwise do not disconnect and throw a quit.
3895         (_initialize_remote): Install remote_check_pending_interrupt as
3896         to_check_pending_interrupt.
3897         * target.c (target_check_pending_interrupt): New function.
3898         * target.h (struct target_ops) <to_check_pending_interrupt>: New
3899         field.
3900         (target_check_pending_interrupt): New declaration.
3901         * utils.c (maybe_quit): New function.
3902         * target-delegates.c: Regenerate.
3903
3904 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3905
3906         * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3907         Rename local variable pid to tid, and get lwpid of lwp.  Update
3908         debug output.
3909
3910 2015-08-25  Pierre-Marie de Rodat  <derodat@adacore.com>
3911
3912         * ada-lang.c (ada_read_var_value): Add a var_block argument
3913         and pass it to default_read_var_value.
3914         * block.c (block_static_link): New accessor.
3915         * block.h (block_static_link): Declare it.
3916         * buildsym.c (finish_block_internal): Add a static_link
3917         argument.  If there is a static link, associate it to the new
3918         block.
3919         (finish_block): Add a static link argument and pass it to
3920         finish_block_internal.
3921         (end_symtab_get_static_block): Update calls to finish_block and
3922         to finish_block_internal.
3923         (end_symtab_with_blockvector): Update call to
3924         finish_block_internal.
3925         * buildsym.h: Forward-declare struct dynamic_prop.
3926         (struct context_stack): Add a static_link field.
3927         (finish_block): Add a static link argument.
3928         * c-exp.y: Remove an obsolete comment (evaluation of variables
3929         already start from the selected frame, and now they climb *up*
3930         the call stack) and propagate the block information to the
3931         produced expression.
3932         * d-exp.y: Likewise.
3933         * f-exp.y: Likewise.
3934         * go-exp.y: Likewise.
3935         * jv-exp.y: Likewise.
3936         * m2-exp.y: Likewise.
3937         * p-exp.y: Likewise.
3938         * coffread.c (coff_symtab_read): Update calls to finish_block.
3939         * dbxread.c (process_one_symbol): Likewise.
3940         * xcoffread.c (read_xcoff_symtab): Likewise.
3941         * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3942         "sym" parameter to struct block_symbol, update its uses and pass
3943         its block to calls to read_var_value.
3944         (convert_symbol_sym): Update the calls to convert_one_symbol.
3945         * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3946         call to read_var_value.
3947         * dwarf2loc.c (block_op_get_frame_base): New.
3948         (dwarf2_block_frame_base_locexpr_funcs): Implement the
3949         get_frame_base method.
3950         (dwarf2_block_frame_base_loclist_funcs): Likewise.
3951         (dwarf2locexpr_baton_eval): Add a frame argument and use it
3952         instead of the selected frame in order to evaluate the
3953         expression.
3954         (dwarf2_evaluate_property): Add a frame argument.  Update call
3955         to dwarf2_locexpr_baton_eval to provide a frame in available and
3956         to handle the absence of address stack.
3957         * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3958         * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3959         declaration.
3960         (read_func_scope): Record any available static link description.
3961         Update call to finish_block.
3962         (read_lexical_block_scope): Update call to finish_block.
3963         * findvar.c (follow_static_link): New.
3964         (get_hosting_frame): New.
3965         (default_read_var_value): Add a var_block argument.  Use
3966         get_hosting_frame to handle non-local references.
3967         (read_var_value): Add a var_block argument and pass it to the
3968         LA_READ_VAR_VALUE method.
3969         * gdbtypes.c (resolve_dynamic_range): Update calls to
3970         dwarf2_evaluate_property.
3971         (resolve_dynamic_type_internal): Likewise.
3972         * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3973         read_var_value, passing it the block coming from symbol lookup.
3974         * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3975         read_var_value (TODO).
3976         * infcmd.c (finish_command_continuation): Update call to
3977         read_var_value, passing it the block coming from symbol lookup.
3978         * infrun.c (insert_exception_resume_breakpoint): Likewise.
3979         * language.h (struct language_defn): Add a var_block argument to
3980         the LA_READ_VAR_VALUE method.
3981         * objfiles.c (struct static_link_htab_entry): New.
3982         (static_link_htab_entry_hash): New.
3983         (static_link_htab_entry_eq): New.
3984         (objfile_register_static_link): New.
3985         (objfile_lookup_static_link): New.
3986         (free_objfile): Free the STATIC_LINKS hashed map if needed.
3987         * objfiles.h: Include hashtab.h.
3988         (struct objfile): Add a static_links field.
3989         (objfile_register_static_link): New.
3990         (objfile_lookup_static_link): New.
3991         * printcmd.c (print_variable_and_value): Update call to
3992         read_var_value.
3993         * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3994         * python/py-frame.c (frapy_read_var): Update call to
3995         read_var_value, passing it the block coming from symbol lookup.
3996         * python/py-framefilter.c (extract_sym): Add a sym_block
3997         parameter and set the pointed value to NULL (TODO).
3998         (enumerate_args): Update call to extract_sym.
3999         (enumerate_locals): Update calls to extract_sym and to
4000         read_var_value.
4001         * python/py-symbol.c (sympy_value): Update call to
4002         read_var_value (TODO).
4003         * stack.c (read_frame_local): Update call to read_var_value.
4004         (read_frame_arg): Likewise.
4005         (return_command): Likewise.
4006         * symtab.h (struct symbol_block_ops): Add a get_frame_base
4007         method.
4008         (struct symbol): Add a block field.
4009         (SYMBOL_BLOCK): New accessor.
4010         * valops.c (value_of_variable): Remove frame/block handling and
4011         pass the block argument to read_var_value, which does this job
4012         now.
4013         (value_struct_elt_for_reference): Update calls to
4014         read_var_value.
4015         (value_of_this): Pass the block found to read_var_value.
4016         * value.h (read_var_value): Add a var_block argument.
4017         (default_read_var_value): Likewise.
4018
4019 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4020
4021         * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
4022         * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
4023         * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
4024
4025 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4026
4027         * Makefile.in (aarch64-liunx.o): New rule.
4028         (HFILES_NO_SRCDIR): Add aarch64-linux.h.
4029         * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
4030         * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
4031         * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
4032         extern.
4033         (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
4034         * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
4035         * nat/aarch64-linux.c: New file.
4036         * nat/aarch64-linux.h: New file.
4037
4038 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4039
4040         * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
4041         lwp_arch_private_info and ptid_of_lwp.
4042
4043 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4044
4045         * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
4046         Move it to nat/aarch64-linux-hw-point.c.
4047         (debug_reg_change_callback): Likewise.
4048         (aarch64_notify_debug_reg_change): :Likewise.
4049         * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
4050         (aarch64_dr_update_callback_param): New.
4051         (debug_reg_change_callback): New function.
4052         (aarch64_notify_debug_reg_change): Likewise.
4053         * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
4054         Remove the declaration.
4055
4056 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4057
4058         * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
4059         Call current_lwp_ptid.
4060
4061 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4062
4063         * aarch64-linux-nat.c (debug_reg_change_callback): Use
4064         debug_printf.
4065
4066 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4067
4068         * aarch64-linux-nat.c (debug_reg_change_callback): Call
4069         ptid_get_pid rather than ptid_get_lwp.
4070
4071 2015-08-24  Pedro Alves  <palves@redhat.com>
4072
4073         * NEWS (New commands): Mention set/show remote
4074         multiprocess-extensions-packet.
4075         * remote.c (remote_query_supported): Only tell the server to use
4076         the multiprocess extensions if the user hasn't force-disabled them
4077         with "set remote multiprocess-extensions-packet off".
4078
4079 2015-08-24  Pedro Alves  <palves@redhat.com>
4080
4081         * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
4082         1029a8112290f6eee9d7878a391c49db42c999bd.
4083         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
4084         Regenerate.
4085         * gnulib/import/Makefile.am: Update.
4086         * gnulib/import/Makefile.in: Update.
4087         * gnulib/import/alloca.in.h: Update.
4088         * gnulib/import/basename-lgpl.c: Update.
4089         * gnulib/import/canonicalize-lgpl.c: Update.
4090         * gnulib/import/config.charset: Update.
4091         * gnulib/import/dirent.in.h: Update.
4092         * gnulib/import/dirfd.c: Update.
4093         * gnulib/import/dirname-lgpl.c: Update.
4094         * gnulib/import/dirname.h: Update.
4095         * gnulib/import/dosname.h: Update.
4096         * gnulib/import/errno.in.h: Update.
4097         * gnulib/import/extra/snippet/arg-nonnull.h: Update.
4098         * gnulib/import/extra/snippet/c++defs.h: Update.
4099         * gnulib/import/extra/snippet/warn-on-use.h: Update.
4100         * gnulib/import/extra/update-copyright: Update.
4101         * gnulib/import/float+.h: Update.
4102         * gnulib/import/float.c: Update.
4103         * gnulib/import/float.in.h: Update.
4104         * gnulib/import/fnmatch.c: Update.
4105         * gnulib/import/fnmatch.in.h: Update.
4106         * gnulib/import/fnmatch_loop.c: Update.
4107         * gnulib/import/fpucw.h: Update.
4108         * gnulib/import/frexp.c: Update.
4109         * gnulib/import/frexpl.c: Update.
4110         * gnulib/import/gettimeofday.c: Update.
4111         * gnulib/import/inttypes.in.h: Update.
4112         * gnulib/import/isnan.c: Update.
4113         * gnulib/import/isnand-nolibm.h: Update.
4114         * gnulib/import/isnand.c: Update.
4115         * gnulib/import/isnanl-nolibm.h: Update.
4116         * gnulib/import/isnanl.c: Update.
4117         * gnulib/import/itold.c: Update.
4118         * gnulib/import/localcharset.c: Update.
4119         * gnulib/import/localcharset.h: Update.
4120         * gnulib/import/lstat.c: Update.
4121         * gnulib/import/m4/00gnulib.m4: Update.
4122         * gnulib/import/m4/absolute-header.m4: Update.
4123         * gnulib/import/m4/alloca.m4: Update.
4124         * gnulib/import/m4/canonicalize.m4: Update.
4125         * gnulib/import/m4/codeset.m4: Update.
4126         * gnulib/import/m4/configmake.m4: Update.
4127         * gnulib/import/m4/dirent_h.m4: Update.
4128         * gnulib/import/m4/dirfd.m4: Update.
4129         * gnulib/import/m4/dirname.m4: Update.
4130         * gnulib/import/m4/double-slash-root.m4: Update.
4131         * gnulib/import/m4/eealloc.m4: Update.
4132         * gnulib/import/m4/errno_h.m4: Update.
4133         * gnulib/import/m4/exponentd.m4: Update.
4134         * gnulib/import/m4/exponentl.m4: Update.
4135         * gnulib/import/m4/extensions.m4: Update.
4136         * gnulib/import/m4/extern-inline.m4: Update.
4137         * gnulib/import/m4/fcntl-o.m4: Update.
4138         * gnulib/import/m4/float_h.m4: Update.
4139         * gnulib/import/m4/fnmatch.m4: Update.
4140         * gnulib/import/m4/fpieee.m4: Update.
4141         * gnulib/import/m4/frexp.m4: Update.
4142         * gnulib/import/m4/frexpl.m4: Update.
4143         * gnulib/import/m4/gettimeofday.m4: Update.
4144         * gnulib/import/m4/glibc21.m4: Update.
4145         * gnulib/import/m4/gnulib-cache.m4: Update.
4146         * gnulib/import/m4/gnulib-common.m4: Update.
4147         * gnulib/import/m4/gnulib-comp.m4: Update.
4148         * gnulib/import/m4/gnulib-tool.m4: Update.
4149         * gnulib/import/m4/include_next.m4: Update.
4150         * gnulib/import/m4/inttypes-pri.m4: Update.
4151         * gnulib/import/m4/inttypes.m4: Update.
4152         * gnulib/import/m4/isnand.m4: Update.
4153         * gnulib/import/m4/isnanl.m4: Update.
4154         * gnulib/import/m4/largefile.m4: Update.
4155         * gnulib/import/m4/localcharset.m4: Update.
4156         * gnulib/import/m4/locale-fr.m4: Update.
4157         * gnulib/import/m4/locale-ja.m4: Update.
4158         * gnulib/import/m4/locale-zh.m4: Update.
4159         * gnulib/import/m4/longlong.m4: Update.
4160         * gnulib/import/m4/lstat.m4: Update.
4161         * gnulib/import/m4/malloc.m4: Update.
4162         * gnulib/import/m4/malloca.m4: Update.
4163         * gnulib/import/m4/math_h.m4: Update.
4164         * gnulib/import/m4/mbrtowc.m4: Update.
4165         * gnulib/import/m4/mbsinit.m4: Update.
4166         * gnulib/import/m4/mbsrtowcs.m4: Update.
4167         * gnulib/import/m4/mbstate_t.m4: Update.
4168         * gnulib/import/m4/memchr.m4: Update.
4169         * gnulib/import/m4/memmem.m4: Update.
4170         * gnulib/import/m4/mmap-anon.m4: Update.
4171         * gnulib/import/m4/multiarch.m4: Update.
4172         * gnulib/import/m4/nocrash.m4: Update.
4173         * gnulib/import/m4/off_t.m4: Update.
4174         * gnulib/import/m4/pathmax.m4: Update.
4175         * gnulib/import/m4/readlink.m4: Update.
4176         * gnulib/import/m4/rename.m4: Update.
4177         * gnulib/import/m4/rmdir.m4: Update.
4178         * gnulib/import/m4/ssize_t.m4: Update.
4179         * gnulib/import/m4/stat.m4: Update.
4180         * gnulib/import/m4/stdbool.m4: Update.
4181         * gnulib/import/m4/stddef_h.m4: Update.
4182         * gnulib/import/m4/stdint.m4: Update.
4183         * gnulib/import/m4/stdio_h.m4: Update.
4184         * gnulib/import/m4/stdlib_h.m4: Update.
4185         * gnulib/import/m4/string_h.m4: Update.
4186         * gnulib/import/m4/strstr.m4: Update.
4187         * gnulib/import/m4/strtok_r.m4: Update.
4188         * gnulib/import/m4/sys_socket_h.m4: Update.
4189         * gnulib/import/m4/sys_stat_h.m4: Update.
4190         * gnulib/import/m4/sys_time_h.m4: Update.
4191         * gnulib/import/m4/sys_types_h.m4: Update.
4192         * gnulib/import/m4/time_h.m4: Update.
4193         * gnulib/import/m4/unistd_h.m4: Update.
4194         * gnulib/import/m4/warn-on-use.m4: Update.
4195         * gnulib/import/m4/wchar_h.m4: Update.
4196         * gnulib/import/m4/wchar_t.m4: Update.
4197         * gnulib/import/m4/wctype_h.m4: Update.
4198         * gnulib/import/m4/wint_t.m4: Update.
4199         * gnulib/import/malloc.c: Update.
4200         * gnulib/import/malloca.c: Update.
4201         * gnulib/import/malloca.h: Update.
4202         * gnulib/import/math.in.h: Update.
4203         * gnulib/import/mbrtowc.c: Update.
4204         * gnulib/import/mbsinit.c: Update.
4205         * gnulib/import/mbsrtowcs-impl.h: Update.
4206         * gnulib/import/mbsrtowcs-state.c: Update.
4207         * gnulib/import/mbsrtowcs.c: Update.
4208         * gnulib/import/memchr.c: Update.
4209         * gnulib/import/memmem.c: Update.
4210         * gnulib/import/pathmax.h: Update.
4211         * gnulib/import/readlink.c: Update.
4212         * gnulib/import/ref-add.sin: Update.
4213         * gnulib/import/ref-del.sin: Update.
4214         * gnulib/import/rename.c: Update.
4215         * gnulib/import/rmdir.c: Update.
4216         * gnulib/import/same-inode.h: Update.
4217         * gnulib/import/stat.c: Update.
4218         * gnulib/import/stdbool.in.h: Update.
4219         * gnulib/import/stddef.in.h: Update.
4220         * gnulib/import/stdint.in.h: Update.
4221         * gnulib/import/stdio.c: Update.
4222         * gnulib/import/stdio.in.h: Update.
4223         * gnulib/import/stdlib.in.h: Update.
4224         * gnulib/import/str-two-way.h: Update.
4225         * gnulib/import/streq.h: Update.
4226         * gnulib/import/string.in.h: Update.
4227         * gnulib/import/stripslash.c: Update.
4228         * gnulib/import/strnlen1.c: Update.
4229         * gnulib/import/strnlen1.h: Update.
4230         * gnulib/import/strstr.c: Update.
4231         * gnulib/import/strtok_r.c: Update.
4232         * gnulib/import/sys_stat.in.h: Update.
4233         * gnulib/import/sys_time.in.h: Update.
4234         * gnulib/import/sys_types.in.h: Update.
4235         * gnulib/import/time.in.h: Update.
4236         * gnulib/import/unistd.in.h: Update.
4237         * gnulib/import/verify.h: Update.
4238         * gnulib/import/wchar.in.h: Update.
4239         * gnulib/import/wctype.in.h: Update.
4240         * gnulib/import/gettimeofday.c: New file.
4241         * gnulib/import/m4/absolute-header.m4: New file.
4242         * gnulib/import/m4/gettimeofday.m4: New file.
4243         * gnulib/import/m4/sys_socket_h.m4: New file.
4244         * gnulib/import/m4/sys_time_h.m4: New file.
4245         * gnulib/import/stdio.c: Delete file.
4246         * gnulib/import/sys_time.in.h: New file.
4247
4248 2015-08-24  Pedro Alves  <palves@redhat.com>
4249
4250         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
4251         * common/gdb_sys_time.h: New file.
4252         * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
4253         * gdb_select.h: Likewise.
4254         * gdb_usleep.c: Likewise.
4255         * maint.c: Likewise.
4256         * mi/mi-main.c: Likewise.
4257         * mi/mi-parse.h: Likewise.
4258         * remote-fileio.c: Likewise.
4259         * remote-m32r-sdi.c: Likewise.
4260         * remote.c: Likewise.
4261         * ser-base.c: Likewise.
4262         * ser-pipe.c: Likewise.
4263         * ser-tcp.c: Likewise.
4264         * ser-unix.c: Likewise.
4265         * symfile.c: Likewise.
4266         * symfile.c: Likewise.  Rename OSIZE to SIZE throughout.
4267         * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
4268         * utils.c: Likewise.
4269
4270 2015-08-24  Pedro Alves  <palves@redhat.com>
4271
4272         * NEWS: Mention removed support for the various ROM monitors.
4273         * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
4274         ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
4275         * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
4276         gdb_target_obs.
4277         (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
4278         gdb_target_obs.
4279         (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
4280         dsrec.o from gdb_target_obs.
4281         (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
4282         from gdb_target_obs.
4283         (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
4284         gdb_target_obs.
4285         (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
4286         dink32-rom.o from gdb_target_obs.
4287         (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
4288         (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
4289         * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
4290         monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
4291
4292 2015-08-21  Pedro Alves  <palves@redhat.com>
4293
4294         * frame.c (null_frame_id): Explicitly zero-initialize.
4295
4296 2015-08-21  Tom Tromey  <tromey@redhat.com>
4297
4298         * dwarf2read.c (struct dwarf2_section_info): Rename field
4299         'asection' to 'section'.
4300         (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
4301         (dwarf2_locate_sections, dwarf2_locate_sections)
4302         (locate_dwz_sections, locate_v1_virtual_dwo_sections)
4303         (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
4304         (dwarf2_locate_v2_dwp_sections): Adjust.
4305
4306 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
4307
4308         * top.h (gdb_in_secondary_prompt_p): Declare.
4309         * top.c (gdb_secondary_prompt_depth): Define.
4310         (gdb_in_secondary_prompt_p): Define.
4311         (gdb_readline_wrapper_cleanup): Decrement
4312         gdb_secondary_prompt_depth.
4313         (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
4314         * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
4315         are in a secondary prompt.
4316
4317 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
4318
4319         * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
4320         emit the newline.
4321
4322 2015-08-21  Gary Benson  <gbenson@redhat.com>
4323
4324         * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
4325
4326 2015-08-21  Gary Benson  <gbenson@redhat.com>
4327
4328         * target.h (struct target_ops) <to_fileio_open>: New argument
4329         warn_if_slow.  Update comment.  All implementations updated.
4330         (target_fileio_open_warn_if_slow): New declaration.
4331         * target.c (target_fileio_open): Renamed as...
4332         (target_fileio_open_1): ...this.  New argument warn_if_slow.
4333         Pass warn_if_slow to implementation.  Update debug printing.
4334         (target_fileio_open): New function.
4335         (target_fileio_open_warn_if_slow): Likewise.
4336         * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
4337         target_fileio_open_warn_if_slow.
4338
4339 2015-08-21  Gary Benson  <gbenson@redhat.com>
4340
4341         * nat/linux-namespaces.c (linux_mntns_access_fs):
4342         Do not overwrite old_chain.
4343
4344 2015-08-20  Max Filippov  <jcmvbkbc@gmail.com>
4345
4346         * arch/xtensa.h: New file.
4347         * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
4348         (ps_get_thread_area): New function.
4349         * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
4350         set_gdbarch_fetch_tls_load_module_address to enable TLS support.
4351         * xtensa-tdep.c (osabi.h): New #include.
4352         (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
4353         xtensa-specific hooks.
4354         * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
4355         member and move the structure to arch/xtensa.h.
4356
4357 2015-08-21  Pedro Alves  <palves@redhat.com>
4358
4359         * remote.c (struct readahead_cache): New.
4360         (struct remote_state) <readahead_cache>: New field.
4361         (remote_open_1): Invalidate the cache.
4362         (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
4363         functions.
4364         (remote_hostio_pwrite): Invalidate the readahead cache.
4365         (remote_hostio_pread): Rename to ...
4366         (remote_hostio_pread_vFile): ... this.
4367         (remote_hostio_pread_from_cache): New function.
4368         (remote_hostio_pread): Reimplement.
4369         (remote_hostio_close): Invalidate the readahead cache.
4370
4371 2015-08-21  Marcin Cieślak <saper@saper.info>  (tiny patch)
4372
4373         PR build/18843
4374         * procfs.c: Include "filestuff.h".
4375
4376 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
4377
4378         * tui/tui-data.h (tui_command_info): Remove fields cur_line and
4379         curch.
4380         * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
4381         cur_line or curch, instead call wmove().
4382         (init_win_info) [CMD_WIN]: Likewise.
4383         * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
4384         instead call getcury().
4385         (tui_redisplay_readline): Don't set cur_line or curch.
4386         (tui_mld_erase_entire_line): Don't read cur_line, instead call
4387         getcury().
4388         (tui_cont_sig): Remove call to wmove.
4389         (tui_getc): Don't read cur_line or curch, instead call getcury()
4390         or getyx().  Don't set curch.
4391         * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
4392         set cur_line or curch.  Always move cursor to (0,0).
4393
4394 2015-08-20  Pedro Alves  <palves@redhat.com>
4395
4396         * infrun.c (print_target_wait_results): Make extern.
4397         * infrun.h (print_target_wait_results): Declare.
4398         * remote.c (set_stop_requested_callback): Delete.
4399         (process_initial_stop_replies): New function.
4400         (remote_start_remote): Use it.
4401         (stop_reply_queue_length): New function.
4402
4403 2015-08-20  Pedro Alves  <palves@redhat.com>
4404
4405         * dwarf2read.c (process_full_comp_unit): To tell whether
4406         start_subfile managed to deduce a language, test for
4407         language_unknown instead of language_c.
4408
4409 2015-08-20  Pierre-Marie de Rodat  <derodat@adacore.com>
4410
4411         * ada-lex.l: Reset the start condition to INITIAL in the rule that
4412         matches attributes.
4413
4414 2015-08-19  Kevin Buettner  <kevinb@redhat.com>
4415
4416         * dwarf2read.c (dwarf2_string_attr): New function.
4417         (lookup_dwo_unit, process_psymtab_comp_unit_reader)
4418         (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
4419         (read_call_site_scope, namespace_name, guess_full_die_structure_name)
4420         (anonymous_struct_prefix, prepare_one_comp_unit): Use
4421         dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
4422
4423 2015-08-18  Doug Evans  <dje@google.com>
4424             Adrian Sendroiu <adrian.sendroiu@freescale.com>
4425
4426         PR mi/18833
4427         * cli/cli-logging.c (pop_output_files): Don't restore redirection
4428         if MI-like.
4429         * mi/mi-out.c: #include "vec.h".
4430         (ui_filep): New type.
4431         (DEV_VEC_P (ui_filep)): New type.
4432         (struct ui_out_data) <buffer, original_buffer>: Delete.
4433         (struct ui_out_data) <streams>: New member.
4434         (mi_ui_out_impl): Add data_destroy field.
4435         (mi_field_string, mi_field_fmt): Update.
4436         (mi_flush, mi_redirect, field_separator): Update.
4437         (mi_open, mi_close): Update.
4438         (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
4439         (mi_out_data_ctor, mi_out_data_dtor): New functions.
4440         (mi_out_new): Call mi_out_data_ctor.
4441
4442 2015-08-18  Sandra Loosemore  <sandra@codesourcery.com>
4443
4444         * remote.c (strprefix): New.
4445         (remote_parse_stop_reply): Use strprefix instead of strncmp
4446         to ensure exact match of keyword.
4447
4448 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
4449
4450         * gdb_bfd.c (debug_bfd_cache): New variable.
4451         (show_bfd_cache_debug): New function.
4452         (gdb_bfd_open): Add debug logging.
4453         (gdb_bfd_ref): Likewise.
4454         (gdb_bfd_unref): Likewise.
4455         (_initialize_gdb_bfd): Add new set/show command.
4456         * NEWS: Mention new command.
4457
4458 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
4459
4460         * gdb_bfd.c (bfd_sharing): New variable.
4461         (show_bfd_sharing): New function.
4462         (gdb_bfd_open): Check bfd_sharing variable.
4463         (_initialize_gdb_bfd): Add new set/show command.
4464         * NEWS: Mention new command.
4465
4466 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
4467
4468         * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
4469         field.
4470         (struct gdb_bfd_cache_search): Likewise.
4471         (eq_bfd): Compare the size, inode, and device id fields.
4472         (gdb_bfd_open): Initialise the size, inode, and device id fields.
4473         (gdb_bfd_ref): Likewise.
4474         (gdb_bfd_unref): Likewise.
4475
4476 2015-08-18  Pedro Alves  <palves@redhat.com>
4477
4478         * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
4479         target implements to_always_non_stop_p, call it.
4480         * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
4481         (x86_linux_create_target): Install it as to_always_non_stop_p
4482         method.
4483
4484 2015-08-17  Doug Evans  <dje@google.com>
4485
4486         * ui-out.c (default_ui_out_impl): Add comment.
4487
4488 2015-08-17  Iain Buclaw  <ibuclaw@gdcproject.org>
4489
4490         * d-exp.y (type_aggregate_p): New function.
4491         (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
4492         (classify_inner_name): Likewise.
4493         * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
4494
4495 2015-08-15  Doug Evans  <xdje42@gmail.com>
4496
4497         * psymtab.c (add_psymbol_to_bcache): Remove "val" arg.  All callers
4498         updated.
4499         (add_psymbol_to_list): Ditto.
4500
4501 2015-08-15  Doug Evans  <xdje42@gmail.com>
4502
4503         * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab.  All callers
4504         updated.  Call end_psymtab_common.
4505         * dwarf2read.c (process_psymtab_comp_unit_reader): Call
4506         end_psymtab_common.
4507         (build_type_psymtabs_reader): Ditto.
4508         * psympriv.h (sort_pst_symbols): Delete.
4509         (end_psymtab_common): Declare.
4510         * psymtab.c (sort_pst_symbols): Make static.
4511         (end_psymtab_common): New function.
4512         * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
4513
4514 2015-08-15  Doug Evans  <xdje42@gmail.com>
4515
4516         * defs.h (LANGUAGE_BITS): Define.
4517         * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
4518         (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
4519         * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
4520         (minimal_symbol_type): Add nr_minsym_types.
4521         (MINSYM_TYPE_BITS): Define.
4522         (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
4523         (domain_enum_tag): Add NR_DOMAINS.
4524         (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
4525         (SYMBOL_ACLASS_BITS): Define from 6 to 5.
4526
4527 2015-08-15  Doug Evans  <xdje42@gmail.com>
4528
4529         * objfiles.h: Whitespace cleanup.
4530         * psympriv.h: Whitespace cleanup.
4531         * psymtab.c: Whitespace/coding convention cleanup.
4532
4533 2015-08-15  Patrick Palka  <patrick@parcs.ath.cx>
4534
4535         * inferior.c (detach_inferior_command): Don't call
4536         any_thread_of_process when pid is 0.
4537         (kill_inferior_command): Likewise.
4538
4539 2015-08-14  Doug Evans  <xdje42@gmail.com>
4540
4541         PR gdb/11833
4542         * NEWS: Document new /s modifier for the disassemble command.
4543         * cli/cli-cmds.c (disassemble_command): Add support for /s.
4544         (_initialize_cli_cmds): Update online docs of disassemble command.
4545         * disasm.c: #include "source.h".
4546         (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
4547         All uses updated.
4548         (dis_line_entry): New struct.
4549         (hash_dis_line_entry, eq_dis_line_entry): New functions.
4550         (allocate_dis_line_table): New functions.
4551         (maybe_add_dis_line_entry, line_has_code_p): New functions.
4552         (dump_insns): New arg end_pc.  All callers updated.
4553         (do_mixed_source_and_assembly_deprecated): Renamed from
4554         do_mixed_source_and_assembly.  All callers updated.
4555         (do_mixed_source_and_assembly): New function.
4556         (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
4557         * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
4558         DISASSEMBLY_SOURCE.  All uses updated.
4559         (DISASSEMBLY_SOURCE): New macro.
4560         * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
4561
4562 2015-08-14  Keith Seitz  <keiths@redhat.com>
4563
4564         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
4565         `typename' to `type_name' to avoid C++ reserved word.
4566
4567 2015-08-14  Keith Seitz  <keiths@redhat.com>
4568
4569         * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
4570         (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
4571         silence ARI errors.
4572
4573 2015-08-14  Iain Buclaw  <ibuclaw@gdcproject.org>
4574
4575         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
4576         xstrprintf instead of malloc and sprintf.
4577         (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
4578         (lex_one_token): Likewise.
4579
4580 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
4581
4582         * solib-svr4.c (read_program_header): Add base_addr argument to
4583         report the runtime address of the segment.
4584         (find_program_interpreter): Update read_program_header call to pass
4585         a NULL pointer for the new argument.
4586         (scan_dyntag): Add ptr_addr argument to report the runtime address
4587         of the tag payload.
4588         (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
4589         read_program_header to get the base address of the dynamic segment.
4590         (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
4591         read_program_header.
4592         (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
4593
4594 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
4595
4596         * MAINTAINERS (Write After Approval): Add Matthew Fortune.
4597
4598 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
4599
4600         * d-exp.y (%union): Add voidval.
4601         (%token): Add UNKNOWN_NAME as a token to represent an unclassified
4602         name in the lexing stage.
4603         (PostfixExpression): Move symbol completion handling in grammar here
4604         from PrimaryExpression.
4605         (PrimaryExpression): Move routines to handle resolving identifier
4606         tokens in the grammar here from push_expression_name.
4607         (IdentifierExp): Remove the handling of alternating '.' and identifier
4608         tokens.
4609         (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
4610         (BasicType): Remove C-style typename rules.
4611         (d_type_from_name, d_module_from_name, push_variable)
4612         (push_fieldnames, push_type_name, push_module_name)
4613         (push_expression_name): Remove.
4614         (lex_one_token): Rename from yylex.  Replace pstate with par_state.
4615         (token_and_value): New type.
4616         (token_fifo, popping, name_obstack): New globals.
4617         (classify_name): New function.
4618         (classify_inner_name): Likewise.
4619         (yylex): Likewise.
4620         (d_parse): Initialize token_fifo, popping and name_obstack.
4621
4622 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
4623
4624         * Makefile.in (SFILES): Add d-namespace.c.
4625         (COMMON_OBS): Add d-namespace.o.
4626         * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
4627         la_lookup_symbol_nonlocal callback function pointer.
4628         * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
4629         (d_lookup_nested_symbol): New declaration.
4630         * d-namespace.c: New file.
4631
4632 2015-08-13  Pedro Alves  <palves@redhat.com>
4633
4634         * python/py-unwind.c (pyuw_sniffer): Install the invalidate
4635         cleanup after the decref cleanup, not before.
4636
4637 2015-08-13  Pierre-Marie de Rodat  <derodat@adacore.com>
4638
4639         * ada-lang.c: Include namespace.h
4640         (aux_add_nonlocal_symbols): Fix a function name in comment.
4641         (ada_add_block_renamings): New.
4642         (add_nonlocal_symbols): Add global renamings handling.
4643         (ada_lookup_symbol_list_worker): Move the symbol lookup part
4644         to...
4645         (ada_add_all_symbols): ... this new function.
4646         (ada_add_block_symbols): Try to match the input name against the
4647         "using directives list", perform a recursive symbol lookup on
4648         the matched declarations.
4649         * block.h (struct block): Move the_namespace to top-level as
4650         namespace_info. Remove the language_specific field.
4651         (BLOCK_NAMESPACE): Update access to the namespace_info field.
4652         * buildsym.h (using_directives): Rename into...
4653         (local_using_directives): ... this.
4654         (global_using_directives): New.
4655         (struct context_stack): Rename the using_directives field into
4656         local_using_directives.
4657         * buildsym.c (finish_block_internal): Deal with the proper
4658         using directives repository (local or global).
4659         (prepare_for_building): Reset local_using_directives. Assert
4660         that there is no pending global using directive.
4661         (reset_symtab_globals): Reset global_using_directives and
4662         local_using_directives.
4663         (end_symtab_get_static_block): Don't ignore symtabs that have
4664         only using directives.
4665         (push_context): Update references to local_using_directives.
4666         (buildsym_init): Do not reset using_directives.
4667         * cp-support.c: Include namespace.h.
4668         * cp-support.h (struct using_direct): Move to namespace.h.
4669         (cp_add_using_directives): Move to namespace.h.
4670         * cp-namespace.c: Include namespace.h
4671         (cp_add_using_directive): Move to namespace.c, rename it to
4672         add_using_directive, add a "using_directives" argument and use
4673         it as the pending using directives repository.  All callers
4674         updated.
4675         * dwarf2read.c (using_directives): New.
4676         (read_import_statement): Call using_directives.
4677         (read_func_scope): Update references to local_using_directives.
4678         (read_lexical_block_scope): Likewise.
4679         (read_namespace): Update the heading comment, call
4680         using_directives.
4681         * namespace.h: New file.
4682         * namespace.c: New file.
4683         * Makefile.in (SFILES): Add namespace.c.
4684         (COMMON_OBS): Add namespace.o
4685
4686 2015-08-12  Joel Brobecker  <brobecker@adacore.com>
4687
4688         * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
4689         compute RETADDR.
4690
4691 2015-08-12  Keith Seitz  <keiths@redhat.com>
4692
4693         * break-catch-throw.c (re_set_exception_catchpoint) Rename
4694         reserved C++ keyword "explicit" to "explicit_loc".
4695         * breakpoint.c (create_overlay_event_breakpoint)
4696         (create_longjmp_master_breakpoint)
4697         (create_std_terminate_master_breakpoint)
4698         (create_exception_master_breakpoint, update_static_tracepoint):
4699         Rename reserved C++ keyword "explicit" to "explicit_loc".
4700         * completer.c (collect_explicit_location_matches)
4701         (explicit_location_completer): Rename reserved C++ keyword
4702         "explicit" to "explicit_loc".
4703         * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
4704         (canonicalize_linespec, create_sals_line_offset)
4705         (convert_linespec_to_sals, convert_explicit_location_to_sals)
4706         (event_location_to_sals, decode_objc): Rename reserved C++ keyword
4707         "explicit" to "explicit_loc".
4708         * location.c (struct event_location) <explicit>: Rename to
4709         "explicit_loc".
4710         (initialize_explicit_location, new_explicit_location)
4711         (explicit_location_to_string_internal, explicit_location_to_linespec):
4712         Rename reserved C++ keyword "explicit" to "explicit_loc".
4713         * location.h (explicit_location_to_string)
4714         (explicit_location_to_linespec, initialize_explicit_location)
4715         (new_explicit_location): Rename reserved C++ keyword "explicit"
4716         to "explicit_loc".
4717         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4718         keyword "explicit" to "explicit_loc".
4719
4720 2015-08-12  Keith Seitz  <keiths@redhat.com>
4721
4722         * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4723         and only call decode_line_1 when it is non-NULL.
4724
4725 2015-08-12  Luis Machado  <lgustavo@codesourcery.com>
4726
4727         * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4728         location address is not meaningful.
4729         (breakpoint_address_is_meaningful): Update comment.
4730
4731 2015-08-11  Keith Seitz  <keiths@redhat.com>
4732
4733         * NEWS: Mention explicit locations.
4734         * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4735         [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4736         (_initialize_breakpoint): Update documentation for
4737         "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4738
4739 2015-08-11  Keith Seitz  <keiths@redhat.com>
4740
4741         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4742         explicit locations, options "--source", "--function",
4743         "--label", and "--line".
4744
4745 2015-08-11  Keith Seitz  <keiths@redhat.com>
4746
4747         * completer.c: Include location.h.
4748         (enum match_type): New enum.
4749         (location_completer): Rename to ...
4750         (linespec_completer): ... this.
4751         (collect_explicit_location_matches, backup_text_ptr)
4752         (explicit_location_completer): New functions.
4753         (location_completer): "New" function; handle linespec
4754         and explicit location completions.
4755         (complete_line_internal): Remove all location completer-specific
4756         handling.
4757         * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4758         (find_toplevel_char): Export.
4759         (linespec_parse_line_offset): Export.
4760         Issue error if STRING is not numerical.
4761         (gdb_get_linespec_parser_quote_characters): New function.
4762         * linespec.h (linespec_parse_line_offset): Declare.
4763         (get_gdb_linespec_parser_quote_characters): Declare.
4764         (is_ada_operator): Declare.
4765         (find_toplevel_char): Declare.
4766         (linespec_lexer_lex_keyword): Declare.
4767         * location.c (explicit_to_event_location): New function.
4768         (explicit_location_lex_one): New function.
4769         (string_to_explicit_location): New function.
4770         (string_to_event_location): Handle explicit locations.
4771         * location.h (explicit_to_event_location): Declare.
4772         (string_to_explicit_location): Declare.
4773
4774 2015-08-11  Keith Seitz  <keiths@redhat.com>
4775
4776         * break-catch-throw.c (re_set_exception_catchpoint): Convert
4777         linespec into explicit location.
4778         * breakpoint.c (create_overlay_breakpoint)
4779         (create_longjmp_master_breakpoint)
4780         (create_std_terminate_master_breakpoint)
4781         (create_exception_master_breakpoint): Convert linespec into explicit
4782         location.
4783         (update_static_tracepoint): Convert linespec into explicit location.
4784         * linespec.c (enum offset_relative_sign, struct line_offset): Move
4785         location.h.
4786         (struct linespec) <expression, expr_pc, source_filename>
4787         <function_name, label_name, line_offset>: Replace with ...
4788         <explicit>: ... this.
4789         <is_linespec>: New member.
4790         (PARSER_EXPLICIT): New accessor macro.
4791         (undefined_label_error): New function.
4792         (source_file_not_found_error): New function.
4793         (linespec_parse_basic): The parser result is now an explicit location.
4794         Use PARSER_EXPLICIT to access it.
4795         Use undefined_label_error.
4796         (canonicalize_linespec): Convert canonical linespec into explicit
4797         location.
4798         Move string representation of location to explicit_location_to_linespec
4799         and use it and explicit_location_to_string to save string
4800         representations of the canonical location.
4801         (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4802         explicit location.  Update all references.
4803         (convert_explicit_location_to_sals): New function.
4804         (parse_linespec): Use PARSER_EXPLICIT to access the parser
4805         result's explicit location.
4806         (linespec_state_constructor): Initialize is_linespec.
4807         Use PARSER_EXPLICIT.
4808         (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4809         result.
4810         (event_location_to_sals): For linespec locations, set is_linespec.
4811         Handle explicit locations.
4812         (decode_objc): 'ls' contains an explicit location now. Update all
4813         references.
4814         (symtabs_from_filename): Use source_file_not_found_error.
4815         * location.c (struct event_location.u) <explicit>: New member.
4816         (initialize_explicit_location): New function.
4817         (initialize_event_location): Initialize explicit locations.
4818         (new_explicit_location, get_explicit_location)
4819         (get_explicit_location_const): New functions.
4820         (explicit_to_string_internal): New function; most of contents moved
4821         from canonicalize_linespec.
4822         (explicit_location_to_string): New function.
4823         (explicit_location_to_linespec): New function.
4824         (copy_event_location, delete_event_location)
4825         (event_location_to_string_const, event_location_empty_p): Handle
4826         explicit locations.
4827         * location.h (enum offset_relative_sign, struct line_offset): Move
4828         here from linespec.h.
4829         (enum event_location_type): Add EXPLICIT_LOCATION.
4830         (struct explicit_location): New structure.
4831         (explicit_location_to_string): Declare.
4832         (explicit_location_to_linespec): Declare.
4833         (new_explicit_location, get_explicit_locationp
4834         (get_explicit_location_const, initialize_explicit_location): Declare.
4835
4836 2015-08-11  Keith Seitz  <keiths@redhat.com>
4837
4838         * break-catch-throw.c (re_set_exception_catchpoint): Convert
4839         linespec for stap probe to probe location.
4840         * breakpoint.c (create_longjmp_master_breakpoint)
4841         (create_exception_master_breakpoint): Likewise.
4842         (break_command_1): Remove local variable `arg_cp'.
4843         Check location type to set appropriate breakpoint ops methods.
4844         (trace_command): Likewise.
4845         * linespec.c (event_location_to_sals): Assert on probe locations.
4846         * location.c (EL_PROBE): Add macro definition.
4847         (new_probe_location, get_probe_location): New functions.
4848         (copy_event_location, delete_event_location, event_location_to_string)
4849         (string_to_event_location, event_location_empty_p): Handle probe
4850         locations.
4851         * location.h (enum event_location_type): Add PROBE_LOCATION.
4852         (new_probe_location, get_probe_location): Declare.
4853         * probe.c (parse_probes): Assert that LOCATION is a probe location.
4854         Convert linespec into probe location.
4855
4856 2015-08-11  Keith Seitz  <keiths@redhat.com>
4857
4858         * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4859         Convert linespec to address location.
4860         * linespec.c (canonicalize_linespec): Do not handle address
4861         locations here.
4862         (convert_address_location_to_sals): New function; contents moved
4863         from ...
4864         (convert_linespc_to_sals): ... here.
4865         (parse_linespec): Remove address locations from linespec grammar.
4866         Remove handling of address locations.
4867         (linespec_lex_to_end): Remove handling of address linespecs.
4868         (event_location_to_sals): Handle ADDRESS_LOCATION.
4869         (linespec_expression_to_pc): Export.
4870         * linespec.h (linespec_expression_to_pc): Add declaration.
4871         * location.c (struct event_location.u) <address>: New member.
4872         (new_address_location, get_address_location): New functions.
4873         (copy_event_location, delete_event_location, event_location_to_string)
4874         (string_to_event_location, event_location_empty_p): Handle address
4875         locations.
4876         * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4877         (new_address_location, get_address_location): Declare.
4878         * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4879         to address location.
4880         * spu-tdep.c (spu_catch_start): Likewise.
4881
4882 2015-08-11  Keith Seitz  <keiths@redhat.com>
4883
4884         * ax-gdb.c: Include location.h.
4885         (agent_command_1) Use linespec location instead of address
4886         string.
4887         * break-catch-throw.c: Include location.h.
4888         (re_set_exception_catchpoint): Use linespec locations instead
4889         of address strings.
4890         * breakpoint.c: Include location.h.
4891         (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4892         (create_std_terminate_master_breakpoint)
4893         (create_exception_master_breakpoint, update_breakpoints_after_exec):
4894         Use linespec location instead of address string.
4895         (print_breakpoint_location):  Use locations and
4896         event_location_to_string.
4897         Print extra_string for pending locations for non-MI streams.
4898         (print_one_breakpoint_location): Use locations and
4899         event_location_to_string.
4900         (init_raw_breakpoint_without_location): Initialize b->location.
4901         (create_thread_event_breakpoint): Use linespec location instead of
4902         address string.
4903         (init_breakpoint_sal): Likewise.
4904         Only save extra_string if it is non-NULL and not the empty string.
4905         Use event_location_to_string instead of `addr_string'.
4906         Constify `p' and `endp'.
4907         Use skip_spaces_const/skip_space_const instead of non-const versions.
4908         Copy the location into the breakpoint.
4909         If LOCATION is NULL, save the breakpoint address as a linespec location
4910         instead of an address string.
4911         (create_breakpoint_sal): Change `addr_string' parameter to a struct
4912         event_location. All uses updated.
4913         (create_breakpoints_sal): Likewise for local variable `addr_string'.
4914         (parse_breakpoint_sals): Use locations instead of address strings.
4915         Remove check for empty linespec with conditional.
4916         Refactor.
4917         (decode_static_tracepoint_spec): Make argument const and update
4918         function.
4919         (create_breakpoint): Change `arg' to a struct event_location and
4920         rename.
4921         Remove `copy_arg' and `addr_start'.
4922         If EXTRA_STRING is empty, set it to NULL.
4923         Don't populate `canonical' for pending breakpoints.
4924         Pass `extra_string' to find_condition_and_thread.
4925         Clear `extra_string' if `rest' was NULL.
4926         Do not error with "garbage after location" if setting a dprintf
4927         breakpoint.
4928         Copy the location into the breakpoint instead of an address string.
4929         (break_command_1): Use string_to_event_location and pass this to
4930         create_breakpoint instead of an address string.
4931         Check against `arg_cp' for a probe linespec.
4932         (dprintf_command): Use string_to_event_location and pass this to
4933         create_breakpoint instead of an address string.
4934         Throw an exception if no format string was specified.
4935         (print_recreate_ranged_breakpoint): Use event_location_to_string
4936         instead of address strings.
4937         (break_range_command, until_break_command)
4938         (init_ada_exception_breakpoint): Use locations instead
4939         of address strings.
4940         (say_where): Print out extra_string for pending locations.
4941         (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4942         the breakpoint.
4943         (base_breakpoint_create_sals_from_location): Use struct event_location
4944         instead of address string.
4945         Remove `addr_start' and `copy_arg' parameters.
4946         (base_breakpoint_decode_location): Use struct event_location instead of
4947         address string.
4948         (bkpt_re_set): Use locations instead of address strings.
4949         Use event_location_empty_p to check for unset location.
4950         (bkpt_print_recreate): Use event_location_to_string instead of
4951         an address string.
4952         Print out extra_string for pending locations.
4953         (bkpt_create_sals_from_location, bkpt_decode_location)
4954         (bkpt_probe_create_sals_from_location): Use struct event_location
4955         instead of address string.
4956         (bkpt_probe_decode_location): Use struct event_location instead of
4957         address string.
4958         (tracepoint_print_recreate): Use event_location_to_string to
4959         recreate the tracepoint.
4960         (tracepoint_create_sals_from_location, tracepoint_decode_location)
4961         (tracepoint_probe_create_sals_from_location)
4962         (tracepoint_probe_decode_location): Use struct event_location
4963         instead of address string.
4964         (dprintf_print_recreate): Use event_location_to_string to recreate
4965         the dprintf.
4966         (dprintf_re_set): Remove check for valid/missing format string.
4967         (strace_marker_create_sals_from_location)
4968         (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4969         (update_static_tracepoint): Use struct event_location instead of
4970         address string.
4971         (location_to_sals): Likewise.
4972         Pass `extra_string' to find_condition_and_thread.
4973         For newly resolved pending breakpoint locations, clear the location's
4974         string representation.
4975         Assert that the breakpoint's condition string is NULL when
4976         condition_not_parsed.
4977         (breakpoint_re_set_default, create_sals_from_location_default)
4978         (decode_location_default, trace_command, ftrace_command)
4979         (strace_command, create_tracepoint_from_upload): Use locations
4980         instead of address strings.
4981         * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4982         Use struct event_location instead of address string.
4983         Update all uses.
4984         <decode_location>: Likewise.
4985         (struct breakpoint) <addr_string>: Change to struct event_location
4986         and rename `location'.
4987         <addr_string_range_end>: Change to struct event_location and rename
4988         `location_range_end'.
4989         (create_breakpoint): Use struct event_location instead of address
4990         string.
4991         * cli/cli-cmds.c: Include location.h.
4992         (edit_command, list_command): Use locations instead of address strings.
4993         * elfread.c: Include location.h.
4994         (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4995         * guile/scm-breakpoint.c: Include location.h.
4996         (bpscm_print_breakpoint_smob): Use event_location_to_string.
4997         (gdbscm_register_breakpoint): Use locations instead of address
4998         strings.
4999         * linespec.c: Include location.h.
5000         (struct ls_parser) <stream>: Change to const char *.
5001         (PARSER_STREAM): Update.
5002         (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
5003         keywords must be followed by whitespace.
5004         (canonicalize_linespec): Save a linespec location into `canonical'.
5005         Save a canonical linespec into `canonical'.
5006         (parse_linespec): Change `argptr' to const char * and rename `arg'.
5007         All uses updated.
5008         Update function description.
5009         (linespec_parser_new): Initialize `parser'.
5010         Update initialization of  parsing stream.
5011         (event_location_to_sals): New function.
5012         (decode_line_full): Change `argptr' to a struct event_location and
5013         rename it `location'.
5014         Use locations instead of address strings.
5015         Call event_location_to_sals instead of parse_linespec.
5016         (decode_line_1): Likewise.
5017         (decode_line_with_current_source, decode_line_with_last_displayed)
5018         Use locations instead of address strings.
5019         (decode_objc): Likewise.
5020         Change `argptr' to const char * and rename `arg'.
5021         (destroy_linespec_result): Delete the linespec result's location
5022         instead of freeing the address string.
5023         * linespec.h (struct linespec_result) <addr_string>: Change to
5024         struct event_location and rename to ...
5025         <location>: ... this.
5026         (decode_line_1, decode_line_full): Change `argptr' to struct
5027         event_location.  All callers updated.
5028         * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
5029         (mi_cmd_break_insert_1): Use locations instead of address strings.
5030         Throw an error if there was "garbage" at the end of the specified
5031         linespec.
5032         * probe.c: Include location.h.
5033         (parse_probes): Change `argptr' to struct event_location.
5034         Use event locations instead of address strings.
5035         * probe.h (parse_probes): Change `argptr' to struct event_location.
5036         * python/py-breakpoint.c: Include location.h.
5037         (bppy_get_location): Constify local variable `str'.
5038         Use event_location_to_string.
5039         (bppy_init): Use locations instead of address strings.
5040         * python/py-finishbreakpoint.c: Include location.h.
5041         (bpfinishpy_init): Remove local variable `addr_str'.
5042         Use locations instead of address strings.
5043         * python/python.c: Include location.h.
5044         (gdbpy_decode_line): Use locations instead of address strings.
5045         * remote.c: Include location.h.
5046         (remote_download_tracepoint): Use locations instead of address
5047         strings.
5048         * spu-tdep.c: Include location.h.
5049         (spu_catch_start): Remove local variable `buf'.
5050         Use locations instead of address strings.
5051         * tracepoint.c: Include location.h.
5052         (scope_info): Use locations instead of address strings.
5053         (encode_source_string): Constify parameter `src'.
5054         * tracepoint.h (encode_source_string): Likewise.
5055
5056 2015-08-11  Keith Seitz  <keiths@redhat.com>
5057
5058         * Makefile.in (SFILES): Add location.c.
5059         (HFILES_NO_SRCDIR): Add location.h.
5060         (COMMON_OBS): Add location.o.
5061         * linespec.c (linespec_lex_to_end): New function.
5062         * linespec.h (linespec_lex_to_end): Declare.
5063         * location.c: New file.
5064         * location.h: New file.
5065
5066 2015-08-11  Keith Seitz  <keiths@redhat.com>
5067
5068         * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
5069         Renamed to create_sals_from_location.
5070         <decode_linespec>: Renamed to decode_location.
5071         Update all callers.
5072         * breakpoint.c (create_sals_from_address_default): Renamed to ...
5073         (create_sals_from_location_default): ... this.
5074         (addr_string_to_sals): Renamed to ...
5075         (location_to_sals): ... this.
5076         (decode_linespec_default): Renamed to ...
5077         (decode_location_default): ... this.
5078         (base_breakpoint_create_sals_from_address): Renamed to ...
5079         (base_breakpoint_create_sals_from_location): ... this.
5080         (bkpt_create_sals_from_address): Renamed to ...
5081         (bkpt_create_sals_from_location): ... this.
5082         (bkpt_decode_linespec): Renamed to ...
5083         (bkpt_decode_location): ... this.
5084         (bkpt_probe_create_sals_from_address): Renamed to ...
5085         (bkpt_probe_create_sals_from_location): ... this.
5086         (tracepoint_create_sals_from_address): Renamed to ...
5087         (tracepoint_create_sals_from_location): ... this.
5088         (tracepoint_decode_linespec): Renamed to ...
5089         (tracepoint_decode_location): ... this.
5090         (tracepoint_probe_create_sals_from_address): Renamed to ...
5091         (tracepoint_probe_create_sals_from_location): ... this.
5092         (tracepoint_probe_decode_linespec): Renamed to ...
5093         (tracepoint_probe_decode_location): ... this.
5094         (strace_marker_create_sals_from_address): Renamed to ...
5095         (strace_marker_create_sals_from_location): ... this.
5096         (decode_linespec_default): Renamed to ...
5097         (decode_location_default): ... this.
5098
5099 2015-08-10  Doug Evans  <dje@google.com>
5100             Keith Seitz  <keiths@redhat.com>
5101
5102         PR gdb/17960
5103         * symtab.c (make_file_symbol_completion_list_1): Renamed from
5104         make_file_symbol_completion_list and made static.
5105         (make_file_symbol_completion_list): New function.
5106
5107 2015-08-10  Joel Brobecker  <brobecker@adacore.com>
5108
5109         * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
5110         trailing new-line at end of warning message.
5111         (proceed): Add i18n marker to error messages.
5112
5113 2015-08-07  Pedro Alves  <palves@redhat.com>
5114
5115         * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
5116
5117 2015-08-07  Pedro Alves  <palves@redhat.com>
5118
5119         * s390-linux-tdep.c (is_non_branch_ril)
5120         (s390_displaced_step_copy_insn): New functions.
5121         (s390_displaced_step_fixup): Update comment.
5122         (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
5123         gdbarch_displaced_step_copy_insn hook.
5124
5125 2015-08-07  Pedro Alves  <palves@redhat.com>
5126
5127         * infrun.c (displaced_step_prepare_throw): Return -1 if
5128         gdbarch_displaced_step_copy_insn returns NULL.  Update intro
5129         comment.
5130         * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
5131         (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
5132         in file.
5133         (ppc_displaced_step_copy_insn): New function.
5134         (ppc_displaced_step_fixup): Update comment.
5135         (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
5136         gdbarch_displaced_step_copy_insn hook.
5137         * gdbarch.sh (displaced_step_copy_insn): Document what happens on
5138         NULL return.
5139         * gdbarch.h: Regenerate.
5140
5141 2015-08-07  Pedro Alves  <palves@redhat.com>
5142
5143         * inferior.h (struct inferior) <displaced_stepping_failed>: New
5144         field.
5145         * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
5146         Return false if dispaced stepping failed before.
5147         (resume): Pass the current inferior to
5148         use_displaced_stepping_now_p.  Wrap displaced_step_prepare in
5149         TRY/CATCH.  If we get a MEMORY_ERROR, set the inferior's
5150         displaced_stepping_failed flag, and fall back to an in-line
5151         step-over.
5152
5153 2015-08-07  Pedro Alves  <palves@redhat.com>
5154
5155         * darwin-nat.c (darwin_stop): Rename to ...
5156         (darwin_interrupt): ... this.
5157         (_initialize_darwin_inferior): Adjust.
5158         * gnu-nat.c (gnu_stop): Delete.
5159         (gnu_target): Don't install gnu_stop.
5160         * inf-ptrace.c (inf_ptrace_stop): Rename to ...
5161         (inf_ptrace_interrupt): ... this.
5162         (inf_ptrace_target): Adjust.
5163         * infcmd.c (interrupt_target_1): Use target_interrupt instead of
5164         target_stop.
5165         * linux-nat (linux_nat_stop): Rename to ...
5166         (linux_nat_interrupt): ... this.
5167         (linux_nat_stop): Reimplement.
5168         (linux_nat_add_target): Install linux_nat_interrupt.
5169         * nto-procfs.c (nto_interrupt_twice): Rename to ...
5170         (nto_handle_sigint_twice): ... this.
5171         (nto_interrupt): Rename to ...
5172         (nto_handle_sigint): ... this.  Call target_interrupt instead of
5173         target_stop.
5174         (procfs_wait): Adjust.
5175         (procfs_stop): Rename to ...
5176         (procfs_interrupt): ... this.
5177         (init_procfs_targets): Adjust.
5178         * procfs.c (procfs_stop): Rename to ...
5179         (procfs_interrupt): ... this.
5180         (procfs_target): Adjust.
5181         * remote-m32r-sdi.c (m32r_stop): Rename to ...
5182         (m32r_interrupt): ... this.
5183         (init_m32r_ops): Adjust.
5184         * remote-sim.c (gdbsim_stop_inferior): Rename to ...
5185         (gdbsim_interrupt_inferior): ... this.
5186         (gdbsim_stop): Rename to ...
5187         (gdbsim_interrupt): ... this.
5188         (gdbsim_cntrl_c): Adjust.
5189         (init_gdbsim_ops): Adjust.
5190         * remote.c (sync_remote_interrupt): Adjust comments.
5191         (remote_stop_as): Rename to ...
5192         (remote_interrupt_as): ... this.
5193         (remote_stop): Adjust comment.
5194         (remote_interrupt): New function.
5195         (init_remote_ops): Install remote_interrupt.
5196         * target.c (target_interrupt): New function.
5197         * target.h (struct target_ops) <to_interrupt>: New field.
5198         (target_interrupt): New declaration.
5199         * windows-nat.c (windows_stop): Rename to ...
5200         (windows_interrupt): ... this.
5201         * target-delegates.c: Regenerate.
5202
5203 2015-08-07  Pedro Alves  <palves@redhat.com>
5204
5205         * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
5206         threads" as alternative to "switching back to stepped thread".
5207
5208 2015-08-07  Pedro Alves  <palves@redhat.com>
5209
5210         * NEWS: Mention "maint set/show target-non-stop".
5211         * breakpoint.c (update_global_location_list): Check
5212         target_is_non_stop_p instead of non_stop.
5213         * infcmd.c (attach_command_post_wait, attach_command): Likewise.
5214         * infrun.c (show_can_use_displaced_stepping)
5215         (can_use_displaced_stepping_p, start_step_over_inferior):
5216         Likewise.
5217         (internal_resume_ptid): New function.
5218         (resume): Use it.
5219         (proceed): Check target_is_non_stop_p instead of non_stop.  If in
5220         all-stop mode but the target is always in non-stop mode, start all
5221         the other threads that are implicitly resumed too.
5222         (for_each_just_stopped_thread, fetch_inferior_event)
5223         (adjust_pc_after_break, stop_all_threads): Check
5224         target_is_non_stop_p instead of non_stop.
5225         (handle_inferior_event): Likewise.  Handle detach-fork in all-stop
5226         with the target always in non-stop mode.
5227         (handle_signal_stop) <random signal>: Check target_is_non_stop_p
5228         instead of non_stop.
5229         (switch_back_to_stepped_thread): Check target_is_non_stop_p
5230         instead of non_stop.
5231         (keep_going_stepped_thread): Use internal_resume_ptid.
5232         (stop_waiting): If in all-stop mode, and the target is in non-stop
5233         mode, stop all threads.
5234         (keep_going_pass): Likewise, when starting a new in-line step-over
5235         sequence.
5236         * linux-nat.c (get_pending_status, select_event_lwp)
5237         (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
5238         target_is_non_stop_p instead of non_stop.
5239         (linux_nat_always_non_stop_p): New function.
5240         (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
5241         (linux_nat_add_target): Install linux_nat_always_non_stop_p.
5242         * target-delegates.c: Regenerate.
5243         * target.c (target_is_non_stop_p): New function.
5244         (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
5245         (maint_set_target_non_stop_command)
5246         (maint_show_target_non_stop_command): New functions.
5247         (_initilize_target): Install "maint set/show target-non-stop"
5248         commands.
5249         * target.h (struct target_ops) <to_always_non_stop_p>: New field.
5250         (target_non_stop_enabled): New declaration.
5251         (target_is_non_stop_p): New declaration.
5252
5253 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
5254
5255         * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
5256         has a pending status, return true.
5257         * gdbthread.h: Include target/waitstatus.h.
5258         (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
5259         stop_pc>: New fields.
5260         (struct thread_info) <resumed>: New field.
5261         (set_resumed): Declare.
5262         * infrun.c: Include "event-loop.h".
5263         (infrun_async_inferior_event_token, infrun_is_async): New globals.
5264         (infrun_async): New function.
5265         (clear_step_over_info): Add debug output.
5266         (displaced_step_in_progress_any_inferior): New function.
5267         (displaced_step_fixup): New returns int.
5268         (start_step_over): Handle in-line step-overs too.  Assert the
5269         thread is marked resumed.
5270         (resume_cleanups): Clear the thread's resumed flag.
5271         (resume): Set the thread's resumed flag.  Return early if the
5272         thread has a pending status.  Allow stepping a breakpoint with no
5273         signal.
5274         (proceed): Adjust to check 'resumed' instead of 'executing'.
5275         (clear_proceed_status_thread): If the thread has a pending status,
5276         and that status is a finished step, discard the pending status.
5277         (clear_proceed_status): Don't clear step_over_info here.
5278         (random_pending_event_thread, do_target_wait): New functions.
5279         (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
5280         do_target_wait.
5281         (wait_one): New function.
5282         (THREAD_STOPPED_BY): New macro.
5283         (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5284         (thread_stopped_by_hw_breakpoint): New functions.
5285         (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
5286         functions.
5287         (handle_inferior_event): Also call set_resumed(false) on all
5288         threads implicitly stopped by the event.
5289         (restart_threads, resumed_thread_with_pending_status): New
5290         functions.
5291         (finish_step_over): If we were doing an in-line step-over before,
5292         and no longer are after trying to start a new step-over, restart
5293         all threads.  If we have multiple threads with pending events,
5294         save the current event and go through the event loop again.
5295         (handle_signal_stop): Return early if finish_step_over returns
5296         false.
5297         <random signal>: If we get a signal while stepping over a
5298         breakpoint in-line in non-stop mode, restart all threads.  Clear
5299         step_over_info before delivering the signal.
5300         (keep_going_stepped_thread): Use internal_error instead of
5301         gdb_assert.  Mark the thread as resumed.
5302         (keep_going_pass_signal): Assert the thread isn't already resumed.
5303         If some other thread is doing an in-line step-over, defer the
5304         resume.  If we just started a new in-line step-over, stop all
5305         threads.  Don't clear step_over_info.
5306         (infrun_async_inferior_event_handler): New function.
5307         (_initialize_infrun): Create async event handler with
5308         infrun_async_inferior_event_handler as callback.
5309         (infrun_async): New declaration.
5310         * target.c (target_async): New function.
5311         * target.h (target_async): Declare macro and readd as function
5312         declaration.
5313         * target/waitstatus.h (enum target_stop_reason)
5314         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5315         * thread.c (new_thread): Clear the new waitstatus field.
5316         (set_resumed): New function.
5317
5318 2015-08-07  Pedro Alves  <palves@redhat.com>
5319
5320         * infrun.c (keep_going_stepped_thread): New function, factored out
5321         from ...
5322         (switch_back_to_stepped_thread): ... here.
5323
5324 2015-08-07  Pedro Alves  <palves@redhat.com>
5325
5326         * infrun.c (currently_stepping): Extend intro comment.
5327         * target.h (target_resume): Extend intro comment.
5328
5329 2015-08-07  Pedro Alves  <palves@redhat.com>
5330
5331         * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
5332         of inferior_ptid.  If the stepped thread vanished, return 0
5333         instead of resuming here.  Use reset_ecs.  Print the prev_pc and
5334         the current stop_pc in log message.  Clear trap_expected if the
5335         thread advanced.  Don't pass currently_stepping to
5336         do_target_resume.
5337
5338 2015-08-07  Pedro Alves  <palves@redhat.com>
5339
5340         * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
5341         * infrun.c (struct execution_control_state): Move higher up in the
5342         file.
5343         (reset_ecs): New function.
5344         (start_step_over): Now returns int.  Rewrite to use
5345         keep_going_pass_signal instead of manually starting a displaced step.
5346         (resume): Don't call set_running here.  If displaced stepping
5347         can't start now, clear trap_expected.
5348         (find_thread_needs_step_over): Delete function.
5349         (proceed): Set up finish_thread_state_cleanup.  Call set_running.
5350         If the current thread needs a step over, push it in the step-over
5351         chain.  Don't set insert breakpoints nor call resume directly
5352         here.  Instead rewrite to use start_step_over and
5353         keep_going_pass_signal.
5354         (finish_step_over): New function.
5355         (handle_signal_stop): Call finish_step_over instead of
5356         start_step_over.
5357         (switch_back_to_stepped_thread): If the event thread needs another
5358         step-over do that first.  Use start_step_over.
5359         (keep_going_pass_signal): New function, factored out from ...
5360         (keep_going): ... here.
5361         (_initialize_infrun): Comment moved here.
5362         * thread.c (set_running_thread): New function.
5363         (set_running, finish_thread_state): Use set_running_thread.
5364
5365 2015-08-07  Pedro Alves  <palves@redhat.com>
5366
5367         * gdbthread.h (struct thread_info) <step_over_prev,
5368         step_over_next>: New fields.
5369         (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
5370         (thread_step_over_chain_next, thread_is_in_step_over_chain): New
5371         declarations.
5372         * infrun.c (struct displaced_step_request): Delete.
5373         (struct displaced_step_inferior_state) <step_request_queue>:
5374         Delete field.
5375         (displaced_step_prepare): Assert that trap_expected is set.  Use
5376         thread_step_over_chain_enqueue.  Split starting a new displaced
5377         step to ...
5378         (start_step_over): ... this new function.
5379         (resume): Assert the thread isn't waiting for a step over already.
5380         (proceed): Assert the thread isn't waiting for a step over
5381         already.
5382         (infrun_thread_stop_requested): Adjust to remove threads from the
5383         embedded step-over chain.
5384         (handle_inferior_event) <fork/vfork>: Call start_step_over after
5385         displaced_step_fixup.
5386         (handle_signal_stop): Call start_step_over after
5387         displaced_step_fixup.
5388         * infrun.h (step_over_queue_head): New declaration.
5389         * thread.c (step_over_chain_enqueue, step_over_chain_remove)
5390         (thread_step_over_chain_next, thread_is_in_step_over_chain)
5391         (thread_step_over_chain_enqueue)
5392         (thread_step_over_chain_remove): New functions.
5393         (delete_thread_1): Remove thread from the step-over chain.
5394
5395 2015-08-07  Pedro Alves  <palves@redhat.com>
5396
5397         * infrun.c (thread_still_needs_step_over): Rename to ...
5398         (thread_still_needs_step_over_bp): ... this.
5399         (enum step_over_what): New.
5400         (thread_still_needs_step_over): Reimplement.
5401
5402 2015-08-07  Pedro Alves  <palves@redhat.com>
5403
5404         * remote.c (remote_wait_as): If not waiting for a stop reply,
5405         return TARGET_WAITKIND_NO_RESUMED.  If TARGET_WNOHANG is
5406         requested, don't block waiting forever.
5407
5408 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
5409
5410         * infrun.c (adjust_pc_after_break): Now takes thread_info and
5411         waitstatus pointers instead of an ecs.  Adjust.
5412         (handle_inferior_event): Adjust caller.
5413
5414 2015-08-07  Pedro Alves  <palves@redhat.com>
5415
5416         * infrun.c (handle_inferior_event): If we get
5417         TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
5418         mode, mark all threads of the exiting process as not-executing.
5419         (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
5420         TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
5421         exiting process, if inferior_ptid still points at a process.
5422         * thread.c (struct current_thread_cleanup) <next>: New field.
5423         (current_thread_cleanup_chain): New global.
5424         (restore_current_thread_ptid_changed): New function.
5425         (restore_current_thread_cleanup_dtor): Remove the cleanup from the
5426         current_thread_cleanup_chain list.
5427         (make_cleanup_restore_current_thread): Add the cleanup data to the
5428         current_thread_cleanup_chain list.
5429         (_initialize_thread): Install restore_current_thread_ptid_changed
5430         as thread_ptid_changed observer.
5431
5432 2015-08-07  Joel Brobecker  <brobecker@adacore.com>
5433
5434         * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
5435         data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
5436         smaller than expected.
5437
5438 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
5439
5440         * stack.c (get_frame_language): Moved ...
5441         * frame.c (get_frame_language): ... to here.
5442         * language.h (get_frame_language): Declaration moved to frame.h.
5443         * frame.h: Add language.h include, for language enum.
5444         (get_frame_language): Declaration moved from language.h.
5445         * language.c: Add frame.h include.
5446         * top.c: Add frame.h include.
5447         * symtab.h (struct obj_section): Declare.
5448         (struct cmd_list_element): Declare.
5449
5450 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
5451
5452         * language.c (show_language_command): Find selected frame before
5453         asking for the language of that frame.
5454         (set_language_command): Likewise.
5455         * language.h (get_frame_language): Add frame parameter.
5456         * stack.c (get_frame_language): Add frame parameter, assert
5457         parameter is not NULL, update comment and reindent.
5458         * top.c (check_frame_language_change): Pass the selected frame
5459         into get_frame_language.
5460
5461 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
5462
5463         * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
5464         (pt_btrace_insn_flags): New.
5465         (ftrace_add_pt): Call pt_btrace_insn_flags.
5466         * btrace.h (btrace_insn_flag): New.
5467         (btrace_insn) <flags>: New.
5468         * record-btrace.c (btrace_insn_history): Print insn prefix.
5469         * NEWS: Announce it.
5470
5471 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
5472
5473         * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
5474         * configure: Regenerate.
5475
5476 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
5477
5478         * Makefile.in (LIBICONV): Define.
5479         (CLIBS): Add LIBICONV.
5480         * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
5481         * configure: Regenerate.
5482
5483 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
5484             Pedro Alves  <palves@redhat.com>
5485
5486         * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
5487         (arm_set_abi): Likewise.
5488         * ax-general.c (ax_print): Likewise.
5489         * c-exp.y (exp : string_exp): Likewise.
5490         * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
5491         (do_compile_dwarf_expr_to_c): Likewise.
5492         * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
5493         Likewise.
5494         * dwarf2expr.c (execute_stack_op): Likewise.
5495         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
5496         (disassemble_dwarf_expression): Likewise.
5497         * dwarf2read.c (dwarf2_add_member_fn): Likewise.
5498         (read_array_order): Likewise.
5499         (abbrev_table_read_table): Likewise.
5500         (read_attribute_value): Likewise.
5501         (skip_unknown_opcode): Likewise.
5502         (dwarf_decode_macro_bytes): Likewise.
5503         (dwarf_decode_macros): Likewise.
5504         * eval.c (value_f90_subarray): Likewise.
5505         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5506         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5507         * infrun.c (handle_command): Likewise.
5508         * memory-map.c (memory_map_start_memory): Likewise.
5509         * osabi.c (set_osabi): Likewise.
5510         * parse.c (operator_length_standard): Likewise.
5511         * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
5512         single return point.
5513         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5514         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5515         (gdbpy_lookup_global_symbol): Likewise.
5516         * record-full.c (record_full_restore): Likewise.
5517         * regcache.c (regcache_register_status): Likewise.
5518         (regcache_raw_read): Likewise.
5519         (regcache_cooked_read): Likewise.
5520         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5521         * symtab.c (initialize_ordinary_address_classes): Likewise.
5522         * target-debug.h (target_debug_print_signals): Likewise.
5523         * utils.c (do_restore_current_language): Likewise.
5524
5525 2015-08-06  Clem Dickey  <clemd@acm.org>
5526
5527         PR python/17136
5528         * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
5529
5530 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
5531
5532         * complaints.c (enum complaint_series): Add newlines and remove
5533         out of date comment.
5534         (struct complaints) <series>: Change type to enum
5535         complaint_series and remove out of date comment.
5536         (symfile_complaint_hook): Use equivalent enum value
5537         ISOLATED_MESSAGE instead of 0.
5538
5539 2015-08-06  Pedro Alves  <palves@redhat.com>
5540
5541         * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
5542         returned > 0.
5543
5544 2015-08-06  Pierre Langlois  <pierre.langlois@arm.com>
5545
5546         * common/agent.c (symbol_list) <required>: Remove.
5547
5548 2015-08-06  Pedro Alves  <palves@redhat.com>
5549
5550         * target/waitstatus.h (enum target_stop_reason)
5551         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5552
5553 2015-08-05  Pedro Alves  <palves@redhat.com>
5554             Joel Brobecker  <brobecker@adacore.com>
5555
5556         * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
5557         <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
5558         case where BS->STOP is not set.
5559
5560 2015-08-05  Ulrich Weigand  <uweigand@de.ibm.com>
5561
5562         * nat/gdb_thread_db.h: Add copyright header.
5563         Protect against multiple inclusion.
5564
5565 2015-08-05  Yao Qi  <yao.qi@linaro.org>
5566
5567         * aarch64-linux-nat.c (get_thread_id): Remove.
5568         (debug_reg_change_callback): Call ptid_get_lwp instead of
5569         get_thread_id.
5570         (fetch_gregs_from_thread): Likewise.
5571         (store_gregs_to_thread): Likewise.
5572         (fetch_fpregs_from_thread): Likewise.
5573         (store_fpregs_to_thread): Likewise.
5574         (aarch64_linux_get_debug_reg_capacity): Likewise.
5575         * arm-linux-nat.c (get_thread_id): Remove.
5576         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5577         * xtensa-linux-nat.c (get_thread_id): Remove.
5578         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5579         * arm-linux-nat.c (get_thread_id): Remove.
5580         (GET_THREAD_ID): Remove.
5581         (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
5582         (store_fpregs, fetch_regs, store_regs): Likewise.
5583         (fetch_wmmx_regs, store_wmmx_regs): Likewise.
5584         (fetch_vfp_regs, store_vfp_regs): Likewise.
5585         (arm_linux_read_description): Likewise.
5586         (arm_linux_get_hwbp_cap): Likewise.
5587         * xtensa-linux-nat.c (get_thread_id): Remove.
5588         (GET_THREAD_ID): Remove.
5589         (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
5590         GET_THREAD_ID.
5591
5592 2015-08-04  Ciro Santilli  <ciro.santilli@gmail.com>  (obvious patch)
5593
5594         * python/py-linetable.c: Fix case of Linetable to LineTable
5595         in docstrings and code comments.
5596         * python/py-symtab.c: Same.
5597
5598 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5599
5600         * infcmd.c (signal_command): Call do_cleanups for args_chain.
5601
5602 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5603
5604         PR gdb/18767
5605         * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
5606         use.
5607
5608 2015-08-04  Pedro Alves  <palves@redhat.com>
5609
5610         * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
5611         (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
5612         (td_ta_event_addr_ftype, td_ta_set_event_ftype)
5613         (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
5614         (td_thr_validate_ftype, td_thr_get_info_ftype)
5615         (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
5616         (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
5617         New typedefs.
5618         * linux-thread-db.c (struct thread_db_info): Use new typedefs.
5619         (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
5620         local macros and use them instead of verbose_dlsym and dlsym
5621         calls.
5622
5623 2015-08-03  Sandra Loosemore  <sandra@codesourcery.com>
5624
5625         * nios2-tdep.h: Include opcode/nios2.h here.
5626         (NIOS2_CDX_OPCODE_SIZE): New.
5627         (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
5628         * nios2-tdep.c: Don't include opcode/nios2.h here.
5629         (nios2_fetch_insn): For R2, try reading 2-byte instruction if
5630         4-byte read fails.
5631         (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
5632         (nios2_match_addi, nios2_match_orhi): Likewise.
5633         (nios2_match_stw, nios2_match_ldw): Likewise.
5634         (nios2_match_rdctl): Likewise.
5635         (nios2_match_stwm, nios2_match_ldwm): New.
5636         (nios2_match_branch): Add cases for R2 encodings.
5637         (nios2_match_jmpi, nios2_match_calli): Likewise.
5638         (nios2_match_jmpr, nios2_match_callr): Likewise.
5639         (nios2_match_break, nios2_match_trap): Likewise.
5640         (nios2_in_epilogue_p): Add R2 support.
5641         (nios2_analyze_prologue): Update comments.  Recognize R2 CDX
5642         prologues.
5643         (nios2_breakpoint_from_pc): Handle R2 instructions.
5644         (nios2_get_next_pc): Likewise.  Adjust call to
5645         tdep->syscall_next_pc.
5646         * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
5647         Renamed from nios2_linux_rt_sigreturn_tramp_frame.  Use
5648         instruction field macros instead of literal hex values.
5649         (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
5650         (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
5651         Use size field from OP instead of assuming all instructions
5652         are the same size.
5653         (nios2_linux_init_abi): Register appropriate unwinder for mach.
5654
5655 2015-08-03  Ulrich Weigand  <uweigand@de.ibm.com>
5656
5657         * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
5658         variable warning with some compilers.
5659
5660 2015-08-03  Yao Qi  <yao.qi@linaro.org>
5661
5662         * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
5663         in comment.  Replace "rw" with "type".
5664         (arm_linux_remove_watchpoint): Change type of "rw" to
5665         "enum target_hw_bp_type".
5666
5667 2015-08-02  Pierre-Marie de Rodat  <derodat@adacore.com>
5668
5669         * alpha-mdebug-tdep.c (find_proc_desc): Update call to
5670         lookup_symbol.
5671         * ft32-tdep.c (ft32_skip_prologue): Likewise.
5672         * moxie-tdep.c (moxie_skip_prologue): Likewise.
5673         * mt-tdep.c (mt_skip_prologue): Likewise.
5674         * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5675
5676 2015-08-01  Pierre-Marie de Rodat  <derodat@adacore.com>
5677
5678         * ada-exp.y (write_object_renaming): Replace struct
5679         ada_symbol_info with struct block_symbol.  Update field
5680         references accordingly.
5681         (block_lookup, select_possible_type_sym): Likewise.
5682         (find_primitive_type): Likewise.  Also update call to
5683         ada_lookup_symbol to extract the symbol itself.
5684         (write_var_or_type, write_name_assoc): Likewise.
5685         * ada-lang.h (struct ada_symbol_info): Remove.
5686         (ada_lookup_symbol_list): Replace struct ada_symbol_info with
5687         struct block_symbol.
5688         (ada_lookup_encoded_symbol, user_select_syms): Likewise.
5689         (ada_lookup_symbol): Return struct block_symbol instead of a
5690         mere symbol.
5691         * ada-lang.c (defns_collected): Replace struct ada_symbol_info
5692         with struct block_symbol.
5693         (resolve_subexp, ada_resolve_function, sort_choices,
5694         user_select_syms, is_nonfunction, add_defn_to_vec,
5695         num_defns_collected, defns_collected,
5696         symbols_are_identical_enums, remove_extra_symbols,
5697         remove_irrelevant_renamings, add_lookup_symbol_list_worker,
5698         ada_lookup_symbol_list, ada_iterate_over_symbols,
5699         ada_lookup_encoded_symbol, get_var_value): Likewise.
5700         (ada_lookup_symbol): Return a block_symbol instead of a mere
5701         symbol.  Replace struct ada_symbol_info with struct
5702         block_symbol.
5703         (ada_lookup_symbol_nonlocal): Likewise.
5704         (standard_lookup): Make block passing explicit through
5705         lookup_symbol_in_language.
5706         * ada-tasks.c (get_tcb_types_info): Update the calls to
5707         lookup_symbol_in_language to extract the mere symbol out of the
5708         returned value.
5709         (ada_tasks_inferior_data_sniffer): Likewise.
5710         * ax-gdb.c (gen_static_field): Likewise for the call to
5711         lookup_symbol.
5712         (gen_maybe_namespace_elt): Deal with struct block_symbol from
5713         lookup functions.
5714         (gen_expr): Likewise.
5715         * c-exp.y: Likewise.  Remove uses of block_found.
5716         (lex_one_token, classify_inner_name, c_print_token): Likewise.
5717         (classify_name): Likewise.  Rename the "sym" local variable to
5718         "bsym".
5719         * c-valprint.c (print_unpacked_pointer): Likewise.
5720         * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5721         "sym" parameter from struct symbol * to struct block_symbol.
5722         Use it to remove uses of block_found.  Deal with struct
5723         block_symbol from lookup functions.
5724         (gcc_convert_symbol): Likewise.  Update the call to
5725         convert_symbol_sym.
5726         * compile/compile-object-load.c (compile_object_load): Deal with
5727         struct block_symbol from lookup functions.
5728         * cp-namespace.c (cp_lookup_nested_symbol_1,
5729         cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5730         cp_search_static_and_baseclasses,
5731         cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5732         cp_lookup_symbol_imports_or_template,
5733         cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5734         lookup_namespace_scope, cp_lookup_nonlocal,
5735         find_symbol_in_baseclass): Return struct block_symbol instead of
5736         mere symbols and deal with struct block_symbol from lookup
5737         functions.
5738         * cp-support.c (inspect_type, replace_typedefs,
5739         cp_lookup_rtti_type): Deal with struct block_symbol from
5740         lookup functions.
5741         * cp-support.h (cp_lookup_symbol_nonlocal,
5742         cp_lookup_symbol_from_namespace,
5743         cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
5744         Return struct block_symbol instead of mere symbols.
5745         * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5746         push_module_name):
5747         Deal with struct block_symbol from lookup functions.  Remove
5748         uses of block_found.
5749         * eval.c (evaluate_subexp_standard): Update call to
5750         cp_lookup_symbol_namespace.
5751         * f-exp.y: Deal with struct block_symbol from lookup functions.
5752         Remove uses of block_found.
5753         (yylex): Likewise.
5754         * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5755         lookup_enum, lookup_template_type, check_typedef): Deal with
5756         struct block_symbol from lookup functions.
5757         * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5758         * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5759         (gdbscm_lookup_global_symbol): Likewise.
5760         * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5761         * go-exp.y: Likewise.  Remove uses of block_found.
5762         (package_name_p, classify_packaged_name, classify_name):
5763         Likewise.
5764         * infrun.c (insert_exception_resume_breakpoint): Likewise.
5765         * jv-exp.y (push_variable): Likewise.
5766         * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5767         * language.c (language_bool_type): Likewise.
5768         * language.h (struct language_defn): Update
5769         la_lookup_symbol_nonlocal to return a struct block_symbol rather
5770         than a mere symbol.
5771         * linespec.c (find_label_symbols): Deal with struct block_symbol
5772         from lookup functions.
5773         * m2-exp.y: Likewise.  Remove uses of block_found.
5774         (yylex): Likewise.
5775         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5776         * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5777         * p-exp.y: Likewise.  Remove uses of block_found.
5778         (yylex): Likewise.
5779         * p-valprint.c (pascal_val_print): Likewise.
5780         * parse.c (write_dollar_variable): Likewise.  Remove uses of
5781         block_found.
5782         * parser-defs.h (struct symtoken): Turn the SYM field into a
5783         struct block_symbol.
5784         * printcmd.c (address_info): Deal with struct block_symbol from
5785         lookup functions.
5786         * python/py-frame.c (frapy_read_var): Likewise.
5787         * python/py-symbol.c (gdbpy_lookup_symbol,
5788         gdbpy_lookup_global_symbol): Likewise.
5789         * skip.c (skip_function_command): Likewise.
5790         * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
5791         block_symbol instead of a mere symbol.
5792         * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5793         * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5794         * solib.c (solib_global_lookup): Likewise.
5795         * solist.h (solib_global_lookup): Likewise.
5796         (struct target_so_ops): Update lookup_lib_global_symbol to
5797         return a struct block_symbol rather than a mere symbol.
5798         * source.c (select_source_symtab): Deal with struct block_symbol
5799         from lookup functions.
5800         * stack.c (print_frame_args, iterate_over_block_arg_vars):
5801         Likewise.
5802         * symfile.c (set_initial_language): Likewise.
5803         * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
5804         block_symbol.
5805         (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5806         (struct symbol_cache_slot): Turn the FOUND field into a struct
5807         block_symbol.
5808         (block_found): Remove.
5809         (eq_symbol_entry): Update to deal with struct block_symbol in
5810         cache slots.
5811         (symbol_cache_lookup): Return a struct block_symbol rather than
5812         a mere symbol.
5813         (symbol_cache_mark_found): Add a BLOCK parameter to fill
5814         appropriately the cache slots.  Update callers.
5815         (symbol_cache_dump): Update cache slots handling to the type
5816         change.
5817         (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5818         lookup_symbol_aux, lookup_local_symbol,
5819         lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5820         lookup_symbol_in_objfile_symtabs,
5821         lookup_symbol_in_objfile_from_linkage_name,
5822         lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5823         lookup_symbol_in_static_block, lookup_static_symbol,
5824         lookup_global_symbol):
5825         Return a struct block_symbol rather than a mere symbol.  Deal
5826         with struct block_symbol from other lookup functions.  Remove
5827         uses of block_found.
5828         (lookup_symbol_in_block): Remove uses of block_found.
5829         (struct global_sym_lookup_data): Turn the RESULT field into a
5830         struct block_symbol.
5831         (lookup_symbol_global_iterator_cb): Update references to the
5832         RESULT field.
5833         (search_symbols): Deal with struct block_symbol from lookup
5834         functions.
5835         * symtab.h (struct block_symbol): New structure.
5836         (block_found): Remove.
5837         (lookup_symbol_in_language, lookup_symbol,
5838         basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
5839         lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5840         lookup_global_symbol_from_objfile): Return a struct block_symbol
5841         rather than just a mere symbol.  Update comments to remove
5842         mentions of block_found.
5843         * valops.c (find_function_in_inferior,
5844         value_struct_elt_for_reference, value_maybe_namespace_elt,
5845         value_of_this):  Deal with struct block_symbol from lookup
5846         functions.
5847         * value.c (value_static_field, value_fn_field): Likewise.
5848
5849 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5850
5851         * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5852         instead of integer.
5853
5854 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5855             Pedro Alves  <palves@redhat.com>
5856
5857         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5858         type or value instead of integer.
5859         (aarch64_linux_insert_watchpoint): Likewise.
5860         (aarch64_linux_remove_watchpoint): Likewise.
5861         * ada-lang.c (ada_op_print_tab): Likewise.
5862         * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5863         (amd64_linux_syscall_record_common): Likewise.
5864         * arch-utils.c (target_byte_order_user): Likewise.
5865         (default_byte_order): Likewise.
5866         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5867         (arm_linux_get_hwbp_type): Likewise.
5868         (arm_linux_hw_watchpoint_initialize): Likewise.
5869         (arm_linux_insert_watchpoint): Likewise.
5870         * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5871         (arm_linux_syscall_record): Likewise.
5872         * breakpoint.c (update_watchpoint): Likewise.
5873         (breakpoint_here_p): Likewise.
5874         (bpstat_print): Likewise.
5875         (enable_breakpoint_disp): Likewise.
5876         * c-lang.c (c_op_print_tab): Likewise.
5877         * cli/cli-decode.c (add_info_alias): Likewise.
5878         * d-lang.c (d_op_print_tab): Likewise.
5879         * eval.c (evaluate_subexp_standard): Likewise.
5880         * f-exp.y (dot_ops): Likewise.
5881         (f77_keywords): Likewise.
5882         * f-lang.c (f_op_print_tab): Likewise.
5883         * go-lang.c (go_op_print_tab): Likewise.
5884         * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5885         * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5886         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5887         * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5888         * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5889         (struct scm_from_stringn_data): Likewise.
5890         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5891         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5892         (ia64_linux_remove_watchpoint): Likewise.
5893         (ia64_linux_can_use_hw_breakpoint): Likewise.
5894         * infrun.c (print_stop_event): Likewise.
5895         * jv-lang.c (java_op_print_tab): Likewise.
5896         * linux-nat.c (linux_proc_xfer_partial): Likewise.
5897         * linux-nat.h (struct lwp_info): Likewise.
5898         * linux-thread-db.c (enable_thread_event): Likewise.
5899         * m2-lang.c (m2_op_print_tab): Likewise.
5900         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5901         (mi_cmd_stack_list_variables): Likewise.
5902         * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5903         * mi/mi-out.c (mi_table_begin): Likewise.
5904         (mi_table_header): Likewise.
5905         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5906         (mips_linux_insert_watchpoint): Likewise.
5907         (mips_linux_remove_watchpoint): Likewise.
5908         * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5909         * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5910         (mips_linux_watch_type_to_irw): Likewise.
5911         * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5912         (procfs_insert_hw_watchpoint): Likewise.
5913         (procfs_remove_hw_watchpoint): Likewise.
5914         (procfs_hw_watchpoint): Likewise.
5915         (procfs_can_use_hw_breakpoint): Likewise.
5916         (procfs_remove_hw_watchpoint): Likewise.
5917         (procfs_insert_hw_watchpoint): Likewise.
5918         * p-lang.c (pascal_op_print_tab): Likewise.
5919         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5920         * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5921         * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5922         * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5923         (procfs_insert_watchpoint): Likewise.
5924         (procfs_remove_watchpoint): Likewise.
5925         * psymtab.c (recursively_search_psymtabs): Likewise.
5926         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5927         (m32r_insert_watchpoint): Likewise.
5928         * remote-mips.c (mips_can_use_watchpoint): Likewise.
5929         (mips_insert_watchpoint): Likewise.
5930         (mips_remove_watchpoint): Likewise.
5931         * remote.c (watchpoint_to_Z_packet): Likewise.
5932         (remote_insert_watchpoint): Likewise.
5933         (remote_remove_watchpoint): Likewise.
5934         (remote_check_watch_resources): Likewise.
5935         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5936         (s390_remove_watchpoint): Likewise.
5937         (s390_can_use_hw_breakpoint): Likewise.
5938         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5939         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5940         * target.h (struct target_ops): Likewise.
5941         * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5942         * ui-out.c (struct ui_out_hdr): Likewise.
5943         (append_header_to_list): Likewise.
5944         (get_next_header): Likewise.
5945         (verify_field): Likewise.
5946         (ui_out_begin): Likewise.
5947         (ui_out_field_int): Likewise.
5948         (ui_out_field_fmt_int): Likewise.
5949         (ui_out_field_skip): Likewise.
5950         (ui_out_field_string): Likewise.
5951         (ui_out_field_fmt): Likewise.
5952         * varobj.c (new_variable): Likewise.
5953         * x86-nat.c (x86_insert_watchpoint): Likewise.
5954         (x86_remove_watchpoint): Likewise.
5955         (x86_can_use_hw_breakpoint): Likewise.
5956         * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5957         * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5958         previously anonymous enumeration type..
5959         * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5960         value.
5961         * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5962         (target_debug_print_enum_bptype): New.
5963         * target-delegates.c: Regenerate.
5964
5965 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
5966
5967         * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5968         already says and disallow non-stack memory writes in the prologue.
5969
5970 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
5971
5972         * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5973         reflect how current GCC emits stack overflow checks.  Match
5974         both trap and break instructions for backward compatbility.
5975         Disallow other trap and break instructions in the prologue.
5976
5977 2015-07-30  Pedro Alves  <palves@redhat.com>
5978
5979         PR threads/18600
5980         * linux-nat.c (wait_lwp): Report to the core when thread group
5981         leader exits.
5982
5983 2015-07-30  Pedro Alves  <palves@redhat.com>
5984             Simon Marchi  <simon.marchi@ericsson.com>
5985
5986         PR threads/18600
5987         * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5988         mark the new thread as resumed.  Remove STOPPING parameter.
5989         (wait_lwp): Adjust call to linux_handle_extended_wait.
5990         (linux_nat_filter_event): Adjust call to
5991         linux_handle_extended_wait.
5992         (resume_stopped_resumed_lwps): Add debug output.
5993
5994 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
5995
5996         * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5997         isize argument.
5998         * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5999         * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
6000         gdbarch_fast_tracepoint_valid_at.
6001         * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
6002         * gdbarch.h: Regenerate.
6003         * gdbarch.c: Regenerate.
6004         * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
6005         argument.  Do not set it.
6006         * remote.c (remote_download_tracepoint): Adjust call to
6007         gdbarch_fast_tracepoint_valid_at.  Call gdb_insn_length to get
6008         the instruction length.
6009
6010 2015-07-30  Yao Qi  <yao.qi@linaro.org>
6011
6012         * arm-tdep.h (enum gdb_regnum): Move it to ...
6013         * arch/arm.h: ... here.  New file.
6014         * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
6015
6016 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
6017
6018         * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
6019         Change its type to int *.
6020         (decode_br): Rename link argument to is_blr.  Change its type to
6021         int *.
6022         (decode_cb): Rename op argument to is_cbnz.  Change its type to
6023         int *.
6024         (decode_tb): Rename op argument to is_tbnz.  Change its type to
6025         int *.  Set is_tbnz to either 1 or 0.
6026         (aarch64_analyze_prologue): Change type of is_link to int.  Add
6027         new variables is_cbnz and is_tbnz.  Adjust call to
6028         aarch64_decode_cb and aarch64_decode_tb.
6029
6030 2015-07-29  Simon Marchi  <simon.marchi@ericsson.com>
6031
6032         * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
6033         parameter.
6034         (mips_linux_new_thread): Likewise.
6035         * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
6036
6037 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
6038
6039         * top.c: Include "tui/tui.h".
6040         (undo_terminal_modifications_before_exit): New static function.
6041         (quit_force): Use it.
6042
6043 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
6044
6045         * target.c (terminal_state): Initialize to terminal_is_ours.
6046
6047 2015-07-29  Yao Qi  <yao.qi@linaro.org>
6048
6049         PR record/18691
6050         * dcache.c (dcache_read_memory_partial): Call
6051         raw_memory_xfer_partial.
6052         * target.c (raw_memory_xfer_partial): Make it non-static.
6053         * target.h (raw_memory_xfer_partial): Declare.
6054
6055 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
6056
6057         * c-valprint.c (c_val_print_array): Consider addressable memory
6058         unit size.
6059         (c_val_print_ptr): Likewise.
6060         (c_val_print_int): Likewise.
6061         * findvar.c (read_frame_register_value): Likewise.
6062         * valarith.c (find_size_for_pointer_math): Likewise.
6063         (value_ptrdiff): Likewise.
6064         (value_subscripted_rvalue): Likewise.
6065         * valops.c (read_value_memory): Likewise (and rename variables).
6066         (value_assign): Likewise.
6067         (value_repeat): Likewise.
6068         (value_array): Likewise.
6069         (value_slice): Likewise.
6070         * valprint.c (generic_val_print_ptr): Likewise.
6071         (generic_val_print_enum): Likewise.
6072         (generic_val_print_bool): Likewise.
6073         (generic_val_print_int): Likewise.
6074         (generic_val_print_char): Likewise.
6075         (generic_val_print_float): Likewise.
6076         (generic_val_print_decfloat): Likewise.
6077         (generic_val_print_complex): Likewise.
6078         (val_print_scalar_formatted): Likewise.
6079         (val_print_array_elements): Likewise.
6080         * value.c (set_value_parent): Likewise.
6081         (value_contents_copy_raw): Likewise.
6082         (set_internalvar_component): Likewise.
6083         (value_primitive_field): Likewise.
6084         (value_fetch_lazy): Likewise.
6085         * value.h (read_value_memory): Update comment.
6086
6087 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
6088
6089         * value.c (get_value_arch): New function.
6090         * value.h (get_value_arch): New declaration.
6091
6092 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
6093
6094         * value.c (struct value): Update comments.
6095
6096 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
6097
6098         * gdbtypes.c (type_length_units): New function.
6099         * gdbtypes.h (type_length_units): New declaration.
6100         (struct type) <length>: Update comment.
6101
6102 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6103
6104         * valprint.c (generic_val_print): Factor out complex
6105         printing code to ...
6106         (generic_val_print_complex): ... this new function.
6107
6108 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6109
6110         * valprint.c (generic_val_print): Factor out decfloat
6111         printing code to ...
6112         (generic_val_print_decfloat): ... this new function.
6113
6114 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6115
6116         * valprint.c (generic_val_print): Factor out float
6117         printing code to ...
6118         (generic_val_print_float): ... this new function.
6119
6120 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6121
6122         * valprint.c (generic_val_print): Factor out char
6123         printing code to ...
6124         (generic_val_print_char): ... this new function.
6125
6126 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6127
6128         * valprint.c (generic_val_print): Factor out integer
6129         printing code to ...
6130         (generic_val_print_int): ... this new function.
6131
6132 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6133
6134         * valprint.c (generic_val_print): Factor out bool
6135         printing code to ...
6136         (generic_val_print_bool): ... this new function.
6137
6138 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6139
6140         * valprint.c (generic_val_print): Factor out function/method
6141         printing code to ...
6142         (generic_val_print_func): ... this new function.
6143
6144 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6145
6146         * valprint.c (generic_val_print): Factor out flags
6147         printing code to ...
6148         (generic_val_print_flags): ... this new function.
6149
6150 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6151
6152         * valprint.c (generic_val_print): Factor out enum
6153         printing code to ...
6154         (generic_val_print_enum): ... this new function.
6155
6156 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6157
6158         * valprint.c (generic_val_print): Factor out reference
6159         printing code to ...
6160         (generic_val_print_ref): ... this new function.
6161
6162 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6163
6164         * valprint.c (generic_val_print): Factor out memberptr
6165         printing code to ...
6166         (generic_val_print_memberptr): ... this new function.
6167
6168 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6169
6170         * valprint.c (generic_val_print): Factor out pointer
6171         printing code to ...
6172         (generic_val_print_ptr): ... this new function.
6173
6174 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6175
6176         * valprint.c (generic_val_print): Factor out array
6177         printing code to ...
6178         (generic_val_print_array): ... this new function.
6179
6180 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6181
6182         * valprint.c (generic_val_print): Factor out
6183         print_unpacked_pointer code to ...
6184         (print_unpacked_pointer): ... this new function.
6185
6186 2015-07-27  Patrick Palka  <patrick@parcs.ath.cx>
6187
6188         * event-top.c (handle_sigterm): Don't inspect
6189         target_can_async_p.  Always set the quit flag and always mark
6190         the async signal handler.
6191
6192 2015-07-27  Yao Qi  <yao.qi@linaro.org>
6193
6194         * Makefile.in (REMOTE_EXAMPLES): Remove it.
6195
6196 2015-07-25  Kevin Buettner  <kevinb@redhat.com>
6197
6198         * remote.c (read_ptid): Return null_ptid when no thread id
6199         is found.
6200         (remote_current_thread): Add log warning for malformed
6201         qC reply.
6202         (remote_start_remote): Add log warning when current thread
6203         not found.
6204
6205 2015-07-24  Pedro Alves  <palves@redhat.com>
6206
6207         * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
6208         (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
6209         forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
6210
6211 2015-07-24  Pedro Alves  <palves@redhat.com>
6212
6213         PR gdb/18717
6214         * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
6215         is resumed, and extend the debug log.
6216
6217 2015-07-24  Pedro Alves  <palves@redhat.com>
6218
6219         * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
6220
6221 2015-07-24  Pedro Alves  <palves@redhat.com>
6222
6223         * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
6224         sys/ptrace.h.
6225         * alpha-linux-nat.c: Likewise.
6226         * amd64-linux-nat.c: Likewise.
6227         * arm-linux-nat.c: Likewise.
6228         * hppa-linux-nat.c: Likewise.
6229         * i386-linux-nat.c: Likewise.
6230         * ia64-linux-nat.c: Likewise.
6231         * linux-fork.c: Likewise.
6232         * linux-nat.c: Likewise.
6233         * m32r-linux-nat.c: Likewise.
6234         * m68klinux-nat.c: Likewise.
6235         * mips-linux-nat.c: Likewise.
6236         * nat/linux-btrace.c: Likewise.
6237         * nat/linux-ptrace.c: Likewise.
6238         * nat/linux-ptrace.h
6239         * nat/mips-linux-watch.c: Likewise.
6240         * nat/x86-linux-dregs.c: Likewise.
6241         * ppc-linux-nat.c: Likewise.
6242         * s390-linux-nat.c: Likewise.
6243         * spu-linux-nat.c: Likewise.
6244         * tilegx-linux-nat.c: Likewise.
6245         * x86-linux-nat.c: Likewise.
6246         * xtensa-linux-nat.c: Likewise.
6247
6248 2015-07-24  Pedro Alves  <palves@redhat.com>
6249
6250         * ptrace.m4 (ptrace tests): Test in C++ mode.  Try with 'enum
6251         __ptrace_request as first parameter type instead of int.
6252         (PTRACE_TYPE_ARG1): Define.
6253         * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
6254         that casts first argument to PTRACE_TYPE_ARG1.
6255         * config.in: Regenerate.
6256         * configure: Regenerate.
6257
6258 2015-07-24  Pedro Alves  <palves@redhat.com>
6259
6260         * gdb_ptrace.h: Move ...
6261         * nat/gdb_ptrace.h: ... here.
6262         * inf-ptrace.c: Adjust.
6263
6264 2015-07-24  Pedro Alves  <palves@redhat.com>
6265
6266         * acinclude.m4: Include ptrace.m4.
6267         * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
6268         * ptrace.m4: ... to this new file.
6269
6270 2015-07-23  Doug Evans  <dje@google.com>
6271
6272         * dwarf2read.c (dwarf2_per_cu_data): Add comment.
6273         (load_cu): Handle dummy CUs.
6274         (dw2_do_instantiate_symtab, process_queuef): Ditto.
6275         (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
6276
6277 2015-07-23  Ciro Santilli  <ciro.santilli@gmail.com>  (tiny patch)
6278
6279         * py-linetable.c (ltpy_get_all_source_lines): Adjust function
6280         documentation to say that it returns a list rather than
6281         a FrozenSet.
6282         (linetable_object_methods): Update the docstring of the
6283         "source_line" entry.
6284
6285 2015-07-23  Pierre-Marie de Rodat  <derodat@adacore.com>
6286
6287         * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
6288         type to the recursive call instead of the original (maybe
6289         TYPE_CODE_TYPEDEF) type.
6290
6291 2015-07-23  Yao Qi  <yao.qi@linaro.org>
6292
6293         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
6294         TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
6295         If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
6296
6297 2015-07-21  Yao Qi  <yao.qi@linaro.org>
6298
6299         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
6300         Move it to nat/aarch64-linux-hw-point.c.
6301         (aarch64_linux_child_post_startup_inferior): Update.
6302         * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
6303         New function.
6304         * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
6305         Declare it.
6306
6307 2015-07-21  Markus Metzger  <markus.t.metzger@intel.com>
6308
6309         * common/btrace-common.c (btrace_data_append): Change case label.
6310
6311 2015-07-20  Yao Qi  <yao.qi@linaro.org>
6312
6313         * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
6314         Re-indent the code.
6315         * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
6316         "unsigned long long".
6317
6318 2015-07-18  Kevin Buettner  <kevinb@redhat.com>
6319
6320         * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
6321         to be set for SEC_ALLOC sections too.
6322
6323 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6324
6325         * Makefile.in (HFILES_NO_SRCDIR): Add
6326         nat/aarch64-linux-hw-point.h.
6327         (aarch64-linux-hw-point.o): New rule.
6328         * nat/aarch64-linux-hw-point.h: New file.
6329         * nat/aarch64-linux-hw-point.c: New file.
6330         * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
6331         (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
6332         (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
6333         (AARCH64_HWP_ALIGNMENT): Likewise.
6334         (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
6335         (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
6336         (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
6337         (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
6338         (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
6339         (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
6340         (struct aarch64_debug_reg_state): Likewise.
6341         (struct arch_lwp_info): Likewise.
6342         (aarch64_linux_set_debug_regs): Likewise.
6343         (aarch64_notify_debug_reg_change): Remove static.
6344         (aarch64_align_watchpoint): Likewise.
6345         (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
6346         (aarch64_watchpoint_length): Likewise.
6347         (aarch64_point_encode_ctrl_reg): Likewise
6348         (aarch64_point_is_aligned): Likewise.
6349         (aarch64_dr_state_insert_one_point): Likewise.
6350         (aarch64_dr_state_remove_one_point): Likewise.
6351         (aarch64_handle_breakpoint): Likewise.
6352         (aarch64_handle_aligned_watchpoint): Likewise.
6353         (aarch64_handle_unaligned_watchpoint): Likewise.
6354         (aarch64_handle_watchpoint): Likewise.
6355         * config/aarch64/linux.mh (NAT_FILE): Add
6356         aarch64-linux-hw-point.o.
6357
6358 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6359
6360         * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
6361         state and don't call aarch64_get_debug_reg_state.  All callers
6362         update.
6363         (aarch64_linux_insert_hw_breakpoint): Call
6364         aarch64_get_debug_reg_state earlier.
6365         (aarch64_linux_remove_hw_breakpoint): Likewise.
6366         (aarch64_handle_aligned_watchpoint): Add argument state and
6367         don't call aarch64_get_debug_reg_state.  All callers update.
6368         (aarch64_handle_unaligned_watchpoint): Likewise.
6369         (aarch64_handle_watchpoint): Add argument state.
6370         (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
6371         earlier.
6372         (aarch64_linux_remove_watchpoint): Likewise.
6373
6374 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6375
6376         * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
6377         debug_printf.
6378         (aarch64_handle_unaligned_watchpoint): Likewise.
6379
6380 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6381
6382         * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
6383         argument type's type to 'enum target_hw_bp_type'.
6384         (aarch64_dr_state_remove_one_point): Likewise.
6385         (aarch64_handle_breakpoint): Likewise.
6386         (aarch64_linux_insert_hw_breakpoint): Likewise.
6387         (aarch64_linux_remove_hw_breakpoint): Likewise.
6388         (aarch64_handle_aligned_watchpoint): Likewise.
6389
6390 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6391
6392         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
6393         ptid_get_pid instead of get_thread_id.
6394
6395 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6396
6397         * remote.c (get_current_thread): Initialise ptid to null_ptid.
6398         (add_current_inferior_and_thread): Don't initialise ptid.
6399
6400 2015-07-16  Pierre Langlois  <pierre.langlois@arm.com>
6401
6402         * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
6403         unavailable if invalid.
6404
6405 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6406
6407         Revert the previous 6 commits:
6408         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6409         Move gdb_regex* to common/
6410         Prepare linux_find_memory_regions_full & co. for move
6411         Move linux_find_memory_regions_full & co.
6412         gdbserver build-id attribute generator
6413         Validate symbol file using build-id
6414
6415 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6416             Jan Kratochvil  <jan.kratochvil@redhat.com>
6417
6418         Validate symbol file using build-id.
6419         * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
6420         and 'show validate-build-id'.  Add build-id attribute.
6421         * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
6422         * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
6423         * solib-frv.c (_initialize_frv_solib): Ditto.
6424         * solib-spu.c (set_spu_solib_ops): Ditto.
6425         * solib-svr4.c: Include rsp-low.h.
6426         (NOTE_GNU_BUILD_ID_NAME): New define.
6427         (svr4_validate): New function.
6428         (svr4_copy_library_list): Duplicate field build_id.
6429         (library_list_start_library): Parse 'build-id' attribute.
6430         (svr4_library_attributes): Add 'build-id' attribute.
6431         (_initialize_svr4_solib): Assign validate value.
6432         * solib-target.c (solib.h): Include.
6433         (_initialize_solib_target): Assign validate value.
6434         * solib.c (validate_build_id, show_validate_build_id): New.
6435         (solib_map_sections): Use ops->validate.
6436         (clear_so): Free build_id.
6437         (default_solib_validate): New function.
6438         (_initialize_solib): Add "validate-build-id".
6439         * solib.h (default_solib_validate): New declaration.
6440         * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
6441         (target_so_ops): New field 'validate'.
6442
6443 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6444             Jan Kratochvil  <jan.kratochvil@redhat.com>
6445
6446         gdbserver build-id attribute generator.
6447         * features/library-list-svr4.dtd (library-list-svr4): New
6448         'build-id' attribute.
6449
6450 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6451             Jan Kratochvil  <jan.kratochvil@redhat.com>
6452
6453         Move linux_find_memory_regions_full & co.
6454         * linux-tdep.c (nat/linux-maps.h): Include.
6455         (gdb_regex.h): Remove the include.
6456         (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
6457         (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
6458         (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
6459         (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
6460         * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
6461         and target/target.h.
6462         (struct smaps_vmflags, read_mapping, decode_vmflags)
6463         (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
6464         (linux_find_memory_regions_full): Move from linux-tdep.c.
6465         * nat/linux-maps.h (read_mapping): New declaration.
6466         (linux_find_memory_region_ftype, enum filterflags): Moved from
6467         linux-tdep.c.
6468         (linux_find_memory_regions_full): New declaration.
6469         * target.c (target/target-utils.h): Include.
6470         (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
6471         (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
6472         definitions to target/target-utils.c.
6473         * target.h (target_fileio_read_stralloc): Move it to target/target.h.
6474         * target/target-utils.c (read_alloc, read_stralloc): Move definitions
6475         from target.c.
6476         * target/target-utils.h (read_alloc_pread_ftype): New typedef.
6477         (read_alloc): New declaration.
6478         (read_stralloc_func_ftype): New typedef.
6479         (read_stralloc): New declaration.
6480         * target/target.h (target_fileio_read_stralloc): Move it from target.h.
6481
6482 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6483             Jan Kratochvil  <jan.kratochvil@redhat.com>
6484
6485         Prepare linux_find_memory_regions_full & co. for move.
6486         * linux-tdep.c (linux_find_memory_region_ftype): Comment.
6487         (linux_find_memory_regions_full): Change signature and prepare
6488         for moving to linux-maps.
6489         (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
6490         (linux_find_memory_regions_thunk): New.
6491         (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
6492         (linux_find_memory_regions_gdb): New.
6493         (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
6494         (linux_make_mappings_corefile_notes): Use
6495         linux_find_memory_regions_gdb.
6496         * target.c (read_alloc_pread_ftype): New typedef.
6497         (target_fileio_read_alloc_1_pread): New function.
6498         (read_alloc): Refactor from target_fileio_read_alloc_1.
6499         (read_stralloc_func_ftype): New typedef.
6500         (target_fileio_read_alloc_1): New implementation. Use read_alloc.
6501         (read_stralloc): Refactored from target_fileio_read_stralloc.
6502         (target_fileio_read_stralloc): New implementation, use read_stralloc.
6503
6504 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6505
6506         * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
6507         common/gdb_regex.h.
6508         (COMMON_OBS): Add gdb_regex.o.
6509         (gdb_regex.o): New.
6510         * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
6511         --without-included-regex and USE_INCLUDED_REGEX.
6512         * common/gdb_regex.c: New file from utils.c functions.
6513         * common/gdb_regex.h: Move it here from gdb_regex.h, update include
6514         file wrapping define name.
6515         * configure: Rebuilt.
6516         * configure.ac (gdb_use_included_regex, --without-included-regex)
6517         (USE_INCLUDED_REGEX): Move them to common/common.m4.
6518         * gdb_regex.h: Move it to common/gdb_regex.h.
6519         * utils.c: Remove include gdb_regex.h.
6520         (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
6521         (compile_rx_or_error): Move them to common/gdb_regex.c.
6522
6523 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6524             Jan Kratochvil  <jan.kratochvil@redhat.com>
6525
6526         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6527         * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
6528         common/target-utils.h.
6529         (COMMON_OBS): Add target-utils.o.
6530         (linux-maps.o, target-utils.o): New.
6531         * target/target-utils.c: New file.
6532         * target/target-utils.h: New file.
6533         * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
6534         * config/i386/linux64.mh (NATDEPFILES): Ditto.
6535         * nat/linux-maps.c: New file.
6536         * nat/linux-maps.h: New file.
6537
6538 2015-07-15  Markus Metzger  <markus.t.metzger@intel.com>
6539             Pedro Alves <palves@redhat.com>
6540
6541         * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
6542         (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
6543         (perf_event_read_bts): Change the type of SIZE and READ.
6544         (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
6545         and DATA_OFFSET.  Move DATA_SIZE declaration.  Restrict the buffer size
6546         to UINT_MAX.  Check for overflows when using DATA_HEAD from the perf
6547         mmap page.
6548         (linux_enable_pt): Change the type of PAGES and SIZE.  Restrict the
6549         buffer size to UINT_MAX.
6550         (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
6551         DATA_TAIL.
6552         * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
6553         <last_head>: Change type.
6554         * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
6555         * common/btrace-common.c (btrace_data_append): Change the type of
6556         SIZE.
6557         * btrace.c (parse_xml_raw): Change the type of SIZE.  Change oddness
6558         check.
6559
6560 2015-07-14  Simon Marchi  <simon.marchi@ericsson.com>
6561
6562         * gdbtypes.h (CHECK_TYPEDEF): Remove.
6563         * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
6564         with check_typedef.
6565         * ada-lang.c (decode_constrained_packed_array_type): Likewise.
6566         (ada_array_length): Likewise.
6567         (find_parallel_type_by_descriptive_type): Likewise.
6568         (ada_check_typedef): Likewise.
6569         * arm-tdep.c (arm_return_in_memory): Likewise.
6570         * ax-gdb.c (gen_trace_static_fields): Likewise.
6571         (gen_struct_ref_recursive): Likewise.
6572         * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6573         (variable: block COLONCOLON name): Likewise.
6574         (qualified_name: TYPENAME COLONCOLON name): Likewise.
6575         * c-lang.c (classify_type): Likewise.
6576         * c-typeprint.c (c_print_type): Likewise.
6577         (c_print_typedef): Likewise.
6578         (c_type_print_base): Likewise.
6579         * c-valprint.c (c_val_print): Likewise.
6580         * compile/compile-c-types.c (convert_type): Likewise.
6581         * compile/compile-object-load.c (get_out_value_type): Likewise.
6582         * completer.c (add_struct_fields): Likewise.
6583         (expression_completer): Likewise.
6584         * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
6585         (cp_lookup_nested_symbol_1): Likewise.
6586         (cp_lookup_nested_symbol): Likewise.
6587         * cp-valprint.c (cp_print_value_fields): Likewise.
6588         (cp_print_static_field): Likewise.
6589         * d-valprint.c (d_val_print): Likewise.
6590         * eval.c (evaluate_subexp_standard): Likewise.
6591         (evaluate_subexp_for_sizeof): Likewise.
6592         * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6593         * f-typeprint.c (f_type_print_base): Likewise.
6594         * f-valprint.c (f_val_print): Likewise.
6595         * gdbtypes.c (get_discrete_bounds): Likewise.
6596         (create_array_type_with_stride): Likewise.
6597         (type_name_no_tag_or_error): Likewise.
6598         (lookup_struct_elt_type): Likewise.
6599         (get_unsigned_type_max): Likewise.
6600         (internal_type_vptr_fieldno): Likewise.
6601         (set_type_vptr_fieldno): Likewise.
6602         (internal_type_vptr_basetype): Likewise.
6603         (set_type_vptr_basetype): Likewise.
6604         (get_vptr_fieldno): Likewise.
6605         (is_integral_type): Likewise.
6606         (is_scalar_type): Likewise.
6607         (is_scalar_type_recursive): Likewise.
6608         (distance_to_ancestor): Likewise.
6609         (is_unique_ancestor_worker): Likewise.
6610         (check_types_equal): Likewise.
6611         * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
6612
6613 2015-07-14  Iain Buclaw  <ibuclaw@gdcproject.org>
6614
6615         * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
6616         also test for language_d.
6617         (dwarf2_compute_name): Likewise.
6618         (read_func_scope): Likewise.
6619         (read_structure_type): Likewise.
6620         (new_symbol_full): Likewise.
6621         (determine_prefix): Likewise.
6622         (read_import_statement): Use dot as the separator for language_d.
6623         (typename_concat): Likewise, but don't prefix the D main function.
6624
6625 2015-07-14  Peter Bergner  <bergner@vnet.ibm.com>
6626
6627         * nat/linux-namespaces.c (setns): Rename from this ...
6628         (do_setns): ... to this.  Support calling setns if it exists.
6629         (mnsh_handle_setns): Call do_setns.
6630
6631 2015-07-13  Yao Qi  <yao.qi@linaro.org>
6632
6633         * exec.c (exec_file_attach): Add period at the end of error
6634         message.
6635
6636 2015-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
6637
6638         * tui/tui-win.c (window_name_completer): New function.
6639         (focus_completer): Call window_name_completer.  All old content
6640         moved into window_name_completer.
6641         (winheight_completer): New function.
6642         (_initialize_tui_win): Rename variable.  Add completer to
6643         winheight command.  Update doc string on winheight.
6644
6645 2015-07-12  Sandra Loosemore  <sandra@codesourcery.com>
6646
6647         * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
6648         all nios2 mach variants.
6649
6650 2015-07-10  Kevin Buettner  <kevinb@redhat.com>
6651
6652         * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
6653         of target_read_memory.
6654
6655 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6656
6657         * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
6658         string copy.
6659         (parse_scrolling_args): Likewise.
6660
6661 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6662
6663         * tui/tui-win.c (focus_completer): Don't duplicate the tui window
6664         names in this function.
6665
6666 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6667
6668         * tui/tui-data.h (SRC_NAME): Convert to lower case.
6669         (CMD_NAME): Likewise.
6670         (DATA_NAME): Likewise.
6671         (DISASSEM_NAME): Likewise.
6672         * tui/tui-win.c (tui_set_focus): Window names are now lower case.
6673         (tui_set_win_height): Likewise.
6674         (parse_scrolling_args): Likewise.
6675
6676 2015-07-10  Markus Metzger  <markus.t.metzger@intel.com>
6677
6678         * record-btrace.c (record_btrace_goto_begin)
6679         (record_btrace_goto_end, record_btrace_goto): Move call to
6680         print_stack_frame ...
6681         (record_btrace_set_replay): ... here.  Set stop_pc.
6682         * record-full.c (record_full_goto_entry): Set stop_pc.
6683
6684 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6685
6686         * NEWS: Mention support for tracepoints on aarch64-linux.
6687
6688 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6689
6690         * linux-aarch64-low.c (aarch64_supports_tracepoints): New
6691         function.  Return 1.
6692         (the_low_target): Install it.
6693
6694 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6695
6696         * gdb.trace/backtrace.exp: Set registers for aarch64 target.
6697         * gdb.trace/collection.exp: Likewise.
6698         * gdb.trace/mi-trace-frame-collected.exp: Likewise.
6699         * gdb.trace/mi-trace-unavailable.exp: Likewise.
6700         * gdb.trace/report.exp: Likewise.
6701         * gdb.trace/trace-break.exp: Likewise.
6702         * gdb.trace/unavailable.exp: Likewise.
6703         * gdb.trace/while-dyn.exp: Likewise.
6704
6705 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6706
6707         * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
6708         (aarch64_gen_return_address): New function.
6709         (aarch64_gdbarch_init): Hook it.
6710
6711 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6712
6713         * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
6714         swallow NOT_AVAILABLE_ERROR.
6715         (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
6716         available_p is not set.
6717         (aarch64_stub_frame_unwind_stop_reason): New function.
6718         (aarch64_stub_unwind): Install it.
6719
6720 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6721
6722         * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6723         field.
6724         (aarch64_make_prologue_cache_1): New function, factored out from
6725         aarch64_make_prologue_cache.  Do not allocate cache.  Set
6726         available_p.
6727         (aarch64_make_prologue_cache): Reimplement wrapping
6728         aarch64_make_prologue_cache_1, and swallowing
6729         NOT_AVAILABLE_ERROR.
6730         (aarch64_prologue_frame_unwind_stop_reason): New function.
6731         Return UNWIND_UNAVAILABLE if available_p is not set.
6732         (aarch64_prologue_unwind): Install it.
6733         (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6734         checks into aarch64_prologue_frame_unwind_stop_reason.  Call
6735         frame_id_build_unavailable_stack if available_p is not set.
6736
6737 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6738
6739         * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6740         fields.
6741         (aarch64_scan_prologue): Set prev_pc.
6742         (aarch64_make_prologue_cache): Set func.
6743         (aarch64_make_stub_cache): Set prev_pc.
6744         (aarch64_prologue_this_id): Remove local variables id, pc and
6745         func.  Read prev_pc and func from cache.
6746         (aarch64_stub_this_id): Read prev_pc from cache.
6747
6748 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6749
6750         * aarch64-tdep.c (aarch64_make_stub_cache): Update comment.  New
6751         argument this_cache.  Remove unused local variables reg and
6752         unwound_fp.  Return early if this_cache is already set.  Set
6753         this_cache.
6754         (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6755
6756 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6757
6758         * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6759         New argument this_cache.  Return early if this_cache is already
6760         set.  Set this_cache.
6761         (aarch64_prologue_this_id): Update call to
6762         aarch64_make_prologue_cache.
6763         (aarch64_prologue_prev_register): Likewise.
6764         (aarch64_normal_frame_base): Likewise.
6765
6766 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6767
6768         * c-valprint.c (c_val_print): Factor out memberptr printing code
6769         from c_val_print to ...
6770         (c_val_print_memberptr): ... this new function.
6771
6772 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6773
6774         * c-valprint.c (c_val_print): Factor out int printing code to ...
6775         (c_val_print_int): ... this new function.
6776
6777 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6778
6779         * c-valprint.c (c_val_print): Factor out struct and union
6780         printing code to ...
6781         (c_val_print_struct): ... this new function ...
6782         (c_val_print_union): ... and this new function.
6783
6784 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6785
6786         * c-valprint.c (c_val_print): Factor out pointer printing code
6787         to ...
6788         (c_val_print_ptr): ... this new function.
6789
6790 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6791
6792         * c-valprint.c (c_valprint): Factor our array printing code from
6793         c_val_print to ...
6794         (c_val_print_array): ... this new function.
6795
6796 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6797
6798         * c-valprint.c (c_val_print): Factor out pointer printing code
6799         to ...
6800         (print_unpacked_pointer): ... this new function.
6801
6802 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6803
6804         * c-valprint.c (c_val_print): Remove an assignment to i and move
6805         its declaration.
6806
6807 2015-07-09  Yao Qi  <yao.qi@linaro.org>
6808
6809         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6810         argument ptid.  Update comments.  Caller update.
6811
6812 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
6813
6814         * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6815         mnt packets.
6816
6817 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
6818
6819         * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6820
6821 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
6822
6823         * progspace.c (delete_program_space): Add missing spaces.
6824
6825 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
6826
6827         * inferior.c (delete_inferior_1): Rename to ...
6828         (delete_inferior): ..., remove 'silent' parameter, delete
6829         program space when unused and remove call to prune_program_spaces.
6830         Remove the old, unused, delete_inferior.
6831         (delete_inferior_silent): Remove.
6832         (prune_inferiors): Change call from delete_inferior_1 to
6833         delete_inferior and remove 'silent' parameter. Remove call to
6834         prune_program_spaces.
6835         (remove_inferior_command): Idem.
6836         * inferior.h (delete_inferior_1): Rename to...
6837         (delete_inferior): ..., remove 'silent' parameter and remove the
6838         original delete_inferior.
6839         (delete_inferior_silent): Remove.
6840         * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6841         delete_inferior_1 to delete_inferior and remove 'silent'
6842         parameter.
6843         * progspace.c (prune_program_spaces): Remove.
6844         (pspace_empty_p): Rename to...
6845         (program_space_empty_p): ... and make non-static.
6846         (delete_program_space): New.
6847         * progspace.h (prune_program_spaces): Remove declaration.
6848         (program_space_empty_p): New declaration.
6849         (delete_program_space): New declaration.
6850         * monitor.c (monitor_close): Replace call to
6851         delete_thread_silent and delete_inferior_silent with
6852         discard_all_inferiors.
6853
6854 2015-07-08  Patrick Palka  <patrick@parcs.ath.cx>
6855
6856         * defs.h (deprecated_register_changed_hook): Remove prototype.
6857         * interps.c (clear_iterpreter_hooks): Remove reference to
6858         deprecated_register_changed_hook.
6859         * top.c (deprecated_register_changed_hook): Remove prototype.
6860         * valops.c (value_assign): Remove reference to
6861         deprecated_register_changed_hook.
6862         * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6863         Add comment documenting the function.
6864         (tui_register_changed_observer): Define.
6865         (tui_install_hooks): Remove reference to
6866         deprecated_register_changed_hook.  Set
6867         tui_register_changed_observer.
6868         (tui_remove_hooks): Remove reference to
6869         deprecated_register_changed_hook.  Unset
6870         tui_register_changed_observer.
6871
6872 2015-07-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
6873
6874         PR compile/18484
6875         * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6876
6877 2015-07-08  Robert O'Callahan  <robert@ocallahan.org>
6878
6879         PR exp/18617
6880         * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6881
6882 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6883
6884         * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6885
6886 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6887
6888         * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6889         Use safe_strerror() instead of strerror().
6890
6891 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6892
6893         * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6894         * features/arm-with-m-fpa-layout.c: Regenerated.
6895         * features/arm-with-m-vfp-d16.xml: Likewise.
6896         * features/arm-with-m-vfp-d16.c: Regenerated.
6897         * features/arm-with-m.xml: Likewise.
6898         * features/arm-with-m.c: Regenerated.
6899         * features/arm-with-neon.xml: Likewise.
6900         * features/arm-with-neon.c: Regenerated.
6901         * features/arm-with-vfpv2.xml: Likewise.
6902         * features/arm-with-vfpv2.c: Regenerated.
6903         * features/arm-with-vfpv3.xml: Likewise.
6904         * features/arm-with-vfpv3.c: Regenerated.
6905
6906 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6907
6908         * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6909         arm-linux-nat.c.
6910         * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6911         elf/external.h.
6912         (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6913         if target is 32-bit.
6914         (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6915         if target is 32-bit.
6916         (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6917         if target is 32-bit.
6918         (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6919         if target is 32-bit.
6920         (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6921         (aarch64_linux_read_description): Return the right target
6922         description.
6923         * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6924         * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6925         * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6926         arm-linux-tdep.o.
6927
6928 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6929
6930         * aarch32-linux-nat.c: New file.
6931         * aarch32-linux-nat.h: New file.
6932         * arm-linux-nat.c: Include aarch32-linux-nat.h.
6933         (fetch_regs): Move code to aarch32-linux-nat.c.  Call
6934         aarch32_gp_regcache_supply.
6935         (store_regs): Move code to aarch32-linux-nat.c.  Call
6936         aarch32_gp_regcache_collect.
6937         (fetch_vfp_regs): Move code to aarch32-linux-nat.c.  Call
6938         aarch32_vfp_regcache_supply.
6939         (store_vfp_regs): Move code to aarch32-linux-nat.c.  Call
6940         aarch32_vfp_regcache_collect.
6941         * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6942
6943 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6944
6945         * arm-linux-nat.c (store_fpregister): Remove.
6946         (store_register): Likewise.
6947         (fetch_fpregister): Likewise.
6948         (fetch_register): Likewise.
6949         (arm_linux_store_inferior_registers): Call store_regs and
6950         store_fpregs instead.
6951         (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6952         fetch_regs instead.
6953
6954 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6955
6956         * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6957         and focus commands.
6958
6959 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
6960
6961         * NEWS: Create a new section for the next release branch.
6962         Rename the section of the current branch, now that it has
6963         been cut.
6964
6965 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
6966
6967         GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6968         * version.in: Bump version to 7.10.50.DATE-cvs.
6969
6970 2015-07-06  Luis Machado  <lgustavo@codesourcery.com>
6971
6972         * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6973         breakpoints in a special way.
6974         (remove_breakpoint): Likewise.
6975         (mark_breakpoints_out): Likewise.
6976
6977 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6978
6979         * doc/gdb.texinfo (TUI): Add comma after @xref.
6980
6981 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6982
6983         * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6984         instead of casting the structure type.
6985
6986 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
6987
6988         * valops.c (search_struct_field): Remove OFFSET parameter.
6989         (value_cast_structs): Adjust calls to search_struct_field.
6990         (value_struct_elt): Same.
6991         (find_overload_match): Same.
6992
6993 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
6994
6995         * value.c (value_fetch_lazy): Update comment, change return
6996         value to void.
6997         * value.h (value_fetch_lazy): Change return value to void.
6998
6999 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
7000
7001         * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
7002         (tui_win_name): Make parameter and result const.
7003         * tui/tui-data.h (tui_win_name): Make parameter and result const.
7004
7005 2015-07-06  Patrick Palka  <patrick@parcs.ath.cx>
7006
7007         * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
7008         use printf_unfiltered.
7009         (set_mpx_cmd): Add missing trailing space to command string
7010         literal.
7011         (_initialize_i386_tdep): Give the "mpx" prefix command its
7012         correct name.
7013
7014 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
7015
7016         * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
7017         (enum rx_frame_type): New.
7018         (struct rx_prologue): Add new field `frame_type'.
7019         (rx_analyze_prologue): Add `frame_type' parameter. Cache this
7020         parameter in the prologue struct.  Add code for recording
7021         locations of PC and PSW for fast interrupt and exception frames.
7022         (rx_skip_prologue): Adjust call to rx_analyze_prologue.
7023         (rx_analyze_frame_prologue): Add `frame_type' parameter.
7024         (rx_frame_type): New function.
7025         (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
7026         (rx_frame_this_id): Rename parameter `this_prologue_cache' to
7027         `this_cache'.
7028         (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
7029         `this_cache'.  Add cases for RX_FRAME_TYPE_EXCEPTION and
7030         RX_FRAME_TYPE_FAST_INTERRUPT.
7031         (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
7032         (rx_frame_sniffer, rx_exception_sniffer): New functions.
7033         (rx_frame_unwind): Use rx_frame_sniffer instead of
7034         default_frame_sniffer.
7035         (rx_frame_unwind): New unwinder.
7036         (rx_gdbarch_init): Register new unwinder.
7037
7038 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
7039
7040         * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
7041         (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
7042         (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
7043         and RX_FPSW_REGNUM.
7044         (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
7045
7046 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7047
7048         Fix GCC false warning.
7049         * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
7050
7051 2015-07-02  Yao Qi  <yao.qi@linaro.org>
7052
7053         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
7054         typo in the debugging message.
7055
7056 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
7057
7058         * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
7059         (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
7060         (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
7061         (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
7062         (btrace_maint_clear): New.
7063         (btrace_fetch, btrace_clear): Call btrace_maint_clear.
7064         (pt_print_packet, btrace_maint_decode_pt)
7065         (btrace_maint_update_pt_packets, btrace_maint_update_packets)
7066         (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
7067         (maint_btrace_packet_history_cmd)
7068         (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
7069         (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
7070         (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
7071         (maint_info_btrace_cmd, _initialize_btrace): New.
7072         * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
7073         (btrace_maint_packet_history, btrace_maint_info): New.
7074         (btrace_thread_info) <maint>: New.
7075         * NEWS: Announce it.
7076
7077 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
7078
7079         * btrace.c (btrace_fetch): Append the new trace data.
7080         (btrace_clear): Clear the stored trace data.
7081         * btrace.h (btrace_thread_info) <data>: New.
7082         * common/btrace-common.h (btrace_data_clear)
7083         (btrace_data_append): New.
7084         * common/btrace-common.c (btrace_data_clear)
7085         (btrace_data_append): New.
7086
7087 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
7088
7089         * nat/linux-btrace.c (linux_enable_bts): Check for
7090         PERF_ATTR_SIZE_VER5.
7091         Check for data_offset and data_size fields.  Use them.
7092
7093 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
7094
7095         * NEWS: Announce new commands "record btrace pt" and "record pt".
7096         Announce new options "set|show record btrace pt buffer-size".
7097         * btrace.c: Include "rsp-low.h".
7098         Include "inttypes.h".
7099         (btrace_add_pc): Add forward declaration.
7100         (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
7101         (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
7102         (btrace_compute_ftrace_pt): New.
7103         (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
7104         (check_xml_btrace_version): Update version check.
7105         (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
7106         (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
7107         (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
7108         (btrace_pt_children): New.
7109         (btrace_children): Add support for "pt".
7110         (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
7111         (btrace_conf_children): Add support for "pt".
7112         * btrace.h: Include "intel-pt.h".
7113         (btrace_pt_error): New.
7114         * common/btrace-common.c (btrace_format_string, btrace_data_fini)
7115         (btrace_data_empty): Support BTRACE_FORMAT_PT.
7116         * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
7117         (struct btrace_config_pt): New.
7118         (struct btrace_config)<pt>: New.
7119         (struct btrace_data_pt_config, struct btrace_data_pt): New.
7120         (struct btrace_data)<pt>: New.
7121         * features/btrace-conf.dtd (btrace-conf)<pt>: New.
7122         (pt): New.
7123         * features/btrace.dtd (btrace)<pt>: New.
7124         (pt, pt-config, cpu): New.
7125         * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
7126         (perf_event_pt_event_type, kernel_supports_pt)
7127         (linux_supports_pt): New.
7128         (linux_supports_btrace): Support BTRACE_FORMAT_PT.
7129         (linux_enable_bts): Free tinfo on error.
7130         (linux_enable_pt): New.
7131         (linux_enable_btrace): Support BTRACE_FORMAT_PT.
7132         (linux_disable_pt): New.
7133         (linux_disable_btrace): Support BTRACE_FORMAT_PT.
7134         (linux_fill_btrace_pt_config, linux_read_pt): New.
7135         (linux_read_btrace): Support BTRACE_FORMAT_PT.
7136         * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
7137         (struct btrace_target_info)<pt>: New.
7138         * record-btrace.c (set_record_btrace_pt_cmdlist)
7139         (show_record_btrace_pt_cmdlist): New.
7140         (record_btrace_print_pt_conf): New.
7141         (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
7142         (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
7143         (cmd_record_btrace_pt_start): New.
7144         (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
7145         (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
7146         (_initialize_record_btrace): Add new commands.
7147         * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
7148         (remote_protocol_features): Add "Qbtrace:pt".
7149         Add "Qbtrace-conf:pt:size".
7150         (remote_supports_btrace): Support BTRACE_FORMAT_PT.
7151         (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
7152         (remote_enable_btrace): Support BTRACE_FORMAT_PT.
7153         (_initialize_remote): Add new commands.
7154
7155 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
7156
7157         * configure.ac: check for libipt
7158         * configure: Regenerate.
7159         * config.in: Regenerate.
7160         * Makefile.in (LIBIPT): New.
7161         (CLIBS): Add $LIBIPT.
7162         * NEWS: document new configure options
7163
7164 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7165
7166         * compile/compile-object-load.c (compile_object_load): Replace debug
7167         message "lookup undefined ELF symbol" by 3 more specific messages.
7168
7169 2015-07-01  Kevin Buettner  <kevinb@redhat.com>
7170
7171         * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
7172         (rl78_register_type): Add case for RL78_PSW_REGNUM.
7173         (rl78_gdbarch_init): Initialize rl78_psw_type.
7174
7175 2015-07-01  Patrick Palka  <patrick@parcs.ath.cx>
7176
7177         * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
7178         Update commentary.  Always refresh the registers when frame
7179         information has changed.
7180         * tui/tui-stack.c (tui_show_frame_info): Update commentary.
7181         Change return type to int.  Return 1 if frame information has
7182         changed, 0 otherwise.
7183         (tui_before_prompt): Update commentary.
7184         * tui/tui-stack.h (tui_show_frame_info): Change return type to
7185         int.
7186
7187 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
7188
7189         PR tui/13378
7190         * frame.c (select_frame): Remove reference to
7191         deprecated_selected_frame_level_changed_hook.
7192         * frame.h (deprecated_selected_frame_level_changed_hook): Remove
7193         declaration.
7194         * stack.c (deprecated_selected_frame_level_changed_hook):
7195         Likewise.
7196         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
7197         Rename to ...
7198         (tui_refresh_frame_and_register_information): ... this.  Bail
7199         out if there is no stack.  Don't update register information
7200         unless registers_too_p is true.
7201         (tui_print_frame_info_listing_hook): Rename to ...
7202         (tui_dummy_print_frame_info_listing_hook): ... this.
7203         (tui_before_prompt): New function.
7204         (tui_normal_stop): New function.
7205         (tui_before_prompt_observer): New observer.
7206         (tui_normal_stop_observer): New observer.
7207         (tui_install_hooks): Set
7208         deprecated_print_frame_info_listing_hook to
7209         tui_dummy_print_frame_info_listing_hook.  Register
7210         tui_before_prompt_observer to call tui_before_prompt and
7211         tui_normal_stop_observer to call tui_normal_stop.  Remove
7212         reference to deprecated_selected_frame_level_changed_hook.
7213         (tui_remove_hooks): Detach and unset tui_before_prompt_observer
7214         and tui_normal_stop_observer.  Remove reference to
7215         deprecated_selected_frame_level_changed_hook.
7216
7217 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
7218
7219         PR tui/13378
7220         * tui/tui-stack.c (tui_set_locator_info): Change prototype to
7221         return an int instead of void.  Return whether the locator
7222         window has changed.
7223         (tui_show_frame_info): If the locator info has not changed, then
7224         bail out early to avoid refreshing the windows.
7225
7226 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
7227
7228         * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
7229         LOCATOR_WIN to tui_alloc_content.
7230
7231 2015-06-30  Yao Qi  <yao.qi@linaro.org>
7232
7233         PR tdep/18605
7234         * arm-tdep.c (arm_get_next_pc_raw): Break for media
7235         instructions.
7236
7237 2015-06-29  Kevin Buettner  <kevinb@redhat.com>
7238
7239         * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
7240         (rx_dwarf_reg_to_regnum): New function.
7241         (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum.  Use dwarf2
7242         unwinding.
7243
7244 2015-06-29  Pedro Alves  <palves@redhat.com>
7245
7246         PR threads/18127
7247         * infcall.c (run_inferior_call): On infcall success, if the thread
7248         was marked stopped before, reset it back to stopped.
7249         * infrun.c (resume): Don't suppress the set_running calls when
7250         doing an infcall.
7251         (normal_stop): Only discard the finish_thread_state cleanup if the
7252         infcall succeeded.
7253
7254 2015-06-29  Pierre Langlois  <pierre.langlois@arm.com>
7255
7256         * MAINTAINERS (Write After Approval): Update my email address.
7257
7258 2015-06-26  Keith Seitz  <keiths@redhat.com>
7259             Doug Evans  <dje@google.com>
7260
7261         PR 16253
7262         * block.c (block_lookup_symbol): For non-function blocks,
7263         continue to search for a symbol with an exact domain match
7264         Otherwise, return any previously found "best domain" symbol.
7265         (block_lookup_symbol_primary): Likewise.
7266
7267 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
7268
7269         * NEWS: Mention the new option "history remove-duplicates".
7270         * top.c (history_remove_duplicates): New static variable.
7271         (show_history_remove_duplicates): New static function.
7272         (gdb_add_history): Conditionally remove duplicate history
7273         entries.
7274         (init_main): Add "history remove-duplicates" option.
7275
7276 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
7277
7278         * tui/tui-win.c (focus_completer): New static function.
7279         (_initialize_tui_win): Set the completion function of the
7280         "focus" command to focus_completer.
7281
7282 2015-06-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
7283
7284         * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
7285         and language_asm..
7286         * symtab.c (find_function_start_sal): Likewise.
7287
7288 2015-06-25  Gary Benson  <gbenson@redhat.com>
7289
7290         * solib.c (solib_find_1): Set local variable sysroot to NULL if
7291         it is the empty string after trailing slashes have been stripped.
7292
7293 2015-06-25  Gary Benson  <gbenson@redhat.com>
7294
7295         * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
7296         * infrun.c (follow_exec): Likewise.
7297         * remote.c (remote_filesystem_is_local): Likewise.
7298         * solib.c (solib_find_1): Likewise.
7299
7300 2015-06-24  Keith Seitz  <keiths@redhat.com>
7301
7302         * build-id.c (build_id_to_debug_bfd): Add cleanup to free
7303         return value from lrealpath.
7304
7305 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
7306
7307         * remote-sim.c (gdbsim_open): Move sysroot update to the top.
7308
7309 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
7310
7311         * remote-sim.c: Include gdb_bfd.h.
7312         (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
7313         Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
7314
7315 2015-06-24  Yao Qi  <yao.qi@linaro.org>
7316
7317         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
7318         set_gdbarch_get_siginfo_type.
7319         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
7320         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
7321         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
7322         * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
7323         * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
7324         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7325         * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
7326         * linux-tdep.c (linux_get_siginfo_type): Change it to static.
7327         (linux_init_abi): Call set_gdbarch_get_siginfo_type.
7328         * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
7329
7330 2015-06-24  Gary Benson  <gbenson@redhat.com>
7331
7332         * common/buffer.c (stdint.h): Do not include.
7333         * common/print-utils.c (stdint.h): Likewise.
7334         * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
7335         * compile/compile-c-types.c (gdb_assert.h): Likewise.
7336         * ft32-tdep.c (gdb_assert.h): Likewise.
7337         * guile/scm-utils.c (stdint.h): Likewise.
7338         * i386-linux-tdep.c (stdint.h): Likewise.
7339         * i386-tdep.c (stdint.h): Likewise.
7340         * nat/linux-btrace.c (stdint.h): Likewise.
7341         * nat/linux-btrace.h (stdint.h): Likewise.
7342         * nat/linux-ptrace.c (stdint.h): Likewise.
7343         * nat/mips-linux-watch.h (stdint.h): Likewise.
7344         * ppc-linux-nat.c (stdint.h): Likewise.
7345         * python/python-internal.h (stdint.h): Likewise.
7346         * stub-termcap.c (stdlib.h): Likewise.
7347         * target/target.h (stdint.h): Likewise.
7348         * xtensa-linux-nat.c (stdint.h): Likewise.
7349
7350 2015-06-23  Patrick Palka  <patrick@parcs.ath.cx>
7351
7352         * top.c (init_history): Look at errno after calling strtol to
7353         properly map large GDBHISTSIZE values to infinity.
7354
7355 2015-06-23  Doug Evans  <dje@google.com>
7356
7357         * inferior.h (struct inferior_suspend_state): Delete, unused.
7358         All references deleted.
7359
7360 2015-06-23  Mike Frysinger  <vapier@gentoo.org>
7361
7362         * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
7363         (microblaze_push_dummy_call): Likewise.
7364         (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
7365         and set_gdbarch_push_dummy_call.
7366
7367 2015-06-23  Yao Qi  <yao.qi@linaro.org>
7368
7369         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
7370         Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
7371         (amd64_linux_store_inferior_registers): Likewise.
7372         * arm-linux-nat.c (fetch_fpregister): Likewise.
7373         (fetch_fpregs, store_fpregister): Likewise.
7374         (store_fpregister, store_fpregs): Likewise.
7375         (fetch_register, fetch_regs): Likewise.
7376         (store_register, store_regs): Likewise.
7377         (fetch_vfp_regs, store_vfp_regs): Likewise.
7378         (arm_linux_read_description): Check have_ptrace_getregset is
7379         TRIBOOL_UNKNOWN.  Set have_ptrace_getregset to TRIBOOL_TRUE
7380         or TRIBOOL_FALSE.
7381         * i386-linux-nat.c (fetch_xstateregs): Check
7382         have_ptrace_getregset is not TRIBOOL_TRUE.
7383         (store_xstateregs): Likewise.
7384         * linux-nat.c (have_ptrace_getregset): Change its type to
7385         enum tribool.
7386         * linux-nat.h (tribool): New enum.
7387         * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
7388         Check whether have_ptrace_getregset is TRIBOOL_TRUE.
7389
7390 2015-06-19  Doug Evans  <dje@google.com>
7391
7392         * NEWS: Mention Sun's version of stabs is no longer supported.
7393         * elfread.c (free_elfinfo): Delete.  All uses updated.
7394         (elfstab_offset_sections): Delete.  All uses updated.
7395         * gdb-stabs.h (stab_section_info): Delete.  All uses updated.
7396         * psympriv.h (partial_symtab) <section_offsets>: Delete.
7397         All uses updated.
7398         * psymtab.c (start_psymtab_common): Delete arg section_offsets.
7399         All callers updated.
7400
7401 2015-06-18  Simon Marchi  <simon.marchi@ericsson.com>
7402
7403         * common/rsp-low.c (needs_escaping): New.
7404         (remote_escape_output): Add unit_size parameter. Refactor to
7405         support multi-byte addressable units.  Rename parameters.
7406         * common/rsp-low.h (remote_escape_output): Add unit_size
7407         parameter and rename others. Update doc.
7408         * remote.c (align_for_efficient_write): New.
7409         (remote_write_bytes_aux): Add unit_size parameter and use it.
7410         Rename some variables.  Update doc.
7411         (remote_xfer_partial): Get unit size and use it.
7412         (remote_read_bytes_1): Add unit_size parameter and use it.
7413         Rename some variables. Update doc.
7414         (remote_write_bytes): Same.
7415         (remote_xfer_live_readonly_partial): Same.
7416         (remote_read_bytes): Same.
7417         (remote_flash_write): Update call to remote_write_bytes_aux.
7418         (remote_write_qxfer): Update call to remote_escape_output.
7419         (remote_search_memory): Same.
7420         (remote_hostio_pwrite): Same.
7421
7422 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
7423
7424         * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
7425         locations as inserted.
7426         Update and expand comment about permanent locations.
7427         (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
7428         Move comment to add_location_to_breakpoint.
7429         (update_global_location_list): Don't error out if a permanent
7430         breakpoint is not marked inserted.
7431         Don't error out if a non-permanent breakpoint location is inserted on
7432         top of a permanent breakpoint.
7433
7434 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
7435
7436         * breakpoint.c (make_breakpoint_permanent): Remove unused
7437         function.
7438         * breakpoint.h (make_breakpoint_permanent): Remove declaration.
7439
7440 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
7441
7442         PR gdb/16999
7443         * NEWS: Mention new GDBHISTSIZE behavior.
7444         * top.c (init_history): For null or out-of-range GDBHISTSIZE,
7445         set history size to unlimited.  Ignore non-numeric GDBHISTSIZE.
7446
7447 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
7448
7449         * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
7450         * top.c (init_history): Read from GDBHISTSIZE instead of
7451         HISTSIZE.
7452         (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
7453
7454 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
7455
7456         * top.c (gdb_safe_append_history): Do not call
7457         history_truncate_file if the history is not stifled.
7458
7459 2015-06-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7460
7461         * syscalls/s390-linux.xml: Add syscalls 344 through 354.
7462         * syscalls/s390x-linux.xml: Likewise.
7463
7464 2015-06-16  Michael Eager  <eager@eagercon.com>
7465
7466         * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
7467
7468 2015-06-16  Patrick Palka  <patrick@parcs.ath.cx>
7469
7470         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
7471         target_terminal_ours_for_output() before calling
7472         tui_show_frame_info(), and restore the original terminal
7473         settings afterwards.
7474
7475 2015-06-16  Martin Simmons  <martin@lispworks.com>  (tiny patch)
7476
7477         * arm-linux-nat.c: Include nat/linux-ptrace.h.
7478
7479 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
7480
7481         * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
7482         memory unit size.
7483         (mi_cmd_data_write_memory_bytes): Same.
7484
7485 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
7486
7487         * corefile.c (write_memory): Update doc.
7488         * gdbcore.h (write_memory): Same.
7489
7490 2015-06-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
7491
7492         * linux-tdep.c (enum filterflags): Make it from anonymous enum.
7493         (dump_mapping_p): Use it for parameter filterflags.
7494         (linux_find_memory_regions_full): Use it for variable filterflags.
7495
7496 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
7497             Jan Kratochvil  <jan.kratochvil@redhat.com>
7498
7499         Merge multiple hex conversions.
7500         * monitor.c: Include rsp-low.h.
7501         (fromhex): Remove definition.
7502
7503 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
7504             Jan Kratochvil  <jan.kratochvil@redhat.com>
7505
7506         Move utility functions to common/.
7507         * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
7508         Move defs to common/common-utils.c.
7509         * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
7510         (skip_to_space_const): Move decls to common/common-utils.h.
7511         * common/common-defs.h: Move include of common-types.h before
7512         common-utils.h.
7513         * common/common-utils.c: Include host-defs.h and ctype.h.
7514         (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
7515         from utils.c.
7516         (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
7517         cli/cli-utils.c.
7518         * common/common-utils.h (strtoulst): Move decl from utils.h.
7519         (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
7520         Move from cli/cli-utils.h.
7521         * common/host-defs.h: Include limits.h.
7522         (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
7523         (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
7524         * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
7525         common/common-utils.h.
7526         * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
7527         (strtoulst): Move to common/common-utils.c.
7528         * utils.h (strtoulst): Moved decl to common/common-utils.h.
7529
7530 2015-06-15  Yao Qi  <yao.qi@linaro.org>
7531
7532         * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
7533
7534 2015-06-10  Jon Turney  <jon.turney@dronecode.org.uk>
7535
7536         * build-id.c: Don't include elf-bfd.h.
7537         (build_id_bfd_get): Use bfd_build_id.
7538         (build_id_verify): Ditto.
7539         * build-id.h: Ditto.
7540         (find_separate_debug_file_by_buildid): Ditto.
7541         * python/py-objfile.c: Don't include elf-bfd.h.
7542         (objfpy_get_build_id) Use bfd_build_id.
7543         (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
7544         * coffread.c: Include build-id.h.
7545         (coff_symfile_read): Try find_separate_debug_file_by_buildid.
7546
7547 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7548
7549         * windows-nat.c (do_windows_fetch_inferior_registers)
7550         (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
7551         conditional with __CYGWIN__.
7552
7553 2015-06-13  Andrew Burgess  <andrew.burgess@embecosm.com>
7554
7555         * completer.c: Add arch-utils.h include.
7556         (enum reg_completer_targets): New enum.
7557         (reg_or_group_completer_1): New function containing old
7558         reg_or_group_completer, add and use new parameter to control what
7559         is completed on.  Use get_current_arch rather than architecture of
7560         currently selected frame.
7561         (reg_or_group_completer): Call new reg_or_group_completer_1.
7562         (reggroup_completer): Call new reg_or_group_completer_1.
7563         * completer.h (reggroup_completer): Add declaration.
7564         * tui/tui-regs.c: Add 'completer.h' include.
7565         (tui_reg_next_command): Renamed to...
7566         (tui_reg_next): ...this.  Adjust parameters and return rather than
7567         display new group.
7568         (tui_reg_prev_command): Renamed to...
7569         (tui_reg_prev): ...this.  Adjust parameters and return rather than
7570         display new group.
7571         (tui_reg_float_command): Delete.
7572         (tui_reg_general_command): Delete.
7573         (tui_reg_system_command): Delete.
7574         (tui_reg_command): Rewrite to perform switching of register group.
7575         Add header comment.
7576         (tuireglist): Remove.
7577         (tui_reggroup_completer): New function.
7578         (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
7579         creation of 'tui reg' command.
7580         * NEWS: Add comment about 'tui reg' changes.
7581
7582 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7583
7584         * target.c (target_read): Consider addressable unit size when
7585         reading from a memory object.
7586         (read_memory_robust): Same.
7587         (read_whatever_is_readable): Same.
7588         (target_write_with_progress): Consider addressable unit size
7589         when writing to a memory object.
7590         * target.h (target_read): Update documentation.
7591         (target_write): Add documentation.
7592
7593 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7594
7595         * arch-utils.h (default_addressable_memory_unit_size): New.
7596         * arch-utils.c (default_addressable_memory_unit_size): New.
7597         * gdbarch.sh (addressable_memory_unit_size): New.
7598         * gdbarch.h: Re-generate.
7599         * gdbarch.c: Re-generate.
7600
7601 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7602
7603         * target.c (target_read): Rename variables and use
7604         TARGET_XFER_E_IO.
7605         (target_read_with_progress): Same.
7606         (read_memory_robust): Constify parameters and rename
7607         variables.
7608         (read_whatever_is_readable): Constify parameters,
7609         rename variables, adjust formatting.
7610         * target.h (read_memory_robust): Constify parameters.
7611
7612 2015-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
7613
7614         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
7615         synthetic (non-AltiVec) vector types.
7616         (ppc64_sysv_abi_return_value): Likewise.
7617
7618 2015-06-12  Antoine Tremblay  <antoine.tremblay@ericsson.com>
7619
7620         PR breakpoints/16465
7621         * breakpoint.c (create_breakpoint): Save extra_string for
7622         pending breakpoints.
7623
7624 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7625
7626         * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
7627         and bt_mask to CORE_ADDR.
7628
7629 2015-06-11  Gary Benson <gbenson@redhat.com>
7630
7631         * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
7632         (mnsh_recv_message): Likewise.
7633
7634 2015-06-11  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7635
7636         * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
7637         long long int and plongest instead of %ll.
7638
7639 2015-06-11  Gary Benson <gbenson@redhat.com>
7640
7641         * nat/linux-namespaces.c (gdb_wait.h): New include.
7642         (sys/wait.h): Do not include.
7643
7644 2015-06-10  Simon Marchi  <simon.marchi@ericsson.com>
7645
7646         * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
7647         end_sequence is true.
7648
7649 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7650
7651         Code cleanup.
7652         * solib-target.c (library_list_start_list): Use explicit NULL
7653         comparison.
7654
7655 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7656
7657         * solib-target.c (library_list_start_list): Do not dereference
7658         variable version in its initialization.  Make the VERSION check handle
7659         NULL.
7660         (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
7661
7662 2015-06-10  Gary Benson <gbenson@redhat.com>
7663
7664         * NEWS: Announce support for direct access of executable and
7665         shared library files when attaching to inferiors in containers
7666         on GNU/Linux systems.
7667
7668 2015-06-10  Gary Benson <gbenson@redhat.com>
7669
7670         * remote.c (struct remote_state) <fs_pid>: New field.
7671         (new_remote_state): Initialize the above.
7672         (PACKET_vFile_setfs): New enum value.
7673         (remote_hostio_set_filesystem): New function.
7674         (remote_hostio_open): Call the above.
7675         (remote_hostio_unlink): Likewise.
7676         (remote_hostio_readlink): Likewise.
7677         (_initialize_remote): Register new "set/show remote
7678         hostio-setfs-packet" command.
7679         * NEWS: Announce new vFile:setfs packet.
7680
7681 2015-06-10  Gary Benson <gbenson@redhat.com>
7682
7683         * linux-nat.c (nat/linux-namespaces.h): New include.
7684         (fileio.h): Likewise.
7685         (linux_nat_filesystem_is_local): New function.
7686         (linux_nat_fileio_pid_of): Likewise.
7687         (linux_nat_fileio_open): Likewise.
7688         (linux_nat_fileio_readlink): Likewise.
7689         (linux_nat_fileio_unlink): Likewise.
7690         (linux_nat_add_target): Initialize to_filesystem_is_local,
7691         to_fileio_open, to_fileio_readlink and to_fileio_unlink.
7692         (_initialize_linux_nat): New "set/show debug linux-namespaces"
7693         commands.
7694         * NEWS: Mention new "set/show debug linux-namespaces" commands.
7695
7696 2015-06-10  Gary Benson <gbenson@redhat.com>
7697
7698         * target.h (struct inferior): New forward declaration.
7699         (struct target_ops) <to_filesystem_is_local>: Update comment.
7700         (struct target_ops) <to_fileio_open>: New argument inf.
7701         Update comment.  All implementations updated.
7702         (struct target_ops) <to_fileio_unlink>: Likewise.
7703         (struct target_ops) <to_fileio_readlink>: Likewise.
7704         (target_filesystem_is_local): Update comment.
7705         (target_fileio_open): New argument inf.  Update comment.
7706         (target_fileio_unlink): Likewise.
7707         (target_fileio_readlink): Likewise.
7708         (target_fileio_read_alloc): Likewise.
7709         (target_fileio_read_stralloc): Likewise.
7710         * target.c (target_fileio_open): New argument inf.
7711         Pass inf to implementation.  Update debug printing.
7712         (target_fileio_unlink): Likewise.
7713         (target_fileio_readlink): Likewise.
7714         (target_fileio_read_alloc_1): New argument inf. Pass inf
7715         to target_fileio_open.
7716         (target_fileio_read_alloc): New argument inf. Pass inf to
7717         target_fileio_read_alloc_1.
7718         (target_fileio_read_stralloc): Likewise.
7719         * gdb_bfd.c (inferior.h): New include.
7720         (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7721         argument with new argument "inferior".  Pass inferior to
7722         target_fileio_open.
7723         (gdb_bfd_open): Supply inferior argument to
7724         gdb_bfd_iovec_fileio_open.
7725         * linux-tdep.c (linux_info_proc): Supply inf argument to
7726         relevant target_fileio calls.
7727         (linux_find_memory_regions_full): Likewise.
7728         (linux_fill_prpsinfo): Likewise.
7729         * remote.c (remote_filesystem_is_local): Supply inf
7730         argument to remote_hostio_open.
7731         (remote_file_put): Likewise.
7732         (remote_file_get): Likewise.
7733         (remote_file_delete): Supply inf argument to
7734         remote_hostio_unlink.
7735
7736 2015-06-10  Gary Benson <gbenson@redhat.com>
7737
7738         * inf-child.c (inf_child_fileio_open): Replace comment.
7739         (inf_child_fileio_pwrite): Likewise.
7740         (inf_child_fileio_pread): Likewise.
7741         (inf_child_fileio_fstat): Insert blank line before comment.
7742         (inf_child_fileio_close): Replace comment.
7743         (inf_child_fileio_unlink): Likewise.
7744         (inf_child_fileio_readlink): Likewise.
7745         * remote.c (remote_hostio_open): Likewise.
7746         (remote_hostio_pread): Likewise.
7747         (remote_hostio_pwrite): Likewise.
7748         (remote_hostio_close): Likewise.
7749         (remote_hostio_unlink): Likewise.
7750         (remote_hostio_readlink): Likewise.
7751         (remote_hostio_fstat): Likewise.
7752         (remote_filesystem_is_local): Likewise.
7753         * target.c (target_fileio_open): Likewise.
7754         (target_fileio_pwrite): Likewise.
7755         (target_fileio_pread): Likewise.
7756         (target_fileio_fstat): Insert blank line before comment.
7757         (target_fileio_close): Replace comment.
7758         (target_fileio_unlink): Likewise.
7759         (target_fileio_readlink): Likewise.
7760         (target_fileio_read_alloc): Likewise.
7761         (target_fileio_read_stralloc): Likewise.
7762
7763 2015-06-10  Gary Benson <gbenson@redhat.com>
7764
7765         * linux-thread-db.c (nat/linux-namespaces.h): New include.
7766         (check_pid_namespace_match): Use linux_ns_same rather than
7767         linux_proc_pid_get_ns to spot PID namespace mismatches.
7768         * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7769         * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7770
7771 2015-06-10  Gary Benson <gbenson@redhat.com>
7772
7773         * configure.ac (AC_CHECK_FUNCS): Add setns.
7774         * config.in: Regenerate.
7775         * configure: Likewise.
7776         * nat/linux-namespaces.h: New file.
7777         * nat/linux-namespaces.c: Likewise.
7778         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7779         (linux-namespaces.o): New rule.
7780         * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7781         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7782         * config/arm/linux.mh (NATDEPFILES): Likewise.
7783         * config/i386/linux.mh (NATDEPFILES): Likewise.
7784         * config/i386/linux64.mh (NATDEPFILES): Likewise.
7785         * config/ia64/linux.mh (NATDEPFILES): Likewise.
7786         * config/m32r/linux.mh (NATDEPFILES): Likewise.
7787         * config/m68k/linux.mh (NATDEPFILES): Likewise.
7788         * config/mips/linux.mh (NATDEPFILES): Likewise.
7789         * config/pa/linux.mh (NATDEPFILES): Likewise.
7790         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7791         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7792         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7793         * config/s390/linux.mh (NATDEPFILES): Likewise.
7794         * config/sparc/linux.mh (NATDEPFILES): Likewise.
7795         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7796         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7797         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7798
7799 2015-06-10  Gary Benson <gbenson@redhat.com>
7800
7801         * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7802         * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7803         (make_cleanup_close): Likewise.
7804         * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7805         * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7806         (make_cleanup_close): Likewise.
7807
7808 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7809
7810         * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7811         from SuspendThread().
7812
7813 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7814
7815         * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7816         from OutputDebugString.
7817
7818 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7819                         Mircea Gherzan  <mircea.gherzan@intel.com>
7820
7821         * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7822         MPX_BT_MASK_32): New macros.
7823         (i386_mpx_set_bounds): New function that implements
7824         the command "set-mpx-bound".
7825         (i386_mpx_enabled): Helper function to test MPX availability.
7826         (i386_mpx_bd_base): Helper function to calculate the base directory
7827         address.
7828         (i386_mpx_get_bt_entry): Helper function to access a bound
7829         table entry.
7830         (i386_mpx_print_bounds): Effectively display bound information.
7831         (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7832         "show mpx".
7833         (_initialize_i386_tdep):
7834         Add "bound" to the commands "show mpx" and "set mpx" commands.
7835         (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7836         and "show mpx" commands.
7837         * NEWS: List new commands for MPX support.
7838
7839 2015-06-09  Gary Benson <gbenson@redhat.com>
7840
7841         * common/fileio.h (fileio_to_host_mode): New declaration.
7842         * common/fileio.c (fileio_to_host_mode): New Function.
7843         * inf-child.c (inf_child_fileio_open): Process mode argument
7844         with fileio_to_host_mode.
7845
7846 2015-06-09  Gary Benson <gbenson@redhat.com>
7847
7848         * common/fileio.c (fileio_mode_pack): Fix preprocessor
7849         conditional.
7850
7851 2015-06-05  Gary Benson <gbenson@redhat.com>
7852
7853         * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7854         * remote.c (remote_filesystem_is_local): ...here.
7855
7856 2015-06-04  Yao Qi  <yao.qi@linaro.org>
7857
7858         * gdbarch.c: Regenerate it.
7859
7860 2015-06-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7861
7862         * arch-utils.c (default_infcall_munmap): New.
7863         * arch-utils.h (default_infcall_munmap): New declaration.
7864         * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7865         (munmap_list_free, munmap_listp_free_cleanup): New.
7866         (struct setup_sections_data): Add field munmap_list_headp.
7867         (setup_sections): Call munmap_list_add.
7868         (compile_object_load): New variable munmap_list_head, initialize
7869         setup_sections_data.munmap_list_headp, return munmap_list_head.
7870         * compile/compile-object-load.h (struct munmap_list): New declaration.
7871         (struct compile_module): Add field munmap_list_head.
7872         (munmap_list_free): New declaration.
7873         * compile/compile-object-run.c (struct do_module_cleanup): Add field
7874         munmap_list_head.
7875         (do_module_cleanup): Call munmap_list_free.
7876         (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7877         * gdbarch.c: Regenerate.
7878         * gdbarch.h: Regenerate.
7879         * gdbarch.sh (infcall_munmap): New.
7880         * linux-tdep.c (linux_infcall_munmap): New.
7881         (linux_init_abi): Install it.
7882
7883 2015-06-02  Simon Marchi  <simon.marchi@ericsson.com>
7884
7885         PR gdb/15564
7886         * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7887
7888 2015-06-02  Yao Qi  <yao.qi@linaro.org>
7889
7890         * i386-linux-nat.c: Include linux-nat.h.
7891
7892 2015-06-01  Andreas Schwab  <schwab@linux-m68k.org>
7893             Jan Kratochvil  <jan.kratochvil@redhat.com>
7894
7895         PR symtab/18392
7896         * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7897         assertion.
7898         * dwarf2loc.c (chain_candidate): Likewise.
7899
7900 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7901
7902         * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7903         (store_vfp_regs): Use PTRACE_SETREGSET.
7904
7905 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7906
7907         * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7908         (fetch_fpregs): Likewise.
7909         * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7910         (store_fpregs): Likewise.
7911
7912 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7913
7914         * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7915         (fetch_regs): Likewise.
7916         (store_regs): Use PTRACE_SETREGSET.
7917         (store_register): Likewise.
7918
7919 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7920
7921         * arm-linux-nat.c (arm_linux_read_description): Check whether
7922         kernel supports PTRACE_GETREGSET.
7923
7924 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7925
7926         * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7927         * linux-nat.c: ... here.
7928         * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7929         to ...
7930         * linux-nat.h: ... here.
7931
7932 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7933
7934         * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7935         * i386-linux-nat.c: Likewise.
7936         * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7937         * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7938         (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7939         * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7940         * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7941
7942 2015-05-30  Eli Zaretskii  <eliz@gnu.org>
7943
7944         * go32-nat.c (go32_xfer_memory): Fix the return value to be
7945         compatible to what read_child and write_child return.  This
7946         unbreaks that DJGPP build of GDB which was broken since v7.7.
7947
7948 2015-05-29  Martin Galvan  <martin.galvan@tallertechnologies.com>
7949
7950         * MAINTAINERS (Write After Approval): Add Martin Galvan.
7951
7952 2015-05-29  Roland McGrath  <mcgrathr@google.com>
7953
7954         PR gdb/18464
7955         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7956         rather than internal_error for an unrecognized value.
7957
7958 2015-05-29  Max Filippov  <jcmvbkbc@gmail.com>
7959
7960         * xtensa-tdep.c (xtensa_pseudo_register_read)
7961         (xtensa_pseudo_register_write): Don't alias last pseudo register
7962         to a1.
7963
7964 2015-05-28  Don Breazeal  <donb@codesourcery.com>
7965
7966         * infrun.c (follow_fork_inferior): Ensure the use of
7967         process-style ptids (pid,0,0) in verbose/debug "Detaching"
7968         messages.
7969
7970 2015-05-28  Doug Evans  <dje@google.com>
7971
7972         * dwarf2read.c (record_line_ftype): Remove, duplicate.
7973
7974 2015-05-28  Yao Qi  <yao.qi@linaro.org>
7975
7976         * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7977         (arm_linux_fetch_inferior_registers): Use
7978         tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7979         (arm_linux_store_inferior_registers): Likewise.
7980         (arm_linux_read_description): Don't set
7981         arm_linux_has_wmmx_registers.
7982         * arm-tdep.c (arm_gdbarch_init): Set
7983         tdep->have_wmmx_registers according target descriptions.
7984         * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7985         field.
7986
7987 2015-05-28  Yao Qi  <yao.qi@linaro.org>
7988
7989         * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7990         (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7991         instead of arm_linux_vfp_register_count.
7992         (store_vfp_regs): Likewise.
7993         (arm_linux_fetch_inferior_registers): Likewise.
7994         (arm_linux_store_inferior_registers): Likewise.
7995         (arm_linux_read_description): Don't set
7996         arm_linux_vfp_register_count.
7997         * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7998         Adjust.
7999         * arm-tdep.c (arm_gdbarch_init): Add assert on
8000         vfp_register_count.
8001         * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
8002         field to vfp_register_count.  All users updated.
8003
8004 2015-05-28  Kyle Huey  <me@kylehuey.com>  (tiny patch)
8005
8006         * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
8007         ELFOSABI_GNU binaries.
8008
8009 2015-05-27  Doug Evans  <dje@google.com>
8010
8011         * dwarf2read.c (lnp_state_machine): New typedef.
8012         (lnp_reader_state): New typedef.
8013         (dwarf_record_line_1): Renamed from dwarf_record_line.
8014         All callers updated.
8015         (dwarf_record_line): New function.
8016         (init_lnp_state_machine): New function.
8017         (check_line_address): Replace p_record_line parameter with state.
8018         All callers updated.
8019         (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
8020         Update to record state in lnp_state_machine.
8021
8022 2015-05-27  Doug Evans  <dje@google.com>
8023
8024         * dwarf2read.c (record_line_ftype): New typedef.
8025         (check_line_address): New function.
8026         (dwarf_decode_lines_1): Call it.
8027
8028 2015-05-27  Doug Evans  <dje@google.com>
8029
8030         * NEWS: Mention "set debug dwarf-line".
8031         * dwarf2read.c (dwarf_line_debug): New static global.
8032         (add_include_dir): Add debug dwarf-line support.
8033         (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
8034         (_initialize_dwarf2_read): New parameter "debug dwarf-line".
8035
8036 2015-05-27  Doug Evans  <dje@google.com>
8037
8038         * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
8039         All callers updated.
8040         (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
8041         * cp-support.h (cp_lookup_nested_symbol): Update.
8042
8043 2015-05-27  Doug Evans  <dje@google.com>
8044
8045         PR symtab/18258
8046         * block.c (block_find_symbol): New function.
8047         (block_find_non_opaque_type): Ditto.
8048         (block_find_non_opaque_type_preferred): Ditto.
8049         * block.h (block_symbol_matcher_ftype): New typedef.
8050         (block_find_symbol): Declare.
8051         (block_find_non_opaque_type): Ditto.
8052         (block_find_non_opaque_type_preferred): Ditto.
8053         * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
8054         * psymtab.c (psym_lookup_symbol): Ditto.
8055         * symtab.c (basic_lookup_transparent_type_1): New function.
8056         (basic_lookup_transparent_type): Call it.
8057
8058 2015-05-27  Yao Qi  <yao.qi@linaro.org>
8059
8060         * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
8061         AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
8062
8063 2015-05-27  Yao Qi  <yao.qi@linaro.org>
8064
8065         * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
8066         before operator &&.
8067         (aarch64_record_load_store): Likewise.
8068
8069 2015-05-26  Doug Evans  <dje@google.com>
8070
8071         PR c++/18141, c++/18417.
8072         * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
8073         a typedef.
8074
8075 2015-05-26  Doug Evans  <dje@google.com>
8076
8077         * NEWS: Add entries for command renamings.
8078         * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
8079         All uses updated.
8080         (dwarf_die_debug): Renamed from dwarf2_die_debug.  All uses updated.
8081         (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
8082         All uses updated.
8083         (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
8084         All callers updated.  Fix spelling of DWARF in help text.
8085         (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
8086         All uses updated.
8087         (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
8088         All uses updated.
8089         (set_dwarf_cmd): Renamed from set_dwarf2_cmd.  All callers updated.
8090         (show_dwarf_cmd): Renamed from show_dwarf2_cmd.  All callers updated.
8091         (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
8092         All uses updated.
8093         (show_dwarf_always_disassemble): Renamed from
8094         show_dwarf2_always_disassemble.  All callers updated.
8095         (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
8096         "set/show dwarf".  Rename "set/show dwarf2 max-cache-age" to
8097         "set/show dwarf max-cache-age".  Rename
8098         "set/show dwarf2 always-disassemble" to
8099         "set/show dwarf always-disassemble".  Rename
8100         "set/show debug dwarf2-read" to "set/show debug dwarf-read".  Rename
8101         "set/show debug dwarf2-die" to "set/show debug dwarf-die".
8102
8103 2015-05-26  Doug Evans  <dje@google.com>
8104
8105         PR python/18438
8106         * python/py-lazy-string.c (stpy_convert_to_value): Use
8107         gdbpy_gdb_memory_error not PyExc_MemoryError.
8108         (gdbpy_create_lazy_string_object): Ditto.
8109
8110 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
8111
8112         * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
8113
8114 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
8115
8116         * tui/tui-regs.c (tui_reg_prev_command): New function.
8117         (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
8118         * reggroups.c (reggroup_prev): New function.
8119         * reggroups.h (reggroup_prev): Add declaration.  Update comment.
8120
8121 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
8122             Yao Qi  <yao.qi@linaro.org>
8123
8124         * aarch64-linux-tdep.c: Include linux-record.h and
8125         record-full.h.
8126         (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
8127         (aarch64_syscall): New enum.
8128         (aarch64_canonicalize_syscall): New function.
8129         (aarch64_all_but_pc_registers_record): New function.
8130         (aarch64_linux_syscall_record): New function.
8131         (aarch64_linux_init_abi): Install AArch64 process record
8132         handler.  Update to handle syscall recording.
8133         * aarch64-tdep.c: Include record.h and record-full.h.
8134         (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
8135         (struct aarch64_mem_r): Define.
8136         (aarch64_record_result): New enum.
8137         (struct insn_decode_record): Define.
8138         (insn_decode_record): New typedef.
8139         (aarch64_record_data_proc_reg): New function.
8140         (aarch64_record_data_proc_imm): New function.
8141         (aarch64_record_branch_except_sys): New function.
8142         (aarch64_record_load_store): New function.
8143         (aarch64_record_data_proc_simd_fp): New function.
8144         (aarch64_record_asimd_load_store): New function.
8145         (aarch64_record_decode_insn_handler): New function.
8146         (deallocate_reg_mem): New function.
8147         (aarch64_process_record): New function.
8148         * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
8149         New field.
8150         (aarch64_process_record): New extern declaration.
8151         * configure.tgt: Add linux-record.o to gdb_target_obs.
8152         * linux-record.h (struct linux_record_tdep) <arg7>: New field.
8153
8154 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
8155
8156         * NEWS: Add a note on process record-replay support on aarch64*-linux*
8157         targets.
8158
8159 2015-05-26  Martin Galvan  <martin.galvan@tallertechnologies.com>
8160
8161         * amd64-tdep.c: Replace in_function_epilogue_p with
8162         stack_frame_destroyed_p throughout.
8163         * arch-utils.c: Ditto.
8164         * arch-utils.h: Ditto.
8165         * arm-tdep.c: Ditto.
8166         * breakpoint.c: Ditto.
8167         * gdbarch.sh: Ditto.
8168         * hppa-tdep.c: Ditto.
8169         * i386-tdep.c: Ditto.
8170         * mips-tdep.c: Ditto.
8171         * nios2-tdep.c: Ditto.
8172         * rs6000-tdep.c: Ditto.
8173         * s390-linux-tdep.c: Ditto.
8174         * score-tdep.c: Ditto.
8175         * sh-tdep.c: Ditto.
8176         * sparc-tdep.c: Ditto.
8177         * sparc-tdep.h: Ditto.
8178         * sparc64-tdep.c: Ditto.
8179         * spu-tdep.c: Ditto.
8180         * tic6x-tdep.c: Ditto.
8181         * tilegx-tdep.c: Ditto.
8182         * xstormy16-tdep.c: Ditto.
8183         * gdbarch.c, gdbarch.h: Re-generated.
8184
8185 2015-05-22  Andrew Burgess  <andrew.burgess@embecosm.com>
8186
8187         * NEWS: Mention 'tui enable' and 'tui disable'.
8188         * tui/tui.c (tui_enable_command): New function.
8189         (tui_disable_command): New function.
8190         (_initialize_tui): New function.
8191
8192 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8193
8194         * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
8195
8196 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8197
8198         * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
8199         buf_ptr is freed.
8200
8201 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8202
8203         * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
8204         into ...
8205         (tui_set_layout_for_display_command): ...here, before calling
8206         tui_set_layout.  Only set the layout if gdb has not already
8207         entered the TUI_FAILURE state.
8208
8209 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8210
8211         * tui/tui-layout.c (layout_completer): New function.
8212         (_initialize_tui_layout): Set completer on layout command.
8213
8214 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8215
8216         * tui/tui-layout.c (tui_set_layout): Remove
8217         tui_register_display_type parameter.  Remove all checking of this
8218         parameter, and reindent function.  Update header comment.
8219         (tui_set_layout_for_display_command): Rename to...
8220         (tui_set_layout_by_name): ...this, and don't check for different
8221         register class types, don't pass a tui_register_display_type to
8222         tui_set_layout.  Update header comment.
8223         (layout_names): Remove register set specific names.
8224         * tui/tui-layout.h (tui_set_layout): Remove
8225         tui_register_display_type parameter.
8226         * tui/tui.c (tui_rl_change_windows): Don't pass a
8227         tui_register_display_type to tui_set_layout.
8228         (tui_rl_delete_other_windows): Likewise.
8229         (tui_enable): Likewise.
8230         * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
8231         (TUI_FLOAT_REGS_NAME_LOWER): Remove.
8232         (TUI_GENERAL_REGS_NAME): Remove.
8233         (TUI_GENERAL_REGS_NAME_LOWER): Remove.
8234         (TUI_SPECIAL_REGS_NAME): Remove.
8235         (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
8236         (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
8237         (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
8238         (enum tui_register_display_type): Remove.
8239         (struct tui_layout_def): Remove regs_display_type and
8240         float_regs_display_type fields.
8241         (struct tui_data_info): Remove regs_display_type field.
8242         (tui_layout_command): Use new name for
8243         tui_set_layout_for_display_command.
8244         * tui/tui-data.c (layout_def): Don't initialise removed fields.
8245         (tui_clear_win_detail): Don't initialise removed fields of
8246         win_info.
8247         * tui/tui-regs.c (tui_show_registers): Use new name for
8248         tui_set_layout_for_display_command.
8249         * tui/tui.h (tui_set_layout_for_display_command): Rename
8250         declaration to...
8251         (tui_set_layout_by_name): ...this.
8252         * printcmd.c (display_command): Remove tui related layout call,
8253         and reindent.
8254
8255 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
8256
8257         * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
8258         (handle_inferior_event): New function.
8259
8260 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
8261
8262         * ada-lang.c (to_fixed_array_type): Rename local variable
8263         typename into type_name.
8264
8265 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8266
8267         Fix ASAN crash for gdb.compile/compile.exp.
8268         * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
8269
8270 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8271
8272         * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
8273         (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
8274         * compile/compile-object-load.c (setup_sections, compile_object_load):
8275         Likewise.
8276         * compile/compile.c (compile_to_object): Likewise.
8277
8278 2015-05-16  Doug Evans  <xdje42@gmail.com>
8279
8280         * NEWS: Mention support for unbuffered Guile memory ports.
8281         * scm-ports.c (ioscm_memory_port): Update comments on end, size.
8282         (ioscm_lseek_address): Improve overflow calculation.
8283         (gdbscm_memory_port_fill_input): Add assert.
8284         (gdbscm_memory_port_write): Handle unbuffered ports.
8285         Handle large writes identical to Guile's fport_write.
8286         (gdbscm_memory_port_seek): Fix seeking past end check.
8287         (gdbscm_memory_port_close): Handle closing unbuffered port.
8288         (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
8289         (ioscm_init_memory_port): Handle unbuffered ports.
8290         (ioscm_reinit_memory_port): Ditto.
8291         (ioscm_init_memory_port): Update size calculation.
8292         (gdbscm_open_memory): Support zero sized ports.
8293
8294 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8295
8296         * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
8297         variable compiler warnings.
8298
8299 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8300
8301         * compile/compile-object-load.c (get_out_value_type): Fix returned type.
8302
8303 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8304             Phil Muldoon  <pmuldoon@redhat.com>
8305
8306         * NEWS (Changes since GDB 7.9): Add compile print.
8307         * compile/compile-c-support.c (add_code_header, add_code_footer)
8308         (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
8309         COMPILE_I_PRINT_VALUE_SCOPE.
8310         * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
8311         (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
8312         New.
8313         * compile/compile-object-load.c: Include block.h.
8314         (get_out_value_type): New function.
8315         (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8316         COMPILE_I_PRINT_VALUE_SCOPE.  Set compile_module's OUT_VALUE_ADDR and
8317         OUT_VALUE_TYPE.
8318         * compile/compile-object-load.h (struct compile_module): Add fields
8319         out_value_addr and out_value_type.
8320         * compile/compile-object-run.c: Include valprint.h and compile.h.
8321         (struct do_module_cleanup): Add fields out_value_addr and
8322         out_value_type.
8323         (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8324         COMPILE_I_PRINT_VALUE_SCOPE.
8325         (compile_object_run): Propagate out_value_addr and out_value_type.
8326         Pass OUT_VALUE_ADDR.
8327         * compile/compile.c: Include valprint.h.
8328         (compile_print_value, compile_print_command): New functions.
8329         (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
8330         (_initialize_compile): Update compile code help text.  Install
8331         compile_print_command.
8332         * compile/compile.h (compile_print_value): New prototype.
8333         * defs.h (enum compile_i_scope_types): Add
8334         COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
8335
8336 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8337
8338         * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
8339         Rely on its parameter count.
8340         (compile_object_load): Replace lookup_minimal_symbol_text by
8341         lookup_global_symbol_from_objfile.  Verify FUNC_SYM.  Set it in the
8342         return value.
8343         * compile/compile-object-load.h (struct compile_module): Replace
8344         func_addr by func_sym.
8345         * compile/compile-object-run.c: Include block.h.
8346         (compile_object_run): Reset module variable after it is freed.  Use
8347         FUNC_SYM instead of FUNC_ADDR.  Rely on it.
8348
8349 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8350
8351         * compile/compile-c-support.c (print_one_macro): Use #ifndef.
8352         (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
8353         (c_compute_program): Call generate_register_struct after typedefs.
8354         * compile/compile-loc2c.c (push, pushf_register_address)
8355         (pushf_register): Cast to GCC_UINTPTR.
8356         (do_compile_dwarf_expr_to_c): Use unused attribute.  Add space after
8357         type.  Use GCC_UINTPTR instead of void *.  Remove excessive cast.
8358         (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
8359         * compile/compile.c (_initialize_compile): Enable warnings for
8360         COMPILE_ARGS.
8361
8362 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8363
8364         * cli/cli-script.c (execute_control_command): Update
8365         eval_compile_command caller.
8366         * compile/compile-object-load.c (compile_object_load): Add parameters
8367         scope and scope_data.  Set them.
8368         * compile/compile-object-load.h (struct compile_module): Add fields
8369         scope and scope_data.
8370         (compile_object_load): Add parameters scope and scope_data.
8371         * compile/compile-object-run.c (struct do_module_cleanup): Add fields
8372         scope and scope_data.
8373         (compile_object_run): Propagate the fields scope and scope_data.
8374         * compile/compile.c (compile_file_command, compile_code_command):
8375         Update eval_compile_command callers.
8376         (eval_compile_command): Add parameter scope_data.  Pass it plus scope.
8377         * compile/compile.h (eval_compile_command): Add parameter scope_data.
8378         * defs.h (struct command_line): Add field scope_data.
8379
8380 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8381
8382         * printcmd.c (struct format_data): Move it to valprint.h.
8383         (print_command_parse_format, print_value): New functions from ...
8384         (print_command_1): ... here.  Call them.
8385         * valprint.h (struct format_data): Move it here from printcmd.c.
8386         (print_command_parse_format, print_value): New declarations.
8387
8388 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8389
8390         * compile/compile-object-load.c (compile_object_load): Add
8391         COMPILE_DEBUG message.
8392
8393 2015-05-15  Jerome Guitton  <guitton@adacore.com>
8394
8395         * ada-lang.c (ada_value_ptr_subscript): Use enum position of
8396         index to get element instead of enum value.
8397         (ada_value_slice_from_ptr, ada_value_slice): Use enum position
8398         of index to compute length, but enum values to compute bounds.
8399         (ada_array_length): Use enum position of index instead of enum value.
8400         (pos_atr): Move position computation to...
8401         (ada_evaluate_subexp): Use enum values to compute bounds.
8402         * gdbtypes.c (discrete_position): ...this new function.
8403         * gdbtypes.h (discrete_position): New function declaration.
8404         * valprint.c (val_print_array_elements): Call discrete_position
8405         to handle array indexed by non-contiguous enumeration types.
8406
8407 2015-05-15  Jerome Guitton  <guitton@adacore.com>
8408
8409         * ada-lang.c (find_parallel_type_by_descriptive_type):
8410         Go through typedefs during lookup.
8411         (to_fixed_array_type): Add support for non-bit packed arrays
8412         as variable-length fields.
8413
8414 2015-05-15  Pedro Alves  <palves@redhat.com>
8415             Simon Marchi  <simon.marchi@ericsson.com>
8416
8417         * event-loop.c (gdb_notifier) <next_file_handler,
8418         next_poll_fds_index>: New fields.
8419         (get_next_file_handler_to_handle_and_advance): New function.
8420         (delete_file_handler): If deleting the next file handler to
8421         handle, advance to the next file handler.
8422         (gdb_wait_for_event): Bail early if no event fired.  Poll file
8423         handlers in round-robin fashion.
8424
8425 2015-05-15  Pedro Alves  <palves@redhat.com>
8426
8427         * linux-tdep.c (linux_find_memory_regions_full): Rename local
8428         'private' to 'priv'.
8429
8430 2015-05-15  Pedro Alves  <palves@redhat.com>
8431
8432         * nat/linux-nat.h: Include "target/waitstatus.h".
8433
8434 2015-05-15  Yuanhui Zhang  <asmwarrior@gmail.com>
8435
8436         * python/py-unwind.c (struct reg_info): Move out of ...
8437         (struct cached_frame_info): ... this scope.
8438         (pending_frame_object_type, unwind_info_object_type): Make extern.
8439
8440 2015-05-15  Joel Brobecker  <brobecker@adacore.com>
8441
8442         * ada-lang.c (ada_value_primitive_packed_val): Make sure
8443         accumSize is never negative.
8444
8445 2015-05-14  Patrick Palka  <patrick@parcs.ath.cx>
8446
8447         * tui/tui-command.c: Remove include of <ctype.h>.
8448         (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
8449
8450 2015-05-13  Martin Galvan  <martin.galvan@tallertechnologies.com>
8451
8452         * dwarf2read.c (die_needs_namespace): Return 1 for
8453         DW_TAG_inlined_subroutine.
8454
8455 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8456
8457         * regcache.c (regcache_cpy_no_passthrough): New declaration.
8458         (regcache_cpy_no_passthrough): Make it static, add function comment.
8459         * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
8460         (regcache_cpy_no_passthrough): Remove declaration.
8461
8462 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8463
8464         * gdbthread.h (struct thread_control_state): Update comment for
8465         proceed_to_finish.
8466         * infcall.c (run_inferior_call): Update comment about
8467         proceed_to_finish.
8468         * infcmd.c (get_return_value): Update comment about stop_registers.
8469         (finish_forward): Update comment about proceed_to_finish.
8470         * infrun.c (stop_registers): Remove.
8471         (clear_proceed_status, normal_stop): Remove stop_registers handling.
8472         * infrun.h (stop_registers): Remove.
8473
8474 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8475
8476         * infcall.c (struct dummy_frame_context_saver)
8477         (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
8478         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8479         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8480         New.
8481         (call_function_by_hand_dummy): Move discard_cleanups of
8482         inf_status_cleanup before dummy_frame_push.  Call
8483         dummy_frame_context_saver_setup and prepare context_saver_cleanup.
8484         Use dummy_frame_context_saver_get_regs instead of stop_registers.
8485         * infcall.h (struct dummy_frame_context_saver)
8486         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8487         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8488         New declarations.
8489         * infcmd.c: Include infcall.h.
8490         (get_return_value): Add parameter ctx_saver, use it instead of
8491         stop_registers.
8492         (print_return_value): Add parameter ctx_saver, pass it.
8493         (struct finish_command_continuation_args): Add field ctx_saver.
8494         (finish_command_continuation): Update print_return_value caller.
8495         (finish_command_continuation_free_arg): Free also ctx_saver.
8496         (finish_forward): Call dummy_frame_context_saver_setup.
8497         * inferior.h (struct dummy_frame_context_saver): New declaration.
8498         (get_return_value): Add parameter ctx_saver.
8499         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
8500         get_return_value caller.
8501
8502 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8503
8504         * dummy-frame.c (struct dummy_frame_dtor_list): New.
8505         (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
8506         (remove_dummy_frame): Process dtor_list.
8507         (pop_dummy_frame): Process dtor_list.
8508         (register_dummy_frame_dtor): Maintain dtor_list.
8509         (find_dummy_frame_dtor): Handle dtor_list.
8510         * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
8511         Update comments.
8512
8513 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8514
8515         * compile/compile-object-run.c (do_module_cleanup): Add parameter
8516         registers_valid.
8517         (compile_object_run): Update do_module_cleanup caller.
8518         * dummy-frame.c: Include infcall.h.
8519         (struct dummy_frame): Update dtor comment.
8520         (remove_dummy_frame): Call dtor.
8521         (pop_dummy_frame): Update dtor caller.
8522         * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
8523         registers_valid.
8524
8525 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
8526
8527         GDB 7.9.1 released.
8528
8529 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
8530
8531         * NEWS: Create "Changes in GDB 7.9.1" section.  Move news about
8532         Xmethods now being able to specify a result type to that new
8533         sectioin.
8534
8535 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
8536
8537         * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
8538         first before resizing the window.
8539         * tui/tui.c (tui_enable): Likewise.
8540
8541 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8542
8543         * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
8544         * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
8545         * infcall.c (call_function_by_hand_dummy): Use proper typedef for
8546         dummy_dtor parameter.
8547         * infcall.h: Include dummy-frame.h.
8548         (call_function_by_hand_dummy_dtor_ftype): Remove.
8549         (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
8550         parameter.
8551
8552 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
8553
8554         PR gdb/17820
8555         * top.c (history_size_setshow_var): Change type to signed.
8556         Initialize to -2.  Update documentation.
8557         (set_readline_history_size): Define.
8558         (set_history_size_command): Use it.  Remove logic for handling
8559         out-of-range sizes.
8560         (init_history): Use set_readline_history_size().  Test for a
8561         value of -2 instead of 0 when determining whether to set a
8562         default history size.
8563         (init_main): Decode the argument of the "size" command as a
8564         zuinteger_unlimited.
8565
8566 2015-05-12  Doug Evans  <dje@google.com>
8567
8568         * dwarf2read.c (struct file_entry): Tweak comments.
8569         (get_debug_line_section): Tweak comments.
8570
8571 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8572
8573         * NEWS: Announce fork support in the RSP and support
8574         for fork debugging in extended mode.
8575
8576 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8577
8578         * remote.c (remote_insert_fork_catchpoint): New function.
8579         (remote_remove_fork_catchpoint): New function.
8580         (remote_insert_vfork_catchpoint): New function.
8581         (remote_remove_vfork_catchpoint): New function.
8582         (pending_fork_parent_callback): New function.
8583         (remove_new_fork_child): New function.
8584         (remote_update_thread_list): Call remote_notif_get_pending_events
8585         and remove_new_fork_child.
8586         (extended_remote_kill): Kill fork child when killing the
8587         parent before follow_fork completes.
8588         (init_extended_remote_ops): Initialize target vector with
8589         new fork catchpoint functions.
8590
8591 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8592
8593         * remote.c (remove_vfork_event_p): New function.
8594         (remote_follow_fork): Add vfork event type to event checking.
8595         (remote_parse_stop_reply): New stop reasons "vfork" and
8596         "vforkdone" for RSP 'T' Stop Reply Packet.
8597
8598 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8599
8600         * linux-nat.c (linux_nat_ptrace_options): New function.
8601         (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
8602         Call linux_nat_ptrace_options and use different argument to
8603         linux_enable_event_reporting.
8604         (_initialize_linux_nat): Delete call to
8605         linux_ptrace_set_additional_flags.
8606         * nat/linux-ptrace.c (current_ptrace_options): Rename to
8607         supported_ptrace_options.
8608         (additional_flags): Delete variable.
8609         (linux_check_ptrace_features): Use supported_ptrace_options.
8610         (linux_test_for_tracesysgood, linux_test_for_tracefork):
8611         Likewise, and remove additional_flags check.
8612         (linux_enable_event_reporting): Change 'attached' argument to
8613         'options'.  Use supported_ptrace_options.
8614         (ptrace_supports_feature): Change comment.  Use
8615         supported_ptrace_options.
8616         (linux_ptrace_set_additional_flags): Delete function.
8617         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
8618         Delete function prototype.
8619         * remote.c (remote_fork_event_p): New function.
8620         (remote_detach_pid): New function.
8621         (remote_detach_1): Call remote_detach_pid, don't mourn inferior
8622         if doing detach-on-fork.
8623         (remote_follow_fork): New function.
8624         (remote_parse_stop_reply): Handle new "T" stop reason "fork".
8625         (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
8626         (init_extended_remote_ops): Initialize to_follow_fork.
8627
8628 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8629
8630         * nat/linux-ptrace.c (linux_check_ptrace_features): Change
8631         from static to extern.
8632         * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
8633         * remote.c (anonymous enum): <PACKET_fork_event_feature,
8634         * PACKET_vfork_event_feature>: New enumeration constants.
8635         (remote_protocol_features): Add table entries for new packets.
8636         (remote_query_supported): Add new feature queries to qSupported
8637         packet.
8638
8639 2015-05-12  Gary Benson <gbenson@redhat.com>
8640
8641         * remote.c (remote_add_inferior): Call exec_file_locate_attach
8642         for fake PIDs as well as real ones.
8643         (remote_pid_to_exec_file): Send empty annex if PID is fake.
8644
8645 2015-05-09  Siva Chandra Reddy  <sivachandra@google.com>
8646
8647         * NEWS (Python Scripting): Mention the new gdb.Value methods.
8648         * python/py-value.c (valpy_reference_value): New function.
8649         (valpy_const_value): Likewise.
8650         (value_object_methods): Add new methods.
8651         * value.c (make_cv_value): New function.
8652         * value.h (make_cv_value): Declare.
8653
8654 2015-05-08  Yao Qi  <yao@codesourcery.com>
8655             Sandra Loosemore  <sandra@codesourcery.com>
8656
8657         * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
8658         to 'lh->include_dirs' before accessing to it.
8659         (psymtab_include_file_name): Likewise.
8660         (dwarf_decode_lines_1): Likewise.
8661         (dwarf_decode_lines): Likewise.
8662         (file_file_name): Likewise.
8663
8664 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
8665
8666         * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
8667         (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
8668         (nios2_linux_rt_sigreturn_init): Adjust base address of
8669         register save area.
8670
8671 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
8672
8673         * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
8674         "trap 31" as the breakpoint instruction on all targets.
8675
8676 2015-05-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8677
8678         * infcmd.c (print_return_value): Remove unused declaration.
8679
8680 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8681
8682         * dwarf2read.c (attr_to_dynamic_prop)
8683         <DW_AT_data_member_location>: Use read_type_die isntead of
8684         get_die_type.
8685
8686 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8687
8688         * ada-lang.c (ada_convert_actual): Add handling of formals
8689         passed inside an aligner type.
8690
8691 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8692
8693         * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
8694
8695 2015-05-08  Siva Chandra Reddy  <sivachandra@google.com>
8696
8697         PR python/18291
8698         * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
8699         Print xmethod matcher status.
8700
8701 2015-05-08  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8702
8703         * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
8704         register in the regcache when treating the PSWM register, and vice
8705         versa.
8706
8707 2015-05-07  Gary Benson <gbenson@redhat.com>
8708
8709         * linux-thread-db.c (struct thread_db_info)
8710         <td_ta_map_id2thr_p>: Remove field.
8711         (try_thread_db_load_1): Remove initialization for the above.
8712
8713 2015-05-07  Gary Benson <gbenson@redhat.com>
8714
8715         * linux-thread-db.c (struct thread_db_info)
8716         <td_thr_validate_p>: Remove field.
8717         (try_thread_db_load_1): Remove initialization for the above.
8718
8719 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
8720
8721         * compile/compile-object-load.c (compile_object_load): Support
8722         mst_text_gnu_ifunc.
8723
8724 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
8725
8726         * compile/compile.c (compile_to_object): Make the cmd_string parameter
8727         const.  Use new variables for the const compatibility.
8728         (eval_compile_command): Make the cmd_string parameter const.
8729         * compile/compile.h (eval_compile_command): Make the cmd_string
8730         parameter const.
8731
8732 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
8733
8734         * defs.h (deprecated_init_ui_hook): Delete.  Remove associated
8735         comment.
8736         * top.c (deprecated_init_ui_hook): Delete.
8737         (gdb_init): Remove handling of deprecated_init_ui_hook.
8738         * interps.c (clear_interpreter_hooks): Remove handling of
8739         deprecated_init_ui_hook.
8740         * main.c (captured_main): Update comment.
8741
8742 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
8743
8744         * solib.c (_initialize_solib): Add "info dll" alias creation.
8745         * windows-nat.c (set_windows_aliases): Delete.
8746         (_initialize_windows_nat): Remove deprecated_init_ui_hook
8747         assignment.
8748         * NEWS: Add news entry about "info dll" now being available
8749         on all platforms.
8750
8751 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8752
8753         * ada-lang.c (value_assign_to_component): Reformat and improve
8754         documentation. Remove all trailing spaces.
8755
8756 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8757
8758         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8759         Stop counting inlined frames as soon as an out-of-line function
8760         is found.
8761
8762 2014-05-05  Pierre-Marie de Rodat  <derodat@adacore.com>
8763
8764         * dwarf2read.c (inherit_abstract_dies): Skip
8765         DW_TAG_GNU_call_site dies while inheriting children of an
8766         abstract DIE into a scope.
8767         (read_lexical_block_scope): Inherit abstract DIE's for
8768         lexical scopes.
8769
8770 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8771
8772         * ada-valprint.c (val_print_packed_array_elements): Delete
8773         variable "len".  Add a type-length check when comparing two
8774         consecutive elements of the array.  Use the element's actual
8775         length in call to value_contents_eq.
8776         * ada-lang.c (ada_value_primitive_packed_val): Always return
8777         a value whose type has been resolved.
8778
8779 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8780
8781         * ada-lang.c (ada_value_primitive_packed_val): Recompute
8782         BIT_SIZE and LEN if the size of the resolved type is smaller
8783         than BIT_SIZE * HOST_CHAR_BIT.
8784
8785 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8786
8787         * ada-lang.c (ada_value_primitive_packed_val): Use a more
8788         correct address in call to value_at.  Adjust call to
8789         value_address accordingly.
8790
8791 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8792
8793         * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8794         to print it.
8795
8796 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8797
8798         * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8799         * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8800         pinfo->valaddr.
8801         * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8802         * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8803         (resolve_dynamic_type_internal): Set pinfo.valaddr.
8804         Add handling of addr_stack->valaddr.
8805         (resolve_dynamic_type): Add "valaddr" parameter.
8806         Set pinfo.valaddr field.
8807         * ada-lang.c (ada_discrete_type_high_bound): Update call to
8808         resolve_dynamic_type.
8809         (ada_discrete_type_low_bound): Likewise.
8810         * findvar.c (default_read_var_value): Likewise.
8811         * value.c (value_from_contents_and_address): Likewise.
8812
8813 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8814
8815         * gdbtypes.c (resolve_dynamic_array): Use
8816         create_array_type_with_stride instead of create_array_type.
8817
8818 2015-04-30  DJ Delorie  <dj@redhat.com>
8819
8820         * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8821         rl78_decode_opcode
8822
8823 2015-04-29  Doug Evans  <dje@google.com>
8824
8825         PR python/18285
8826         * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8827         * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8828         EVAL_AVOID_SIDE_EFFECTS for xmethods.
8829         * extension-priv.h (struct extension_language_ops)
8830         <get_xmethod_result_type>: New member.
8831         * extension.c (get_xmethod_result_type): New function.
8832         * extension.h (get_xmethod_result_type): Declare.
8833         * python/py-xmethods.c (get_result_type_method_name): New static
8834         global.
8835         (py_get_result_type_method_name): Ditto.
8836         (gdbpy_get_xmethod_result_type): New function.
8837         (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8838         * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8839         * python/python.c (python_extension_ops): Add
8840         gdbpy_get_xmethod_result_type.
8841         * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8842         * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8843         xmethods.
8844         (value_x_unop): Ditto.
8845         * value.c (result_type_of_xmethod): New function.
8846         * value.h (result_type_of_xmethod): Declare.
8847
8848 2015-04-29  Gary Benson <gbenson@redhat.com>
8849
8850         * solib.c (solib_find_1): Allow fd argument to be NULL.
8851         (exec_file_find): Update comment.
8852         (solib_find): Likewise.
8853         * exec.c (exec_file_locate_attach): Use NULL as fd
8854         argument to exec_file_find to avoid having to close
8855         the opened file.
8856         * infrun.c (follow_exec): Likewise.
8857
8858 2015-04-28  Doug Evans  <dje@google.com>
8859
8860         PR python/18299
8861         * python/lib/gdb/printing.py (register_pretty_printer): Handle
8862         name or __name__ attributes.  Handle gdb module as first argument.
8863
8864 2015-04-28  Doug Evans  <dje@google.com>
8865
8866         PR python/18089
8867         * python/py-prettyprint.c (print_children): Verify result of children
8868         iterator.  Provide better error message.
8869         * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8870         * python/python.c (gdbpy_print_python_errors_p): New function.
8871
8872 2015-04-28  Doug Evans  <dje@google.com>
8873
8874         * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8875
8876 2015-04-28  Sasha Smundak  <asmundak@google.com>
8877
8878         * NEWS: Mention gdb.Type.optimized_out method.
8879         * python/py-type.c (typy_optimized_out):  New function.
8880
8881 2015-04-28  John Baldwin  <jhb@FreeBSD.org>
8882
8883         * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8884
8885 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8886
8887         * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8888         (initialize_utils): Move call of init_page_info() to ...
8889         * top.c (gdb_init): ... here.
8890
8891 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8892
8893         * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8894         (tui_sigwinch_handler): Still update our idea of
8895         the terminal's width and height even when TUI is not active.
8896
8897 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8898
8899         * utils.h (set_screen_width_and_height): Declare.
8900         * utils.c (set_screen_width_and_height): Define.
8901         * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8902
8903 2015-04-28  Gary Benson <gbenson@redhat.com>
8904
8905         * infrun.c (solist.h): New include.
8906         (follow_exec): Use exec_file_find to prefix execd_pathname
8907         with gdb_sysroot.
8908
8909 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8910
8911         * tui/tui-source.c (tui_set_source_content): Avoid calling
8912         strcpy() when offset is 0.
8913
8914 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8915
8916         PR gdb/18155
8917         * tui/tui-data.c (tui_free_window): Don't free the locator
8918         window when passed an SRC_WIN or a DISASSEM_WIN.
8919
8920 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8921
8922         * tui/tui-data.h (struct tui_win_element): Forward-declare.
8923         (tui_win_content): Move declaration.
8924         (struct tui_gen_win_info): Give 'content' field the
8925         type tui_win_content.
8926         * tui/tui-data.c (init_content_element): Remove redundant and
8927         erroneous casts.
8928         (tui_add_content_elements): Remove erroneous cast.
8929         * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8930         casts.
8931         (tui_get_begin_asm_address): Likewise.
8932         * tui/tui-regs.c (tui_show_registers): Likewise.
8933         (tui_show_register_group): Likewise.
8934         (tui_display_registers_from): Likewise.
8935         (tui_check_register_values): Likewise.
8936         * tui/tui-source.c (tui_set_source_content): Likewise.
8937         (tui_set_source_content_nil): Likewise.
8938         (tui_source_is_displayed): Likewise.
8939         * tui/tui-stack.c (tui_show_locator_content): Likewise.
8940         (tui_set_locator_fullname): Likewise.
8941         (tui_set_locator_info): Likewise.
8942         (tui_show_frame_info): Likewise.
8943         * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8944         (tui_show_source_line): Likewise.
8945         (tui_horizontal_source_scroll): Likewise.
8946         (tui_update_breakpoint_info): Likewise.
8947         (tui_set_exec_info_content): Likewise.
8948         (tui_show_exec_info_content): Likewise.
8949         (tui_alloc_source_buffer): Likewise.
8950         (tui_line_is_displayed): Likewise.
8951         (tui_addr_is_displayed): Likewise.
8952
8953 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8954
8955         * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8956         event if PL_FLAG_EXEC is set.
8957         [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8958         [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8959         (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8960         "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8961         Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8962
8963 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8964
8965         * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8966         [TDP_RFPPWAIT] New variable fbsd_pending_children.
8967         [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8968         [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8969         [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8970         [PT_LWPINFO] (fbsd_wait): New function.
8971         [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8972         [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8973         [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8974         [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8975         [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8976         [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8977         [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8978         [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8979         (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8980         "fbsd_wait".
8981         [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8982         Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8983         Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8984         Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8985         Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8986         Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8987         Set "to_post_attach" to "fbsd_post_attach".
8988
8989 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8990
8991         * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8992         (fbsd_find_memory_regions): Mark static.
8993         (fbsd_nat_add_target): New function.
8994         * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8995         fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8996         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8997         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8998         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8999         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
9000
9001 2015-04-27  Gary Benson <gbenson@redhat.com>
9002
9003         * objfiles.c (allocate_objfile): Do not attempt to expand name
9004         if name is a "target:" filename.
9005         * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
9006         to load auto-load scripts for objfiles with "target:" filenames.
9007
9008 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9009
9010         * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
9011         (enum s390_vector_abi_kind): New enum.
9012         (struct gdbarch_tdep)<vector_abi>: New field.
9013         (s390_effective_inner_type): Add parameter min_size.  Stop
9014         unwrapping if the inner type is smaller than min_size.
9015         (s390_function_arg_float): Adjust call to
9016         s390_effective_inner_type.
9017         (s390_function_arg_vector): New function.
9018         (s390_function_arg_integer): Adjust comment.
9019         (struct s390_arg_state)<vr>: New field.
9020         (s390_handle_arg): Add parameter 'is_unnamed'.  Pass vector
9021         arguments according to vector ABI when appropriate.
9022         (s390_push_dummy_call): Initialize the argument state's field
9023         'vr'.  Adjust calls to s390_handle_arg.
9024         (s390_register_return_value): Handle vector return values.
9025         (s390_return_value): Apply the "register" return value convention
9026         to a vector when appropriate.
9027         (s390_gdbarch_init): Initialize tdep->vector_abi.
9028         * NEWS: Announce S390 vector ABI support.
9029
9030 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9031
9032         * s390-linux-tdep.c (s390_return_value_convention): Remove
9033         function.  Inline its logic...
9034         (s390_return_value): ...here.  Instead, move the handling of the
9035         "register" return value convention...
9036         (s390_register_return_value): ...here.  New function.
9037
9038 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9039
9040         * s390-linux-tdep.c
9041         (is_float_singleton): Remove function.  Move the "singleton" part
9042         of the logic...
9043         (s390_effective_inner_type): ...here.  New function.
9044         (is_float_like): Remove function.  Inline its logic...
9045         (s390_function_arg_float): ...here.
9046         (is_pointer_like, is_integer_like, is_struct_like): Remove
9047         functions.  Inline their logic...
9048         (s390_function_arg_integer): ...here.
9049         (s390_function_arg_pass_by_reference): Remove function.
9050         (extend_simple_arg): Remove function.
9051         (alignment_of): Remove function.
9052         (struct s390_arg_state): New structure.
9053         (s390_handle_arg): New function.
9054         (s390_push_dummy_call): Move parameter placement logic to the new
9055         function s390_handle_arg.  Call it for calculating the stack area
9056         sizes first, and again for actually writing the parameters.
9057
9058 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9059
9060         * s390-linux-tdep.c (is_power_of_two): Add comment.  Return
9061           false if the argument is zero.
9062
9063 2015-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
9064
9065         * ada-lang.c (template_to_static_fixed_type): Return input type
9066         when it is already fixed.  Cache the input type itself when not
9067         creating a static fixed copy.  Make it explicit that we never
9068         molestate the input type.
9069         * gdbtypes.c (resolve_dynamic_struct): Reset the
9070         TYPE_TARGET_TYPE field for resolved copies.
9071
9072 2015-04-27  Joel Brobecker  <brobecker@adacore.com>
9073
9074         * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
9075         (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
9076         (template_to_static_fixed_type): Call ada_check_typedef only
9077         when necessary.
9078
9079 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
9080
9081         * cli/cli-dump.c (srec_dump_command): Add internationalization
9082         mark ups.
9083         (ihex_dump_command): Likewise.
9084         (tekhex_dump_command): Likewise.
9085         (binary_dump_command): Likewise.
9086         (binary_append_command): Likewise.
9087
9088 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
9089
9090         * cli/cli-dump.c (verilog_cmdlist): New variable.
9091         (dump_verilog_memory): New function.
9092         (dump_verilog_value): New function.
9093         (verilog_dump_command): New function.
9094         (_initialize_cli_dump): Add new commands to support verilog dump
9095         format.
9096         * NEWS: Add entry for "dump verilog".
9097
9098 2015-04-24  Pierre-Marie de Rodat  <derodat@adacore.com>
9099
9100         * gdbtypes.c (print_gnat_stuff): Do not recurse on the
9101         descriptive type when there is none.
9102
9103 2015-04-23  Patrick Palka  <patrick@parcs.ath.cx>
9104
9105         * tui/tui-win.c (tui_async_resize_screen): Call
9106         rl_resize_terminal().
9107
9108 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
9109
9110         * windows-nat.c (handle_output_debug_string): Don't change
9111         current_event.dwThreadId.
9112         (get_windows_debug_event): Use thread_id, rather than relying on
9113         current_event.dwThreadId being changed.
9114
9115 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
9116
9117         * windows-nat.c (windows_continue): Report an error if
9118         ContinueDebugEvent() fails.
9119
9120 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
9121
9122         * windows-nat.c (windows_resume): Fix misspelling in debug output.
9123
9124 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
9125
9126         * windows-nat.c (get_windows_debug_event): Replace retval with
9127         thread_id throughout.  Update stale comment.
9128
9129 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
9130
9131         * windows-nat.c (get_windows_debug_event): Don't use ternary
9132         conditional operator.
9133
9134 2015-04-21  Pierre Muller  <muller@sourceware.org>
9135
9136         PR pascal/17815
9137         p-exp.y (yylex): Reorganize code to return the matched pattern
9138         for a field of this.
9139
9140 2015-04-21  Gary Benson <gbenson@redhat.com>
9141
9142         * common/fileio.h (fileio_to_host_openflags): New declaration.
9143         * common/fileio.c (fcntl.h): New include.
9144         (fileio_to_host_openflags): New function, factored out from...
9145         * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
9146         Single use updated.
9147
9148 2015-04-21  Kevin Buettner  <kevinb@redhat.com>
9149
9150         * rl78-tdep.c (RL78_SP_ADDR): Define.
9151         (opc_reg_to_gdb_regnum): New static function.
9152         (rl78_analyze_prologue): Recognize instructions forming slightly
9153         more interesting prologues.
9154
9155 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
9156
9157         Revert:
9158         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9159         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9160         TYPE_CODE_REF types so that they are not considered as dynamic
9161         depending on the referenced type.
9162         (resolve_dynamic_type_internal): Likewise.
9163
9164 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
9165
9166         Revert:
9167         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9168         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9169         "top_level" parameter.
9170         (resolve_dynamic_type_internal): Remove the unused "top_level"
9171         parameter.  Update call to is_dynamic_type_internal.
9172         (is_dynamic_type): Update call to is_dynamic_type_internal.
9173         (resolve_dynamic_range): Update call to
9174         resolve_dynamic_type_internal.
9175         (resolve_dynamic_union): Likewise.
9176         (resolve_dynamic_struct): Likewise.
9177         (resolve_dynamic_type): Likewise.
9178
9179 2015-04-19  Gabriel Krisman Bertazi  <gabriel@krisman.be>
9180
9181         * breakpoint.c (update_dprintf_command_list): Remove duplicated
9182         xmalloc.
9183
9184 2015-04-20  Thomas Schwinge  <thomas@codesourcery.com>
9185
9186         * reply_mig_hack.awk: Robustify parsing.
9187
9188         * reply_mig_hack.awk: Don't bother to declare an intermediate
9189         function pointer variable.
9190
9191 2015-04-17  Doug Evans  <dje@google.com>
9192
9193         * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
9194         to "exec_displacement" to avoid confusion with inner use of the name.
9195
9196 2015-04-17  Pedro Alves  <palves@redhat.com>
9197
9198         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
9199         if HW point of TYPE isn't supported.
9200
9201 2015-04-17  Yao Qi  <yao.qi@linaro.org>
9202             Pedro Alves  <palves@redhat.com>
9203
9204         * target.h (target_can_use_hardware_watchpoint): Update comments.
9205         Remove trailing ";".
9206
9207 2015-04-17  Gary Benson <gbenson@redhat.com>
9208
9209         * remote.c (remote_add_inferior): New argument try_open_exec.
9210         If nonzero, attempt to open the inferior's executable file as
9211         the main executable if no main executable is open already.
9212         All callers updated.
9213         * NEWS: Mention that GDB now supports automatic location and
9214         retrieval of executable + files from remote targets.
9215
9216 2015-04-17  Gary Benson <gbenson@redhat.com>
9217
9218         * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
9219         * remote.c (PACKET_qXfer_exec_file): Likewise.
9220         (remote_protocol_features): Register the
9221         "qXfer:exec-file:read" feature.
9222         (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
9223         (remote_pid_to_exec_file): New function.
9224         (init_remote_ops): Initialize to_pid_to_exec_file.
9225         (_initialize_remote): Register new "set/show remote
9226         pid-to-exec-file-packet" command.
9227         * NEWS: Announce new qXfer:exec-file:read packet.
9228
9229 2015-04-17  Gary Benson <gbenson@redhat.com>
9230
9231         * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
9232         New declaration.
9233         * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
9234         New function, factored out from...
9235         * linux-nat.c (linux_child_pid_to_exec_file): ...here.
9236
9237 2015-04-17  Gary Benson <gbenson@redhat.com>
9238
9239         * exec.c (solist.h): New include.
9240         (exec_file_locate_attach): Prefix absolute executable
9241         paths with gdb_sysroot if set.
9242         * NEWS: Mention that executable paths may be prepended
9243         with sysroot.
9244
9245 2015-04-17  Gary Benson <gbenson@redhat.com>
9246
9247         * solist.h (exec_file_find): New declaration.
9248         * solib.c (solib_find_1): New function, factored out from...
9249         (solib_find): ...here.
9250         (exec_file_find): New function.
9251
9252 2015-04-17  Gary Benson <gbenson@redhat.com>
9253
9254         * gdbcore.h (exec_file_locate_attach): New declaration.
9255         * exec.c (exec_file_locate_attach): New function, factored
9256         out from...
9257         * infcmd.c (attach_command_post_wait): ...here.
9258
9259 2015-04-17  Mike Frysinger  <vapier@gentoo.org>
9260
9261         * MAINTAINERS: Add myself for Blackfin/write-after-approval.
9262
9263 2015-04-16  Yao Qi  <yao.qi@linaro.org>
9264
9265         * infrun.c (maybe_software_singlestep): Declare.
9266         (displaced_step_fixup): Call maybe_software_singlestep.
9267
9268 2015-04-15  Doug Evans  <dje@google.com>
9269
9270         * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
9271
9272 2015-04-15  Doug Evans  <dje@google.com>
9273
9274         * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
9275
9276 2015-04-15  Simon Marchi  <simon.marchi@ericsson.com>
9277
9278         * python/lib/gdb/command/unwinders.py: Add parentheses.
9279
9280 2015-04-15  Yao Qi  <yao.qi@linaro.org>
9281
9282         * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
9283
9284 2015-04-15  Yao Qi  <yao.qi@linaro.org>
9285
9286         * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
9287
9288 2015-04-15  Yao Qi  <yao.qi@linaro.org>
9289
9290         * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
9291         dsc->insn_size instead of 4.
9292
9293 2015-04-14  Gary Benson <gbenson@redhat.com>
9294
9295         * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
9296         * minidebug.c (lzma_stat): Likewise.
9297         * solib-spu.c (spu_bfd_iovec_stat): Likewise.
9298         * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
9299
9300 2015-04-13  Stan Shebs  <stanshebs@google.com>
9301
9302         * MAINTAINERS: Update my email address.
9303
9304 2015-04-13  John Baldwin  <jhb@FreeBSD.org>
9305
9306         * amd64-tdep.c (amd64_target_description): New function.
9307         * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
9308         * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
9309         (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9310         x86 extended save area.
9311         (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9312         * amd64bsd-nat.h: Export amd64bsd_xsave_len.
9313         * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
9314         (_initialize_amd64fbsd_nat): Set "to_read_description" to
9315         "amd64fbsd_read_description".
9316         * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
9317         (amd64fbsd_supply_xstateregset): New function.
9318         (amd64fbsd_collect_xstateregset): New function.
9319         Add "amd64fbsd_xstateregset".
9320         (amd64fbsd_iterate_over_regset_sections): New function.
9321         (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
9322         "I386_FBSD_XSAVE_XCR0_OFFSET".
9323         Add "iterate_over_regset_sections" gdbarch method.
9324         Add "core_read_description" gdbarch method.
9325         * i386-tdep.c (i386_target_description): New function.
9326         * i386-tdep.h: Export i386_target_description and tdesc_i386.
9327         * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
9328         (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9329         x86 extended save area.
9330         (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9331         * i386bsd-nat.h: Export i386bsd_xsave_len.
9332         * i386fbsd-nat.c (i386fbsd_read_description): New function.
9333         (_initialize_i386fbsd_nat): Set "to_read_description" to
9334         "i386fbsd_read_description".
9335         * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
9336         (i386fbsd_core_read_description): New function.
9337         (i386fbsd_supply_xstateregset): New function.
9338         (i386fbsd_collect_xstateregset): New function.
9339         Add "i386fbsd_xstateregset".
9340         (i386fbsd_iterate_over_regset_sections): New function.
9341         (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
9342         "I386_FBSD_XSAVE_XCR0_OFFSET".
9343         Add "iterate_over_regset_sections" gdbarch method.
9344         Add "core_read_description" gdbarch method.
9345         * i386fbsd-tdep.h: New file.
9346
9347 2015-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
9348
9349         * NEWS (Changes since GDB 7.9): Add removed -xdb.
9350         * breakpoint.c (command_line_is_silent): Remove xdb_commands
9351         conditional.
9352         (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
9353         and lb.
9354         * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
9355         va.
9356         * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
9357         conditional.
9358         * defs.h (xdb_commands): Remove declaration.
9359         * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
9360         * guile/scm-cmd.c (command_classes): Remove xdb from comment.
9361         * infcmd.c (run_no_args_command, go_command): Remove.
9362         (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
9363         * infrun.c (xdb_handle_command): Remove.
9364         (_initialize_infrun): Remove xdb_commands for lz and z.
9365         * main.c (xdb_commands): Remove variable.
9366         (captured_main): Remove "xdb" from long_options.
9367         (print_gdb_help): Remove --xdb from help.
9368         * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
9369         * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
9370         * stack.c (backtrace_full_command, args_plus_locals_info)
9371         (current_frame_command): Remove.
9372         (_initialize_stack): Remove xdb_commands for t, T and l.
9373         * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
9374         * thread.c (_initialize_thread): Remove xdb_commands condition.
9375         * tui/tui-layout.c (tui_toggle_layout_command)
9376         (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
9377         (_initialize_tui_layout): Remove xdb_commands for td and ts.
9378         * tui/tui-regs.c (tui_scroll_regs_forward_command)
9379         (tui_scroll_regs_backward_command): Remove.
9380         (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
9381         * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
9382         (_initialize_tui_win): Remove xdb_commands for U and w.
9383         * utils.c (pagination_on_command, pagination_off_command): Remove.
9384         (initialize_utils): Remove xdb_commands for am and sm.
9385
9386 2015-04-10  Pedro Alves  <palves@redhat.com>
9387
9388         * infrun.c (displaced_step_fixup): Switch to the event ptid
9389         earlier.  If the thread stopped for a watchpoint and the
9390         target/arch has non-continuable watchpoints, cancel the displaced
9391         step.
9392         (resume): Don't start a displaced step if in-line step-over info
9393         is valid.
9394
9395 2015-04-10  Pedro Alves  <palves@redhat.com>
9396
9397         * infrun.c (displaced_step_in_progress): New function.
9398         (do_target_resume): Advise target to report all signals if
9399         displaced stepping.
9400
9401 2015-04-10  Pedro Alves  <palves@redhat.com>
9402
9403         PR gdb/18216
9404         * infrun.c (process_event_stop_test): Don't assume a step-resume
9405         is set if tp->stepped_breakpoint is true.
9406
9407 2015-04-10  Yao Qi  <yao.qi@linaro.org>
9408
9409         * arm-tdep.c (install_alu_reg): Update comment.
9410         (thumb_copy_alu_reg): Remove local variable rn.  Update
9411         debugging message.  Use r2 instead of r1 in the modified
9412         instruction.
9413
9414 2015-04-10  Pedro Alves  <palves@redhat.com>
9415
9416         PR gdb/13858
9417         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
9418         linux_displaced_step_location as gdbarch_displaced_step_location
9419         hook.
9420         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
9421         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9422         * linux-tdep.c (linux_displaced_step_location): New function,
9423         based on ppc_linux_displaced_step_location.
9424         * linux-tdep.h (linux_displaced_step_location): New declaration.
9425         * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
9426         (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
9427         Delete.
9428         (ppc_linux_init_abi): Install linux_displaced_step_location as
9429         gdbarch_displaced_step_location hook, even without Cell/B.E..
9430         (_initialize_ppc_linux_tdep): Don't install
9431         ppc_linux_inferior_created as inferior_created observer.
9432         * s390-linux-tdep.c (s390_gdbarch_init): Install
9433         linux_displaced_step_location as gdbarch_displaced_step_location
9434         hook.
9435
9436 2015-04-09  Gary Benson <gbenson@redhat.com>
9437
9438         * common/common-remote-fileio.h: Rename to...
9439         * common/fileio.h: ...this.  Update all references.
9440         (remote_fileio_to_fio_error): Rename to...
9441         (host_to_fileio_error): ...this.
9442         (remote_fileio_to_be): Rename to...
9443         (host_to_bigendian): ...this.  Update all callers.
9444         (remote_fileio_to_fio_uint): Rename to...
9445         (host_to_fileio_uint): ...this.  Update all callers.
9446         (remote_fileio_to_fio_time): Rename to...
9447         (host_to_fileio_time): ...this.  Update all callers.
9448         (remote_fileio_to_fio_stat): Rename to...
9449         (host_to_fileio_stat): ...this.
9450         Update all references.
9451         * common/common-remote-fileio.c: Rename to...
9452         * common/fileio.c: ...this.  Update all references.
9453         (remote_fileio_to_fio_error): Rename to...
9454         (host_to_fileio_error): ...this.  Update all callers.
9455         (remote_fileio_mode_to_target): Rename to...
9456         (fileio_mode_pack): ...this.  Update all callers.
9457         (remote_fileio_to_fio_mode): Rename to...
9458         (host_to_fileio_mode): ...this.  Update all callers.
9459         (remote_fileio_to_fio_ulong): Rename to...
9460         (host_to_fileio_ulong): ...this.  Update all callers.
9461         (remote_fileio_to_fio_stat): Rename to...
9462         (host_to_fileio_stat): ...this.  Update all callers.
9463
9464 2015-04-09  Andy Wingo  <wingo@igalia.com>
9465
9466         * guile/scm-frame.c (gdbscm_frame_read_register): New function.
9467         (frame_functions): Bind gdbscm_frame_read_register to
9468         frame-read-register.
9469         * guile/lib/gdb.scm (frame-read-register): Export.
9470
9471 2015-04-09  Gary Benson <gbenson@redhat.com>
9472
9473         * common/common-remote-fileio.h (remote_fileio_to_fio_error):
9474         New declaration.
9475         * common/common-remote-fileio.c (remote_fileio_to_fio_error):
9476         New function, factored out the named functions below.
9477         * inf-child.c (gdb/fileio.h): Remove include.
9478         (common-remote-fileio.h): New include.
9479         (inf_child_errno_to_fileio_error): Remove function.  Update
9480         all callers to use remote_fileio_to_fio_error.
9481         * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
9482
9483 2015-04-09  Andy Wingo  <wingo@igalia.com>
9484
9485         * MAINTAINERS (Write After Approval): Add Andy Wingo.
9486
9487 2015-04-09  H.J. Lu  <hongjiu.lu@intel.com>
9488
9489         * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
9490         Replace $zlibdir with $ZLIBDIR in LDFLAGS.
9491         * configure: Regenerated.
9492
9493 2015-04-09  Pedro Alves  <palves@redhat.com>
9494
9495         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
9496         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
9497         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
9498         * gnulib/import/Makefile.am: Update.
9499         * gnulib/import/Makefile.in: Update.
9500         * gnulib/import/m4/gnulib-cache.m4: Update.
9501         * gnulib/import/m4/gnulib-comp.m4: Update.
9502         * gnulib/import/m4/strtok_r.m4: New file.
9503         * gnulib/import/strtok_r.c: New file.
9504
9505 2015-04-09  Pedro Alves  <palves@redhat.com>
9506
9507         * gnulib/update-gnulib.sh (aclocal version check): Filter out
9508         "called too early to check prototype".
9509
9510 2015-04-08  Sergio Durigan Junior  <sergiodj@redhat.com>
9511
9512         PR python/16699
9513         * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
9514         use a caching mechanism.  Adjust comments and code to reflect
9515         that.  Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
9516         (cmdpy_completer_handle_brkchars): Adjust call to
9517         cmdpy_completer_helper.  Call Py_XDECREF for 'resultobj'.
9518         (cmdpy_completer): Likewise.
9519
9520 2015-04-08  Yao Qi  <yao.qi@linaro.org>
9521
9522         * spu-tdep.c (spu_gdbarch_init): Don't call
9523         set_gdbarch_cannot_step_breakpoint.
9524
9525 2015-04-07  Sergio Durigan Junior  <sergiodj@redhat.com>
9526
9527         * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
9528
9529 2015-04-07  Pedro Alves  <palves@redhat.com>
9530
9531         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
9532         (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
9533         (delete_exited_threads): New declaration.
9534         * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
9535         * linux-nat.c (linux_nat_update_thread_list): New function.
9536         (linux_nat_add_target): Install it.
9537         * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
9538         * thread.c (prune_threads): Use ALL_THREADS_SAFE.
9539         (delete_exited_threads): New function.
9540
9541 2015-04-07  Pedro Alves  <pedro@codesourcery.com>
9542
9543         * infrun.c (resume) <displaced stepping debug output>: Get the
9544         leader thread's regcache, not resume_ptid's.
9545
9546 2015-04-06  Doug Evans  <xdje42@gmail.com>
9547
9548         * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
9549         VAR_DOMAIN.
9550         (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
9551         Include symbol domain in debugging output.
9552
9553 2015-04-06  Pedro Alves  <palves@redhat.com>
9554             Bernd Edlinger  <bernd.edlinger@hotmail.de>
9555
9556         * configure.ac: Remove the mingw32-specific stub-termcap.o
9557         fallback, and instead fallback to the stub termcap on all hosts.
9558         * configure: Regenerate.
9559         * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
9560         symbols.
9561
9562 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9563
9564         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9565         "top_level" parameter.
9566         (resolve_dynamic_type_internal): Remove the unused "top_level"
9567         parameter.  Update call to is_dynamic_type_internal.
9568         (is_dynamic_type): Update call to is_dynamic_type_internal.
9569         (resolve_dynamic_range): Update call to
9570         resolve_dynamic_type_internal.
9571         (resolve_dynamic_union): Likewise.
9572         (resolve_dynamic_struct): Likewise.
9573         (resolve_dynamic_type): Likewise.
9574
9575 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9576
9577         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9578         TYPE_CODE_REF types so that they are not considered as dynamic
9579         depending on the referenced type.
9580         (resolve_dynamic_type_internal): Likewise.
9581
9582 2015-04-02  H.J. Lu  <hongjiu.lu@intel.com>
9583
9584         * Makefile.in (top_srcdir): New.
9585         * configure: Regenerated.
9586
9587 2015-04-02  Gary Benson <gbenson@redhat.com>
9588
9589         * NEWS: Announce the new default sysroot of "target:".
9590
9591 2015-04-02  Gary Benson <gbenson@redhat.com>
9592
9593         * main.c (captured_main): Set gdb_sysroot to "target:"
9594         if not otherwise set.
9595
9596 2015-04-02  Gary Benson <gbenson@redhat.com>
9597
9598         * exec.c (exec_file_attach): Support "target:" filenames.
9599
9600 2015-04-02  Gary Benson <gbenson@redhat.com>
9601
9602         * solib.c (solib_find): Strip "target:" prefix from sysroot
9603         if accessing local files.
9604
9605 2015-04-02  Gary Benson <gbenson@redhat.com>
9606
9607         * symfile.c (symfile_bfd_open): Reorder to remove duplicated
9608         checks and error messages.
9609
9610 2015-04-02  Gary Benson <gbenson@redhat.com>
9611
9612         * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
9613         (remote_filename_p): Remove declaration.
9614         (remote_bfd_open): Likewise.
9615         * remote.c (remote_bfd_iovec_open): Remove function.
9616         (remote_bfd_iovec_close): Likewise.
9617         (remote_bfd_iovec_pread): Likewise.
9618         (remote_bfd_iovec_stat): Likewise.
9619         (remote_filename_p): Likewise.
9620         (remote_bfd_open): Likewise.
9621         * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
9622         * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
9623         (gdb_bfd_open_maybe_remote): Remove function.
9624         (symfile_bfd_open):  Replace remote filename check with
9625         target filename check.
9626         (reread_symbols): Use gdb_bfd_open.
9627         * build-id.c (gdbcore.h): New include.
9628         (build_id_to_debug_bfd): Use gdb_bfd_open.
9629         * infcmd.c (attach_command_post_wait): Remove remote filename
9630         check.
9631         * solib.c (solib_find): Replace remote-specific handling with
9632         target-specific handling.  Update comments where necessary.
9633         (solib_bfd_open): Replace remote-specific handling with
9634         target-specific handling.
9635         (gdb_sysroot_changed): New function.
9636         (_initialize_solib): Call the above when gdb_sysroot changes.
9637         * windows-tdep.c (gdbcore.h): New include.
9638         (windows_xfer_shared_library): Use gdb_bfd_open.
9639
9640 2015-04-02  Gary Benson <gbenson@redhat.com>
9641
9642         * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
9643         (is_target_filename): New declaration.
9644         (gdb_bfd_has_target_filename): Likewise.
9645         (gdb_bfd_open): Update documentation comment.
9646         * gdb_bfd.c (target.h): New include.
9647         (gdb/fileio.h): Likewise.
9648         (is_target_filename): New function.
9649         (gdb_bfd_has_target_filename): Likewise.
9650         (fileio_errno_to_host): Likewise.
9651         (gdb_bfd_iovec_fileio_open): Likewise.
9652         (gdb_bfd_iovec_fileio_pread): Likewise.
9653         (gdb_bfd_iovec_fileio_close): Likewise.
9654         (gdb_bfd_iovec_fileio_fstat): Likewise.
9655         (gdb_bfd_open): Use target fileio to access paths prefixed
9656         with "target:" where necessary.
9657
9658 2015-04-02  Gary Benson <gbenson@redhat.com>
9659
9660         * target.h (struct target_ops) <to_filesystem_is_local>:
9661         New field.
9662         (target_filesystem_is_local): New macro.
9663         * target-delegates.c: Regenerate.
9664         * remote.c (remote_filesystem_is_local): New function.
9665         (init_remote_ops): Initialize to_filesystem_is_local.
9666
9667 2015-04-02  Gary Benson <gbenson@redhat.com>
9668
9669         * target.h (struct target_ops) <to_fileio_fstat>: New field.
9670         (target_fileio_fstat): New declaration.
9671         * target.c (target_fileio_fstat): New function.
9672         * inf-child.c (inf_child_fileio_fstat): Likewise.
9673         (inf_child_target): Initialize to_fileio_fstat.
9674         * remote.c (init_remote_ops): Likewise.
9675
9676 2015-04-01  Sasha Smundak  <asmundak@google.com>
9677
9678         * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
9679         (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
9680         (py-unwind.o): New recipe.
9681         * NEWS: mention Python frame unwinding.
9682         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
9683         gdb/unwinder.py and gdb/command/unwinder.py
9684         * python/lib/gdb/__init__.py (packages): Add frame_unwinders
9685         list.
9686         (execute_unwinders): New function.
9687         * python/lib/gdb/command/unwinders.py: New file.
9688         * python/lib/gdb/unwinder.py: New file.
9689         * python/py-objfile.c (objfile_object): Add frame_unwinders field.
9690         (objfpy_dealloc): Decrement frame_unwinders reference count.
9691         (objfpy_initialize): Create frame_unwinders list.
9692         (objfpy_get_frame_unwinders): New function.
9693         (objfpy_set_frame_unwinders): Ditto.
9694         (objfile_getset): Add frame_unwinders attribute to Objfile.
9695         * python/py-progspace.c (pspace_object): Add frame_unwinders field.
9696         (pspy_dealloc): Decrement frame_unwinders reference count.
9697         (pspy_initialize): Create frame_unwinders list.
9698         (pspy_get_frame_unwinders): New function.
9699         (pspy_set_frame_unwinders): Ditto.
9700         (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
9701         * python/py-unwind.c: New file.
9702         * python/python-internal.h (pspy_get_name_unwinders): New prototype.
9703         (objpy_get_frame_unwinders): New prototype.
9704         (gdbpy_initialize_unwind): New prototype.
9705         * python/python.c (gdbpy_apply_type_printers): Call
9706         gdbpy_initialize_unwind.
9707
9708 2015-04-01  Pedro Alves  <palves@redhat.com>
9709
9710         * infrun.c (resume): Check currently_stepping after clearing
9711         stepped_breakpoint, not before.
9712
9713 2015-04-01  Pedro Alves  <palves@redhat.com>
9714
9715         * infrun.c (print_target_wait_results): Print all the ptid
9716         elements.
9717
9718 2015-04-01  Pedro Alves  <palves@redhat.com>
9719
9720         * infrun.c (keep_going): Also discard cleanups if inserting
9721         breakpoints fails.
9722
9723 2015-04-01  Pedro Alves  <palves@redhat.com>
9724
9725         * infrun.c (wait_for_inferior): Install the
9726         finish_thread_state_cleanup cleanup across the whole function, not
9727         just around handle_inferior_event.
9728
9729 2015-04-01  Pedro Alves  <palves@redhat.com>
9730
9731         * infrun.c (resume) <step past permanent breakpoint>: Use
9732         do_target_resume.
9733
9734 2015-04-01  Pedro Alves  <palves@redhat.com>
9735
9736         * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9737
9738 2015-04-01  Pierre-Marie de Rodat  <derodat@adacore.com>
9739
9740         * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9741
9742 2015-04-01  Pedro Alves  <palves@redhat.com>
9743
9744         * linux-thread-db.c (record_thread): Readd the thread to gdb's
9745         list if it was marked exited.
9746
9747 2015-04-01  H.J. Lu  <hongjiu.lu@intel.com>
9748
9749         * configure: Regenerated.
9750
9751 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
9752             Jan Kratochvil  <jan.kratochvil@redhat.com>
9753             Oleg Nesterov  <oleg@redhat.com>
9754
9755         PR corefiles/16092
9756         * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9757         New enum identifying the various options of the coredump_filter
9758         file.
9759         (struct smaps_vmflags): New struct.
9760         (use_coredump_filter): New variable.
9761         (decode_vmflags): New function.
9762         (mapping_is_anonymous_p): Likewise.
9763         (dump_mapping_p): Likewise.
9764         (linux_find_memory_regions_full): New variables
9765         'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9766         Removed variable 'modified'.  Read /proc/<PID>/smaps file; improve
9767         parsing of its information.  Implement memory mapping filtering
9768         based on its contents.
9769         (show_use_coredump_filter): New function.
9770         (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9771         * NEWS: Mention the possibility of using the
9772         '/proc/PID/coredump_filter' file when generating a corefile.
9773         Mention new command 'set use-coredump-filter'.
9774
9775 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
9776
9777         * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9778         read_memory_unsigned_integer.
9779
9780 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
9781
9782         * Makefile.in (ZLIB): New.
9783         (ZLIBINC): Likewise.
9784         (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9785         (CLIBS): Add $(ZLIB).
9786         * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9787         Add -lz to LIBS.
9788         * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9789         * top.c (print_gdb_configuration): Remove --with-zlib and
9790         --without-zlib.
9791         * config.in: Regenerated.
9792         * configure: Likewise.
9793
9794 2015-03-31  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9795
9796         * NEWS: Mention info os cpus support.
9797         * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9798         (struct osdata_type): Add cpus entry, reorder the entries in
9799         alphabetical order.
9800
9801 2015-03-31  Matthias Klose  <doko@ubuntu.com>
9802
9803         * compile/compile.c (compile_to_object): Allow triplets with or
9804         without vendor set.
9805
9806 2015-03-30  Doug Evans  <dje@google.com>
9807
9808         PR c++/18141
9809         * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9810         klass in VAR_DOMAIN.
9811
9812 2015-03-30  Gary Benson <gbenson@redhat.com>
9813
9814         * remote.c (remote_mourn_1): Remove function.  Update all callers
9815         to use remote_mourn.
9816         (extended_remote_mourn_1): Remove function.  Update all callers
9817         to use extended_remote_mourn.
9818         (extended_remote_attach_1): Remove function.  Update all callers
9819         to use extended_remote_attach.
9820
9821 2015-03-28  James Bowman  <james.bowman@ftdichip.com>
9822
9823         * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9824         (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9825         (ALLDEPFILES): Add ft32-tdep.c.
9826         * configure.tgt: Add FT32 entry.
9827         * ft32-tdep.c: New file, FT32 target-dependent code.
9828         * ft32-tdep.h: New file, FT32 target-dependent code.
9829
9830 2015-03-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
9831
9832         Revert:
9833         2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9834         Code cleanup.
9835         * printcmd.c (print_command_1): Move expr variable scope.
9836
9837 2015-03-27  Joel Brobecker  <brobecker@adacore.com>
9838
9839         * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9840
9841 2015-03-27  Andrzej Kaczmarek  <andrzej.kaczmarek@tieto.com>
9842
9843         * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9844         sections.
9845
9846 2015-03-26  Joel Brobecker  <brobecker@adacore.com>
9847
9848         * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9849         exception raised while parsing the probe arguments.
9850         Force parsing to be done using the C language parser.
9851         * expression.h (parse_expression_with_language): Declare.
9852         * parse.c (parse_expression_with_language): New function.
9853
9854 2015-03-26  Jon Turney  <jon.turney@dronecode.org.uk>
9855
9856         * MAINTAINERS (Write After Approval): Add "Jon Turney".
9857
9858 2015-03-26  Andy Wingo  <wingo@igalia.com>
9859
9860         PR symtab/18148
9861         * dwarf2read.c (struct partial_die_info): Add has_const_value
9862         member.
9863         (add_partial_symbol): Don't punt on symbols that have const_value
9864         attributes.
9865         (read_partial_die): Detect DW_AT_const_value.
9866
9867 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9868
9869         Code cleanup.
9870         * printcmd.c (print_command_1): Move expr variable scope.
9871
9872 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9873
9874         Code cleanup.
9875         * printcmd.c (validate_format): Make the parameter cmdname const.
9876
9877 2015-03-26  Don Breazeal  <donb@codesourcery.com>
9878
9879         * remote.c (_initialize_remote): Update comment.
9880
9881 2015-03-26  Pedro Alves  <palves@redhat.com>
9882             Jon TURNEY  <jon.turney@dronecode.org.uk>
9883
9884         * coffread.c (coff_symfile_read): When constructing the name of an
9885         import stub symbol from import symbol for amd64, only skip the
9886         char after _imp_ if the target is underscored (like i386) and the
9887         char is indeed the target's leading char.
9888
9889 2015-03-25  Pedro Alves  <palves@redhat.com>
9890
9891         * target.h <to_async>: Replace 'callback' and 'context' parameters
9892         with boolean 'enable' parameter.
9893         (target_async): Replace CALLBACK and CONTEXT parameters with
9894         boolean ENABLE parameter.
9895         * inf-loop.c (inferior_event_handler): Adjust.
9896         * linux-nat.c (linux_nat_attach, linux_nat_resume)
9897         (linux_nat_resume): Adjust.
9898         (async_client_callback, async_client_context): Delete.
9899         (handle_target_event): Call inferior_event_handler directly.
9900         (linux_nat_async): Replace 'callback' and 'context' parameters
9901         with boolean 'enable' parameter.  Adjust.  Remove references to
9902         async_client_callback and async_client_context.
9903         (linux_nat_close): Adjust.
9904         * record-btrace.c (record_btrace_async): Replace 'callback' and
9905         'context' parameters with boolean 'enable' parameter.  Adjust.
9906         (record_btrace_resume): Adjust.
9907         * record-full.c (record_full_async): Replace 'callback' and
9908         'context' parameters with boolean 'enable' parameter.  Adjust.
9909         (record_full_resume, record_full_core_resume): Adjust.
9910         * remote.c (struct remote_state) <async_client_callback,
9911         async_client_context>: Delete fields.
9912         (remote_start_remote, extended_remote_attach_1, remote_resume)
9913         (extended_remote_create_inferior): Adjust.
9914         (remote_async_serial_handler): Call inferior_event_handler
9915         directly.
9916         (remote_async): Replace 'callback' and 'context' parameters with
9917         boolean 'enable' parameter.  Adjust.
9918         * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9919         Adjust.
9920         * target-delegates.c: Regenerate.
9921
9922 2015-03-25  Gary Benson <gbenson@redhat.com>
9923             Pedro Alves  <palves@redhat.com>
9924
9925         * target.c (fileio_ft_t): New typedef, define object vector.
9926         (fileio_fhandles): New static variable.
9927         (is_closed_fileio_fh): New macro.
9928         (lowest_closed_fd): New static variable.
9929         (acquire_fileio_fd): New function.
9930         (release_fileio_fd): Likewise.
9931         (fileio_fd_to_fh): New macro.
9932         (target_fileio_open): Wrap the file descriptor on success.
9933         (target_fileio_pwrite): Updated to use wrapped file descriptor.
9934         (target_fileio_pread): Likewise.
9935         (target_fileio_close): Likewise.
9936
9937 2015-03-24  Pedro Alves  <palves@redhat.com>
9938
9939         * thread.c (thread_apply_all_command): Take exited threads into
9940         account.
9941
9942 2015-03-24  Pedro Alves  <palves@redhat.com>
9943
9944         * infrun.c (resume, proceed): Mention
9945         switch_back_to_stepped_thread, not switch_back_to_stepping.
9946
9947 2015-03-24  Pedro Alves  <palves@redhat.com>
9948
9949         * infrun.c (user_visible_resume_ptid): Rewrite going from
9950         most-locked to unlocked instead of the opposite.  Move comment ...
9951         * infrun.h (user_visible_resume_ptid): ... here.
9952
9953 2015-03-24  Pedro Alves  <palves@redhat.com>
9954
9955         * linux-nat.c (linux_nat_resume): Output debug logs before trying
9956         to resume the event lwp.  Use the lwp's ptid instead of the passed
9957         in (maybe wildcard) ptid.
9958         (stop_wait_callback): Tweak debug log output.
9959         (check_stopped_by_breakpoint): Tweak debug log output.  Also dump
9960         TRAP_TRACE.
9961         (linux_nat_filter_event): In debug output, distinguish a
9962         resume_stop SIGSTOP from a delayed SIGSTOP.  Output debug logs
9963         before trying to resume the lwp.
9964
9965 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
9966
9967         * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9968         pointer indirection.
9969         * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9970         (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9971
9972 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
9973
9974         * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9975         Renames DYN_ATTR_DATA_LOCATION.
9976         (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9977         DYN_ATTR_DATA_LOCATION.
9978         * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9979         instead of DYN_ATTR_DATA_LOCATION.
9980
9981 2015-03-24  Pedro Alves  <palves@redhat.com>
9982
9983         * breakpoint.c (until_break_command): Adjust call to proceed.
9984         * gdbthread.h (struct thread_control_state) <stepping_command>:
9985         New field.
9986         * infcall.c (run_inferior_call): Adjust call to proceed.
9987         * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9988         Adjust calls to proceed.
9989         (set_step_frame): Set the current thread's step_start_function
9990         here.
9991         (step_once): Adjust calls to proceed.
9992         (jump_command, signal_command, until_next_command)
9993         (finish_backward, finish_forward, proceed_after_attach_callback)
9994         (attach_command_post_wait): Adjust calls to proceed.
9995         * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9996         (do_target_resume): New function, factored out from ...
9997         (resume): ... here.  Remove 'step' parameter.  Instead, check
9998         currently_stepping to determine whether the thread should be
9999         single-stepped.
10000         (proceed): Remove 'step' parameter and don't set the thread's
10001         step_start_function here.  Adjust call to 'resume'.
10002         (handle_inferior_event): Adjust calls to 'resume'.
10003         (switch_back_to_stepped_thread): Use do_target_resume instead of
10004         'resume'.
10005         (keep_going): Adjust calls to 'resume'.
10006         * infrun.h (proceed): Remove 'step' parameter.
10007         (resume): Likewise.
10008         * windows-nat.c (do_initial_windows_stuff): Adjust call to
10009         'resume'.
10010         * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
10011
10012 2015-03-24  Pedro Alves  <palves@redhat.com>
10013
10014         * gdbthread.h (struct thread_control_state) <stepping_command>:
10015         New field.
10016         * infcmd.c (step_once): Pass step=1 to clear_proceed_status.  Set
10017         the thread's stepping_command field.
10018         * infrun.c (resume): Check the thread's stepping_command flag to
10019         determine which threads should be resumed.  Rename 'entry_step'
10020         local to user_step.
10021         (clear_proceed_status_thread): Clear 'stepping_command'.
10022         (schedlock_applies): Change parameter type to struct thread_info
10023         pointer.  Adjust.
10024         (find_thread_needs_step_over): Remove 'step' parameter.  Adjust.
10025         (switch_back_to_stepped_thread): Adjust calls to
10026         'schedlock_applies'.
10027         (_initialize_infrun): Adjust "set scheduler-locking step" help.
10028
10029 2015-03-24  Pedro Alves  <palves@redhat.com>
10030
10031         * infrun.c (step_start_function): Delete and ...
10032         * gdbthread.h (struct thread_control_state) <step_start_function>:
10033         ... now a field here.
10034         * infrun.c (clear_proceed_status_thread): Clear the thread's
10035         step_start_function.
10036         (proceed, process_event_stop_test, print_stop_event): Adjust.
10037
10038 2015-03-24  Pedro Alves  <palves@redhat.com>
10039
10040         * infrun.c (proceed): No longer handle negative step.
10041
10042 2015-03-24  Gary Benson  <gbenson@redhat.com>
10043
10044         * nat/x86-linux.h (x86_linux_new_thread): New declaration.
10045         (x86_linux_prepare_to_resume): Likewise.
10046         * x86-linux-nat.c (x86_linux_new_thread):
10047         Moved to nat/x86-linux.c.
10048         (x86_linux_prepare_to_resume): Likewise.
10049         * nat/x86-linux.c (x86_linux_new_thread): New function.
10050         (x86_linux_prepare_to_resume): Likewise.
10051
10052 2015-03-24  Gary Benson  <gbenson@redhat.com>
10053
10054         * nat/x86-linux-dregs.h: New file.
10055         * nat/x86-linux-dregs.c: Likewise.
10056         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
10057         (x86-linux-dregs.o): New rule.
10058         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
10059         * config/i386/linux64.mh (NATDEPFILES): Likewise.
10060         * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
10061         (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10062         (x86_linux_dr_get): Likewise.
10063         (x86_linux_dr_set): Likewise.
10064         (x86_linux_dr_get_addr): Likewise.
10065         (x86_linux_dr_get_control): Likewise.
10066         (x86_linux_dr_get_status): Likewise.
10067         (update_debug_registers_callback): Likewise.
10068         (x86_linux_dr_set_control): Likewise.
10069         (x86_linux_dr_set_addr): Likewise.
10070         (x86_linux_update_debug_registers): Likewise.
10071
10072 2015-03-24  Gary Benson  <gbenson@redhat.com>
10073
10074         * x86-linux-nat.c (x86_linux_update_debug_registers):
10075         New function, factored out from...
10076         (x86_linux_prepare_to_resume): ...this.
10077
10078 2015-03-24  Gary Benson  <gbenson@redhat.com>
10079
10080         * x86-linux-nat.c (x86_linux_dr_get): Update comments.
10081         (x86_linux_dr_set): Likewise.
10082         (x86_linux_dr_get_addr): Likewise.
10083         (x86_linux_dr_get_control): Likewise.
10084         (x86_linux_dr_get_status): Likewise.
10085         (update_debug_registers_callback): Likewise.
10086         (x86_linux_dr_set_control): Likewise.
10087         (x86_linux_dr_set_addr): Likewise.
10088         (x86_linux_prepare_to_resume): Likewise.
10089         (x86_linux_new_thread): Likewise.
10090
10091 2015-03-24  Gary Benson  <gbenson@redhat.com>
10092
10093         * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
10094         (x86_linux_new_thread): Rename argument.
10095
10096 2015-03-24  Gary Benson  <gbenson@redhat.com>
10097
10098         * nat/x86-linux.h: New file.
10099         * nat/x86-linux.c: Likewise.
10100         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
10101         (x86-linux.o): New rule.
10102         * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
10103         * config/i386/linux64.mh (NATDEPFILES): Likewise.
10104         * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
10105         (lwp_set_arch_private_info): New declaration.
10106         (lwp_arch_private_info): Likewise.
10107         * linux-nat.c (lwp_set_arch_private_info): New function.
10108         (lwp_arch_private_info): Likewise.
10109         * x86-linux-nat.c: Include nat/x86-linux.h.
10110         (arch_lwp_info): Removed structure.
10111         (update_debug_registers_callback):
10112         Use lwp_set_debug_registers_changed.
10113         (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10114         and lwp_set_debug_registers_changed.
10115         (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10116
10117 2015-03-24  Gary Benson  <gbenson@redhat.com>
10118
10119         * nat/linux-nat.h (ptid_of_lwp): New declaration.
10120         (lwp_is_stopped): Likewise.
10121         (lwp_stop_reason): Likewise.
10122         * linux-nat.c (ptid_of_lwp): New function.
10123         (lwp_is_stopped): Likewise.
10124         (lwp_is_stopped_by_watchpoint): Likewise.
10125         * x86-linux-nat.c (update_debug_registers_callback):
10126         Use lwp_is_stopped.
10127         (x86_linux_prepare_to_resume): Use ptid_of_lwp and
10128         lwp_stop_reason.
10129
10130 2015-03-24  Gary Benson  <gbenson@redhat.com>
10131
10132         * linux-nat.h (linux_stop_lwp): Move declaration to...
10133         * nat/linux-nat.h (linux_stop_lwp): New declaration.
10134
10135 2015-03-24  Gary Benson  <gbenson@redhat.com>
10136
10137         * linux-nat.h: Include nat/linux-nat.h.
10138         (iterate_over_lwps): Move declaration to nat/linux-nat.h.
10139         * nat/linux-nat.h (struct lwp_info): New forward declaration.
10140         (iterate_over_lwps_ftype): New typedef.
10141         (iterate_over_lwps): New declaration.
10142         * linux-nat.h (iterate_over_lwps): Update comment.  Use
10143         iterate_over_lwps_ftype.  Update callback return value check.
10144
10145 2015-03-24  Gary Benson  <gbenson@redhat.com>
10146
10147         * x86-nat.h (x86_debug_reg_state): Move declaration to...
10148         * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
10149
10150 2015-03-24  Gary Benson  <gbenson@redhat.com>
10151
10152         * nat/linux-nat.h (current_lwp_ptid): New declaration.
10153         * linux-nat.c (current_lwp_ptid): New function.
10154         * x86-linux-nat.c: Include nat/linux-nat.h.
10155         (x86_linux_dr_get_addr): Use current_lwp_ptid.
10156         (x86_linux_dr_get_control): Likewise.
10157         (x86_linux_dr_get_status): Likewise.
10158         (x86_linux_dr_set_control): Likewise.
10159         (x86_linux_dr_set_addr): Likewise.
10160
10161 2015-03-24  Antoine Tremblay  <antoine.tremblay@ericsson.com>
10162
10163         PR breakpoints/16466
10164         * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
10165
10166 2015-03-23  Joel Brobecker  <brobecker@adacore.com>
10167
10168         * ser-mingw.c (ser_windows_setparity): Fix indentation.
10169         * ser-unix.c (hardwire_setparity): Likewise.
10170
10171 2015-03-23  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
10172
10173         * NEWS: Mention set/show serial parity command.
10174         * monitor.c (monitor_open): Call serial_setparity.
10175         * remote.c (remote_open_1): Likewise.
10176         * ser-base.c (ser_base_serparity): New function.
10177         * ser-base.h (ser_base_setparity): Add  declaration.
10178         * ser-go32.c (dos_ops): Set "setparity" field.
10179         * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
10180         state.Parity.
10181         (ser_windows_setparity): New function.
10182         (hardwire_ops): Add ser_windows_setparity.
10183         (tty_ops): Add NULL for setparity field.
10184         (pipe_ops): Add ser_base_setparity.
10185         (tcp_ops): Likewise.
10186         * ser-pipe.c (pipe_ops): Likewise.
10187         * ser-tcp.c (tcp_ops): Likewise.
10188         * ser-unix.c (hardwire_setparity): Add declaration.
10189         (hardwire_raw): Don't reset PARENB flag.
10190         (hardwire_setparity): New function.
10191         (hardwire_ops): Add hardwire_setparity.
10192         * serial.c (serial_setparity): New function.
10193         (serial_parity): New global.
10194         (parity_none, parity_odd, parity_even, parity_enums, parity):
10195         New static globals.
10196         (set_parity): New function.
10197         (_initialize_serial): Add set/show serial parity commands.
10198         * serial.h (GDBPARITY_NONE): Define.
10199         (GDBPARITY_ODD): Define.
10200         (GDBPARITY_EVEN): Define.
10201         (serial_setparity) Add declaration.
10202         (struct serial_ops): Add setparity field.
10203         * target.h (serial_parity): Add declaration.
10204
10205 2015-03-23  Keith Seitz  <keiths@redhat.com>
10206
10207         * linespec.c (linespec_lexer_lex_keyword): Update comment.
10208
10209 2015-03-23  Keith Seitz  <keiths@redhat.com>
10210
10211         * breakpoint.c (parse_breakpoint_sals): Use
10212         linespec_lexer_lex_keyword to ascertain if the user specified
10213         a NULL location.
10214         * linespec.c [IF_KEYWORD_INDEX]: Define.
10215         (linespec_lexer_lex_keyword): Export.
10216         (struct ls_parser) <keyword_ok>: Remove.
10217         A keyword is only a keyword if not followed by another keyword.
10218         (linespec_lexer_lex_one): Remove keyword_ok handling.
10219         Add comment explaining why the parsing stream is not advanced
10220         when a keyword is seen.
10221         (parse_linespec): Remove parser->keyword_ok.
10222         * linespec.h (linespec_lexer_lex_keyword): Add declaration.
10223
10224 2015-03-23  Keith Seitz  <keiths@redhat.com>
10225
10226         PR gdb/18021
10227         * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
10228         if we find a static method with DW_AT_vtable_elem_location.
10229
10230 2015-03-21  Eli Zaretskii  <eliz@gnu.org>
10231
10232         * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
10233         before the second loop, to avoid undefined behavior.  Reported by
10234         Anton Blanchard <anton@samba.org>.
10235
10236 2015-03-20  Keven Boell  <keven.boell@intel.com>
10237
10238         * gdbtypes.c (resolve_dynamic_type_internal): Adapt
10239         data_location usage to linked list.
10240         (resolve_dynamic_type_internal): Adapt data_location to
10241         linked list.
10242         (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
10243         (copy_type_recursive, copy_type): Add copy of linked list.
10244         * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
10245         (struct dynamic_prop_list): New struct.
10246         * dwarf2read.c (set_die_type): Set data_location data.
10247
10248 2015-03-20  Pedro Alves  <palves@redhat.com>
10249
10250         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
10251         inner block and make it const.
10252         * machoread.c (get_archive_prefix_len): Make "lparen" const.
10253
10254 2015-03-20  Pedro Alves  <palves@redhat.com>
10255
10256         * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
10257         * breakpoint.h (set_breakpoint_condition): Update declaration.
10258
10259 2015-03-20  Pedro Alves  <palves@redhat.com>
10260
10261         * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
10262
10263 2015-03-20  Pedro Alves  <palves@redhat.com>
10264
10265         * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
10266
10267 2015-03-20  Pedro Alves  <palves@redhat.com>
10268
10269         * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
10270
10271 2015-03-20  Pedro Alves  <palves@redhat.com>
10272
10273         * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
10274         (nto_init_solib_absolute_prefix): Likewise.
10275
10276 2015-03-20  Pedro Alves  <palves@redhat.com>
10277
10278         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
10279         * spu-tdep.c (spu_gdbarch_init): Make "name" const.
10280
10281 2015-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
10282
10283         * config/djgpp/README: Remove gdb.hp.
10284
10285 2015-03-20  Yao Qi  <yao.qi@linaro.org>
10286
10287         * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
10288         set_gdbarch_cannot_step_breakpoint.
10289
10290 2015-03-19  Pedro Alves  <palves@redhat.com>
10291
10292         * linux-nat.c (linux_resume_one_lwp): Rename to ...
10293         (linux_resume_one_lwp_throw): ... this.  Don't handle ESRCH here,
10294         instead call perror_with_name.
10295         (check_ptrace_stopped_lwp_gone): New function.
10296         (linux_resume_one_lwp): Reimplement as wrapper around
10297         linux_resume_one_lwp_throw that swallows errors if the LWP is
10298         gone.
10299         (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
10300         swallows errors if the LWP is gone.  Use
10301         linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
10302
10303 2015-03-19  Pedro Alves  <palves@redhat.com>
10304
10305         * linux-nat.c (status_callback): Return early if the LWP has no
10306         status pending.
10307
10308 2015-03-19  Pedro Alves  <palves@redhat.com>
10309
10310         * linux-nat.c (select_event_lwp_callback): Update comment to no
10311         longer mention SIGTRAP.
10312
10313 2015-03-18  Tristan Gingold  <gingold@adacore.com>
10314
10315         * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
10316         redirection code to ...
10317         (amd64_windows_frame_decode_insns): ... Here.  Fix in prologue
10318         checks.  Fix SAVE_NONVOL operations.  Add debug code and comments.
10319
10320 2015-03-18  Gary Benson <gbenson@redhat.com>
10321
10322         (remote_protocol_features): Remove the "vFile:fstat" feature.
10323         (remote_hostio_fstat): Probe for "vFile:fstat" support.
10324
10325 2015-03-11  Yao Qi  <yao.qi@linaro.org>
10326
10327         PR tdep/18107
10328         * aarch64-linux-tdep.c: Include xml-syscall.h
10329         (aarch64_linux_get_syscall_number): New function.
10330         (aarch64_linux_init_abi): Call
10331         set_gdbarch_get_syscall_number.
10332         * syscalls/aarch64-linux.xml: New file.
10333
10334 2015-03-17  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
10335
10336         * ser-base.h (ser_base_setstopbits): Change second argument name
10337         from "rate" to "num".
10338
10339 2015-03-17  Gary Benson <gbenson@redhat.com>
10340             Luke Allardyce <lukeallardyce@gmail.com>
10341
10342         PR gdb/18131
10343         * common/common-remote-fileio.h (sys/stat.h): New include.
10344         (stuct stat): Remove forward declaration.
10345
10346 2015-03-16  John Baldwin  <jhb@FreeBSD.org>
10347
10348         * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
10349         before writing core register notes.
10350
10351 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
10352             Pedro Alves  <palves@redhat.com>
10353
10354         * gdb_curses.h (tgetnum): Mark with EXTERN_C.
10355         * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
10356         (tgoto): Wrap with extern "C".
10357
10358 2015-03-16  Pedro Alves  <palves@redhat.com>
10359             Yuanhui Zhang  <asmwarrior@gmail.com>
10360
10361         * stub-termcap.c (tputs): Change prototype.
10362
10363 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
10364             Pedro Alves  <palves@redhat.com>
10365
10366         * windows-nat.c (struct thread_info_struct): Rename to ...
10367         (struct windows_thread_info_struct): ... this.
10368         (thread_info): Rename to ...
10369         (windows_thread_info): ... this.
10370         All users updated.
10371
10372 2015-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10373             Pedro Alves  <palves@redhat.com>
10374
10375         * NEWS: New Removed targets and native configurations.
10376
10377 2015-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
10378
10379         Remove HPUX.
10380         * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
10381         (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
10382         (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
10383         ia64-hpux-tdep.h, solib-ia64-hpux.h.
10384         (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
10385         ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
10386         * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
10387         hppa-hpux-tdep.c.
10388         * config/ia64/hpux.mh: Remove file.
10389         * config/pa/hpux.mh: Remove file.
10390         * configure: Rebuilt.
10391         * configure.ac (dlgetmodinfo, somread.o): Remove.
10392         * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10393         (ia64-*-hpux*): Remove its float format exception.
10394         * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10395         * hppa-hpux-nat.c: Remove file.
10396         * hppa-hpux-tdep.c: Remove file.
10397         * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
10398         Move them here from hppa-tdep.h
10399         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
10400         (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
10401         * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
10402         Move them to hppa-tdep.c.
10403         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
10404         declarations.
10405         * ia64-hpux-nat.c: Remove file.
10406         * ia64-hpux-tdep.c: Remove file.
10407         * ia64-hpux-tdep.h: Remove file.
10408         * inf-ttrace.c: Remove file.
10409         * inf-ttrace.h: Remove file.
10410         * solib-ia64-hpux.c: Remove file.
10411         * solib-ia64-hpux.h: Remove file.
10412         * solib-pa64.c: Remove file.
10413         * solib-pa64.h: Remove file.
10414         * solib-som.c: Remove file.
10415         * solib-som.h: Remove file.
10416         * somread.c: Remove file.
10417
10418 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
10419
10420         * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
10421         * config.in: Regenerate.
10422         * configure: Regenerate.
10423         * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
10424         define.
10425         (fbsd_find_memory_regions): Use kinfo_getvmmap to
10426         enumerate memory regions if present.
10427
10428 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
10429
10430         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
10431         * i386fbsd-tdep.c: Fix style in various gdb_static_assert
10432         expressions.
10433         (i386fbsd_sigtramp_p): Likewise.
10434
10435 2015-03-12  John Baldwin  <jhb@FreeBSD.org>
10436
10437         * MAINTAINERS (Write After Approval): Add John Baldwin.
10438
10439 2015-03-12  Gary Benson <gbenson@redhat.com>
10440
10441         * solib.c (_initialize_solib): Make "set/show sysroot" use
10442         add_setshow_optional_filename_cmd so it can be restored to
10443         empty after being set.
10444
10445 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
10446
10447         * Makefile.in (SFILES): New source break-catch-syscall.c.
10448         (COMMON_OBS): New object break-catch-syscall.o.
10449         * break-catch-syscall.c: New file.
10450         * breakpoint.c: Remove inclusion of "xml-syscall.h".
10451         (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
10452         (struct syscall_catchpoint): Likewise.
10453         (dtor_catch_syscall): Likewise.
10454         (catch_syscall_inferior_data): Likewise.
10455         (struct catch_syscall_inferior_data): Likewise.
10456         (get_catch_syscall_inferior_data): Likewise.
10457         (catch_syscall_inferior_data_cleanup): Likewise.
10458         (insert_catch_syscall): Likewise.
10459         (remove_catch_syscall): Likewise.
10460         (breakpoint_hit_catch_syscall): Likewise.
10461         (print_it_catch_syscall): Likewise.
10462         (print_one_catch_syscall): Likewise.
10463         (print_mention_catch_syscall): Likewise.
10464         (print_recreate_catch_syscall): Likewise.
10465         (catch_syscall_breakpoint_ops): Likewise.
10466         (syscall_catchpoint_p): Likewise.
10467         (create_syscall_event_catchpoint): Likewise.
10468         (catch_syscall_split_args): Likewise.
10469         (catch_syscall_command_1): Likewise.
10470         (is_syscall_catchpoint_enabled): Likewise.
10471         (catch_syscall_enabled): Likewise.
10472         (catching_syscall_number): Likewise.
10473         (catch_syscall_completer): Likewise.
10474         (clear_syscall_counts): Likewise.
10475         (initialize_breakpoint_ops): Move initialization of syscall
10476         catchpoints to break-catch-syscall.c.
10477         (_initialize_breakpoint): Move code related to syscall catchpoints
10478         to break-catch-syscall.c.
10479
10480 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
10481
10482         * breakpoint.c (breakpoint_find_if): New function.
10483         * breakpoint.h (breakpoint_find_if): New prototype.
10484
10485 2015-03-11  Gary Benson <gbenson@redhat.com>
10486
10487         * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
10488         * remote-fileio.c (remote_fileio_to_host_uint): New function.
10489         (remote_fileio_to_host_ulong): Likewise.
10490         (remote_fileio_to_host_mode): Likewise.
10491         (remote_fileio_to_host_time): Likewise.
10492         (remote_fileio_to_host_stat): Likewise.
10493         * remote.c (PACKET_vFile_fstat): New enum value.
10494         (remote_protocol_features): Register the "vFile:fstat" feature.
10495         (remote_hostio_fstat): New function.
10496         (remote_bfd_iovec_stat): Use the above.
10497         (_initialize_remote): Register new "set/show remote
10498         hostio-fstat-packet" command.
10499         * symfile.c (separate_debug_file_exists): Update comment.
10500         * NEWS: Announce new vFile:fstat packet.
10501
10502 2015-03-11  Gary Benson <gbenson@redhat.com>
10503
10504         * common/common-remote-fileio.h: New file.
10505         * common/common-remote-fileio.c: Likewise.
10506         * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10507         (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
10508         (COMMON_OBS): Add common-remote-fileio.o.
10509         (common-remote-fileio.o): New rule.
10510         * remote-fileio.h (common-remote-fileio.h): New include.
10511         * remote-fileio.c (gdb/fileio.h): Do not include.
10512         (remote_fileio_to_be): Moved to common-remote-fileio.h.
10513         (remote_fileio_to_fio_uint): Likewise.
10514         (remote_fileio_to_fio_time): Likewise.
10515         (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
10516         (remote_fileio_to_fio_mode): Likewise.
10517         (remote_fileio_to_fio_ulong): Likewise.
10518         (remote_fileio_to_fio_stat): Likewise.
10519
10520 2015-03-11  Andy Wingo  <wingo@igalia.com>
10521
10522         * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
10523         we were checking the cached type, not the cached dynamic type.
10524
10525 2015-03-11  Andy Wingo  <wingo@igalia.com>
10526
10527         * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
10528         other strings, as these are on the GC'd heap, and will be
10529         collected along with the smob.
10530
10531 2015-03-11  Andy Wingo  <wingo@igalia.com>
10532
10533         * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
10534         (objfile_functions): Bind gdbscm_objfile_progspace to
10535         objfile-progspace.
10536         * guile/lib/gdb.scm: Add objfile-progspace to exports.
10537
10538 2015-03-11  Andy Wingo  <wingo@igalia.com>
10539
10540         * guile/guile.c (_initialize_guile): Disable automatic
10541         finalization, if Guile offers us that possibility.
10542         * guile/guile.c (call_initialize_gdb_module):
10543         * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
10544         finalizers in appropriate places.
10545         * configure.ac (AC_TRY_LIBGUILE): Add a check for
10546         scm_set_automatic_finalization_enabled.
10547         * configure: Regenerated.
10548
10549 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10550
10551         * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
10552         SAL, if possible.
10553
10554 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10555
10556         * s390-linux-nat.c (struct arch_lwp_info): New.
10557         (s390_fix_watch_points): Rename to...
10558         (s390_prepare_to_resume): ...this.  Skip the PER info update
10559         unless the watch points have changed.
10560         (s390_refresh_per_info, s390_new_thread): New functions.
10561         (s390_insert_watchpoint): Call s390_refresh_per_info instead of
10562         s390_fix_watch_points.
10563         (s390_remove_watchpoint): Likewise.
10564         (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
10565         Register s390_prepare_to_resume.
10566
10567 2015-03-09  Pedro Alves  <palves@redhat.com>
10568
10569         Revert:
10570         2015-03-07  Pedro Alves  <palves@redhat.com>
10571         * common/gdb_socket.h: New file.
10572         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
10573         sys/socket.h.
10574         (net_open): Use union gdb_sockaddr_u.
10575
10576 2015-03-07  Pedro Alves  <palves@redhat.com>
10577
10578         * configure.ac (build_warnings): Move -Wmissing-prototypes
10579         -Wdeclaration-after-statement -Wmissing-parameter-type
10580         -Wold-style-declaration -Wold-style-definition to the C-specific
10581         set.
10582         * configure: Regenerate.
10583
10584 2015-03-07  Pedro Alves  <palves@redhat.com>
10585
10586         * common/gdb_socket.h: New file.
10587         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
10588         sys/socket.h.
10589         (net_open): Use union gdb_sockaddr_u.
10590
10591 2015-03-07  Pedro Alves  <palves@redhat.com>
10592
10593         * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
10594         (exceptions_state_mc_action_iter)
10595         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10596         Don't define.
10597         [__cplusplus] (try_scope_depth): New global.
10598         [__cplusplus] (exception_try_scope_entry)
10599         (exception_try_scope_exit, gdb_exception_sliced_copy)
10600         (exception_rethrow): New functions.
10601         (throw_exception): In C++ mode, throw
10602         gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
10603         gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
10604         (throw_it): In C++ mode, use try_scope_depth.
10605         * common/common-exceptions.h [!__cplusplus]
10606         (exceptions_state_mc_action_iter)
10607         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10608         Don't declare.
10609         [__cplusplus] (exception_try_scope_entry)
10610         (exception_try_scope_exit, exception_rethrow): Declare.
10611         [__cplusplus] (struct exception_try_scope): New struct.
10612         [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
10613         C++ exceptions.
10614         (struct gdb_exception_RETURN_MASK_ALL)
10615         (struct gdb_exception_RETURN_MASK_ERROR)
10616         (struct gdb_exception_RETURN_MASK_QUIT): New types.
10617
10618 2015-03-07  Pedro Alves  <palves@redhat.com>
10619
10620         * main.c (handle_command_errors): Remove volatile qualifier from
10621         parameter.
10622
10623 2015-03-07  Pedro Alves  <palves@redhat.com>
10624
10625         * breakpoint.c (save_breakpoints): Adjust to avoid code between
10626         TRY and CATCH.
10627         * gdbtypes.c (safe_parse_type): Remove empty line.
10628         (types_deeply_equal):
10629         * guile/scm-frame.c (gdbscm_frame_name):
10630         * linux-thread-db.c (find_new_threads_once):
10631         * python/py-breakpoint.c (bppy_get_commands):
10632         * record-btrace.c (record_btrace_insert_breakpoint)
10633         (record_btrace_remove_breakpoint, record_btrace_start_replaying)
10634         (record_btrace_start_replaying): Adjust to avoid code between TRY
10635         and CATCH.
10636
10637 2015-03-07  Pedro Alves  <palves@redhat.com>
10638
10639         * common/common-exceptions.c (struct catcher) <exception>: No
10640         longer a pointer to volatile exception.  Now an exception value.
10641         <mask>: Delete field.
10642         (exceptions_state_mc_init): Remove all parameters.  Adjust.
10643         (exceptions_state_mc): No longer pop the catcher here.
10644         (exceptions_state_mc_catch): New function.
10645         (throw_exception): Adjust.
10646         * common/common-exceptions.h (exceptions_state_mc_init): Remove
10647         all parameters.
10648         (exceptions_state_mc_catch): Declare.
10649         (TRY_CATCH): Rename to ...
10650         (TRY): ... this.  Remove EXCEPTION and MASK parameters.
10651         (CATCH, END_CATCH): New.
10652         All callers adjusted.
10653
10654 2015-03-07  Tom Tromey  <tromey@redhat.com>
10655
10656         * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
10657
10658 2015-03-07  Pedro Alves  <palves@redhat.com>
10659
10660         * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10661         (amd64_epilogue_frame_cache): Normal exception handling code.
10662         * break-catch-throw.c (check_status_exception_catchpoint)
10663         (re_set_exception_catchpoint): Ditto.
10664         * cli/cli-interp.c (safe_execute_command):
10665         * cli/cli-script.c (script_from_file): Ditto.
10666         * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
10667         Ditto.
10668         * compile/compile-object-run.c (compile_object_run): Ditto.
10669         * cp-abi.c (baseclass_offset): Ditto.
10670         * cp-valprint.c (cp_print_value): Ditto.
10671         * exceptions.c (catch_exceptions_with_msg):
10672         * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
10673         * frame.c (get_frame_address_in_block_if_available): Ditto.
10674         * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10675         (i386_sigtramp_frame_cache): Ditto.
10676         * infcmd.c (post_create_inferior): Ditto.
10677         * linespec.c (parse_linespec, find_linespec_symbols):
10678         * p-valprint.c (pascal_object_print_value): Ditto.
10679         * parse.c (parse_expression_for_completion): Ditto.
10680         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
10681         * remote.c (remote_get_noisy_reply): Ditto.
10682         * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
10683         * solib-svr4.c (solib_svr4_r_map): Ditto.
10684
10685 2015-03-06  Gary Benson  <gbenson@redhat.com>
10686
10687         * common/common-utils.h (startswith): New inline function.
10688         All places where this logic was used updated to use the above.
10689
10690 2015-03-05  Pedro Alves  <palves@redhat.com>
10691
10692         PR gdb/18002
10693         * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
10694         after reading the breakpoint's shadow memory.
10695
10696 2015-03-05  Mark Kettenis  <kettenis@gnu.org>
10697
10698         * hppabsd-nat.c: Remove file.
10699         * hppaobsd-nat.c: New file.
10700         * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c.  Add
10701         hppaobsd-nat.c.
10702         * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
10703         hppaobsd-nat.o.
10704
10705 2015-03-04  Pedro Alves  <palves@redhat.com>
10706
10707         * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
10708         (target_decr_pc_after_break): Delete declaration.
10709         * target.c (default_target_decr_pc_after_break)
10710         (target_decr_pc_after_break): Delete.
10711         * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
10712         gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
10713         * linux-thread-db.c (check_event): Likewise.
10714         * infrun.c (adjust_pc_after_break): Likewise.
10715         * darwin-nat.c (cancel_breakpoint): Likewise.
10716         * aix-thread.c (aix_thread_wait): Likewise.
10717         * target-delegates.c: Regenerate.
10718
10719 2015-03-04  Pedro Alves  <palves@redhat.com>
10720
10721         * linux-nat.c (save_sigtrap): Check for breakpoints before
10722         checking watchpoints.
10723         (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10724         breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10725         (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10726         a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10727         (linux_nat_stopped_by_sw_breakpoint)
10728         (linux_nat_supports_stopped_by_sw_breakpoint)
10729         (linux_nat_stopped_by_hw_breakpoint)
10730         (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10731         (linux_nat_wait_1): Don't re-increment the PC if relying on
10732         SIGTRAP's siginfo->si_code.
10733         (linux_nat_add_target): Install new target methods.
10734         * linux-thread-db.c (check_event): Don't account for breakpoint PC
10735         offset if the target already adjusted the PC.
10736         * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10737         (GDB_ARCH_TRAP_BRKPT): New.
10738         (TRAP_HWBKPT): Define if not already defined.
10739
10740 2015-03-04  Pedro Alves  <palves@redhat.com>
10741
10742         * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10743         * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10744         Delete field.
10745         <stop_reason>: New field.
10746         (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10747         (packet_set_cmd_state): New function.
10748         (remote_protocol_features): Register the "swbreak" and "hwbreak"
10749         features.
10750         (remote_query_supported): If not disabled with the corresponding
10751         "set remote foo-packet" command, report support for the swbreak
10752         and hwbreak features.
10753         (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10754         field.
10755         <stop_reason>: New field.
10756         (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10757         (remote_wait_as): Adjust.
10758         (remote_stopped_by_sw_breakpoint)
10759         (remote_supports_stopped_by_sw_breakpoint)
10760         (remote_stopped_by_hw_breakpoint)
10761         (remote_supports_stopped_by_hw_breakpoint): New functions.
10762         (remote_stopped_by_watchpoint): New function.
10763         (init_remote_ops): Install them.
10764         (_initialize_remote): Register new "set/show remote
10765         swbreak-feature-packet" and "set/show remote
10766         swbreak-feature-packet" commands.
10767
10768 2015-03-04  Pedro Alves  <palves@redhat.com>
10769
10770         * btrace.h: Include target/waitstatus.h.
10771         (struct btrace_thread_info) <stop_reason>: New field.
10772         * record-btrace.c (record_btrace_step_thread): Use
10773         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10774         (record_btrace_decr_pc_after_break): Delete.
10775         (record_btrace_stopped_by_sw_breakpoint)
10776         (record_btrace_supports_stopped_by_sw_breakpoint)
10777         (record_btrace_stopped_by_hw_breakpoint)
10778         (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10779         (init_record_btrace_ops): Install them.
10780         * record-full.c (record_full_hw_watchpoint): Delete and replace
10781         with ...
10782         (record_full_stop_reason): ... this throughout.
10783         (record_full_exec_insn): Adjust.
10784         (record_full_wait_1): Adjust.  No longer re-increment the PC.
10785         (record_full_wait_1): Adjust.  Use
10786         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10787         (record_full_stopped_by_watchpoint): Adjust.
10788         (record_full_stopped_by_sw_breakpoint)
10789         (record_full_supports_stopped_by_sw_breakpoint)
10790         (record_full_supports_stopped_by_sw_breakpoint)
10791         (record_full_stopped_by_hw_breakpoint)
10792         (record_full_supports_stopped_by_hw_breakpoint): New functions.
10793         (init_record_full_ops, init_record_full_core_ops): Install them.
10794         * record.c (record_check_stopped_by_breakpoint): New function.
10795         * record.h: Include target/waitstatus.h.
10796         (record_check_stopped_by_breakpoint): New declaration.
10797
10798 2015-03-04  Pedro Alves  <palves@redhat.com>
10799
10800         enum lwp_stop_reason -> enum target_stop_reason
10801         * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10802         (linux_nat_stopped_by_watchpoint, status_callback)
10803         (linux_nat_wait_1): Adjust.
10804         * linux-nat.h (enum lwp_stop_reason): Delete.
10805         (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10806         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10807         * target/waitstatus.h (enum target_stop_reason): New.
10808
10809 2015-03-04  Pedro Alves  <palves@redhat.com>
10810
10811         * breakpoint.c (need_moribund_for_location_type): New function.
10812         (bpstat_stop_status): Don't skipping checking moribund locations
10813         of breakpoint types which the target tell caused a stop.
10814         (program_breakpoint_here_p): New function, factored out from ...
10815         (bp_loc_is_permanent): ... this.
10816         (update_global_location_list): Don't create a moribund location if
10817         the target supports reporting stops of the type of the removed
10818         breakpoint.
10819         * breakpoint.h (program_breakpoint_here_p): New declaration.
10820         * infrun.c (adjust_pc_after_break): Return early if the target has
10821         already adjusted the PC.  Add comments.
10822         (handle_signal_stop): If nothing explains a signal, and the target
10823         tells us the stop was caused by a software breakpoint, check if
10824         there's a breakpoint instruction in the memory.  If so, adjust the
10825         PC before presenting the stop to the user.  Otherwise, ignore the
10826         trap.  If nothing explains a signal, and the target tells us the
10827         stop was caused by a hardware breakpoint, ignore the trap.
10828         * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10829         to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10830         to_supports_stopped_by_hw_breakpoint>: New fields.
10831         (target_stopped_by_sw_breakpoint)
10832         (target_supports_stopped_by_sw_breakpoint)
10833         (target_stopped_by_hw_breakpoint)
10834         (target_supports_stopped_by_hw_breakpoint): Define.
10835         * target-delegates.c: Regenerate.
10836
10837 2015-03-04  Pedro Alves  <palves@redhat.com>
10838
10839         * infrun.c (follow_fork_inferior): Use the whole of the
10840         inferior_ptid and pending_follow.related_pid ptids instead of
10841         building ptids from the process components.  Adjust verbose output
10842         to use target_pid_to_str.
10843         * linux-nat.c (linux_child_follow_fork): Use the whole of the
10844         inferior_ptid and pending_follow.related_pid ptids instead of
10845         building ptids from the process components.
10846
10847 2015-03-04  Mark Kettenis  <kettenis@gnu.org>
10848
10849         * inf-ptrace.c [PT_GET_PROCESS_STATE]
10850         (inf_ptrace_insert_fork_catchpoint): New function.
10851         (inf_ptrace_remove_fork_catchpoint): New function.
10852         (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10853
10854 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10855
10856         * s390-linux-tdep.c (s390_register_name): Return empty string
10857         instead of NULL for registers that shouldn't be visible.
10858
10859 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10860
10861         * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10862         XML file for 64-bit targets.
10863
10864 2015-03-03  Simon Marchi  <simon.marchi@ericsson.com>
10865
10866         * target.h (find_default_create_inferior): Remove declaration.
10867         (find_default_attach): Likewise.
10868
10869 2015-03-03  Pedro Alves  <palves@redhat.com>
10870
10871         * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10872         Use ptid_get_pid to get the overall process id when resuming all
10873         threads.
10874
10875 2015-03-03  Pedro Alves  <palves@redhat.com>
10876
10877         * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10878         the lwp field of ptid.  Pass the full ptid to get_thread_regcache.
10879         * inf-ptrace.c (get_ptrace_pid): New function.
10880         (inf_ptrace_resume): Use it.
10881         * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10882         to the lower layer.
10883
10884 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10885
10886         * nat/linux-btrace.c: Include sys/utsname.h.
10887         (linux_determine_kernel_ptr_bits): New.
10888         (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10889         * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10890         ptr_bits.
10891
10892 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10893
10894         * btrace.c (ftrace_update_function): Treat return as tailcall for
10895         "_dl_runtime_resolve".
10896
10897 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10898
10899         * btrace.h (btrace_function) <lbegin, lend>: Remove.
10900         * btrace.c (ftrace_debug): Do not print the line range.
10901         (ftrace_skip_file, ftrace_update_lines): Remove.
10902         (ftrace_new_function): Remove lbegin and lend initialization.
10903         (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10904         * record-btrace.c (btrace_compute_src_line_range): New.
10905         (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10906
10907 2015-03-02  Pedro Alves  <palves@redhat.com>
10908
10909         * infrun.c (follow_exec): Delete all threads of the process except
10910         the event thread.  Extended comments.
10911
10912 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
10913
10914         * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10915
10916 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
10917
10918         * utils.h: Remove <stdbool.h> #include.
10919         (producer_is_gcc): Change return type to "int".
10920         * utils.c (producer_is_gcc): Change return type to int.
10921         Return 1 instead of true, and 0 instead of false.
10922         Adjust function documentation accordingly.
10923
10924 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10925
10926         * s390-linux-nat.c (have_regset_vxrs): New static variable.
10927         (s390_linux_fetch_inferior_registers): Handle vector registers, if
10928         present.
10929         (s390_linux_store_inferior_registers): Likewise.
10930         (s390_get_hwcap): Remove function.  Embed its logic...
10931         (s390_read_description): ...here.  Yield a target description with
10932         vector registers if applicable.
10933         * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10934         "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10935         "features/s390x-tevx-linux64.c".
10936         (struct gdbarch_tdep) <v0_full_regnum>: New field.
10937         (s390_dwarf_regmap): Add vector registers.  Remove bogus entries
10938         for "GNU/Linux-specific registers".
10939         (s390_dwarf_reg_r0l): New enum value.
10940         (s390_dwarf_reg_to_regnum): Support vector registers.
10941         (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10942         of GPR lower halves.
10943         (regnum_is_vxr_full): New function.
10944         (s390_register_name): New function.
10945         (s390_pseudo_register_name): Handle v0-v15, which are composed of
10946         f0-f15 and v0l-v15l.
10947         (s390_pseudo_register_type): Likewise.
10948         (s390_pseudo_register_read): Likewise.
10949         (s390_pseudo_register_write): Likewise.
10950         (s390_value_from_register): Account for the fact that values are
10951         placed left-justified in vector registers.
10952         (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10953         the vector reggroup and omit them from the general reggroup.
10954         (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10955         (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10956         (s390_iterate_over_regset_sections): Add iterations for the two
10957         new vector regsets.
10958         (s390_core_read_description): Yield a target description with
10959         vector registers if applicable.
10960         (s390_gdbarch_init): Handle target descriptions with vector
10961         registers.  Add "register_name" gdbarch method.
10962         (_initialize_s390_tdep): Call new tdesc initialization functions.
10963         * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10964         (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10965         (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10966         (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10967         (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10968         (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10969         (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10970         (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10971         (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10972         (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10973         (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10974         (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10975         (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10976         (S390_NUM_REGS): Adjust value.
10977         (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10978         (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10979         (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10980         * NEWS: Announce S/390 vector register support.
10981
10982 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10983
10984         * features/s390-tevx-linux64.xml: New file.
10985         * features/s390-vx-linux64.xml: New file.
10986         * features/s390-vx.xml: New file.
10987         * features/s390x-tevx-linux64.xml: New file.
10988         * features/s390x-vx-linux64.xml: New file.
10989         * features/Makefile (WHICH): Add s390-vx-linux64,
10990         s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10991         (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10992         (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10993         macros.
10994         * features/s390-tevx-linux64.c: New generated file.
10995         * features/s390-vx-linux64.c: Likewise.
10996         * features/s390x-tevx-linux64.c: Likewise.
10997         * features/s390x-vx-linux64.c: Likewise.
10998         * regformats/s390-tevx-linux64.dat: Likewise.
10999         * regformats/s390-vx-linux64.dat: Likewise.
11000         * regformats/s390x-tevx-linux64.dat: Likewise.
11001         * regformats/s390x-vx-linux64.dat: Likewise.
11002
11003 2015-02-28  Doug Evans  <xdje42@gmail.com>
11004
11005         * symtab.h (struct symtab) <next>: Fix comment.
11006
11007 2015-02-27  Simon Marchi  <simon.marchi@ericsson.com>
11008
11009         * python/python.c (python_GdbModuleDef): Rename GdbMethods to
11010         python_GdbMethods.
11011
11012 2015-02-27  Pedro Alves  <palves@redhat.com>
11013
11014         * dtrace-probe.c (dtrace_probe_ops): Make extern.
11015
11016 2015-02-27  Pedro Alves  <palves@redhat.com>
11017
11018         * common/common-exceptions.h (exception_none): Declare.
11019         * common/common-exceptions.c (exception_none): Moved from
11020         exceptions.c.
11021         (exceptions_state_mc_init): Use exception_none.
11022         * exceptions.c (exception_none): Move to
11023         common/common-exceptions.c.
11024         * exceptions.h (exception_none): Move to
11025         common/common-exceptions.h.
11026
11027 2015-02-27  Pedro Alves  <palves@redhat.com>
11028
11029         * main.c (catch_command_errors, catch_command_errors_const):
11030         Remove 'mask' argument.  Adjust.
11031         (captured_main): Adjust callers.
11032
11033 2015-02-27  Pedro Alves  <palves@redhat.com>
11034
11035         * python/python-internal.h: Include "extension-priv.h".
11036
11037 2015-02-27  Pedro Alves  <palves@redhat.com>
11038
11039         * breakpoint.h (enum print_stop_action): Move further up in the
11040         file.
11041
11042 2015-02-27  Pedro Alves  <palves@redhat.com>
11043
11044         * gdbarch.sh: Include regcache.h.
11045         * gdbarch.h: Regenerate.
11046
11047 2015-02-27  Pedro Alves  <palves@redhat.com>
11048
11049         * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
11050         Remove duplicate const.
11051         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
11052         duplicate const.
11053
11054 2015-02-27  Pedro Alves  <palves@redhat.com>
11055
11056         * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
11057         * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
11058         * features/feature_to_c.sh: Tag the generated xml_builtin array
11059         with extern const in C++ mode.
11060
11061 2015-02-27  Tom Tromey  <tromey@redhat.com>
11062
11063         * minidebug.c (struct lzma_stream): Rename to ...
11064         (struct gdb_lzma_stream): ... this.
11065         (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
11066
11067 2015-02-27  Pedro Alves  <palves@redhat.com>
11068
11069         * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
11070         function.
11071         (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
11072         (mi_cmd_stack_list_variables): Use it.
11073
11074 2015-02-27  Pedro Alves  <palves@redhat.com>
11075
11076         * x86-linux-nat.c (u_debugreg_offset): New function.
11077         (x86_linux_dr_get, x86_linux_dr_set): Use it.
11078
11079 2015-02-27  Pedro Alves  <palves@redhat.com>
11080
11081         * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
11082         declaration.
11083         Include break-common.h.
11084
11085 2015-02-27  Tom Tromey  <tromey@redhat.com>
11086             Pedro Alves <palves@redhat.com>
11087
11088         * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
11089         local used to iterate over enums.
11090         * completer.c (signal_completer): Likewise.
11091         * i386-tdep.c (i386_stap_parse_special_token): Likewise.
11092         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
11093         * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
11094         * tui/tui-layout.c (next_layout, prev_layout): Likewise.
11095         * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
11096         (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
11097         * tui-wingeneral.c (tui_refresh_all):  Likewise.
11098
11099 2015-02-27  Pedro Alves  <palves@redhat.com>
11100
11101         * target.h: Include "infrun.h".
11102
11103 2015-02-27  Pedro Alves  <palves@redhat.com>
11104
11105         * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11106
11107 2015-02-27  Pedro Alves  <palves@redhat.com>
11108
11109         * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
11110         (IPA_SYM): Use it.
11111         * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
11112
11113 2015-02-27  Pedro Alves  <palves@redhat.com>
11114
11115         * cli-out.c (_rl_erase_entire_line): Move declaration out of
11116         cli_mld_erase_entire_line, and make it extern "C".
11117         * common/common-defs.h (EXTERN_C): New.
11118         * completer.c (_rl_completion_prefix_display_length)
11119         (_rl_print_completions_horizontally, QSFUNC): Move declarations
11120         out of gdb_display_match_list_1.
11121         (_rl_qsort_string_compare): Move declaration out of
11122         gdb_display_match_list_1, and make it extern "C".
11123         * defs.h (re_comp): Use EXTERN_C.
11124         * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
11125         and make it extern "C".
11126         (monstartup): Move declaration out of maintenance_set_profile_cmd,
11127         and make it extern "C".
11128         (main): Move declaration out of maintenance_set_profile_cmd.
11129         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
11130         EXTERN_C.
11131
11132 2015-02-27  Pedro Alves  <palves@redhat.com>
11133
11134         * python/python.c (GdbMethods): Rename to ...
11135         (python_GdbMethods): ... this and make extern.
11136         (GdbModuleDef): Rename to ...
11137         (python_GdbModuleDef): ... this and make extern.
11138
11139 2015-02-27  Pedro Alves  <palves@redhat.com>
11140
11141         * record-btrace.c (set_record_btrace_cmdlist)
11142         (show_record_btrace_cmdlist): Remove redefinitions.
11143
11144 2015-02-27  Tom Tromey  <tromey@redhat.com>
11145             Pedro Alves  <palves@redhat.com>
11146
11147         * dwarf2-frame.c (enum cfa_how_kind, struct
11148         dwarf2_frame_state_reg_info): Move out of struct
11149         dwarf2_frame_state.
11150         * dwarf2read.c (struct tu_stats): Move out of struct
11151         dwarf2_per_objfile.
11152         (struct file_entry): Move out of struct line_header.
11153         (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
11154         typedef_field_list): Move out of struct field_info.
11155         * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
11156         Move out of struct dynamic_prop.
11157         (union type_owner, union field_location, struct field, struct
11158         range_bounds, union type_specific): Move out of struct main_type.
11159         (struct fn_fieldlist, struct fn_field, struct typedef_field)
11160         (VOFFSET_STATIC): Move out of struct cplus_struct_type.
11161         (struct call_site_target, union call_site_parameter_u, struct
11162         call_site_parameter): Move out of struct call_site.
11163         * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
11164         m32c_prologue.
11165         (enum srcdest_kind): Move out of struct srcdest.
11166         * main.c (enum cmdarg_kind): Move out of struct cmdarg.
11167         * prologue-value.h (enum prologue_value_kind): Move out of struct
11168         prologue_value.
11169         * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
11170         gdbarch_tdep.
11171         * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
11172         out of struct field_info.
11173         * symfile.h (struct other_sections): Move out of struct
11174         section_addr_info.
11175         * symtab.c (struct symbol_cache_slot): Move out struct
11176         block_symbol_cache.
11177         * target-descriptions.c (enum tdesc_type_kind): Move out of
11178         typedef struct tdesc_type.
11179         * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
11180         struct tui_line_or_address.
11181         * value.c (enum internalvar_kind, union internalvar_data): Move
11182         out of struct internalvar.
11183         * xtensa-tdep.h (struct ctype_cache): Move out of struct
11184         gdbarch_tdep.
11185
11186 2015-02-27  Tom Tromey  <tromey@redhat.com>
11187             Pedro Alves  <palves@redhat.com>
11188
11189         Rename symbols whose names are reserved C++ keywords throughout.
11190
11191 2015-02-27  Pedro Alves  <palves@redhat.com>
11192
11193         * Makefile.in (COMPILER): New, get it from autoconf.
11194         (COMPILE.pre, CC_LD): Use COMPILER.
11195         (CXX): Get from autoconf instead.
11196         (CXX_FOR_TARGET): Default to g++ instead of gcc.
11197         * acinclude.m4: Include build-with-cxx.m4.
11198         * build-with-cxx.m4: New file.
11199         * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11200         Disable -Werror by default if building in C++ mode.
11201         (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11202         -Wno-narrowing in C++ mode.  Only enable -Wpointer-sign in C mode.
11203         Run supported-warning-flags tests with the C++ compiler.
11204         Save/restore CXXFLAGS too.
11205         * configure: Regenerate.
11206
11207 2015-02-27  Pedro Alves  <palves@redhat.com>
11208
11209         * libiberty.m4: New file.
11210         * acinclude.m4: Include libiberty.m4.
11211         * configure.ac: Call libiberty_INIT.
11212         * config.in, configure: Regenerate.
11213
11214 2015-02-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11215
11216         * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
11217         31-bit targets, but 64-bit targets as well.
11218         (s390_gnu_triplet_regexp): New function.
11219         (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
11220         64-bit targets as well.  Set the gnu_triplet_regexp gdbarch
11221         method.
11222
11223 2015-02-27  Jon TURNEY  <jon.turney@dronecode.org.uk>  (tiny patch)
11224
11225         * windows-nat.c (CONTEXT_DEBUGGER): Remove.
11226         (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS.  Incorporate flags
11227         from CONTEXT_DEBUGGER.
11228
11229 2015-02-26  Doug Evans  <dje@google.com>
11230
11231         * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
11232         CHECK_TYPEDEF.
11233         (set_type_vptr_fieldno): Ditto.
11234         (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
11235         * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
11236
11237 2015-02-26  Pedro Alves  <palves@redhat.com>
11238
11239         * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
11240         * complaints.c (vcomplaint): Pass argument FMT directly to
11241         printf-like functions instead of complaint->fmt.
11242         * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
11243         * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
11244         * compile/compile-loc2c.c (pushf, unary, binary): Add
11245         ATTRIBUTE_PRINTF.
11246         (do_compile_dwarf_expr_to_c): Pass string literal as format string
11247         to pushf.
11248         (BINARY): Pass string literal as format string to 'binary'.
11249         * compile/compile-object-load.c (link_callbacks_einfo): Add
11250         ATTRIBUTE_PRINTF.
11251         * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
11252
11253 2015-02-26  Pedro Alves  <palves@redhat.com>
11254
11255         * windows-termcap.c: Rename to ...
11256         * stub-termcap.c: ... this.  Adjust header line.
11257         * Makefile.in (SFILES): Refer to stub-termcap.c instead of
11258         windows-termcap.c.
11259         * configure: Regenerate.
11260         * configure.ac: Refer to stub-termcap.o instead of
11261         windows-termcap.o.
11262         * gdb_curses.h: Mention stub-termcap.c instead of
11263         windows-termcap.c.
11264
11265 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
11266
11267         * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
11268         (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
11269
11270 2015-02-26  Antoine Tremblay  <antoine.tremblay@ericsson.com>
11271
11272         * gdb/infcmd.c (print_return_value): use type_to_string to print type.
11273
11274 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
11275
11276         * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
11277         bfd_canonicalize_symtab.
11278
11279 2015-02-25  John Baldwin  <jhb@FreeBSD.org>
11280
11281         * amd64fbsd-nat.c: Include sys/user.h.
11282         (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11283         instead of KERN_PS_STRINGS to locate the signal trampoline.
11284         * i386fbsd-nat.c: Include sys/user.h.
11285         (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11286         instead of KERN_PS_STRINGS to locate the signal trampoline.
11287         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
11288         (amd64fbsd_sigtramp_p): New.
11289         (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
11290         longer set default values.
11291         (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
11292         * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
11293         (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
11294         (i386fbsd_freebsd4_sigtramp_start)
11295         (i386fbsd_freebsd4_sigtramp_middle)
11296         (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
11297         (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
11298         (i386fbsd_sigtramp_p): New.
11299         (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
11300         longer set default values.
11301         (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
11302
11303 2015-02-25  John Baldwin  <jhb@freebsd.org>
11304
11305         * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
11306         get_frame_register instead of frame_unwind_register_unsigned.
11307
11308 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
11309
11310         PR build/18033
11311         * compile/compile-c-support.c (c_compute_program): Change // comment.
11312         * compile/compile-object-load.c (setup_sections): Change // comment.
11313
11314 2015-02-26  Joel Brobecker  <brobecker@adacore.com>
11315
11316         PR build/18033:
11317         * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
11318
11319 2015-02-23  Pedro Alves  <palves@redhat.com>
11320
11321         * remote.c (skip_to_semicolon): New function.
11322         (remote_parse_stop_reply) <T stop reply>: Use it.  Don't
11323         special case the stop reasons that look like hex numbers
11324         upfront.  Instead handle real register numbers after matching
11325         all the known stop reasons.
11326
11327 2015-02-21  Doug Evans  <dje@google.com>
11328
11329         PR c++/17976, symtab/17821
11330         * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
11331         is_in_anonymous.  All callers updated.
11332         (find_symbol_in_baseclass): Ditto.
11333         (cp_lookup_nested_symbol_1): Ditto.  Don't search all static blocks
11334         for symbols in an anonymous namespace.
11335         * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
11336         DW_AT_name directly.
11337         (dwarf2_name): Convert missing namespace name to
11338         CP_ANONYMOUS_NAMESPACE_STR.
11339
11340 2015-02-20  Pedro Alves  <palves@redhat.com>
11341
11342         * linux-nat.c (linux_handle_extended_wait): Call
11343         thread_db_notice_clone whenever a new clone LWP is detected.
11344         (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
11345         functions.
11346         * linux-nat.h (thread_db_attach_lwp): Delete declaration.
11347         (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
11348         (linux_unstop_all_lwps): Declare.
11349         * linux-thread-db.c (struct thread_get_info_inout): Delete.
11350         (thread_get_info_callback): Delete.
11351         (thread_from_lwp): Use td_thr_get_info and record_thread.
11352         (thread_db_attach_lwp): Delete.
11353         (thread_db_notice_clone): New function.
11354         (try_thread_db_load_1): If /proc is mounted and shows the
11355         process'es task list, walk over all LWPs and call thread_from_lwp
11356         instead of relying on td_ta_thr_iter.
11357         (attach_thread): Don't call check_thread_signals here.  Split the
11358         tail part of the function (which adds the thread to the core GDB
11359         thread list) to ...
11360         (record_thread): ... this function.  Call check_thread_signals
11361         here.
11362         (thread_db_wait): Don't call thread_db_find_new_threads_1.  Always
11363         call thread_from_lwp.
11364         (thread_db_update_thread_list): Rename to ...
11365         (thread_db_update_thread_list_org): ... this.
11366         (thread_db_update_thread_list): New function.
11367         (thread_db_find_thread_from_tid): Delete.
11368         (thread_db_get_ada_task_ptid): Simplify.
11369         * nat/linux-procfs.c: Include <sys/stat.h>.
11370         (linux_proc_task_list_dir_exists): New function.
11371         * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
11372
11373 2015-02-20  Pedro Alves  <palves@redhat.com>
11374
11375         * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
11376         main LWP.  Handle the case of waitpid returning 0 if we're already
11377         attached to the LWP.  Don't set the LWP's last_resume_kind to
11378         resume_stop if we already knew about the LWP.
11379         (linux_nat_filter_event): Add debug logs.
11380
11381 2015-02-20  Pedro Alves  <palves@redhat.com>
11382
11383         * target.h (forward_target_decr_pc_after_break): Delete
11384         declaration.
11385
11386 2015-02-20  Pedro Alves  <palves@redhat.com>
11387
11388         PR threads/18006
11389         * linux-thread-db.c (thread_get_info_callback): Return early if
11390         the thread's lwp id is -1.
11391
11392 2015-02-20  Joel Brobecker  <brobecker@adacore.com>
11393
11394         GDB 7.9 released.
11395
11396 2015-02-19  Steve Ellcey  <sellcey@imgtec.com>
11397
11398         * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
11399         (dtrace_get_probes) Change type of variable 'dof'.
11400
11401 2015-02-19  Antoine Tremblay  <antoine.tremblay@ericsson.com>
11402
11403         PR breakpoints/16812
11404         * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
11405         * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
11406         * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
11407
11408 2015-02-19  David Taylor  <dtaylor@emc.com>
11409
11410         * common/ax.def (setv): Fix consumed entry in setv DEFOP.
11411
11412 2015-02-18  Patrick Palka  <patrick@parcs.ath.cx>
11413
11414         * tui/tui-io.c (tui_handle_resize_during_io): Remove this
11415         function.
11416         (tui_putc): Don't call tui_handle_resize_during_io.
11417         (tui_getc): Likewise.
11418         (tui_mld_getc): Likewise.
11419         * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
11420         (tui_sigwinch_token): New static variable.
11421         (tui_initialize_win): Adjust documentation.  Set
11422         tui_sigwinch_token.
11423         (tui_async_resize_screen): New asynchronous callback.
11424         (tui_sigwinch_handler): Adjust documentation.  Asynchronously
11425         invoke tui_async_resize_screen.
11426
11427 2015-02-18  Jose E. Marchesi  <jose.marchesi@oracle.com>
11428
11429         * configure: Regenerated.
11430         * configure.ac: Use GDB_AC_TRANSFORM.
11431         * Makefile.in (aclocal_m4_deps): Added transform.m4.
11432         * acinclude.m4: sinclude transform.m4.
11433         * transform.m4: New file.
11434         (GDB_AC_TRANSFORM): New macro.
11435
11436 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11437
11438         * NEWS: Announce the support for DTrace SDT probes.
11439
11440 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11441
11442         * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
11443         (amd64_dtrace_parse_probe_argument): New function.
11444         (amd64_dtrace_probe_is_enabled): Likewise.
11445         (amd64_dtrace_enable_probe): Likewise.
11446         (amd64_dtrace_disable_probe): Likewise.
11447         (amd64_linux_init_abi): Register the
11448         `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
11449         `gdbarch_dtrace_disable_probe' and
11450         `gdbarch_dtrace_probe_is_enabled' hooks.
11451         (amd64_dtrace_disabled_probe_sequence_1): New constant.
11452         (amd64_dtrace_disabled_probe_sequence_2): Likewise.
11453         (amd64_dtrace_enable_probe_sequence): Likewise.
11454         (amd64_dtrace_disable_probe_sequence): Likewise.
11455
11456 2015-01-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11457
11458         * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
11459         the -probe-dtrace new vpossible value for PROBE_MODIFIER.
11460         * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
11461         handle ELF files.
11462         * Makefile.in (SFILES): dtrace-probe.c added.
11463         * configure: Regenerate.
11464         * dtrace-probe.c: New file.
11465         (SHT_SUNW_dof): New constant.
11466         (dtrace_probe_type): New enum.
11467         (dtrace_probe_arg): New struct.
11468         (dtrace_probe_arg_s): New typedef.
11469         (struct dtrace_probe_enabler): New struct.
11470         (dtrace_probe_enabler_s): New typedef.
11471         (dtrace_probe): New struct.
11472         (dtrace_probe_is_linespec): New function.
11473         (dtrace_dof_sect_type): New enum.
11474         (dtrace_dof_dofh_ident): Likewise.
11475         (dtrace_dof_encoding): Likewise.
11476         (DTRACE_DOF_ENCODE_LSB): Likewise.
11477         (DTRACE_DOF_ENCODE_MSB): Likewise.
11478         (dtrace_dof_hdr): New struct.
11479         (dtrace_dof_sect): Likewise.
11480         (dtrace_dof_provider): Likewise.
11481         (dtrace_dof_probe): Likewise.
11482         (DOF_UINT): New macro.
11483         (DTRACE_DOF_PTR): Likewise.
11484         (DTRACE_DOF_SECT): Likewise.
11485         (dtrace_process_dof_probe): New function.
11486         (dtrace_process_dof): Likewise.
11487         (dtrace_build_arg_exprs): Likewise.
11488         (dtrace_get_arg): Likewise.
11489         (dtrace_get_probes): Likewise.
11490         (dtrace_get_probe_argument_count): Likewise.
11491         (dtrace_can_evaluate_probe_arguments): Likewise.
11492         (dtrace_evaluate_probe_argument): Likewise.
11493         (dtrace_compile_to_ax): Likewise.
11494         (dtrace_probe_destroy): Likewise.
11495         (dtrace_gen_info_probes_table_header): Likewise.
11496         (dtrace_gen_info_probes_table_values): Likewise.
11497         (dtrace_probe_is_enabled): Likewise.
11498         (dtrace_probe_ops): New variable.
11499         (info_probes_dtrace_command): New function.
11500         (_initialize_dtrace_probe): Likewise.
11501         (dtrace_type_name): Likewise.
11502
11503 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11504
11505         * gdbarch.sh (dtrace_parse_probe_argument): New.
11506         (dtrace_probe_is_enabled): Likewise.
11507         (dtrace_enable_probe): Likewise.
11508         (dtrace_disable_probe): Likewise.
11509         * gdbarch.c: Regenerate.
11510         * gdbarch.h: Regenerate.
11511
11512 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11513
11514         * stap-probe.c (stap_probe_ops): Add NULLs in the static
11515         stap_probe_ops for `enable_probe' and `disable_probe'.
11516         * probe.c (enable_probes_command): New function.
11517         (disable_probes_command): Likewise.
11518         (_initialize_probe): Define the cli commands `enable probe' and
11519         `disable probe'.
11520         (parse_probe_linespec): New function.
11521         (info_probes_for_ops): Use parse_probe_linespec.
11522         * probe.h (probe_ops): New hooks `enable_probe' and
11523         `disable_probe'.
11524
11525 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11526
11527         * probe.c (compute_probe_arg): Moved from stap-probe.c
11528         (compile_probe_arg): Likewise.
11529         (probe_funcs): Likewise.
11530         * stap-probe.c (compute_probe_arg): Moved to probe.c.
11531         (compile_probe_arg): Likewise.
11532         (probe_funcs): Likewise.
11533
11534 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11535
11536         * probe.c (print_ui_out_not_applicables): New function.
11537         (exists_probe_with_pops): Likewise.
11538         (info_probes_for_ops): Do not include column headers for probe
11539         types for which no probe has been actually found on any object.
11540         Also invoke `print_ui_out_not_applicables' in order to match the
11541         column rows with the header when probes of several types are
11542         listed.
11543         Print the "Type" column.
11544         * probe.h (probe_ops): Added a new probe operation `type_name'.
11545         * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
11546         (stap_type_name): New function.
11547
11548 2015-02-17  Patrick Palka  <patrick@parcs.ath.cx>
11549
11550         * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
11551         (key_is_command_char): Delete.
11552
11553 2015-02-17  Pedro Alves  <palves@redhat.com>
11554
11555         * tui/tui.c (tui_enable): Resize windows before anything
11556         might show a window.
11557
11558 2015-02-17  Max Ostapenko  <m.ostapenko@partner.samsung.com>
11559
11560         PR gdb/17984
11561         * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
11562         (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
11563         call.
11564         * aarch64-tdep.h (tdesc_aarch64): Declare.
11565
11566 2015-02-12  Mark Wielaard  <mjw@redhat.com>
11567
11568         * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
11569
11570 2015-02-13  Doug Evans  <dje@google.com>
11571
11572         * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
11573         anonymous_namespace to is_in_anonymous for consistency with the rest
11574         of the file.
11575         (cp_lookup_bare_symbol): Fix typo in comment.
11576         (cp_search_static_and_baseclasses): Ditto.
11577         (search_symbol_list): Use vertical space in comment better.
11578         (reset_directive_searched): Ditto. Fix typo.
11579         (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
11580
11581 2015-02-13  Yao Qi  <yao.qi@arm.com>
11582
11583         * MAINTAINERS: Update my email address.
11584
11585 2015-02-12  Doug Evans  <dje@google.com>
11586
11587         * symtab.c (completion_list_add_name): Fix memory leak.
11588
11589 2015-02-12  Doug Evans  <dje@google.com>
11590
11591         * completer.c (complete_line): Remove incorrect comment.
11592
11593 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11594
11595         * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
11596         (py_print_frame): Use RETURN_MASK_ERROR.
11597
11598 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11599
11600         * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
11601         function comment.  Wrap all function that can throw in cleanups.
11602         (gdbpy_apply_frame_filter): Wrap all function that can throw in
11603         cleanups.
11604
11605 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11606
11607         * python/py-framefilter.c (py_print_frame): Substitute goto error.
11608         Remove the error label.
11609
11610 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11611
11612         * python/py-framefilter.c (py_print_frame): Put conditional code paths
11613         with goto first, indent the former else codepath left.  Put variable
11614         'elided' to a new inner block.
11615
11616 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11617
11618         * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
11619
11620 2015-02-11  Pedro Alves  <palves@redhat.com>
11621
11622         * xcoffread.c (within_function): Delete.
11623
11624 2015-02-11  Tom Tromey  <tromey@redhat.com>
11625             Pedro Alves <palves@redhat.com>
11626
11627         * breakpoint.c (base_breakpoint_ops): Delete.
11628         * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
11629         * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
11630         * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
11631         * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
11632         * python/py-arch.c (arch_object_type): Make extern.
11633         * python/py-block.c (block_syms_iterator_object_type): Make extern.
11634         * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
11635         * python/py-cmd.c (cmdpy_object_type): Make extern.
11636         * python/py-continueevent.c (continue_event_object_type)
11637         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
11638         parameter.  Update all callers.
11639         * python/py-evtregistry.c (eventregistry_object_type): Make extern.
11640         * python/py-exitedevent.c (exited_event_object_type): Make extern.
11641         * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
11642         * python/py-function.c (fnpy_object_type): Make extern.
11643         * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
11644         * python/py-infevents.c (call_pre_event_object_type)
11645         (inferior_call_post_event_object_type).
11646         (memory_changed_event_object_type): Make extern.
11647         * python/py-infthread.c (thread_object_type): Make extern.
11648         * python/py-lazy-string.c (lazy_string_object_type): Make extern.
11649         * python/py-linetable.c (linetable_entry_object_type)
11650         (linetable_object_type, ltpy_iterator_object_type): Make extern.
11651         * python/py-newobjfileevent.c (new_objfile_event_object_type)
11652         (clear_objfiles_event_object_type): Make extern.
11653         * python/py-objfile.c (objfile_object_type): Make extern.
11654         * python/py-param.c (parmpy_object_type): Make extern.
11655         * python/py-progspace.c (pspace_object_type): Make extern.
11656         * python/py-signalevent.c (signal_event_object_type): Make extern.
11657         * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
11658         * python/py-type.c (type_object_type, field_object_type)
11659         (type_iterator_object_type): Make extern.
11660         * python/python.c (python_extension_script_ops)
11661         (python_extension_ops): Make extern.
11662         * stap-probe.c (stap_probe_ops): Make extern.
11663
11664 2015-02-11  Pedro Alves  <pedro@codesourcery.com>
11665
11666         * infrun.c (adjust_pc_after_break): Don't adjust the PC just
11667         because the event thread is not the current thread.
11668
11669 2015-02-11  Doug Evans  <xdje42@gmail.com>
11670
11671         * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
11672         been initialized yet, return NULL.
11673
11674 2015-02-11  Doug Evans  <dje@google.com>
11675
11676         * symfile.h (new_symfile_objfile): Delete.
11677         * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
11678         All callers updated.
11679
11680 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
11681
11682         * tui/tui-io.c (tui_handle_resize_during_io): Call
11683         tui_update_gdb_sizes() after resizing the screen.
11684         * tui/tui.c (tui_enable): Resize the terminal before
11685         calling tui_update_gdb_sizes().
11686
11687 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
11688
11689         * tui/tui-io.c (tui_getc): Move cursor to the end of the command
11690         line before printing a newline.
11691
11692 2015-02-11  Mark Wielaard  <mjw@redhat.com>
11693
11694         * utils.c (producer_is_gcc): Return true or false.
11695
11696 2015-02-10  Mark Wielaard  <mjw@redhat.com>
11697
11698         * utils.h (producer_is_gcc): Change return type to bool. Add major
11699         argument.
11700         * utils.c (producer_is_gcc): Likewise.
11701         (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
11702         * dwarf2read.c (check_producer): Likewise.
11703
11704 2015-02-10  Pedro Alves  <palves@redhat.com>
11705
11706         * infrun.c (displaced_step_fixup): Switch to the event thread
11707         before calling gdbarch_displaced_step_fixup.
11708
11709 2015-02-10  Antoine Tremblay <antoine.tremblay@ericsson.com>
11710
11711         * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
11712
11713 2015-02-10  Simon Marchi  <simon.marchi@ericsson.com>
11714
11715         * ada-varobj.c (ada_name_of_child): Constify parent.
11716         (ada_path_expr_of_child): Same.
11717         (ada_value_of_child): Same.
11718         (ada_type_of_child): Same.
11719         * c-varobj.c (c_is_path_expr_parent): Same.
11720         (c_describe_child): Same.
11721         (c_name_of_child): Same.
11722         (c_value_of_child): Same.
11723         (c_type_of_child): Same.
11724         (cplus_number_of_children): Same.
11725         (cplus_describe_child): Constify var.
11726         (cplus_name_of_child): Constify parent.
11727         (cplus_value_of_child): Same.
11728         (cplus_type_of_child): Same.
11729         * jv-varobj.c (java_name_of_child): Same.
11730         (java_value_of_child): Same.
11731         (java_type_of_child): Same.
11732         * varobj.c (value_of_child): Same.
11733         (varobj_default_is_path_expr_parent): Constify var, parent and return
11734         value.
11735         (varobj_get_path_expr): Constify var, modify path_expr through
11736         mutable_var.
11737         (install_new_value): Constify parent.
11738         (value_of_child): Constify parent.
11739         * varobj.h (struct varobj): Constify parent.
11740         (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11741         type_of_child.
11742         (varobj_get_path_expr): Constify var.
11743         (varobj_get_path_expr_parent): Constify var and return value.
11744
11745 2015-02-10  Luis Machado  <lgustavo@codesourcery.com>
11746
11747         * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11748         (arm_prologue_this_id): Move PC and SP limit checks to
11749         arm_prologue_unwind_stop_reason.
11750         (arm_prologue_unwind) <stop_reason> : Set to
11751         arm_prologue_unwind_stop_reason.
11752
11753 2015-02-09  Mark Wielaard  <mjw@redhat.com>
11754
11755         * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11756         DW_LANG_Fortran08 as language_fortran.
11757
11758 2015-02-09  Sergio Durigan Junior  <sergiodj@redhat.com>
11759
11760         PR remote/17946
11761         * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11762         of pointer against char.
11763
11764 2015-02-09  Mark Wielaard  <mjw@redhat.com>
11765
11766         * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11767         (c_type_print_modifier): Likewise.
11768         * dwarf2read.c (read_tag_atomic_type): New function.
11769         (read_type_die_1): Handle DW_TAG_atomic_type.
11770         * gdbtypes.c (make_atomic_type): New function.
11771         (recursive_dump_type): Handle TYPE_ATOMIC.
11772         * gdbtypes.h (enum type_flag_values): Renumber.
11773         (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11774         (TYPE_ATOMIC): New macro.
11775         (make_atomic_type): Declare.
11776
11777 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11778
11779         * btrace.c (ftrace_find_call): Skip gaps.
11780         (ftrace_new_function): Initialize level.
11781         (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11782         (ftrace_new_switch): Update
11783         level computation.
11784         (ftrace_new_gap): New.
11785         (ftrace_update_function): Create new function after gap.
11786         (btrace_compute_ftrace_bts): Create gap on error.
11787         (btrace_stitch_bts): Update parameters.  Clear trace if it
11788         becomes empty.
11789         (btrace_stitch_trace): Update parameters.  Update callers.
11790         (btrace_clear): Reset the number of gaps.
11791         (btrace_insn_get): Return NULL if the iterator points to a gap.
11792         (btrace_insn_number): Return zero if the iterator points to a gap.
11793         (btrace_insn_end): Allow gaps at the end.
11794         (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11795         (btrace_find_insn_by_number): Assert that the found iterator does
11796         not point to a gap.
11797         (btrace_call_next, btrace_call_prev): Assert that the last function
11798         is not a gap.
11799         * btrace.h (btrace_bts_error): New.
11800         (btrace_function): Update comment.
11801         (btrace_function) <insn, insn_offset, number>: Update comment.
11802         (btrace_function) <errcode>: New.
11803         (btrace_thread_info) <ngaps>: New.
11804         (btrace_thread_info) <replay>: Update comment.
11805         (btrace_insn_get): Update comment.
11806         * record-btrace.c (btrace_ui_out_decode_error): New.
11807         (record_btrace_info): Print number of gaps.
11808         (btrace_insn_history, btrace_call_history): Call
11809         btrace_ui_out_decode_error for gaps.
11810         (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11811
11812 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11813
11814         * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11815         * nat/linux-btrace.c: (btrace_this_cpu): New.
11816         (cpu_supports_bts): Call btrace_this_cpu.
11817         (intel_supports_bts): Add cpu parameter.
11818
11819 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11820
11821         * btrace.h (btrace_insn_class): New.
11822         (btrace_insn) <size, iclass>: New.
11823         * btrace.c (ftrace_find_call): Update parameters.  Update users.
11824         Use instruction classification.
11825         (ftrace_new_return): Update parameters.  Update users.
11826         (ftrace_update_function): Update parameters.  Update users.  Use
11827         instruction classification.
11828         (ftrace_update_insns): Update parameters.  Update users.
11829         (ftrace_classify_insn): New.
11830         (btrace_compute_ftrace_bts): Fill in new btrace_insn fields.  Add
11831         TRY_CATCH around call to gdb_insn_length.
11832
11833 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11834
11835         * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11836         Update parameters.  Update users.
11837
11838 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11839
11840         * btrace.c (parse_xml_btrace_conf_bts): Add size.
11841         (btrace_conf_bts_attributes): New.
11842         (btrace_conf_children): Add attributes.
11843         * common/btrace-common.h (btrace_config_bts): New.
11844         (btrace_config)<bts>: New.
11845         (btrace_config): Update comment.
11846         * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11847         Use config.
11848         * features/btrace-conf.dtd: Increment version.  Add size
11849         attribute to bts element.
11850         * record-btrace.c (set_record_btrace_bts_cmdlist,
11851         show_record_btrace_bts_cmdlist): New.
11852         (record_btrace_adjust_size, record_btrace_print_bts_conf,
11853         record_btrace_print_conf, cmd_set_record_btrace_bts,
11854         cmd_show_record_btrace_bts): New.
11855         (record_btrace_info): Call record_btrace_print_conf.
11856         (_initialize_record_btrace): Add commands.
11857         * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11858         (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11859         (btrace_sync_conf): Synchronize bts size.
11860         (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11861         * NEWS: Announce new commands and new packets.
11862
11863 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11864
11865         * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11866         * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11867         (x86_linux_btrace_conf): New.
11868         (x86_linux_create_target): Initialize to_btrace_conf.
11869         * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11870         Check format.  Split into this and ...
11871         (linux_enable_bts): ... this.
11872         (linux_btrace_conf): New.
11873         (perf_event_skip_record): Renamed into ...
11874         (perf_event_skip_bts_record): ... this.  Updated users.
11875         (linux_disable_btrace): Split into this and ...
11876         (linux_disable_bts): ... this.
11877         (linux_read_btrace): Check format.
11878         * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11879         (linux_btrace_conf): New.
11880         (btrace_target_info)<ptid>: Moved.
11881         (btrace_target_info)<conf>: New.
11882         (btrace_target_info): Split into this and ...
11883         (btrace_tinfo_bts): ... this.  Updated users.
11884         * btrace.c (btrace_enable): Update parameters.
11885         (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11886         (btrace_conf_children, btrace_conf_attributes)
11887         (btrace_conf_elements): New.
11888         * btrace.h (btrace_enable): Update parameters.
11889         (btrace_conf, parse_xml_btrace_conf): New.
11890         * common/btrace-common.h (btrace_config): New.
11891         * feature/btrace-conf.dtd: New.
11892         * record-btrace.c (record_btrace_conf): New.
11893         (record_btrace_cmdlist): New.
11894         (record_btrace_enable_warn, record_btrace_open): Pass
11895         &record_btrace_conf.
11896         (record_btrace_info): Print recording format.
11897         (cmd_record_btrace_bts_start): New.
11898         (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11899         (_initialize_record_btrace): Add "record btrace bts" subcommand.
11900         Add "record bts" alias command.
11901         * remote.c (remote_state)<btrace_config>: New.
11902         (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11903         (remote_protocol_features): Add qXfer:btrace-conf:read.
11904         (remote_open_1): Call remote_btrace_reset.
11905         (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11906         (btrace_target_info)<conf>: New.
11907         (btrace_sync_conf, btrace_read_config): New.
11908         (remote_enable_btrace): Update parameters.  Call btrace_sync_conf and
11909         btrace_read_conf.
11910         (remote_btrace_conf): New.
11911         (init_remote_ops): Initialize to_btrace_conf.
11912         (_initialize_remote): Add qXfer:btrace-conf packet.
11913         * target.c (target_enable_btrace): Update parameters.
11914         (target_btrace_conf): New.
11915         * target.h (target_enable_btrace): Update parameters.
11916         (target_btrace_conf): New.
11917         (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11918         (target_ops)<to_enable_btrace>: Update parameters and comment.
11919         (target_ops)<to_btrace_conf>: New.
11920         * target-delegates: Regenerate.
11921         * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11922         (target_debug_print_const_struct_btrace_target_info_p): New.
11923         * NEWS: Announce new command and new packet.
11924
11925 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11926
11927         * nat/linux-btrace.h (perf_event_buffer): New.
11928         (btrace_target_info) <buffer, size, data_head>: Replace with ...
11929         <bts>: ... this.
11930         * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11931         (perf_event_buffer_size, perf_event_buffer_begin)
11932         (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11933         Updated users.
11934         (perf_event_new_data): New.
11935
11936 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11937
11938         * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11939         * record-btrace.c (record_btrace_open): Remove call to
11940         target_supports_btrace.
11941         * remote.c (remote_supports_btrace): Update parameters.
11942         * target.c (target_supports_btrace): Update parameters.
11943         * target.h (to_supports_btrace, target_supports_btrace): Update
11944         parameters.
11945         * target-delegates.c: Regenerate.
11946         * target-debug.h (target_debug_print_enum_btrace_format): New.
11947         * nat/linux-btrace.c
11948         (kernel_supports_btrace): Rename into ...
11949         (kernel_supports_bts): ... this.  Update users.  Update warning text.
11950         (intel_supports_btrace): Rename into ...
11951         (intel_supports_bts): ... this.  Update users.
11952         (cpu_supports_btrace): Rename into ...
11953         (cpu_supports_bts): ... this.  Update users.
11954         (linux_supports_btrace): Update parameters.  Split into this and ...
11955         (linux_supports_bts): ... this.
11956         * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11957
11958 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11959
11960         * Makefile.in (SFILES): Add common/btrace-common.c.
11961         (COMMON_OBS): Add common/btrace-common.o.
11962         (btrace-common.o): Add build rules.
11963         * btrace.c (parse_xml_btrace): Update parameters.
11964         (parse_xml_btrace_block): Set format field.
11965         (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11966         (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11967         (btrace_compute_ftrace): Split into this and...
11968         (btrace_compute_ftrace_bts): ...this.
11969         (btrace_stitch_trace): Split into this and...
11970         (btrace_stitch_bts): ...this.
11971         * btrace.h (parse_xml_btrace): Update parameters.
11972         (make_cleanup_btrace_data): New.
11973         * common/btrace-common.c: New.
11974         * common/btrace-common.h: Include common-defs.h.
11975         (btrace_block_s): Update comment.
11976         (btrace_format): New.
11977         (btrace_format_string): New.
11978         (btrace_data_bts): New.
11979         (btrace_data): New.
11980         (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11981         * remote.c (remote_read_btrace): Update parameters.
11982         * target.c (target_read_btrace): Update parameters.
11983         * target.h (target_read_btrace): Update parameters.
11984         (target_ops)<to_read_btrace>: Update parameters.
11985         * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11986         * target-delegates.c: Regenerate.
11987         * target-debug (target_debug_print_struct_btrace_data_p): New.
11988         * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11989         (linux_read_bts): ...this.
11990         * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11991
11992 2015-02-06  Doug Evans  <dje@google.com>
11993
11994         * remote-m32r-sdi.c: Include symfile.h.
11995
11996 2015-02-06  Doug Evans  <dje@google.com>
11997
11998         * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11999         * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
12000         to here.
12001
12002 2015-02-06  Pedro Alves  <palves@redhat.com>
12003
12004         * linux-thread-db.c (find_new_threads_callback): Add debug output.
12005
12006 2015-02-06  Simon Marchi  <simon.marchi@ericsson.com>
12007
12008         PR gdb/15678
12009         * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
12010         (enable_count_command): Check args for NULL value.
12011
12012 2015-02-05  Doug Evans  <xdje42@gmail.com>
12013
12014         * guile/scm-frame.c: Fix spelling errors in a comment.
12015
12016 2015-02-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
12017
12018         * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
12019         * python/py-value.c (valpy_fetch_lazy): Use it.  Remove cast to the
12020         return type.
12021
12022 2015-02-04  Pedro Alves  <palves@redhat.com>
12023
12024         * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
12025         (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
12026         returns true.
12027         (resume_stopped_resumed_lwps): Don't check whether the thread is
12028         marked as executing.
12029         (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
12030
12031 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
12032
12033         * regset.h (struct regset): Add flags field.
12034         (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
12035         * corelow.c (get_core_register_section): Add warning if the size
12036         exceeds the requested size and the regset does not have the
12037         REGSET_VARIABLE_SIZE flag set.
12038         * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
12039         flag.
12040         * armbsd-tdep.c (armbsd_gregset): Likewise.
12041         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
12042         * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
12043         * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
12044         * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
12045
12046 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
12047
12048         * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
12049         For ".reg-xstate", explicitly specify the requested section size
12050         via X86_XSTATE_SIZE instead of just 0 on input and
12051         X86_XSTATE_MAX_SIZE on output.
12052         * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
12053         Likewise.
12054
12055 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
12056
12057         PR corefiles/17808:
12058         * gdbarch.sh (iterate_over_regset_sections_cb): Document this
12059         function type, particularly its SIZE parameter.
12060         * gdbarch.h: Regenerate.
12061         * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
12062         actual against required size using ">=" instead of "==".
12063         (amd64_collect_fpregset): Likewise.
12064         * i386-tdep.c (i386_supply_gregset): Likewise.
12065         (i386_collect_gregset): Likewise.
12066         (i386_supply_fpregset): Likewise.
12067         (i386_collect_fpregset): Likewise.
12068         * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
12069         (mips_fill_gregset_wrapper): Likewise.
12070         (mips_supply_fpregset_wrapper): Likewise.
12071         (mips_fill_fpregset_wrapper): Likewise.
12072         (mips64_supply_gregset_wrapper): Likewise.
12073         (mips64_fill_gregset_wrapper): Likewise.
12074         (mips64_supply_fpregset_wrapper): Likewise.
12075         (mips64_fill_fpregset_wrapper): Likewise.
12076         * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
12077         (am33_supply_fpregset_method): Likewise.
12078         (am33_collect_gregset_method): Likewise.
12079         (am33_collect_fpregset_method): Likewise.
12080
12081 2015-02-04  Doug Evans  <dje@google.com>
12082             Pedro Alves  <palves@redhat.com>
12083             Eli Zaretskii  <eliz@gnu.org>
12084
12085         PR tui/17810
12086         * tui/tui-command.c (tui_refresh_cmd_win): New function.
12087         * tui/tui-command.c (tui_refresh_cmd_win): Declare.
12088         * tui/tui-file.c: #include tui/tui-command.h.
12089         (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
12090         (tui_file_flush): Refresh command window if stream is gdb_stdout.
12091         * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
12092
12093 2015-02-04  Pedro Alves  <palves@redhat.com>
12094
12095         Fix build breakage.
12096         * event-loop.c (gdb_do_one_event): Add default switch case.
12097
12098 2015-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
12099
12100         Filter out inferior gcc option -fpreprocessed.
12101         * compile/compile.c (filter_args): New function.
12102         (get_args): Use it.
12103
12104 2015-02-03  Pedro Alves  <palves@redhat.com>
12105
12106         * event-loop.c: Don't declare nor define a queue type for
12107         gdb_event_p.
12108         (event_queue): Delete.
12109         (create_event, create_file_event, gdb_event_xfree)
12110         (initialize_event_loop, process_event): Delete.
12111         (gdb_do_one_event): Return as soon as one event is handled.
12112         (handle_file_event): Change prototype.  Used the passed in
12113         file_handler pointer and ready_mask instead of looping over all
12114         file handlers.
12115         (gdb_wait_for_event): Update the poll/select timeouts before
12116         blocking.  Run event handlers directly instead of queueing events.
12117         Return as soon as one event is handled.
12118         (struct async_event_handler_data): Delete.
12119         (invoke_async_event_handler): Delete.
12120         (check_async_event_handlers): Change return type to int.  Run
12121         event handlers directly instead of queueing events.  Return as
12122         soon as one event is handled.
12123         (handle_timer_event): Delete.
12124         (update_wait_timeout): New function, factored out from
12125         poll_timers.
12126         (poll_timers): Reimplement.
12127         * event-loop.h (initialize_event_loop): Delete declaration.
12128         * top.c (gdb_init): Don't call initialize_event_loop.
12129
12130 2015-02-03  Pedro Alves  <palves@redhat.com>
12131
12132         * event-loop.c (clear_async_event_handler): New function.
12133         * event-loop.h (clear_async_event_handler): New declaration.
12134         * record-btrace.c (record_btrace_async): New function.
12135         (init_record_btrace_ops): Install record_btrace_async.
12136         * record-full.c (record_full_async): New function.
12137         (record_full_resume): Don't mark the async event source here.
12138         (init_record_full_ops): Install record_full_async.
12139         (record_full_core_resume): Don't mark the async event source here.
12140         (init_record_full_core_ops): Install record_full_async.
12141         * remote.c (remote_async): Mark and clear the async stop reply
12142         queue event-loop token as appropriate.
12143
12144 2015-02-03  Pedro Alves  <palves@redhat.com>
12145
12146         * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
12147         target_is_async_p instead of target_can_async.
12148         (linux_nat_wait): Use target_is_async_p instead of
12149         target_can_async.  Don't enable async here.
12150         * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
12151         target_is_async_p instead of target_can_async.
12152
12153 2015-02-02  Simon Marchi  <simon.marchi@ericsson.com>
12154
12155         * varobj.h (lang_varobj_ops): Mention which return values need
12156         to be freed.
12157
12158 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
12159
12160         * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
12161
12162 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
12163
12164         PR gdb/17856:
12165         * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
12166         results found in the cache.
12167
12168 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
12169
12170         PR gdb/17854:
12171         * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
12172         when allocating a new one.
12173
12174 2015-02-01  Tom Tromey  <tom@tromey.com>
12175
12176         * MAINTAINERS: Remove myself.
12177
12178 2015-01-31  Doug Evans  <xdje42@gmail.com>
12179
12180         * dwarf2read.c (process_structure_scope): Update setting of
12181         TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
12182         * gdbtypes.c (internal_type_vptr_fieldno): New function.
12183         (set_type_vptr_fieldno): New function.
12184         (internal_type_vptr_basetype): New function.
12185         (set_type_vptr_basetype): New function.
12186         (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
12187         TYPE_VPTR_BASETYPE.
12188         (allocate_cplus_struct_type): Initialize vptr_fieldno.
12189         (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
12190         (print_cplus_stuff): ... moved here.
12191         (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
12192         * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
12193         moved to ...
12194         (struct cplus_struct_type): ... here.  All uses updated.
12195         (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
12196         (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
12197         (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
12198         * stabsread.c (read_tilde_fields): Update setting of
12199         TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
12200
12201 2015-01-31  Doug Evans  <xdje42@gmail.com>
12202
12203         * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
12204         to self_p.
12205         (cp_print_class_member): Rename local domain to self_type.
12206         * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
12207         domain_type to self_type.
12208         (set_die_type) <need_gnat_info>: Handle
12209         TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
12210         * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
12211         TYPE_SPECIFIC_SELF_TYPE.
12212         * gdbtypes.c (internal_type_self_type): New function.
12213         (set_type_self_type): New function.
12214         (smash_to_memberptr_type): Rename parameter domain to self_type.
12215         Update setting of TYPE_SELF_TYPE.
12216         (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
12217         (smash_to_method_type): Rename parameter domain to self_type.
12218         Update setting of TYPE_SELF_TYPE.
12219         (check_stub_method): Call smash_to_method_type.
12220         (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
12221         (copy_type_recursive): Ditto.
12222         * gdbtypes.h (enum type_specific_kind): New value
12223         TYPE_SPECIFIC_SELF_TYPE.
12224         (struct main_type) <type_specific>: New member self_type.
12225         (struct cplus_struct_type) <fn_field.type>: Update comment.
12226         (TYPE_SELF_TYPE): Rewrite.
12227         (internal_type_self_type, set_type_self_type): Declare.
12228         * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
12229         self_type.
12230         (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
12231         * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
12232         TYPE_TARGET_TYPE.
12233         * stabsread.c (read_member_functions): Mark methods with
12234         TYPE_CODE_METHOD, not TYPE_CODE_FUNC.  Update setting of
12235         TYPE_SELF_TYPE.
12236
12237 2015-01-31  Doug Evans  <xdje42@gmail.com>
12238
12239         * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
12240         All uses updated.
12241
12242 2015-01-31  Doug Evans  <xdje42@gmail.com>
12243
12244         * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
12245         or unions.  Return zero if union.
12246         (gnuv3_get_vtable): Call check_typedef.  Assert only passed structs.
12247         (gnuv3_rtti_type): Pass already-check_typedef'd value to
12248         gnuv3_get_vtable.
12249         (compute_vtable_size): Assert only passed structs.
12250         (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
12251
12252 2015-01-31  Doug Evans  <xdje42@gmail.com>
12253
12254         * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
12255         kinds.
12256
12257 2015-01-31  Gary Benson <gbenson@redhat.com>
12258             Doug Evans  <dje@google.com>
12259
12260         PR cli/9007
12261         PR cli/11920
12262         PR cli/15548
12263         * cli/cli-cmds.c (complete_command): Notify user if max-completions
12264         reached.
12265         * common/common-exceptions.h (enum errors)
12266         <MAX_COMPLETIONS_REACHED_ERROR>: New value.
12267         * completer.h (get_max_completions_reached_message): New declaration.
12268         (max_completions): Likewise.
12269         (completion_tracker_t): New typedef.
12270         (new_completion_tracker): New declaration.
12271         (make_cleanup_free_completion_tracker): Likewise.
12272         (maybe_add_completion_enum): New enum.
12273         (maybe_add_completion): New declaration.
12274         (throw_max_completions_reached_error): Likewise.
12275         * completer.c (max_completions): New global variable.
12276         (new_completion_tracker): New function.
12277         (free_completion_tracker): Likewise.
12278         (make_cleanup_free_completion_tracker): Likewise.
12279         (maybe_add_completions): Likewise.
12280         (throw_max_completions_reached_error): Likewise.
12281         (complete_line): Remove duplicates and limit result to max_completions
12282         entries.
12283         (get_max_completions_reached_message): New function.
12284         (gdb_display_match_list): Handle max_completions.
12285         (_initialize_completer): New declaration and function.
12286         * symtab.c: Include completer.h.
12287         (completion_tracker): New static variable.
12288         (completion_list_add_name): Call maybe_add_completion.
12289         (default_make_symbol_completion_list_break_on_1): Renamed from
12290         default_make_symbol_completion_list_break_on.  Maintain
12291         completion_tracker across calls to completion_list_add_name.
12292         (default_make_symbol_completion_list_break_on): New function.
12293         * top.c (init_main): Set rl_completion_display_matches_hook.
12294         * tui/tui-io.c: Include completer.h.
12295         (tui_old_rl_display_matches_hook): New static global.
12296         (tui_rl_display_match_list): Notify user if max-completions reached.
12297         (tui_setup_io): Save/restore rl_completion_display_matches_hook.
12298         * NEWS (New Options): Mention set/show max-completions.
12299
12300 2015-01-31  Gary Benson  <gbenson@redhat.com>
12301
12302         * symtab.c (struct add_name_data) <code>: New field.
12303         Updated comments.
12304         (add_symtab_completions): New function.
12305         (symtab_expansion_callback): Likewise.
12306         (default_make_symbol_completion_list_break_on): Set datum.code.
12307         Move minimal symbol scan before calling expand_symtabs_matching.
12308         Scan known primary symtabs for externs and statics before calling
12309         expand_symtabs_matching.  Pass symtab_expansion_callback as
12310         expansion_notify argument to expand_symtabs_matching.  Do not scan
12311         primary symtabs for externs and statics after calling
12312         expand_symtabs_matching.
12313
12314 2015-01-31  Gary Benson  <gbenson@redhat.com>
12315
12316         * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
12317         (struct quick_symbol_functions) <expand_symtabs_matching>:
12318         New argument expansion_notify.  All uses updated.
12319         (expand_symtabs_matching): New argument expansion_notify.
12320         All uses updated.
12321         * symfile-debug.c (debug_qf_expand_symtabs_matching):
12322         Also print expansion notify.
12323         * symtab.c (expand_symtabs_matching_via_partial): Call
12324         expansion_notify whenever a partial symbol table is expanded.
12325         * dwarf2read.c (dw2_expand_symtabs_matching): Call
12326         expansion_notify whenever a symbol table is instantiated.
12327
12328 2015-01-31  Doug Evans  <xdje42@gmail.com>
12329
12330         * cli-out.c: #include completer.h, readline/readline.h.
12331         (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
12332         (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
12333         (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
12334         * cli-out.h (cli_display_match_list): Declare.
12335         * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
12336         (ELLIPSIS_LEN): Ditto.
12337         (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
12338         (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
12339         (gdb_fnprint, gdb_print_filename): Ditto.
12340         (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
12341         (gdb_display_match_list): Ditto.
12342         * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
12343         (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
12344         (mld_beep_ftype, mld_read_key_ftype): Ditto.
12345         (match_list_displayer): New struct.
12346         (gdb_display_match_list): Declare.
12347         * top.c (init_main): Set rl_completion_display_matches_hook.
12348         * tui/tui-io.c: #include completer.h.
12349         (printable_part, PUTX, print_filename, get_y_or_n): Delete.
12350         (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
12351         (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
12352         (tui_mld_getc, tui_mld_read_key): Ditto.
12353         (tui_rl_display_match_list): Rewrite.
12354         (tui_handle_resize_during_io): New arg for_completion.  All callers
12355         updated.
12356
12357 2015-01-31  Doug Evans  <xdje42@gmail.com>
12358
12359         Add symbol lookup cache.
12360         * NEWS: Document new options and commands.
12361         * symtab.c (symbol_cache_key): New static global.
12362         (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
12363         (SYMBOL_LOOKUP_FAILED): New macro.
12364         (symbol_cache_slot_state): New enum.
12365         (block_symbol_cache): New struct.
12366         (symbol_cache): New struct.
12367         (new_symbol_cache_size, symbol_cache_size): New static globals.
12368         (hash_symbol_entry, eq_symbol_entry): New functions.
12369         (symbol_cache_byte_size, resize_symbol_cache): New functions.
12370         (make_symbol_cache, free_symbol_cache): New functions.
12371         (get_symbol_cache, symbol_cache_cleanup): New function.
12372         (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
12373         (symbol_cache_lookup, symbol_cache_clear_slot): New function.
12374         (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
12375         (symbol_cache_flush, symbol_cache_dump): New functions.
12376         (maintenance_print_symbol_cache): New function.
12377         (maintenance_flush_symbol_cache): New function.
12378         (symbol_cache_stats): New function.
12379         (maintenance_print_symbol_cache_statistics): New function.
12380         (symtab_new_objfile_observer): New function.
12381         (symtab_free_objfile_observer): New function.
12382         (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
12383         (_initialize_symtab): Init symbol_cache_key.  New parameter
12384         maint symbol-cache-size.  New maint commands print symbol-cache,
12385         print symbol-cache-statistics, flush-symbol-cache.
12386         Install new_objfile, free_objfile observers.
12387
12388 2015-01-31  Joel Brobecker  <brobecker@adacore.com>
12389
12390         PR symtab/17855
12391         * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
12392         to end.
12393
12394 2015-01-31  Doug Evans  <xdje42@gmail.com>
12395
12396         * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
12397         * auto-load.c: #include ctype.h.
12398         (struct auto_load_pspace_info): Replace member loaded_scripts with
12399         new members loaded_script_files, loaded_script_texts.
12400         (auto_load_pspace_data_cleanup): Update.
12401         (init_loaded_scripts_info): Update.
12402         (get_auto_load_pspace_data_for_loading): Update.
12403         (maybe_add_script_file): Renamed from maybe_add_script.  All callers
12404         updated.
12405         (maybe_add_script_text): New function.
12406         (clear_section_scripts): Update.
12407         (source_script_file, execute_script_contents): New functions.
12408         (source_section_scripts): Add support for
12409         SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
12410         (print_scripts): New function.
12411         (auto_load_info_scripts): Also print inlined scripts.
12412         (maybe_print_unsupported_script_warning): Renamed from
12413         unsupported_script_warning_print.  All callers updated.
12414         (maybe_print_script_not_found_warning): Renamed from
12415         script_not_found_warning_print.  All callers updated.
12416         * extension-priv.h (struct extension_language_script_ops): New member
12417         objfile_script_executor.
12418         * extension.c (ext_lang_objfile_script_executor): New function.
12419         * extension.h (objfile_script_executor_func): New typedef.
12420         (ext_lang_objfile_script_executor): Declare.
12421         * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
12422         * guile/guile.c (guile_extension_script_ops): Update.
12423         * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
12424         * python/python.c (python_extension_script_ops): Update.
12425         (gdbpy_execute_objfile_script): New function.
12426
12427 2015-01-31  Eli Zaretskii  <eliz@gnu.org>
12428
12429         * tui/tui-io.c (tui_expand_tabs): New function.
12430         (tui_puts, tui_redisplay_readline): Expand TABs into the
12431         appropriate number of spaces.
12432         * tui/tui-regs.c: Include tui-io.h.
12433         (tui_register_format): Call tui_expand_tabs to expand TABs into
12434         the appropriate number of spaces.
12435         * tui/tui-io.h: Add prototype for tui_expand_tabs.
12436
12437 2015-01-30  Doug Evans  <dje@google.com>
12438
12439         * NEWS: "info source" command now display producer string if present.
12440         * source.c (source_info): Print producer string if present.
12441
12442 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12443
12444         * varobj.c (varobj_delete): Fix comment.
12445
12446 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12447
12448         * varobj.c (create_child): Modify comment.
12449
12450 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12451
12452         * ada-varobj.c (ada_number_of_children): Constify struct varobj *
12453         parameter.
12454         (ada_name_of_variable): Same.
12455         (ada_path_expr_of_child): Same.
12456         (ada_value_of_variable): Same.
12457         (ada_value_is_changeable_p): Same.
12458         (ada_value_has_mutated): Same.
12459         * c-varobj.c (varobj_is_anonymous_child): Same.
12460         (c_is_path_expr_parent): Same.
12461         (c_number_of_children): Same.
12462         (c_name_of_variable): Same.
12463         (c_path_expr_of_child): Same.
12464         (get_type): Same.
12465         (c_value_of_variable): Same.
12466         (cplus_number_of_children): Same.
12467         (cplus_name_of_variable): Same.
12468         (cplus_path_expr_of_child): Same.
12469         (cplus_value_of_variable): Same.
12470         * jv-varobj.c (java_number_of_children): Same.
12471         (java_name_of_variable): Same.
12472         (java_path_expr_of_child): Same.
12473         (java_value_of_variable): Same.
12474         * varobj.c (number_of_children): Same.
12475         (name_of_variable): Same.
12476         (is_root_p): Same.
12477         (varobj_ensure_python_env): Same.
12478         (varobj_get_objname): Same.
12479         (varobj_get_expression): Same.
12480         (varobj_get_display_format): Same.
12481         (varobj_get_display_hint): Same.
12482         (varobj_has_more): Same.
12483         (varobj_get_thread_id): Same.
12484         (varobj_get_frozen): Same.
12485         (dynamic_varobj_has_child_method): Same.
12486         (varobj_get_gdb_type): Same.
12487         (is_path_expr_parent): Same.
12488         (varobj_default_is_path_expr_parent): Same.
12489         (varobj_get_language): Same.
12490         (varobj_get_attributes): Same.
12491         (varobj_is_dynamic_p): Same.
12492         (varobj_get_child_range): Same.
12493         (varobj_value_has_mutated): Same.
12494         (varobj_get_value_type): Same.
12495         (number_of_children): Same.
12496         (name_of_variable): Same.
12497         (check_scope): Same.
12498         (varobj_editable_p): Same.
12499         (varobj_value_is_changeable_p): Same.
12500         (varobj_floating_p): Same.
12501         (varobj_default_value_is_changeable_p): Same.
12502
12503 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12504
12505         * varobj.c (varobj_get_path_expr): Set var->path_expr.
12506         * c-varobj.c (c_path_expr_of_child): Set local var instead of
12507         child->path_expr.
12508         (cplus_path_expr_of_child): Same.
12509
12510 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12511
12512         * mi-cmd-var.c (print_varobj): Free varobj_get_expression
12513         result.
12514         (mi_cmd_var_info_expression): Same.
12515         * varobj.c (varobj_get_expression): Mention in the comment that
12516         the result must by freed by the caller.
12517
12518 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12519
12520         * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
12521         varobj_get_type.
12522         (varobj_update_one): Same.
12523         * varobj.c (update_type_if_necessary): Free curr_type_str and
12524         new_type_str.
12525         (varobj_get_type): Specify in comment that the result needs to be
12526         freed by the caller.
12527
12528 2015-01-29  Doug Evans  <dje@google.com>
12529
12530         PR symtab/17890
12531         * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
12532
12533 2015-01-25  Mark Wielaard  <mjw@redhat.com>
12534
12535         * dwarf2read.c (checkproducer): Call producer_is_gcc.
12536         * utils.c (producer_is_gcc_ge_4): Likewise.
12537         (producer_is_gcc): New function.
12538         * utils.h (producer_is_gcc): New declaration.
12539
12540 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12541
12542         * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
12543         kind.
12544         * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
12545         parameter by "addr_stack" parameter.
12546         (resolve_dynamic_range): Replace "addr" parameter by
12547         "stack_addr" parameter.  Update function documentation.
12548         Update code accordingly.
12549         (resolve_dynamic_array, resolve_dynamic_union)
12550         (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
12551         (resolve_dynamic_type): Update code, following the changes made
12552         to resolve_dynamic_type_internal's interface.
12553         * dwarf2loc.h (struct property_addr_info): New.
12554         (dwarf2_evaluate_property): Replace "address" parameter
12555         by "addr_stack" parameter.  Adjust function documentation.
12556         (struct dwarf2_offset_baton): New.
12557         (struct dwarf2_property_baton): Update documentation of
12558         field "referenced_type" to be more general. New field
12559         "offset_info" in union data field.
12560         * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
12561         parameter by "addr_stack" parameter.  Adjust code accordingly.
12562         Add support for PROP_ADDR_OFFSET properties.
12563         * dwarf2read.c (attr_to_dynamic_prop): Add support for
12564         DW_AT_data_member_location attributes as well.  Use case
12565         statements instead of if/else condition.
12566
12567 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12568
12569         * ada-varobj.c (ada_varobj_get_array_number_of_children):
12570         Return zero if PARENT_VALUE is NULL and parent_type's
12571         range type is dynamic.
12572
12573 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12574
12575         * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
12576         nonzero if the type's subtype is dynamic.
12577         (resolve_dynamic_range): Also resolve the range's subtype.
12578
12579 2015-01-29  Alexander Klimov  <alserkli@inbox.ru>  (tiny patch)
12580
12581         Pushed by Joel Brobecker  <brobecker@adacore.com>.
12582         * symfile.c (unmap_overlay_command): Initialize sec to NULL.
12583
12584 2015-01-27  Doug Evans  <dje@google.com>
12585
12586         * NEWS: Mention gdb.Objfile.username.
12587         * python/py-objfile.c (objfpy_get_username): New function.
12588         (objfile_getset): Add "username".
12589
12590 2015-01-24  Mark Wielaard  <mjw@redhat.com>
12591
12592         * stack.c (return_command): Markup warning message with _.
12593
12594 2015-01-24  Doug Evans  <xdje42@gmail.com>
12595
12596         * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
12597
12598 2015-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
12599
12600         Fix 100x slowdown regression on DWZ files.
12601         * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
12602         (struct line_header): Add offset and offset_in_dwz.
12603         (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
12604         (free_line_header_voidp): New declaration.
12605         (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
12606         functions.
12607         (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
12608         (handle_DW_AT_stmt_list): Use line_header_hash.
12609         (free_line_header_voidp): New function.
12610         (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
12611         (dwarf_decode_lines): New parameter decode_mapping, use it.
12612         (dwarf2_free_objfile): Free line_header_hash.
12613
12614 2015-01-23  Simon Marchi  <simon.marchi@ericsson.com>
12615
12616         PR gdb/17416
12617         * valops.c (value_rtti_indirect_type): Catch exception thrown by
12618         value_ind.
12619
12620 2015-01-15  Mark Wielaard  <mjw@redhat.com>
12621
12622         * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
12623         DW_AT_noreturn.
12624         * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
12625         calling_convention an 8 bit bit field.
12626         (TYPE_NO_RETURN): New macro.
12627         * infcmd.c (finish_command): Query if function does not return
12628         normally.
12629         * stack.c (return_command): Likewise.
12630
12631 2015-01-23  Pedro Alves  <palves@redhat.com>
12632
12633         * linux-nat.c (linux_is_async_p): New macro.
12634         (linux_nat_is_async_p):
12635         (linux_nat_terminal_inferior): Check whether the target can async
12636         instead of whether it is already async.
12637         (linux_nat_terminal_ours): Don't check whether the target is
12638         async.
12639         (linux_async_pipe): Use linux_is_async_p.
12640
12641 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12642
12643         * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
12644         '-ascending'.
12645         * thread.c (tp_array_compar_ascending, tp_array_compar): New.
12646         (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
12647         Sort tp_array using tp_array_compar.
12648         (_initialize_thread): Extend thread_apply_all_command help.
12649
12650 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12651
12652         * corelow.c (core_open): Call also thread_command.
12653         * gdbthread.h (thread_command): New prototype moved from ...
12654         * thread.c (thread_command): ... here.
12655         (thread_command): Make it global.
12656
12657 2015-01-22  Pedro Alves  <palves@redhat.com>
12658
12659         * configure.ac [*mingw32*]: Check $curses_found instead of
12660         $prefer_curses.
12661         * configure: Regenerate.
12662         * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
12663         HAVE_NCURSES_NCURSES_H checks.
12664
12665 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
12666
12667         * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
12668         fails with the 1st arg NULL, try again with "unknown".  Don't test
12669         the "cup" capability: it isn't supported by the Windows port of
12670         ncurses, but the Windows console driver is still capable of
12671         supporting TUI.
12672
12673 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12674
12675         * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
12676
12677 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
12678
12679         * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
12680         (ALLDEPFILES): Remove irix5-nat.c.  These two are part of the
12681         reason that "make TAGS" is broken.
12682
12683 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
12684
12685         * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
12686         and check additional store instructions.
12687
12688 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
12689
12690         * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
12691
12692 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
12693
12694         * ppc-linux-tdep.c (ppc_skip_trampoline_code,
12695         ppc_canonicalize_syscall, ppc_linux_syscall_record,
12696         ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
12697         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12698         * rs6000-tdep.c (rs6000_epilogue_frame_cache,
12699         rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
12700         rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
12701         ppc_process_record_op19, ppc_process_record_op31,
12702         ppc_process_record_op59, ppc_process_record_op60,
12703         ppc_process_record_op63): Likewise.
12704
12705 2015-01-20  Joel Brobecker  <brobecker@adacore.com>
12706
12707         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
12708         (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
12709         strerror.
12710
12711 2015-01-20  Wei-cheng Wang  <cole945@gmail.com>
12712
12713         * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
12714         ppc_process_record_op31, ppc_process_record_op59,
12715         ppc_process_record_op60, ppc_process_record_op63,
12716         ppc_process_record): Fix -Wformat warning.
12717         * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12718         Remove unused variables.
12719
12720 2015-01-20  Chen Gang  <gang.chen.5i5j@gmail.com>
12721
12722         * MAINTAINERS (Write After Approval): Add "Chen Gang".
12723
12724 2015-01-19  Eli Zaretskii  <eliz@gnu.org>
12725
12726         * configure.ac [*mingw32*]: Only add windows-termcap.o to
12727         CONFIG_OBS if not building with a curses library.
12728         * configure: Regenerate.
12729
12730         * windows-termcap.c: Include defs.h.  Make the whole body empty if
12731         either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12732         HAVE_NCURSES_NCURSES_H is defined.
12733
12734 2015-01-19  Joel Brobecker  <brobecker@adacore.com>
12735
12736         * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12737         from end of line to start of next line.
12738
12739 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12740
12741         * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12742         Scan PLT stub backward for reverse debugging.
12743         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12744
12745 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12746             Ulrich Weigand  <uweigand@de.ibm.com>
12747
12748         * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12749         gdb_target_obs.
12750         (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12751         record.
12752         (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12753         ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12754         (ppc_linux_init_abi): Set process_record, process_record_signal.
12755         * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12756         ppc_linux_record_tdep to gdbarch_tdep.
12757         (ppc_process_record): New declaration.
12758         * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12759         ppc_process_record_op19, ppc_process_record_op31,
12760         ppc_process_record_op59, ppc_process_record_op60,
12761         ppc_process_record_op63, ppc_process_record): New functions.
12762
12763 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12764
12765         * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12766         rs6000_in_function_epilogue_frame_p and add an argument
12767         for frame_info.
12768         (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12769         rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12770         New functions.
12771         (rs6000_epilogue_frame_unwind): New.
12772         (rs6000_gdbarch_init): Append epilogue unwinder.
12773
12774 2015-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
12775
12776         * nat/linux-personality.c: Replace "#ifndef
12777         HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12778         !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12779         systems.
12780
12781 2015-01-16  Eli Zaretskii  <eliz@gnu.org>
12782
12783         * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12784         functions.
12785         (_initialize_tui_win) <border-kind, border-mode>:
12786         <active-border-mode>: Use tui_set_var_cmd as the "set" function.
12787         (tui_set_tab_width_command): Fix the commentary.
12788
12789         * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12790
12791         * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12792         Doc fix.
12793         (tui_set_tab_width_command): Delete and recreate the source and
12794         the disassembly windows, to show the effect of the changed tab
12795         size immediately.
12796
12797         * tui/tui-data.h (LINE_PREFIX): Make shorter
12798         (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12799         "Thread NNNNN.XXXX" thread ID notation on Windows.
12800
12801 2015-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12802
12803         Fix gcc-5 compilation.
12804         * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12805
12806 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
12807
12808         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12809         (linux-personality.o): New rule.
12810         * common/common-defs.h: Include <stdint.h>.
12811         * config/aarch64/linux.mh (NATDEPFILES): Include
12812         linux-personality.o.
12813         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12814         * config/arm/linux.mh (NATDEPFILES): Likewise.
12815         * config/i386/linux64.mh (NATDEPFILES): Likewise.
12816         * config/i386/linux.mh (NATDEPFILES): Likewise.
12817         * config/ia64/linux.mh (NATDEPFILES): Likewise.
12818         * config/m32r/linux.mh (NATDEPFILES): Likewise.
12819         * config/m68k/linux.mh (NATDEPFILES): Likewise.
12820         * config/mips/linux.mh (NATDEPFILES): Likewise.
12821         * config/pa/linux.mh (NATDEPFILES): Likewise.
12822         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12823         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12824         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12825         * config/s390/linux.mh (NATDEPFILES): Likewise.
12826         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12827         * config/sparc/linux.mh (NATDEPFILES): Likewise.
12828         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12829         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12830         * defs.h: Remove #include <stdint.h> (moved to
12831         common/common-defs.h).
12832         * linux-nat.c: Include nat/linux-personality.h.  Remove #include
12833         <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12834         nat/linux-personality.c).
12835         (linux_nat_create_inferior): Remove code to disable address space
12836         randomization (moved to nat/linux-personality.c).  Create cleanup
12837         to disable address space randomization.
12838         * nat/linux-personality.c: New file.
12839         * nat/linux-personality.h: Likewise.
12840
12841 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
12842
12843         * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12844         common/posix-strerror.c.
12845         (posix-strerror.o): New rule.
12846         (mingw-strerror.o): Likewise.
12847         * common/common-utils.h (safe_strerror): Move prototype to here,
12848         from utils.h.
12849         * common/common.host: New file.
12850         * common/mingw-strerror.c: Likewise.
12851         * common/posix-strerror.c: Likewise.
12852         * configure: Regenerated.
12853         * configure.ac: Source common/common.host.  Add variable
12854         common_host_obs to gdb_host_obs.
12855         * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12856         gdb/common/posix-strerror.c when warning about the use of
12857         strerror.
12858         * mingw-hdep.c (safe_strerror): Remove definition; move it to
12859         common/mingw-strerror.c.
12860         * posix-hdep.c (safe_strerror): Remove definition; move it to
12861         common/posix-hdep.c.
12862         * utils.h (safe_strerror): Remove prototype; move to
12863         common/common-utils.h.
12864
12865 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
12866
12867         GDB 7.8.2 released.
12868
12869 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
12870
12871         * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12872         ___XA type if the array has already been fixed.
12873
12874 2015-01-14  Yao Qi  <yao@codesourcery.com>
12875
12876         * Makefile.in (ppc-linux.o): New rule.
12877         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12878         * configure.ac: AC_CHECK_FUNCS(getauxval).
12879         * config.in: Re-generated.
12880         * configure: Re-generated.
12881         * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12882         Declare.
12883         * nat/ppc-linux.c: New file.
12884         * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12885         Call ppc64_64bit_inferior_p.
12886
12887 2015-01-14  Yao Qi  <yao@codesourcery.com>
12888
12889         * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12890         nat/ppc-linux.h.
12891         (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12892         (PPC_FEATURE_HAS_DFP): Likewise.
12893         (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12894         (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12895         (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12896         Include "nat/ppc-linux.h".
12897         * nat/ppc-linux.h: New file.
12898         * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12899
12900 2015-01-14  Pedro Alves  <palves@redhat.com>
12901
12902         PR gdb/17525
12903         * breakpoint.c: Include "interps.h".
12904         (bpstat_do_actions_1): Also check whether the interpreter is
12905         async.
12906
12907 2015-01-14  Pedro Alves  <palves@redhat.com>
12908
12909         PR cli/17828
12910         * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12911         reinstall if the interpreter is sync.
12912
12913 2015-01-13  Doug Evans  <dje@google.com>
12914
12915         * objfiles.c (objfile_filename): New function.
12916         * objfiles.h (objfile_filename): Declare it.
12917         (objfile_name): Add function comment.
12918         * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12919         bfd file name (which may be realpath'd), and the original name.
12920
12921 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12922
12923         * NEWS: Create a new section for the next release branch.
12924         Rename the section of the current branch, now that it has
12925         been cut.
12926
12927 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12928
12929         GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12930         * version.in: Bump version to 7.9.50.DATE-cvs.
12931
12932 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12933
12934         * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12935         Remove trailing new-line in argument of call to warning.
12936
12937 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12938
12939         * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12940         new-line in argument of call to "warning".
12941
12942 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12943
12944         * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12945         in static block, then try searching for primitive types.
12946
12947 2015-01-12  Patrick Palka  <patrick@parcs.ath.cx>
12948
12949         * top.h (gdb_add_history): Declare.
12950         * top.c (command_count): New variable.
12951         (gdb_add_history): New function.
12952         (gdb_safe_append_history): New static function.
12953         (quit_force): Call it.
12954         (command_line_input): Use gdb_add_history instead of
12955         add_history.
12956         * event-top.c (command_line_handler): Likewise.
12957
12958 2015-01-12  James Clarke  <jrtc27@jrtc27.com>  (tiny patch)
12959
12960         PR gdb/17046
12961         * darwin-nat.c: Replace <machine/setjmp.h> #include by
12962         <setjmp.h> #include.
12963
12964 2015-01-11  Doug Evans  <xdje42@gmail.com>
12965
12966         * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12967
12968 2015-01-11  Doug Evans  <xdje42@gmail.com>
12969
12970         PR gdb/15830
12971         * NEWS: The "maint demangle" command is renamed as "demangle".
12972         * demangle.c: #include cli/cli-utils.h, language.h.
12973         (demangle_command): New function.
12974         (_initialize_demangle): Add new command "demangle".
12975         * maint.c (maintenance_demangle): Stub out.
12976         (_initialize_maint_cmds): Update help text for "maint demangle",
12977         and mark as deprecated.
12978
12979 2015-01-11  Mark Kettenis  <kettenis@gnu.org>
12980
12981         * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12982         inferior_thread is a function.
12983
12984 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
12985
12986         * Makefile.in (.y.c): Don't munge yacc's #line
12987         directives.
12988
12989 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
12990
12991         * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12992         to prompt for input.
12993         * tui/tui-hooks.c (tui_query_hook): Remove.
12994         (tui_install_hooks): Don't set deprecated_query_hook.
12995         * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12996         height calculation.  Always update the command window's cur_line.
12997
12998 2015-01-09  Pedro Alves  <palves@redhat.com>
12999
13000         * breakpoint.c (hardware_breakpoint_inserted_here_p): New
13001         function.
13002         * breakpoint.h (hardware_breakpoint_inserted_here_p): New
13003         declaration.
13004         * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
13005         (linux_resume_one_lwp): Store the thread's PC.  Adjust to clear
13006         stop_reason.
13007         (check_stopped_by_watchpoint): New function.
13008         (save_sigtrap): Reimplement.
13009         (linux_nat_stopped_by_watchpoint): Adjust.
13010         (linux_nat_lp_status_is_event): Delete.
13011         (stop_wait_callback): Only call save_sigtrap after storing the
13012         pending status.
13013         (status_callback): If the thread had been stopped for a breakpoint
13014         that has since been removed, discard the event and resume the LWP.
13015         (count_events_callback, select_event_lwp_callback): Use
13016         lwp_status_pending_p instead of linux_nat_lp_status_is_event.
13017         (cancel_breakpoint): Rename to ...
13018         (check_stopped_by_breakpoint): ... this.  Record whether the LWP
13019         stopped for a software breakpoint or hardware breakpoint.
13020         (select_event_lwp): Only give preference to the stepping LWP in
13021         all-stop mode.  Adjust comments.
13022         (stop_and_resume_callback): Remove references to new_pending_p.
13023         (linux_nat_filter_event): Likewise.  Leave exit events of the
13024         leader thread pending here.  Handle signal short circuiting here.
13025         Only call save_sigtrap after storing the pending waitstatus.
13026         (linux_nat_wait_1): Remove 'retry' label.  Remove references to
13027         new_pending.  Don't handle leaving events the caller is not
13028         interested in pending here, nor handle signal short-circuiting
13029         here.  Also give equal priority to all LWPs that have had events
13030         in non-stop mode.  If reporting a software breakpoint event,
13031         unadjust the LWP's PC.
13032         * linux-nat.h (enum lwp_stop_reason): New.
13033         (struct lwp_info) <stop_pc>: New field.
13034         (struct lwp_info) <stopped_by_watchpoint>: Delete field.
13035         (struct lwp_info) <stop_reason>: New field.
13036         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
13037
13038 2015-01-09  Pedro Alves  <palves@redhat.com>
13039
13040         * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
13041         Set the LWP's 'resumed' flag.
13042
13043 2015-01-09  Pedro Alves  <palves@redhat.com>
13044
13045         * linux-nat.c (linux_resume_one_lwp): New function.
13046         (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
13047         (linux_nat_resume): Use lwp_status_pending_p and
13048         linux_resume_one_lwp.
13049         (linux_handle_syscall_trap): Use linux_resume_one_lwp.
13050         (linux_handle_extended_wait): Use linux_resume_one_lwp.
13051         (status_callback, running_callback): Use lwp_status_pending_p.
13052         (lwp_status_pending_p): New function.
13053         (stop_and_resume_callback): Use lwp_status_pending_p.
13054         (linux_nat_filter_event): Use linux_resume_one_lwp.
13055         (linux_nat_wait_1): Always use status_callback to look for an LWP
13056         with a pending status.  Use linux_resume_one_lwp.
13057         (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
13058         linux_resume_one_lwp.
13059
13060 2015-01-09  Pedro Alves  <palves@redhat.com>
13061
13062         * breakpoint.c (bp_location_inserted_here_p): New function,
13063         factored out from ...
13064         (breakpoint_inserted_here_p): ... here.  Use
13065         ALL_BP_LOCATIONS_AT_ADDR.
13066         (software_breakpoint_inserted_here_p): Use
13067         bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
13068
13069 2014-01-09  Pedro Alves  <palves@redhat.com>
13070
13071         Skip enabling event reporting if the kernel supports
13072         PTRACE_EVENT_CLONE.
13073         * linux-thread-db.c: Include "nat/linux-ptrace.h".
13074         (thread_db_use_events): New function.
13075         (try_thread_db_load_1): Check thread_db_use_events before enabling
13076         event reporting.
13077         (update_thread_state): New function.
13078         (attach_thread): Use it.  Check thread_db_use_events before
13079         enabling event reporting.
13080         (thread_db_detach): Check thread_db_use_events before disabling
13081         event reporting.
13082         (find_new_threads_callback): Check thread_db_use_events before
13083         enabling event reporting.  Update the thread's state if not using
13084         libthread_db events.
13085
13086 2015-01-09  Pedro Alves  <palves@redhat.com>
13087
13088         * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
13089         about to wait for is > 0.
13090         * linux-thread-db.c (find_new_threads_callback): Ignore thread if
13091         the kernel thread ID is -1.
13092
13093 2015-01-09  Pedro Alves  <palves@redhat.com>
13094
13095         * linux-nat.c (attach_proc_task_lwp_callback): New function.
13096         (linux_nat_attach): Use linux_proc_attach_tgid_threads.
13097         (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
13098         ptrace option flags.
13099         * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
13100         field.
13101         * nat/linux-procfs.c: Include <dirent.h>.
13102         (linux_proc_get_int): New parameter "warn".  Handle it.
13103         (linux_proc_get_tgid): Adjust.
13104         (linux_proc_get_tracerpid): Rename to ...
13105         (linux_proc_get_tracerpid_nowarn): ... this.
13106         (linux_proc_pid_get_state): New function, factored out from
13107         (linux_proc_pid_has_state): ... this.  Add new parameter "warn"
13108         and handle it.
13109         (linux_proc_pid_is_gone): New function.
13110         (linux_proc_pid_is_stopped): Adjust.
13111         (linux_proc_pid_is_zombie_maybe_warn)
13112         (linux_proc_pid_is_zombie_nowarn): New functions.
13113         (linux_proc_pid_is_zombie): Use
13114         linux_proc_pid_is_zombie_maybe_warn.
13115         (linux_proc_attach_tgid_threads): New function.
13116         * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
13117         (linux_proc_get_tracerpid): Rename to ...
13118         (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
13119         (linux_proc_pid_is_gone): New declaration.
13120         (linux_proc_pid_is_zombie): Update comment.
13121         (linux_proc_pid_is_zombie_nowarn): New declaration.
13122         (linux_proc_attach_lwp_func): New typedef.
13123         (linux_proc_attach_tgid_threads): New declaration.
13124         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
13125         use nowarn functions.
13126         (linux_ptrace_attach_fail_reason_string): Move here from
13127         gdbserver/linux-low.c and rename.
13128         (ptrace_supports_feature): If the current ptrace options are not
13129         known yet, check them now, instead of asserting.
13130         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
13131         Declare.
13132
13133 2015-01-09  Pedro Alves  <palves@redhat.com>
13134
13135         * linux-thread-db.c (thread_db_find_new_threads_silently)
13136         (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
13137         (find_new_threads_once): Print debug output on gdb_stdlog.
13138
13139 2015-01-09  Chen Gang  <gang.chen.5i5j@gmail.com>
13140             Pedro Alves  <palves@redhat.com>
13141
13142         * compile/compile.c: Include "gdb_wait.h".
13143         (do_rmdir): Check return value, and free 'zap'.
13144
13145 2015-01-08  Pedro Alves  <palves@redhat.com>
13146             Yao Qi  <yao@codesourcery.com>
13147
13148         * dwarf2loc.c (indirect_pieced_value): Don't call
13149         gdb_sign_extend.  Call extract_signed_integer instead.
13150         * utils.c (gdb_sign_extend): Remove.
13151         * utils.h (gdb_sign_extend): Remove declaration.
13152
13153 2015-01-07  Pierre Muller  <muller@sourceware.org>
13154
13155         PR symtab/17811
13156         * stabsread.c (define_symbol): Set language for C++ special symbols.
13157
13158 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
13159
13160         * inflow.c (initial_gdb_ttystate): Tweak comment.
13161
13162 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
13163
13164         * inflow.c (set_initial_gdb_ttystate): Add empty line after
13165         comment documenting function.
13166
13167 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
13168
13169         * terminal.h (set_initial_gdb_ttystate): Declare.
13170         * inflow.c (initial_gdb_ttystate): New static variable.
13171         (set_initial_gdb_ttystate): New setter.
13172         (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
13173         instead of our current terminal state.
13174         * top.c (gdb_init): Call set_initial_gdb_ttystate.
13175
13176 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
13177
13178         * guile/scm-type.c (tyscm_array_1): Add comment.
13179         * python/py-type.c (typy_array_1): Add comment.
13180
13181 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
13182
13183         * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
13184         error if N2 is equal to N1 - 1.
13185
13186 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
13187
13188         * python/py-type.c (typy_array_1): Do not raise negative-length
13189         exception if N2 is equal to N1 - 1.
13190
13191 2015-01-03  Doug Evans  <xdje42@gmail.com>
13192
13193         * c-exp.y: Whitespace cleanup.
13194         (classify_inner_name): Remove extra ;.
13195
13196 2015-01-02  Maciej W. Rozycki  <macro@codesourcery.com>
13197
13198         * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
13199         offset signed.
13200
13201 2015-01-02  Doug Evans  <dje@google.com>
13202
13203         * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
13204
13205 2015-01-02  Doug Evans  <dje@google.com>
13206
13207         * symtab.h (struct symbol): Fix typo in comment.
13208
13209 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
13210
13211         Update year range in copyright notice of all files.
13212
13213 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
13214
13215         * top.c (print_gdb_version): Update copyright year to 2015.
13216
13217 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
13218
13219         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
13220
13221 For older changes see ChangeLog-2014.
13222 \f
13223 Local Variables:
13224 mode: change-log
13225 left-margin: 8
13226 fill-column: 74
13227 version-control: never
13228 coding: utf-8
13229 End: