target_read_memory&co: no longer return target_xfer_status
[external/binutils.git] / gdb / ChangeLog
1 2015-10-27  Pedro Alves  <palves@redhat.com>
2
3         * alpha-tdep.c (alpha_read_insn): Always pass TARGET_XFER_E_IO to
4         memory_error.  Rename local 'status' to 'res'.
5         * c-lang.c (c_get_string): Always pass TARGET_XFER_E_IO to
6         memory_error.
7         * corefile.c (read_stack, read_code, write_memory): Always pass
8         TARGET_XFER_E_IO to memory_error.
9         * disasm.c (dis_asm_memory_error): Always pass TARGET_XFER_E_IO to
10         memory_error.  Rename parameter 'status' to 'err'.
11         (dump_insns): Rename local 'status' to 'err'.
12         * mips-tdep.c (mips_fetch_instruction): Rename parameter 'statusp'
13         to 'errp'.  Rename local 'status' to 'err'.  Always pass
14         TARGET_XFER_E_IO to memory_error.
15         (mips_breakpoint_from_pc): Rename local 'status' to 'err'.
16         * target.c (target_read_memory, target_read_raw_memory)
17         (target_read_stack, target_read_code, target_write_memory)
18         (target_write_raw_memory): Return -1 on error instead of
19         TARGET_XFER_E_IO.
20         * valprint.c (val_print_string): Rename local 'errcode' to 'err'.
21         Always pass TARGET_XFER_E_IO to memory_error.  Update comment.
22
23 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
24
25         * guile/guile-internal.h (gdbscm_with_guile): Change return
26         types to const char *.
27         * guile/scm-safe-call.c (gdbscm_with_guile): Likewise.
28         (struct c_data) <func>: Likewise.
29         (struct c_data) <result>: Change type to const char *.
30         (scscm_eval_scheme_string): Change return type to
31         const char *.
32         (scscm_source_scheme_script): Likewise.
33         (gdbscm_safe_eval_string): Change type of result variable to
34         const char * and remove cast.
35         (gdbscm_safe_source_script): Likewise.
36         * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker):
37         Change return type to const char *.
38         (gdbscm_disasm_read_memory): Change type of status to
39         const char *.
40
41 2015-10-27  Pedro Alves  <palves@redhat.com>
42
43         * source.c (openp): New local 'last_errno'.  Use it to
44         save/restore errno.
45
46 2015-10-27  Pedro Alves  <palves@redhat.com>
47
48         * psymtab.c (dump_psymtab_addrmap_1): Add casts.
49
50 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
51
52         * ctf.c (SET_ENUM_FIELD): New macro.
53         (ctf_read_status): Use it.
54         (ctf_read_tp): Use it.
55
56 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
57
58         * guile/scm-breakpoint.c (gdbscm_set_breakpoint_stop_x): Add
59         scm_t_dynwind_flags casts.
60         * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
61         * guile/scm-ports.c (gdbscm_open_memory): Likewise.
62         * guile/scm-value.c (gdbscm_value_to_string): Likewise.
63
64 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
65
66         * ax.h (ax_raw_byte): New declaration.
67         * ax-general.c (ax_raw_byte): New function.
68         (ax_simple): Use ax_raw_byte.
69         * ax-gdb.c (gen_printf): Likewise.
70
71 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
72
73         * ada-lang.h (GROW_VECT): Add cast.
74
75 2015-10-26  Doug Evans  <xdje42@gmail.com>
76
77         * symtab.h (struct general_symbol_info> <ada_mangled>: Update comment.
78
79 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
80
81         * target.c (memory_xfer_partial): Change type of buf to gdb_byte
82         pointer.
83         (simple_search_memory): Cast return of memmem.
84
85 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
86
87         * stap-probe.c (handle_stap_probe): Add (const char *) casts.
88
89 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
90
91         * ctf.c (ctf_xfer_partial): Return TARGET_XFER_E_IO instead of
92         -1 on error.
93
94 2015-10-26  Doug Evans  <dje@google.com>
95
96         PR symtab/17391
97         * dwarf2-frame.c (dwarf2_restore_rule): Call dwarf_reg_to_regnum
98         instead of gdbarch_dwarf2_reg_to_regnum.
99         (dwarf2_frame_cache): Ditto.
100         (read_addr_from_reg): Call dwarf_reg_to_regnum_or_error instead of
101         gdbarch_dwarf2_reg_to_regnum.
102         (get_reg_value): Ditto.
103         (dwarf2_fetch_cfa_info): Ditto.
104         (dwarf2_frame_prev_register): Ditto.
105         * dwarf2loc.c: #include "complaints.h".
106         (dwarf_expr_read_addr_from_reg): Call dwarf_reg_to_regnum_or_error
107         instead of gdbarch_dwarf2_reg_to_regnum.
108         (dwarf_expr_get_reg_value): Ditto.
109         (read_pieced_value): Ditto.
110         (write_pieced_value): Ditto.
111         (dwarf2_evaluate_loc_desc_full): Ditto.
112         (dwarf_reg_to_regnum): New function.
113         (throw_bad_regnum_error): New function.
114         (dwarf_reg_to_regnum_or_error): Renamed from
115         dwarf2_reg_to_regnum_or_errorChange to take a ULONGEST regnum.
116         All callers updated.  Call throw_bad_regnum_error.
117         (locexpr_regname): Improve text of bad register number.
118         * dwarf2loc.h (dwarf_reg_to_regnum): Declare.
119         (dwarf_reg_to_regnum_or_error): Update prototype.
120         * dwarf2expr.c: #include "dwarf2loc.h".
121         (dwarf_block_to_sp_offset): Call dwarf_reg_to_regnum instead of
122         gdbarch_dwarf2_reg_to_regnum.
123         * gdbarch.sh (dwarf2_reg_to_regnum): Add comment.
124         * gdbarch.h: Regenerate.
125         * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Remove warning for bad
126         register.
127         * avr-tdep.c (avr_dwarf_reg_to_regnum): Ditto.
128         * cris-tdep.c (cris_dwarf2_reg_to_regnum): Ditto.
129         * bfin-tdep.c (bfin_reg_to_regnum): Fix error checking.
130         * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Improve error checking.
131         Remove warning for bad register.
132         * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Ditto.
133         * i386-tdep.c (i386_svr4_dwarf_reg_to_regnum): Renamed from
134         i386_svr4_reg_to_regnum.  Return -1 for bad registers.
135         (i386_svr4_reg_to_regnum): New function.
136         (i386_gdbarch_init): Update call to set_gdbarch_dwarf2_reg_to_regnum.
137         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Don't assert
138         on bad registers, return -1.
139         * msp430-tdep.c (msp430_dwarf2_reg_to_regnum): Improve error checking.
140         Remove warning for bad register.
141         * nios2-tdep.c: Add static assert for NIOS2_NUM_REGS.
142         (nios2_dwarf_reg_to_regnum): Fix off-by-one error.
143         Remove warning for bad register.  Return -1 for bad register.
144         * rl78-tdep.c (rl78_dwarf_reg_to_regnum): Don't flag an internal error
145         for bad register, return -1.
146         * rx-tdep.c (rx_dwarf_reg_to_regnum): Ditto.
147         * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Fix error result.
148         * mep-tdep.c (mep_debug_reg_to_regnum): Ditto.
149         * mips-tdep.c (mips_stab_reg_to_regnum): Ditto.
150         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
151         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Remove warning
152         for bad regs.
153         * xtensa-tdep.c (xtensa_reg_to_regnum): Remove internal error for
154         bad regs.  Fix error result.
155         * stabsread.c (stab_reg_to_regnum): Watch for negative regno.
156         (reg_value_complaint): Update complaint text.
157         * mdebugread.c (reg_value_complaint): New function.
158         (mdebug_reg_to_regnum): Rewrite to watch for bad reg numbers.
159
160 2015-10-26  Doug Evans  <dje@google.com>
161
162         PR python/18938
163         * cli/cli-cmds (source_script_fron_sctream): New arg file_to_open.
164         All callers updated.
165
166 2015-10-26  Doug Evans  <dje@google.com>
167
168         * psymtab.c (struct dump_psymtab_addrmap_data): Define.
169         (dump_psymtab_addrmap_1, dump_psymtab_addrmap): New functions.
170         (maintenance_print_psymbols): Print address map.
171
172 2015-10-26  Doug Evans  <dje@google.com>
173
174         * nat/linux-nat.h (__SIGRTMIN): Move here from gdbserver/linux-low.c.
175
176 2015-10-26  Doug Evans  <dje@google.com>
177
178         * common/gdb_wait.h (W_STOPCODE): Define, moved here from
179         gdbserver/linux-low.c.
180         (WSETSTOP): Simplify.
181
182 2015-10-26  Doug Evans  <dje@google.com>
183
184         * linux-thread-db.c (find_new_threads_callback): Ditto.
185         (thread_db_pid_to_str): Ditto.
186
187 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
188
189         * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Do not pass a
190         local char array to scm_mode_bits, use a cast instead.
191
192 2015-10-26  Simon Marchi  <simon.marchi@ericsson.com>
193
194         * tui/tui-data.c (tui_alloc_content): Don't check xmalloc
195         result.  Change type of element_block_ptr.  Change allocation to
196         use XNEWVEC.
197
198 2015-10-26  Luis Machado  <lgustavo@codesourcery.com>
199
200         * record-full.c (record_full_message_wrapper_safe): Pass empty string to
201         catch_errors call instead of NULL.
202
203 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
204
205         * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Pass non-const
206         char pointer to scm_mode_bits.
207
208 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
209
210         * symtab.c (default_make_symbol_completion_list_break_on_1): Add
211         cast.
212
213 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
214
215         * guile/scm-ports.c (gdbscm_memory_port_write): Declare new
216         "data" local variable and use it.
217
218 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
219
220         * guile/scm-symbol.c (gdbscm_lookup_global_symbol): Add
221         domain_enum cast.
222         (gdbscm_lookup_symbol): Likewise.
223
224 2015-10-25  Iain Buclaw  <ibuclaw@gdcproject.org>
225
226         * d-exp.y: Remove an obsolete comment and propagate the block
227         information to the produced expression.
228
229 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
230
231         * tui/tui-data.c (tui_add_to_source_windows): Remove void *
232         cast.
233         (tui_add_content_elements): Likewise.
234
235 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
236
237         * cli/cli-setshow.c (do_set_command): Constify p.
238
239 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
240
241         * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Replace
242         (void *) cast with (gdb_byte *).
243
244 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
245
246         * proc-service.c (ps_pdread): Add cast.
247
248 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
249
250         * sparc64-tdep.c (sparc64_store_arguments): Split assignment of
251         valbuf.
252
253 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
254
255         * ia64-tdep.c (ia64_pseudo_register_write): Remove cast.
256         (ia64_push_dummy_call): Remove cast and change type of "to" to
257         array of gdb_byte.
258
259 2015-10-23  Simon Marchi  <simon.marchi@polymtl.ca>
260
261         * linux-btrace.c (linux_enable_pt): Add cast to mmap return.
262
263 2015-10-23  Simon Marchi  <simon.marchi@ericsson.com>
264
265         * observer.h (observer_${event}_notification_stub): Add cast.
266
267 2015-10-23  Yao Qi  <yao.qi@linaro.org>
268
269         * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set
270         dsd.insn_count to zero.
271
272 2015-10-22  Pedro Alves  <palves@redhat.com>
273
274         * infrun.c (stop_after_trap): Delete.
275         (clear_proceed_status, handle_signal_stop, struct
276         infcall_control_state, save_infcall_control_state)
277         (restore_infcall_control_state): Remove references to
278         stop_after_trap.
279
280 2015-10-22  Simon Marchi  <simon.marchi@ericsson.com>
281
282         * python/python.c (_initialize_python): Add cast.
283
284 2015-10-22  Simon Marchi  <simon.marchi@ericsson.com>
285
286         * nto-tdep.c (nto_inferior_data): Add cast.
287
288 2015-10-22  Pedro Alves  <palves@redhat.com>
289
290         * windows-nat.c (do_initial_windows_stuff): Rewrite loop using
291         windows_wait and windows_resume directly instead of
292         wait_for_inferior and resume.
293
294 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
295
296         * xtensa-tdep.h (XTREG): Add casts.
297         (XTREG_END): Likewise.
298
299 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
300
301         * solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
302
303 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
304
305         * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
306
307 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
308
309         * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
310         buf to gdb_byte*.
311         (supply_32bit_reg): Add cast.
312         (mips64_fill_gregset): Likewise.
313
314 2015-10-21  Simon Marchi  <simon.marchi@polymtl.ca>
315
316         PR python/18073
317         * python/py-type.c (typy_get_composite): Allow returning a
318         function type.
319
320 2015-10-21  Keven Boell  <keven.boell@intel.com>
321
322         * dwarf2read.c (set_die_type): Add read of
323         DW_AT_allocated and DW_AT_associated.
324         * f-typeprint.c: New include of typeprint.h
325         (f_print_type): Add check for allocated/associated
326         status of type.
327         (f_type_print_varspec_suffix): Add check for
328         * gdbtypes.c (create_array_type_with_stride):
329         Add check for valid data location of type in
330         case allocated or associated attributes are set.
331         Length of an array should be only calculated if
332         allocated or associated is resolved as true.
333         (is_dynamic_type_internal): Add check for allocated/
334         associated.
335         (resolve_dynamic_array): Evaluate allocated/associated
336         properties.
337         * gdbtypes.h (enum dynamic_prop_node_kind): <DYN_PROP_ALLOCATED>
338         <DYN_PROP_ASSOCIATED>: New enums.
339         (TYPE_ALLOCATED_PROP, TYPE_ASSOCIATED_PROP): New macros.
340         (type_not_allocated): New function.
341         (type_not_associated): New function.
342         * valarith.c (value_subscripted_rvalue): Add check for
343         allocated/associated.
344         * valprint.c: New include of typeprint.h.
345         (valprint_check_validity): Add check for allocated/associated.
346         (value_check_printable): Add check for allocated/
347         associated.
348         * typeprint.h (val_print_not_allocated): New function.
349         (val_print_not_associated): New function.
350         * typeprint.c (val_print_not_allocated): New function.
351         (val_print_not_associated): New function.
352
353 2015-10-21  Antoine Tremblay  <antoine.tremblay@ericsson.com>
354
355         * Makefile.in: Add arm.c/o.
356         * arch/arm.c: New file.
357         * arch/arm.h: (IS_THUMB_ADDR): Move macro from arm-tdep.c.
358         (MAKE_THUMB_ADDR): Likewise.
359         (UNMAKE_THUMB_ADDR): Likewise.
360         * arm-tdep.c (int thumb_insn_size): Move to arm.c.
361         (IS_THUMB_ADDR): Move to arm.h.
362         (MAKE_THUMB_ADDR): Likewise.
363         (UNMAKE_THUMB_ADDR): Likewise.
364         * configure.tgt: Add arm.o to all ARM configs.
365
366 2015-10-21  Yao Qi  <yao.qi@linaro.org>
367
368         * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
369         Remove argument exp_vCont_s.
370         * gdb.base/range-stepping.exp: Callers updated.
371         * gdb.trace/range-stepping.exp: Likewise.
372
373 2015-10-21  Aleksandar Ristovski  <aristovski@qnx.com>
374
375         * gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
376         (nto_sniff_abi_note_section): New function.
377         (nto_elf_osabi_sniffer): Use new function to recognize nto specific
378         binary.
379
380 2015-10-21  Aleksandar Ristovski  <aristovski@qnx.com>
381
382         * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
383         (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
384         * nto-tdep.c (nto_new_inferior_data_reg): New definition.
385         (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
386         New functions.
387         (_initialize_nto_tdep): New forward declaration, new function.
388         * nto-tdep.h (struct nto_inferior_data): New struct.
389         (nto_inferior_data): New function declaration.
390
391 2015-10-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
392
393         * findvar.c (address_from_register): Check REGNUM validity.
394
395 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
396
397         * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
398         (init_procfs_targets): Wire new function.
399
400 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
401
402         * nto-procfs.c (sys/auxv.h): Include.
403         (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
404         * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
405         * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
406
407 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
408
409         * nto-procfs.c (nto_procfs_path): Rename to...
410         (nodestr): ... this, and change type.
411         (nto_node): Use new variable and logic accordingly.
412         (procfs_open_1): Use new variable name. Use local buffer to construct
413         procfrs path.
414         (procfs_pidlist): Use NODESTR to construct procfs path.
415         (procfs_files_info): Use NODESTR to output meaningful text.
416         (do_attach): Construct procfs using NODESTR.
417         (procfs_create_inferior): Compare pointer to NULL.
418
419 2015-10-19  Josh Stone  <jistone@redhat.com>
420
421         * linux-nat.c (linux_handle_syscall_trap): Always update entry/
422         return state, even when not actively catching syscalls at all.
423         (linux_handle_extended_wait): Mark syscall_state like an entry.
424         (wait_lwp): Set syscall_state ignored for other traps.
425         (linux_nat_filter_event): Likewise.
426
427 2015-10-19  Luis Machado  <lgustavo@codesourcery.com>
428
429         * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
430         when handling 'E', 'T', 'S', 'X' and 'W' packets.
431         Do not set rs->waiting_for_stop_reply back to 1.
432
433 2015-10-16  Aleksandar Ristovski  <aristovski@qnx.com>
434
435         * nto-procfs.c (common/filestuff.h): Include.
436         (procfs_can_use_hw_breakpoint): Fix enum name.
437         (procfs_open_1): Fix compiler warning.
438         (procfs_pidlist): Make static.
439         (procfs_meminfo): Make static, fix type name, add missing argument.
440         (procfs_store_registers): Make static.
441         (procfs_thread_info): Remove unused function.
442         (_initialize_procfs): Forward declare.
443
444 2015-10-16  Yao Qi  <yao.qi@arm.com>
445
446         * MAINTAINERS: Update my email address.
447
448 2015-10-15  Yao Qi  <yao.qi@linaro.org>
449
450         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
451         Call gdbarch_breakpoint_from_pc to instruction length.
452         (aarch64_linux_remove_hw_breakpoint): Likewise.
453         * common/common-regcache.h (regcache_register_size): Declare.
454         * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
455         (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
456         the process is 32bit, otherwise set alignment to 4.
457         (aarch64_handle_breakpoint): Update comments.
458         * regcache.c (regcache_register_size): New function.
459
460 2015-10-15  Aleksandar Ristovski  <aristovski@qnx.com>
461
462         * gdbarch.sh (core_regset_section): Remove.
463         * gdbarch.h: Regenerate.
464
465 2015-10-14  Yao Qi  <yao.qi@linaro.org>
466
467         * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
468         out of it.
469         (enum aarch64_memory_operand_type): New.
470
471 2015-10-13  David Edelsohn  <dje.gcc@gmail.com>
472
473         * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
474
475 2015-10-13  Pedro Alves  <palves@redhat.com>
476
477         * ada-lang.c (ada_enum_name): Constify local.
478         * ada-typeprint.c (print_range_bound): Constify locals.
479         * c-varobj.c (c_describe_child): Likewise.
480         * cli/cli-setshow.c (do_set_command): Likewise.
481         * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
482         * dwarf2read.c (find_file_and_directory): Likewise.
483         (anonymous_struct_prefix, dwarf2_name): Likewise.
484         * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
485         * go-lang.c (unpack_mangled_go_symbol): Likewise.
486         * jv-typeprint.c (java_type_print_base): Likewise.
487         * ser-tcp.c (net_open): Likewise.
488         * symfile.c (deduce_language_from_filename): Likewise.
489         * symtab.c (gdb_mangle_name): Likewise.
490         * tui/tui-io.c (tui_redisplay_readline): Likewise.
491
492 2015-10-13  Pedro Alves  <palves@redhat.com>
493
494         * infrun.c (restore_execution_direction): New function.
495         (fetch_inferior_event): Use it instead of
496         make_cleanup_restore_integer.
497         (execution_direction): Change type to enum
498         exec_direction_kind.
499         * infrun.h (execution_direction): Likewise.
500
501 2015-10-13  Pedro Alves  <palves@redhat.com>
502
503         * ada-lang.c (ada_value_primitive_packed_val): Constify
504         locals.  Use value_contents_writeable.  Remove casts.
505
506 2015-10-13  Pedro Alves  <palves@redhat.com>
507
508         * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
509         and alloca calls.
510
511 2015-10-13  Simon Marchi  <simon.marchi@polymtl.ca>
512
513         * lm32-tdep.c (lm32_push_dummy_call): Replace call to
514         write_memory with write_memory_unsigned_integer.
515
516 2015-10-13  Simon Marchi  <simon.marchi@polymtl.ca>
517
518         * solib-dsbt.c (cmp_name): Constify arguments.
519         * solib-frv.c (cmp_name): Likewise.
520         * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
521         * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
522         (bfd_lookup_symbol_from_dyn_symtab): Likewise.
523         (gdb_bfd_lookup_symbol): Likewise.
524         * solib.h (gdb_bfd_lookup_symbol): Likewise.
525         (gdb_bfd_lookup_symbol_from_symtab): Likewise.
526
527 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
528
529         * stack.c (parse_frame_specification): Remove message parameter,
530         replace with fixed string in function body, update function
531         comment.
532         (frame_info): Remove message to parse_frame_specification.
533         (select_frame_command): Likewise.
534
535 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
536
537         * stack.c (parse_frame_specification): Delete.
538         (parse_frame_specification_1): Rename to
539         parse_frame_specification.
540         (frame_info): Use parse_frame_specification.
541         (select_frame_command): Likewise.
542         (return_command): Use select_frame and print_stack_frame rather
543         than frame_command and select_frame_command.
544         (func_command): Use get_current_frame rather than
545         parse_frame_specification.
546
547 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
548
549         * stack.c (func_command): Return early when there is no ARG
550         string.
551
552 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
553
554         * stack.c: Include safe-ctype.h not ctype.h.
555         (parse_frame_specification): Use ISSPACE not isspace.
556         (backtrace_command): Use TOLOWER not tolower.
557
558 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
559
560         * mep-tdep.c (current_me_module): Add cast.
561         (mep_gdbarch_init): Likewise.
562
563 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
564
565         * m32c-tdep.c (m32c_move_reg_t): Replace with...
566         (m32c_write_reg_t): ...this and...
567         (m32c_read_reg_t): ...this.
568         (struct m32c_reg): Update types of read and write.
569         (m32c_raw_read): Change declaration type to m32c_read_reg_t and
570         adjust definition.
571         (m32c_banked_read): Likewise.
572         (m32c_sb_read): Likewise.
573         (m32c_part_read): Likewise.
574         (m32c_cat_read): Likewise.
575         (m32c_r3r2r1r0_read): Likewise.
576         (m32c_raw_write): Change declaration type to m32c_write_reg_t
577         and adjust definition.
578         (m32c_banked_write): Likewise.
579         (m32c_sb_write): Likewise.
580         (m32c_part_write): Likewise.
581         (m32c_cat_write): Likewise.
582         (m32c_r3r2r1r0_write): Likewise.
583
584 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
585
586         * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
587
588 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
589
590         * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
591         gdb_sys_no_syscall instead of -1.
592
593 2015-10-12  Yao Qi  <yao.qi@linaro.org>
594
595         * NEWS: Mention the change.
596
597 2015-10-12  Yao Qi  <yao.qi@linaro.org>
598
599         * arch/aarch64-insn.c (emit_load_store): Rename to ...
600         (aarch64_emit_load_store): ... it.  All callers updated.
601
602 2015-10-12  Yao Qi  <yao.qi@linaro.org>
603
604         * arch/aarch64-insn.c (emit_insn): Rename to ...
605         (aarch64_emit_insn): ... it.  All callers updated.
606
607 2015-10-12  Yao Qi  <yao.qi@linaro.org>
608
609         * aarch64-linux-tdep.c: Include arch-utils.h.
610         (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
611         set_gdbarch_displaced_step_copy_insn,
612         set_gdbarch_displaced_step_fixup,
613         set_gdbarch_displaced_step_free_closure,
614         set_gdbarch_displaced_step_location,
615         and set_gdbarch_displaced_step_hw_singlestep.
616         * aarch64-tdep.c (struct displaced_step_closure): New.
617         (struct aarch64_displaced_step_data): New.
618         (aarch64_displaced_step_b): New function.
619         (aarch64_displaced_step_b_cond): Likewise.
620         (aarch64_register): Likewise.
621         (aarch64_displaced_step_cb): Likewise.
622         (aarch64_displaced_step_tb): Likewise.
623         (aarch64_displaced_step_adr): Likewise.
624         (aarch64_displaced_step_ldr_literal): Likewise.
625         (aarch64_displaced_step_others): Likewise.
626         (aarch64_displaced_step_copy_insn): Likewise.
627         (aarch64_displaced_step_fixup): Likewise.
628         (aarch64_displaced_step_hw_singlestep): Likewise.
629         * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
630         (aarch64_displaced_step_copy_insn): Declare.
631         (aarch64_displaced_step_fixup): Declare.
632         (aarch64_displaced_step_hw_singlestep): Declare.
633         * arch/aarch64-insn.c (emit_insn): Moved from
634         gdbserver/linux-aarch64-low.c.
635         (emit_load_store): Likewise.
636         * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
637         gdbserver/linux-aarch64-low.c.
638         (struct aarch64_register): Likewise.
639         (struct aarch64_memory_operand): Likewise.
640         (ENCODE): Likewise.
641         (can_encode_int32): New macro.
642         (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
643         (emit_tb, emit_nop): Likewise.
644         (emit_insn): Declare.
645         (emit_load_store): Declare.
646
647 2015-10-12  Yao Qi  <yao.qi@linaro.org>
648
649         * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
650         gdbserver/linux-aarch64-low.c.
651         (aarch64_relocate_instruction): Likewise.
652         * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
653         (struct aarch64_insn_data): Moved from
654         gdbserver/linux-aarch64-low.c.
655         (struct aarch64_insn_visitor): Likewise.
656         (aarch64_relocate_instruction): Declare.
657
658 2015-10-12  Pierre-Marie de Rodat  <derodat@adacore.com>
659
660         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
661         EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
662         to the returned value.
663
664 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
665
666         * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
667         is large enough for BIT_SIZE.  Update function comment.
668
669 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
670
671         * ada-lang.c (ada_value_primitive_packed_val): Move
672         src_len variable to local block where used.  Override
673         BIT_SIZE if bigger than size of resolved type.
674
675 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
676
677         * gdbtypes.h (is_scalar_type): Add extern declaration.
678         * gdbtypes.c (is_scalar_type): Make non-static.
679         * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
680         to compute IS_SCALAR instead of doing it ourselves.
681
682 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
683
684         * ada-lang.c (ada_value_primitive_packed_val): Rework handling
685         of case where TYPE is dynamic.
686
687 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
688
689         * ada-lang.c (ada_unpack_from_contents): New function,
690         extracted from ada_value_primitive_packed_val.
691         (ada_value_primitive_packed_val): Replace extracted out code
692         by call to ada_unpack_from_contents.
693
694 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
695
696         * ada-lang.c (ada_value_primitive_packed_val): Reorder local
697         variable declarations.
698
699 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
700
701         * ada-lang.c (ada_value_primitive_packed_val): Change the type
702         of local variables src and unpacked to "gdb_type *" instead of
703         "unsigned char *".
704
705 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
706
707         * ada-lang.c (ada_value_primitive_packed_val): Make the name
708         of various local variables more explicit and consistent.
709         No real code change otherwise.
710
711 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
712
713         * i386-tdep.h (struct gdbarch_tdep): Change type of
714         register_reggroup_p to gdbarch_register_reggroup_p_ftype.
715
716 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
717
718         * cris-tdep.c (struct instruction_environment): Change type of
719         byte_order to enum bfd_endian.
720
721 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
722
723         * arm-linux-tdep.c (arm_canonicalize_syscall): Add
724         enum gdb_syscall casts.
725
726 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
727
728         * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
729         * arm-tdep.c (struct stack_item): Likewise.
730         (push_stack_item): Add gdb_byte* cast.
731         * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
732         (push_stack_item): Add gdb_byte* cast.
733         * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
734         and add cast.
735         * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
736         (push_stack_item): Add gdb_byte* cast.
737         * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
738         add cast.
739         * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
740         gdb_byte*.
741         * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
742         gdb_byte* and remove unnecessary cast.
743         (h8300h_extract_return_value): Likewise.
744         (h8300_store_return_value): Change type of valbuf to gdb_byte*.
745         (h8300h_store_return_value): Likewise.
746         * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
747         gdb_byte* and remove unnecessary cast.
748         * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
749         and add cast.
750         * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
751         gdb_byte* and remove unnecessary cast.
752         (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
753         valbuf.
754         * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
755         (mep_pseudo_cr64_read): Likewise.
756         (mep_pseudo_csr_write): Likewise.
757         (mep_pseudo_cr32_write): Likewise.
758         (mep_pseudo_cr64_write): Likewise.
759         * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
760         gdb_byte* and add cast.
761         * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
762         gdb_byte* and remove unnecessary cast.
763         (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
764         valbuf.
765         * p-valprint.c (print_scalar_formatted): Change type of valaddr to
766         gdb_byte*.
767         * printcmd.c (void): Likewise.
768         * python/py-inferior.c (infpy_read_memory): Change type of buffer to
769         gdb_byte* and add cast.
770         (infpy_write_memory): Likewise.
771         (infpy_search_memory): Likewise.
772         * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
773         and add cast.
774         (regcache_raw_write_unsigned): Likewise.
775         (regcache_cooked_write_signed): Likewise.
776         (regcache_cooked_write_unsigned): Likewise.
777         * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
778         gdb_byte*.
779
780 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
781
782         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
783         * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
784
785 2015-10-09  Eli Zaretskii  <eliz@gnu.org>
786
787         * stack.c (print_stack_frame):
788         * utils.c (printchar): Fix typos in commentary.
789
790 2015-10-08  Iain Buclaw  <ibuclaw@gdcproject.org>
791
792         * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
793         (PostfixExpression): Support `expr.sizeof' expressions.
794         (PrimaryExpression): Support `typeof(expr)' expressions.
795
796 2015-10-08  Maciej W. Rozycki  <macro@imgtec.com>
797
798         * MAINTAINERS: Update my email address.
799
800 2015-10-08  Markus Metzger  <markus.t.metzger@intel.com>
801
802         * record-btrace.c (record_btrace_resume): Fix void return.
803
804 2015-10-07  Yao Qi  <yao.qi@linaro.org>
805
806         * aarch64-tdep.c: Include opcode/aarch64.h.
807         (submask): Move it above.
808         (bit): Likewise.
809         (bits): Likewise.
810         (aarch64_software_single_step): Call aarch64_decode_insn.
811         Decode instruction by aarch64_inst instead of using
812         aarch64_decode_bcond and decode_masked_match.
813
814 2015-10-06  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
815
816         * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
817         only when the file is binary.
818
819 2015-10-02  James Bowman  <james.bowman@ftdichip.com>
820
821         * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
822         subroutine handling.
823
824 2015-10-01  Simon Marchi  <simon.marchi@ericsson.com>
825
826         * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
827
828 2015-09-30  Doug Evans  <dje@google.com>
829
830         * dwarf2read.c (setup_type_unit_groups): Add comment.
831
832 2015-09-30  Pedro Alves  <palves@redhat.com>
833
834         * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
835         * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
836         (x86_linux_create_target): Don't install
837         x86_linux_always_non_stop_p.
838
839 2015-09-30  Don Breazeal  <donb@codesourcery.com>
840
841         * remote.c (remote_parse_stop_reply): Call strprefix instead
842         of strncmp.
843
844 2015-09-30  Simon Marchi  <simon.marchi@ericsson.com>
845
846         * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
847         * gdbarch.h: Regenerate.
848         * i386-tdep.c (i386_gdbarch_init): Remove cast to
849         struct gdbarch_tdep_info *.
850         * mips-tdep.c (mips_gdbarch_init): Likewise.
851         * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
852         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
853         * spu-multiarch.c (spu_gdbarch): Likewise.
854
855 2015-09-30  Kevin Buettner  <kevinb@redhat.com>
856
857         * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
858         record a NULL value.
859
860 2015-09-29  Kevin Buettner  <kevinb@redhat.com>
861
862         * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
863         and union arguments the same as pointer arguments when determining
864         size of argument.
865
866 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
867
868         * ft32-tdep.c: #include "opcode/ft32.h".
869         Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
870         (ft32_analyze_prologue): Use FT32_* macros.
871
872 2015-09-28  Simon Marchi  <simon.marchi@ericsson.com>
873
874         * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
875         comment.
876
877 2015-09-28  Doug Evans  <dje@google.com>
878
879         * MAINTAINERS: Add Iain Buclaw as D language maintainer.
880
881 2015-09-28  Doug Evans  <dje@google.com>
882
883         * common/filestuff.c (make_cleanup_close): Update comment.
884
885 2015-09-26  Simon Marchi  <simon.marchi@polymtl.ca>
886
887         * btrace.c (parse_xml_btrace_block): Fix cast of
888         xml_find_attribute's return value.
889         * memory-map.c (memory_map_start_memory): Likewise.
890         * solib-svr4.c (library_list_start_library): Likewise.
891         * solib-target.c (library_list_start_segment): Likewise.
892         (library_list_start_section): Likewise.
893         * tracepoint.c (traceframe_info_start_memory): Likewise.
894
895 2015-09-26  Iain Buclaw  <ibuclaw@gdcproject.org>
896
897         * d-namespace.c (d_lookup_symbol): New arg langdef.
898         All callers updated.  Support looking up symbol as a primitive type.
899         (lookup_module_scope): New arg langdef.  All callers updated.
900         Call d_lookup_symbol directly for simple bare symbols.
901
902 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
903
904         * macrocmd.c (print_macro_callback): Add cast(s).
905         * macrotab.c (macro_bcache_str): Likewise.
906         (new_macro_definition): Likewise.
907         * main.c (captured_main): Likewise.
908         * maint.c (print_bfd_section_info): Likewise.
909         * mdebugread.c (mdebug_build_psymtabs): Likewise.
910         (basic_type): Likewise.
911         * memattr.c (mem_region_cmp): Likewise.
912         * memory-map.c (memory_map_start_memory): Likewise.
913         (memory_map_end_memory): Likewise.
914         (memory_map_start_property): Likewise.
915         (memory_map_end_property): Likewise.
916         (clear_result): Likewise.
917         * memrange.c (compare_mem_ranges): Likewise.
918         * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
919         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
920         * mi/mi-console.c (mi_console_file_delete): Likewise.
921         (mi_console_file_fputs): Likewise.
922         (mi_console_raw_packet): Likewise.
923         (mi_console_file_flush): Likewise.
924         (mi_console_set_raw): Likewise.
925         * mi/mi-interp.c (mi_interpreter_resume): Likewise.
926         (mi_new_thread): Likewise.
927         (mi_thread_exit): Likewise.
928         (mi_record_changed): Likewise.
929         (mi_inferior_added): Likewise.
930         (mi_inferior_appeared): Likewise.
931         (mi_inferior_exit): Likewise.
932         (mi_inferior_removed): Likewise.
933         (mi_interp_data): Likewise.
934         (mi_on_normal_stop): Likewise.
935         (mi_traceframe_changed): Likewise.
936         (mi_tsv_created): Likewise.
937         (mi_tsv_deleted): Likewise.
938         (mi_tsv_modified): Likewise.
939         (mi_breakpoint_created): Likewise.
940         (mi_breakpoint_deleted): Likewise.
941         (mi_breakpoint_modified): Likewise.
942         (mi_output_running_pid): Likewise.
943         (mi_inferior_count): Likewise.
944         (mi_solib_loaded): Likewise.
945         (mi_solib_unloaded): Likewise.
946         (mi_command_param_changed): Likewise.
947         (mi_memory_changed): Likewise.
948         (report_initial_inferior): Likewise.
949         (mi_ui_out): Likewise.
950         (mi_set_logging): Likewise.
951         * mi/mi-main.c (collect_cores): Likewise.
952         (print_one_inferior): Likewise.
953         (free_vector_of_ints): Likewise.
954         (free_splay_tree): Likewise.
955         (mi_execute_command): Likewise.
956         * mi/mi-out.c (mi_table_body): Likewise.
957         (mi_table_end): Likewise.
958         (mi_table_header): Likewise.
959         (mi_begin): Likewise.
960         (mi_end): Likewise.
961         (mi_field_int): Likewise.
962         (mi_field_string): Likewise.
963         (mi_field_fmt): Likewise.
964         (mi_flush): Likewise.
965         (mi_redirect): Likewise.
966         (field_separator): Likewise.
967         (mi_open): Likewise.
968         (mi_close): Likewise.
969         (mi_out_buffered): Likewise.
970         (mi_out_rewind): Likewise.
971         (mi_out_put): Likewise.
972         (mi_version): Likewise.
973         (mi_out_data_dtor): Likewise.
974         * mi/mi-parse.c (mi_parse_cleanup): Likewise.
975         * microblaze-tdep.c (microblaze_frame_cache): Likewise.
976         * minidebug.c (lzma_open): Likewise.
977         (lzma_pread): Likewise.
978         (lzma_close): Likewise.
979         (lzma_stat): Likewise.
980         * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
981         * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
982         (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
983         * mips-tdep.c (mips_insn16_frame_cache): Likewise.
984         (mips_micro_frame_cache): Likewise.
985         (mips_insn32_frame_cache): Likewise.
986         (mips_stub_frame_cache): Likewise.
987         (gdb_print_insn_mips): Likewise.
988         (value_of_mips_user_reg): Likewise.
989         (mips_gdbarch_init): Likewise.
990         * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
991         * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
992         (mipsnbsd_supply_gregset): Likewise.
993         * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
994         (am33_collect_gregset_method): Likewise.
995         (am33_collect_fpregset_method): Likewise.
996         * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
997         * moxie-tdep.c (moxie_frame_cache): Likewise.
998         * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
999         (msp430_analyze_frame_prologue): Likewise.
1000         * mt-tdep.c (mt_frame_unwind_cache): Likewise.
1001         * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
1002         (nios2_collect_gregset): Likewise.
1003         * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
1004         (nios2_stub_frame_cache): Likewise.
1005         * objc-lang.c (find_methods): Likewise.
1006         * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1007         (get_objfile_pspace_data): Likewise.
1008         (get_objfile_bfd_data): Likewise.
1009         (objfile_bfd_data_free): Likewise.
1010         (add_to_objfile_sections): Likewise.
1011         (do_free_objfile_cleanup): Likewise.
1012         (resume_section_map_updates_cleanup): Likewise.
1013         * opencl-lang.c (builtin_opencl_type): Likewise.
1014         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1015         * osdata.c (osdata_start_osdata): Likewise.
1016         (osdata_start_item): Likewise.
1017         (osdata_start_column): Likewise.
1018         (osdata_end_column): Likewise.
1019         (clear_parsing_data): Likewise.
1020         (osdata_free_cleanup): Likewise.
1021         * parse.c (type_stack_cleanup): Likewise.
1022         (exp_uses_objfile_iter): Likewise.
1023         * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
1024         (ppc_linux_collect_gregset): Likewise.
1025         (ppu2spu_prev_arch): Likewise.
1026         (ppu2spu_this_id): Likewise.
1027         (ppu2spu_prev_register): Likewise.
1028         (ppu2spu_unwind_register): Likewise.
1029         (ppu2spu_sniffer): Likewise.
1030         (ppu2spu_dealloc_cache): Likewise.
1031         (ppc_linux_init_abi): Likewise.
1032         * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
1033         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1034         * progspace.c (restore_program_space): Likewise.
1035         * psymtab.c (find_pc_sect_psymtab): Likewise.
1036         (compare_psymbols): Likewise.
1037         (psymbol_bcache_full): Likewise.
1038         (allocate_psymtab): Likewise.
1039         (discard_psymtabs_upto): Likewise.
1040         * python/py-block.c (set_block): Likewise.
1041         (del_objfile_blocks): Likewise.
1042         * python/py-breakpoint.c (build_bp_list): Likewise.
1043         * python/py-inferior.c (inferior_to_inferior_object): Likewise.
1044         (build_inferior_list): Likewise.
1045         (py_free_inferior): Likewise.
1046         * python/py-objfile.c (py_free_objfile): Likewise.
1047         (objfile_to_objfile_object): Likewise.
1048         * python/py-prettyprint.c (py_restore_tstate): Likewise.
1049         * python/py-progspace.c (py_free_pspace): Likewise.
1050         (pspace_to_pspace_object): Likewise.
1051         * python/py-symbol.c (set_symbol): Likewise.
1052         (del_objfile_symbols): Likewise.
1053         * python/py-symtab.c (set_sal): Likewise.
1054         (set_symtab): Likewise.
1055         (del_objfile_symtab): Likewise.
1056         (del_objfile_sal): Likewise.
1057         * python/py-type.c (save_objfile_types): Likewise.
1058         (set_type): Likewise.
1059         * python/py-unwind.c (pyuw_prev_register): Likewise.
1060         (pyuw_on_new_gdbarch): Likewise.
1061         * python/py-utils.c (py_decref): Likewise.
1062         (py_xdecref): Likewise.
1063         (gdb_py_generic_dict): Likewise.
1064         * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
1065         (gdbpy_clone_xmethod_worker_data): Likewise.
1066         (gdbpy_get_xmethod_arg_types): Likewise.
1067         (gdbpy_get_xmethod_result_type): Likewise.
1068         (gdbpy_invoke_xmethod): Likewise.
1069         * python/python.c (gdbpy_apply_type_printers): Likewise.
1070         (gdbpy_free_type_printers): Likewise.
1071         * record-btrace.c (record_btrace_disable_callback): Likewise.
1072         (bfcache_hash): Likewise.
1073         (bfcache_eq): Likewise.
1074         (btrace_get_frame_function): Likewise.
1075         (record_btrace_frame_unwind_stop_reason): Likewise.
1076         (record_btrace_frame_this_id): Likewise.
1077         (record_btrace_frame_prev_register): Likewise.
1078         (record_btrace_frame_dealloc_cache): Likewise.
1079         * record-full.c (record_full_message_wrapper): Likewise.
1080         (record_full_save_cleanups): Likewise.
1081         * regcache.c (regcache_descr): Likewise.
1082         (do_regcache_xfree): Likewise.
1083         (do_regcache_invalidate): Likewise.
1084         (do_cooked_read): Likewise.
1085         (regcache_transfer_regset): Likewise.
1086         * reggroups.c (reggroup_add): Likewise.
1087         (reggroup_next): Likewise.
1088         (reggroup_prev): Likewise.
1089         * remote-fileio.c (do_remote_fileio_request): Likewise.
1090         * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
1091         (do_notif_event_xfree): Likewise.
1092         * remote.c (get_remote_arch_state): Likewise.
1093         (remote_pspace_data_cleanup): Likewise.
1094         (get_remote_exec_file): Likewise.
1095         (set_pspace_remote_exec_file): Likewise.
1096         (compare_pnums): Likewise.
1097         (clear_threads_listing_context): Likewise.
1098         (remote_newthread_step): Likewise.
1099         (start_thread): Likewise.
1100         (end_thread): Likewise.
1101         (remove_child_of_pending_fork): Likewise.
1102         (remove_stop_reply_for_inferior): Likewise.
1103         (remove_stop_reply_of_remote_state): Likewise.
1104         (remote_notif_remove_once_on_match): Likewise.
1105         (stop_reply_match_ptid_and_ws): Likewise.
1106         (kill_child_of_pending_fork): Likewise.
1107         (register_remote_g_packet_guess): Likewise.
1108         (remote_read_description_p): Likewise.
1109         (remote_read_description): Likewise.
1110         (free_actions_list_cleanup_wrapper): Likewise.
1111         (remote_async_serial_handler): Likewise.
1112         * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
1113         (rl78_analyze_frame_prologue): Likewise.
1114         * rs6000-tdep.c (ppc_supply_gregset): Likewise.
1115         (ppc_supply_fpregset): Likewise.
1116         (ppc_supply_vsxregset): Likewise.
1117         (ppc_supply_vrregset): Likewise.
1118         (ppc_collect_gregset): Likewise.
1119         (ppc_collect_fpregset): Likewise.
1120         (ppc_collect_vsxregset): Likewise.
1121         (ppc_collect_vrregset): Likewise.
1122         (e500_move_ev_register): Likewise.
1123         (do_regcache_raw_write): Likewise.
1124         (rs6000_frame_cache): Likewise.
1125         (rs6000_epilogue_frame_cache): Likewise.
1126         (rs6000_gdbarch_init): Likewise.
1127         * rx-tdep.c (rx_get_opcode_byte): Likewise.
1128         (rx_analyze_frame_prologue): Likewise.
1129         (rx_frame_type): Likewise.
1130         (rx_frame_sniffer_common): Likewise.
1131         * s390-linux-tdep.c (s390_check_for_saved): Likewise.
1132         (s390_frame_unwind_cache): Likewise.
1133         (s390_stub_frame_unwind_cache): Likewise.
1134         (s390_sigtramp_frame_unwind_cache): Likewise.
1135         * score-tdep.c (score_make_prologue_cache): Likewise.
1136         * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
1137         (sentinel_frame_prev_arch): Likewise.
1138         * ser-base.c (fd_event): Likewise.
1139         (push_event): Likewise.
1140         (ser_base_write): Likewise.
1141         * ser-pipe.c (pipe_close): Likewise.
1142         * serial.c (serial_write): Likewise.
1143         * sh-tdep.c (sh_frame_cache): Likewise.
1144         (sh_stub_this_id): Likewise.
1145         * sh64-tdep.c (sh64_frame_cache): Likewise.
1146         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
1147         (library_list_start_library): Likewise.
1148         (library_list_start_list): Likewise.
1149         (solib_aix_free_library_list): Likewise.
1150         * solib-darwin.c (get_darwin_info): Likewise.
1151         * solib-dsbt.c (get_dsbt_info): Likewise.
1152         * solib-spu.c (append_ocl_sos): Likewise.
1153         * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1154         (get_svr4_info): Likewise.
1155         (library_list_start_library): Likewise.
1156         (svr4_library_list_start_list): Likewise.
1157         (hash_probe_and_action): Likewise.
1158         (equal_probe_and_action): Likewise.
1159         (svr4_update_solib_event_breakpoint): Likewise.
1160         (set_solib_svr4_fetch_link_map_offsets): Likewise.
1161         (svr4_fetch_link_map_offsets): Likewise.
1162         (svr4_have_link_map_offsets): Likewise.
1163         * solib-target.c (library_list_start_segment): Likewise.
1164         (library_list_start_section): Likewise.
1165         (library_list_start_library): Likewise.
1166         (library_list_end_library): Likewise.
1167         (library_list_start_list): Likewise.
1168         (solib_target_free_library_list): Likewise.
1169         * solib.c (solib_ops): Likewise.
1170         (set_solib_ops): Likewise.
1171         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1172         * sparc-tdep.c (sparc_frame_cache): Likewise.
1173         (sparc32_frame_cache): Likewise.
1174         (sparc32_supply_gregset): Likewise.
1175         (sparc32_collect_gregset): Likewise.
1176         (sparc32_supply_fpregset): Likewise.
1177         (sparc32_collect_fpregset): Likewise.
1178         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1179         * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1180         (sparc64_collect_gregset): Likewise.
1181         (sparc64_supply_fpregset): Likewise.
1182         (sparc64_collect_fpregset): Likewise.
1183         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
1184         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
1185         * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
1186         (sparc64obsd_trapframe_cache): Likewise.
1187         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
1188         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
1189         * spu-multiarch.c (spu_gdbarch): Likewise.
1190         * spu-tdep.c (spu_frame_unwind_cache): Likewise.
1191         (spu2ppu_prev_arch): Likewise.
1192         (spu2ppu_this_id): Likewise.
1193         (spu2ppu_prev_register): Likewise.
1194         (spu2ppu_dealloc_cache): Likewise.
1195         (spu_dis_asm_print_address): Likewise.
1196         (gdb_print_insn_spu): Likewise.
1197         (spu_get_overlay_table): Likewise.
1198         * stabsread.c (rs6000_builtin_type): Likewise.
1199         * stack.c (do_print_variable_and_value): Likewise.
1200         * stap-probe.c (get_stap_base_address_1): Likewise.
1201         * symfile-debug.c (debug_qf_has_symbols): Likewise.
1202         (debug_qf_find_last_source_symtab): Likewise.
1203         (debug_qf_forget_cached_source_info): Likewise.
1204         (debug_qf_map_symtabs_matching_filename): Likewise.
1205         (debug_qf_lookup_symbol): Likewise.
1206         (debug_qf_print_stats): Likewise.
1207         (debug_qf_dump): Likewise.
1208         (debug_qf_relocate): Likewise.
1209         (debug_qf_expand_symtabs_for_function): Likewise.
1210         (debug_qf_expand_all_symtabs): Likewise.
1211         (debug_qf_expand_symtabs_with_fullname): Likewise.
1212         (debug_qf_map_matching_symbols): Likewise.
1213         (debug_qf_expand_symtabs_matching): Likewise.
1214         (debug_qf_find_pc_sect_compunit_symtab): Likewise.
1215         (debug_qf_map_symbol_filenames): Likewise.
1216         (debug_sym_get_probes): Likewise.
1217         (debug_sym_new_init): Likewise.
1218         (debug_sym_init): Likewise.
1219         (debug_sym_read): Likewise.
1220         (debug_sym_read_psymbols): Likewise.
1221         (debug_sym_finish): Likewise.
1222         (debug_sym_offsets): Likewise.
1223         (debug_sym_read_linetable): Likewise.
1224         (debug_sym_relocate): Likewise.
1225         (uninstall_symfile_debug_logging): Likewise.
1226         * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
1227         * symfile.c (place_section): Likewise.
1228         (add_section_size_callback): Likewise.
1229         (load_progress): Likewise.
1230         (load_section_callback): Likewise.
1231         (clear_memory_write_data): Likewise.
1232         (allocate_symtab): Likewise.
1233         * symmisc.c (maintenance_expand_file_matcher): Likewise.
1234         * symtab.c (lookup_symtab_callback): Likewise.
1235         (hash_demangled_name_entry): Likewise.
1236         (eq_demangled_name_entry): Likewise.
1237         (get_symbol_cache): Likewise.
1238         (symbol_cache_cleanup): Likewise.
1239         (set_symbol_cache_size): Likewise.
1240         (symbol_cache_flush): Likewise.
1241         (maintenance_print_symbol_cache): Likewise.
1242         (maintenance_print_symbol_cache_statistics): Likewise.
1243         (delete_filename_seen_cache): Likewise.
1244         (output_partial_symbol_filename): Likewise.
1245         (search_symbols_file_matches): Likewise.
1246         (search_symbols_name_matches): Likewise.
1247         (do_free_completion_list): Likewise.
1248         (maybe_add_partial_symtab_filename): Likewise.
1249         (get_main_info): Likewise.
1250         (main_info_cleanup): Likewise.
1251         * target-dcache.c (target_dcache_cleanup): Likewise.
1252         (target_dcache_init_p): Likewise.
1253         (target_dcache_invalidate): Likewise.
1254         (target_dcache_get): Likewise.
1255         (target_dcache_get_or_init): Likewise.
1256         * target-descriptions.c (target_find_description): Likewise.
1257         (tdesc_find_type): Likewise.
1258         (tdesc_data_cleanup): Likewise.
1259         (tdesc_find_arch_register): Likewise.
1260         (tdesc_register_name): Likewise.
1261         (tdesc_register_type): Likewise.
1262         (tdesc_register_reggroup_p): Likewise.
1263         (set_tdesc_pseudo_register_name): Likewise.
1264         (set_tdesc_pseudo_register_type): Likewise.
1265         (set_tdesc_pseudo_register_reggroup_p): Likewise.
1266         (tdesc_use_registers): Likewise.
1267         (free_target_description): Likewise.
1268         * target-memory.c (compare_block_starting_address): Likewise.
1269         (cleanup_request_data): Likewise.
1270         (cleanup_write_requests_vector): Likewise.
1271         * target.c (open_target): Likewise.
1272         (cleanup_restore_target_terminal): Likewise.
1273         (free_memory_read_result_vector): Likewise.
1274         * thread.c (disable_thread_stack_temporaries): Likewise.
1275         (finish_thread_state_cleanup): Likewise.
1276         (do_restore_current_thread_cleanup): Likewise.
1277         (restore_current_thread_cleanup_dtor): Likewise.
1278         (set_thread_refcount): Likewise.
1279         (tp_array_compar): Likewise.
1280         (do_captured_thread_select): Likewise.
1281         * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
1282         (tic6x_stub_this_id): Likewise.
1283         * tilegx-tdep.c (tilegx_frame_cache): Likewise.
1284         * top.c (do_restore_instream_cleanup): Likewise.
1285         (gdb_readline_wrapper_cleanup): Likewise.
1286         (kill_or_detach): Likewise.
1287         (print_inferior_quit_action): Likewise.
1288         * tracefile-tfile.c (match_blocktype): Likewise.
1289         (build_traceframe_info): Likewise.
1290         * tracefile.c (trace_file_writer_xfree): Likewise.
1291         * tracepoint.c (memrange_cmp): Likewise.
1292         (do_collect_symbol): Likewise.
1293         (do_clear_collection_list): Likewise.
1294         (do_restore_current_traceframe_cleanup): Likewise.
1295         (restore_current_traceframe_cleanup_dtor): Likewise.
1296         (free_current_marker): Likewise.
1297         (traceframe_info_start_memory): Likewise.
1298         (traceframe_info_start_tvar): Likewise.
1299         (free_result): Likewise.
1300         * tramp-frame.c (tramp_frame_cache): Likewise.
1301         * tui/tui-file.c (tui_file_delete): Likewise.
1302         (tui_fileopen): Likewise.
1303         (tui_sfileopen): Likewise.
1304         (tui_file_isatty): Likewise.
1305         (tui_file_rewind): Likewise.
1306         (tui_file_put): Likewise.
1307         (tui_file_fputs): Likewise.
1308         (tui_file_get_strbuf): Likewise.
1309         (tui_file_adjust_strbuf): Likewise.
1310         (tui_file_flush): Likewise.
1311         * tui/tui-layout.c (make_command_window): Likewise.
1312         (make_data_window): Likewise.
1313         (show_source_disasm_command): Likewise.
1314         (show_data): Likewise.
1315         (make_source_or_disasm_window): Likewise.
1316         (show_source_or_disasm_and_command): Likewise.
1317         * tui/tui-out.c (tui_field_int): Likewise.
1318         (tui_field_string): Likewise.
1319         (tui_field_fmt): Likewise.
1320         (tui_text): Likewise.
1321         * typeprint.c (hash_typedef_field): Likewise.
1322         (eq_typedef_field): Likewise.
1323         (do_free_typedef_hash): Likewise.
1324         (copy_typedef_hash_element): Likewise.
1325         (do_free_global_table): Likewise.
1326         (find_global_typedef): Likewise.
1327         (find_typedef_in_hash): Likewise.
1328         * ui-file.c (ui_file_write_for_put): Likewise.
1329         (do_ui_file_xstrdup): Likewise.
1330         (mem_file_delete): Likewise.
1331         (mem_file_rewind): Likewise.
1332         (mem_file_put): Likewise.
1333         (mem_file_write): Likewise.
1334         (stdio_file_delete): Likewise.
1335         (stdio_file_flush): Likewise.
1336         (stdio_file_read): Likewise.
1337         (stdio_file_write): Likewise.
1338         (stdio_file_write_async_safe): Likewise.
1339         (stdio_file_fputs): Likewise.
1340         (stdio_file_isatty): Likewise.
1341         (stdio_file_fseek): Likewise.
1342         (tee_file_delete): Likewise.
1343         (tee_file_flush): Likewise.
1344         (tee_file_write): Likewise.
1345         (tee_file_fputs): Likewise.
1346         (tee_file_isatty): Likewise.
1347         * ui-out.c (do_cleanup_table_end): Likewise.
1348         (do_cleanup_end): Likewise.
1349         * user-regs.c (user_reg_add): Likewise.
1350         (user_reg_map_name_to_regnum): Likewise.
1351         (usernum_to_user_reg): Likewise.
1352         (maintenance_print_user_registers): Likewise.
1353         * utils.c (do_bfd_close_cleanup): Likewise.
1354         (do_fclose_cleanup): Likewise.
1355         (do_obstack_free): Likewise.
1356         (do_ui_file_delete): Likewise.
1357         (do_ui_out_redirect_pop): Likewise.
1358         (do_free_section_addr_info): Likewise.
1359         (restore_integer): Likewise.
1360         (do_unpush_target): Likewise.
1361         (do_htab_delete_cleanup): Likewise.
1362         (do_restore_ui_file): Likewise.
1363         (do_value_free): Likewise.
1364         (do_free_so): Likewise.
1365         (free_current_contents): Likewise.
1366         (do_regfree_cleanup): Likewise.
1367         (core_addr_hash): Likewise.
1368         (core_addr_eq): Likewise.
1369         (do_free_char_ptr_vec): Likewise.
1370         * v850-tdep.c (v850_frame_cache): Likewise.
1371         * varobj.c (do_free_variable_cleanup): Likewise.
1372         * vax-tdep.c (vax_supply_gregset): Likewise.
1373         (vax_frame_cache): Likewise.
1374         * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
1375         * xml-support.c (gdb_xml_body_text): Likewise.
1376         (gdb_xml_values_cleanup): Likewise.
1377         (gdb_xml_start_element): Likewise.
1378         (gdb_xml_start_element_wrapper): Likewise.
1379         (gdb_xml_end_element): Likewise.
1380         (gdb_xml_end_element_wrapper): Likewise.
1381         (gdb_xml_cleanup): Likewise.
1382         (gdb_xml_fetch_external_entity): Likewise.
1383         (gdb_xml_parse_attr_enum): Likewise.
1384         (xinclude_start_include): Likewise.
1385         (xinclude_end_include): Likewise.
1386         (xml_xinclude_default): Likewise.
1387         (xml_xinclude_start_doctype): Likewise.
1388         (xml_xinclude_end_doctype): Likewise.
1389         (xml_xinclude_cleanup): Likewise.
1390         (xml_fetch_content_from_file): Likewise.
1391         * xml-syscall.c (free_syscalls_info): Likewise.
1392         (syscall_start_syscall): Likewise.
1393         * xml-tdesc.c (tdesc_end_arch): Likewise.
1394         (tdesc_end_osabi): Likewise.
1395         (tdesc_end_compatible): Likewise.
1396         (tdesc_start_target): Likewise.
1397         (tdesc_start_feature): Likewise.
1398         (tdesc_start_reg): Likewise.
1399         (tdesc_start_union): Likewise.
1400         (tdesc_start_struct): Likewise.
1401         (tdesc_start_flags): Likewise.
1402         (tdesc_start_field): Likewise.
1403         (tdesc_start_vector): Likewise.
1404         (fetch_available_features_from_target): Likewise.
1405         * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
1406         * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
1407         (xtensa_frame_cache): Likewise.
1408         (xtensa_frame_prev_register): Likewise.
1409         (xtensa_extract_return_value): Likewise.
1410
1411 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
1412
1413         * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
1414         (aarch64_make_stub_cache): Likewise.
1415         (value_of_aarch64_user_reg): Likewise.
1416         * ada-lang.c (ada_inferior_data_cleanup): Likewise.
1417         (get_ada_inferior_data): Likewise.
1418         (get_ada_pspace_data): Likewise.
1419         (ada_pspace_data_cleanup): Likewise.
1420         (ada_complete_symbol_matcher): Likewise.
1421         (ada_exc_search_name_matches): Likewise.
1422         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
1423         (get_ada_tasks_inferior_data): Likewise.
1424         * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
1425         (splay_obstack_alloc): Likewise.
1426         (splay_obstack_free): Likewise.
1427         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
1428         (alpha_linux_collect_gregset): Likewise.
1429         (alpha_linux_supply_fpregset): Likewise.
1430         (alpha_linux_collect_fpregset): Likewise.
1431         * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1432         * alpha-tdep.c (alpha_lds): Likewise.
1433         (alpha_sts): Likewise.
1434         (alpha_sigtramp_frame_unwind_cache): Likewise.
1435         (alpha_heuristic_frame_unwind_cache): Likewise.
1436         (alpha_supply_int_regs): Likewise.
1437         (alpha_fill_int_regs): Likewise.
1438         (alpha_supply_fp_regs): Likewise.
1439         (alpha_fill_fp_regs): Likewise.
1440         * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
1441         (alphanbsd_aout_supply_gregset): Likewise.
1442         (alphanbsd_supply_gregset): Likewise.
1443         * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
1444         (amd64_x32_linux_init_abi): Likewise.
1445         * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1446         (amd64_collect_native_gregset): Likewise.
1447         * amd64-tdep.c (amd64_frame_cache): Likewise.
1448         (amd64_sigtramp_frame_cache): Likewise.
1449         (amd64_epilogue_frame_cache): Likewise.
1450         (amd64_supply_fxsave): Likewise.
1451         (amd64_supply_xsave): Likewise.
1452         (amd64_collect_fxsave): Likewise.
1453         (amd64_collect_xsave): Likewise.
1454         * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
1455         * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
1456         * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1457         (arm_linux_collect_gregset): Likewise.
1458         (arm_linux_supply_nwfpe): Likewise.
1459         (arm_linux_collect_nwfpe): Likewise.
1460         (arm_linux_supply_vfp): Likewise.
1461         (arm_linux_collect_vfp): Likewise.
1462         * arm-tdep.c (arm_find_mapping_symbol): Likewise.
1463         (arm_prologue_unwind_stop_reason): Likewise.
1464         (arm_prologue_this_id): Likewise.
1465         (arm_prologue_prev_register): Likewise.
1466         (arm_exidx_data_free): Likewise.
1467         (arm_find_exidx_entry): Likewise.
1468         (arm_stub_this_id): Likewise.
1469         (arm_m_exception_this_id): Likewise.
1470         (arm_m_exception_prev_register): Likewise.
1471         (arm_normal_frame_base): Likewise.
1472         (gdb_print_insn_arm): Likewise.
1473         (arm_objfile_data_free): Likewise.
1474         (arm_record_special_symbol): Likewise.
1475         (value_of_arm_user_reg): Likewise.
1476         * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
1477         (armbsd_supply_gregset): Likewise.
1478         * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
1479         (get_auto_load_pspace_data): Likewise.
1480         (hash_loaded_script_entry): Likewise.
1481         (eq_loaded_script_entry): Likewise.
1482         (clear_section_scripts): Likewise.
1483         (collect_matching_scripts): Likewise.
1484         * auxv.c (auxv_inferior_data_cleanup): Likewise.
1485         (get_auxv_inferior_data): Likewise.
1486         * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1487         * ax-general.c (do_free_agent_expr_cleanup): Likewise.
1488         * bfd-target.c (target_bfd_xfer_partial): Likewise.
1489         (target_bfd_xclose): Likewise.
1490         (target_bfd_get_section_table): Likewise.
1491         * bfin-tdep.c (bfin_frame_cache): Likewise.
1492         * block.c (find_block_in_blockvector): Likewise.
1493         (call_site_for_pc): Likewise.
1494         (block_find_non_opaque_type_preferred): Likewise.
1495         * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
1496         (signal_catchpoint_remove_location): Likewise.
1497         (signal_catchpoint_breakpoint_hit): Likewise.
1498         (signal_catchpoint_print_one): Likewise.
1499         (signal_catchpoint_print_mention): Likewise.
1500         (signal_catchpoint_print_recreate): Likewise.
1501         * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
1502         * breakpoint.c (do_cleanup_counted_command_line): Likewise.
1503         (bp_location_compare_addrs): Likewise.
1504         (get_first_locp_gte_addr): Likewise.
1505         (check_tracepoint_command): Likewise.
1506         (do_map_commands_command): Likewise.
1507         (get_breakpoint_objfile_data): Likewise.
1508         (free_breakpoint_probes): Likewise.
1509         (do_captured_breakpoint_query): Likewise.
1510         (compare_breakpoints): Likewise.
1511         (bp_location_compare): Likewise.
1512         (bpstat_remove_breakpoint_callback): Likewise.
1513         (do_delete_breakpoint_cleanup): Likewise.
1514         * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
1515         (bsd_uthread_set_collect_uthread): Likewise.
1516         (bsd_uthread_activate): Likewise.
1517         (bsd_uthread_fetch_registers): Likewise.
1518         (bsd_uthread_store_registers): Likewise.
1519         * btrace.c (check_xml_btrace_version): Likewise.
1520         (parse_xml_btrace_block): Likewise.
1521         (parse_xml_btrace_pt_config_cpu): Likewise.
1522         (parse_xml_btrace_pt_raw): Likewise.
1523         (parse_xml_btrace_pt): Likewise.
1524         (parse_xml_btrace_conf_bts): Likewise.
1525         (parse_xml_btrace_conf_pt): Likewise.
1526         (do_btrace_data_cleanup): Likewise.
1527         * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
1528         * charset.c (cleanup_iconv): Likewise.
1529         (do_cleanup_iterator): Likewise.
1530         * cli-out.c (cli_uiout_dtor): Likewise.
1531         (cli_table_begin): Likewise.
1532         (cli_table_body): Likewise.
1533         (cli_table_end): Likewise.
1534         (cli_table_header): Likewise.
1535         (cli_begin): Likewise.
1536         (cli_end): Likewise.
1537         (cli_field_int): Likewise.
1538         (cli_field_skip): Likewise.
1539         (cli_field_string): Likewise.
1540         (cli_field_fmt): Likewise.
1541         (cli_spaces): Likewise.
1542         (cli_text): Likewise.
1543         (cli_message): Likewise.
1544         (cli_wrap_hint): Likewise.
1545         (cli_flush): Likewise.
1546         (cli_redirect): Likewise.
1547         (out_field_fmt): Likewise.
1548         (field_separator): Likewise.
1549         (cli_out_set_stream): Likewise.
1550         * cli/cli-cmds.c (compare_symtabs): Likewise.
1551         * cli/cli-dump.c (call_dump_func): Likewise.
1552         (restore_section_callback): Likewise.
1553         * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
1554         (do_restore_user_call_depth): Likewise.
1555         (do_free_command_lines_cleanup): Likewise.
1556         * coff-pe-read.c (get_section_vmas): Likewise.
1557         (pe_as16): Likewise.
1558         (pe_as32): Likewise.
1559         * coffread.c (coff_symfile_read): Likewise.
1560         * common/agent.c (agent_look_up_symbols): Likewise.
1561         * common/filestuff.c (do_close_cleanup): Likewise.
1562         * common/format.c (free_format_pieces_cleanup): Likewise.
1563         * common/vec.c (vec_o_reserve): Likewise.
1564         * compile/compile-c-support.c (print_one_macro): Likewise.
1565         * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
1566         (eq_symbol_error): Likewise.
1567         (del_symbol_error): Likewise.
1568         (error_symbol_once): Likewise.
1569         (gcc_convert_symbol): Likewise.
1570         (gcc_symbol_address): Likewise.
1571         (hash_symname): Likewise.
1572         (eq_symname): Likewise.
1573         * compile/compile-c-types.c (hash_type_map_instance): Likewise.
1574         (eq_type_map_instance): Likewise.
1575         (insert_type): Likewise.
1576         (convert_type): Likewise.
1577         * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
1578         (setup_sections): Likewise.
1579         (link_hash_table_free): Likewise.
1580         (copy_sections): Likewise.
1581         * compile/compile-object-run.c (do_module_cleanup): Likewise.
1582         * compile/compile.c (compile_print_value): Likewise.
1583         (do_rmdir): Likewise.
1584         (cleanup_compile_instance): Likewise.
1585         (cleanup_unlink_file): Likewise.
1586         * completer.c (free_completion_tracker): Likewise.
1587         * corelow.c (add_to_spuid_list): Likewise.
1588         * cp-namespace.c (reset_directive_searched): Likewise.
1589         * cp-support.c (reset_directive_searched): Likewise.
1590         * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
1591         (cris_frame_unwind_cache): Likewise.
1592         * d-lang.c (builtin_d_type): Likewise.
1593         * d-namespace.c (reset_directive_searched): Likewise.
1594         * dbxread.c (dbx_free_symfile_info): Likewise.
1595         (do_free_bincl_list_cleanup): Likewise.
1596         * disasm.c (hash_dis_line_entry): Likewise.
1597         (eq_dis_line_entry): Likewise.
1598         (dis_asm_print_address): Likewise.
1599         (fprintf_disasm): Likewise.
1600         (do_ui_file_delete): Likewise.
1601         * doublest.c (convert_floatformat_to_doublest): Likewise.
1602         * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1603         (dummy_frame_prev_register): Likewise.
1604         (dummy_frame_this_id): Likewise.
1605         * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1606         (cache_eq): Likewise.
1607         (cache_find): Likewise.
1608         (tailcall_frame_this_id): Likewise.
1609         (dwarf2_tailcall_prev_register_first): Likewise.
1610         (tailcall_frame_prev_register): Likewise.
1611         (tailcall_frame_dealloc_cache): Likewise.
1612         (tailcall_frame_prev_arch): Likewise.
1613         * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1614         (dwarf2_frame_set_init_reg): Likewise.
1615         (dwarf2_frame_init_reg): Likewise.
1616         (dwarf2_frame_set_signal_frame_p): Likewise.
1617         (dwarf2_frame_signal_frame_p): Likewise.
1618         (dwarf2_frame_set_adjust_regnum): Likewise.
1619         (dwarf2_frame_adjust_regnum): Likewise.
1620         (clear_pointer_cleanup): Likewise.
1621         (dwarf2_frame_cache): Likewise.
1622         (find_cie): Likewise.
1623         (dwarf2_frame_find_fde): Likewise.
1624         * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1625         (free_dwarf_expr_context_cleanup): Likewise.
1626         * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1627         (locexpr_get_frame_base): Likewise.
1628         (loclist_find_frame_base_location): Likewise.
1629         (loclist_get_frame_base): Likewise.
1630         (dwarf_expr_dwarf_call): Likewise.
1631         (dwarf_expr_get_base_type): Likewise.
1632         (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1633         (dwarf_expr_get_obj_addr): Likewise.
1634         (entry_data_value_coerce_ref): Likewise.
1635         (entry_data_value_copy_closure): Likewise.
1636         (entry_data_value_free_closure): Likewise.
1637         (get_frame_address_in_block_wrapper): Likewise.
1638         (dwarf2_evaluate_property): Likewise.
1639         (dwarf2_compile_property_to_c): Likewise.
1640         (needs_frame_read_addr_from_reg): Likewise.
1641         (needs_frame_get_reg_value): Likewise.
1642         (needs_frame_frame_base): Likewise.
1643         (needs_frame_frame_cfa): Likewise.
1644         (needs_frame_tls_address): Likewise.
1645         (needs_frame_dwarf_call): Likewise.
1646         (needs_dwarf_reg_entry_value): Likewise.
1647         (get_ax_pc): Likewise.
1648         (locexpr_read_variable): Likewise.
1649         (locexpr_read_variable_at_entry): Likewise.
1650         (locexpr_read_needs_frame): Likewise.
1651         (locexpr_describe_location): Likewise.
1652         (locexpr_tracepoint_var_ref): Likewise.
1653         (locexpr_generate_c_location): Likewise.
1654         (loclist_read_variable): Likewise.
1655         (loclist_read_variable_at_entry): Likewise.
1656         (loclist_describe_location): Likewise.
1657         (loclist_tracepoint_var_ref): Likewise.
1658         (loclist_generate_c_location): Likewise.
1659         * dwarf2read.c (line_header_hash_voidp): Likewise.
1660         (line_header_eq_voidp): Likewise.
1661         (dwarf2_has_info): Likewise.
1662         (dwarf2_get_section_info): Likewise.
1663         (locate_dwz_sections): Likewise.
1664         (hash_file_name_entry): Likewise.
1665         (eq_file_name_entry): Likewise.
1666         (delete_file_name_entry): Likewise.
1667         (dw2_setup): Likewise.
1668         (dw2_get_file_names_reader): Likewise.
1669         (dw2_find_pc_sect_compunit_symtab): Likewise.
1670         (hash_signatured_type): Likewise.
1671         (eq_signatured_type): Likewise.
1672         (add_signatured_type_cu_to_table): Likewise.
1673         (create_debug_types_hash_table): Likewise.
1674         (lookup_dwo_signatured_type): Likewise.
1675         (lookup_dwp_signatured_type): Likewise.
1676         (lookup_signatured_type): Likewise.
1677         (hash_type_unit_group): Likewise.
1678         (eq_type_unit_group): Likewise.
1679         (get_type_unit_group): Likewise.
1680         (process_psymtab_comp_unit_reader): Likewise.
1681         (sort_tu_by_abbrev_offset): Likewise.
1682         (process_skeletonless_type_unit): Likewise.
1683         (psymtabs_addrmap_cleanup): Likewise.
1684         (dwarf2_read_symtab): Likewise.
1685         (psymtab_to_symtab_1): Likewise.
1686         (die_hash): Likewise.
1687         (die_eq): Likewise.
1688         (load_full_comp_unit_reader): Likewise.
1689         (reset_die_in_process): Likewise.
1690         (free_cu_line_header): Likewise.
1691         (handle_DW_AT_stmt_list): Likewise.
1692         (hash_dwo_file): Likewise.
1693         (eq_dwo_file): Likewise.
1694         (hash_dwo_unit): Likewise.
1695         (eq_dwo_unit): Likewise.
1696         (create_dwo_cu_reader): Likewise.
1697         (create_dwo_unit_in_dwp_v1): Likewise.
1698         (create_dwo_unit_in_dwp_v2): Likewise.
1699         (lookup_dwo_unit_in_dwp): Likewise.
1700         (dwarf2_locate_dwo_sections): Likewise.
1701         (dwarf2_locate_common_dwp_sections): Likewise.
1702         (dwarf2_locate_v2_dwp_sections): Likewise.
1703         (hash_dwp_loaded_cutus): Likewise.
1704         (eq_dwp_loaded_cutus): Likewise.
1705         (lookup_dwo_cutu): Likewise.
1706         (abbrev_table_free_cleanup): Likewise.
1707         (dwarf2_free_abbrev_table): Likewise.
1708         (find_partial_die_in_comp_unit): Likewise.
1709         (free_line_header_voidp): Likewise.
1710         (follow_die_offset): Likewise.
1711         (follow_die_sig_1): Likewise.
1712         (free_heap_comp_unit): Likewise.
1713         (free_stack_comp_unit): Likewise.
1714         (dwarf2_free_objfile): Likewise.
1715         (per_cu_offset_and_type_hash): Likewise.
1716         (per_cu_offset_and_type_eq): Likewise.
1717         (get_die_type_at_offset): Likewise.
1718         (partial_die_hash): Likewise.
1719         (partial_die_eq): Likewise.
1720         (dwarf2_per_objfile_free): Likewise.
1721         (hash_strtab_entry): Likewise.
1722         (eq_strtab_entry): Likewise.
1723         (add_string): Likewise.
1724         (hash_symtab_entry): Likewise.
1725         (eq_symtab_entry): Likewise.
1726         (delete_symtab_entry): Likewise.
1727         (cleanup_mapped_symtab): Likewise.
1728         (add_indices_to_cpool): Likewise.
1729         (hash_psymtab_cu_index): Likewise.
1730         (eq_psymtab_cu_index): Likewise.
1731         (add_address_entry_worker): Likewise.
1732         (unlink_if_set): Likewise.
1733         (write_one_signatured_type): Likewise.
1734         (save_gdb_index_command): Likewise.
1735         * elfread.c (elf_symtab_read): Likewise.
1736         (elf_gnu_ifunc_cache_hash): Likewise.
1737         (elf_gnu_ifunc_cache_eq): Likewise.
1738         (elf_gnu_ifunc_record_cache): Likewise.
1739         (elf_gnu_ifunc_resolve_by_cache): Likewise.
1740         (elf_get_probes): Likewise.
1741         (probe_key_free): Likewise.
1742         * f-lang.c (builtin_f_type): Likewise.
1743         * frame-base.c (frame_base_append_sniffer): Likewise.
1744         (frame_base_set_default): Likewise.
1745         (frame_base_find_by_frame): Likewise.
1746         * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1747         (frame_unwind_append_unwinder): Likewise.
1748         (frame_unwind_find_by_frame): Likewise.
1749         * frame.c (frame_addr_hash): Likewise.
1750         (frame_addr_hash_eq): Likewise.
1751         (frame_stash_find): Likewise.
1752         (do_frame_register_read): Likewise.
1753         (unwind_to_current_frame): Likewise.
1754         (frame_cleanup_after_sniffer): Likewise.
1755         * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1756         * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1757         * ft32-tdep.c (ft32_frame_cache): Likewise.
1758         * gcore.c (do_bfd_delete_cleanup): Likewise.
1759         (gcore_create_callback): Likewise.
1760         * gdb_bfd.c (hash_bfd): Likewise.
1761         (eq_bfd): Likewise.
1762         (gdb_bfd_open): Likewise.
1763         (free_one_bfd_section): Likewise.
1764         (gdb_bfd_ref): Likewise.
1765         (gdb_bfd_unref): Likewise.
1766         (get_section_descriptor): Likewise.
1767         (gdb_bfd_map_section): Likewise.
1768         (gdb_bfd_crc): Likewise.
1769         (gdb_bfd_mark_parent): Likewise.
1770         (gdb_bfd_record_inclusion): Likewise.
1771         (gdb_bfd_requires_relocations): Likewise.
1772         (print_one_bfd): Likewise.
1773         * gdbtypes.c (type_pair_hash): Likewise.
1774         (type_pair_eq): Likewise.
1775         (builtin_type): Likewise.
1776         (objfile_type): Likewise.
1777         * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1778         (vtable_address_point_offset): Likewise.
1779         (gnuv3_get_vtable): Likewise.
1780         (hash_value_and_voffset): Likewise.
1781         (eq_value_and_voffset): Likewise.
1782         (compare_value_and_voffset): Likewise.
1783         (compute_vtable_size): Likewise.
1784         (gnuv3_get_typeid_type): Likewise.
1785         * go-lang.c (builtin_go_type): Likewise.
1786         * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1787         (bkscm_eq_block_smob): Likewise.
1788         (bkscm_objfile_block_map): Likewise.
1789         (bkscm_del_objfile_blocks): Likewise.
1790         * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1791         * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1792         (gdbscm_disasm_print_address): Likewise.
1793         * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1794         (frscm_eq_frame_smob): Likewise.
1795         (frscm_inferior_frame_map): Likewise.
1796         (frscm_del_inferior_frames): Likewise.
1797         * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1798         * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1799         (ofscm_objfile_smob_from_objfile): Likewise.
1800         * guile/scm-ports.c (ioscm_write): Likewise.
1801         (ioscm_file_port_delete): Likewise.
1802         (ioscm_file_port_rewind): Likewise.
1803         (ioscm_file_port_put): Likewise.
1804         (ioscm_file_port_write): Likewise.
1805         * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1806         (psscm_pspace_smob_from_pspace): Likewise.
1807         * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1808         (scscm_recording_unwind_handler): Likewise.
1809         (gdbscm_with_catch): Likewise.
1810         (scscm_call_0_body): Likewise.
1811         (scscm_call_1_body): Likewise.
1812         (scscm_call_2_body): Likewise.
1813         (scscm_call_3_body): Likewise.
1814         (scscm_call_4_body): Likewise.
1815         (scscm_apply_1_body): Likewise.
1816         (scscm_eval_scheme_string): Likewise.
1817         (gdbscm_safe_eval_string): Likewise.
1818         (scscm_source_scheme_script): Likewise.
1819         (gdbscm_safe_source_script): Likewise.
1820         * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1821         (gdbscm_call_scm_from_stringn): Likewise.
1822         * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1823         (syscm_eq_symbol_smob): Likewise.
1824         (syscm_get_symbol_map): Likewise.
1825         (syscm_del_objfile_symbols): Likewise.
1826         * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1827         (stscm_eq_symtab_smob): Likewise.
1828         (stscm_objfile_symtab_map): Likewise.
1829         (stscm_del_objfile_symtabs): Likewise.
1830         * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1831         (tyscm_eq_type_smob): Likewise.
1832         (tyscm_type_map): Likewise.
1833         (tyscm_copy_type_recursive): Likewise.
1834         (save_objfile_types): Likewise.
1835         * guile/scm-utils.c (extract_arg): Likewise.
1836         * h8300-tdep.c (h8300_frame_cache): Likewise.
1837         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1838         * hppa-tdep.c (compare_unwind_entries): Likewise.
1839         (find_unwind_entry): Likewise.
1840         (hppa_frame_cache): Likewise.
1841         (hppa_stub_frame_unwind_cache): Likewise.
1842         * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1843         * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1844         (hppaobsd_supply_fpregset): Likewise.
1845         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1846         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1847         * i386-tdep.c (i386_frame_cache): Likewise.
1848         (i386_epilogue_frame_cache): Likewise.
1849         (i386_sigtramp_frame_cache): Likewise.
1850         (i386_supply_gregset): Likewise.
1851         (i386_collect_gregset): Likewise.
1852         (i386_gdbarch_init): Likewise.
1853         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1854         (i386obsd_trapframe_cache): Likewise.
1855         * i387-tdep.c (i387_supply_fsave): Likewise.
1856         (i387_collect_fsave): Likewise.
1857         (i387_supply_fxsave): Likewise.
1858         (i387_collect_fxsave): Likewise.
1859         (i387_supply_xsave): Likewise.
1860         (i387_collect_xsave): Likewise.
1861         * ia64-tdep.c (ia64_frame_cache): Likewise.
1862         (ia64_sigtramp_frame_cache): Likewise.
1863         * infcmd.c (attach_command_continuation): Likewise.
1864         (attach_command_continuation_free_args): Likewise.
1865         * inferior.c (restore_inferior): Likewise.
1866         (delete_thread_of_inferior): Likewise.
1867         * inflow.c (inflow_inferior_data_cleanup): Likewise.
1868         (get_inflow_inferior_data): Likewise.
1869         (inflow_inferior_exit): Likewise.
1870         * infrun.c (displaced_step_clear_cleanup): Likewise.
1871         (restore_current_uiout_cleanup): Likewise.
1872         (release_stop_context_cleanup): Likewise.
1873         (do_restore_infcall_suspend_state_cleanup): Likewise.
1874         (do_restore_infcall_control_state_cleanup): Likewise.
1875         (restore_inferior_ptid): Likewise.
1876         * inline-frame.c (block_starting_point_at): Likewise.
1877         * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1878         * jit.c (get_jit_objfile_data): Likewise.
1879         (get_jit_program_space_data): Likewise.
1880         (jit_object_close_impl): Likewise.
1881         (jit_find_objf_with_entry_addr): Likewise.
1882         (jit_breakpoint_deleted): Likewise.
1883         (jit_unwind_reg_set_impl): Likewise.
1884         (jit_unwind_reg_get_impl): Likewise.
1885         (jit_dealloc_cache): Likewise.
1886         (jit_frame_sniffer): Likewise.
1887         (jit_frame_prev_register): Likewise.
1888         (jit_prepend_unwinder): Likewise.
1889         (jit_inferior_exit_hook): Likewise.
1890         (free_objfile_data): Likewise.
1891         * jv-lang.c (jv_per_objfile_free): Likewise.
1892         (get_dynamics_objfile): Likewise.
1893         (get_java_class_symtab): Likewise.
1894         (builtin_java_type): Likewise.
1895         * language.c (language_string_char_type): Likewise.
1896         (language_bool_type): Likewise.
1897         (language_lookup_primitive_type): Likewise.
1898         (language_lookup_primitive_type_as_symbol): Likewise.
1899         * linespec.c (hash_address_entry): Likewise.
1900         (eq_address_entry): Likewise.
1901         (iterate_inline_only): Likewise.
1902         (iterate_name_matcher): Likewise.
1903         (decode_line_2_compare_items): Likewise.
1904         (collect_one_symbol): Likewise.
1905         (compare_symbols): Likewise.
1906         (compare_msymbols): Likewise.
1907         (add_symtabs_to_list): Likewise.
1908         (collect_symbols): Likewise.
1909         (compare_msyms): Likewise.
1910         (add_minsym): Likewise.
1911         (cleanup_linespec_result): Likewise.
1912         * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1913         * linux-nat.c (delete_lwp_cleanup): Likewise.
1914         (count_events_callback): Likewise.
1915         (select_event_lwp_callback): Likewise.
1916         (resume_stopped_resumed_lwps): Likewise.
1917         * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1918         (invalidate_linux_cache_inf): Likewise.
1919         (get_linux_inferior_data): Likewise.
1920         (linux_find_memory_regions_thunk): Likewise.
1921         (linux_make_mappings_callback): Likewise.
1922         (linux_corefile_thread_callback): Likewise.
1923         (find_mapping_size): Likewise.
1924         * linux-thread-db.c (find_new_threads_callback): Likewise.
1925         * lm32-tdep.c (lm32_frame_cache): Likewise.
1926         * m2-lang.c (builtin_m2_type): Likewise.
1927         * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1928         * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1929         (m32r_linux_supply_gregset): Likewise.
1930         (m32r_linux_collect_gregset): Likewise.
1931         * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1932         * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1933         * m68k-tdep.c (m68k_frame_cache): Likewise.
1934         * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1935         (m68kbsd_supply_gregset): Likewise.
1936         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1937         * m88k-tdep.c (m88k_frame_cache): Likewise.
1938         (m88k_supply_gregset): Likewise.
1939
1940 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
1941
1942         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1943         to allocation result assignment.
1944         * ada-exp.y (write_object_renaming): Likewise.
1945         (write_ambiguous_var): Likewise.
1946         (ada_nget_field_index): Likewise.
1947         (write_var_or_type): Likewise.
1948         * ada-lang.c (ada_decode_symbol): Likewise.
1949         (ada_value_assign): Likewise.
1950         (value_pointer): Likewise.
1951         (cache_symbol): Likewise.
1952         (add_nonlocal_symbols): Likewise.
1953         (ada_name_for_lookup): Likewise.
1954         (symbol_completion_add): Likewise.
1955         (ada_to_fixed_type_1): Likewise.
1956         (ada_get_next_arg): Likewise.
1957         (defns_collected): Likewise.
1958         * ada-lex.l (processId): Likewise.
1959         (processString): Likewise.
1960         * ada-tasks.c (read_known_tasks_array): Likewise.
1961         (read_known_tasks_list): Likewise.
1962         * ada-typeprint.c (decoded_type_name): Likewise.
1963         * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1964         * amd64-tdep.c (amd64_push_arguments): Likewise.
1965         (amd64_displaced_step_copy_insn): Likewise.
1966         (amd64_classify_insn_at): Likewise.
1967         (amd64_relocate_instruction): Likewise.
1968         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1969         * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1970         (initialize_current_architecture): Likewise.
1971         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1972         * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1973         * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1974         (arm_push_dummy_call): Likewise.
1975         (extend_buffer_earlier): Likewise.
1976         (arm_adjust_breakpoint_address): Likewise.
1977         (arm_skip_stub): Likewise.
1978         * auto-load.c (filename_is_in_pattern): Likewise.
1979         (maybe_add_script_file): Likewise.
1980         (maybe_add_script_text): Likewise.
1981         (auto_load_objfile_script_1): Likewise.
1982         * auxv.c (ld_so_xfer_auxv): Likewise.
1983         * ax-general.c (new_agent_expr): Likewise.
1984         (grow_expr): Likewise.
1985         (ax_reg_mask): Likewise.
1986         * bcache.c (bcache_full): Likewise.
1987         * breakpoint.c (program_breakpoint_here_p): Likewise.
1988         * btrace.c (parse_xml_raw): Likewise.
1989         * build-id.c (build_id_to_debug_bfd): Likewise.
1990         * buildsym.c (end_symtab_with_blockvector): Likewise.
1991         * c-exp.y (string_exp): Likewise.
1992         (qualified_name): Likewise.
1993         (write_destructor_name): Likewise.
1994         (operator_stoken): Likewise.
1995         (parse_number): Likewise.
1996         (scan_macro_expansion): Likewise.
1997         (yylex): Likewise.
1998         (c_print_token): Likewise.
1999         * c-lang.c (c_get_string): Likewise.
2000         (emit_numeric_character): Likewise.
2001         * charset.c (wchar_iterate): Likewise.
2002         * cli/cli-cmds.c (complete_command): Likewise.
2003         (make_command): Likewise.
2004         * cli/cli-dump.c (restore_section_callback): Likewise.
2005         (restore_binary_file): Likewise.
2006         * cli/cli-interp.c (cli_interpreter_exec): Likewise.
2007         * cli/cli-script.c (execute_control_command): Likewise.
2008         * cli/cli-setshow.c (do_set_command): Likewise.
2009         * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
2010         (read_pe_exported_syms): Likewise.
2011         * coffread.c (coff_read_struct_type): Likewise.
2012         (coff_read_enum_type): Likewise.
2013         * common/btrace-common.c (btrace_data_append): Likewise.
2014         * common/buffer.c (buffer_grow): Likewise.
2015         * common/filestuff.c (gdb_fopen_cloexec): Likewise.
2016         * common/format.c (parse_format_string): Likewise.
2017         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
2018         * common/xml-utils.c (xml_escape_text): Likewise.
2019         * compile/compile-object-load.c (copy_sections): Likewise.
2020         (compile_object_load): Likewise.
2021         * compile/compile-object-run.c (compile_object_run): Likewise.
2022         * completer.c (filename_completer): Likewise.
2023         * corefile.c (read_memory_typed_address): Likewise.
2024         (write_memory_unsigned_integer): Likewise.
2025         (write_memory_signed_integer): Likewise.
2026         (complete_set_gnutarget): Likewise.
2027         * corelow.c (get_core_register_section): Likewise.
2028         * cp-name-parser.y (d_grab): Likewise.
2029         (allocate_info): Likewise.
2030         (cp_new_demangle_parse_info): Likewise.
2031         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
2032         (cp_lookup_symbol_in_namespace): Likewise.
2033         (lookup_namespace_scope): Likewise.
2034         (find_symbol_in_baseclass): Likewise.
2035         (cp_lookup_nested_symbol): Likewise.
2036         (cp_lookup_transparent_type_loop): Likewise.
2037         * cp-support.c (copy_string_to_obstack): Likewise.
2038         (make_symbol_overload_list): Likewise.
2039         (make_symbol_overload_list_namespace): Likewise.
2040         (make_symbol_overload_list_adl_namespace): Likewise.
2041         (first_component_command): Likewise.
2042         * cp-valprint.c (cp_print_value): Likewise.
2043         * ctf.c (ctf_xfer_partial): Likewise.
2044         * d-exp.y (StringExp): Likewise.
2045         * d-namespace.c (d_lookup_symbol_in_module): Likewise.
2046         (lookup_module_scope): Likewise.
2047         (find_symbol_in_baseclass): Likewise.
2048         (d_lookup_nested_symbol): Likewise.
2049         * dbxread.c (find_stab_function_addr): Likewise.
2050         (read_dbx_symtab): Likewise.
2051         (dbx_end_psymtab): Likewise.
2052         (cp_set_block_scope): Likewise.
2053         * dcache.c (dcache_alloc): Likewise.
2054         * demangle.c (_initialize_demangler): Likewise.
2055         * dicos-tdep.c (dicos_load_module_p): Likewise.
2056         * dictionary.c (dict_create_hashed_expandable): Likewise.
2057         (dict_create_linear_expandable): Likewise.
2058         (expand_hashtable): Likewise.
2059         (add_symbol_linear_expandable): Likewise.
2060         * dwarf2-frame.c (add_cie): Likewise.
2061         (add_fde): Likewise.
2062         (dwarf2_build_frame_info): Likewise.
2063         * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
2064         (dwarf_expr_fetch_address): Likewise.
2065         (add_piece): Likewise.
2066         (execute_stack_op): Likewise.
2067         * dwarf2loc.c (chain_candidate): Likewise.
2068         (dwarf_entry_parameter_to_value): Likewise.
2069         (read_pieced_value): Likewise.
2070         (write_pieced_value): Likewise.
2071         * dwarf2read.c (dwarf2_read_section): Likewise.
2072         (add_type_unit): Likewise.
2073         (read_comp_units_from_section): Likewise.
2074         (fixup_go_packaging): Likewise.
2075         (dwarf2_compute_name): Likewise.
2076         (dwarf2_physname): Likewise.
2077         (create_dwo_unit_in_dwp_v1): Likewise.
2078         (create_dwo_unit_in_dwp_v2): Likewise.
2079         (read_func_scope): Likewise.
2080         (read_call_site_scope): Likewise.
2081         (dwarf2_attach_fields_to_type): Likewise.
2082         (process_structure_scope): Likewise.
2083         (mark_common_block_symbol_computed): Likewise.
2084         (read_common_block): Likewise.
2085         (abbrev_table_read_table): Likewise.
2086         (guess_partial_die_structure_name): Likewise.
2087         (fixup_partial_die): Likewise.
2088         (add_file_name): Likewise.
2089         (dwarf2_const_value_data): Likewise.
2090         (dwarf2_const_value_attr): Likewise.
2091         (build_error_marker_type): Likewise.
2092         (guess_full_die_structure_name): Likewise.
2093         (anonymous_struct_prefix): Likewise.
2094         (typename_concat): Likewise.
2095         (dwarf2_canonicalize_name): Likewise.
2096         (dwarf2_name): Likewise.
2097         (write_constant_as_bytes): Likewise.
2098         (dwarf2_fetch_constant_bytes): Likewise.
2099         (copy_string): Likewise.
2100         (parse_macro_definition): Likewise.
2101         * elfread.c (elf_symfile_segments): Likewise.
2102         (elf_rel_plt_read): Likewise.
2103         (elf_gnu_ifunc_resolve_by_cache): Likewise.
2104         (elf_gnu_ifunc_resolve_by_got): Likewise.
2105         (elf_read_minimal_symbols): Likewise.
2106         (elf_gnu_ifunc_record_cache): Likewise.
2107         * event-top.c (top_level_prompt): Likewise.
2108         (command_line_handler): Likewise.
2109         * exec.c (resize_section_table): Likewise.
2110         * expprint.c (print_subexp_standard): Likewise.
2111         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2112         * findcmd.c (parse_find_args): Likewise.
2113         * findvar.c (address_from_register): Likewise.
2114         * frame.c (get_prev_frame_always): Likewise.
2115         * gdb_bfd.c (gdb_bfd_ref): Likewise.
2116         (get_section_descriptor): Likewise.
2117         * gdb_obstack.c (obconcat): Likewise.
2118         (obstack_strdup): Likewise.
2119         * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
2120         (create_set_type): Likewise.
2121         (lookup_unsigned_typename): Likewise.
2122         (lookup_signed_typename): Likewise.
2123         (resolve_dynamic_union): Likewise.
2124         (resolve_dynamic_struct): Likewise.
2125         (add_dyn_prop): Likewise.
2126         (copy_dynamic_prop_list): Likewise.
2127         (arch_flags_type): Likewise.
2128         (append_composite_type_field_raw): Likewise.
2129         * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
2130         * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
2131         * go-exp.y (string_exp): Likewise.
2132         * go-lang.c (go_demangle): Likewise.
2133         * guile/guile.c (compute_scheme_string): Likewise.
2134         * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2135         (gdbscm_canonicalize_command_name): Likewise.
2136         * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
2137         (ioscm_init_memory_port): Likewise.
2138         (ioscm_reinit_memory_port): Likewise.
2139         * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
2140         (gdbscm_gc_dup_argv): Likewise.
2141         * h8300-tdep.c (h8300_push_dummy_call): Likewise.
2142         * hppa-tdep.c (internalize_unwinds): Likewise.
2143         (read_unwind_info): Likewise.
2144         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
2145         (windows_core_xfer_shared_libraries): Likewise.
2146         * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
2147         (i386_stap_parse_special_token_triplet): Likewise.
2148         (i386_stap_parse_special_token_three_arg_disp): Likewise.
2149         * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
2150         * inf-child.c (inf_child_fileio_readlink): Likewise.
2151         * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
2152         (inf_ptrace_store_register): Likewise.
2153         * infrun.c (follow_exec): Likewise.
2154         (displaced_step_prepare_throw): Likewise.
2155         (save_stop_context): Likewise.
2156         (save_infcall_suspend_state): Likewise.
2157         * jit.c (jit_read_descriptor): Likewise.
2158         (jit_read_code_entry): Likewise.
2159         (jit_symtab_line_mapping_add_impl): Likewise.
2160         (finalize_symtab): Likewise.
2161         (jit_unwind_reg_get_impl): Likewise.
2162         * jv-exp.y (QualifiedName): Likewise.
2163         * jv-lang.c (get_java_utf8_name): Likewise.
2164         (type_from_class): Likewise.
2165         (java_demangle_type_signature): Likewise.
2166         (java_class_name_from_physname): Likewise.
2167         * jv-typeprint.c (java_type_print_base): Likewise.
2168         * jv-valprint.c (java_value_print): Likewise.
2169         * language.c (add_language): Likewise.
2170         * linespec.c (add_sal_to_sals_basic): Likewise.
2171         (add_sal_to_sals): Likewise.
2172         (decode_objc): Likewise.
2173         (find_linespec_symbols): Likewise.
2174         * linux-fork.c (fork_save_infrun_state): Likewise.
2175         * linux-nat.c (linux_nat_detach): Likewise.
2176         (linux_nat_fileio_readlink): Likewise.
2177         * linux-record.c (record_linux_sockaddr): Likewise.
2178         (record_linux_msghdr): Likewise.
2179         (Do): Likewise.
2180         * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
2181         (linux_collect_regset_section_cb): Likewise.
2182         (linux_get_siginfo_data): Likewise.
2183         * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
2184         (try_thread_db_load_from_dir): Likewise.
2185         (thread_db_load_search): Likewise.
2186         (info_auto_load_libthread_db): Likewise.
2187         * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
2188         (m32c_m16c_pointer_to_address): Likewise.
2189         * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
2190         * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2191         * machoread.c (macho_check_dsym): Likewise.
2192         * macroexp.c (resize_buffer): Likewise.
2193         (gather_arguments): Likewise.
2194         (maybe_expand): Likewise.
2195         * macrotab.c (new_macro_key): Likewise.
2196         (new_source_file): Likewise.
2197         (new_macro_definition): Likewise.
2198         * mdebugread.c (parse_symbol): Likewise.
2199         (parse_type): Likewise.
2200         (parse_partial_symbols): Likewise.
2201         (psymtab_to_symtab_1): Likewise.
2202         * mem-break.c (default_memory_insert_breakpoint): Likewise.
2203         * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
2204         * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
2205         (mi_cmd_data_read_memory_bytes): Likewise.
2206         (mi_cmd_data_write_memory_bytes): Likewise.
2207         (mi_cmd_trace_frame_collected): Likewise.
2208         * mi/mi-parse.c (mi_parse_argv): Likewise.
2209         (mi_parse): Likewise.
2210         * minidebug.c (lzma_open): Likewise.
2211         (lzma_pread): Likewise.
2212         * mips-tdep.c (mips_read_fp_register_single): Likewise.
2213         (mips_print_fp_register): Likewise.
2214         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
2215         * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2216         * mt-tdep.c (mt_register_name): Likewise.
2217         (mt_registers_info): Likewise.
2218         (mt_push_dummy_call): Likewise.
2219         * namespace.c (add_using_directive): Likewise.
2220         * nat/linux-btrace.c (perf_event_read): Likewise.
2221         (linux_enable_bts): Likewise.
2222         * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
2223         * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
2224         * nto-tdep.c (nto_find_and_open_solib): Likewise.
2225         (nto_parse_redirection): Likewise.
2226         * objc-lang.c (objc_demangle): Likewise.
2227         (find_methods): Likewise.
2228         * objfiles.c (get_objfile_bfd_data): Likewise.
2229         (set_objfile_main_name): Likewise.
2230         (allocate_objfile): Likewise.
2231         (objfile_relocate): Likewise.
2232         (update_section_map): Likewise.
2233         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
2234         * p-exp.y (exp): Likewise.
2235         (yylex): Likewise.
2236         * p-valprint.c (pascal_object_print_value): Likewise.
2237         * parse.c (initialize_expout): Likewise.
2238         (mark_completion_tag): Likewise.
2239         (copy_name): Likewise.
2240         (parse_float): Likewise.
2241         (type_stack_reserve): Likewise.
2242         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2243         (ppu2spu_prev_register): Likewise.
2244         * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
2245         * printcmd.c (printf_wide_c_string): Likewise.
2246         (printf_pointer): Likewise.
2247         * probe.c (parse_probes): Likewise.
2248         * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2249         (cmdpy_init): Likewise.
2250         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
2251         * python/py-symtab.c (set_sal): Likewise.
2252         * python/py-unwind.c (pyuw_sniffer): Likewise.
2253         * python/python.c (python_interactive_command): Likewise.
2254         (compute_python_string): Likewise.
2255         * ravenscar-thread.c (get_running_thread_id): Likewise.
2256         * record-full.c (record_full_exec_insn): Likewise.
2257         (record_full_core_open_1): Likewise.
2258         * regcache.c (regcache_raw_read_signed): Likewise.
2259         (regcache_raw_read_unsigned): Likewise.
2260         (regcache_cooked_read_signed): Likewise.
2261         (regcache_cooked_read_unsigned): Likewise.
2262         * remote-fileio.c (remote_fileio_func_open): Likewise.
2263         (remote_fileio_func_rename): Likewise.
2264         (remote_fileio_func_unlink): Likewise.
2265         (remote_fileio_func_stat): Likewise.
2266         (remote_fileio_func_system): Likewise.
2267         * remote-mips.c (mips_xfer_memory): Likewise.
2268         (mips_load_srec): Likewise.
2269         (pmon_end_download): Likewise.
2270         * remote.c (new_remote_state): Likewise.
2271         (map_regcache_remote_table): Likewise.
2272         (remote_register_number_and_offset): Likewise.
2273         (init_remote_state): Likewise.
2274         (get_memory_packet_size): Likewise.
2275         (remote_pass_signals): Likewise.
2276         (remote_program_signals): Likewise.
2277         (remote_start_remote): Likewise.
2278         (remote_check_symbols): Likewise.
2279         (remote_query_supported): Likewise.
2280         (extended_remote_attach): Likewise.
2281         (process_g_packet): Likewise.
2282         (store_registers_using_G): Likewise.
2283         (putpkt_binary): Likewise.
2284         (read_frame): Likewise.
2285         (compare_sections_command): Likewise.
2286         (remote_hostio_pread): Likewise.
2287         (remote_hostio_readlink): Likewise.
2288         (remote_file_put): Likewise.
2289         (remote_file_get): Likewise.
2290         (remote_pid_to_exec_file): Likewise.
2291         (_initialize_remote): Likewise.
2292         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2293         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2294         * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2295         (bfd_uses_spe_extensions): Likewise.
2296         * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
2297         * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
2298         * solib-dsbt.c (decode_loadmap): Likewise.
2299         (fetch_loadmap): Likewise.
2300         (scan_dyntag): Likewise.
2301         (enable_break): Likewise.
2302         (dsbt_relocate_main_executable): Likewise.
2303         * solib-frv.c (fetch_loadmap): Likewise.
2304         (enable_break2): Likewise.
2305         (frv_relocate_main_executable): Likewise.
2306         * solib-spu.c (spu_relocate_main_executable): Likewise.
2307         (spu_bfd_open): Likewise.
2308         * solib-svr4.c (lm_info_read): Likewise.
2309         (read_program_header): Likewise.
2310         (find_program_interpreter): Likewise.
2311         (scan_dyntag): Likewise.
2312         (elf_locate_base): Likewise.
2313         (open_symbol_file_object): Likewise.
2314         (read_program_headers_from_bfd): Likewise.
2315         (svr4_relocate_main_executable): Likewise.
2316         * solib-target.c (solib_target_relocate_section_addresses): Likewise.
2317         * solib.c (solib_find_1): Likewise.
2318         (exec_file_find): Likewise.
2319         (solib_find): Likewise.
2320         * source.c (openp): Likewise.
2321         (print_source_lines_base): Likewise.
2322         (forward_search_command): Likewise.
2323         * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
2324         * spu-tdep.c (spu2ppu_prev_register): Likewise.
2325         (spu_get_overlay_table): Likewise.
2326         * stabsread.c (patch_block_stabs): Likewise.
2327         (define_symbol): Likewise.
2328         (again:): Likewise.
2329         (read_member_functions): Likewise.
2330         (read_one_struct_field): Likewise.
2331         (read_enum_type): Likewise.
2332         (common_block_start): Likewise.
2333         * stack.c (read_frame_arg): Likewise.
2334         (backtrace_command): Likewise.
2335         * stap-probe.c (stap_parse_register_operand): Likewise.
2336         * symfile.c (syms_from_objfile_1): Likewise.
2337         (find_separate_debug_file): Likewise.
2338         (load_command): Likewise.
2339         (load_progress): Likewise.
2340         (load_section_callback): Likewise.
2341         (reread_symbols): Likewise.
2342         (add_filename_language): Likewise.
2343         (allocate_compunit_symtab): Likewise.
2344         (read_target_long_array): Likewise.
2345         (simple_read_overlay_table): Likewise.
2346         * symtab.c (symbol_set_names): Likewise.
2347         (resize_symbol_cache): Likewise.
2348         (rbreak_command): Likewise.
2349         (completion_list_add_name): Likewise.
2350         (completion_list_objc_symbol): Likewise.
2351         (add_filename_to_list): Likewise.
2352         * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
2353         * target-memory.c (target_write_memory_blocks): Likewise.
2354         * target.c (target_read_string): Likewise.
2355         (read_whatever_is_readable): Likewise.
2356         (target_read_alloc_1): Likewise.
2357         (simple_search_memory): Likewise.
2358         (target_fileio_read_alloc_1): Likewise.
2359         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2360         * top.c (command_line_input): Likewise.
2361         * tracefile-tfile.c (tfile_fetch_registers): Likewise.
2362         * tracefile.c (tracefile_fetch_registers): Likewise.
2363         * tracepoint.c (add_memrange): Likewise.
2364         (init_collection_list): Likewise.
2365         (add_aexpr): Likewise.
2366         (trace_dump_actions): Likewise.
2367         (parse_trace_status): Likewise.
2368         (parse_tracepoint_definition): Likewise.
2369         (parse_tsv_definition): Likewise.
2370         (parse_static_tracepoint_marker_definition): Likewise.
2371         * tui/tui-file.c (tui_sfileopen): Likewise.
2372         (tui_file_adjust_strbuf): Likewise.
2373         * tui/tui-io.c (tui_expand_tabs): Likewise.
2374         * tui/tui-source.c (tui_set_source_content): Likewise.
2375         * typeprint.c (find_global_typedef): Likewise.
2376         * ui-file.c (do_ui_file_xstrdup): Likewise.
2377         (ui_file_obsavestring): Likewise.
2378         (mem_file_write): Likewise.
2379         * utils.c (make_hex_string): Likewise.
2380         (get_regcomp_error): Likewise.
2381         (puts_filtered_tabular): Likewise.
2382         (gdb_realpath_keepfile): Likewise.
2383         (ldirname): Likewise.
2384         (gdb_bfd_errmsg): Likewise.
2385         (substitute_path_component): Likewise.
2386         * valops.c (search_struct_method): Likewise.
2387         (find_oload_champ_namespace_loop): Likewise.
2388         * valprint.c (print_decimal_chars): Likewise.
2389         (read_string): Likewise.
2390         (generic_emit_char): Likewise.
2391         * varobj.c (varobj_delete): Likewise.
2392         (varobj_value_get_print_value): Likewise.
2393         * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
2394         * windows-tdep.c (display_one_tib): Likewise.
2395         * xcoffread.c (read_xcoff_symtab): Likewise.
2396         (process_xcoff_symbol): Likewise.
2397         (swap_sym): Likewise.
2398         (scan_xcoff_symtab): Likewise.
2399         (xcoff_initial_scan): Likewise.
2400         * xml-support.c (gdb_xml_end_element): Likewise.
2401         (xml_process_xincludes): Likewise.
2402         (xml_fetch_content_from_file): Likewise.
2403         * xml-syscall.c (xml_list_of_syscalls): Likewise.
2404         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2405
2406 2015-09-23  James Bowman  <james.bowman@ftdichip.com>
2407
2408         * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
2409         instead of builtin_func_ptr.
2410         (ft32_pointer_to_address): New function.
2411         (ft32_address_class_type_flags): New function.
2412         (ft32_address_class_type_flags_to_name): New function.
2413         (ft32_address_class_name_to_type_flags): New function.
2414         (ft32_gdbarch_init): Set tdep->pc_type.  Call
2415         set_gdbarch_pointer_to_address,
2416         set_gdbarch_address_class_type_flags
2417         set_gdbarch_address_class_name_to_type_flags,
2418         and set_gdbarch_address_class_type_flags_to_name.
2419         * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
2420
2421 2015-09-23  Pierre-Marie de Rodat  <derodat@adacore.com>
2422
2423         * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
2424         value is a reference, actually dereference it in order to get
2425         the underlying value.
2426
2427 2015-09-22  Simon Marchi  <simon.marchi@ericsson.com>
2428
2429         * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
2430
2431 2015-09-21  Simon Marchi  <simon.marchi@ericsson.com>
2432
2433         * cli/cli-setshow.c (cmd_show_list): Constify a variable.
2434         * linespec.c (linespec_lexer_lex_string): Same.
2435
2436 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2437
2438         * NEWS: Mention support for fast tracepoints on aarch64-linux.
2439
2440 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2441
2442         * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
2443         variable.  Call aarch64_decode_adr instead of
2444         aarch64_decode_adrp.
2445         * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
2446         (aarch64_decode_adr): New function declaration.
2447         * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
2448         (aarch64_decode_adr): New function, factored out from
2449         aarch64_decode_adrp to decode both adr and adrp instructions.
2450
2451 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2452
2453         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
2454         (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
2455         (aarch64-insn.o): New rule.
2456         * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
2457         (aarch64*-*-linux*): Likewise.
2458         * arch/aarch64-insn.c: New file.
2459         * arch/aarch64-insn.h: New file.
2460         * aarch64-tdep.c: Include arch/aarch64-insn.h.
2461         (aarch64_debug): Move to arch/aarch64-insn.c.  Declare in
2462         arch/aarch64-insn.h.
2463         (decode_add_sub_imm): Rename to ...
2464         (aarch64_decode_add_sub_imm): ... this.
2465         (decode_adrp): Rename to ...
2466         (aarch64_decode_adrp): ... this.  Move to arch/aarch64-insn.c.
2467         Declare in arch/aarch64-insn.h.
2468         (decode_b): Rename to ...
2469         (aarch64_decode_b): ... this.  Move to arch/aarch64-insn.c.
2470         Declare in arch/aarch64-insn.h.
2471         (decode_bcond): Rename to ...
2472         (aarch64_decode_bcond): ... this.  Move to arch/aarch64-insn.c.
2473         Declare in arch/aarch64-insn.h.
2474         (decode_br): Rename to ...
2475         (aarch64_decode_br): ... this.
2476         (decode_cb): Rename to ...
2477         (aarch64_decode_cb): ... this.  Move to arch/aarch64-insn.c.
2478         Declare in arch/aarch64-insn.h.
2479         (decode_eret): Rename to ...
2480         (aarch64_decode_eret): ... this.
2481         (decode_movz): Rename to ...
2482         (aarch64_decode_movz): ... this.
2483         (decode_orr_shifted_register_x): Rename to ...
2484         (aarch64_decode_orr_shifted_register_x): ... this.
2485         (decode_ret): Rename to ...
2486         (aarch64_decode_ret): ... this.
2487         (decode_stp_offset): Rename to ...
2488         (aarch64_decode_stp_offset): ... this.
2489         (decode_stp_offset_wb): Rename to ...
2490         (aarch64_decode_stp_offset_wb): ... this.
2491         (decode_stur): Rename to ...
2492         (aarch64_decode_stur): ... this.
2493         (decode_tb): Rename to ...
2494         (aarch64_decode_tb): ... this.  Move to arch/aarch64-insn.c.
2495         Declare in arch/aarch64-insn.h.
2496         (aarch64_analyze_prologue): Adjust calls to renamed functions.
2497
2498 2015-09-20  Doug Evans  <xdje42@gmail.com>
2499
2500         * dwarf2read.c (add_partial_symbol): Remove outdated comments.
2501
2502 2015-09-20  Doug Evans  <xdje42@gmail.com>
2503
2504         * dwarf2read.c (dwarf2_compute_name): Add FIXME.  Don't use a local
2505         variable name that collides with a parameter.
2506
2507 2015-09-20  Joel Brobecker  <brobecker@adacore.com>
2508
2509         * dwarf2loc.c (locexpr_get_frame_base): Renames
2510         block_op_get_frame_base.
2511         (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
2512         block_op_get_frame_base by reference to locexpr_get_frame_base.
2513         (loclist_get_frame_base): New function, near identical copy of
2514         locexpr_get_frame_base.
2515         (dwarf2_block_frame_base_loclist_funcs): Replace reference to
2516         block_op_get_frame_base by reference to loclist_get_frame_base.
2517
2518 2015-09-19  Doug Evans  <xdje42@gmail.com>
2519
2520         * ravenscar-thread.c (ravenscar_inferior_created): Replace
2521         current_inferior ()->gdbarch with its wrapper target_gdbarch.
2522
2523 2015-09-18  Doug Evans  <xdje42@gmail.com>
2524
2525         * linux-thread-db.c (record_thread): Return the created thread.
2526         (thread_from_lwp): Likewise.
2527         (thread_db_get_thread_local_address): Update.
2528
2529 2015-09-18  Doug Evans  <xdje42@gmail.com>
2530
2531         * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
2532         move only member demangled_name up.  All uses updated.
2533
2534 2015-09-18  Doug Evans  <xdje42@gmail.com>
2535
2536         * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
2537         kind of minimal symbol in the error message.
2538         * objfiles.c (objfile_flavour_name): New function.
2539         * objfiles.h (objfile_flavour_name): Declare.
2540
2541 2015-09-18  Yao Qi  <yao.qi@linaro.org>
2542
2543         * nat/aarch64-linux.c: Include elf/common.h,
2544         nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
2545         (aarch64_ps_get_thread_area): New function.
2546         * nat/aarch64-linux.h: Include gdb_proc_service.h.
2547         (aarch64_ps_get_thread_area): Declare.
2548         * aarch64-linux-nat.c (ps_get_thread_area): Call
2549         aarch64_ps_get_thread_area.
2550
2551 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2552
2553         * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
2554
2555 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2556
2557         * NEWS: Announce new scheduler-locking mode.
2558         * infrun.c (schedlock_replay): New.
2559         (scheduler_enums): Add schedlock_replay.
2560         (scheduler_mode): Change default to schedlock_replay.
2561         (user_visible_resume_ptid): Handle schedlock_replay.
2562         (clear_proceed_status_thread): Stop replaying if resumed thread is
2563         not replaying.
2564         (schedlock_applies): Handle schedlock_replay.
2565         (_initialize_infrun): Document new scheduler-locking mode.
2566         * record-btrace.c (record_btrace_resume): Remove code to stop other
2567         threads when not replaying the resumed thread.
2568
2569 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2570
2571         * record-btrace.c ((record_btrace_will_replay): New.
2572         (init_record_btrace_ops): Initialize to_record_will_replay.
2573         * record-full.c ((record_full_will_replay): New.
2574         (init_record_full_ops): Initialize to_record_will_replay.
2575         * target-delegates.c: Regenerated.
2576         * target.c (target_record_will_replay): New.
2577         * target.h (struct target_ops) <to_record_will_replay>: New.
2578         (target_record_will_replay): New.
2579
2580 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2581
2582         * record-btrace.c (record_btrace_resume): Call
2583         target_record_stop_replaying.
2584         (record_btrace_stop_replaying_all): New.
2585         (init_record_btrace_ops): Initialize to_record_stop_replaying.
2586         * record-full.c (record_full_stop_replaying): New.
2587         (init_record_full_ops ): Initialize to_record_stop_replaying.
2588         * target-delegates.c: Regenerated.
2589         * target.c (target_record_stop_replaying): New.
2590         * target.h (struct target_ops) <to_record_stop_replaying>: New.
2591         (target_record_stop_replaying): New.
2592
2593 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2594
2595         * record-btrace.c (record_btrace_xfer_partial)
2596         (record_btrace_store_registers, record_btrace_prepare_to_store):
2597         Call record_btrace_is_replaying with inferior_ptid instead of
2598         minus_one_ptid.
2599         (record_btrace_store_registers): Change error message.
2600
2601 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2602
2603         * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2604         Update users to pass minus_one_ptid.
2605         * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2606         * record.c (cmd_record_delete): Pass inferior_ptid to
2607         target_record_is_replaying.
2608         * target-delegates.c: Regenerated.
2609         * target.c (target_record_is_replaying): Add ptid argument.
2610         * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2611         argument.
2612         (target_record_is_replaying): Add ptid argument.
2613
2614 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2615
2616         * record-btrace.c (record_btrace_open): Remove non_stop check.
2617         * NEWS: Announce that record btrace supports non-stop mode.
2618
2619 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2620
2621         * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2622         in the TARKET_WAITKIND_NO_HISTORY case.
2623
2624 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2625
2626         * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2627         (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2628
2629 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2630
2631         * record-btrace.c (get_thread_current_frame): New.
2632         (record_btrace_start_replaying): Call get_thread_current_frame.
2633
2634 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2635
2636         * record-btrace.c (record_btrace_resume_thread): A move request
2637         overwrites a previous move request.
2638         (record_btrace_find_resume_thread): Removed.
2639         (record_btrace_resume): Resume all requested threads.
2640
2641 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2642
2643         * record-btrace.c: Include vec.h.
2644         (record_btrace_find_thread_to_move): Removed.
2645         (btrace_step_no_resumed, btrace_step_again)
2646         (record_btrace_stop_replaying_at_end): New.
2647         (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2648         (record_btrace_single_step_forward): Remove calls to
2649         record_btrace_stop_replaying.
2650         (record_btrace_step_thread): Do only one step for BTHR_CONT and
2651         BTHR_RCONT.  Keep threads at the end of their history moving.
2652         (record_btrace_wait): Call record_btrace_step_thread for all threads
2653         until one reports an event.  Call record_btrace_stop_replaying_at_end
2654         for the eventing thread.
2655
2656 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2657
2658         * record-btrace.c (record_btrace_single_step_forward): Return
2659         NO_HISTORY if a step brings us to the end of the execution history.
2660
2661 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2662
2663         * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2664         to ...
2665         (record_btrace_single_step_forward): ... here and
2666         (record_btrace_single_step_backward): ... here.
2667
2668 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2669
2670         * record-btrace.c (btrace_step_spurious)
2671         (record_btrace_single_step_forward)
2672         (record_btrace_single_step_backward): New.
2673         (record_btrace_step_thread): Call record_btrace_single_step_forward
2674         and record_btrace_single_step_backward.
2675
2676 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2677
2678         * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2679         (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2680
2681 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2682
2683         * record-btrace.c (btrace_thread_flag_to_str)
2684         (record_btrace_cancel_resume): New.
2685         (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2686         (record_btrace_resume): Print execution direction.
2687         (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2688         (record_btrace_wait): Call record_btrace_cancel_resume.
2689
2690 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2691
2692         * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2693         * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2694         (record_btrace_find_thread_to_move): Also accept threads that have
2695         BTHR_STOP set.
2696         (btrace_step_stopped_on_request, record_btrace_stop): New.
2697         (record_btrace_step_thread): Support BTHR_STOP.
2698         (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2699         (init_record_btrace_ops): Initialize to_stop.
2700
2701 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2702
2703         * record-btrace.c (record_btrace_wait): Replace non_stop check with
2704         target_is_non_stop_p ().
2705
2706 2015-09-15  Pierre-Marie de Rodat  <derodat@adacore.com>
2707
2708         * ada-typeprint.c (print_array_type): Do not describe arrays as
2709         packed when they embed dynamic elements.
2710
2711 2015-09-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
2712
2713         * symtab.h (address_class): Document that TLS variables
2714         are handled by LOC_UNRESOLVED.
2715         * findvar.c (default_read_var_value): Don't relocate TLS variables.
2716         * printcmd.c (address_info): Don't relocate TLS variables.
2717
2718 2015-09-15  Pierre Langlois  <pierre.langlois@arm.com>
2719
2720         * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2721         (decode_adrp): Likewise.
2722         (decode_b): Likewise.
2723         (decode_bcond): Likewise.
2724         (decode_br): Likewise.
2725         (decode_cb): Likewise.
2726         (decode_eret): Likewise.
2727         (decode_movz): Likewise.
2728         (decode_orr_shifted_register_x): Likewise.
2729         (decode_ret): Likewise.
2730         (decode_stp_offset): Likewise.
2731         (decode_stp_offset_wb): Likewise.
2732         (decode_stur): Likewise.
2733         (decode_tb): Likewise.
2734         (aarch64_analyze_prologue): Likewise.
2735         (pass_in_x): Likewise.
2736         (pass_in_v): Likewise.
2737         (pass_on_stack): Likewise.
2738         (aarch64_push_dummy_call): Likewise.
2739         (aarch64_extract_return_value): Likewise.
2740         (aarch64_store_return_value): Likewise.
2741         (aarch64_return_value): Likewise.
2742         (aarch64_record_asimd_load_store): Likewise.
2743         (aarch64_record_load_store): Likewise.
2744         (aarch64_record_data_proc_simd_fp): Likewise.
2745
2746 2015-09-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
2747
2748         * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2749         * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2750         (ppc64_skip_trampoline_code_1): ... here.
2751         (ppc64_skip_trampoline_code): New wrapper function.
2752         * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2753
2754 2015-09-15  Yao Qi  <yao.qi@linaro.org>
2755
2756         * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2757         function.
2758         (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2759         * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2760         if target_can_do_single_step returns 1.
2761         * remote.c (struct vCont_action_support) <s, S>: New fields.
2762         (PACKET_vContSupported): New enum.
2763         (remote_protocol_features): New element for vContSupported.
2764         (remote_query_supported): Append "vContSupported+".
2765         (remote_vcont_probe): Remove support_s and support_S, use
2766         rs->supports_vCont.s and rs->supports_vCont.S instead.  Disable
2767         vCont packet if c and C actions are not supported.
2768         (remote_can_do_single_step): New function.
2769         (init_remote_ops): Install it to to_can_do_single_step.
2770         (_initialize_remote): Call add_packet_config_cmd.
2771         * target.h (struct target_ops) <to_can_do_single_step>: New field.
2772         (target_can_do_single_step): New macro.
2773         * target-delegates.c: Re-generated.
2774
2775 2015-09-15  Yao Qi  <yao.qi@linaro.org>
2776
2777         * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2778         (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2779         * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2780         New function.
2781         (aarch64_siginfo_from_compat_siginfo): New function.
2782         * nat/aarch64-linux.h: Include signal.h.
2783         (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2784         (compat_timer_t, compat_clock_t): Likewise.
2785         (struct compat_timeval): New.
2786         (union compat_sigval): New.
2787         (struct compat_siginfo): New.
2788         (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2789         (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2790         (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2791         (cpt_si_band, cpt_si_fd): Likewise.
2792
2793 2015-09-14  Pedro Alves  <palves@redhat.com>
2794
2795         * infrun.c (current_stop_id): New global.
2796         (get_stop_id, new_stop_id): New functions.
2797         (fetch_inferior_event): Handle normal_stop proceeding the target.
2798         (struct stop_context): New.
2799         (save_stop_context, release_stop_context_cleanup)
2800         (stop_context_changed): New functions.
2801         (normal_stop): Return true if the hook-stop changes the stop
2802         context.
2803         * infrun.h (get_stop_id): Declare.
2804         (normal_stop): Now returns int.  Add documentation.
2805
2806 2015-09-14  Pierre-Marie de Rodat  <derodat@adacore.com>
2807
2808         * ada-lang.c (ada_value_ptr_subscript): Update the heading
2809         comment.  Handle packed arrays.
2810
2811 2015-09-14  Pedro Alves  <palves@redhat.com>
2812
2813         * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2814         mention of maint set/show target-non-stop.
2815
2816 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2817
2818         * NEWS: Announce new remote packets for the exec-events
2819         feature and the exec-events feature and associated commands.
2820
2821 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2822
2823         * remote.c (remote_exec_event_p): New function.
2824         (remote_insert_exec_catchpoint): New function.
2825         (remote_remove_exec_catchpoint): New function.
2826         (init_extended_remote_ops): Initialize extended_remote_ops
2827         members to_insert_exec_catchpoint and
2828         to_remove_exec_catchpoint.
2829
2830 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2831             Luis Machado  <lgustavo@codesourcery.com>
2832
2833         * infrun.c (follow_exec): Use process-style ptid for
2834         exec message.  Call add_inferior_with_spaces and
2835         target_follow_exec.
2836         * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2837         * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2838         * remote.c (remote_pspace_data): New static variable.
2839         (remote_pspace_data_cleanup): New function.
2840         (get_remote_exec_file): New function.
2841         (set_remote_exec_file_1): New function.
2842         (set_remote_exec_file): New function.
2843         (show_remote_exec_file): New function.
2844         (remote_exec_file): Delete static variable.
2845         (anonymous enum) <PACKET_exec_event_feature>: New
2846         enumeration constant.
2847         (remote_protocol_features): Add entry for exec-events feature.
2848         (remote_query_supported): Add client side of qSupported query
2849         for exec-events feature.
2850         (remote_follow_exec): New function.
2851         (remote_parse_stop_reply): Handle 'exec' stop reason.
2852         (extended_remote_run, extended_remote_create_inferior): Call
2853         get_remote_exec_file and set_remote_exec_file_1.
2854         (init_extended_remote_ops) <to_follow_exec>: Initialize new
2855         member.
2856         (_initialize_remote): Call
2857         register_program_space_data_with_cleanup.  Call
2858         add_packet_config_cmd for remote exec-events feature.
2859         Modify call to add_setshow_string_noescape_cmd for exec-file
2860         to use new functions set_remote_exec_file and
2861         show_remote_exec_file.
2862         * target-debug.h, target-delegates.c: Regenerated.
2863         * target.c (target_follow_exec): New function.
2864         * target.h (struct target_ops) <to_follow_exec>: New member.
2865         (target_follow_exec): Declare new function.
2866
2867 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
2868
2869         * aarch64-tdep.c (decode_cb): Move up comment describing the
2870         encoding.
2871         (decode_tb): Fix a typo in comment above the function.  Move up
2872         comment describing the encoding.
2873
2874 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
2875
2876         * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2877
2878 2015-09-11  Mihail-Marian Nistor  <mihail.nistor@freescale.com>
2879
2880         PR gdb/18947
2881         * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2882         glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2883
2884 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
2885
2886         * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2887         operations.
2888
2889 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
2890
2891         * ada-lang.c (ada_search_struct_field): Constify parameters
2892         and/or variables..
2893         (xget_renaming_scope): Likewise.
2894         (ada_is_redundant_range_encoding): Likewise.
2895         (scan_discrim_bound): Likewise.
2896         (to_fixed_range_type): Likewise.
2897
2898 2015-09-10  Yao Qi  <yao.qi@linaro.org>
2899
2900         * breakpoint.c (download_tracepoint_locations): New local
2901         can_download_tracepoint.  Check the result of
2902         target_can_download_tracepoint and save it in
2903         can_download_tracepoint if there are tracepoints to download.
2904         * linux-nat.h (enum tribool): Move it to ...
2905         * common/common-types.h: ... here.
2906
2907 2015-09-09  Pedro Alves  <palves@redhat.com>
2908
2909         * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2910         * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2911
2912 2015-09-09  Pedro Alves  <palves@redhat.com>
2913
2914         * continuations.c (add_continuation, restore_thread_cleanup)
2915         (do_all_continuations_ptid, do_all_continuations_thread_callback)
2916         (do_all_continuations_thread, do_all_continuations)
2917         (discard_all_continuations_thread_callback)
2918         (discard_all_continuations_thread, discard_all_continuations)
2919         (add_intermediate_continuation)
2920         (do_all_intermediate_continuations_thread_callback)
2921         (do_all_intermediate_continuations_thread)
2922         (do_all_intermediate_continuations)
2923         (discard_all_intermediate_continuations_thread_callback)
2924         (discard_all_intermediate_continuations_thread)
2925         (discard_all_intermediate_continuations): Delete.
2926         * continuations.h (add_continuation, do_all_continuations)
2927         (do_all_continuations_thread, discard_all_continuations)
2928         (discard_all_continuations_thread, add_intermediate_continuation)
2929         (do_all_intermediate_continuations)
2930         (do_all_intermediate_continuations_thread)
2931         (discard_all_intermediate_continuations)
2932         (discard_all_intermediate_continuations_thread): Delete
2933         declarations.
2934         * event-top.c (stdin_event_handler): Delete references to
2935         continuations.
2936         * gdbthread.h (struct thread_info): Delete continuations and
2937         intermediate_continuations fields.
2938         * inf-loop.c (inferior_event_handler): Remove references to
2939         continuations.
2940         * infrun.c (infrun_thread_stop_requested_callback): Remove
2941         references to continuations.
2942         * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2943         * thread.c: Don't include "continuations.h".
2944         (clear_thread_inferior_resources): Remove references to
2945         continuations.
2946
2947 2015-09-09  Pedro Alves  <palves@redhat.com>
2948
2949         * infcall.c (struct dummy_frame_context_saver): Delete.
2950         (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2951         (dummy_frame_context_saver_drop)
2952         (dummy_frame_context_saver_cleanup)
2953         (dummy_frame_context_saver_get_regs)
2954         (dummy_frame_context_saver_setup): Delete.
2955         * infcall.h (dummy_frame_context_saver_drop)
2956         (dummy_frame_context_saver_cleanup)
2957         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2958         Delete.
2959         (get_return_value): Remove 'ctx_saver' paremeter.  Adjust.
2960         * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2961         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2962
2963 2015-09-09  Pedro Alves  <palves@redhat.com>
2964
2965         * breakpoint.c: Include "thread-fsm.h".
2966         (struct until_break_command_continuation_args): Delete.
2967         (struct until_break_fsm): New.
2968         (until_break_fsm_ops): New global.
2969         (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2970         (until_break_command_continuation): Delete.
2971         (until_break_fsm_clean_up): New function.
2972         (until_break_fsm_async_reply_reason): New function.
2973         (until_break_command): Adjust to create an until_break_fsm instead
2974         of a continuation.
2975         (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2976         here.
2977         * infcmd.c (struct until_next_fsm): New.
2978         (until_next_fsm_ops): New global.
2979         (new_until_next_fsm, until_next_fsm_should_stop): New function.
2980         (until_next_continuation): Delete.
2981         (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2982         functions.
2983         (until_next_command): Adjust to create a new until_next_fsm
2984         instead of a continuation.
2985
2986 2015-09-09  Pedro Alves  <palves@redhat.com>
2987
2988         * infcall.c: Include thread_fsm.h.
2989         (struct call_return_meta_info): New.
2990         (get_call_return_value): New function, factored out from
2991         call_function_by_hand_dummy.
2992         (struct call_thread_fsm): New.
2993         (call_thread_fsm_ops): New global.
2994         (new_call_thread_fsm, call_thread_fsm_should_stop)
2995         (call_thread_fsm_should_notify_stop): New functions.
2996         (run_inferior_call): Add 'sm' parameter.  Associate the FSM with
2997         the thread.
2998         (call_function_by_hand_dummy): Create a new call_thread_fsm
2999         instance, associate it with the thread, and wait for the FSM to
3000         finish.  If finished successfully, fetch the function's result
3001         value out of the FSM.
3002         * infrun.c (fetch_inferior_event): If the FSM says the stop
3003         shouldn't be notified, don't call normal_stop.
3004         (maybe_remove_breakpoints): New function, factored out from ...
3005         (normal_stop): ... here.  Simplify.
3006         * infrun.h (maybe_remove_breakpoints): Declare.
3007         * thread-fsm.c (thread_fsm_should_notify_stop): New function.
3008         (thread-fsm.h) <struct thread_fsm_ops>: New field.
3009         (thread_fsm_should_notify_stop): Declare.
3010
3011 2015-09-09  Pedro Alves  <palves@redhat.com>
3012
3013         * Makefile.in (COMMON_OBS): Add thread-fsm.o.
3014         * breakpoint.c (handle_jit_event): Print debug output.
3015         (bpstat_what): Split event callback handling to ...
3016         (bpstat_run_callbacks): ... this new function.
3017         (momentary_bkpt_print_it): No longer handle bp_finish here.
3018         * breakpoint.h (bpstat_run_callbacks): Declare.
3019         * gdbthread.h (struct thread_info) <step_multi>: Delete field.
3020         <thread_fsm>: New field.
3021         (thread_cancel_execution_command): Declare.
3022         * infcmd.c: Include thread-fsm.h.
3023         (struct step_command_fsm): New.
3024         (step_command_fsm_ops): New global.
3025         (new_step_command_fsm, step_command_fsm_prepare): New functions.
3026         (step_1): Adjust to use step_command_fsm_prepare and
3027         prepare_one_step.
3028         (struct step_1_continuation_args): Delete.
3029         (step_1_continuation): Delete.
3030         (step_command_fsm_should_stop): New function.
3031         (step_once): Delete.
3032         (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
3033         (prepare_one_step): New function, based on step_once.
3034         (until_next_command): Remove step_multi reference.
3035         (struct return_value_info): New.
3036         (print_return_value): Rename to ...
3037         (print_return_value_1): ... this.  New struct return_value_info
3038         parameter.  Adjust.
3039         (print_return_value): Reimplement as wrapper around
3040         print_return_value_1.
3041         (struct finish_command_fsm): New.
3042         (finish_command_continuation): Delete.
3043         (finish_command_fsm_ops): New global.
3044         (new_finish_command_fsm, finish_command_fsm_should_stop): New
3045         functions.
3046         (finish_command_fsm_clean_up, finish_command_fsm_return_value):
3047         New.
3048         (finish_command_continuation_free_arg): Delete.
3049         (finish_command_fsm_async_reply_reason): New.
3050         (finish_backward, finish_forward): Change symbol parameter to a
3051         finish_command_fsm.  Adjust.
3052         (finish_command): Create a finish_command_fsm.  Adjust.
3053         * infrun.c: Include "thread-fsm.h".
3054         (clear_proceed_status_thread): Delete the thread's FSM.
3055         (infrun_thread_stop_requested_callback): Cancel the thread's
3056         execution command.
3057         (clean_up_just_stopped_threads_fsms): New function.
3058         (fetch_inferior_event): Handle the event_thread's should_stop
3059         method saying the command isn't done yet.
3060         (process_event_stop_test): Run breakpoint callbacks here.
3061         (print_stop_event): Rename to ...
3062         (print_stop_location): ... this.
3063         (restore_current_uiout_cleanup): New function.
3064         (print_stop_event): Reimplement.
3065         (normal_stop): No longer notify the end_stepping_range observers
3066         here handle "step N" nor "finish" here.  No longer call
3067         print_stop_event here.
3068         * infrun.h (struct return_value_info): Forward declare.
3069         (print_return_value): Declare.
3070         (print_stop_event): Change prototype.
3071         * thread-fsm.c: New file.
3072         * thread-fsm.h: New file.
3073         * thread.c: Include "thread-fsm.h".
3074         (thread_cancel_execution_command): New function.
3075         (clear_thread_inferior_resources): Call it.
3076         * cli/cli-interp.c (cli_on_normal_stop): New function.
3077         (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
3078         observer.
3079         * mi/mi-interp.c: Include "thread-fsm.h".
3080         (restore_current_uiout_cleanup): Delete.
3081         (mi_on_normal_stop): If the thread has an FSM associated, and it
3082         finished, ask it for the async-reply-reason to print.  Always call
3083         print_stop_event here, regardless of the top-level interpreter.
3084         Check bpstat_what to tell whether an asynchronous breakpoint hit
3085         triggered.
3086         * tui/tui-interp.c (tui_on_normal_stop): New function.
3087         (tui_init): Install tui_on_normal_stop as normal_stop observer.
3088
3089 2015-09-09  Pedro Alves  <palves@redhat.com>
3090
3091         * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
3092         check whether the target can async.
3093         * inf-loop.c (inferior_event_handler): Only call target_async if
3094         the target can async.
3095         * infcall.c: Include top.h and interps.h.
3096         (run_inferior_call): For the interpreter to sync mode while
3097         running the infcall.  Call wait_sync_command_done instead of
3098         wait_for_inferior plus normal_stop.
3099         * infcmd.c (prepare_execution_command): Don't check whether the
3100         target can async when running in the foreground.
3101         (step_1): Delete synchronous case handling.
3102         (step_once): Always install a continuation, even in sync mode.
3103         (until_next_command, finish_forward): Don't check whether the
3104         target can async.
3105         (attach_command_post_wait, notice_new_inferior): Always install a
3106         continuation, even in sync mode.
3107         * infrun.c (mark_infrun_async_event_handler): New function.
3108         (proceed): In sync mode, mark infrun's event source instead of
3109         waiting for events here.
3110         (fetch_inferior_event): If the target can't async, do a blocking
3111         wait.
3112         (prepare_to_wait): In sync mode, mark infrun's event source.
3113         (infrun_async_inferior_event_handler): No longer bail out if the
3114         target can't async.
3115         * infrun.h (mark_infrun_async_event_handler): New declaration.
3116         * linux-nat.c (linux_nat_wait_1): Remove calls to
3117         set_sigint_trap/clear_sigint_trap.
3118         (linux_nat_terminal_inferior): No longer check whether the target
3119         can async.
3120         * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
3121         comment.
3122         (mi_execute_command_input_handler): No longer check whether the
3123         target is async.  Update and simplify comment.
3124         * target.c (default_target_wait): New function.
3125         * target.h (struct target_ops) <to_wait>: Now defaults to
3126         default_target_wait.
3127         (default_target_wait): Declare.
3128         * top.c (wait_sync_command_done): New function, factored out from
3129         ...
3130         (maybe_wait_sync_command_done): ... this.
3131         * top.h (wait_sync_command_done): Declare.
3132         * target-delegates.c: Regenerate.
3133
3134 2015-09-09  Markus Metzger  <markus.t.metzger@intel.com>
3135
3136         * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
3137         * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
3138         Remove include of sys/utsname.h.
3139         (linux_determine_kernel_ptr_bits): Remove.
3140         (linux_determine_kernel_start): New.
3141         (perf_event_is_kernel_addr): Remove tinfo argument.  Update users.
3142         Update check.
3143         (perf_event_skip_bts_record): Remove tinfo argument.  Update users.
3144         (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
3145         initialization.
3146         * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
3147         assignment.
3148
3149 2015-09-07  Pedro Alves  <palves@redhat.com>
3150
3151         * guile/guile-internal.h (as_a_scm_t_subr): New.
3152         * guile/guile.c (misc_guile_functions): Use it.
3153         * guile/scm-arch.c (arch_functions): Use it.
3154         * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
3155         Use it.
3156         * guile/scm-breakpoint.c (breakpoint_functions): Use it.
3157         * guile/scm-cmd.c (command_functions): Use it.
3158         * guile/scm-disasm.c (disasm_functions): Use it.
3159         * guile/scm-exception.c (exception_functions)
3160         (private_exception_functions): Use it.
3161         * guile/scm-frame.c (frame_functions)
3162         * guile/scm-gsmob.c (gsmob_functions): Use it.
3163         * guile/scm-iterator.c (iterator_functions): Use it.
3164         * guile/scm-lazy-string.c (lazy_string_functions): Use it.
3165         * guile/scm-math.c (math_functions): Use it.
3166         * guile/scm-objfile.c (objfile_functions): Use it.
3167         * guile/scm-param.c (parameter_functions): Use it.
3168         * guile/scm-ports.c (port_functions, private_port_functions): Use
3169         it.
3170         * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
3171         * guile/scm-progspace.c (pspace_functions): Use it.
3172         * guile/scm-string.c (string_functions): Use it.
3173         * guile/scm-symbol.c (symbol_functions): Use it.
3174         * guile/scm-symtab.c (symtab_functions): Use it.
3175         * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
3176         it.
3177         * guile/scm-value.c (value_functions): Use it.
3178
3179 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
3180
3181         * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
3182         (tui_next_win): Likewise.
3183         (tui_prev_win): Likewise.
3184         (tui_partial_win_by_name): Likewise.
3185         (tui_init_generic_part): Likewise.
3186         (init_content_element): Likewise.
3187         (tui_del_window): Likewise.
3188         (tui_free_window): Likewise.
3189         (tui_del_data_windows): Likewise.
3190         (tui_free_data_content): Likewise.
3191         * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
3192         * tui/tui-regs.c (tui_show_register_group): Likewise.
3193         * tui/tui-win.c (tui_resize_all): Likewise.
3194         (tui_set_focus): Likewise.
3195         (tui_set_win_height): Likewise.
3196         (make_invisible_and_set_new_height): Likewise.
3197         * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
3198         * tui/tui-wingeneral.c (make_visible): Likewise.
3199
3200 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
3201
3202         * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
3203
3204 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
3205
3206         * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
3207         pointer.
3208         * dbxread.c (dbx_end_psymtab): Likewise.
3209         * gnu-nat.c (gnu_write_inferior): Likewise.
3210         * mdebugread.c (cross_ref): Likewise.
3211         * p-valprint.c (pascal_val_print): Likewise.
3212         * xcoffread.c (xcoff_end_psymtab): Likewise.
3213
3214 2015-09-04  Yao Qi  <yao.qi@linaro.org>
3215
3216         * NEWS: Mention the aarch64 multi-arch debugging support.
3217
3218 2015-09-03  Pierre-Marie de Rodat  <derodat@adacore.com>
3219
3220         * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
3221         type instead of a TYPE_CODE_INT one for the string_char_type
3222         and the ada_primitive_type_char types.
3223
3224 2015-09-03  Yao Qi  <yao.qi@linaro.org>
3225
3226         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
3227         Move code to aarch64_linux_region_ok_for_watchpoint.  Call
3228         aarch64_linux_region_ok_for_watchpoint.
3229         * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
3230         New function.
3231         * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
3232         Declare it.
3233
3234 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
3235
3236         * gdb_obstack.h (obstack_strdup): Declare.
3237         * gdb_obstack.c (obstack_strdup): Define.
3238         * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
3239         * gdbarch.c: Regenerate.
3240         * gdbarch.h: Regenerate.
3241         * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
3242
3243 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
3244
3245         * gdbtypes.c (copy_type_recursive): Update documentation.
3246
3247 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
3248
3249         * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
3250         as zero.
3251
3252 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
3253
3254         * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
3255
3256 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
3257
3258         * solib-svr4.c (solib_event_probe_action): Call
3259         get_probe_argument_count using TRY...CATCH.
3260         (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
3261
3262 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
3263
3264         * probe.h (struct probe_ops) <get_probe_argument_count,
3265         evaluate_probe_argument, enable_probe, disable_probe>: Mention in
3266         the comment that the function can throw an exception.
3267         (get_probe_argument_count): Likewise.
3268         (evaluate_probe_argument): Likewise.
3269         * stap-probe.c (stap_get_opcode): Call error instead of
3270         internal_error.
3271         (stap_get_expected_argument_type): Likewise.  Add argument
3272         'probe'.  Improve error message by mentioning the probe's name.
3273         (stap_parse_probe_arguments): Adjust call to
3274         stap_get_expected_argument_type.
3275         (stap_get_arg): Add comment.  Assert that 'probe->args_parsed' is
3276         not zero.  Call internal_error if GDB requests an argument but the
3277         probe has no arguments.
3278
3279 2015-09-01  Pierre-Marie de Rodat  <derodat@adacore.com>
3280
3281         * ada-lang.c (ada_resolve_function): Do not ask the user what
3282         match to use when in completion mode.
3283
3284 2015-08-31  Andrew Burgess  <andrew.burgess@embecosm.com>
3285
3286         * tui/tui-data.c (tui_win_name): Make local variable const, remove
3287         cast of NULL.
3288
3289 2015-08-31  Max Filippov  <jcmvbkbc@gmail.com>
3290
3291         * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
3292         call_abi using XSHAL_ABI macro.
3293
3294 2015-08-29  Doug Evans  <xdje42@gmail.com>
3295
3296         * symtab.h (struct symbol): Tweak comment.
3297
3298 2015-08-29  Patrick Palka  <patrick@parcs.ath.cx>
3299
3300         * gdbtypes.c (alloc_type_arch): Allocate the type on the given
3301         gdbarch obstack instead of on the heap.  Update commentary
3302         accordingly.
3303
3304 2015-08-28  Joel Brobecker  <brobecker@adacore.com>
3305
3306         GDB 7.10 released.
3307
3308 2015-08-28  Simon Marchi  <simon.marchi@ericsson.com>
3309
3310         * NEWS: Update entry about non-8-bits addressable memory.
3311
3312 2015-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
3313
3314         Revert:
3315         2014-11-06  Doug Evans  <xdje42@gmail.com>
3316         * solib.c (solib_global_lookup): Fetch arch from objfile,
3317         not target_gdbarch.
3318
3319 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3320
3321         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
3322         attempt to relocate a TLS variable offset.
3323
3324 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3325
3326         * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
3327         registered yet.  Set inferior_ptid while calling target_read_memory.
3328
3329 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3330
3331         * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
3332         (GDB_ARCH_IS_TRAP_BRKPT): ... this.  Add __powerpc__ case.
3333         * linux-nat.c (check_stopped_by_breakpoint): Use
3334         GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
3335
3336 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3337
3338         * linux-thread-db.c (thread_db_get_thread_local_address): If the
3339         thread was not yet discovered, use thread_from_lwp instead of
3340         calling thread_db_find_new_threads_1.
3341
3342 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
3343
3344         * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
3345         statements.
3346
3347 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
3348
3349         * NEWS: Document support for non-8-bits addressable memory.
3350
3351 2015-08-27  Pedro Alves  <palves@redhat.com>
3352
3353         * configure.ac: Remove AC_TYPE_SIGNAL call.
3354         * configure, config.in: Regenerate.
3355
3356 2015-08-27  Pedro Alves  <palves@redhat.com>
3357
3358         * cp-support.c (gdb_demangle): Use sighandler_t.  Remove cast.
3359         * extension-priv.h: Include signal.h.
3360         (struct signal_handler) <handler>: Change type to sighandler_t.
3361         * extension.c (install_gdb_sigint_handler): Use sighandler_t.
3362         * inflow.c (sigint_ours, sigquit_ours): Change type to
3363         sighandler_t.
3364         (child_terminal_inferior): Remove casts.
3365         (child_terminal_ours_1, new_tty): Use sighandler_t.  Remove casts.
3366         (osig): Change type to sighandler_t.
3367         * nto-procfs.c (ofunc): Change type to sighandler_t.
3368         (procfs_wait): Remove casts.
3369         * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
3370         * remote-sim.c (gdbsim_wait): Use sighandler_t.
3371         * utils.c (wait_to_die_with_timeout): Use sighandler_t.
3372
3373 2015-08-27  Pedro Alves  <palves@redhat.com>
3374
3375         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
3376         * gnulib/aclocal.m4: Renegerate.
3377         * gnulib/config.in: Renegerate.
3378         * gnulib/configure: Renegerate.
3379         * gnulib/import/Makefile.am: Update.
3380         * gnulib/import/Makefile.in: Regenerate.
3381         * gnulib/import/m4/gnulib-cache.m4: Update.
3382         * gnulib/import/m4/gnulib-comp.m4: Update.
3383         * gnulib/import/m4/signal_h.m4: New file.
3384         * gnulib/import/signal.in.h: New file.
3385
3386 2015-08-27  Pedro Alves  <palves@redhat.com>
3387
3388         * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
3389         (MIN_MEMORY_PACKET_SIZE): New.
3390         (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
3391         (get_memory_packet_size): Adjust.  No longer limit the max packet
3392         size.
3393         (set_memory_packet_size): Adjust, and remove dead code.
3394         (remote_check_symbols): Use xmalloc and a cleanup instead of
3395         alloca.
3396         (remote_packet_size): No longer cap the packet size.
3397         (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
3398
3399 2015-08-26  Luis Machado  <lgustavo@codesourcery.com>
3400
3401         * compile/compile.c (compile_to_object): Mention language in
3402         error message.
3403
3404 2015-08-26  Patrick Palka  <patrick@parcs.ath.cx>
3405
3406         * target.c (target_pre_inferior): Unset attach_flag.
3407
3408 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
3409
3410         * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
3411         * gdbarch.c: Re-generate.
3412
3413 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
3414
3415         * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
3416         function with the XNEW-family equivalent.
3417         * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
3418         * ada-exp.y (write_ambiguous_var): Likewise.
3419         * ada-lang.c (resolve_subexp): Likewise.
3420         (user_select_syms): Likewise.
3421         (assign_aggregate): Likewise.
3422         (ada_evaluate_subexp): Likewise.
3423         (cache_symbol): Likewise.
3424         * addrmap.c (allocate_key): Likewise.
3425         (addrmap_create_mutable): Likewise.
3426         * aix-thread.c (sync_threadlists): Likewise.
3427         * alpha-tdep.c (alpha_push_dummy_call): Likewise.
3428         (alpha_gdbarch_init): Likewise.
3429         * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
3430         * arm-linux-nat.c (arm_linux_add_process): Likewise.
3431         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3432         * arm-tdep.c (push_stack_item): Likewise.
3433         (arm_displaced_step_copy_insn): Likewise.
3434         (arm_gdbarch_init): Likewise.
3435         (_initialize_arm_tdep): Likewise.
3436         * avr-tdep.c (push_stack_item): Likewise.
3437         * ax-general.c (new_agent_expr): Likewise.
3438         * block.c (block_initialize_namespace): Likewise.
3439         * breakpoint.c (alloc_counted_command_line): Likewise.
3440         (update_dprintf_command_list): Likewise.
3441         (parse_breakpoint_sals): Likewise.
3442         (decode_static_tracepoint_spec): Likewise.
3443         (until_break_command): Likewise.
3444         (clear_command): Likewise.
3445         (update_global_location_list): Likewise.
3446         (get_breakpoint_objfile_data) Likewise.
3447         * btrace.c (ftrace_new_function): Likewise.
3448         (btrace_set_insn_history): Likewise.
3449         (btrace_set_call_history): Likewise.
3450         * buildsym.c (add_symbol_to_list): Likewise.
3451         (record_pending_block): Likewise.
3452         (start_subfile): Likewise.
3453         (start_buildsym_compunit): Likewise.
3454         (push_subfile): Likewise.
3455         (end_symtab_get_static_block): Likewise.
3456         (buildsym_init): Likewise.
3457         * cli/cli-cmds.c (source_command): Likewise.
3458         * cli/cli-decode.c (add_cmd): Likewise.
3459         * cli/cli-script.c (build_command_line): Likewise.
3460         (setup_user_args): Likewise.
3461         (realloc_body_list): Likewise.
3462         (process_next_line): Likewise.
3463         (copy_command_lines): Likewise.
3464         * cli/cli-setshow.c (do_set_command): Likewise.
3465         * coff-pe-read.c (read_pe_exported_syms): Likewise.
3466         * coffread.c (coff_locate_sections): Likewise.
3467         (coff_symtab_read): Likewise.
3468         (coff_read_struct_type): Likewise.
3469         * common/cleanups.c (make_my_cleanup2): Likewise.
3470         * common/common-exceptions.c (throw_it): Likewise.
3471         * common/filestuff.c (make_cleanup_close): Likewise.
3472         * common/format.c (parse_format_string): Likewise.
3473         * common/queue.h (DEFINE_QUEUE_P): Likewise.
3474         * compile/compile-object-load.c (munmap_list_add): Likewise.
3475         (compile_object_load): Likewise.
3476         * compile/compile-object-run.c (compile_object_run): Likewise.
3477         * compile/compile.c (append_args): Likewise.
3478         * corefile.c (specify_exec_file_hook): Likewise.
3479         * cp-support.c (make_symbol_overload_list): Likewise.
3480         * cris-tdep.c (push_stack_item): Likewise.
3481         (cris_gdbarch_init): Likewise.
3482         * ctf.c (ctf_trace_file_writer_new): Likewise.
3483         * dbxread.c (init_header_files): Likewise.
3484         (add_new_header_file): Likewise.
3485         (init_bincl_list): Likewise.
3486         (dbx_end_psymtab): Likewise.
3487         (start_psymtab): Likewise.
3488         (dbx_end_psymtab): Likewise.
3489         * dcache.c (dcache_init): Likewise.
3490         * dictionary.c (dict_create_hashed): Likewise.
3491         (dict_create_hashed_expandable): Likewise.
3492         (dict_create_linear): Likewise.
3493         (dict_create_linear_expandable): Likewise.
3494         * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
3495         * dummy-frame.c (register_dummy_frame_dtor): Likewise.
3496         * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
3497         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3498         (decode_frame_entry_1): Likewise.
3499         * dwarf2expr.c (new_dwarf_expr_context): Likewise.
3500         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
3501         * dwarf2read.c (dwarf2_has_info): Likewise.
3502         (create_signatured_type_table_from_index): Likewise.
3503         (dwarf2_read_index): Likewise.
3504         (dw2_get_file_names_reader): Likewise.
3505         (create_all_type_units): Likewise.
3506         (read_cutu_die_from_dwo): Likewise.
3507         (init_tu_and_read_dwo_dies): Likewise.
3508         (init_cutu_and_read_dies): Likewise.
3509         (create_all_comp_units): Likewise.
3510         (queue_comp_unit): Likewise.
3511         (inherit_abstract_dies): Likewise.
3512         (read_call_site_scope): Likewise.
3513         (dwarf2_add_field): Likewise.
3514         (dwarf2_add_typedef): Likewise.
3515         (dwarf2_add_member_fn): Likewise.
3516         (attr_to_dynamic_prop): Likewise.
3517         (abbrev_table_alloc_abbrev): Likewise.
3518         (abbrev_table_read_table): Likewise.
3519         (add_include_dir): Likewise.
3520         (add_file_name): Likewise.
3521         (dwarf_decode_line_header): Likewise.
3522         (dwarf2_const_value_attr): Likewise.
3523         (dwarf_alloc_block): Likewise.
3524         (parse_macro_definition): Likewise.
3525         (set_die_type): Likewise.
3526         (write_psymtabs_to_index): Likewise.
3527         (create_cus_from_index): Likewise.
3528         (dwarf2_create_include_psymtab): Likewise.
3529         (process_psymtab_comp_unit_reader): Likewise.
3530         (build_type_psymtab_dependencies): Likewise.
3531         (read_comp_units_from_section): Likewise.
3532         (compute_compunit_symtab_includes): Likewise.
3533         (create_dwo_unit_in_dwp_v1): Likewise.
3534         (create_dwo_unit_in_dwp_v2): Likewise.
3535         (read_func_scope): Likewise.
3536         (process_structure_scope): Likewise.
3537         (mark_common_block_symbol_computed): Likewise.
3538         (load_partial_dies): Likewise.
3539         (dwarf2_symbol_mark_computed): Likewise.
3540         * elfread.c (elf_symfile_segments): Likewise.
3541         (elf_read_minimal_symbols): Likewise.
3542         * environ.c (make_environ): Likewise.
3543         * eval.c (evaluate_subexp_standard): Likewise.
3544         * event-loop.c (create_file_handler): Likewise.
3545         (create_async_signal_handler): Likewise.
3546         (create_async_event_handler): Likewise.
3547         (create_timer): Likewise.
3548         * exec.c (build_section_table): Likewise.
3549         * fbsd-nat.c (fbsd_remember_child): Likewise.
3550         * fork-child.c (fork_inferior): Likewise.
3551         * frv-tdep.c (new_variant): Likewise.
3552         * gdbarch.sh (gdbarch_alloc): Likewise.
3553         (append_name): Likewise.
3554         * gdbtypes.c (rank_function): Likewise.
3555         (copy_type_recursive): Likewise.
3556         (add_dyn_prop): Likewise.
3557         * gnu-nat.c (make_proc): Likewise.
3558         (make_inf): Likewise.
3559         (gnu_write_inferior): Likewise.
3560         * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3561         (build_std_type_info_type): Likewise.
3562         * guile/scm-param.c (compute_enum_list): Likewise.
3563         * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
3564         * guile/scm-value.c (gdbscm_value_call): Likewise.
3565         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3566         * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3567         (read_unwind_info): Likewise.
3568         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3569         * infcall.c (dummy_frame_context_saver_setup): Likewise.
3570         (call_function_by_hand_dummy): Likewise.
3571         * infcmd.c (step_once): Likewise.
3572         (finish_forward): Likewise.
3573         (attach_command): Likewise.
3574         (notice_new_inferior): Likewise.
3575         * inferior.c (add_inferior_silent): Likewise.
3576         * infrun.c (add_displaced_stepping_state): Likewise.
3577         (save_infcall_control_state): Likewise.
3578         (save_inferior_ptid): Likewise.
3579         (_initialize_infrun): Likewise.
3580         * jit.c (bfd_open_from_target_memory): Likewise.
3581         (jit_gdbarch_data_init): Likewise.
3582         * language.c (add_language): Likewise.
3583         * linespec.c (decode_line_2): Likewise.
3584         * linux-nat.c (add_to_pid_list): Likewise.
3585         (add_initial_lwp): Likewise.
3586         * linux-thread-db.c (add_thread_db_info): Likewise.
3587         (record_thread): Likewise.
3588         (info_auto_load_libthread_db): Likewise.
3589         * m32c-tdep.c (m32c_gdbarch_init): Likewise.
3590         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3591         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3592         * m88k-tdep.c (m88k_analyze_prologue): Likewise.
3593         * macrocmd.c (macro_define_command): Likewise.
3594         * macroexp.c (gather_arguments): Likewise.
3595         * macroscope.c (sal_macro_scope): Likewise.
3596         * macrotab.c (new_macro_table): Likewise.
3597         * mdebugread.c (push_parse_stack): Likewise.
3598         (parse_partial_symbols): Likewise.
3599         (parse_symbol): Likewise.
3600         (psymtab_to_symtab_1): Likewise.
3601         (new_block): Likewise.
3602         (new_psymtab): Likewise.
3603         (mdebug_build_psymtabs): Likewise.
3604         (add_pending): Likewise.
3605         (elfmdebug_build_psymtabs): Likewise.
3606         * mep-tdep.c (mep_gdbarch_init): Likewise.
3607         * mi/mi-main.c (mi_execute_command): Likewise.
3608         * mi/mi-parse.c (mi_parse_argv): Likewise.
3609         * minidebug.c (lzma_open): Likewise.
3610         * minsyms.c (terminate_minimal_symbol_table): Likewise.
3611         * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3612         * mips-tdep.c (mips_gdbarch_init): Likewise.
3613         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3614         * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3615         * mt-tdep.c (mt_registers_info): Likewise.
3616         * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3617         * nat/linux-btrace.c (linux_enable_bts): Likewise.
3618         (linux_enable_pt): Likewise.
3619         * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3620         (linux_xfer_osdata_processgroups): Likewise.
3621         * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3622         * nto-procfs.c (procfs_meminfo): Likewise.
3623         * objc-lang.c (start_msglist): Likewise.
3624         (selectors_info): Likewise.
3625         (classes_info): Likewise.
3626         (find_methods): Likewise.
3627         * objfiles.c (allocate_objfile): Likewise.
3628         (update_section_map): Likewise.
3629         * osabi.c (gdbarch_register_osabi): Likewise.
3630         (gdbarch_register_osabi_sniffer): Likewise.
3631         * parse.c (start_arglist): Likewise.
3632         * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3633         (hwdebug_insert_point): Likewise.
3634         * printcmd.c (display_command): Likewise.
3635         (ui_printf): Likewise.
3636         * procfs.c (create_procinfo): Likewise.
3637         (load_syscalls): Likewise.
3638         (proc_get_LDT_entry): Likewise.
3639         (proc_update_threads): Likewise.
3640         * prologue-value.c (make_pv_area): Likewise.
3641         (pv_area_store): Likewise.
3642         * psymtab.c (extend_psymbol_list): Likewise.
3643         (init_psymbol_list): Likewise.
3644         (allocate_psymtab): Likewise.
3645         * python/py-inferior.c (add_thread_object): Likewise.
3646         * python/py-param.c (compute_enum_values): Likewise.
3647         * python/py-value.c (valpy_call): Likewise.
3648         * python/py-varobj.c (py_varobj_iter_next): Likewise.
3649         * python/python.c (ensure_python_env): Likewise.
3650         * record-btrace.c (record_btrace_start_replaying): Likewise.
3651         * record-full.c (record_full_reg_alloc): Likewise.
3652         (record_full_mem_alloc): Likewise.
3653         (record_full_end_alloc): Likewise.
3654         (record_full_core_xfer_partial): Likewise.
3655         * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3656         * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3657         * remote-notif.c (remote_notif_state_allocate): Likewise.
3658         * remote.c (demand_private_info): Likewise.
3659         (remote_notif_stop_alloc_reply): Likewise.
3660         (remote_enable_btrace): Likewise.
3661         * reverse.c (save_bookmark_command): Likewise.
3662         * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3663         * rx-tdep.c (rx_gdbarch_init): Likewise.
3664         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3665         * ser-go32.c (dos_get_tty_state): Likewise.
3666         (dos_copy_tty_state): Likewise.
3667         * ser-mingw.c (ser_windows_open): Likewise.
3668         (ser_console_wait_handle): Likewise.
3669         (ser_console_get_tty_state): Likewise.
3670         (make_pipe_state): Likewise.
3671         (net_windows_open): Likewise.
3672         * ser-unix.c (hardwire_get_tty_state): Likewise.
3673         (hardwire_copy_tty_state): Likewise.
3674         * solib-aix.c (solib_aix_new_lm_info): Likewise.
3675         * solib-dsbt.c (dsbt_current_sos): Likewise.
3676         (dsbt_relocate_main_executable): Likewise.
3677         * solib-frv.c (frv_current_sos): Likewise.
3678         (frv_relocate_main_executable): Likewise.
3679         * solib-spu.c (spu_bfd_fopen): Likewise.
3680         * solib-svr4.c (lm_info_read): Likewise.
3681         (svr4_copy_library_list): Likewise.
3682         (svr4_default_sos): Likewise.
3683         * source.c (find_source_lines): Likewise.
3684         (line_info): Likewise.
3685         (add_substitute_path_rule): Likewise.
3686         * spu-linux-nat.c (spu_bfd_open): Likewise.
3687         * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3688         * stabsread.c (dbx_lookup_type): Likewise.
3689         (read_type): Likewise.
3690         (read_member_functions): Likewise.
3691         (read_struct_fields): Likewise.
3692         (read_baseclasses): Likewise.
3693         (read_args): Likewise.
3694         (_initialize_stabsread): Likewise.
3695         * stack.c (func_command): Likewise.
3696         * stap-probe.c (handle_stap_probe): Likewise.
3697         * symfile.c (addrs_section_sort): Likewise.
3698         (addr_info_make_relative): Likewise.
3699         (load_section_callback): Likewise.
3700         (add_symbol_file_command): Likewise.
3701         (init_filename_language_table): Likewise.
3702         * symtab.c (create_filename_seen_cache): Likewise.
3703         (sort_search_symbols_remove_dups): Likewise.
3704         (search_symbols): Likewise.
3705         * target.c (make_cleanup_restore_target_terminal): Likewise.
3706         * thread.c (new_thread): Likewise.
3707         (enable_thread_stack_temporaries): Likewise.
3708         (make_cleanup_restore_current_thread): Likewise.
3709         (thread_apply_all_command): Likewise.
3710         * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3711         * top.c (gdb_readline_wrapper): Likewise.
3712         * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3713         * tracepoint.c (trace_find_line_command): Likewise.
3714         (all_tracepoint_actions_and_cleanup): Likewise.
3715         (make_cleanup_restore_current_traceframe): Likewise.
3716         (get_uploaded_tp): Likewise.
3717         (get_uploaded_tsv): Likewise.
3718         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3719         (tui_alloc_win_info): Likewise.
3720         (tui_alloc_content): Likewise.
3721         (tui_add_content_elements): Likewise.
3722         * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3723         (tui_set_disassem_content): Likewise.
3724         * ui-file.c (ui_file_new): Likewise.
3725         (stdio_file_new): Likewise.
3726         (tee_file_new): Likewise.
3727         * utils.c (make_cleanup_restore_integer): Likewise.
3728         (add_internal_problem_command): Likewise.
3729         * v850-tdep.c (v850_gdbarch_init): Likewise.
3730         * valops.c (find_oload_champ): Likewise.
3731         * value.c (allocate_value_lazy): Likewise.
3732         (record_latest_value): Likewise.
3733         (create_internalvar): Likewise.
3734         * varobj.c (install_variable): Likewise.
3735         (new_variable): Likewise.
3736         (new_root_variable): Likewise.
3737         (cppush): Likewise.
3738         (_initialize_varobj): Likewise.
3739         * windows-nat.c (windows_make_so): Likewise.
3740         * x86-nat.c (x86_add_process): Likewise.
3741         * xcoffread.c (arrange_linetable): Likewise.
3742         (allocate_include_entry): Likewise.
3743         (process_linenos): Likewise.
3744         (SYMBOL_DUP): Likewise.
3745         (xcoff_start_psymtab): Likewise.
3746         (xcoff_end_psymtab): Likewise.
3747         * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3748         * xtensa-tdep.c (xtensa_register_type): Likewise.
3749         * gdbarch.c: Regenerate.
3750         * gdbarch.h: Regenerate.
3751
3752 2015-08-25  Don Breazeal  <donb@codesourcery.com>
3753
3754         * infrun.c (follow_exec): Re-order operations for
3755         handling follow-exec-mode "new".
3756         (handle_inferior_event_1): Assign ecs->event_thread
3757         to the current thread.
3758         * remote.c (get_remote_arch_state): Add an assertion.
3759
3760 2015-08-26  Pedro Alves  <palves@redhat.com>
3761
3762         * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3763
3764 2015-08-25  Pedro Alves  <palves@redhat.com>
3765
3766         PR gdb/18804
3767         * defs.h (maybe_quit): Declare.
3768         (QUIT): Now calls maybe_quit.
3769         * event-loop.c (clear_async_signal_handler)
3770         (async_signal_handler_is_marked): New functions.
3771         * event-loop.h (async_signal_handler_is_marked)
3772         (clear_async_signal_handler): New declarations.
3773         * remote.c (remote_check_pending_interrupt): New function.
3774         (interrupt_query): Use make_cleanup_restore_target_terminal.  No
3775         longer check whether the target is async.  If waiting for a stop
3776         reply, and a Ctrl-C as been sent to the target, offer to
3777         disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3778         Otherwise do not disconnect and throw a quit.
3779         (_initialize_remote): Install remote_check_pending_interrupt as
3780         to_check_pending_interrupt.
3781         * target.c (target_check_pending_interrupt): New function.
3782         * target.h (struct target_ops) <to_check_pending_interrupt>: New
3783         field.
3784         (target_check_pending_interrupt): New declaration.
3785         * utils.c (maybe_quit): New function.
3786         * target-delegates.c: Regenerate.
3787
3788 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3789
3790         * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3791         Rename local variable pid to tid, and get lwpid of lwp.  Update
3792         debug output.
3793
3794 2015-08-25  Pierre-Marie de Rodat  <derodat@adacore.com>
3795
3796         * ada-lang.c (ada_read_var_value): Add a var_block argument
3797         and pass it to default_read_var_value.
3798         * block.c (block_static_link): New accessor.
3799         * block.h (block_static_link): Declare it.
3800         * buildsym.c (finish_block_internal): Add a static_link
3801         argument.  If there is a static link, associate it to the new
3802         block.
3803         (finish_block): Add a static link argument and pass it to
3804         finish_block_internal.
3805         (end_symtab_get_static_block): Update calls to finish_block and
3806         to finish_block_internal.
3807         (end_symtab_with_blockvector): Update call to
3808         finish_block_internal.
3809         * buildsym.h: Forward-declare struct dynamic_prop.
3810         (struct context_stack): Add a static_link field.
3811         (finish_block): Add a static link argument.
3812         * c-exp.y: Remove an obsolete comment (evaluation of variables
3813         already start from the selected frame, and now they climb *up*
3814         the call stack) and propagate the block information to the
3815         produced expression.
3816         * d-exp.y: Likewise.
3817         * f-exp.y: Likewise.
3818         * go-exp.y: Likewise.
3819         * jv-exp.y: Likewise.
3820         * m2-exp.y: Likewise.
3821         * p-exp.y: Likewise.
3822         * coffread.c (coff_symtab_read): Update calls to finish_block.
3823         * dbxread.c (process_one_symbol): Likewise.
3824         * xcoffread.c (read_xcoff_symtab): Likewise.
3825         * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3826         "sym" parameter to struct block_symbol, update its uses and pass
3827         its block to calls to read_var_value.
3828         (convert_symbol_sym): Update the calls to convert_one_symbol.
3829         * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3830         call to read_var_value.
3831         * dwarf2loc.c (block_op_get_frame_base): New.
3832         (dwarf2_block_frame_base_locexpr_funcs): Implement the
3833         get_frame_base method.
3834         (dwarf2_block_frame_base_loclist_funcs): Likewise.
3835         (dwarf2locexpr_baton_eval): Add a frame argument and use it
3836         instead of the selected frame in order to evaluate the
3837         expression.
3838         (dwarf2_evaluate_property): Add a frame argument.  Update call
3839         to dwarf2_locexpr_baton_eval to provide a frame in available and
3840         to handle the absence of address stack.
3841         * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3842         * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3843         declaration.
3844         (read_func_scope): Record any available static link description.
3845         Update call to finish_block.
3846         (read_lexical_block_scope): Update call to finish_block.
3847         * findvar.c (follow_static_link): New.
3848         (get_hosting_frame): New.
3849         (default_read_var_value): Add a var_block argument.  Use
3850         get_hosting_frame to handle non-local references.
3851         (read_var_value): Add a var_block argument and pass it to the
3852         LA_READ_VAR_VALUE method.
3853         * gdbtypes.c (resolve_dynamic_range): Update calls to
3854         dwarf2_evaluate_property.
3855         (resolve_dynamic_type_internal): Likewise.
3856         * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3857         read_var_value, passing it the block coming from symbol lookup.
3858         * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3859         read_var_value (TODO).
3860         * infcmd.c (finish_command_continuation): Update call to
3861         read_var_value, passing it the block coming from symbol lookup.
3862         * infrun.c (insert_exception_resume_breakpoint): Likewise.
3863         * language.h (struct language_defn): Add a var_block argument to
3864         the LA_READ_VAR_VALUE method.
3865         * objfiles.c (struct static_link_htab_entry): New.
3866         (static_link_htab_entry_hash): New.
3867         (static_link_htab_entry_eq): New.
3868         (objfile_register_static_link): New.
3869         (objfile_lookup_static_link): New.
3870         (free_objfile): Free the STATIC_LINKS hashed map if needed.
3871         * objfiles.h: Include hashtab.h.
3872         (struct objfile): Add a static_links field.
3873         (objfile_register_static_link): New.
3874         (objfile_lookup_static_link): New.
3875         * printcmd.c (print_variable_and_value): Update call to
3876         read_var_value.
3877         * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3878         * python/py-frame.c (frapy_read_var): Update call to
3879         read_var_value, passing it the block coming from symbol lookup.
3880         * python/py-framefilter.c (extract_sym): Add a sym_block
3881         parameter and set the pointed value to NULL (TODO).
3882         (enumerate_args): Update call to extract_sym.
3883         (enumerate_locals): Update calls to extract_sym and to
3884         read_var_value.
3885         * python/py-symbol.c (sympy_value): Update call to
3886         read_var_value (TODO).
3887         * stack.c (read_frame_local): Update call to read_var_value.
3888         (read_frame_arg): Likewise.
3889         (return_command): Likewise.
3890         * symtab.h (struct symbol_block_ops): Add a get_frame_base
3891         method.
3892         (struct symbol): Add a block field.
3893         (SYMBOL_BLOCK): New accessor.
3894         * valops.c (value_of_variable): Remove frame/block handling and
3895         pass the block argument to read_var_value, which does this job
3896         now.
3897         (value_struct_elt_for_reference): Update calls to
3898         read_var_value.
3899         (value_of_this): Pass the block found to read_var_value.
3900         * value.h (read_var_value): Add a var_block argument.
3901         (default_read_var_value): Likewise.
3902
3903 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3904
3905         * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3906         * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3907         * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3908
3909 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3910
3911         * Makefile.in (aarch64-liunx.o): New rule.
3912         (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3913         * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3914         * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3915         * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3916         extern.
3917         (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3918         * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3919         * nat/aarch64-linux.c: New file.
3920         * nat/aarch64-linux.h: New file.
3921
3922 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3923
3924         * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3925         lwp_arch_private_info and ptid_of_lwp.
3926
3927 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3928
3929         * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3930         Move it to nat/aarch64-linux-hw-point.c.
3931         (debug_reg_change_callback): Likewise.
3932         (aarch64_notify_debug_reg_change): :Likewise.
3933         * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3934         (aarch64_dr_update_callback_param): New.
3935         (debug_reg_change_callback): New function.
3936         (aarch64_notify_debug_reg_change): Likewise.
3937         * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3938         Remove the declaration.
3939
3940 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3941
3942         * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3943         Call current_lwp_ptid.
3944
3945 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3946
3947         * aarch64-linux-nat.c (debug_reg_change_callback): Use
3948         debug_printf.
3949
3950 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3951
3952         * aarch64-linux-nat.c (debug_reg_change_callback): Call
3953         ptid_get_pid rather than ptid_get_lwp.
3954
3955 2015-08-24  Pedro Alves  <palves@redhat.com>
3956
3957         * NEWS (New commands): Mention set/show remote
3958         multiprocess-extensions-packet.
3959         * remote.c (remote_query_supported): Only tell the server to use
3960         the multiprocess extensions if the user hasn't force-disabled them
3961         with "set remote multiprocess-extensions-packet off".
3962
3963 2015-08-24  Pedro Alves  <palves@redhat.com>
3964
3965         * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3966         1029a8112290f6eee9d7878a391c49db42c999bd.
3967         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3968         Regenerate.
3969         * gnulib/import/Makefile.am: Update.
3970         * gnulib/import/Makefile.in: Update.
3971         * gnulib/import/alloca.in.h: Update.
3972         * gnulib/import/basename-lgpl.c: Update.
3973         * gnulib/import/canonicalize-lgpl.c: Update.
3974         * gnulib/import/config.charset: Update.
3975         * gnulib/import/dirent.in.h: Update.
3976         * gnulib/import/dirfd.c: Update.
3977         * gnulib/import/dirname-lgpl.c: Update.
3978         * gnulib/import/dirname.h: Update.
3979         * gnulib/import/dosname.h: Update.
3980         * gnulib/import/errno.in.h: Update.
3981         * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3982         * gnulib/import/extra/snippet/c++defs.h: Update.
3983         * gnulib/import/extra/snippet/warn-on-use.h: Update.
3984         * gnulib/import/extra/update-copyright: Update.
3985         * gnulib/import/float+.h: Update.
3986         * gnulib/import/float.c: Update.
3987         * gnulib/import/float.in.h: Update.
3988         * gnulib/import/fnmatch.c: Update.
3989         * gnulib/import/fnmatch.in.h: Update.
3990         * gnulib/import/fnmatch_loop.c: Update.
3991         * gnulib/import/fpucw.h: Update.
3992         * gnulib/import/frexp.c: Update.
3993         * gnulib/import/frexpl.c: Update.
3994         * gnulib/import/gettimeofday.c: Update.
3995         * gnulib/import/inttypes.in.h: Update.
3996         * gnulib/import/isnan.c: Update.
3997         * gnulib/import/isnand-nolibm.h: Update.
3998         * gnulib/import/isnand.c: Update.
3999         * gnulib/import/isnanl-nolibm.h: Update.
4000         * gnulib/import/isnanl.c: Update.
4001         * gnulib/import/itold.c: Update.
4002         * gnulib/import/localcharset.c: Update.
4003         * gnulib/import/localcharset.h: Update.
4004         * gnulib/import/lstat.c: Update.
4005         * gnulib/import/m4/00gnulib.m4: Update.
4006         * gnulib/import/m4/absolute-header.m4: Update.
4007         * gnulib/import/m4/alloca.m4: Update.
4008         * gnulib/import/m4/canonicalize.m4: Update.
4009         * gnulib/import/m4/codeset.m4: Update.
4010         * gnulib/import/m4/configmake.m4: Update.
4011         * gnulib/import/m4/dirent_h.m4: Update.
4012         * gnulib/import/m4/dirfd.m4: Update.
4013         * gnulib/import/m4/dirname.m4: Update.
4014         * gnulib/import/m4/double-slash-root.m4: Update.
4015         * gnulib/import/m4/eealloc.m4: Update.
4016         * gnulib/import/m4/errno_h.m4: Update.
4017         * gnulib/import/m4/exponentd.m4: Update.
4018         * gnulib/import/m4/exponentl.m4: Update.
4019         * gnulib/import/m4/extensions.m4: Update.
4020         * gnulib/import/m4/extern-inline.m4: Update.
4021         * gnulib/import/m4/fcntl-o.m4: Update.
4022         * gnulib/import/m4/float_h.m4: Update.
4023         * gnulib/import/m4/fnmatch.m4: Update.
4024         * gnulib/import/m4/fpieee.m4: Update.
4025         * gnulib/import/m4/frexp.m4: Update.
4026         * gnulib/import/m4/frexpl.m4: Update.
4027         * gnulib/import/m4/gettimeofday.m4: Update.
4028         * gnulib/import/m4/glibc21.m4: Update.
4029         * gnulib/import/m4/gnulib-cache.m4: Update.
4030         * gnulib/import/m4/gnulib-common.m4: Update.
4031         * gnulib/import/m4/gnulib-comp.m4: Update.
4032         * gnulib/import/m4/gnulib-tool.m4: Update.
4033         * gnulib/import/m4/include_next.m4: Update.
4034         * gnulib/import/m4/inttypes-pri.m4: Update.
4035         * gnulib/import/m4/inttypes.m4: Update.
4036         * gnulib/import/m4/isnand.m4: Update.
4037         * gnulib/import/m4/isnanl.m4: Update.
4038         * gnulib/import/m4/largefile.m4: Update.
4039         * gnulib/import/m4/localcharset.m4: Update.
4040         * gnulib/import/m4/locale-fr.m4: Update.
4041         * gnulib/import/m4/locale-ja.m4: Update.
4042         * gnulib/import/m4/locale-zh.m4: Update.
4043         * gnulib/import/m4/longlong.m4: Update.
4044         * gnulib/import/m4/lstat.m4: Update.
4045         * gnulib/import/m4/malloc.m4: Update.
4046         * gnulib/import/m4/malloca.m4: Update.
4047         * gnulib/import/m4/math_h.m4: Update.
4048         * gnulib/import/m4/mbrtowc.m4: Update.
4049         * gnulib/import/m4/mbsinit.m4: Update.
4050         * gnulib/import/m4/mbsrtowcs.m4: Update.
4051         * gnulib/import/m4/mbstate_t.m4: Update.
4052         * gnulib/import/m4/memchr.m4: Update.
4053         * gnulib/import/m4/memmem.m4: Update.
4054         * gnulib/import/m4/mmap-anon.m4: Update.
4055         * gnulib/import/m4/multiarch.m4: Update.
4056         * gnulib/import/m4/nocrash.m4: Update.
4057         * gnulib/import/m4/off_t.m4: Update.
4058         * gnulib/import/m4/pathmax.m4: Update.
4059         * gnulib/import/m4/readlink.m4: Update.
4060         * gnulib/import/m4/rename.m4: Update.
4061         * gnulib/import/m4/rmdir.m4: Update.
4062         * gnulib/import/m4/ssize_t.m4: Update.
4063         * gnulib/import/m4/stat.m4: Update.
4064         * gnulib/import/m4/stdbool.m4: Update.
4065         * gnulib/import/m4/stddef_h.m4: Update.
4066         * gnulib/import/m4/stdint.m4: Update.
4067         * gnulib/import/m4/stdio_h.m4: Update.
4068         * gnulib/import/m4/stdlib_h.m4: Update.
4069         * gnulib/import/m4/string_h.m4: Update.
4070         * gnulib/import/m4/strstr.m4: Update.
4071         * gnulib/import/m4/strtok_r.m4: Update.
4072         * gnulib/import/m4/sys_socket_h.m4: Update.
4073         * gnulib/import/m4/sys_stat_h.m4: Update.
4074         * gnulib/import/m4/sys_time_h.m4: Update.
4075         * gnulib/import/m4/sys_types_h.m4: Update.
4076         * gnulib/import/m4/time_h.m4: Update.
4077         * gnulib/import/m4/unistd_h.m4: Update.
4078         * gnulib/import/m4/warn-on-use.m4: Update.
4079         * gnulib/import/m4/wchar_h.m4: Update.
4080         * gnulib/import/m4/wchar_t.m4: Update.
4081         * gnulib/import/m4/wctype_h.m4: Update.
4082         * gnulib/import/m4/wint_t.m4: Update.
4083         * gnulib/import/malloc.c: Update.
4084         * gnulib/import/malloca.c: Update.
4085         * gnulib/import/malloca.h: Update.
4086         * gnulib/import/math.in.h: Update.
4087         * gnulib/import/mbrtowc.c: Update.
4088         * gnulib/import/mbsinit.c: Update.
4089         * gnulib/import/mbsrtowcs-impl.h: Update.
4090         * gnulib/import/mbsrtowcs-state.c: Update.
4091         * gnulib/import/mbsrtowcs.c: Update.
4092         * gnulib/import/memchr.c: Update.
4093         * gnulib/import/memmem.c: Update.
4094         * gnulib/import/pathmax.h: Update.
4095         * gnulib/import/readlink.c: Update.
4096         * gnulib/import/ref-add.sin: Update.
4097         * gnulib/import/ref-del.sin: Update.
4098         * gnulib/import/rename.c: Update.
4099         * gnulib/import/rmdir.c: Update.
4100         * gnulib/import/same-inode.h: Update.
4101         * gnulib/import/stat.c: Update.
4102         * gnulib/import/stdbool.in.h: Update.
4103         * gnulib/import/stddef.in.h: Update.
4104         * gnulib/import/stdint.in.h: Update.
4105         * gnulib/import/stdio.c: Update.
4106         * gnulib/import/stdio.in.h: Update.
4107         * gnulib/import/stdlib.in.h: Update.
4108         * gnulib/import/str-two-way.h: Update.
4109         * gnulib/import/streq.h: Update.
4110         * gnulib/import/string.in.h: Update.
4111         * gnulib/import/stripslash.c: Update.
4112         * gnulib/import/strnlen1.c: Update.
4113         * gnulib/import/strnlen1.h: Update.
4114         * gnulib/import/strstr.c: Update.
4115         * gnulib/import/strtok_r.c: Update.
4116         * gnulib/import/sys_stat.in.h: Update.
4117         * gnulib/import/sys_time.in.h: Update.
4118         * gnulib/import/sys_types.in.h: Update.
4119         * gnulib/import/time.in.h: Update.
4120         * gnulib/import/unistd.in.h: Update.
4121         * gnulib/import/verify.h: Update.
4122         * gnulib/import/wchar.in.h: Update.
4123         * gnulib/import/wctype.in.h: Update.
4124         * gnulib/import/gettimeofday.c: New file.
4125         * gnulib/import/m4/absolute-header.m4: New file.
4126         * gnulib/import/m4/gettimeofday.m4: New file.
4127         * gnulib/import/m4/sys_socket_h.m4: New file.
4128         * gnulib/import/m4/sys_time_h.m4: New file.
4129         * gnulib/import/stdio.c: Delete file.
4130         * gnulib/import/sys_time.in.h: New file.
4131
4132 2015-08-24  Pedro Alves  <palves@redhat.com>
4133
4134         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
4135         * common/gdb_sys_time.h: New file.
4136         * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
4137         * gdb_select.h: Likewise.
4138         * gdb_usleep.c: Likewise.
4139         * maint.c: Likewise.
4140         * mi/mi-main.c: Likewise.
4141         * mi/mi-parse.h: Likewise.
4142         * remote-fileio.c: Likewise.
4143         * remote-m32r-sdi.c: Likewise.
4144         * remote.c: Likewise.
4145         * ser-base.c: Likewise.
4146         * ser-pipe.c: Likewise.
4147         * ser-tcp.c: Likewise.
4148         * ser-unix.c: Likewise.
4149         * symfile.c: Likewise.
4150         * symfile.c: Likewise.  Rename OSIZE to SIZE throughout.
4151         * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
4152         * utils.c: Likewise.
4153
4154 2015-08-24  Pedro Alves  <palves@redhat.com>
4155
4156         * NEWS: Mention removed support for the various ROM monitors.
4157         * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
4158         ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
4159         * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
4160         gdb_target_obs.
4161         (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
4162         gdb_target_obs.
4163         (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
4164         dsrec.o from gdb_target_obs.
4165         (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
4166         from gdb_target_obs.
4167         (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
4168         gdb_target_obs.
4169         (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
4170         dink32-rom.o from gdb_target_obs.
4171         (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
4172         (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
4173         * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
4174         monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
4175
4176 2015-08-21  Pedro Alves  <palves@redhat.com>
4177
4178         * frame.c (null_frame_id): Explicitly zero-initialize.
4179
4180 2015-08-21  Tom Tromey  <tromey@redhat.com>
4181
4182         * dwarf2read.c (struct dwarf2_section_info): Rename field
4183         'asection' to 'section'.
4184         (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
4185         (dwarf2_locate_sections, dwarf2_locate_sections)
4186         (locate_dwz_sections, locate_v1_virtual_dwo_sections)
4187         (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
4188         (dwarf2_locate_v2_dwp_sections): Adjust.
4189
4190 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
4191
4192         * top.h (gdb_in_secondary_prompt_p): Declare.
4193         * top.c (gdb_secondary_prompt_depth): Define.
4194         (gdb_in_secondary_prompt_p): Define.
4195         (gdb_readline_wrapper_cleanup): Decrement
4196         gdb_secondary_prompt_depth.
4197         (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
4198         * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
4199         are in a secondary prompt.
4200
4201 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
4202
4203         * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
4204         emit the newline.
4205
4206 2015-08-21  Gary Benson  <gbenson@redhat.com>
4207
4208         * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
4209
4210 2015-08-21  Gary Benson  <gbenson@redhat.com>
4211
4212         * target.h (struct target_ops) <to_fileio_open>: New argument
4213         warn_if_slow.  Update comment.  All implementations updated.
4214         (target_fileio_open_warn_if_slow): New declaration.
4215         * target.c (target_fileio_open): Renamed as...
4216         (target_fileio_open_1): ...this.  New argument warn_if_slow.
4217         Pass warn_if_slow to implementation.  Update debug printing.
4218         (target_fileio_open): New function.
4219         (target_fileio_open_warn_if_slow): Likewise.
4220         * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
4221         target_fileio_open_warn_if_slow.
4222
4223 2015-08-21  Gary Benson  <gbenson@redhat.com>
4224
4225         * nat/linux-namespaces.c (linux_mntns_access_fs):
4226         Do not overwrite old_chain.
4227
4228 2015-08-20  Max Filippov  <jcmvbkbc@gmail.com>
4229
4230         * arch/xtensa.h: New file.
4231         * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
4232         (ps_get_thread_area): New function.
4233         * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
4234         set_gdbarch_fetch_tls_load_module_address to enable TLS support.
4235         * xtensa-tdep.c (osabi.h): New #include.
4236         (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
4237         xtensa-specific hooks.
4238         * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
4239         member and move the structure to arch/xtensa.h.
4240
4241 2015-08-21  Pedro Alves  <palves@redhat.com>
4242
4243         * remote.c (struct readahead_cache): New.
4244         (struct remote_state) <readahead_cache>: New field.
4245         (remote_open_1): Invalidate the cache.
4246         (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
4247         functions.
4248         (remote_hostio_pwrite): Invalidate the readahead cache.
4249         (remote_hostio_pread): Rename to ...
4250         (remote_hostio_pread_vFile): ... this.
4251         (remote_hostio_pread_from_cache): New function.
4252         (remote_hostio_pread): Reimplement.
4253         (remote_hostio_close): Invalidate the readahead cache.
4254
4255 2015-08-21  Marcin CieÅ›lak <saper@saper.info>  (tiny patch)
4256
4257         PR build/18843
4258         * procfs.c: Include "filestuff.h".
4259
4260 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
4261
4262         * tui/tui-data.h (tui_command_info): Remove fields cur_line and
4263         curch.
4264         * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
4265         cur_line or curch, instead call wmove().
4266         (init_win_info) [CMD_WIN]: Likewise.
4267         * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
4268         instead call getcury().
4269         (tui_redisplay_readline): Don't set cur_line or curch.
4270         (tui_mld_erase_entire_line): Don't read cur_line, instead call
4271         getcury().
4272         (tui_cont_sig): Remove call to wmove.
4273         (tui_getc): Don't read cur_line or curch, instead call getcury()
4274         or getyx().  Don't set curch.
4275         * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
4276         set cur_line or curch.  Always move cursor to (0,0).
4277
4278 2015-08-20  Pedro Alves  <palves@redhat.com>
4279
4280         * infrun.c (print_target_wait_results): Make extern.
4281         * infrun.h (print_target_wait_results): Declare.
4282         * remote.c (set_stop_requested_callback): Delete.
4283         (process_initial_stop_replies): New function.
4284         (remote_start_remote): Use it.
4285         (stop_reply_queue_length): New function.
4286
4287 2015-08-20  Pedro Alves  <palves@redhat.com>
4288
4289         * dwarf2read.c (process_full_comp_unit): To tell whether
4290         start_subfile managed to deduce a language, test for
4291         language_unknown instead of language_c.
4292
4293 2015-08-20  Pierre-Marie de Rodat  <derodat@adacore.com>
4294
4295         * ada-lex.l: Reset the start condition to INITIAL in the rule that
4296         matches attributes.
4297
4298 2015-08-19  Kevin Buettner  <kevinb@redhat.com>
4299
4300         * dwarf2read.c (dwarf2_string_attr): New function.
4301         (lookup_dwo_unit, process_psymtab_comp_unit_reader)
4302         (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
4303         (read_call_site_scope, namespace_name, guess_full_die_structure_name)
4304         (anonymous_struct_prefix, prepare_one_comp_unit): Use
4305         dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
4306
4307 2015-08-18  Doug Evans  <dje@google.com>
4308             Adrian Sendroiu <adrian.sendroiu@freescale.com>
4309
4310         PR mi/18833
4311         * cli/cli-logging.c (pop_output_files): Don't restore redirection
4312         if MI-like.
4313         * mi/mi-out.c: #include "vec.h".
4314         (ui_filep): New type.
4315         (DEV_VEC_P (ui_filep)): New type.
4316         (struct ui_out_data) <buffer, original_buffer>: Delete.
4317         (struct ui_out_data) <streams>: New member.
4318         (mi_ui_out_impl): Add data_destroy field.
4319         (mi_field_string, mi_field_fmt): Update.
4320         (mi_flush, mi_redirect, field_separator): Update.
4321         (mi_open, mi_close): Update.
4322         (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
4323         (mi_out_data_ctor, mi_out_data_dtor): New functions.
4324         (mi_out_new): Call mi_out_data_ctor.
4325
4326 2015-08-18  Sandra Loosemore  <sandra@codesourcery.com>
4327
4328         * remote.c (strprefix): New.
4329         (remote_parse_stop_reply): Use strprefix instead of strncmp
4330         to ensure exact match of keyword.
4331
4332 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
4333
4334         * gdb_bfd.c (debug_bfd_cache): New variable.
4335         (show_bfd_cache_debug): New function.
4336         (gdb_bfd_open): Add debug logging.
4337         (gdb_bfd_ref): Likewise.
4338         (gdb_bfd_unref): Likewise.
4339         (_initialize_gdb_bfd): Add new set/show command.
4340         * NEWS: Mention new command.
4341
4342 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
4343
4344         * gdb_bfd.c (bfd_sharing): New variable.
4345         (show_bfd_sharing): New function.
4346         (gdb_bfd_open): Check bfd_sharing variable.
4347         (_initialize_gdb_bfd): Add new set/show command.
4348         * NEWS: Mention new command.
4349
4350 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
4351
4352         * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
4353         field.
4354         (struct gdb_bfd_cache_search): Likewise.
4355         (eq_bfd): Compare the size, inode, and device id fields.
4356         (gdb_bfd_open): Initialise the size, inode, and device id fields.
4357         (gdb_bfd_ref): Likewise.
4358         (gdb_bfd_unref): Likewise.
4359
4360 2015-08-18  Pedro Alves  <palves@redhat.com>
4361
4362         * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
4363         target implements to_always_non_stop_p, call it.
4364         * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
4365         (x86_linux_create_target): Install it as to_always_non_stop_p
4366         method.
4367
4368 2015-08-17  Doug Evans  <dje@google.com>
4369
4370         * ui-out.c (default_ui_out_impl): Add comment.
4371
4372 2015-08-17  Iain Buclaw  <ibuclaw@gdcproject.org>
4373
4374         * d-exp.y (type_aggregate_p): New function.
4375         (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
4376         (classify_inner_name): Likewise.
4377         * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
4378
4379 2015-08-15  Doug Evans  <xdje42@gmail.com>
4380
4381         * psymtab.c (add_psymbol_to_bcache): Remove "val" arg.  All callers
4382         updated.
4383         (add_psymbol_to_list): Ditto.
4384
4385 2015-08-15  Doug Evans  <xdje42@gmail.com>
4386
4387         * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab.  All callers
4388         updated.  Call end_psymtab_common.
4389         * dwarf2read.c (process_psymtab_comp_unit_reader): Call
4390         end_psymtab_common.
4391         (build_type_psymtabs_reader): Ditto.
4392         * psympriv.h (sort_pst_symbols): Delete.
4393         (end_psymtab_common): Declare.
4394         * psymtab.c (sort_pst_symbols): Make static.
4395         (end_psymtab_common): New function.
4396         * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
4397
4398 2015-08-15  Doug Evans  <xdje42@gmail.com>
4399
4400         * defs.h (LANGUAGE_BITS): Define.
4401         * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
4402         (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
4403         * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
4404         (minimal_symbol_type): Add nr_minsym_types.
4405         (MINSYM_TYPE_BITS): Define.
4406         (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
4407         (domain_enum_tag): Add NR_DOMAINS.
4408         (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
4409         (SYMBOL_ACLASS_BITS): Define from 6 to 5.
4410
4411 2015-08-15  Doug Evans  <xdje42@gmail.com>
4412
4413         * objfiles.h: Whitespace cleanup.
4414         * psympriv.h: Whitespace cleanup.
4415         * psymtab.c: Whitespace/coding convention cleanup.
4416
4417 2015-08-15  Patrick Palka  <patrick@parcs.ath.cx>
4418
4419         * inferior.c (detach_inferior_command): Don't call
4420         any_thread_of_process when pid is 0.
4421         (kill_inferior_command): Likewise.
4422
4423 2015-08-14  Doug Evans  <xdje42@gmail.com>
4424
4425         PR gdb/11833
4426         * NEWS: Document new /s modifier for the disassemble command.
4427         * cli/cli-cmds.c (disassemble_command): Add support for /s.
4428         (_initialize_cli_cmds): Update online docs of disassemble command.
4429         * disasm.c: #include "source.h".
4430         (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
4431         All uses updated.
4432         (dis_line_entry): New struct.
4433         (hash_dis_line_entry, eq_dis_line_entry): New functions.
4434         (allocate_dis_line_table): New functions.
4435         (maybe_add_dis_line_entry, line_has_code_p): New functions.
4436         (dump_insns): New arg end_pc.  All callers updated.
4437         (do_mixed_source_and_assembly_deprecated): Renamed from
4438         do_mixed_source_and_assembly.  All callers updated.
4439         (do_mixed_source_and_assembly): New function.
4440         (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
4441         * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
4442         DISASSEMBLY_SOURCE.  All uses updated.
4443         (DISASSEMBLY_SOURCE): New macro.
4444         * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
4445
4446 2015-08-14  Keith Seitz  <keiths@redhat.com>
4447
4448         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
4449         `typename' to `type_name' to avoid C++ reserved word.
4450
4451 2015-08-14  Keith Seitz  <keiths@redhat.com>
4452
4453         * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
4454         (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
4455         silence ARI errors.
4456
4457 2015-08-14  Iain Buclaw  <ibuclaw@gdcproject.org>
4458
4459         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
4460         xstrprintf instead of malloc and sprintf.
4461         (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
4462         (lex_one_token): Likewise.
4463
4464 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
4465
4466         * solib-svr4.c (read_program_header): Add base_addr argument to
4467         report the runtime address of the segment.
4468         (find_program_interpreter): Update read_program_header call to pass
4469         a NULL pointer for the new argument.
4470         (scan_dyntag): Add ptr_addr argument to report the runtime address
4471         of the tag payload.
4472         (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
4473         read_program_header to get the base address of the dynamic segment.
4474         (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
4475         read_program_header.
4476         (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
4477
4478 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
4479
4480         * MAINTAINERS (Write After Approval): Add Matthew Fortune.
4481
4482 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
4483
4484         * d-exp.y (%union): Add voidval.
4485         (%token): Add UNKNOWN_NAME as a token to represent an unclassified
4486         name in the lexing stage.
4487         (PostfixExpression): Move symbol completion handling in grammar here
4488         from PrimaryExpression.
4489         (PrimaryExpression): Move routines to handle resolving identifier
4490         tokens in the grammar here from push_expression_name.
4491         (IdentifierExp): Remove the handling of alternating '.' and identifier
4492         tokens.
4493         (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
4494         (BasicType): Remove C-style typename rules.
4495         (d_type_from_name, d_module_from_name, push_variable)
4496         (push_fieldnames, push_type_name, push_module_name)
4497         (push_expression_name): Remove.
4498         (lex_one_token): Rename from yylex.  Replace pstate with par_state.
4499         (token_and_value): New type.
4500         (token_fifo, popping, name_obstack): New globals.
4501         (classify_name): New function.
4502         (classify_inner_name): Likewise.
4503         (yylex): Likewise.
4504         (d_parse): Initialize token_fifo, popping and name_obstack.
4505
4506 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
4507
4508         * Makefile.in (SFILES): Add d-namespace.c.
4509         (COMMON_OBS): Add d-namespace.o.
4510         * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
4511         la_lookup_symbol_nonlocal callback function pointer.
4512         * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
4513         (d_lookup_nested_symbol): New declaration.
4514         * d-namespace.c: New file.
4515
4516 2015-08-13  Pedro Alves  <palves@redhat.com>
4517
4518         * python/py-unwind.c (pyuw_sniffer): Install the invalidate
4519         cleanup after the decref cleanup, not before.
4520
4521 2015-08-13  Pierre-Marie de Rodat  <derodat@adacore.com>
4522
4523         * ada-lang.c: Include namespace.h
4524         (aux_add_nonlocal_symbols): Fix a function name in comment.
4525         (ada_add_block_renamings): New.
4526         (add_nonlocal_symbols): Add global renamings handling.
4527         (ada_lookup_symbol_list_worker): Move the symbol lookup part
4528         to...
4529         (ada_add_all_symbols): ... this new function.
4530         (ada_add_block_symbols): Try to match the input name against the
4531         "using directives list", perform a recursive symbol lookup on
4532         the matched declarations.
4533         * block.h (struct block): Move the_namespace to top-level as
4534         namespace_info. Remove the language_specific field.
4535         (BLOCK_NAMESPACE): Update access to the namespace_info field.
4536         * buildsym.h (using_directives): Rename into...
4537         (local_using_directives): ... this.
4538         (global_using_directives): New.
4539         (struct context_stack): Rename the using_directives field into
4540         local_using_directives.
4541         * buildsym.c (finish_block_internal): Deal with the proper
4542         using directives repository (local or global).
4543         (prepare_for_building): Reset local_using_directives. Assert
4544         that there is no pending global using directive.
4545         (reset_symtab_globals): Reset global_using_directives and
4546         local_using_directives.
4547         (end_symtab_get_static_block): Don't ignore symtabs that have
4548         only using directives.
4549         (push_context): Update references to local_using_directives.
4550         (buildsym_init): Do not reset using_directives.
4551         * cp-support.c: Include namespace.h.
4552         * cp-support.h (struct using_direct): Move to namespace.h.
4553         (cp_add_using_directives): Move to namespace.h.
4554         * cp-namespace.c: Include namespace.h
4555         (cp_add_using_directive): Move to namespace.c, rename it to
4556         add_using_directive, add a "using_directives" argument and use
4557         it as the pending using directives repository.  All callers
4558         updated.
4559         * dwarf2read.c (using_directives): New.
4560         (read_import_statement): Call using_directives.
4561         (read_func_scope): Update references to local_using_directives.
4562         (read_lexical_block_scope): Likewise.
4563         (read_namespace): Update the heading comment, call
4564         using_directives.
4565         * namespace.h: New file.
4566         * namespace.c: New file.
4567         * Makefile.in (SFILES): Add namespace.c.
4568         (COMMON_OBS): Add namespace.o
4569
4570 2015-08-12  Joel Brobecker  <brobecker@adacore.com>
4571
4572         * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
4573         compute RETADDR.
4574
4575 2015-08-12  Keith Seitz  <keiths@redhat.com>
4576
4577         * break-catch-throw.c (re_set_exception_catchpoint) Rename
4578         reserved C++ keyword "explicit" to "explicit_loc".
4579         * breakpoint.c (create_overlay_event_breakpoint)
4580         (create_longjmp_master_breakpoint)
4581         (create_std_terminate_master_breakpoint)
4582         (create_exception_master_breakpoint, update_static_tracepoint):
4583         Rename reserved C++ keyword "explicit" to "explicit_loc".
4584         * completer.c (collect_explicit_location_matches)
4585         (explicit_location_completer): Rename reserved C++ keyword
4586         "explicit" to "explicit_loc".
4587         * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
4588         (canonicalize_linespec, create_sals_line_offset)
4589         (convert_linespec_to_sals, convert_explicit_location_to_sals)
4590         (event_location_to_sals, decode_objc): Rename reserved C++ keyword
4591         "explicit" to "explicit_loc".
4592         * location.c (struct event_location) <explicit>: Rename to
4593         "explicit_loc".
4594         (initialize_explicit_location, new_explicit_location)
4595         (explicit_location_to_string_internal, explicit_location_to_linespec):
4596         Rename reserved C++ keyword "explicit" to "explicit_loc".
4597         * location.h (explicit_location_to_string)
4598         (explicit_location_to_linespec, initialize_explicit_location)
4599         (new_explicit_location): Rename reserved C++ keyword "explicit"
4600         to "explicit_loc".
4601         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4602         keyword "explicit" to "explicit_loc".
4603
4604 2015-08-12  Keith Seitz  <keiths@redhat.com>
4605
4606         * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4607         and only call decode_line_1 when it is non-NULL.
4608
4609 2015-08-12  Luis Machado  <lgustavo@codesourcery.com>
4610
4611         * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4612         location address is not meaningful.
4613         (breakpoint_address_is_meaningful): Update comment.
4614
4615 2015-08-11  Keith Seitz  <keiths@redhat.com>
4616
4617         * NEWS: Mention explicit locations.
4618         * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4619         [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4620         (_initialize_breakpoint): Update documentation for
4621         "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4622
4623 2015-08-11  Keith Seitz  <keiths@redhat.com>
4624
4625         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4626         explicit locations, options "--source", "--function",
4627         "--label", and "--line".
4628
4629 2015-08-11  Keith Seitz  <keiths@redhat.com>
4630
4631         * completer.c: Include location.h.
4632         (enum match_type): New enum.
4633         (location_completer): Rename to ...
4634         (linespec_completer): ... this.
4635         (collect_explicit_location_matches, backup_text_ptr)
4636         (explicit_location_completer): New functions.
4637         (location_completer): "New" function; handle linespec
4638         and explicit location completions.
4639         (complete_line_internal): Remove all location completer-specific
4640         handling.
4641         * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4642         (find_toplevel_char): Export.
4643         (linespec_parse_line_offset): Export.
4644         Issue error if STRING is not numerical.
4645         (gdb_get_linespec_parser_quote_characters): New function.
4646         * linespec.h (linespec_parse_line_offset): Declare.
4647         (get_gdb_linespec_parser_quote_characters): Declare.
4648         (is_ada_operator): Declare.
4649         (find_toplevel_char): Declare.
4650         (linespec_lexer_lex_keyword): Declare.
4651         * location.c (explicit_to_event_location): New function.
4652         (explicit_location_lex_one): New function.
4653         (string_to_explicit_location): New function.
4654         (string_to_event_location): Handle explicit locations.
4655         * location.h (explicit_to_event_location): Declare.
4656         (string_to_explicit_location): Declare.
4657
4658 2015-08-11  Keith Seitz  <keiths@redhat.com>
4659
4660         * break-catch-throw.c (re_set_exception_catchpoint): Convert
4661         linespec into explicit location.
4662         * breakpoint.c (create_overlay_breakpoint)
4663         (create_longjmp_master_breakpoint)
4664         (create_std_terminate_master_breakpoint)
4665         (create_exception_master_breakpoint): Convert linespec into explicit
4666         location.
4667         (update_static_tracepoint): Convert linespec into explicit location.
4668         * linespec.c (enum offset_relative_sign, struct line_offset): Move
4669         location.h.
4670         (struct linespec) <expression, expr_pc, source_filename>
4671         <function_name, label_name, line_offset>: Replace with ...
4672         <explicit>: ... this.
4673         <is_linespec>: New member.
4674         (PARSER_EXPLICIT): New accessor macro.
4675         (undefined_label_error): New function.
4676         (source_file_not_found_error): New function.
4677         (linespec_parse_basic): The parser result is now an explicit location.
4678         Use PARSER_EXPLICIT to access it.
4679         Use undefined_label_error.
4680         (canonicalize_linespec): Convert canonical linespec into explicit
4681         location.
4682         Move string representation of location to explicit_location_to_linespec
4683         and use it and explicit_location_to_string to save string
4684         representations of the canonical location.
4685         (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4686         explicit location.  Update all references.
4687         (convert_explicit_location_to_sals): New function.
4688         (parse_linespec): Use PARSER_EXPLICIT to access the parser
4689         result's explicit location.
4690         (linespec_state_constructor): Initialize is_linespec.
4691         Use PARSER_EXPLICIT.
4692         (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4693         result.
4694         (event_location_to_sals): For linespec locations, set is_linespec.
4695         Handle explicit locations.
4696         (decode_objc): 'ls' contains an explicit location now. Update all
4697         references.
4698         (symtabs_from_filename): Use source_file_not_found_error.
4699         * location.c (struct event_location.u) <explicit>: New member.
4700         (initialize_explicit_location): New function.
4701         (initialize_event_location): Initialize explicit locations.
4702         (new_explicit_location, get_explicit_location)
4703         (get_explicit_location_const): New functions.
4704         (explicit_to_string_internal): New function; most of contents moved
4705         from canonicalize_linespec.
4706         (explicit_location_to_string): New function.
4707         (explicit_location_to_linespec): New function.
4708         (copy_event_location, delete_event_location)
4709         (event_location_to_string_const, event_location_empty_p): Handle
4710         explicit locations.
4711         * location.h (enum offset_relative_sign, struct line_offset): Move
4712         here from linespec.h.
4713         (enum event_location_type): Add EXPLICIT_LOCATION.
4714         (struct explicit_location): New structure.
4715         (explicit_location_to_string): Declare.
4716         (explicit_location_to_linespec): Declare.
4717         (new_explicit_location, get_explicit_locationp
4718         (get_explicit_location_const, initialize_explicit_location): Declare.
4719
4720 2015-08-11  Keith Seitz  <keiths@redhat.com>
4721
4722         * break-catch-throw.c (re_set_exception_catchpoint): Convert
4723         linespec for stap probe to probe location.
4724         * breakpoint.c (create_longjmp_master_breakpoint)
4725         (create_exception_master_breakpoint): Likewise.
4726         (break_command_1): Remove local variable `arg_cp'.
4727         Check location type to set appropriate breakpoint ops methods.
4728         (trace_command): Likewise.
4729         * linespec.c (event_location_to_sals): Assert on probe locations.
4730         * location.c (EL_PROBE): Add macro definition.
4731         (new_probe_location, get_probe_location): New functions.
4732         (copy_event_location, delete_event_location, event_location_to_string)
4733         (string_to_event_location, event_location_empty_p): Handle probe
4734         locations.
4735         * location.h (enum event_location_type): Add PROBE_LOCATION.
4736         (new_probe_location, get_probe_location): Declare.
4737         * probe.c (parse_probes): Assert that LOCATION is a probe location.
4738         Convert linespec into probe location.
4739
4740 2015-08-11  Keith Seitz  <keiths@redhat.com>
4741
4742         * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4743         Convert linespec to address location.
4744         * linespec.c (canonicalize_linespec): Do not handle address
4745         locations here.
4746         (convert_address_location_to_sals): New function; contents moved
4747         from ...
4748         (convert_linespc_to_sals): ... here.
4749         (parse_linespec): Remove address locations from linespec grammar.
4750         Remove handling of address locations.
4751         (linespec_lex_to_end): Remove handling of address linespecs.
4752         (event_location_to_sals): Handle ADDRESS_LOCATION.
4753         (linespec_expression_to_pc): Export.
4754         * linespec.h (linespec_expression_to_pc): Add declaration.
4755         * location.c (struct event_location.u) <address>: New member.
4756         (new_address_location, get_address_location): New functions.
4757         (copy_event_location, delete_event_location, event_location_to_string)
4758         (string_to_event_location, event_location_empty_p): Handle address
4759         locations.
4760         * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4761         (new_address_location, get_address_location): Declare.
4762         * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4763         to address location.
4764         * spu-tdep.c (spu_catch_start): Likewise.
4765
4766 2015-08-11  Keith Seitz  <keiths@redhat.com>
4767
4768         * ax-gdb.c: Include location.h.
4769         (agent_command_1) Use linespec location instead of address
4770         string.
4771         * break-catch-throw.c: Include location.h.
4772         (re_set_exception_catchpoint): Use linespec locations instead
4773         of address strings.
4774         * breakpoint.c: Include location.h.
4775         (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4776         (create_std_terminate_master_breakpoint)
4777         (create_exception_master_breakpoint, update_breakpoints_after_exec):
4778         Use linespec location instead of address string.
4779         (print_breakpoint_location):  Use locations and
4780         event_location_to_string.
4781         Print extra_string for pending locations for non-MI streams.
4782         (print_one_breakpoint_location): Use locations and
4783         event_location_to_string.
4784         (init_raw_breakpoint_without_location): Initialize b->location.
4785         (create_thread_event_breakpoint): Use linespec location instead of
4786         address string.
4787         (init_breakpoint_sal): Likewise.
4788         Only save extra_string if it is non-NULL and not the empty string.
4789         Use event_location_to_string instead of `addr_string'.
4790         Constify `p' and `endp'.
4791         Use skip_spaces_const/skip_space_const instead of non-const versions.
4792         Copy the location into the breakpoint.
4793         If LOCATION is NULL, save the breakpoint address as a linespec location
4794         instead of an address string.
4795         (create_breakpoint_sal): Change `addr_string' parameter to a struct
4796         event_location. All uses updated.
4797         (create_breakpoints_sal): Likewise for local variable `addr_string'.
4798         (parse_breakpoint_sals): Use locations instead of address strings.
4799         Remove check for empty linespec with conditional.
4800         Refactor.
4801         (decode_static_tracepoint_spec): Make argument const and update
4802         function.
4803         (create_breakpoint): Change `arg' to a struct event_location and
4804         rename.
4805         Remove `copy_arg' and `addr_start'.
4806         If EXTRA_STRING is empty, set it to NULL.
4807         Don't populate `canonical' for pending breakpoints.
4808         Pass `extra_string' to find_condition_and_thread.
4809         Clear `extra_string' if `rest' was NULL.
4810         Do not error with "garbage after location" if setting a dprintf
4811         breakpoint.
4812         Copy the location into the breakpoint instead of an address string.
4813         (break_command_1): Use string_to_event_location and pass this to
4814         create_breakpoint instead of an address string.
4815         Check against `arg_cp' for a probe linespec.
4816         (dprintf_command): Use string_to_event_location and pass this to
4817         create_breakpoint instead of an address string.
4818         Throw an exception if no format string was specified.
4819         (print_recreate_ranged_breakpoint): Use event_location_to_string
4820         instead of address strings.
4821         (break_range_command, until_break_command)
4822         (init_ada_exception_breakpoint): Use locations instead
4823         of address strings.
4824         (say_where): Print out extra_string for pending locations.
4825         (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4826         the breakpoint.
4827         (base_breakpoint_create_sals_from_location): Use struct event_location
4828         instead of address string.
4829         Remove `addr_start' and `copy_arg' parameters.
4830         (base_breakpoint_decode_location): Use struct event_location instead of
4831         address string.
4832         (bkpt_re_set): Use locations instead of address strings.
4833         Use event_location_empty_p to check for unset location.
4834         (bkpt_print_recreate): Use event_location_to_string instead of
4835         an address string.
4836         Print out extra_string for pending locations.
4837         (bkpt_create_sals_from_location, bkpt_decode_location)
4838         (bkpt_probe_create_sals_from_location): Use struct event_location
4839         instead of address string.
4840         (bkpt_probe_decode_location): Use struct event_location instead of
4841         address string.
4842         (tracepoint_print_recreate): Use event_location_to_string to
4843         recreate the tracepoint.
4844         (tracepoint_create_sals_from_location, tracepoint_decode_location)
4845         (tracepoint_probe_create_sals_from_location)
4846         (tracepoint_probe_decode_location): Use struct event_location
4847         instead of address string.
4848         (dprintf_print_recreate): Use event_location_to_string to recreate
4849         the dprintf.
4850         (dprintf_re_set): Remove check for valid/missing format string.
4851         (strace_marker_create_sals_from_location)
4852         (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4853         (update_static_tracepoint): Use struct event_location instead of
4854         address string.
4855         (location_to_sals): Likewise.
4856         Pass `extra_string' to find_condition_and_thread.
4857         For newly resolved pending breakpoint locations, clear the location's
4858         string representation.
4859         Assert that the breakpoint's condition string is NULL when
4860         condition_not_parsed.
4861         (breakpoint_re_set_default, create_sals_from_location_default)
4862         (decode_location_default, trace_command, ftrace_command)
4863         (strace_command, create_tracepoint_from_upload): Use locations
4864         instead of address strings.
4865         * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4866         Use struct event_location instead of address string.
4867         Update all uses.
4868         <decode_location>: Likewise.
4869         (struct breakpoint) <addr_string>: Change to struct event_location
4870         and rename `location'.
4871         <addr_string_range_end>: Change to struct event_location and rename
4872         `location_range_end'.
4873         (create_breakpoint): Use struct event_location instead of address
4874         string.
4875         * cli/cli-cmds.c: Include location.h.
4876         (edit_command, list_command): Use locations instead of address strings.
4877         * elfread.c: Include location.h.
4878         (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4879         * guile/scm-breakpoint.c: Include location.h.
4880         (bpscm_print_breakpoint_smob): Use event_location_to_string.
4881         (gdbscm_register_breakpoint): Use locations instead of address
4882         strings.
4883         * linespec.c: Include location.h.
4884         (struct ls_parser) <stream>: Change to const char *.
4885         (PARSER_STREAM): Update.
4886         (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4887         keywords must be followed by whitespace.
4888         (canonicalize_linespec): Save a linespec location into `canonical'.
4889         Save a canonical linespec into `canonical'.
4890         (parse_linespec): Change `argptr' to const char * and rename `arg'.
4891         All uses updated.
4892         Update function description.
4893         (linespec_parser_new): Initialize `parser'.
4894         Update initialization of  parsing stream.
4895         (event_location_to_sals): New function.
4896         (decode_line_full): Change `argptr' to a struct event_location and
4897         rename it `location'.
4898         Use locations instead of address strings.
4899         Call event_location_to_sals instead of parse_linespec.
4900         (decode_line_1): Likewise.
4901         (decode_line_with_current_source, decode_line_with_last_displayed)
4902         Use locations instead of address strings.
4903         (decode_objc): Likewise.
4904         Change `argptr' to const char * and rename `arg'.
4905         (destroy_linespec_result): Delete the linespec result's location
4906         instead of freeing the address string.
4907         * linespec.h (struct linespec_result) <addr_string>: Change to
4908         struct event_location and rename to ...
4909         <location>: ... this.
4910         (decode_line_1, decode_line_full): Change `argptr' to struct
4911         event_location.  All callers updated.
4912         * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4913         (mi_cmd_break_insert_1): Use locations instead of address strings.
4914         Throw an error if there was "garbage" at the end of the specified
4915         linespec.
4916         * probe.c: Include location.h.
4917         (parse_probes): Change `argptr' to struct event_location.
4918         Use event locations instead of address strings.
4919         * probe.h (parse_probes): Change `argptr' to struct event_location.
4920         * python/py-breakpoint.c: Include location.h.
4921         (bppy_get_location): Constify local variable `str'.
4922         Use event_location_to_string.
4923         (bppy_init): Use locations instead of address strings.
4924         * python/py-finishbreakpoint.c: Include location.h.
4925         (bpfinishpy_init): Remove local variable `addr_str'.
4926         Use locations instead of address strings.
4927         * python/python.c: Include location.h.
4928         (gdbpy_decode_line): Use locations instead of address strings.
4929         * remote.c: Include location.h.
4930         (remote_download_tracepoint): Use locations instead of address
4931         strings.
4932         * spu-tdep.c: Include location.h.
4933         (spu_catch_start): Remove local variable `buf'.
4934         Use locations instead of address strings.
4935         * tracepoint.c: Include location.h.
4936         (scope_info): Use locations instead of address strings.
4937         (encode_source_string): Constify parameter `src'.
4938         * tracepoint.h (encode_source_string): Likewise.
4939
4940 2015-08-11  Keith Seitz  <keiths@redhat.com>
4941
4942         * Makefile.in (SFILES): Add location.c.
4943         (HFILES_NO_SRCDIR): Add location.h.
4944         (COMMON_OBS): Add location.o.
4945         * linespec.c (linespec_lex_to_end): New function.
4946         * linespec.h (linespec_lex_to_end): Declare.
4947         * location.c: New file.
4948         * location.h: New file.
4949
4950 2015-08-11  Keith Seitz  <keiths@redhat.com>
4951
4952         * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4953         Renamed to create_sals_from_location.
4954         <decode_linespec>: Renamed to decode_location.
4955         Update all callers.
4956         * breakpoint.c (create_sals_from_address_default): Renamed to ...
4957         (create_sals_from_location_default): ... this.
4958         (addr_string_to_sals): Renamed to ...
4959         (location_to_sals): ... this.
4960         (decode_linespec_default): Renamed to ...
4961         (decode_location_default): ... this.
4962         (base_breakpoint_create_sals_from_address): Renamed to ...
4963         (base_breakpoint_create_sals_from_location): ... this.
4964         (bkpt_create_sals_from_address): Renamed to ...
4965         (bkpt_create_sals_from_location): ... this.
4966         (bkpt_decode_linespec): Renamed to ...
4967         (bkpt_decode_location): ... this.
4968         (bkpt_probe_create_sals_from_address): Renamed to ...
4969         (bkpt_probe_create_sals_from_location): ... this.
4970         (tracepoint_create_sals_from_address): Renamed to ...
4971         (tracepoint_create_sals_from_location): ... this.
4972         (tracepoint_decode_linespec): Renamed to ...
4973         (tracepoint_decode_location): ... this.
4974         (tracepoint_probe_create_sals_from_address): Renamed to ...
4975         (tracepoint_probe_create_sals_from_location): ... this.
4976         (tracepoint_probe_decode_linespec): Renamed to ...
4977         (tracepoint_probe_decode_location): ... this.
4978         (strace_marker_create_sals_from_address): Renamed to ...
4979         (strace_marker_create_sals_from_location): ... this.
4980         (decode_linespec_default): Renamed to ...
4981         (decode_location_default): ... this.
4982
4983 2015-08-10  Doug Evans  <dje@google.com>
4984             Keith Seitz  <keiths@redhat.com>
4985
4986         PR gdb/17960
4987         * symtab.c (make_file_symbol_completion_list_1): Renamed from
4988         make_file_symbol_completion_list and made static.
4989         (make_file_symbol_completion_list): New function.
4990
4991 2015-08-10  Joel Brobecker  <brobecker@adacore.com>
4992
4993         * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4994         trailing new-line at end of warning message.
4995         (proceed): Add i18n marker to error messages.
4996
4997 2015-08-07  Pedro Alves  <palves@redhat.com>
4998
4999         * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
5000
5001 2015-08-07  Pedro Alves  <palves@redhat.com>
5002
5003         * s390-linux-tdep.c (is_non_branch_ril)
5004         (s390_displaced_step_copy_insn): New functions.
5005         (s390_displaced_step_fixup): Update comment.
5006         (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
5007         gdbarch_displaced_step_copy_insn hook.
5008
5009 2015-08-07  Pedro Alves  <palves@redhat.com>
5010
5011         * infrun.c (displaced_step_prepare_throw): Return -1 if
5012         gdbarch_displaced_step_copy_insn returns NULL.  Update intro
5013         comment.
5014         * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
5015         (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
5016         in file.
5017         (ppc_displaced_step_copy_insn): New function.
5018         (ppc_displaced_step_fixup): Update comment.
5019         (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
5020         gdbarch_displaced_step_copy_insn hook.
5021         * gdbarch.sh (displaced_step_copy_insn): Document what happens on
5022         NULL return.
5023         * gdbarch.h: Regenerate.
5024
5025 2015-08-07  Pedro Alves  <palves@redhat.com>
5026
5027         * inferior.h (struct inferior) <displaced_stepping_failed>: New
5028         field.
5029         * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
5030         Return false if dispaced stepping failed before.
5031         (resume): Pass the current inferior to
5032         use_displaced_stepping_now_p.  Wrap displaced_step_prepare in
5033         TRY/CATCH.  If we get a MEMORY_ERROR, set the inferior's
5034         displaced_stepping_failed flag, and fall back to an in-line
5035         step-over.
5036
5037 2015-08-07  Pedro Alves  <palves@redhat.com>
5038
5039         * darwin-nat.c (darwin_stop): Rename to ...
5040         (darwin_interrupt): ... this.
5041         (_initialize_darwin_inferior): Adjust.
5042         * gnu-nat.c (gnu_stop): Delete.
5043         (gnu_target): Don't install gnu_stop.
5044         * inf-ptrace.c (inf_ptrace_stop): Rename to ...
5045         (inf_ptrace_interrupt): ... this.
5046         (inf_ptrace_target): Adjust.
5047         * infcmd.c (interrupt_target_1): Use target_interrupt instead of
5048         target_stop.
5049         * linux-nat (linux_nat_stop): Rename to ...
5050         (linux_nat_interrupt): ... this.
5051         (linux_nat_stop): Reimplement.
5052         (linux_nat_add_target): Install linux_nat_interrupt.
5053         * nto-procfs.c (nto_interrupt_twice): Rename to ...
5054         (nto_handle_sigint_twice): ... this.
5055         (nto_interrupt): Rename to ...
5056         (nto_handle_sigint): ... this.  Call target_interrupt instead of
5057         target_stop.
5058         (procfs_wait): Adjust.
5059         (procfs_stop): Rename to ...
5060         (procfs_interrupt): ... this.
5061         (init_procfs_targets): Adjust.
5062         * procfs.c (procfs_stop): Rename to ...
5063         (procfs_interrupt): ... this.
5064         (procfs_target): Adjust.
5065         * remote-m32r-sdi.c (m32r_stop): Rename to ...
5066         (m32r_interrupt): ... this.
5067         (init_m32r_ops): Adjust.
5068         * remote-sim.c (gdbsim_stop_inferior): Rename to ...
5069         (gdbsim_interrupt_inferior): ... this.
5070         (gdbsim_stop): Rename to ...
5071         (gdbsim_interrupt): ... this.
5072         (gdbsim_cntrl_c): Adjust.
5073         (init_gdbsim_ops): Adjust.
5074         * remote.c (sync_remote_interrupt): Adjust comments.
5075         (remote_stop_as): Rename to ...
5076         (remote_interrupt_as): ... this.
5077         (remote_stop): Adjust comment.
5078         (remote_interrupt): New function.
5079         (init_remote_ops): Install remote_interrupt.
5080         * target.c (target_interrupt): New function.
5081         * target.h (struct target_ops) <to_interrupt>: New field.
5082         (target_interrupt): New declaration.
5083         * windows-nat.c (windows_stop): Rename to ...
5084         (windows_interrupt): ... this.
5085         * target-delegates.c: Regenerate.
5086
5087 2015-08-07  Pedro Alves  <palves@redhat.com>
5088
5089         * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
5090         threads" as alternative to "switching back to stepped thread".
5091
5092 2015-08-07  Pedro Alves  <palves@redhat.com>
5093
5094         * NEWS: Mention "maint set/show target-non-stop".
5095         * breakpoint.c (update_global_location_list): Check
5096         target_is_non_stop_p instead of non_stop.
5097         * infcmd.c (attach_command_post_wait, attach_command): Likewise.
5098         * infrun.c (show_can_use_displaced_stepping)
5099         (can_use_displaced_stepping_p, start_step_over_inferior):
5100         Likewise.
5101         (internal_resume_ptid): New function.
5102         (resume): Use it.
5103         (proceed): Check target_is_non_stop_p instead of non_stop.  If in
5104         all-stop mode but the target is always in non-stop mode, start all
5105         the other threads that are implicitly resumed too.
5106         (for_each_just_stopped_thread, fetch_inferior_event)
5107         (adjust_pc_after_break, stop_all_threads): Check
5108         target_is_non_stop_p instead of non_stop.
5109         (handle_inferior_event): Likewise.  Handle detach-fork in all-stop
5110         with the target always in non-stop mode.
5111         (handle_signal_stop) <random signal>: Check target_is_non_stop_p
5112         instead of non_stop.
5113         (switch_back_to_stepped_thread): Check target_is_non_stop_p
5114         instead of non_stop.
5115         (keep_going_stepped_thread): Use internal_resume_ptid.
5116         (stop_waiting): If in all-stop mode, and the target is in non-stop
5117         mode, stop all threads.
5118         (keep_going_pass): Likewise, when starting a new in-line step-over
5119         sequence.
5120         * linux-nat.c (get_pending_status, select_event_lwp)
5121         (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
5122         target_is_non_stop_p instead of non_stop.
5123         (linux_nat_always_non_stop_p): New function.
5124         (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
5125         (linux_nat_add_target): Install linux_nat_always_non_stop_p.
5126         * target-delegates.c: Regenerate.
5127         * target.c (target_is_non_stop_p): New function.
5128         (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
5129         (maint_set_target_non_stop_command)
5130         (maint_show_target_non_stop_command): New functions.
5131         (_initilize_target): Install "maint set/show target-non-stop"
5132         commands.
5133         * target.h (struct target_ops) <to_always_non_stop_p>: New field.
5134         (target_non_stop_enabled): New declaration.
5135         (target_is_non_stop_p): New declaration.
5136
5137 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
5138
5139         * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
5140         has a pending status, return true.
5141         * gdbthread.h: Include target/waitstatus.h.
5142         (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
5143         stop_pc>: New fields.
5144         (struct thread_info) <resumed>: New field.
5145         (set_resumed): Declare.
5146         * infrun.c: Include "event-loop.h".
5147         (infrun_async_inferior_event_token, infrun_is_async): New globals.
5148         (infrun_async): New function.
5149         (clear_step_over_info): Add debug output.
5150         (displaced_step_in_progress_any_inferior): New function.
5151         (displaced_step_fixup): New returns int.
5152         (start_step_over): Handle in-line step-overs too.  Assert the
5153         thread is marked resumed.
5154         (resume_cleanups): Clear the thread's resumed flag.
5155         (resume): Set the thread's resumed flag.  Return early if the
5156         thread has a pending status.  Allow stepping a breakpoint with no
5157         signal.
5158         (proceed): Adjust to check 'resumed' instead of 'executing'.
5159         (clear_proceed_status_thread): If the thread has a pending status,
5160         and that status is a finished step, discard the pending status.
5161         (clear_proceed_status): Don't clear step_over_info here.
5162         (random_pending_event_thread, do_target_wait): New functions.
5163         (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
5164         do_target_wait.
5165         (wait_one): New function.
5166         (THREAD_STOPPED_BY): New macro.
5167         (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5168         (thread_stopped_by_hw_breakpoint): New functions.
5169         (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
5170         functions.
5171         (handle_inferior_event): Also call set_resumed(false) on all
5172         threads implicitly stopped by the event.
5173         (restart_threads, resumed_thread_with_pending_status): New
5174         functions.
5175         (finish_step_over): If we were doing an in-line step-over before,
5176         and no longer are after trying to start a new step-over, restart
5177         all threads.  If we have multiple threads with pending events,
5178         save the current event and go through the event loop again.
5179         (handle_signal_stop): Return early if finish_step_over returns
5180         false.
5181         <random signal>: If we get a signal while stepping over a
5182         breakpoint in-line in non-stop mode, restart all threads.  Clear
5183         step_over_info before delivering the signal.
5184         (keep_going_stepped_thread): Use internal_error instead of
5185         gdb_assert.  Mark the thread as resumed.
5186         (keep_going_pass_signal): Assert the thread isn't already resumed.
5187         If some other thread is doing an in-line step-over, defer the
5188         resume.  If we just started a new in-line step-over, stop all
5189         threads.  Don't clear step_over_info.
5190         (infrun_async_inferior_event_handler): New function.
5191         (_initialize_infrun): Create async event handler with
5192         infrun_async_inferior_event_handler as callback.
5193         (infrun_async): New declaration.
5194         * target.c (target_async): New function.
5195         * target.h (target_async): Declare macro and readd as function
5196         declaration.
5197         * target/waitstatus.h (enum target_stop_reason)
5198         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5199         * thread.c (new_thread): Clear the new waitstatus field.
5200         (set_resumed): New function.
5201
5202 2015-08-07  Pedro Alves  <palves@redhat.com>
5203
5204         * infrun.c (keep_going_stepped_thread): New function, factored out
5205         from ...
5206         (switch_back_to_stepped_thread): ... here.
5207
5208 2015-08-07  Pedro Alves  <palves@redhat.com>
5209
5210         * infrun.c (currently_stepping): Extend intro comment.
5211         * target.h (target_resume): Extend intro comment.
5212
5213 2015-08-07  Pedro Alves  <palves@redhat.com>
5214
5215         * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
5216         of inferior_ptid.  If the stepped thread vanished, return 0
5217         instead of resuming here.  Use reset_ecs.  Print the prev_pc and
5218         the current stop_pc in log message.  Clear trap_expected if the
5219         thread advanced.  Don't pass currently_stepping to
5220         do_target_resume.
5221
5222 2015-08-07  Pedro Alves  <palves@redhat.com>
5223
5224         * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
5225         * infrun.c (struct execution_control_state): Move higher up in the
5226         file.
5227         (reset_ecs): New function.
5228         (start_step_over): Now returns int.  Rewrite to use
5229         keep_going_pass_signal instead of manually starting a displaced step.
5230         (resume): Don't call set_running here.  If displaced stepping
5231         can't start now, clear trap_expected.
5232         (find_thread_needs_step_over): Delete function.
5233         (proceed): Set up finish_thread_state_cleanup.  Call set_running.
5234         If the current thread needs a step over, push it in the step-over
5235         chain.  Don't set insert breakpoints nor call resume directly
5236         here.  Instead rewrite to use start_step_over and
5237         keep_going_pass_signal.
5238         (finish_step_over): New function.
5239         (handle_signal_stop): Call finish_step_over instead of
5240         start_step_over.
5241         (switch_back_to_stepped_thread): If the event thread needs another
5242         step-over do that first.  Use start_step_over.
5243         (keep_going_pass_signal): New function, factored out from ...
5244         (keep_going): ... here.
5245         (_initialize_infrun): Comment moved here.
5246         * thread.c (set_running_thread): New function.
5247         (set_running, finish_thread_state): Use set_running_thread.
5248
5249 2015-08-07  Pedro Alves  <palves@redhat.com>
5250
5251         * gdbthread.h (struct thread_info) <step_over_prev,
5252         step_over_next>: New fields.
5253         (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
5254         (thread_step_over_chain_next, thread_is_in_step_over_chain): New
5255         declarations.
5256         * infrun.c (struct displaced_step_request): Delete.
5257         (struct displaced_step_inferior_state) <step_request_queue>:
5258         Delete field.
5259         (displaced_step_prepare): Assert that trap_expected is set.  Use
5260         thread_step_over_chain_enqueue.  Split starting a new displaced
5261         step to ...
5262         (start_step_over): ... this new function.
5263         (resume): Assert the thread isn't waiting for a step over already.
5264         (proceed): Assert the thread isn't waiting for a step over
5265         already.
5266         (infrun_thread_stop_requested): Adjust to remove threads from the
5267         embedded step-over chain.
5268         (handle_inferior_event) <fork/vfork>: Call start_step_over after
5269         displaced_step_fixup.
5270         (handle_signal_stop): Call start_step_over after
5271         displaced_step_fixup.
5272         * infrun.h (step_over_queue_head): New declaration.
5273         * thread.c (step_over_chain_enqueue, step_over_chain_remove)
5274         (thread_step_over_chain_next, thread_is_in_step_over_chain)
5275         (thread_step_over_chain_enqueue)
5276         (thread_step_over_chain_remove): New functions.
5277         (delete_thread_1): Remove thread from the step-over chain.
5278
5279 2015-08-07  Pedro Alves  <palves@redhat.com>
5280
5281         * infrun.c (thread_still_needs_step_over): Rename to ...
5282         (thread_still_needs_step_over_bp): ... this.
5283         (enum step_over_what): New.
5284         (thread_still_needs_step_over): Reimplement.
5285
5286 2015-08-07  Pedro Alves  <palves@redhat.com>
5287
5288         * remote.c (remote_wait_as): If not waiting for a stop reply,
5289         return TARGET_WAITKIND_NO_RESUMED.  If TARGET_WNOHANG is
5290         requested, don't block waiting forever.
5291
5292 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
5293
5294         * infrun.c (adjust_pc_after_break): Now takes thread_info and
5295         waitstatus pointers instead of an ecs.  Adjust.
5296         (handle_inferior_event): Adjust caller.
5297
5298 2015-08-07  Pedro Alves  <palves@redhat.com>
5299
5300         * infrun.c (handle_inferior_event): If we get
5301         TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
5302         mode, mark all threads of the exiting process as not-executing.
5303         (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
5304         TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
5305         exiting process, if inferior_ptid still points at a process.
5306         * thread.c (struct current_thread_cleanup) <next>: New field.
5307         (current_thread_cleanup_chain): New global.
5308         (restore_current_thread_ptid_changed): New function.
5309         (restore_current_thread_cleanup_dtor): Remove the cleanup from the
5310         current_thread_cleanup_chain list.
5311         (make_cleanup_restore_current_thread): Add the cleanup data to the
5312         current_thread_cleanup_chain list.
5313         (_initialize_thread): Install restore_current_thread_ptid_changed
5314         as thread_ptid_changed observer.
5315
5316 2015-08-07  Joel Brobecker  <brobecker@adacore.com>
5317
5318         * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
5319         data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
5320         smaller than expected.
5321
5322 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
5323
5324         * stack.c (get_frame_language): Moved ...
5325         * frame.c (get_frame_language): ... to here.
5326         * language.h (get_frame_language): Declaration moved to frame.h.
5327         * frame.h: Add language.h include, for language enum.
5328         (get_frame_language): Declaration moved from language.h.
5329         * language.c: Add frame.h include.
5330         * top.c: Add frame.h include.
5331         * symtab.h (struct obj_section): Declare.
5332         (struct cmd_list_element): Declare.
5333
5334 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
5335
5336         * language.c (show_language_command): Find selected frame before
5337         asking for the language of that frame.
5338         (set_language_command): Likewise.
5339         * language.h (get_frame_language): Add frame parameter.
5340         * stack.c (get_frame_language): Add frame parameter, assert
5341         parameter is not NULL, update comment and reindent.
5342         * top.c (check_frame_language_change): Pass the selected frame
5343         into get_frame_language.
5344
5345 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
5346
5347         * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
5348         (pt_btrace_insn_flags): New.
5349         (ftrace_add_pt): Call pt_btrace_insn_flags.
5350         * btrace.h (btrace_insn_flag): New.
5351         (btrace_insn) <flags>: New.
5352         * record-btrace.c (btrace_insn_history): Print insn prefix.
5353         * NEWS: Announce it.
5354
5355 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
5356
5357         * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
5358         * configure: Regenerate.
5359
5360 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
5361
5362         * Makefile.in (LIBICONV): Define.
5363         (CLIBS): Add LIBICONV.
5364         * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
5365         * configure: Regenerate.
5366
5367 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
5368             Pedro Alves  <palves@redhat.com>
5369
5370         * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
5371         (arm_set_abi): Likewise.
5372         * ax-general.c (ax_print): Likewise.
5373         * c-exp.y (exp : string_exp): Likewise.
5374         * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
5375         (do_compile_dwarf_expr_to_c): Likewise.
5376         * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
5377         Likewise.
5378         * dwarf2expr.c (execute_stack_op): Likewise.
5379         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
5380         (disassemble_dwarf_expression): Likewise.
5381         * dwarf2read.c (dwarf2_add_member_fn): Likewise.
5382         (read_array_order): Likewise.
5383         (abbrev_table_read_table): Likewise.
5384         (read_attribute_value): Likewise.
5385         (skip_unknown_opcode): Likewise.
5386         (dwarf_decode_macro_bytes): Likewise.
5387         (dwarf_decode_macros): Likewise.
5388         * eval.c (value_f90_subarray): Likewise.
5389         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5390         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5391         * infrun.c (handle_command): Likewise.
5392         * memory-map.c (memory_map_start_memory): Likewise.
5393         * osabi.c (set_osabi): Likewise.
5394         * parse.c (operator_length_standard): Likewise.
5395         * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
5396         single return point.
5397         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5398         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5399         (gdbpy_lookup_global_symbol): Likewise.
5400         * record-full.c (record_full_restore): Likewise.
5401         * regcache.c (regcache_register_status): Likewise.
5402         (regcache_raw_read): Likewise.
5403         (regcache_cooked_read): Likewise.
5404         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5405         * symtab.c (initialize_ordinary_address_classes): Likewise.
5406         * target-debug.h (target_debug_print_signals): Likewise.
5407         * utils.c (do_restore_current_language): Likewise.
5408
5409 2015-08-06  Clem Dickey  <clemd@acm.org>
5410
5411         PR python/17136
5412         * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
5413
5414 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
5415
5416         * complaints.c (enum complaint_series): Add newlines and remove
5417         out of date comment.
5418         (struct complaints) <series>: Change type to enum
5419         complaint_series and remove out of date comment.
5420         (symfile_complaint_hook): Use equivalent enum value
5421         ISOLATED_MESSAGE instead of 0.
5422
5423 2015-08-06  Pedro Alves  <palves@redhat.com>
5424
5425         * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
5426         returned > 0.
5427
5428 2015-08-06  Pierre Langlois  <pierre.langlois@arm.com>
5429
5430         * common/agent.c (symbol_list) <required>: Remove.
5431
5432 2015-08-06  Pedro Alves  <palves@redhat.com>
5433
5434         * target/waitstatus.h (enum target_stop_reason)
5435         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5436
5437 2015-08-05  Pedro Alves  <palves@redhat.com>
5438             Joel Brobecker  <brobecker@adacore.com>
5439
5440         * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
5441         <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
5442         case where BS->STOP is not set.
5443
5444 2015-08-05  Ulrich Weigand  <uweigand@de.ibm.com>
5445
5446         * nat/gdb_thread_db.h: Add copyright header.
5447         Protect against multiple inclusion.
5448
5449 2015-08-05  Yao Qi  <yao.qi@linaro.org>
5450
5451         * aarch64-linux-nat.c (get_thread_id): Remove.
5452         (debug_reg_change_callback): Call ptid_get_lwp instead of
5453         get_thread_id.
5454         (fetch_gregs_from_thread): Likewise.
5455         (store_gregs_to_thread): Likewise.
5456         (fetch_fpregs_from_thread): Likewise.
5457         (store_fpregs_to_thread): Likewise.
5458         (aarch64_linux_get_debug_reg_capacity): Likewise.
5459         * arm-linux-nat.c (get_thread_id): Remove.
5460         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5461         * xtensa-linux-nat.c (get_thread_id): Remove.
5462         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5463         * arm-linux-nat.c (get_thread_id): Remove.
5464         (GET_THREAD_ID): Remove.
5465         (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
5466         (store_fpregs, fetch_regs, store_regs): Likewise.
5467         (fetch_wmmx_regs, store_wmmx_regs): Likewise.
5468         (fetch_vfp_regs, store_vfp_regs): Likewise.
5469         (arm_linux_read_description): Likewise.
5470         (arm_linux_get_hwbp_cap): Likewise.
5471         * xtensa-linux-nat.c (get_thread_id): Remove.
5472         (GET_THREAD_ID): Remove.
5473         (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
5474         GET_THREAD_ID.
5475
5476 2015-08-04  Ciro Santilli  <ciro.santilli@gmail.com>  (obvious patch)
5477
5478         * python/py-linetable.c: Fix case of Linetable to LineTable
5479         in docstrings and code comments.
5480         * python/py-symtab.c: Same.
5481
5482 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5483
5484         * infcmd.c (signal_command): Call do_cleanups for args_chain.
5485
5486 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5487
5488         PR gdb/18767
5489         * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
5490         use.
5491
5492 2015-08-04  Pedro Alves  <palves@redhat.com>
5493
5494         * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
5495         (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
5496         (td_ta_event_addr_ftype, td_ta_set_event_ftype)
5497         (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
5498         (td_thr_validate_ftype, td_thr_get_info_ftype)
5499         (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
5500         (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
5501         New typedefs.
5502         * linux-thread-db.c (struct thread_db_info): Use new typedefs.
5503         (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
5504         local macros and use them instead of verbose_dlsym and dlsym
5505         calls.
5506
5507 2015-08-03  Sandra Loosemore  <sandra@codesourcery.com>
5508
5509         * nios2-tdep.h: Include opcode/nios2.h here.
5510         (NIOS2_CDX_OPCODE_SIZE): New.
5511         (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
5512         * nios2-tdep.c: Don't include opcode/nios2.h here.
5513         (nios2_fetch_insn): For R2, try reading 2-byte instruction if
5514         4-byte read fails.
5515         (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
5516         (nios2_match_addi, nios2_match_orhi): Likewise.
5517         (nios2_match_stw, nios2_match_ldw): Likewise.
5518         (nios2_match_rdctl): Likewise.
5519         (nios2_match_stwm, nios2_match_ldwm): New.
5520         (nios2_match_branch): Add cases for R2 encodings.
5521         (nios2_match_jmpi, nios2_match_calli): Likewise.
5522         (nios2_match_jmpr, nios2_match_callr): Likewise.
5523         (nios2_match_break, nios2_match_trap): Likewise.
5524         (nios2_in_epilogue_p): Add R2 support.
5525         (nios2_analyze_prologue): Update comments.  Recognize R2 CDX
5526         prologues.
5527         (nios2_breakpoint_from_pc): Handle R2 instructions.
5528         (nios2_get_next_pc): Likewise.  Adjust call to
5529         tdep->syscall_next_pc.
5530         * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
5531         Renamed from nios2_linux_rt_sigreturn_tramp_frame.  Use
5532         instruction field macros instead of literal hex values.
5533         (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
5534         (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
5535         Use size field from OP instead of assuming all instructions
5536         are the same size.
5537         (nios2_linux_init_abi): Register appropriate unwinder for mach.
5538
5539 2015-08-03  Ulrich Weigand  <uweigand@de.ibm.com>
5540
5541         * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
5542         variable warning with some compilers.
5543
5544 2015-08-03  Yao Qi  <yao.qi@linaro.org>
5545
5546         * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
5547         in comment.  Replace "rw" with "type".
5548         (arm_linux_remove_watchpoint): Change type of "rw" to
5549         "enum target_hw_bp_type".
5550
5551 2015-08-02  Pierre-Marie de Rodat  <derodat@adacore.com>
5552
5553         * alpha-mdebug-tdep.c (find_proc_desc): Update call to
5554         lookup_symbol.
5555         * ft32-tdep.c (ft32_skip_prologue): Likewise.
5556         * moxie-tdep.c (moxie_skip_prologue): Likewise.
5557         * mt-tdep.c (mt_skip_prologue): Likewise.
5558         * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5559
5560 2015-08-01  Pierre-Marie de Rodat  <derodat@adacore.com>
5561
5562         * ada-exp.y (write_object_renaming): Replace struct
5563         ada_symbol_info with struct block_symbol.  Update field
5564         references accordingly.
5565         (block_lookup, select_possible_type_sym): Likewise.
5566         (find_primitive_type): Likewise.  Also update call to
5567         ada_lookup_symbol to extract the symbol itself.
5568         (write_var_or_type, write_name_assoc): Likewise.
5569         * ada-lang.h (struct ada_symbol_info): Remove.
5570         (ada_lookup_symbol_list): Replace struct ada_symbol_info with
5571         struct block_symbol.
5572         (ada_lookup_encoded_symbol, user_select_syms): Likewise.
5573         (ada_lookup_symbol): Return struct block_symbol instead of a
5574         mere symbol.
5575         * ada-lang.c (defns_collected): Replace struct ada_symbol_info
5576         with struct block_symbol.
5577         (resolve_subexp, ada_resolve_function, sort_choices,
5578         user_select_syms, is_nonfunction, add_defn_to_vec,
5579         num_defns_collected, defns_collected,
5580         symbols_are_identical_enums, remove_extra_symbols,
5581         remove_irrelevant_renamings, add_lookup_symbol_list_worker,
5582         ada_lookup_symbol_list, ada_iterate_over_symbols,
5583         ada_lookup_encoded_symbol, get_var_value): Likewise.
5584         (ada_lookup_symbol): Return a block_symbol instead of a mere
5585         symbol.  Replace struct ada_symbol_info with struct
5586         block_symbol.
5587         (ada_lookup_symbol_nonlocal): Likewise.
5588         (standard_lookup): Make block passing explicit through
5589         lookup_symbol_in_language.
5590         * ada-tasks.c (get_tcb_types_info): Update the calls to
5591         lookup_symbol_in_language to extract the mere symbol out of the
5592         returned value.
5593         (ada_tasks_inferior_data_sniffer): Likewise.
5594         * ax-gdb.c (gen_static_field): Likewise for the call to
5595         lookup_symbol.
5596         (gen_maybe_namespace_elt): Deal with struct block_symbol from
5597         lookup functions.
5598         (gen_expr): Likewise.
5599         * c-exp.y: Likewise.  Remove uses of block_found.
5600         (lex_one_token, classify_inner_name, c_print_token): Likewise.
5601         (classify_name): Likewise.  Rename the "sym" local variable to
5602         "bsym".
5603         * c-valprint.c (print_unpacked_pointer): Likewise.
5604         * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5605         "sym" parameter from struct symbol * to struct block_symbol.
5606         Use it to remove uses of block_found.  Deal with struct
5607         block_symbol from lookup functions.
5608         (gcc_convert_symbol): Likewise.  Update the call to
5609         convert_symbol_sym.
5610         * compile/compile-object-load.c (compile_object_load): Deal with
5611         struct block_symbol from lookup functions.
5612         * cp-namespace.c (cp_lookup_nested_symbol_1,
5613         cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5614         cp_search_static_and_baseclasses,
5615         cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5616         cp_lookup_symbol_imports_or_template,
5617         cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5618         lookup_namespace_scope, cp_lookup_nonlocal,
5619         find_symbol_in_baseclass): Return struct block_symbol instead of
5620         mere symbols and deal with struct block_symbol from lookup
5621         functions.
5622         * cp-support.c (inspect_type, replace_typedefs,
5623         cp_lookup_rtti_type): Deal with struct block_symbol from
5624         lookup functions.
5625         * cp-support.h (cp_lookup_symbol_nonlocal,
5626         cp_lookup_symbol_from_namespace,
5627         cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
5628         Return struct block_symbol instead of mere symbols.
5629         * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5630         push_module_name):
5631         Deal with struct block_symbol from lookup functions.  Remove
5632         uses of block_found.
5633         * eval.c (evaluate_subexp_standard): Update call to
5634         cp_lookup_symbol_namespace.
5635         * f-exp.y: Deal with struct block_symbol from lookup functions.
5636         Remove uses of block_found.
5637         (yylex): Likewise.
5638         * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5639         lookup_enum, lookup_template_type, check_typedef): Deal with
5640         struct block_symbol from lookup functions.
5641         * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5642         * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5643         (gdbscm_lookup_global_symbol): Likewise.
5644         * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5645         * go-exp.y: Likewise.  Remove uses of block_found.
5646         (package_name_p, classify_packaged_name, classify_name):
5647         Likewise.
5648         * infrun.c (insert_exception_resume_breakpoint): Likewise.
5649         * jv-exp.y (push_variable): Likewise.
5650         * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5651         * language.c (language_bool_type): Likewise.
5652         * language.h (struct language_defn): Update
5653         la_lookup_symbol_nonlocal to return a struct block_symbol rather
5654         than a mere symbol.
5655         * linespec.c (find_label_symbols): Deal with struct block_symbol
5656         from lookup functions.
5657         * m2-exp.y: Likewise.  Remove uses of block_found.
5658         (yylex): Likewise.
5659         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5660         * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5661         * p-exp.y: Likewise.  Remove uses of block_found.
5662         (yylex): Likewise.
5663         * p-valprint.c (pascal_val_print): Likewise.
5664         * parse.c (write_dollar_variable): Likewise.  Remove uses of
5665         block_found.
5666         * parser-defs.h (struct symtoken): Turn the SYM field into a
5667         struct block_symbol.
5668         * printcmd.c (address_info): Deal with struct block_symbol from
5669         lookup functions.
5670         * python/py-frame.c (frapy_read_var): Likewise.
5671         * python/py-symbol.c (gdbpy_lookup_symbol,
5672         gdbpy_lookup_global_symbol): Likewise.
5673         * skip.c (skip_function_command): Likewise.
5674         * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
5675         block_symbol instead of a mere symbol.
5676         * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5677         * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5678         * solib.c (solib_global_lookup): Likewise.
5679         * solist.h (solib_global_lookup): Likewise.
5680         (struct target_so_ops): Update lookup_lib_global_symbol to
5681         return a struct block_symbol rather than a mere symbol.
5682         * source.c (select_source_symtab): Deal with struct block_symbol
5683         from lookup functions.
5684         * stack.c (print_frame_args, iterate_over_block_arg_vars):
5685         Likewise.
5686         * symfile.c (set_initial_language): Likewise.
5687         * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
5688         block_symbol.
5689         (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5690         (struct symbol_cache_slot): Turn the FOUND field into a struct
5691         block_symbol.
5692         (block_found): Remove.
5693         (eq_symbol_entry): Update to deal with struct block_symbol in
5694         cache slots.
5695         (symbol_cache_lookup): Return a struct block_symbol rather than
5696         a mere symbol.
5697         (symbol_cache_mark_found): Add a BLOCK parameter to fill
5698         appropriately the cache slots.  Update callers.
5699         (symbol_cache_dump): Update cache slots handling to the type
5700         change.
5701         (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5702         lookup_symbol_aux, lookup_local_symbol,
5703         lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5704         lookup_symbol_in_objfile_symtabs,
5705         lookup_symbol_in_objfile_from_linkage_name,
5706         lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5707         lookup_symbol_in_static_block, lookup_static_symbol,
5708         lookup_global_symbol):
5709         Return a struct block_symbol rather than a mere symbol.  Deal
5710         with struct block_symbol from other lookup functions.  Remove
5711         uses of block_found.
5712         (lookup_symbol_in_block): Remove uses of block_found.
5713         (struct global_sym_lookup_data): Turn the RESULT field into a
5714         struct block_symbol.
5715         (lookup_symbol_global_iterator_cb): Update references to the
5716         RESULT field.
5717         (search_symbols): Deal with struct block_symbol from lookup
5718         functions.
5719         * symtab.h (struct block_symbol): New structure.
5720         (block_found): Remove.
5721         (lookup_symbol_in_language, lookup_symbol,
5722         basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
5723         lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5724         lookup_global_symbol_from_objfile): Return a struct block_symbol
5725         rather than just a mere symbol.  Update comments to remove
5726         mentions of block_found.
5727         * valops.c (find_function_in_inferior,
5728         value_struct_elt_for_reference, value_maybe_namespace_elt,
5729         value_of_this):  Deal with struct block_symbol from lookup
5730         functions.
5731         * value.c (value_static_field, value_fn_field): Likewise.
5732
5733 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5734
5735         * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5736         instead of integer.
5737
5738 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5739             Pedro Alves  <palves@redhat.com>
5740
5741         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5742         type or value instead of integer.
5743         (aarch64_linux_insert_watchpoint): Likewise.
5744         (aarch64_linux_remove_watchpoint): Likewise.
5745         * ada-lang.c (ada_op_print_tab): Likewise.
5746         * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5747         (amd64_linux_syscall_record_common): Likewise.
5748         * arch-utils.c (target_byte_order_user): Likewise.
5749         (default_byte_order): Likewise.
5750         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5751         (arm_linux_get_hwbp_type): Likewise.
5752         (arm_linux_hw_watchpoint_initialize): Likewise.
5753         (arm_linux_insert_watchpoint): Likewise.
5754         * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5755         (arm_linux_syscall_record): Likewise.
5756         * breakpoint.c (update_watchpoint): Likewise.
5757         (breakpoint_here_p): Likewise.
5758         (bpstat_print): Likewise.
5759         (enable_breakpoint_disp): Likewise.
5760         * c-lang.c (c_op_print_tab): Likewise.
5761         * cli/cli-decode.c (add_info_alias): Likewise.
5762         * d-lang.c (d_op_print_tab): Likewise.
5763         * eval.c (evaluate_subexp_standard): Likewise.
5764         * f-exp.y (dot_ops): Likewise.
5765         (f77_keywords): Likewise.
5766         * f-lang.c (f_op_print_tab): Likewise.
5767         * go-lang.c (go_op_print_tab): Likewise.
5768         * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5769         * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5770         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5771         * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5772         * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5773         (struct scm_from_stringn_data): Likewise.
5774         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5775         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5776         (ia64_linux_remove_watchpoint): Likewise.
5777         (ia64_linux_can_use_hw_breakpoint): Likewise.
5778         * infrun.c (print_stop_event): Likewise.
5779         * jv-lang.c (java_op_print_tab): Likewise.
5780         * linux-nat.c (linux_proc_xfer_partial): Likewise.
5781         * linux-nat.h (struct lwp_info): Likewise.
5782         * linux-thread-db.c (enable_thread_event): Likewise.
5783         * m2-lang.c (m2_op_print_tab): Likewise.
5784         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5785         (mi_cmd_stack_list_variables): Likewise.
5786         * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5787         * mi/mi-out.c (mi_table_begin): Likewise.
5788         (mi_table_header): Likewise.
5789         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5790         (mips_linux_insert_watchpoint): Likewise.
5791         (mips_linux_remove_watchpoint): Likewise.
5792         * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5793         * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5794         (mips_linux_watch_type_to_irw): Likewise.
5795         * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5796         (procfs_insert_hw_watchpoint): Likewise.
5797         (procfs_remove_hw_watchpoint): Likewise.
5798         (procfs_hw_watchpoint): Likewise.
5799         (procfs_can_use_hw_breakpoint): Likewise.
5800         (procfs_remove_hw_watchpoint): Likewise.
5801         (procfs_insert_hw_watchpoint): Likewise.
5802         * p-lang.c (pascal_op_print_tab): Likewise.
5803         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5804         * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5805         * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5806         * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5807         (procfs_insert_watchpoint): Likewise.
5808         (procfs_remove_watchpoint): Likewise.
5809         * psymtab.c (recursively_search_psymtabs): Likewise.
5810         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5811         (m32r_insert_watchpoint): Likewise.
5812         * remote-mips.c (mips_can_use_watchpoint): Likewise.
5813         (mips_insert_watchpoint): Likewise.
5814         (mips_remove_watchpoint): Likewise.
5815         * remote.c (watchpoint_to_Z_packet): Likewise.
5816         (remote_insert_watchpoint): Likewise.
5817         (remote_remove_watchpoint): Likewise.
5818         (remote_check_watch_resources): Likewise.
5819         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5820         (s390_remove_watchpoint): Likewise.
5821         (s390_can_use_hw_breakpoint): Likewise.
5822         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5823         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5824         * target.h (struct target_ops): Likewise.
5825         * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5826         * ui-out.c (struct ui_out_hdr): Likewise.
5827         (append_header_to_list): Likewise.
5828         (get_next_header): Likewise.
5829         (verify_field): Likewise.
5830         (ui_out_begin): Likewise.
5831         (ui_out_field_int): Likewise.
5832         (ui_out_field_fmt_int): Likewise.
5833         (ui_out_field_skip): Likewise.
5834         (ui_out_field_string): Likewise.
5835         (ui_out_field_fmt): Likewise.
5836         * varobj.c (new_variable): Likewise.
5837         * x86-nat.c (x86_insert_watchpoint): Likewise.
5838         (x86_remove_watchpoint): Likewise.
5839         (x86_can_use_hw_breakpoint): Likewise.
5840         * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5841         * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5842         previously anonymous enumeration type..
5843         * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5844         value.
5845         * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5846         (target_debug_print_enum_bptype): New.
5847         * target-delegates.c: Regenerate.
5848
5849 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
5850
5851         * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5852         already says and disallow non-stack memory writes in the prologue.
5853
5854 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
5855
5856         * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5857         reflect how current GCC emits stack overflow checks.  Match
5858         both trap and break instructions for backward compatbility.
5859         Disallow other trap and break instructions in the prologue.
5860
5861 2015-07-30  Pedro Alves  <palves@redhat.com>
5862
5863         PR threads/18600
5864         * linux-nat.c (wait_lwp): Report to the core when thread group
5865         leader exits.
5866
5867 2015-07-30  Pedro Alves  <palves@redhat.com>
5868             Simon Marchi  <simon.marchi@ericsson.com>
5869
5870         PR threads/18600
5871         * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5872         mark the new thread as resumed.  Remove STOPPING parameter.
5873         (wait_lwp): Adjust call to linux_handle_extended_wait.
5874         (linux_nat_filter_event): Adjust call to
5875         linux_handle_extended_wait.
5876         (resume_stopped_resumed_lwps): Add debug output.
5877
5878 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
5879
5880         * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5881         isize argument.
5882         * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5883         * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5884         gdbarch_fast_tracepoint_valid_at.
5885         * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5886         * gdbarch.h: Regenerate.
5887         * gdbarch.c: Regenerate.
5888         * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5889         argument.  Do not set it.
5890         * remote.c (remote_download_tracepoint): Adjust call to
5891         gdbarch_fast_tracepoint_valid_at.  Call gdb_insn_length to get
5892         the instruction length.
5893
5894 2015-07-30  Yao Qi  <yao.qi@linaro.org>
5895
5896         * arm-tdep.h (enum gdb_regnum): Move it to ...
5897         * arch/arm.h: ... here.  New file.
5898         * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5899
5900 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
5901
5902         * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5903         Change its type to int *.
5904         (decode_br): Rename link argument to is_blr.  Change its type to
5905         int *.
5906         (decode_cb): Rename op argument to is_cbnz.  Change its type to
5907         int *.
5908         (decode_tb): Rename op argument to is_tbnz.  Change its type to
5909         int *.  Set is_tbnz to either 1 or 0.
5910         (aarch64_analyze_prologue): Change type of is_link to int.  Add
5911         new variables is_cbnz and is_tbnz.  Adjust call to
5912         aarch64_decode_cb and aarch64_decode_tb.
5913
5914 2015-07-29  Simon Marchi  <simon.marchi@ericsson.com>
5915
5916         * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5917         parameter.
5918         (mips_linux_new_thread): Likewise.
5919         * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5920
5921 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
5922
5923         * top.c: Include "tui/tui.h".
5924         (undo_terminal_modifications_before_exit): New static function.
5925         (quit_force): Use it.
5926
5927 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
5928
5929         * target.c (terminal_state): Initialize to terminal_is_ours.
5930
5931 2015-07-29  Yao Qi  <yao.qi@linaro.org>
5932
5933         PR record/18691
5934         * dcache.c (dcache_read_memory_partial): Call
5935         raw_memory_xfer_partial.
5936         * target.c (raw_memory_xfer_partial): Make it non-static.
5937         * target.h (raw_memory_xfer_partial): Declare.
5938
5939 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5940
5941         * c-valprint.c (c_val_print_array): Consider addressable memory
5942         unit size.
5943         (c_val_print_ptr): Likewise.
5944         (c_val_print_int): Likewise.
5945         * findvar.c (read_frame_register_value): Likewise.
5946         * valarith.c (find_size_for_pointer_math): Likewise.
5947         (value_ptrdiff): Likewise.
5948         (value_subscripted_rvalue): Likewise.
5949         * valops.c (read_value_memory): Likewise (and rename variables).
5950         (value_assign): Likewise.
5951         (value_repeat): Likewise.
5952         (value_array): Likewise.
5953         (value_slice): Likewise.
5954         * valprint.c (generic_val_print_ptr): Likewise.
5955         (generic_val_print_enum): Likewise.
5956         (generic_val_print_bool): Likewise.
5957         (generic_val_print_int): Likewise.
5958         (generic_val_print_char): Likewise.
5959         (generic_val_print_float): Likewise.
5960         (generic_val_print_decfloat): Likewise.
5961         (generic_val_print_complex): Likewise.
5962         (val_print_scalar_formatted): Likewise.
5963         (val_print_array_elements): Likewise.
5964         * value.c (set_value_parent): Likewise.
5965         (value_contents_copy_raw): Likewise.
5966         (set_internalvar_component): Likewise.
5967         (value_primitive_field): Likewise.
5968         (value_fetch_lazy): Likewise.
5969         * value.h (read_value_memory): Update comment.
5970
5971 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5972
5973         * value.c (get_value_arch): New function.
5974         * value.h (get_value_arch): New declaration.
5975
5976 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5977
5978         * value.c (struct value): Update comments.
5979
5980 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5981
5982         * gdbtypes.c (type_length_units): New function.
5983         * gdbtypes.h (type_length_units): New declaration.
5984         (struct type) <length>: Update comment.
5985
5986 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5987
5988         * valprint.c (generic_val_print): Factor out complex
5989         printing code to ...
5990         (generic_val_print_complex): ... this new function.
5991
5992 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5993
5994         * valprint.c (generic_val_print): Factor out decfloat
5995         printing code to ...
5996         (generic_val_print_decfloat): ... this new function.
5997
5998 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5999
6000         * valprint.c (generic_val_print): Factor out float
6001         printing code to ...
6002         (generic_val_print_float): ... this new function.
6003
6004 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6005
6006         * valprint.c (generic_val_print): Factor out char
6007         printing code to ...
6008         (generic_val_print_char): ... this new function.
6009
6010 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6011
6012         * valprint.c (generic_val_print): Factor out integer
6013         printing code to ...
6014         (generic_val_print_int): ... this new function.
6015
6016 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6017
6018         * valprint.c (generic_val_print): Factor out bool
6019         printing code to ...
6020         (generic_val_print_bool): ... this new function.
6021
6022 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6023
6024         * valprint.c (generic_val_print): Factor out function/method
6025         printing code to ...
6026         (generic_val_print_func): ... this new function.
6027
6028 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6029
6030         * valprint.c (generic_val_print): Factor out flags
6031         printing code to ...
6032         (generic_val_print_flags): ... this new function.
6033
6034 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6035
6036         * valprint.c (generic_val_print): Factor out enum
6037         printing code to ...
6038         (generic_val_print_enum): ... this new function.
6039
6040 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6041
6042         * valprint.c (generic_val_print): Factor out reference
6043         printing code to ...
6044         (generic_val_print_ref): ... this new function.
6045
6046 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6047
6048         * valprint.c (generic_val_print): Factor out memberptr
6049         printing code to ...
6050         (generic_val_print_memberptr): ... this new function.
6051
6052 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6053
6054         * valprint.c (generic_val_print): Factor out pointer
6055         printing code to ...
6056         (generic_val_print_ptr): ... this new function.
6057
6058 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6059
6060         * valprint.c (generic_val_print): Factor out array
6061         printing code to ...
6062         (generic_val_print_array): ... this new function.
6063
6064 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6065
6066         * valprint.c (generic_val_print): Factor out
6067         print_unpacked_pointer code to ...
6068         (print_unpacked_pointer): ... this new function.
6069
6070 2015-07-27  Patrick Palka  <patrick@parcs.ath.cx>
6071
6072         * event-top.c (handle_sigterm): Don't inspect
6073         target_can_async_p.  Always set the quit flag and always mark
6074         the async signal handler.
6075
6076 2015-07-27  Yao Qi  <yao.qi@linaro.org>
6077
6078         * Makefile.in (REMOTE_EXAMPLES): Remove it.
6079
6080 2015-07-25  Kevin Buettner  <kevinb@redhat.com>
6081
6082         * remote.c (read_ptid): Return null_ptid when no thread id
6083         is found.
6084         (remote_current_thread): Add log warning for malformed
6085         qC reply.
6086         (remote_start_remote): Add log warning when current thread
6087         not found.
6088
6089 2015-07-24  Pedro Alves  <palves@redhat.com>
6090
6091         * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
6092         (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
6093         forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
6094
6095 2015-07-24  Pedro Alves  <palves@redhat.com>
6096
6097         PR gdb/18717
6098         * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
6099         is resumed, and extend the debug log.
6100
6101 2015-07-24  Pedro Alves  <palves@redhat.com>
6102
6103         * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
6104
6105 2015-07-24  Pedro Alves  <palves@redhat.com>
6106
6107         * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
6108         sys/ptrace.h.
6109         * alpha-linux-nat.c: Likewise.
6110         * amd64-linux-nat.c: Likewise.
6111         * arm-linux-nat.c: Likewise.
6112         * hppa-linux-nat.c: Likewise.
6113         * i386-linux-nat.c: Likewise.
6114         * ia64-linux-nat.c: Likewise.
6115         * linux-fork.c: Likewise.
6116         * linux-nat.c: Likewise.
6117         * m32r-linux-nat.c: Likewise.
6118         * m68klinux-nat.c: Likewise.
6119         * mips-linux-nat.c: Likewise.
6120         * nat/linux-btrace.c: Likewise.
6121         * nat/linux-ptrace.c: Likewise.
6122         * nat/linux-ptrace.h
6123         * nat/mips-linux-watch.c: Likewise.
6124         * nat/x86-linux-dregs.c: Likewise.
6125         * ppc-linux-nat.c: Likewise.
6126         * s390-linux-nat.c: Likewise.
6127         * spu-linux-nat.c: Likewise.
6128         * tilegx-linux-nat.c: Likewise.
6129         * x86-linux-nat.c: Likewise.
6130         * xtensa-linux-nat.c: Likewise.
6131
6132 2015-07-24  Pedro Alves  <palves@redhat.com>
6133
6134         * ptrace.m4 (ptrace tests): Test in C++ mode.  Try with 'enum
6135         __ptrace_request as first parameter type instead of int.
6136         (PTRACE_TYPE_ARG1): Define.
6137         * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
6138         that casts first argument to PTRACE_TYPE_ARG1.
6139         * config.in: Regenerate.
6140         * configure: Regenerate.
6141
6142 2015-07-24  Pedro Alves  <palves@redhat.com>
6143
6144         * gdb_ptrace.h: Move ...
6145         * nat/gdb_ptrace.h: ... here.
6146         * inf-ptrace.c: Adjust.
6147
6148 2015-07-24  Pedro Alves  <palves@redhat.com>
6149
6150         * acinclude.m4: Include ptrace.m4.
6151         * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
6152         * ptrace.m4: ... to this new file.
6153
6154 2015-07-23  Doug Evans  <dje@google.com>
6155
6156         * dwarf2read.c (dwarf2_per_cu_data): Add comment.
6157         (load_cu): Handle dummy CUs.
6158         (dw2_do_instantiate_symtab, process_queuef): Ditto.
6159         (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
6160
6161 2015-07-23  Ciro Santilli  <ciro.santilli@gmail.com>  (tiny patch)
6162
6163         * py-linetable.c (ltpy_get_all_source_lines): Adjust function
6164         documentation to say that it returns a list rather than
6165         a FrozenSet.
6166         (linetable_object_methods): Update the docstring of the
6167         "source_line" entry.
6168
6169 2015-07-23  Pierre-Marie de Rodat  <derodat@adacore.com>
6170
6171         * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
6172         type to the recursive call instead of the original (maybe
6173         TYPE_CODE_TYPEDEF) type.
6174
6175 2015-07-23  Yao Qi  <yao.qi@linaro.org>
6176
6177         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
6178         TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
6179         If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
6180
6181 2015-07-21  Yao Qi  <yao.qi@linaro.org>
6182
6183         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
6184         Move it to nat/aarch64-linux-hw-point.c.
6185         (aarch64_linux_child_post_startup_inferior): Update.
6186         * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
6187         New function.
6188         * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
6189         Declare it.
6190
6191 2015-07-21  Markus Metzger  <markus.t.metzger@intel.com>
6192
6193         * common/btrace-common.c (btrace_data_append): Change case label.
6194
6195 2015-07-20  Yao Qi  <yao.qi@linaro.org>
6196
6197         * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
6198         Re-indent the code.
6199         * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
6200         "unsigned long long".
6201
6202 2015-07-18  Kevin Buettner  <kevinb@redhat.com>
6203
6204         * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
6205         to be set for SEC_ALLOC sections too.
6206
6207 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6208
6209         * Makefile.in (HFILES_NO_SRCDIR): Add
6210         nat/aarch64-linux-hw-point.h.
6211         (aarch64-linux-hw-point.o): New rule.
6212         * nat/aarch64-linux-hw-point.h: New file.
6213         * nat/aarch64-linux-hw-point.c: New file.
6214         * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
6215         (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
6216         (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
6217         (AARCH64_HWP_ALIGNMENT): Likewise.
6218         (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
6219         (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
6220         (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
6221         (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
6222         (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
6223         (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
6224         (struct aarch64_debug_reg_state): Likewise.
6225         (struct arch_lwp_info): Likewise.
6226         (aarch64_linux_set_debug_regs): Likewise.
6227         (aarch64_notify_debug_reg_change): Remove static.
6228         (aarch64_align_watchpoint): Likewise.
6229         (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
6230         (aarch64_watchpoint_length): Likewise.
6231         (aarch64_point_encode_ctrl_reg): Likewise
6232         (aarch64_point_is_aligned): Likewise.
6233         (aarch64_dr_state_insert_one_point): Likewise.
6234         (aarch64_dr_state_remove_one_point): Likewise.
6235         (aarch64_handle_breakpoint): Likewise.
6236         (aarch64_handle_aligned_watchpoint): Likewise.
6237         (aarch64_handle_unaligned_watchpoint): Likewise.
6238         (aarch64_handle_watchpoint): Likewise.
6239         * config/aarch64/linux.mh (NAT_FILE): Add
6240         aarch64-linux-hw-point.o.
6241
6242 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6243
6244         * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
6245         state and don't call aarch64_get_debug_reg_state.  All callers
6246         update.
6247         (aarch64_linux_insert_hw_breakpoint): Call
6248         aarch64_get_debug_reg_state earlier.
6249         (aarch64_linux_remove_hw_breakpoint): Likewise.
6250         (aarch64_handle_aligned_watchpoint): Add argument state and
6251         don't call aarch64_get_debug_reg_state.  All callers update.
6252         (aarch64_handle_unaligned_watchpoint): Likewise.
6253         (aarch64_handle_watchpoint): Add argument state.
6254         (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
6255         earlier.
6256         (aarch64_linux_remove_watchpoint): Likewise.
6257
6258 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6259
6260         * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
6261         debug_printf.
6262         (aarch64_handle_unaligned_watchpoint): Likewise.
6263
6264 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6265
6266         * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
6267         argument type's type to 'enum target_hw_bp_type'.
6268         (aarch64_dr_state_remove_one_point): Likewise.
6269         (aarch64_handle_breakpoint): Likewise.
6270         (aarch64_linux_insert_hw_breakpoint): Likewise.
6271         (aarch64_linux_remove_hw_breakpoint): Likewise.
6272         (aarch64_handle_aligned_watchpoint): Likewise.
6273
6274 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6275
6276         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
6277         ptid_get_pid instead of get_thread_id.
6278
6279 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6280
6281         * remote.c (get_current_thread): Initialise ptid to null_ptid.
6282         (add_current_inferior_and_thread): Don't initialise ptid.
6283
6284 2015-07-16  Pierre Langlois  <pierre.langlois@arm.com>
6285
6286         * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
6287         unavailable if invalid.
6288
6289 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6290
6291         Revert the previous 6 commits:
6292         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6293         Move gdb_regex* to common/
6294         Prepare linux_find_memory_regions_full & co. for move
6295         Move linux_find_memory_regions_full & co.
6296         gdbserver build-id attribute generator
6297         Validate symbol file using build-id
6298
6299 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6300             Jan Kratochvil  <jan.kratochvil@redhat.com>
6301
6302         Validate symbol file using build-id.
6303         * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
6304         and 'show validate-build-id'.  Add build-id attribute.
6305         * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
6306         * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
6307         * solib-frv.c (_initialize_frv_solib): Ditto.
6308         * solib-spu.c (set_spu_solib_ops): Ditto.
6309         * solib-svr4.c: Include rsp-low.h.
6310         (NOTE_GNU_BUILD_ID_NAME): New define.
6311         (svr4_validate): New function.
6312         (svr4_copy_library_list): Duplicate field build_id.
6313         (library_list_start_library): Parse 'build-id' attribute.
6314         (svr4_library_attributes): Add 'build-id' attribute.
6315         (_initialize_svr4_solib): Assign validate value.
6316         * solib-target.c (solib.h): Include.
6317         (_initialize_solib_target): Assign validate value.
6318         * solib.c (validate_build_id, show_validate_build_id): New.
6319         (solib_map_sections): Use ops->validate.
6320         (clear_so): Free build_id.
6321         (default_solib_validate): New function.
6322         (_initialize_solib): Add "validate-build-id".
6323         * solib.h (default_solib_validate): New declaration.
6324         * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
6325         (target_so_ops): New field 'validate'.
6326
6327 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6328             Jan Kratochvil  <jan.kratochvil@redhat.com>
6329
6330         gdbserver build-id attribute generator.
6331         * features/library-list-svr4.dtd (library-list-svr4): New
6332         'build-id' attribute.
6333
6334 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6335             Jan Kratochvil  <jan.kratochvil@redhat.com>
6336
6337         Move linux_find_memory_regions_full & co.
6338         * linux-tdep.c (nat/linux-maps.h): Include.
6339         (gdb_regex.h): Remove the include.
6340         (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
6341         (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
6342         (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
6343         (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
6344         * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
6345         and target/target.h.
6346         (struct smaps_vmflags, read_mapping, decode_vmflags)
6347         (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
6348         (linux_find_memory_regions_full): Move from linux-tdep.c.
6349         * nat/linux-maps.h (read_mapping): New declaration.
6350         (linux_find_memory_region_ftype, enum filterflags): Moved from
6351         linux-tdep.c.
6352         (linux_find_memory_regions_full): New declaration.
6353         * target.c (target/target-utils.h): Include.
6354         (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
6355         (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
6356         definitions to target/target-utils.c.
6357         * target.h (target_fileio_read_stralloc): Move it to target/target.h.
6358         * target/target-utils.c (read_alloc, read_stralloc): Move definitions
6359         from target.c.
6360         * target/target-utils.h (read_alloc_pread_ftype): New typedef.
6361         (read_alloc): New declaration.
6362         (read_stralloc_func_ftype): New typedef.
6363         (read_stralloc): New declaration.
6364         * target/target.h (target_fileio_read_stralloc): Move it from target.h.
6365
6366 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6367             Jan Kratochvil  <jan.kratochvil@redhat.com>
6368
6369         Prepare linux_find_memory_regions_full & co. for move.
6370         * linux-tdep.c (linux_find_memory_region_ftype): Comment.
6371         (linux_find_memory_regions_full): Change signature and prepare
6372         for moving to linux-maps.
6373         (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
6374         (linux_find_memory_regions_thunk): New.
6375         (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
6376         (linux_find_memory_regions_gdb): New.
6377         (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
6378         (linux_make_mappings_corefile_notes): Use
6379         linux_find_memory_regions_gdb.
6380         * target.c (read_alloc_pread_ftype): New typedef.
6381         (target_fileio_read_alloc_1_pread): New function.
6382         (read_alloc): Refactor from target_fileio_read_alloc_1.
6383         (read_stralloc_func_ftype): New typedef.
6384         (target_fileio_read_alloc_1): New implementation. Use read_alloc.
6385         (read_stralloc): Refactored from target_fileio_read_stralloc.
6386         (target_fileio_read_stralloc): New implementation, use read_stralloc.
6387
6388 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6389
6390         * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
6391         common/gdb_regex.h.
6392         (COMMON_OBS): Add gdb_regex.o.
6393         (gdb_regex.o): New.
6394         * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
6395         --without-included-regex and USE_INCLUDED_REGEX.
6396         * common/gdb_regex.c: New file from utils.c functions.
6397         * common/gdb_regex.h: Move it here from gdb_regex.h, update include
6398         file wrapping define name.
6399         * configure: Rebuilt.
6400         * configure.ac (gdb_use_included_regex, --without-included-regex)
6401         (USE_INCLUDED_REGEX): Move them to common/common.m4.
6402         * gdb_regex.h: Move it to common/gdb_regex.h.
6403         * utils.c: Remove include gdb_regex.h.
6404         (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
6405         (compile_rx_or_error): Move them to common/gdb_regex.c.
6406
6407 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6408             Jan Kratochvil  <jan.kratochvil@redhat.com>
6409
6410         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6411         * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
6412         common/target-utils.h.
6413         (COMMON_OBS): Add target-utils.o.
6414         (linux-maps.o, target-utils.o): New.
6415         * target/target-utils.c: New file.
6416         * target/target-utils.h: New file.
6417         * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
6418         * config/i386/linux64.mh (NATDEPFILES): Ditto.
6419         * nat/linux-maps.c: New file.
6420         * nat/linux-maps.h: New file.
6421
6422 2015-07-15  Markus Metzger  <markus.t.metzger@intel.com>
6423             Pedro Alves <palves@redhat.com>
6424
6425         * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
6426         (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
6427         (perf_event_read_bts): Change the type of SIZE and READ.
6428         (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
6429         and DATA_OFFSET.  Move DATA_SIZE declaration.  Restrict the buffer size
6430         to UINT_MAX.  Check for overflows when using DATA_HEAD from the perf
6431         mmap page.
6432         (linux_enable_pt): Change the type of PAGES and SIZE.  Restrict the
6433         buffer size to UINT_MAX.
6434         (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
6435         DATA_TAIL.
6436         * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
6437         <last_head>: Change type.
6438         * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
6439         * common/btrace-common.c (btrace_data_append): Change the type of
6440         SIZE.
6441         * btrace.c (parse_xml_raw): Change the type of SIZE.  Change oddness
6442         check.
6443
6444 2015-07-14  Simon Marchi  <simon.marchi@ericsson.com>
6445
6446         * gdbtypes.h (CHECK_TYPEDEF): Remove.
6447         * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
6448         with check_typedef.
6449         * ada-lang.c (decode_constrained_packed_array_type): Likewise.
6450         (ada_array_length): Likewise.
6451         (find_parallel_type_by_descriptive_type): Likewise.
6452         (ada_check_typedef): Likewise.
6453         * arm-tdep.c (arm_return_in_memory): Likewise.
6454         * ax-gdb.c (gen_trace_static_fields): Likewise.
6455         (gen_struct_ref_recursive): Likewise.
6456         * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6457         (variable: block COLONCOLON name): Likewise.
6458         (qualified_name: TYPENAME COLONCOLON name): Likewise.
6459         * c-lang.c (classify_type): Likewise.
6460         * c-typeprint.c (c_print_type): Likewise.
6461         (c_print_typedef): Likewise.
6462         (c_type_print_base): Likewise.
6463         * c-valprint.c (c_val_print): Likewise.
6464         * compile/compile-c-types.c (convert_type): Likewise.
6465         * compile/compile-object-load.c (get_out_value_type): Likewise.
6466         * completer.c (add_struct_fields): Likewise.
6467         (expression_completer): Likewise.
6468         * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
6469         (cp_lookup_nested_symbol_1): Likewise.
6470         (cp_lookup_nested_symbol): Likewise.
6471         * cp-valprint.c (cp_print_value_fields): Likewise.
6472         (cp_print_static_field): Likewise.
6473         * d-valprint.c (d_val_print): Likewise.
6474         * eval.c (evaluate_subexp_standard): Likewise.
6475         (evaluate_subexp_for_sizeof): Likewise.
6476         * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6477         * f-typeprint.c (f_type_print_base): Likewise.
6478         * f-valprint.c (f_val_print): Likewise.
6479         * gdbtypes.c (get_discrete_bounds): Likewise.
6480         (create_array_type_with_stride): Likewise.
6481         (type_name_no_tag_or_error): Likewise.
6482         (lookup_struct_elt_type): Likewise.
6483         (get_unsigned_type_max): Likewise.
6484         (internal_type_vptr_fieldno): Likewise.
6485         (set_type_vptr_fieldno): Likewise.
6486         (internal_type_vptr_basetype): Likewise.
6487         (set_type_vptr_basetype): Likewise.
6488         (get_vptr_fieldno): Likewise.
6489         (is_integral_type): Likewise.
6490         (is_scalar_type): Likewise.
6491         (is_scalar_type_recursive): Likewise.
6492         (distance_to_ancestor): Likewise.
6493         (is_unique_ancestor_worker): Likewise.
6494         (check_types_equal): Likewise.
6495         * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
6496
6497 2015-07-14  Iain Buclaw  <ibuclaw@gdcproject.org>
6498
6499         * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
6500         also test for language_d.
6501         (dwarf2_compute_name): Likewise.
6502         (read_func_scope): Likewise.
6503         (read_structure_type): Likewise.
6504         (new_symbol_full): Likewise.
6505         (determine_prefix): Likewise.
6506         (read_import_statement): Use dot as the separator for language_d.
6507         (typename_concat): Likewise, but don't prefix the D main function.
6508
6509 2015-07-14  Peter Bergner  <bergner@vnet.ibm.com>
6510
6511         * nat/linux-namespaces.c (setns): Rename from this ...
6512         (do_setns): ... to this.  Support calling setns if it exists.
6513         (mnsh_handle_setns): Call do_setns.
6514
6515 2015-07-13  Yao Qi  <yao.qi@linaro.org>
6516
6517         * exec.c (exec_file_attach): Add period at the end of error
6518         message.
6519
6520 2015-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
6521
6522         * tui/tui-win.c (window_name_completer): New function.
6523         (focus_completer): Call window_name_completer.  All old content
6524         moved into window_name_completer.
6525         (winheight_completer): New function.
6526         (_initialize_tui_win): Rename variable.  Add completer to
6527         winheight command.  Update doc string on winheight.
6528
6529 2015-07-12  Sandra Loosemore  <sandra@codesourcery.com>
6530
6531         * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
6532         all nios2 mach variants.
6533
6534 2015-07-10  Kevin Buettner  <kevinb@redhat.com>
6535
6536         * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
6537         of target_read_memory.
6538
6539 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6540
6541         * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
6542         string copy.
6543         (parse_scrolling_args): Likewise.
6544
6545 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6546
6547         * tui/tui-win.c (focus_completer): Don't duplicate the tui window
6548         names in this function.
6549
6550 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6551
6552         * tui/tui-data.h (SRC_NAME): Convert to lower case.
6553         (CMD_NAME): Likewise.
6554         (DATA_NAME): Likewise.
6555         (DISASSEM_NAME): Likewise.
6556         * tui/tui-win.c (tui_set_focus): Window names are now lower case.
6557         (tui_set_win_height): Likewise.
6558         (parse_scrolling_args): Likewise.
6559
6560 2015-07-10  Markus Metzger  <markus.t.metzger@intel.com>
6561
6562         * record-btrace.c (record_btrace_goto_begin)
6563         (record_btrace_goto_end, record_btrace_goto): Move call to
6564         print_stack_frame ...
6565         (record_btrace_set_replay): ... here.  Set stop_pc.
6566         * record-full.c (record_full_goto_entry): Set stop_pc.
6567
6568 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6569
6570         * NEWS: Mention support for tracepoints on aarch64-linux.
6571
6572 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6573
6574         * linux-aarch64-low.c (aarch64_supports_tracepoints): New
6575         function.  Return 1.
6576         (the_low_target): Install it.
6577
6578 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6579
6580         * gdb.trace/backtrace.exp: Set registers for aarch64 target.
6581         * gdb.trace/collection.exp: Likewise.
6582         * gdb.trace/mi-trace-frame-collected.exp: Likewise.
6583         * gdb.trace/mi-trace-unavailable.exp: Likewise.
6584         * gdb.trace/report.exp: Likewise.
6585         * gdb.trace/trace-break.exp: Likewise.
6586         * gdb.trace/unavailable.exp: Likewise.
6587         * gdb.trace/while-dyn.exp: Likewise.
6588
6589 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6590
6591         * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
6592         (aarch64_gen_return_address): New function.
6593         (aarch64_gdbarch_init): Hook it.
6594
6595 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6596
6597         * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
6598         swallow NOT_AVAILABLE_ERROR.
6599         (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
6600         available_p is not set.
6601         (aarch64_stub_frame_unwind_stop_reason): New function.
6602         (aarch64_stub_unwind): Install it.
6603
6604 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6605
6606         * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6607         field.
6608         (aarch64_make_prologue_cache_1): New function, factored out from
6609         aarch64_make_prologue_cache.  Do not allocate cache.  Set
6610         available_p.
6611         (aarch64_make_prologue_cache): Reimplement wrapping
6612         aarch64_make_prologue_cache_1, and swallowing
6613         NOT_AVAILABLE_ERROR.
6614         (aarch64_prologue_frame_unwind_stop_reason): New function.
6615         Return UNWIND_UNAVAILABLE if available_p is not set.
6616         (aarch64_prologue_unwind): Install it.
6617         (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6618         checks into aarch64_prologue_frame_unwind_stop_reason.  Call
6619         frame_id_build_unavailable_stack if available_p is not set.
6620
6621 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6622
6623         * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6624         fields.
6625         (aarch64_scan_prologue): Set prev_pc.
6626         (aarch64_make_prologue_cache): Set func.
6627         (aarch64_make_stub_cache): Set prev_pc.
6628         (aarch64_prologue_this_id): Remove local variables id, pc and
6629         func.  Read prev_pc and func from cache.
6630         (aarch64_stub_this_id): Read prev_pc from cache.
6631
6632 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6633
6634         * aarch64-tdep.c (aarch64_make_stub_cache): Update comment.  New
6635         argument this_cache.  Remove unused local variables reg and
6636         unwound_fp.  Return early if this_cache is already set.  Set
6637         this_cache.
6638         (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6639
6640 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6641
6642         * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6643         New argument this_cache.  Return early if this_cache is already
6644         set.  Set this_cache.
6645         (aarch64_prologue_this_id): Update call to
6646         aarch64_make_prologue_cache.
6647         (aarch64_prologue_prev_register): Likewise.
6648         (aarch64_normal_frame_base): Likewise.
6649
6650 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6651
6652         * c-valprint.c (c_val_print): Factor out memberptr printing code
6653         from c_val_print to ...
6654         (c_val_print_memberptr): ... this new function.
6655
6656 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6657
6658         * c-valprint.c (c_val_print): Factor out int printing code to ...
6659         (c_val_print_int): ... this new function.
6660
6661 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6662
6663         * c-valprint.c (c_val_print): Factor out struct and union
6664         printing code to ...
6665         (c_val_print_struct): ... this new function ...
6666         (c_val_print_union): ... and this new function.
6667
6668 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6669
6670         * c-valprint.c (c_val_print): Factor out pointer printing code
6671         to ...
6672         (c_val_print_ptr): ... this new function.
6673
6674 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6675
6676         * c-valprint.c (c_valprint): Factor our array printing code from
6677         c_val_print to ...
6678         (c_val_print_array): ... this new function.
6679
6680 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6681
6682         * c-valprint.c (c_val_print): Factor out pointer printing code
6683         to ...
6684         (print_unpacked_pointer): ... this new function.
6685
6686 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6687
6688         * c-valprint.c (c_val_print): Remove an assignment to i and move
6689         its declaration.
6690
6691 2015-07-09  Yao Qi  <yao.qi@linaro.org>
6692
6693         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6694         argument ptid.  Update comments.  Caller update.
6695
6696 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
6697
6698         * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6699         mnt packets.
6700
6701 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
6702
6703         * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6704
6705 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
6706
6707         * progspace.c (delete_program_space): Add missing spaces.
6708
6709 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
6710
6711         * inferior.c (delete_inferior_1): Rename to ...
6712         (delete_inferior): ..., remove 'silent' parameter, delete
6713         program space when unused and remove call to prune_program_spaces.
6714         Remove the old, unused, delete_inferior.
6715         (delete_inferior_silent): Remove.
6716         (prune_inferiors): Change call from delete_inferior_1 to
6717         delete_inferior and remove 'silent' parameter. Remove call to
6718         prune_program_spaces.
6719         (remove_inferior_command): Idem.
6720         * inferior.h (delete_inferior_1): Rename to...
6721         (delete_inferior): ..., remove 'silent' parameter and remove the
6722         original delete_inferior.
6723         (delete_inferior_silent): Remove.
6724         * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6725         delete_inferior_1 to delete_inferior and remove 'silent'
6726         parameter.
6727         * progspace.c (prune_program_spaces): Remove.
6728         (pspace_empty_p): Rename to...
6729         (program_space_empty_p): ... and make non-static.
6730         (delete_program_space): New.
6731         * progspace.h (prune_program_spaces): Remove declaration.
6732         (program_space_empty_p): New declaration.
6733         (delete_program_space): New declaration.
6734         * monitor.c (monitor_close): Replace call to
6735         delete_thread_silent and delete_inferior_silent with
6736         discard_all_inferiors.
6737
6738 2015-07-08  Patrick Palka  <patrick@parcs.ath.cx>
6739
6740         * defs.h (deprecated_register_changed_hook): Remove prototype.
6741         * interps.c (clear_iterpreter_hooks): Remove reference to
6742         deprecated_register_changed_hook.
6743         * top.c (deprecated_register_changed_hook): Remove prototype.
6744         * valops.c (value_assign): Remove reference to
6745         deprecated_register_changed_hook.
6746         * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6747         Add comment documenting the function.
6748         (tui_register_changed_observer): Define.
6749         (tui_install_hooks): Remove reference to
6750         deprecated_register_changed_hook.  Set
6751         tui_register_changed_observer.
6752         (tui_remove_hooks): Remove reference to
6753         deprecated_register_changed_hook.  Unset
6754         tui_register_changed_observer.
6755
6756 2015-07-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
6757
6758         PR compile/18484
6759         * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6760
6761 2015-07-08  Robert O'Callahan  <robert@ocallahan.org>
6762
6763         PR exp/18617
6764         * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6765
6766 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6767
6768         * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6769
6770 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6771
6772         * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6773         Use safe_strerror() instead of strerror().
6774
6775 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6776
6777         * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6778         * features/arm-with-m-fpa-layout.c: Regenerated.
6779         * features/arm-with-m-vfp-d16.xml: Likewise.
6780         * features/arm-with-m-vfp-d16.c: Regenerated.
6781         * features/arm-with-m.xml: Likewise.
6782         * features/arm-with-m.c: Regenerated.
6783         * features/arm-with-neon.xml: Likewise.
6784         * features/arm-with-neon.c: Regenerated.
6785         * features/arm-with-vfpv2.xml: Likewise.
6786         * features/arm-with-vfpv2.c: Regenerated.
6787         * features/arm-with-vfpv3.xml: Likewise.
6788         * features/arm-with-vfpv3.c: Regenerated.
6789
6790 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6791
6792         * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6793         arm-linux-nat.c.
6794         * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6795         elf/external.h.
6796         (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6797         if target is 32-bit.
6798         (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6799         if target is 32-bit.
6800         (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6801         if target is 32-bit.
6802         (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6803         if target is 32-bit.
6804         (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6805         (aarch64_linux_read_description): Return the right target
6806         description.
6807         * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6808         * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6809         * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6810         arm-linux-tdep.o.
6811
6812 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6813
6814         * aarch32-linux-nat.c: New file.
6815         * aarch32-linux-nat.h: New file.
6816         * arm-linux-nat.c: Include aarch32-linux-nat.h.
6817         (fetch_regs): Move code to aarch32-linux-nat.c.  Call
6818         aarch32_gp_regcache_supply.
6819         (store_regs): Move code to aarch32-linux-nat.c.  Call
6820         aarch32_gp_regcache_collect.
6821         (fetch_vfp_regs): Move code to aarch32-linux-nat.c.  Call
6822         aarch32_vfp_regcache_supply.
6823         (store_vfp_regs): Move code to aarch32-linux-nat.c.  Call
6824         aarch32_vfp_regcache_collect.
6825         * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6826
6827 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6828
6829         * arm-linux-nat.c (store_fpregister): Remove.
6830         (store_register): Likewise.
6831         (fetch_fpregister): Likewise.
6832         (fetch_register): Likewise.
6833         (arm_linux_store_inferior_registers): Call store_regs and
6834         store_fpregs instead.
6835         (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6836         fetch_regs instead.
6837
6838 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6839
6840         * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6841         and focus commands.
6842
6843 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
6844
6845         * NEWS: Create a new section for the next release branch.
6846         Rename the section of the current branch, now that it has
6847         been cut.
6848
6849 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
6850
6851         GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6852         * version.in: Bump version to 7.10.50.DATE-cvs.
6853
6854 2015-07-06  Luis Machado  <lgustavo@codesourcery.com>
6855
6856         * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6857         breakpoints in a special way.
6858         (remove_breakpoint): Likewise.
6859         (mark_breakpoints_out): Likewise.
6860
6861 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6862
6863         * doc/gdb.texinfo (TUI): Add comma after @xref.
6864
6865 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6866
6867         * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6868         instead of casting the structure type.
6869
6870 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
6871
6872         * valops.c (search_struct_field): Remove OFFSET parameter.
6873         (value_cast_structs): Adjust calls to search_struct_field.
6874         (value_struct_elt): Same.
6875         (find_overload_match): Same.
6876
6877 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
6878
6879         * value.c (value_fetch_lazy): Update comment, change return
6880         value to void.
6881         * value.h (value_fetch_lazy): Change return value to void.
6882
6883 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6884
6885         * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6886         (tui_win_name): Make parameter and result const.
6887         * tui/tui-data.h (tui_win_name): Make parameter and result const.
6888
6889 2015-07-06  Patrick Palka  <patrick@parcs.ath.cx>
6890
6891         * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6892         use printf_unfiltered.
6893         (set_mpx_cmd): Add missing trailing space to command string
6894         literal.
6895         (_initialize_i386_tdep): Give the "mpx" prefix command its
6896         correct name.
6897
6898 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
6899
6900         * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6901         (enum rx_frame_type): New.
6902         (struct rx_prologue): Add new field `frame_type'.
6903         (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6904         parameter in the prologue struct.  Add code for recording
6905         locations of PC and PSW for fast interrupt and exception frames.
6906         (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6907         (rx_analyze_frame_prologue): Add `frame_type' parameter.
6908         (rx_frame_type): New function.
6909         (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6910         (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6911         `this_cache'.
6912         (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
6913         `this_cache'.  Add cases for RX_FRAME_TYPE_EXCEPTION and
6914         RX_FRAME_TYPE_FAST_INTERRUPT.
6915         (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6916         (rx_frame_sniffer, rx_exception_sniffer): New functions.
6917         (rx_frame_unwind): Use rx_frame_sniffer instead of
6918         default_frame_sniffer.
6919         (rx_frame_unwind): New unwinder.
6920         (rx_gdbarch_init): Register new unwinder.
6921
6922 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
6923
6924         * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6925         (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6926         (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6927         and RX_FPSW_REGNUM.
6928         (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6929
6930 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6931
6932         Fix GCC false warning.
6933         * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6934
6935 2015-07-02  Yao Qi  <yao.qi@linaro.org>
6936
6937         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6938         typo in the debugging message.
6939
6940 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6941
6942         * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6943         (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6944         (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6945         (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6946         (btrace_maint_clear): New.
6947         (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6948         (pt_print_packet, btrace_maint_decode_pt)
6949         (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6950         (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6951         (maint_btrace_packet_history_cmd)
6952         (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6953         (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6954         (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6955         (maint_info_btrace_cmd, _initialize_btrace): New.
6956         * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6957         (btrace_maint_packet_history, btrace_maint_info): New.
6958         (btrace_thread_info) <maint>: New.
6959         * NEWS: Announce it.
6960
6961 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6962
6963         * btrace.c (btrace_fetch): Append the new trace data.
6964         (btrace_clear): Clear the stored trace data.
6965         * btrace.h (btrace_thread_info) <data>: New.
6966         * common/btrace-common.h (btrace_data_clear)
6967         (btrace_data_append): New.
6968         * common/btrace-common.c (btrace_data_clear)
6969         (btrace_data_append): New.
6970
6971 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6972
6973         * nat/linux-btrace.c (linux_enable_bts): Check for
6974         PERF_ATTR_SIZE_VER5.
6975         Check for data_offset and data_size fields.  Use them.
6976
6977 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6978
6979         * NEWS: Announce new commands "record btrace pt" and "record pt".
6980         Announce new options "set|show record btrace pt buffer-size".
6981         * btrace.c: Include "rsp-low.h".
6982         Include "inttypes.h".
6983         (btrace_add_pc): Add forward declaration.
6984         (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6985         (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6986         (btrace_compute_ftrace_pt): New.
6987         (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6988         (check_xml_btrace_version): Update version check.
6989         (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6990         (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6991         (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6992         (btrace_pt_children): New.
6993         (btrace_children): Add support for "pt".
6994         (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6995         (btrace_conf_children): Add support for "pt".
6996         * btrace.h: Include "intel-pt.h".
6997         (btrace_pt_error): New.
6998         * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6999         (btrace_data_empty): Support BTRACE_FORMAT_PT.
7000         * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
7001         (struct btrace_config_pt): New.
7002         (struct btrace_config)<pt>: New.
7003         (struct btrace_data_pt_config, struct btrace_data_pt): New.
7004         (struct btrace_data)<pt>: New.
7005         * features/btrace-conf.dtd (btrace-conf)<pt>: New.
7006         (pt): New.
7007         * features/btrace.dtd (btrace)<pt>: New.
7008         (pt, pt-config, cpu): New.
7009         * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
7010         (perf_event_pt_event_type, kernel_supports_pt)
7011         (linux_supports_pt): New.
7012         (linux_supports_btrace): Support BTRACE_FORMAT_PT.
7013         (linux_enable_bts): Free tinfo on error.
7014         (linux_enable_pt): New.
7015         (linux_enable_btrace): Support BTRACE_FORMAT_PT.
7016         (linux_disable_pt): New.
7017         (linux_disable_btrace): Support BTRACE_FORMAT_PT.
7018         (linux_fill_btrace_pt_config, linux_read_pt): New.
7019         (linux_read_btrace): Support BTRACE_FORMAT_PT.
7020         * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
7021         (struct btrace_target_info)<pt>: New.
7022         * record-btrace.c (set_record_btrace_pt_cmdlist)
7023         (show_record_btrace_pt_cmdlist): New.
7024         (record_btrace_print_pt_conf): New.
7025         (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
7026         (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
7027         (cmd_record_btrace_pt_start): New.
7028         (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
7029         (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
7030         (_initialize_record_btrace): Add new commands.
7031         * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
7032         (remote_protocol_features): Add "Qbtrace:pt".
7033         Add "Qbtrace-conf:pt:size".
7034         (remote_supports_btrace): Support BTRACE_FORMAT_PT.
7035         (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
7036         (remote_enable_btrace): Support BTRACE_FORMAT_PT.
7037         (_initialize_remote): Add new commands.
7038
7039 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
7040
7041         * configure.ac: check for libipt
7042         * configure: Regenerate.
7043         * config.in: Regenerate.
7044         * Makefile.in (LIBIPT): New.
7045         (CLIBS): Add $LIBIPT.
7046         * NEWS: document new configure options
7047
7048 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7049
7050         * compile/compile-object-load.c (compile_object_load): Replace debug
7051         message "lookup undefined ELF symbol" by 3 more specific messages.
7052
7053 2015-07-01  Kevin Buettner  <kevinb@redhat.com>
7054
7055         * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
7056         (rl78_register_type): Add case for RL78_PSW_REGNUM.
7057         (rl78_gdbarch_init): Initialize rl78_psw_type.
7058
7059 2015-07-01  Patrick Palka  <patrick@parcs.ath.cx>
7060
7061         * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
7062         Update commentary.  Always refresh the registers when frame
7063         information has changed.
7064         * tui/tui-stack.c (tui_show_frame_info): Update commentary.
7065         Change return type to int.  Return 1 if frame information has
7066         changed, 0 otherwise.
7067         (tui_before_prompt): Update commentary.
7068         * tui/tui-stack.h (tui_show_frame_info): Change return type to
7069         int.
7070
7071 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
7072
7073         PR tui/13378
7074         * frame.c (select_frame): Remove reference to
7075         deprecated_selected_frame_level_changed_hook.
7076         * frame.h (deprecated_selected_frame_level_changed_hook): Remove
7077         declaration.
7078         * stack.c (deprecated_selected_frame_level_changed_hook):
7079         Likewise.
7080         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
7081         Rename to ...
7082         (tui_refresh_frame_and_register_information): ... this.  Bail
7083         out if there is no stack.  Don't update register information
7084         unless registers_too_p is true.
7085         (tui_print_frame_info_listing_hook): Rename to ...
7086         (tui_dummy_print_frame_info_listing_hook): ... this.
7087         (tui_before_prompt): New function.
7088         (tui_normal_stop): New function.
7089         (tui_before_prompt_observer): New observer.
7090         (tui_normal_stop_observer): New observer.
7091         (tui_install_hooks): Set
7092         deprecated_print_frame_info_listing_hook to
7093         tui_dummy_print_frame_info_listing_hook.  Register
7094         tui_before_prompt_observer to call tui_before_prompt and
7095         tui_normal_stop_observer to call tui_normal_stop.  Remove
7096         reference to deprecated_selected_frame_level_changed_hook.
7097         (tui_remove_hooks): Detach and unset tui_before_prompt_observer
7098         and tui_normal_stop_observer.  Remove reference to
7099         deprecated_selected_frame_level_changed_hook.
7100
7101 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
7102
7103         PR tui/13378
7104         * tui/tui-stack.c (tui_set_locator_info): Change prototype to
7105         return an int instead of void.  Return whether the locator
7106         window has changed.
7107         (tui_show_frame_info): If the locator info has not changed, then
7108         bail out early to avoid refreshing the windows.
7109
7110 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
7111
7112         * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
7113         LOCATOR_WIN to tui_alloc_content.
7114
7115 2015-06-30  Yao Qi  <yao.qi@linaro.org>
7116
7117         PR tdep/18605
7118         * arm-tdep.c (arm_get_next_pc_raw): Break for media
7119         instructions.
7120
7121 2015-06-29  Kevin Buettner  <kevinb@redhat.com>
7122
7123         * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
7124         (rx_dwarf_reg_to_regnum): New function.
7125         (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum.  Use dwarf2
7126         unwinding.
7127
7128 2015-06-29  Pedro Alves  <palves@redhat.com>
7129
7130         PR threads/18127
7131         * infcall.c (run_inferior_call): On infcall success, if the thread
7132         was marked stopped before, reset it back to stopped.
7133         * infrun.c (resume): Don't suppress the set_running calls when
7134         doing an infcall.
7135         (normal_stop): Only discard the finish_thread_state cleanup if the
7136         infcall succeeded.
7137
7138 2015-06-29  Pierre Langlois  <pierre.langlois@arm.com>
7139
7140         * MAINTAINERS (Write After Approval): Update my email address.
7141
7142 2015-06-26  Keith Seitz  <keiths@redhat.com>
7143             Doug Evans  <dje@google.com>
7144
7145         PR 16253
7146         * block.c (block_lookup_symbol): For non-function blocks,
7147         continue to search for a symbol with an exact domain match
7148         Otherwise, return any previously found "best domain" symbol.
7149         (block_lookup_symbol_primary): Likewise.
7150
7151 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
7152
7153         * NEWS: Mention the new option "history remove-duplicates".
7154         * top.c (history_remove_duplicates): New static variable.
7155         (show_history_remove_duplicates): New static function.
7156         (gdb_add_history): Conditionally remove duplicate history
7157         entries.
7158         (init_main): Add "history remove-duplicates" option.
7159
7160 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
7161
7162         * tui/tui-win.c (focus_completer): New static function.
7163         (_initialize_tui_win): Set the completion function of the
7164         "focus" command to focus_completer.
7165
7166 2015-06-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
7167
7168         * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
7169         and language_asm..
7170         * symtab.c (find_function_start_sal): Likewise.
7171
7172 2015-06-25  Gary Benson  <gbenson@redhat.com>
7173
7174         * solib.c (solib_find_1): Set local variable sysroot to NULL if
7175         it is the empty string after trailing slashes have been stripped.
7176
7177 2015-06-25  Gary Benson  <gbenson@redhat.com>
7178
7179         * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
7180         * infrun.c (follow_exec): Likewise.
7181         * remote.c (remote_filesystem_is_local): Likewise.
7182         * solib.c (solib_find_1): Likewise.
7183
7184 2015-06-24  Keith Seitz  <keiths@redhat.com>
7185
7186         * build-id.c (build_id_to_debug_bfd): Add cleanup to free
7187         return value from lrealpath.
7188
7189 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
7190
7191         * remote-sim.c (gdbsim_open): Move sysroot update to the top.
7192
7193 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
7194
7195         * remote-sim.c: Include gdb_bfd.h.
7196         (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
7197         Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
7198
7199 2015-06-24  Yao Qi  <yao.qi@linaro.org>
7200
7201         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
7202         set_gdbarch_get_siginfo_type.
7203         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
7204         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
7205         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
7206         * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
7207         * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
7208         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7209         * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
7210         * linux-tdep.c (linux_get_siginfo_type): Change it to static.
7211         (linux_init_abi): Call set_gdbarch_get_siginfo_type.
7212         * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
7213
7214 2015-06-24  Gary Benson  <gbenson@redhat.com>
7215
7216         * common/buffer.c (stdint.h): Do not include.
7217         * common/print-utils.c (stdint.h): Likewise.
7218         * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
7219         * compile/compile-c-types.c (gdb_assert.h): Likewise.
7220         * ft32-tdep.c (gdb_assert.h): Likewise.
7221         * guile/scm-utils.c (stdint.h): Likewise.
7222         * i386-linux-tdep.c (stdint.h): Likewise.
7223         * i386-tdep.c (stdint.h): Likewise.
7224         * nat/linux-btrace.c (stdint.h): Likewise.
7225         * nat/linux-btrace.h (stdint.h): Likewise.
7226         * nat/linux-ptrace.c (stdint.h): Likewise.
7227         * nat/mips-linux-watch.h (stdint.h): Likewise.
7228         * ppc-linux-nat.c (stdint.h): Likewise.
7229         * python/python-internal.h (stdint.h): Likewise.
7230         * stub-termcap.c (stdlib.h): Likewise.
7231         * target/target.h (stdint.h): Likewise.
7232         * xtensa-linux-nat.c (stdint.h): Likewise.
7233
7234 2015-06-23  Patrick Palka  <patrick@parcs.ath.cx>
7235
7236         * top.c (init_history): Look at errno after calling strtol to
7237         properly map large GDBHISTSIZE values to infinity.
7238
7239 2015-06-23  Doug Evans  <dje@google.com>
7240
7241         * inferior.h (struct inferior_suspend_state): Delete, unused.
7242         All references deleted.
7243
7244 2015-06-23  Mike Frysinger  <vapier@gentoo.org>
7245
7246         * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
7247         (microblaze_push_dummy_call): Likewise.
7248         (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
7249         and set_gdbarch_push_dummy_call.
7250
7251 2015-06-23  Yao Qi  <yao.qi@linaro.org>
7252
7253         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
7254         Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
7255         (amd64_linux_store_inferior_registers): Likewise.
7256         * arm-linux-nat.c (fetch_fpregister): Likewise.
7257         (fetch_fpregs, store_fpregister): Likewise.
7258         (store_fpregister, store_fpregs): Likewise.
7259         (fetch_register, fetch_regs): Likewise.
7260         (store_register, store_regs): Likewise.
7261         (fetch_vfp_regs, store_vfp_regs): Likewise.
7262         (arm_linux_read_description): Check have_ptrace_getregset is
7263         TRIBOOL_UNKNOWN.  Set have_ptrace_getregset to TRIBOOL_TRUE
7264         or TRIBOOL_FALSE.
7265         * i386-linux-nat.c (fetch_xstateregs): Check
7266         have_ptrace_getregset is not TRIBOOL_TRUE.
7267         (store_xstateregs): Likewise.
7268         * linux-nat.c (have_ptrace_getregset): Change its type to
7269         enum tribool.
7270         * linux-nat.h (tribool): New enum.
7271         * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
7272         Check whether have_ptrace_getregset is TRIBOOL_TRUE.
7273
7274 2015-06-19  Doug Evans  <dje@google.com>
7275
7276         * NEWS: Mention Sun's version of stabs is no longer supported.
7277         * elfread.c (free_elfinfo): Delete.  All uses updated.
7278         (elfstab_offset_sections): Delete.  All uses updated.
7279         * gdb-stabs.h (stab_section_info): Delete.  All uses updated.
7280         * psympriv.h (partial_symtab) <section_offsets>: Delete.
7281         All uses updated.
7282         * psymtab.c (start_psymtab_common): Delete arg section_offsets.
7283         All callers updated.
7284
7285 2015-06-18  Simon Marchi  <simon.marchi@ericsson.com>
7286
7287         * common/rsp-low.c (needs_escaping): New.
7288         (remote_escape_output): Add unit_size parameter. Refactor to
7289         support multi-byte addressable units.  Rename parameters.
7290         * common/rsp-low.h (remote_escape_output): Add unit_size
7291         parameter and rename others. Update doc.
7292         * remote.c (align_for_efficient_write): New.
7293         (remote_write_bytes_aux): Add unit_size parameter and use it.
7294         Rename some variables.  Update doc.
7295         (remote_xfer_partial): Get unit size and use it.
7296         (remote_read_bytes_1): Add unit_size parameter and use it.
7297         Rename some variables. Update doc.
7298         (remote_write_bytes): Same.
7299         (remote_xfer_live_readonly_partial): Same.
7300         (remote_read_bytes): Same.
7301         (remote_flash_write): Update call to remote_write_bytes_aux.
7302         (remote_write_qxfer): Update call to remote_escape_output.
7303         (remote_search_memory): Same.
7304         (remote_hostio_pwrite): Same.
7305
7306 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
7307
7308         * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
7309         locations as inserted.
7310         Update and expand comment about permanent locations.
7311         (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
7312         Move comment to add_location_to_breakpoint.
7313         (update_global_location_list): Don't error out if a permanent
7314         breakpoint is not marked inserted.
7315         Don't error out if a non-permanent breakpoint location is inserted on
7316         top of a permanent breakpoint.
7317
7318 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
7319
7320         * breakpoint.c (make_breakpoint_permanent): Remove unused
7321         function.
7322         * breakpoint.h (make_breakpoint_permanent): Remove declaration.
7323
7324 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
7325
7326         PR gdb/16999
7327         * NEWS: Mention new GDBHISTSIZE behavior.
7328         * top.c (init_history): For null or out-of-range GDBHISTSIZE,
7329         set history size to unlimited.  Ignore non-numeric GDBHISTSIZE.
7330
7331 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
7332
7333         * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
7334         * top.c (init_history): Read from GDBHISTSIZE instead of
7335         HISTSIZE.
7336         (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
7337
7338 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
7339
7340         * top.c (gdb_safe_append_history): Do not call
7341         history_truncate_file if the history is not stifled.
7342
7343 2015-06-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7344
7345         * syscalls/s390-linux.xml: Add syscalls 344 through 354.
7346         * syscalls/s390x-linux.xml: Likewise.
7347
7348 2015-06-16  Michael Eager  <eager@eagercon.com>
7349
7350         * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
7351
7352 2015-06-16  Patrick Palka  <patrick@parcs.ath.cx>
7353
7354         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
7355         target_terminal_ours_for_output() before calling
7356         tui_show_frame_info(), and restore the original terminal
7357         settings afterwards.
7358
7359 2015-06-16  Martin Simmons  <martin@lispworks.com>  (tiny patch)
7360
7361         * arm-linux-nat.c: Include nat/linux-ptrace.h.
7362
7363 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
7364
7365         * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
7366         memory unit size.
7367         (mi_cmd_data_write_memory_bytes): Same.
7368
7369 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
7370
7371         * corefile.c (write_memory): Update doc.
7372         * gdbcore.h (write_memory): Same.
7373
7374 2015-06-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
7375
7376         * linux-tdep.c (enum filterflags): Make it from anonymous enum.
7377         (dump_mapping_p): Use it for parameter filterflags.
7378         (linux_find_memory_regions_full): Use it for variable filterflags.
7379
7380 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
7381             Jan Kratochvil  <jan.kratochvil@redhat.com>
7382
7383         Merge multiple hex conversions.
7384         * monitor.c: Include rsp-low.h.
7385         (fromhex): Remove definition.
7386
7387 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
7388             Jan Kratochvil  <jan.kratochvil@redhat.com>
7389
7390         Move utility functions to common/.
7391         * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
7392         Move defs to common/common-utils.c.
7393         * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
7394         (skip_to_space_const): Move decls to common/common-utils.h.
7395         * common/common-defs.h: Move include of common-types.h before
7396         common-utils.h.
7397         * common/common-utils.c: Include host-defs.h and ctype.h.
7398         (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
7399         from utils.c.
7400         (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
7401         cli/cli-utils.c.
7402         * common/common-utils.h (strtoulst): Move decl from utils.h.
7403         (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
7404         Move from cli/cli-utils.h.
7405         * common/host-defs.h: Include limits.h.
7406         (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
7407         (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
7408         * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
7409         common/common-utils.h.
7410         * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
7411         (strtoulst): Move to common/common-utils.c.
7412         * utils.h (strtoulst): Moved decl to common/common-utils.h.
7413
7414 2015-06-15  Yao Qi  <yao.qi@linaro.org>
7415
7416         * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
7417
7418 2015-06-10  Jon Turney  <jon.turney@dronecode.org.uk>
7419
7420         * build-id.c: Don't include elf-bfd.h.
7421         (build_id_bfd_get): Use bfd_build_id.
7422         (build_id_verify): Ditto.
7423         * build-id.h: Ditto.
7424         (find_separate_debug_file_by_buildid): Ditto.
7425         * python/py-objfile.c: Don't include elf-bfd.h.
7426         (objfpy_get_build_id) Use bfd_build_id.
7427         (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
7428         * coffread.c: Include build-id.h.
7429         (coff_symfile_read): Try find_separate_debug_file_by_buildid.
7430
7431 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7432
7433         * windows-nat.c (do_windows_fetch_inferior_registers)
7434         (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
7435         conditional with __CYGWIN__.
7436
7437 2015-06-13  Andrew Burgess  <andrew.burgess@embecosm.com>
7438
7439         * completer.c: Add arch-utils.h include.
7440         (enum reg_completer_targets): New enum.
7441         (reg_or_group_completer_1): New function containing old
7442         reg_or_group_completer, add and use new parameter to control what
7443         is completed on.  Use get_current_arch rather than architecture of
7444         currently selected frame.
7445         (reg_or_group_completer): Call new reg_or_group_completer_1.
7446         (reggroup_completer): Call new reg_or_group_completer_1.
7447         * completer.h (reggroup_completer): Add declaration.
7448         * tui/tui-regs.c: Add 'completer.h' include.
7449         (tui_reg_next_command): Renamed to...
7450         (tui_reg_next): ...this.  Adjust parameters and return rather than
7451         display new group.
7452         (tui_reg_prev_command): Renamed to...
7453         (tui_reg_prev): ...this.  Adjust parameters and return rather than
7454         display new group.
7455         (tui_reg_float_command): Delete.
7456         (tui_reg_general_command): Delete.
7457         (tui_reg_system_command): Delete.
7458         (tui_reg_command): Rewrite to perform switching of register group.
7459         Add header comment.
7460         (tuireglist): Remove.
7461         (tui_reggroup_completer): New function.
7462         (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
7463         creation of 'tui reg' command.
7464         * NEWS: Add comment about 'tui reg' changes.
7465
7466 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7467
7468         * target.c (target_read): Consider addressable unit size when
7469         reading from a memory object.
7470         (read_memory_robust): Same.
7471         (read_whatever_is_readable): Same.
7472         (target_write_with_progress): Consider addressable unit size
7473         when writing to a memory object.
7474         * target.h (target_read): Update documentation.
7475         (target_write): Add documentation.
7476
7477 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7478
7479         * arch-utils.h (default_addressable_memory_unit_size): New.
7480         * arch-utils.c (default_addressable_memory_unit_size): New.
7481         * gdbarch.sh (addressable_memory_unit_size): New.
7482         * gdbarch.h: Re-generate.
7483         * gdbarch.c: Re-generate.
7484
7485 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7486
7487         * target.c (target_read): Rename variables and use
7488         TARGET_XFER_E_IO.
7489         (target_read_with_progress): Same.
7490         (read_memory_robust): Constify parameters and rename
7491         variables.
7492         (read_whatever_is_readable): Constify parameters,
7493         rename variables, adjust formatting.
7494         * target.h (read_memory_robust): Constify parameters.
7495
7496 2015-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
7497
7498         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
7499         synthetic (non-AltiVec) vector types.
7500         (ppc64_sysv_abi_return_value): Likewise.
7501
7502 2015-06-12  Antoine Tremblay  <antoine.tremblay@ericsson.com>
7503
7504         PR breakpoints/16465
7505         * breakpoint.c (create_breakpoint): Save extra_string for
7506         pending breakpoints.
7507
7508 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7509
7510         * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
7511         and bt_mask to CORE_ADDR.
7512
7513 2015-06-11  Gary Benson <gbenson@redhat.com>
7514
7515         * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
7516         (mnsh_recv_message): Likewise.
7517
7518 2015-06-11  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7519
7520         * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
7521         long long int and plongest instead of %ll.
7522
7523 2015-06-11  Gary Benson <gbenson@redhat.com>
7524
7525         * nat/linux-namespaces.c (gdb_wait.h): New include.
7526         (sys/wait.h): Do not include.
7527
7528 2015-06-10  Simon Marchi  <simon.marchi@ericsson.com>
7529
7530         * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
7531         end_sequence is true.
7532
7533 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7534
7535         Code cleanup.
7536         * solib-target.c (library_list_start_list): Use explicit NULL
7537         comparison.
7538
7539 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7540
7541         * solib-target.c (library_list_start_list): Do not dereference
7542         variable version in its initialization.  Make the VERSION check handle
7543         NULL.
7544         (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
7545
7546 2015-06-10  Gary Benson <gbenson@redhat.com>
7547
7548         * NEWS: Announce support for direct access of executable and
7549         shared library files when attaching to inferiors in containers
7550         on GNU/Linux systems.
7551
7552 2015-06-10  Gary Benson <gbenson@redhat.com>
7553
7554         * remote.c (struct remote_state) <fs_pid>: New field.
7555         (new_remote_state): Initialize the above.
7556         (PACKET_vFile_setfs): New enum value.
7557         (remote_hostio_set_filesystem): New function.
7558         (remote_hostio_open): Call the above.
7559         (remote_hostio_unlink): Likewise.
7560         (remote_hostio_readlink): Likewise.
7561         (_initialize_remote): Register new "set/show remote
7562         hostio-setfs-packet" command.
7563         * NEWS: Announce new vFile:setfs packet.
7564
7565 2015-06-10  Gary Benson <gbenson@redhat.com>
7566
7567         * linux-nat.c (nat/linux-namespaces.h): New include.
7568         (fileio.h): Likewise.
7569         (linux_nat_filesystem_is_local): New function.
7570         (linux_nat_fileio_pid_of): Likewise.
7571         (linux_nat_fileio_open): Likewise.
7572         (linux_nat_fileio_readlink): Likewise.
7573         (linux_nat_fileio_unlink): Likewise.
7574         (linux_nat_add_target): Initialize to_filesystem_is_local,
7575         to_fileio_open, to_fileio_readlink and to_fileio_unlink.
7576         (_initialize_linux_nat): New "set/show debug linux-namespaces"
7577         commands.
7578         * NEWS: Mention new "set/show debug linux-namespaces" commands.
7579
7580 2015-06-10  Gary Benson <gbenson@redhat.com>
7581
7582         * target.h (struct inferior): New forward declaration.
7583         (struct target_ops) <to_filesystem_is_local>: Update comment.
7584         (struct target_ops) <to_fileio_open>: New argument inf.
7585         Update comment.  All implementations updated.
7586         (struct target_ops) <to_fileio_unlink>: Likewise.
7587         (struct target_ops) <to_fileio_readlink>: Likewise.
7588         (target_filesystem_is_local): Update comment.
7589         (target_fileio_open): New argument inf.  Update comment.
7590         (target_fileio_unlink): Likewise.
7591         (target_fileio_readlink): Likewise.
7592         (target_fileio_read_alloc): Likewise.
7593         (target_fileio_read_stralloc): Likewise.
7594         * target.c (target_fileio_open): New argument inf.
7595         Pass inf to implementation.  Update debug printing.
7596         (target_fileio_unlink): Likewise.
7597         (target_fileio_readlink): Likewise.
7598         (target_fileio_read_alloc_1): New argument inf. Pass inf
7599         to target_fileio_open.
7600         (target_fileio_read_alloc): New argument inf. Pass inf to
7601         target_fileio_read_alloc_1.
7602         (target_fileio_read_stralloc): Likewise.
7603         * gdb_bfd.c (inferior.h): New include.
7604         (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7605         argument with new argument "inferior".  Pass inferior to
7606         target_fileio_open.
7607         (gdb_bfd_open): Supply inferior argument to
7608         gdb_bfd_iovec_fileio_open.
7609         * linux-tdep.c (linux_info_proc): Supply inf argument to
7610         relevant target_fileio calls.
7611         (linux_find_memory_regions_full): Likewise.
7612         (linux_fill_prpsinfo): Likewise.
7613         * remote.c (remote_filesystem_is_local): Supply inf
7614         argument to remote_hostio_open.
7615         (remote_file_put): Likewise.
7616         (remote_file_get): Likewise.
7617         (remote_file_delete): Supply inf argument to
7618         remote_hostio_unlink.
7619
7620 2015-06-10  Gary Benson <gbenson@redhat.com>
7621
7622         * inf-child.c (inf_child_fileio_open): Replace comment.
7623         (inf_child_fileio_pwrite): Likewise.
7624         (inf_child_fileio_pread): Likewise.
7625         (inf_child_fileio_fstat): Insert blank line before comment.
7626         (inf_child_fileio_close): Replace comment.
7627         (inf_child_fileio_unlink): Likewise.
7628         (inf_child_fileio_readlink): Likewise.
7629         * remote.c (remote_hostio_open): Likewise.
7630         (remote_hostio_pread): Likewise.
7631         (remote_hostio_pwrite): Likewise.
7632         (remote_hostio_close): Likewise.
7633         (remote_hostio_unlink): Likewise.
7634         (remote_hostio_readlink): Likewise.
7635         (remote_hostio_fstat): Likewise.
7636         (remote_filesystem_is_local): Likewise.
7637         * target.c (target_fileio_open): Likewise.
7638         (target_fileio_pwrite): Likewise.
7639         (target_fileio_pread): Likewise.
7640         (target_fileio_fstat): Insert blank line before comment.
7641         (target_fileio_close): Replace comment.
7642         (target_fileio_unlink): Likewise.
7643         (target_fileio_readlink): Likewise.
7644         (target_fileio_read_alloc): Likewise.
7645         (target_fileio_read_stralloc): Likewise.
7646
7647 2015-06-10  Gary Benson <gbenson@redhat.com>
7648
7649         * linux-thread-db.c (nat/linux-namespaces.h): New include.
7650         (check_pid_namespace_match): Use linux_ns_same rather than
7651         linux_proc_pid_get_ns to spot PID namespace mismatches.
7652         * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7653         * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7654
7655 2015-06-10  Gary Benson <gbenson@redhat.com>
7656
7657         * configure.ac (AC_CHECK_FUNCS): Add setns.
7658         * config.in: Regenerate.
7659         * configure: Likewise.
7660         * nat/linux-namespaces.h: New file.
7661         * nat/linux-namespaces.c: Likewise.
7662         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7663         (linux-namespaces.o): New rule.
7664         * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7665         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7666         * config/arm/linux.mh (NATDEPFILES): Likewise.
7667         * config/i386/linux.mh (NATDEPFILES): Likewise.
7668         * config/i386/linux64.mh (NATDEPFILES): Likewise.
7669         * config/ia64/linux.mh (NATDEPFILES): Likewise.
7670         * config/m32r/linux.mh (NATDEPFILES): Likewise.
7671         * config/m68k/linux.mh (NATDEPFILES): Likewise.
7672         * config/mips/linux.mh (NATDEPFILES): Likewise.
7673         * config/pa/linux.mh (NATDEPFILES): Likewise.
7674         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7675         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7676         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7677         * config/s390/linux.mh (NATDEPFILES): Likewise.
7678         * config/sparc/linux.mh (NATDEPFILES): Likewise.
7679         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7680         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7681         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7682
7683 2015-06-10  Gary Benson <gbenson@redhat.com>
7684
7685         * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7686         * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7687         (make_cleanup_close): Likewise.
7688         * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7689         * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7690         (make_cleanup_close): Likewise.
7691
7692 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7693
7694         * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7695         from SuspendThread().
7696
7697 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7698
7699         * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7700         from OutputDebugString.
7701
7702 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7703                         Mircea Gherzan  <mircea.gherzan@intel.com>
7704
7705         * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7706         MPX_BT_MASK_32): New macros.
7707         (i386_mpx_set_bounds): New function that implements
7708         the command "set-mpx-bound".
7709         (i386_mpx_enabled): Helper function to test MPX availability.
7710         (i386_mpx_bd_base): Helper function to calculate the base directory
7711         address.
7712         (i386_mpx_get_bt_entry): Helper function to access a bound
7713         table entry.
7714         (i386_mpx_print_bounds): Effectively display bound information.
7715         (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7716         "show mpx".
7717         (_initialize_i386_tdep):
7718         Add "bound" to the commands "show mpx" and "set mpx" commands.
7719         (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7720         and "show mpx" commands.
7721         * NEWS: List new commands for MPX support.
7722
7723 2015-06-09  Gary Benson <gbenson@redhat.com>
7724
7725         * common/fileio.h (fileio_to_host_mode): New declaration.
7726         * common/fileio.c (fileio_to_host_mode): New Function.
7727         * inf-child.c (inf_child_fileio_open): Process mode argument
7728         with fileio_to_host_mode.
7729
7730 2015-06-09  Gary Benson <gbenson@redhat.com>
7731
7732         * common/fileio.c (fileio_mode_pack): Fix preprocessor
7733         conditional.
7734
7735 2015-06-05  Gary Benson <gbenson@redhat.com>
7736
7737         * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7738         * remote.c (remote_filesystem_is_local): ...here.
7739
7740 2015-06-04  Yao Qi  <yao.qi@linaro.org>
7741
7742         * gdbarch.c: Regenerate it.
7743
7744 2015-06-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7745
7746         * arch-utils.c (default_infcall_munmap): New.
7747         * arch-utils.h (default_infcall_munmap): New declaration.
7748         * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7749         (munmap_list_free, munmap_listp_free_cleanup): New.
7750         (struct setup_sections_data): Add field munmap_list_headp.
7751         (setup_sections): Call munmap_list_add.
7752         (compile_object_load): New variable munmap_list_head, initialize
7753         setup_sections_data.munmap_list_headp, return munmap_list_head.
7754         * compile/compile-object-load.h (struct munmap_list): New declaration.
7755         (struct compile_module): Add field munmap_list_head.
7756         (munmap_list_free): New declaration.
7757         * compile/compile-object-run.c (struct do_module_cleanup): Add field
7758         munmap_list_head.
7759         (do_module_cleanup): Call munmap_list_free.
7760         (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7761         * gdbarch.c: Regenerate.
7762         * gdbarch.h: Regenerate.
7763         * gdbarch.sh (infcall_munmap): New.
7764         * linux-tdep.c (linux_infcall_munmap): New.
7765         (linux_init_abi): Install it.
7766
7767 2015-06-02  Simon Marchi  <simon.marchi@ericsson.com>
7768
7769         PR gdb/15564
7770         * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7771
7772 2015-06-02  Yao Qi  <yao.qi@linaro.org>
7773
7774         * i386-linux-nat.c: Include linux-nat.h.
7775
7776 2015-06-01  Andreas Schwab  <schwab@linux-m68k.org>
7777             Jan Kratochvil  <jan.kratochvil@redhat.com>
7778
7779         PR symtab/18392
7780         * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7781         assertion.
7782         * dwarf2loc.c (chain_candidate): Likewise.
7783
7784 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7785
7786         * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7787         (store_vfp_regs): Use PTRACE_SETREGSET.
7788
7789 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7790
7791         * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7792         (fetch_fpregs): Likewise.
7793         * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7794         (store_fpregs): Likewise.
7795
7796 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7797
7798         * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7799         (fetch_regs): Likewise.
7800         (store_regs): Use PTRACE_SETREGSET.
7801         (store_register): Likewise.
7802
7803 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7804
7805         * arm-linux-nat.c (arm_linux_read_description): Check whether
7806         kernel supports PTRACE_GETREGSET.
7807
7808 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7809
7810         * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7811         * linux-nat.c: ... here.
7812         * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7813         to ...
7814         * linux-nat.h: ... here.
7815
7816 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7817
7818         * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7819         * i386-linux-nat.c: Likewise.
7820         * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7821         * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7822         (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7823         * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7824         * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7825
7826 2015-05-30  Eli Zaretskii  <eliz@gnu.org>
7827
7828         * go32-nat.c (go32_xfer_memory): Fix the return value to be
7829         compatible to what read_child and write_child return.  This
7830         unbreaks that DJGPP build of GDB which was broken since v7.7.
7831
7832 2015-05-29  Martin Galvan  <martin.galvan@tallertechnologies.com>
7833
7834         * MAINTAINERS (Write After Approval): Add Martin Galvan.
7835
7836 2015-05-29  Roland McGrath  <mcgrathr@google.com>
7837
7838         PR gdb/18464
7839         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7840         rather than internal_error for an unrecognized value.
7841
7842 2015-05-29  Max Filippov  <jcmvbkbc@gmail.com>
7843
7844         * xtensa-tdep.c (xtensa_pseudo_register_read)
7845         (xtensa_pseudo_register_write): Don't alias last pseudo register
7846         to a1.
7847
7848 2015-05-28  Don Breazeal  <donb@codesourcery.com>
7849
7850         * infrun.c (follow_fork_inferior): Ensure the use of
7851         process-style ptids (pid,0,0) in verbose/debug "Detaching"
7852         messages.
7853
7854 2015-05-28  Doug Evans  <dje@google.com>
7855
7856         * dwarf2read.c (record_line_ftype): Remove, duplicate.
7857
7858 2015-05-28  Yao Qi  <yao.qi@linaro.org>
7859
7860         * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7861         (arm_linux_fetch_inferior_registers): Use
7862         tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7863         (arm_linux_store_inferior_registers): Likewise.
7864         (arm_linux_read_description): Don't set
7865         arm_linux_has_wmmx_registers.
7866         * arm-tdep.c (arm_gdbarch_init): Set
7867         tdep->have_wmmx_registers according target descriptions.
7868         * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7869         field.
7870
7871 2015-05-28  Yao Qi  <yao.qi@linaro.org>
7872
7873         * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7874         (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7875         instead of arm_linux_vfp_register_count.
7876         (store_vfp_regs): Likewise.
7877         (arm_linux_fetch_inferior_registers): Likewise.
7878         (arm_linux_store_inferior_registers): Likewise.
7879         (arm_linux_read_description): Don't set
7880         arm_linux_vfp_register_count.
7881         * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7882         Adjust.
7883         * arm-tdep.c (arm_gdbarch_init): Add assert on
7884         vfp_register_count.
7885         * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7886         field to vfp_register_count.  All users updated.
7887
7888 2015-05-28  Kyle Huey  <me@kylehuey.com>  (tiny patch)
7889
7890         * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7891         ELFOSABI_GNU binaries.
7892
7893 2015-05-27  Doug Evans  <dje@google.com>
7894
7895         * dwarf2read.c (lnp_state_machine): New typedef.
7896         (lnp_reader_state): New typedef.
7897         (dwarf_record_line_1): Renamed from dwarf_record_line.
7898         All callers updated.
7899         (dwarf_record_line): New function.
7900         (init_lnp_state_machine): New function.
7901         (check_line_address): Replace p_record_line parameter with state.
7902         All callers updated.
7903         (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7904         Update to record state in lnp_state_machine.
7905
7906 2015-05-27  Doug Evans  <dje@google.com>
7907
7908         * dwarf2read.c (record_line_ftype): New typedef.
7909         (check_line_address): New function.
7910         (dwarf_decode_lines_1): Call it.
7911
7912 2015-05-27  Doug Evans  <dje@google.com>
7913
7914         * NEWS: Mention "set debug dwarf-line".
7915         * dwarf2read.c (dwarf_line_debug): New static global.
7916         (add_include_dir): Add debug dwarf-line support.
7917         (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7918         (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7919
7920 2015-05-27  Doug Evans  <dje@google.com>
7921
7922         * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7923         All callers updated.
7924         (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7925         * cp-support.h (cp_lookup_nested_symbol): Update.
7926
7927 2015-05-27  Doug Evans  <dje@google.com>
7928
7929         PR symtab/18258
7930         * block.c (block_find_symbol): New function.
7931         (block_find_non_opaque_type): Ditto.
7932         (block_find_non_opaque_type_preferred): Ditto.
7933         * block.h (block_symbol_matcher_ftype): New typedef.
7934         (block_find_symbol): Declare.
7935         (block_find_non_opaque_type): Ditto.
7936         (block_find_non_opaque_type_preferred): Ditto.
7937         * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7938         * psymtab.c (psym_lookup_symbol): Ditto.
7939         * symtab.c (basic_lookup_transparent_type_1): New function.
7940         (basic_lookup_transparent_type): Call it.
7941
7942 2015-05-27  Yao Qi  <yao.qi@linaro.org>
7943
7944         * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7945         AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7946
7947 2015-05-27  Yao Qi  <yao.qi@linaro.org>
7948
7949         * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7950         before operator &&.
7951         (aarch64_record_load_store): Likewise.
7952
7953 2015-05-26  Doug Evans  <dje@google.com>
7954
7955         PR c++/18141, c++/18417.
7956         * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7957         a typedef.
7958
7959 2015-05-26  Doug Evans  <dje@google.com>
7960
7961         * NEWS: Add entries for command renamings.
7962         * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7963         All uses updated.
7964         (dwarf_die_debug): Renamed from dwarf2_die_debug.  All uses updated.
7965         (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7966         All uses updated.
7967         (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7968         All callers updated.  Fix spelling of DWARF in help text.
7969         (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7970         All uses updated.
7971         (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7972         All uses updated.
7973         (set_dwarf_cmd): Renamed from set_dwarf2_cmd.  All callers updated.
7974         (show_dwarf_cmd): Renamed from show_dwarf2_cmd.  All callers updated.
7975         (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7976         All uses updated.
7977         (show_dwarf_always_disassemble): Renamed from
7978         show_dwarf2_always_disassemble.  All callers updated.
7979         (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7980         "set/show dwarf".  Rename "set/show dwarf2 max-cache-age" to
7981         "set/show dwarf max-cache-age".  Rename
7982         "set/show dwarf2 always-disassemble" to
7983         "set/show dwarf always-disassemble".  Rename
7984         "set/show debug dwarf2-read" to "set/show debug dwarf-read".  Rename
7985         "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7986
7987 2015-05-26  Doug Evans  <dje@google.com>
7988
7989         PR python/18438
7990         * python/py-lazy-string.c (stpy_convert_to_value): Use
7991         gdbpy_gdb_memory_error not PyExc_MemoryError.
7992         (gdbpy_create_lazy_string_object): Ditto.
7993
7994 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
7995
7996         * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7997
7998 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
7999
8000         * tui/tui-regs.c (tui_reg_prev_command): New function.
8001         (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
8002         * reggroups.c (reggroup_prev): New function.
8003         * reggroups.h (reggroup_prev): Add declaration.  Update comment.
8004
8005 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
8006             Yao Qi  <yao.qi@linaro.org>
8007
8008         * aarch64-linux-tdep.c: Include linux-record.h and
8009         record-full.h.
8010         (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
8011         (aarch64_syscall): New enum.
8012         (aarch64_canonicalize_syscall): New function.
8013         (aarch64_all_but_pc_registers_record): New function.
8014         (aarch64_linux_syscall_record): New function.
8015         (aarch64_linux_init_abi): Install AArch64 process record
8016         handler.  Update to handle syscall recording.
8017         * aarch64-tdep.c: Include record.h and record-full.h.
8018         (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
8019         (struct aarch64_mem_r): Define.
8020         (aarch64_record_result): New enum.
8021         (struct insn_decode_record): Define.
8022         (insn_decode_record): New typedef.
8023         (aarch64_record_data_proc_reg): New function.
8024         (aarch64_record_data_proc_imm): New function.
8025         (aarch64_record_branch_except_sys): New function.
8026         (aarch64_record_load_store): New function.
8027         (aarch64_record_data_proc_simd_fp): New function.
8028         (aarch64_record_asimd_load_store): New function.
8029         (aarch64_record_decode_insn_handler): New function.
8030         (deallocate_reg_mem): New function.
8031         (aarch64_process_record): New function.
8032         * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
8033         New field.
8034         (aarch64_process_record): New extern declaration.
8035         * configure.tgt: Add linux-record.o to gdb_target_obs.
8036         * linux-record.h (struct linux_record_tdep) <arg7>: New field.
8037
8038 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
8039
8040         * NEWS: Add a note on process record-replay support on aarch64*-linux*
8041         targets.
8042
8043 2015-05-26  Martin Galvan  <martin.galvan@tallertechnologies.com>
8044
8045         * amd64-tdep.c: Replace in_function_epilogue_p with
8046         stack_frame_destroyed_p throughout.
8047         * arch-utils.c: Ditto.
8048         * arch-utils.h: Ditto.
8049         * arm-tdep.c: Ditto.
8050         * breakpoint.c: Ditto.
8051         * gdbarch.sh: Ditto.
8052         * hppa-tdep.c: Ditto.
8053         * i386-tdep.c: Ditto.
8054         * mips-tdep.c: Ditto.
8055         * nios2-tdep.c: Ditto.
8056         * rs6000-tdep.c: Ditto.
8057         * s390-linux-tdep.c: Ditto.
8058         * score-tdep.c: Ditto.
8059         * sh-tdep.c: Ditto.
8060         * sparc-tdep.c: Ditto.
8061         * sparc-tdep.h: Ditto.
8062         * sparc64-tdep.c: Ditto.
8063         * spu-tdep.c: Ditto.
8064         * tic6x-tdep.c: Ditto.
8065         * tilegx-tdep.c: Ditto.
8066         * xstormy16-tdep.c: Ditto.
8067         * gdbarch.c, gdbarch.h: Re-generated.
8068
8069 2015-05-22  Andrew Burgess  <andrew.burgess@embecosm.com>
8070
8071         * NEWS: Mention 'tui enable' and 'tui disable'.
8072         * tui/tui.c (tui_enable_command): New function.
8073         (tui_disable_command): New function.
8074         (_initialize_tui): New function.
8075
8076 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8077
8078         * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
8079
8080 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8081
8082         * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
8083         buf_ptr is freed.
8084
8085 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8086
8087         * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
8088         into ...
8089         (tui_set_layout_for_display_command): ...here, before calling
8090         tui_set_layout.  Only set the layout if gdb has not already
8091         entered the TUI_FAILURE state.
8092
8093 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8094
8095         * tui/tui-layout.c (layout_completer): New function.
8096         (_initialize_tui_layout): Set completer on layout command.
8097
8098 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8099
8100         * tui/tui-layout.c (tui_set_layout): Remove
8101         tui_register_display_type parameter.  Remove all checking of this
8102         parameter, and reindent function.  Update header comment.
8103         (tui_set_layout_for_display_command): Rename to...
8104         (tui_set_layout_by_name): ...this, and don't check for different
8105         register class types, don't pass a tui_register_display_type to
8106         tui_set_layout.  Update header comment.
8107         (layout_names): Remove register set specific names.
8108         * tui/tui-layout.h (tui_set_layout): Remove
8109         tui_register_display_type parameter.
8110         * tui/tui.c (tui_rl_change_windows): Don't pass a
8111         tui_register_display_type to tui_set_layout.
8112         (tui_rl_delete_other_windows): Likewise.
8113         (tui_enable): Likewise.
8114         * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
8115         (TUI_FLOAT_REGS_NAME_LOWER): Remove.
8116         (TUI_GENERAL_REGS_NAME): Remove.
8117         (TUI_GENERAL_REGS_NAME_LOWER): Remove.
8118         (TUI_SPECIAL_REGS_NAME): Remove.
8119         (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
8120         (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
8121         (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
8122         (enum tui_register_display_type): Remove.
8123         (struct tui_layout_def): Remove regs_display_type and
8124         float_regs_display_type fields.
8125         (struct tui_data_info): Remove regs_display_type field.
8126         (tui_layout_command): Use new name for
8127         tui_set_layout_for_display_command.
8128         * tui/tui-data.c (layout_def): Don't initialise removed fields.
8129         (tui_clear_win_detail): Don't initialise removed fields of
8130         win_info.
8131         * tui/tui-regs.c (tui_show_registers): Use new name for
8132         tui_set_layout_for_display_command.
8133         * tui/tui.h (tui_set_layout_for_display_command): Rename
8134         declaration to...
8135         (tui_set_layout_by_name): ...this.
8136         * printcmd.c (display_command): Remove tui related layout call,
8137         and reindent.
8138
8139 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
8140
8141         * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
8142         (handle_inferior_event): New function.
8143
8144 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
8145
8146         * ada-lang.c (to_fixed_array_type): Rename local variable
8147         typename into type_name.
8148
8149 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8150
8151         Fix ASAN crash for gdb.compile/compile.exp.
8152         * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
8153
8154 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8155
8156         * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
8157         (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
8158         * compile/compile-object-load.c (setup_sections, compile_object_load):
8159         Likewise.
8160         * compile/compile.c (compile_to_object): Likewise.
8161
8162 2015-05-16  Doug Evans  <xdje42@gmail.com>
8163
8164         * NEWS: Mention support for unbuffered Guile memory ports.
8165         * scm-ports.c (ioscm_memory_port): Update comments on end, size.
8166         (ioscm_lseek_address): Improve overflow calculation.
8167         (gdbscm_memory_port_fill_input): Add assert.
8168         (gdbscm_memory_port_write): Handle unbuffered ports.
8169         Handle large writes identical to Guile's fport_write.
8170         (gdbscm_memory_port_seek): Fix seeking past end check.
8171         (gdbscm_memory_port_close): Handle closing unbuffered port.
8172         (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
8173         (ioscm_init_memory_port): Handle unbuffered ports.
8174         (ioscm_reinit_memory_port): Ditto.
8175         (ioscm_init_memory_port): Update size calculation.
8176         (gdbscm_open_memory): Support zero sized ports.
8177
8178 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8179
8180         * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
8181         variable compiler warnings.
8182
8183 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8184
8185         * compile/compile-object-load.c (get_out_value_type): Fix returned type.
8186
8187 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8188             Phil Muldoon  <pmuldoon@redhat.com>
8189
8190         * NEWS (Changes since GDB 7.9): Add compile print.
8191         * compile/compile-c-support.c (add_code_header, add_code_footer)
8192         (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
8193         COMPILE_I_PRINT_VALUE_SCOPE.
8194         * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
8195         (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
8196         New.
8197         * compile/compile-object-load.c: Include block.h.
8198         (get_out_value_type): New function.
8199         (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8200         COMPILE_I_PRINT_VALUE_SCOPE.  Set compile_module's OUT_VALUE_ADDR and
8201         OUT_VALUE_TYPE.
8202         * compile/compile-object-load.h (struct compile_module): Add fields
8203         out_value_addr and out_value_type.
8204         * compile/compile-object-run.c: Include valprint.h and compile.h.
8205         (struct do_module_cleanup): Add fields out_value_addr and
8206         out_value_type.
8207         (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8208         COMPILE_I_PRINT_VALUE_SCOPE.
8209         (compile_object_run): Propagate out_value_addr and out_value_type.
8210         Pass OUT_VALUE_ADDR.
8211         * compile/compile.c: Include valprint.h.
8212         (compile_print_value, compile_print_command): New functions.
8213         (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
8214         (_initialize_compile): Update compile code help text.  Install
8215         compile_print_command.
8216         * compile/compile.h (compile_print_value): New prototype.
8217         * defs.h (enum compile_i_scope_types): Add
8218         COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
8219
8220 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8221
8222         * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
8223         Rely on its parameter count.
8224         (compile_object_load): Replace lookup_minimal_symbol_text by
8225         lookup_global_symbol_from_objfile.  Verify FUNC_SYM.  Set it in the
8226         return value.
8227         * compile/compile-object-load.h (struct compile_module): Replace
8228         func_addr by func_sym.
8229         * compile/compile-object-run.c: Include block.h.
8230         (compile_object_run): Reset module variable after it is freed.  Use
8231         FUNC_SYM instead of FUNC_ADDR.  Rely on it.
8232
8233 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8234
8235         * compile/compile-c-support.c (print_one_macro): Use #ifndef.
8236         (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
8237         (c_compute_program): Call generate_register_struct after typedefs.
8238         * compile/compile-loc2c.c (push, pushf_register_address)
8239         (pushf_register): Cast to GCC_UINTPTR.
8240         (do_compile_dwarf_expr_to_c): Use unused attribute.  Add space after
8241         type.  Use GCC_UINTPTR instead of void *.  Remove excessive cast.
8242         (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
8243         * compile/compile.c (_initialize_compile): Enable warnings for
8244         COMPILE_ARGS.
8245
8246 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8247
8248         * cli/cli-script.c (execute_control_command): Update
8249         eval_compile_command caller.
8250         * compile/compile-object-load.c (compile_object_load): Add parameters
8251         scope and scope_data.  Set them.
8252         * compile/compile-object-load.h (struct compile_module): Add fields
8253         scope and scope_data.
8254         (compile_object_load): Add parameters scope and scope_data.
8255         * compile/compile-object-run.c (struct do_module_cleanup): Add fields
8256         scope and scope_data.
8257         (compile_object_run): Propagate the fields scope and scope_data.
8258         * compile/compile.c (compile_file_command, compile_code_command):
8259         Update eval_compile_command callers.
8260         (eval_compile_command): Add parameter scope_data.  Pass it plus scope.
8261         * compile/compile.h (eval_compile_command): Add parameter scope_data.
8262         * defs.h (struct command_line): Add field scope_data.
8263
8264 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8265
8266         * printcmd.c (struct format_data): Move it to valprint.h.
8267         (print_command_parse_format, print_value): New functions from ...
8268         (print_command_1): ... here.  Call them.
8269         * valprint.h (struct format_data): Move it here from printcmd.c.
8270         (print_command_parse_format, print_value): New declarations.
8271
8272 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8273
8274         * compile/compile-object-load.c (compile_object_load): Add
8275         COMPILE_DEBUG message.
8276
8277 2015-05-15  Jerome Guitton  <guitton@adacore.com>
8278
8279         * ada-lang.c (ada_value_ptr_subscript): Use enum position of
8280         index to get element instead of enum value.
8281         (ada_value_slice_from_ptr, ada_value_slice): Use enum position
8282         of index to compute length, but enum values to compute bounds.
8283         (ada_array_length): Use enum position of index instead of enum value.
8284         (pos_atr): Move position computation to...
8285         (ada_evaluate_subexp): Use enum values to compute bounds.
8286         * gdbtypes.c (discrete_position): ...this new function.
8287         * gdbtypes.h (discrete_position): New function declaration.
8288         * valprint.c (val_print_array_elements): Call discrete_position
8289         to handle array indexed by non-contiguous enumeration types.
8290
8291 2015-05-15  Jerome Guitton  <guitton@adacore.com>
8292
8293         * ada-lang.c (find_parallel_type_by_descriptive_type):
8294         Go through typedefs during lookup.
8295         (to_fixed_array_type): Add support for non-bit packed arrays
8296         as variable-length fields.
8297
8298 2015-05-15  Pedro Alves  <palves@redhat.com>
8299             Simon Marchi  <simon.marchi@ericsson.com>
8300
8301         * event-loop.c (gdb_notifier) <next_file_handler,
8302         next_poll_fds_index>: New fields.
8303         (get_next_file_handler_to_handle_and_advance): New function.
8304         (delete_file_handler): If deleting the next file handler to
8305         handle, advance to the next file handler.
8306         (gdb_wait_for_event): Bail early if no event fired.  Poll file
8307         handlers in round-robin fashion.
8308
8309 2015-05-15  Pedro Alves  <palves@redhat.com>
8310
8311         * linux-tdep.c (linux_find_memory_regions_full): Rename local
8312         'private' to 'priv'.
8313
8314 2015-05-15  Pedro Alves  <palves@redhat.com>
8315
8316         * nat/linux-nat.h: Include "target/waitstatus.h".
8317
8318 2015-05-15  Yuanhui Zhang  <asmwarrior@gmail.com>
8319
8320         * python/py-unwind.c (struct reg_info): Move out of ...
8321         (struct cached_frame_info): ... this scope.
8322         (pending_frame_object_type, unwind_info_object_type): Make extern.
8323
8324 2015-05-15  Joel Brobecker  <brobecker@adacore.com>
8325
8326         * ada-lang.c (ada_value_primitive_packed_val): Make sure
8327         accumSize is never negative.
8328
8329 2015-05-14  Patrick Palka  <patrick@parcs.ath.cx>
8330
8331         * tui/tui-command.c: Remove include of <ctype.h>.
8332         (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
8333
8334 2015-05-13  Martin Galvan  <martin.galvan@tallertechnologies.com>
8335
8336         * dwarf2read.c (die_needs_namespace): Return 1 for
8337         DW_TAG_inlined_subroutine.
8338
8339 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8340
8341         * regcache.c (regcache_cpy_no_passthrough): New declaration.
8342         (regcache_cpy_no_passthrough): Make it static, add function comment.
8343         * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
8344         (regcache_cpy_no_passthrough): Remove declaration.
8345
8346 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8347
8348         * gdbthread.h (struct thread_control_state): Update comment for
8349         proceed_to_finish.
8350         * infcall.c (run_inferior_call): Update comment about
8351         proceed_to_finish.
8352         * infcmd.c (get_return_value): Update comment about stop_registers.
8353         (finish_forward): Update comment about proceed_to_finish.
8354         * infrun.c (stop_registers): Remove.
8355         (clear_proceed_status, normal_stop): Remove stop_registers handling.
8356         * infrun.h (stop_registers): Remove.
8357
8358 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8359
8360         * infcall.c (struct dummy_frame_context_saver)
8361         (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
8362         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8363         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8364         New.
8365         (call_function_by_hand_dummy): Move discard_cleanups of
8366         inf_status_cleanup before dummy_frame_push.  Call
8367         dummy_frame_context_saver_setup and prepare context_saver_cleanup.
8368         Use dummy_frame_context_saver_get_regs instead of stop_registers.
8369         * infcall.h (struct dummy_frame_context_saver)
8370         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8371         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8372         New declarations.
8373         * infcmd.c: Include infcall.h.
8374         (get_return_value): Add parameter ctx_saver, use it instead of
8375         stop_registers.
8376         (print_return_value): Add parameter ctx_saver, pass it.
8377         (struct finish_command_continuation_args): Add field ctx_saver.
8378         (finish_command_continuation): Update print_return_value caller.
8379         (finish_command_continuation_free_arg): Free also ctx_saver.
8380         (finish_forward): Call dummy_frame_context_saver_setup.
8381         * inferior.h (struct dummy_frame_context_saver): New declaration.
8382         (get_return_value): Add parameter ctx_saver.
8383         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
8384         get_return_value caller.
8385
8386 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8387
8388         * dummy-frame.c (struct dummy_frame_dtor_list): New.
8389         (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
8390         (remove_dummy_frame): Process dtor_list.
8391         (pop_dummy_frame): Process dtor_list.
8392         (register_dummy_frame_dtor): Maintain dtor_list.
8393         (find_dummy_frame_dtor): Handle dtor_list.
8394         * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
8395         Update comments.
8396
8397 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8398
8399         * compile/compile-object-run.c (do_module_cleanup): Add parameter
8400         registers_valid.
8401         (compile_object_run): Update do_module_cleanup caller.
8402         * dummy-frame.c: Include infcall.h.
8403         (struct dummy_frame): Update dtor comment.
8404         (remove_dummy_frame): Call dtor.
8405         (pop_dummy_frame): Update dtor caller.
8406         * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
8407         registers_valid.
8408
8409 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
8410
8411         GDB 7.9.1 released.
8412
8413 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
8414
8415         * NEWS: Create "Changes in GDB 7.9.1" section.  Move news about
8416         Xmethods now being able to specify a result type to that new
8417         sectioin.
8418
8419 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
8420
8421         * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
8422         first before resizing the window.
8423         * tui/tui.c (tui_enable): Likewise.
8424
8425 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8426
8427         * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
8428         * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
8429         * infcall.c (call_function_by_hand_dummy): Use proper typedef for
8430         dummy_dtor parameter.
8431         * infcall.h: Include dummy-frame.h.
8432         (call_function_by_hand_dummy_dtor_ftype): Remove.
8433         (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
8434         parameter.
8435
8436 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
8437
8438         PR gdb/17820
8439         * top.c (history_size_setshow_var): Change type to signed.
8440         Initialize to -2.  Update documentation.
8441         (set_readline_history_size): Define.
8442         (set_history_size_command): Use it.  Remove logic for handling
8443         out-of-range sizes.
8444         (init_history): Use set_readline_history_size().  Test for a
8445         value of -2 instead of 0 when determining whether to set a
8446         default history size.
8447         (init_main): Decode the argument of the "size" command as a
8448         zuinteger_unlimited.
8449
8450 2015-05-12  Doug Evans  <dje@google.com>
8451
8452         * dwarf2read.c (struct file_entry): Tweak comments.
8453         (get_debug_line_section): Tweak comments.
8454
8455 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8456
8457         * NEWS: Announce fork support in the RSP and support
8458         for fork debugging in extended mode.
8459
8460 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8461
8462         * remote.c (remote_insert_fork_catchpoint): New function.
8463         (remote_remove_fork_catchpoint): New function.
8464         (remote_insert_vfork_catchpoint): New function.
8465         (remote_remove_vfork_catchpoint): New function.
8466         (pending_fork_parent_callback): New function.
8467         (remove_new_fork_child): New function.
8468         (remote_update_thread_list): Call remote_notif_get_pending_events
8469         and remove_new_fork_child.
8470         (extended_remote_kill): Kill fork child when killing the
8471         parent before follow_fork completes.
8472         (init_extended_remote_ops): Initialize target vector with
8473         new fork catchpoint functions.
8474
8475 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8476
8477         * remote.c (remove_vfork_event_p): New function.
8478         (remote_follow_fork): Add vfork event type to event checking.
8479         (remote_parse_stop_reply): New stop reasons "vfork" and
8480         "vforkdone" for RSP 'T' Stop Reply Packet.
8481
8482 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8483
8484         * linux-nat.c (linux_nat_ptrace_options): New function.
8485         (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
8486         Call linux_nat_ptrace_options and use different argument to
8487         linux_enable_event_reporting.
8488         (_initialize_linux_nat): Delete call to
8489         linux_ptrace_set_additional_flags.
8490         * nat/linux-ptrace.c (current_ptrace_options): Rename to
8491         supported_ptrace_options.
8492         (additional_flags): Delete variable.
8493         (linux_check_ptrace_features): Use supported_ptrace_options.
8494         (linux_test_for_tracesysgood, linux_test_for_tracefork):
8495         Likewise, and remove additional_flags check.
8496         (linux_enable_event_reporting): Change 'attached' argument to
8497         'options'.  Use supported_ptrace_options.
8498         (ptrace_supports_feature): Change comment.  Use
8499         supported_ptrace_options.
8500         (linux_ptrace_set_additional_flags): Delete function.
8501         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
8502         Delete function prototype.
8503         * remote.c (remote_fork_event_p): New function.
8504         (remote_detach_pid): New function.
8505         (remote_detach_1): Call remote_detach_pid, don't mourn inferior
8506         if doing detach-on-fork.
8507         (remote_follow_fork): New function.
8508         (remote_parse_stop_reply): Handle new "T" stop reason "fork".
8509         (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
8510         (init_extended_remote_ops): Initialize to_follow_fork.
8511
8512 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8513
8514         * nat/linux-ptrace.c (linux_check_ptrace_features): Change
8515         from static to extern.
8516         * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
8517         * remote.c (anonymous enum): <PACKET_fork_event_feature,
8518         * PACKET_vfork_event_feature>: New enumeration constants.
8519         (remote_protocol_features): Add table entries for new packets.
8520         (remote_query_supported): Add new feature queries to qSupported
8521         packet.
8522
8523 2015-05-12  Gary Benson <gbenson@redhat.com>
8524
8525         * remote.c (remote_add_inferior): Call exec_file_locate_attach
8526         for fake PIDs as well as real ones.
8527         (remote_pid_to_exec_file): Send empty annex if PID is fake.
8528
8529 2015-05-09  Siva Chandra Reddy  <sivachandra@google.com>
8530
8531         * NEWS (Python Scripting): Mention the new gdb.Value methods.
8532         * python/py-value.c (valpy_reference_value): New function.
8533         (valpy_const_value): Likewise.
8534         (value_object_methods): Add new methods.
8535         * value.c (make_cv_value): New function.
8536         * value.h (make_cv_value): Declare.
8537
8538 2015-05-08  Yao Qi  <yao@codesourcery.com>
8539             Sandra Loosemore  <sandra@codesourcery.com>
8540
8541         * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
8542         to 'lh->include_dirs' before accessing to it.
8543         (psymtab_include_file_name): Likewise.
8544         (dwarf_decode_lines_1): Likewise.
8545         (dwarf_decode_lines): Likewise.
8546         (file_file_name): Likewise.
8547
8548 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
8549
8550         * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
8551         (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
8552         (nios2_linux_rt_sigreturn_init): Adjust base address of
8553         register save area.
8554
8555 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
8556
8557         * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
8558         "trap 31" as the breakpoint instruction on all targets.
8559
8560 2015-05-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8561
8562         * infcmd.c (print_return_value): Remove unused declaration.
8563
8564 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8565
8566         * dwarf2read.c (attr_to_dynamic_prop)
8567         <DW_AT_data_member_location>: Use read_type_die isntead of
8568         get_die_type.
8569
8570 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8571
8572         * ada-lang.c (ada_convert_actual): Add handling of formals
8573         passed inside an aligner type.
8574
8575 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8576
8577         * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
8578
8579 2015-05-08  Siva Chandra Reddy  <sivachandra@google.com>
8580
8581         PR python/18291
8582         * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
8583         Print xmethod matcher status.
8584
8585 2015-05-08  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8586
8587         * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
8588         register in the regcache when treating the PSWM register, and vice
8589         versa.
8590
8591 2015-05-07  Gary Benson <gbenson@redhat.com>
8592
8593         * linux-thread-db.c (struct thread_db_info)
8594         <td_ta_map_id2thr_p>: Remove field.
8595         (try_thread_db_load_1): Remove initialization for the above.
8596
8597 2015-05-07  Gary Benson <gbenson@redhat.com>
8598
8599         * linux-thread-db.c (struct thread_db_info)
8600         <td_thr_validate_p>: Remove field.
8601         (try_thread_db_load_1): Remove initialization for the above.
8602
8603 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
8604
8605         * compile/compile-object-load.c (compile_object_load): Support
8606         mst_text_gnu_ifunc.
8607
8608 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
8609
8610         * compile/compile.c (compile_to_object): Make the cmd_string parameter
8611         const.  Use new variables for the const compatibility.
8612         (eval_compile_command): Make the cmd_string parameter const.
8613         * compile/compile.h (eval_compile_command): Make the cmd_string
8614         parameter const.
8615
8616 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
8617
8618         * defs.h (deprecated_init_ui_hook): Delete.  Remove associated
8619         comment.
8620         * top.c (deprecated_init_ui_hook): Delete.
8621         (gdb_init): Remove handling of deprecated_init_ui_hook.
8622         * interps.c (clear_interpreter_hooks): Remove handling of
8623         deprecated_init_ui_hook.
8624         * main.c (captured_main): Update comment.
8625
8626 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
8627
8628         * solib.c (_initialize_solib): Add "info dll" alias creation.
8629         * windows-nat.c (set_windows_aliases): Delete.
8630         (_initialize_windows_nat): Remove deprecated_init_ui_hook
8631         assignment.
8632         * NEWS: Add news entry about "info dll" now being available
8633         on all platforms.
8634
8635 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8636
8637         * ada-lang.c (value_assign_to_component): Reformat and improve
8638         documentation. Remove all trailing spaces.
8639
8640 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8641
8642         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8643         Stop counting inlined frames as soon as an out-of-line function
8644         is found.
8645
8646 2014-05-05  Pierre-Marie de Rodat  <derodat@adacore.com>
8647
8648         * dwarf2read.c (inherit_abstract_dies): Skip
8649         DW_TAG_GNU_call_site dies while inheriting children of an
8650         abstract DIE into a scope.
8651         (read_lexical_block_scope): Inherit abstract DIE's for
8652         lexical scopes.
8653
8654 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8655
8656         * ada-valprint.c (val_print_packed_array_elements): Delete
8657         variable "len".  Add a type-length check when comparing two
8658         consecutive elements of the array.  Use the element's actual
8659         length in call to value_contents_eq.
8660         * ada-lang.c (ada_value_primitive_packed_val): Always return
8661         a value whose type has been resolved.
8662
8663 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8664
8665         * ada-lang.c (ada_value_primitive_packed_val): Recompute
8666         BIT_SIZE and LEN if the size of the resolved type is smaller
8667         than BIT_SIZE * HOST_CHAR_BIT.
8668
8669 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8670
8671         * ada-lang.c (ada_value_primitive_packed_val): Use a more
8672         correct address in call to value_at.  Adjust call to
8673         value_address accordingly.
8674
8675 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8676
8677         * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8678         to print it.
8679
8680 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8681
8682         * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8683         * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8684         pinfo->valaddr.
8685         * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8686         * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8687         (resolve_dynamic_type_internal): Set pinfo.valaddr.
8688         Add handling of addr_stack->valaddr.
8689         (resolve_dynamic_type): Add "valaddr" parameter.
8690         Set pinfo.valaddr field.
8691         * ada-lang.c (ada_discrete_type_high_bound): Update call to
8692         resolve_dynamic_type.
8693         (ada_discrete_type_low_bound): Likewise.
8694         * findvar.c (default_read_var_value): Likewise.
8695         * value.c (value_from_contents_and_address): Likewise.
8696
8697 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8698
8699         * gdbtypes.c (resolve_dynamic_array): Use
8700         create_array_type_with_stride instead of create_array_type.
8701
8702 2015-04-30  DJ Delorie  <dj@redhat.com>
8703
8704         * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8705         rl78_decode_opcode
8706
8707 2015-04-29  Doug Evans  <dje@google.com>
8708
8709         PR python/18285
8710         * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8711         * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8712         EVAL_AVOID_SIDE_EFFECTS for xmethods.
8713         * extension-priv.h (struct extension_language_ops)
8714         <get_xmethod_result_type>: New member.
8715         * extension.c (get_xmethod_result_type): New function.
8716         * extension.h (get_xmethod_result_type): Declare.
8717         * python/py-xmethods.c (get_result_type_method_name): New static
8718         global.
8719         (py_get_result_type_method_name): Ditto.
8720         (gdbpy_get_xmethod_result_type): New function.
8721         (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8722         * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8723         * python/python.c (python_extension_ops): Add
8724         gdbpy_get_xmethod_result_type.
8725         * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8726         * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8727         xmethods.
8728         (value_x_unop): Ditto.
8729         * value.c (result_type_of_xmethod): New function.
8730         * value.h (result_type_of_xmethod): Declare.
8731
8732 2015-04-29  Gary Benson <gbenson@redhat.com>
8733
8734         * solib.c (solib_find_1): Allow fd argument to be NULL.
8735         (exec_file_find): Update comment.
8736         (solib_find): Likewise.
8737         * exec.c (exec_file_locate_attach): Use NULL as fd
8738         argument to exec_file_find to avoid having to close
8739         the opened file.
8740         * infrun.c (follow_exec): Likewise.
8741
8742 2015-04-28  Doug Evans  <dje@google.com>
8743
8744         PR python/18299
8745         * python/lib/gdb/printing.py (register_pretty_printer): Handle
8746         name or __name__ attributes.  Handle gdb module as first argument.
8747
8748 2015-04-28  Doug Evans  <dje@google.com>
8749
8750         PR python/18089
8751         * python/py-prettyprint.c (print_children): Verify result of children
8752         iterator.  Provide better error message.
8753         * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8754         * python/python.c (gdbpy_print_python_errors_p): New function.
8755
8756 2015-04-28  Doug Evans  <dje@google.com>
8757
8758         * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8759
8760 2015-04-28  Sasha Smundak  <asmundak@google.com>
8761
8762         * NEWS: Mention gdb.Type.optimized_out method.
8763         * python/py-type.c (typy_optimized_out):  New function.
8764
8765 2015-04-28  John Baldwin  <jhb@FreeBSD.org>
8766
8767         * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8768
8769 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8770
8771         * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8772         (initialize_utils): Move call of init_page_info() to ...
8773         * top.c (gdb_init): ... here.
8774
8775 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8776
8777         * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8778         (tui_sigwinch_handler): Still update our idea of
8779         the terminal's width and height even when TUI is not active.
8780
8781 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8782
8783         * utils.h (set_screen_width_and_height): Declare.
8784         * utils.c (set_screen_width_and_height): Define.
8785         * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8786
8787 2015-04-28  Gary Benson <gbenson@redhat.com>
8788
8789         * infrun.c (solist.h): New include.
8790         (follow_exec): Use exec_file_find to prefix execd_pathname
8791         with gdb_sysroot.
8792
8793 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8794
8795         * tui/tui-source.c (tui_set_source_content): Avoid calling
8796         strcpy() when offset is 0.
8797
8798 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8799
8800         PR gdb/18155
8801         * tui/tui-data.c (tui_free_window): Don't free the locator
8802         window when passed an SRC_WIN or a DISASSEM_WIN.
8803
8804 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8805
8806         * tui/tui-data.h (struct tui_win_element): Forward-declare.
8807         (tui_win_content): Move declaration.
8808         (struct tui_gen_win_info): Give 'content' field the
8809         type tui_win_content.
8810         * tui/tui-data.c (init_content_element): Remove redundant and
8811         erroneous casts.
8812         (tui_add_content_elements): Remove erroneous cast.
8813         * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8814         casts.
8815         (tui_get_begin_asm_address): Likewise.
8816         * tui/tui-regs.c (tui_show_registers): Likewise.
8817         (tui_show_register_group): Likewise.
8818         (tui_display_registers_from): Likewise.
8819         (tui_check_register_values): Likewise.
8820         * tui/tui-source.c (tui_set_source_content): Likewise.
8821         (tui_set_source_content_nil): Likewise.
8822         (tui_source_is_displayed): Likewise.
8823         * tui/tui-stack.c (tui_show_locator_content): Likewise.
8824         (tui_set_locator_fullname): Likewise.
8825         (tui_set_locator_info): Likewise.
8826         (tui_show_frame_info): Likewise.
8827         * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8828         (tui_show_source_line): Likewise.
8829         (tui_horizontal_source_scroll): Likewise.
8830         (tui_update_breakpoint_info): Likewise.
8831         (tui_set_exec_info_content): Likewise.
8832         (tui_show_exec_info_content): Likewise.
8833         (tui_alloc_source_buffer): Likewise.
8834         (tui_line_is_displayed): Likewise.
8835         (tui_addr_is_displayed): Likewise.
8836
8837 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8838
8839         * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8840         event if PL_FLAG_EXEC is set.
8841         [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8842         [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8843         (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8844         "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8845         Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8846
8847 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8848
8849         * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8850         [TDP_RFPPWAIT] New variable fbsd_pending_children.
8851         [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8852         [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8853         [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8854         [PT_LWPINFO] (fbsd_wait): New function.
8855         [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8856         [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8857         [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8858         [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8859         [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8860         [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8861         [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8862         [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8863         (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8864         "fbsd_wait".
8865         [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8866         Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8867         Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8868         Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8869         Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8870         Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8871         Set "to_post_attach" to "fbsd_post_attach".
8872
8873 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8874
8875         * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8876         (fbsd_find_memory_regions): Mark static.
8877         (fbsd_nat_add_target): New function.
8878         * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8879         fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8880         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8881         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8882         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8883         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8884
8885 2015-04-27  Gary Benson <gbenson@redhat.com>
8886
8887         * objfiles.c (allocate_objfile): Do not attempt to expand name
8888         if name is a "target:" filename.
8889         * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8890         to load auto-load scripts for objfiles with "target:" filenames.
8891
8892 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8893
8894         * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8895         (enum s390_vector_abi_kind): New enum.
8896         (struct gdbarch_tdep)<vector_abi>: New field.
8897         (s390_effective_inner_type): Add parameter min_size.  Stop
8898         unwrapping if the inner type is smaller than min_size.
8899         (s390_function_arg_float): Adjust call to
8900         s390_effective_inner_type.
8901         (s390_function_arg_vector): New function.
8902         (s390_function_arg_integer): Adjust comment.
8903         (struct s390_arg_state)<vr>: New field.
8904         (s390_handle_arg): Add parameter 'is_unnamed'.  Pass vector
8905         arguments according to vector ABI when appropriate.
8906         (s390_push_dummy_call): Initialize the argument state's field
8907         'vr'.  Adjust calls to s390_handle_arg.
8908         (s390_register_return_value): Handle vector return values.
8909         (s390_return_value): Apply the "register" return value convention
8910         to a vector when appropriate.
8911         (s390_gdbarch_init): Initialize tdep->vector_abi.
8912         * NEWS: Announce S390 vector ABI support.
8913
8914 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8915
8916         * s390-linux-tdep.c (s390_return_value_convention): Remove
8917         function.  Inline its logic...
8918         (s390_return_value): ...here.  Instead, move the handling of the
8919         "register" return value convention...
8920         (s390_register_return_value): ...here.  New function.
8921
8922 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8923
8924         * s390-linux-tdep.c
8925         (is_float_singleton): Remove function.  Move the "singleton" part
8926         of the logic...
8927         (s390_effective_inner_type): ...here.  New function.
8928         (is_float_like): Remove function.  Inline its logic...
8929         (s390_function_arg_float): ...here.
8930         (is_pointer_like, is_integer_like, is_struct_like): Remove
8931         functions.  Inline their logic...
8932         (s390_function_arg_integer): ...here.
8933         (s390_function_arg_pass_by_reference): Remove function.
8934         (extend_simple_arg): Remove function.
8935         (alignment_of): Remove function.
8936         (struct s390_arg_state): New structure.
8937         (s390_handle_arg): New function.
8938         (s390_push_dummy_call): Move parameter placement logic to the new
8939         function s390_handle_arg.  Call it for calculating the stack area
8940         sizes first, and again for actually writing the parameters.
8941
8942 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8943
8944         * s390-linux-tdep.c (is_power_of_two): Add comment.  Return
8945           false if the argument is zero.
8946
8947 2015-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
8948
8949         * ada-lang.c (template_to_static_fixed_type): Return input type
8950         when it is already fixed.  Cache the input type itself when not
8951         creating a static fixed copy.  Make it explicit that we never
8952         molestate the input type.
8953         * gdbtypes.c (resolve_dynamic_struct): Reset the
8954         TYPE_TARGET_TYPE field for resolved copies.
8955
8956 2015-04-27  Joel Brobecker  <brobecker@adacore.com>
8957
8958         * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8959         (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8960         (template_to_static_fixed_type): Call ada_check_typedef only
8961         when necessary.
8962
8963 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
8964
8965         * cli/cli-dump.c (srec_dump_command): Add internationalization
8966         mark ups.
8967         (ihex_dump_command): Likewise.
8968         (tekhex_dump_command): Likewise.
8969         (binary_dump_command): Likewise.
8970         (binary_append_command): Likewise.
8971
8972 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
8973
8974         * cli/cli-dump.c (verilog_cmdlist): New variable.
8975         (dump_verilog_memory): New function.
8976         (dump_verilog_value): New function.
8977         (verilog_dump_command): New function.
8978         (_initialize_cli_dump): Add new commands to support verilog dump
8979         format.
8980         * NEWS: Add entry for "dump verilog".
8981
8982 2015-04-24  Pierre-Marie de Rodat  <derodat@adacore.com>
8983
8984         * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8985         descriptive type when there is none.
8986
8987 2015-04-23  Patrick Palka  <patrick@parcs.ath.cx>
8988
8989         * tui/tui-win.c (tui_async_resize_screen): Call
8990         rl_resize_terminal().
8991
8992 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
8993
8994         * windows-nat.c (handle_output_debug_string): Don't change
8995         current_event.dwThreadId.
8996         (get_windows_debug_event): Use thread_id, rather than relying on
8997         current_event.dwThreadId being changed.
8998
8999 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
9000
9001         * windows-nat.c (windows_continue): Report an error if
9002         ContinueDebugEvent() fails.
9003
9004 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
9005
9006         * windows-nat.c (windows_resume): Fix misspelling in debug output.
9007
9008 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
9009
9010         * windows-nat.c (get_windows_debug_event): Replace retval with
9011         thread_id throughout.  Update stale comment.
9012
9013 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
9014
9015         * windows-nat.c (get_windows_debug_event): Don't use ternary
9016         conditional operator.
9017
9018 2015-04-21  Pierre Muller  <muller@sourceware.org>
9019
9020         PR pascal/17815
9021         p-exp.y (yylex): Reorganize code to return the matched pattern
9022         for a field of this.
9023
9024 2015-04-21  Gary Benson <gbenson@redhat.com>
9025
9026         * common/fileio.h (fileio_to_host_openflags): New declaration.
9027         * common/fileio.c (fcntl.h): New include.
9028         (fileio_to_host_openflags): New function, factored out from...
9029         * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
9030         Single use updated.
9031
9032 2015-04-21  Kevin Buettner  <kevinb@redhat.com>
9033
9034         * rl78-tdep.c (RL78_SP_ADDR): Define.
9035         (opc_reg_to_gdb_regnum): New static function.
9036         (rl78_analyze_prologue): Recognize instructions forming slightly
9037         more interesting prologues.
9038
9039 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
9040
9041         Revert:
9042         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9043         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9044         TYPE_CODE_REF types so that they are not considered as dynamic
9045         depending on the referenced type.
9046         (resolve_dynamic_type_internal): Likewise.
9047
9048 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
9049
9050         Revert:
9051         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9052         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9053         "top_level" parameter.
9054         (resolve_dynamic_type_internal): Remove the unused "top_level"
9055         parameter.  Update call to is_dynamic_type_internal.
9056         (is_dynamic_type): Update call to is_dynamic_type_internal.
9057         (resolve_dynamic_range): Update call to
9058         resolve_dynamic_type_internal.
9059         (resolve_dynamic_union): Likewise.
9060         (resolve_dynamic_struct): Likewise.
9061         (resolve_dynamic_type): Likewise.
9062
9063 2015-04-19  Gabriel Krisman Bertazi  <gabriel@krisman.be>
9064
9065         * breakpoint.c (update_dprintf_command_list): Remove duplicated
9066         xmalloc.
9067
9068 2015-04-20  Thomas Schwinge  <thomas@codesourcery.com>
9069
9070         * reply_mig_hack.awk: Robustify parsing.
9071
9072         * reply_mig_hack.awk: Don't bother to declare an intermediate
9073         function pointer variable.
9074
9075 2015-04-17  Doug Evans  <dje@google.com>
9076
9077         * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
9078         to "exec_displacement" to avoid confusion with inner use of the name.
9079
9080 2015-04-17  Pedro Alves  <palves@redhat.com>
9081
9082         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
9083         if HW point of TYPE isn't supported.
9084
9085 2015-04-17  Yao Qi  <yao.qi@linaro.org>
9086             Pedro Alves  <palves@redhat.com>
9087
9088         * target.h (target_can_use_hardware_watchpoint): Update comments.
9089         Remove trailing ";".
9090
9091 2015-04-17  Gary Benson <gbenson@redhat.com>
9092
9093         * remote.c (remote_add_inferior): New argument try_open_exec.
9094         If nonzero, attempt to open the inferior's executable file as
9095         the main executable if no main executable is open already.
9096         All callers updated.
9097         * NEWS: Mention that GDB now supports automatic location and
9098         retrieval of executable + files from remote targets.
9099
9100 2015-04-17  Gary Benson <gbenson@redhat.com>
9101
9102         * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
9103         * remote.c (PACKET_qXfer_exec_file): Likewise.
9104         (remote_protocol_features): Register the
9105         "qXfer:exec-file:read" feature.
9106         (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
9107         (remote_pid_to_exec_file): New function.
9108         (init_remote_ops): Initialize to_pid_to_exec_file.
9109         (_initialize_remote): Register new "set/show remote
9110         pid-to-exec-file-packet" command.
9111         * NEWS: Announce new qXfer:exec-file:read packet.
9112
9113 2015-04-17  Gary Benson <gbenson@redhat.com>
9114
9115         * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
9116         New declaration.
9117         * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
9118         New function, factored out from...
9119         * linux-nat.c (linux_child_pid_to_exec_file): ...here.
9120
9121 2015-04-17  Gary Benson <gbenson@redhat.com>
9122
9123         * exec.c (solist.h): New include.
9124         (exec_file_locate_attach): Prefix absolute executable
9125         paths with gdb_sysroot if set.
9126         * NEWS: Mention that executable paths may be prepended
9127         with sysroot.
9128
9129 2015-04-17  Gary Benson <gbenson@redhat.com>
9130
9131         * solist.h (exec_file_find): New declaration.
9132         * solib.c (solib_find_1): New function, factored out from...
9133         (solib_find): ...here.
9134         (exec_file_find): New function.
9135
9136 2015-04-17  Gary Benson <gbenson@redhat.com>
9137
9138         * gdbcore.h (exec_file_locate_attach): New declaration.
9139         * exec.c (exec_file_locate_attach): New function, factored
9140         out from...
9141         * infcmd.c (attach_command_post_wait): ...here.
9142
9143 2015-04-17  Mike Frysinger  <vapier@gentoo.org>
9144
9145         * MAINTAINERS: Add myself for Blackfin/write-after-approval.
9146
9147 2015-04-16  Yao Qi  <yao.qi@linaro.org>
9148
9149         * infrun.c (maybe_software_singlestep): Declare.
9150         (displaced_step_fixup): Call maybe_software_singlestep.
9151
9152 2015-04-15  Doug Evans  <dje@google.com>
9153
9154         * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
9155
9156 2015-04-15  Doug Evans  <dje@google.com>
9157
9158         * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
9159
9160 2015-04-15  Simon Marchi  <simon.marchi@ericsson.com>
9161
9162         * python/lib/gdb/command/unwinders.py: Add parentheses.
9163
9164 2015-04-15  Yao Qi  <yao.qi@linaro.org>
9165
9166         * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
9167
9168 2015-04-15  Yao Qi  <yao.qi@linaro.org>
9169
9170         * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
9171
9172 2015-04-15  Yao Qi  <yao.qi@linaro.org>
9173
9174         * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
9175         dsc->insn_size instead of 4.
9176
9177 2015-04-14  Gary Benson <gbenson@redhat.com>
9178
9179         * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
9180         * minidebug.c (lzma_stat): Likewise.
9181         * solib-spu.c (spu_bfd_iovec_stat): Likewise.
9182         * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
9183
9184 2015-04-13  Stan Shebs  <stanshebs@google.com>
9185
9186         * MAINTAINERS: Update my email address.
9187
9188 2015-04-13  John Baldwin  <jhb@FreeBSD.org>
9189
9190         * amd64-tdep.c (amd64_target_description): New function.
9191         * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
9192         * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
9193         (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9194         x86 extended save area.
9195         (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9196         * amd64bsd-nat.h: Export amd64bsd_xsave_len.
9197         * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
9198         (_initialize_amd64fbsd_nat): Set "to_read_description" to
9199         "amd64fbsd_read_description".
9200         * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
9201         (amd64fbsd_supply_xstateregset): New function.
9202         (amd64fbsd_collect_xstateregset): New function.
9203         Add "amd64fbsd_xstateregset".
9204         (amd64fbsd_iterate_over_regset_sections): New function.
9205         (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
9206         "I386_FBSD_XSAVE_XCR0_OFFSET".
9207         Add "iterate_over_regset_sections" gdbarch method.
9208         Add "core_read_description" gdbarch method.
9209         * i386-tdep.c (i386_target_description): New function.
9210         * i386-tdep.h: Export i386_target_description and tdesc_i386.
9211         * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
9212         (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9213         x86 extended save area.
9214         (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9215         * i386bsd-nat.h: Export i386bsd_xsave_len.
9216         * i386fbsd-nat.c (i386fbsd_read_description): New function.
9217         (_initialize_i386fbsd_nat): Set "to_read_description" to
9218         "i386fbsd_read_description".
9219         * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
9220         (i386fbsd_core_read_description): New function.
9221         (i386fbsd_supply_xstateregset): New function.
9222         (i386fbsd_collect_xstateregset): New function.
9223         Add "i386fbsd_xstateregset".
9224         (i386fbsd_iterate_over_regset_sections): New function.
9225         (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
9226         "I386_FBSD_XSAVE_XCR0_OFFSET".
9227         Add "iterate_over_regset_sections" gdbarch method.
9228         Add "core_read_description" gdbarch method.
9229         * i386fbsd-tdep.h: New file.
9230
9231 2015-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
9232
9233         * NEWS (Changes since GDB 7.9): Add removed -xdb.
9234         * breakpoint.c (command_line_is_silent): Remove xdb_commands
9235         conditional.
9236         (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
9237         and lb.
9238         * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
9239         va.
9240         * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
9241         conditional.
9242         * defs.h (xdb_commands): Remove declaration.
9243         * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
9244         * guile/scm-cmd.c (command_classes): Remove xdb from comment.
9245         * infcmd.c (run_no_args_command, go_command): Remove.
9246         (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
9247         * infrun.c (xdb_handle_command): Remove.
9248         (_initialize_infrun): Remove xdb_commands for lz and z.
9249         * main.c (xdb_commands): Remove variable.
9250         (captured_main): Remove "xdb" from long_options.
9251         (print_gdb_help): Remove --xdb from help.
9252         * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
9253         * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
9254         * stack.c (backtrace_full_command, args_plus_locals_info)
9255         (current_frame_command): Remove.
9256         (_initialize_stack): Remove xdb_commands for t, T and l.
9257         * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
9258         * thread.c (_initialize_thread): Remove xdb_commands condition.
9259         * tui/tui-layout.c (tui_toggle_layout_command)
9260         (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
9261         (_initialize_tui_layout): Remove xdb_commands for td and ts.
9262         * tui/tui-regs.c (tui_scroll_regs_forward_command)
9263         (tui_scroll_regs_backward_command): Remove.
9264         (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
9265         * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
9266         (_initialize_tui_win): Remove xdb_commands for U and w.
9267         * utils.c (pagination_on_command, pagination_off_command): Remove.
9268         (initialize_utils): Remove xdb_commands for am and sm.
9269
9270 2015-04-10  Pedro Alves  <palves@redhat.com>
9271
9272         * infrun.c (displaced_step_fixup): Switch to the event ptid
9273         earlier.  If the thread stopped for a watchpoint and the
9274         target/arch has non-continuable watchpoints, cancel the displaced
9275         step.
9276         (resume): Don't start a displaced step if in-line step-over info
9277         is valid.
9278
9279 2015-04-10  Pedro Alves  <palves@redhat.com>
9280
9281         * infrun.c (displaced_step_in_progress): New function.
9282         (do_target_resume): Advise target to report all signals if
9283         displaced stepping.
9284
9285 2015-04-10  Pedro Alves  <palves@redhat.com>
9286
9287         PR gdb/18216
9288         * infrun.c (process_event_stop_test): Don't assume a step-resume
9289         is set if tp->stepped_breakpoint is true.
9290
9291 2015-04-10  Yao Qi  <yao.qi@linaro.org>
9292
9293         * arm-tdep.c (install_alu_reg): Update comment.
9294         (thumb_copy_alu_reg): Remove local variable rn.  Update
9295         debugging message.  Use r2 instead of r1 in the modified
9296         instruction.
9297
9298 2015-04-10  Pedro Alves  <palves@redhat.com>
9299
9300         PR gdb/13858
9301         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
9302         linux_displaced_step_location as gdbarch_displaced_step_location
9303         hook.
9304         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
9305         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9306         * linux-tdep.c (linux_displaced_step_location): New function,
9307         based on ppc_linux_displaced_step_location.
9308         * linux-tdep.h (linux_displaced_step_location): New declaration.
9309         * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
9310         (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
9311         Delete.
9312         (ppc_linux_init_abi): Install linux_displaced_step_location as
9313         gdbarch_displaced_step_location hook, even without Cell/B.E..
9314         (_initialize_ppc_linux_tdep): Don't install
9315         ppc_linux_inferior_created as inferior_created observer.
9316         * s390-linux-tdep.c (s390_gdbarch_init): Install
9317         linux_displaced_step_location as gdbarch_displaced_step_location
9318         hook.
9319
9320 2015-04-09  Gary Benson <gbenson@redhat.com>
9321
9322         * common/common-remote-fileio.h: Rename to...
9323         * common/fileio.h: ...this.  Update all references.
9324         (remote_fileio_to_fio_error): Rename to...
9325         (host_to_fileio_error): ...this.
9326         (remote_fileio_to_be): Rename to...
9327         (host_to_bigendian): ...this.  Update all callers.
9328         (remote_fileio_to_fio_uint): Rename to...
9329         (host_to_fileio_uint): ...this.  Update all callers.
9330         (remote_fileio_to_fio_time): Rename to...
9331         (host_to_fileio_time): ...this.  Update all callers.
9332         (remote_fileio_to_fio_stat): Rename to...
9333         (host_to_fileio_stat): ...this.
9334         Update all references.
9335         * common/common-remote-fileio.c: Rename to...
9336         * common/fileio.c: ...this.  Update all references.
9337         (remote_fileio_to_fio_error): Rename to...
9338         (host_to_fileio_error): ...this.  Update all callers.
9339         (remote_fileio_mode_to_target): Rename to...
9340         (fileio_mode_pack): ...this.  Update all callers.
9341         (remote_fileio_to_fio_mode): Rename to...
9342         (host_to_fileio_mode): ...this.  Update all callers.
9343         (remote_fileio_to_fio_ulong): Rename to...
9344         (host_to_fileio_ulong): ...this.  Update all callers.
9345         (remote_fileio_to_fio_stat): Rename to...
9346         (host_to_fileio_stat): ...this.  Update all callers.
9347
9348 2015-04-09  Andy Wingo  <wingo@igalia.com>
9349
9350         * guile/scm-frame.c (gdbscm_frame_read_register): New function.
9351         (frame_functions): Bind gdbscm_frame_read_register to
9352         frame-read-register.
9353         * guile/lib/gdb.scm (frame-read-register): Export.
9354
9355 2015-04-09  Gary Benson <gbenson@redhat.com>
9356
9357         * common/common-remote-fileio.h (remote_fileio_to_fio_error):
9358         New declaration.
9359         * common/common-remote-fileio.c (remote_fileio_to_fio_error):
9360         New function, factored out the named functions below.
9361         * inf-child.c (gdb/fileio.h): Remove include.
9362         (common-remote-fileio.h): New include.
9363         (inf_child_errno_to_fileio_error): Remove function.  Update
9364         all callers to use remote_fileio_to_fio_error.
9365         * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
9366
9367 2015-04-09  Andy Wingo  <wingo@igalia.com>
9368
9369         * MAINTAINERS (Write After Approval): Add Andy Wingo.
9370
9371 2015-04-09  H.J. Lu  <hongjiu.lu@intel.com>
9372
9373         * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
9374         Replace $zlibdir with $ZLIBDIR in LDFLAGS.
9375         * configure: Regenerated.
9376
9377 2015-04-09  Pedro Alves  <palves@redhat.com>
9378
9379         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
9380         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
9381         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
9382         * gnulib/import/Makefile.am: Update.
9383         * gnulib/import/Makefile.in: Update.
9384         * gnulib/import/m4/gnulib-cache.m4: Update.
9385         * gnulib/import/m4/gnulib-comp.m4: Update.
9386         * gnulib/import/m4/strtok_r.m4: New file.
9387         * gnulib/import/strtok_r.c: New file.
9388
9389 2015-04-09  Pedro Alves  <palves@redhat.com>
9390
9391         * gnulib/update-gnulib.sh (aclocal version check): Filter out
9392         "called too early to check prototype".
9393
9394 2015-04-08  Sergio Durigan Junior  <sergiodj@redhat.com>
9395
9396         PR python/16699
9397         * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
9398         use a caching mechanism.  Adjust comments and code to reflect
9399         that.  Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
9400         (cmdpy_completer_handle_brkchars): Adjust call to
9401         cmdpy_completer_helper.  Call Py_XDECREF for 'resultobj'.
9402         (cmdpy_completer): Likewise.
9403
9404 2015-04-08  Yao Qi  <yao.qi@linaro.org>
9405
9406         * spu-tdep.c (spu_gdbarch_init): Don't call
9407         set_gdbarch_cannot_step_breakpoint.
9408
9409 2015-04-07  Sergio Durigan Junior  <sergiodj@redhat.com>
9410
9411         * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
9412
9413 2015-04-07  Pedro Alves  <palves@redhat.com>
9414
9415         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
9416         (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
9417         (delete_exited_threads): New declaration.
9418         * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
9419         * linux-nat.c (linux_nat_update_thread_list): New function.
9420         (linux_nat_add_target): Install it.
9421         * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
9422         * thread.c (prune_threads): Use ALL_THREADS_SAFE.
9423         (delete_exited_threads): New function.
9424
9425 2015-04-07  Pedro Alves  <pedro@codesourcery.com>
9426
9427         * infrun.c (resume) <displaced stepping debug output>: Get the
9428         leader thread's regcache, not resume_ptid's.
9429
9430 2015-04-06  Doug Evans  <xdje42@gmail.com>
9431
9432         * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
9433         VAR_DOMAIN.
9434         (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
9435         Include symbol domain in debugging output.
9436
9437 2015-04-06  Pedro Alves  <palves@redhat.com>
9438             Bernd Edlinger  <bernd.edlinger@hotmail.de>
9439
9440         * configure.ac: Remove the mingw32-specific stub-termcap.o
9441         fallback, and instead fallback to the stub termcap on all hosts.
9442         * configure: Regenerate.
9443         * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
9444         symbols.
9445
9446 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9447
9448         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9449         "top_level" parameter.
9450         (resolve_dynamic_type_internal): Remove the unused "top_level"
9451         parameter.  Update call to is_dynamic_type_internal.
9452         (is_dynamic_type): Update call to is_dynamic_type_internal.
9453         (resolve_dynamic_range): Update call to
9454         resolve_dynamic_type_internal.
9455         (resolve_dynamic_union): Likewise.
9456         (resolve_dynamic_struct): Likewise.
9457         (resolve_dynamic_type): Likewise.
9458
9459 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9460
9461         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9462         TYPE_CODE_REF types so that they are not considered as dynamic
9463         depending on the referenced type.
9464         (resolve_dynamic_type_internal): Likewise.
9465
9466 2015-04-02  H.J. Lu  <hongjiu.lu@intel.com>
9467
9468         * Makefile.in (top_srcdir): New.
9469         * configure: Regenerated.
9470
9471 2015-04-02  Gary Benson <gbenson@redhat.com>
9472
9473         * NEWS: Announce the new default sysroot of "target:".
9474
9475 2015-04-02  Gary Benson <gbenson@redhat.com>
9476
9477         * main.c (captured_main): Set gdb_sysroot to "target:"
9478         if not otherwise set.
9479
9480 2015-04-02  Gary Benson <gbenson@redhat.com>
9481
9482         * exec.c (exec_file_attach): Support "target:" filenames.
9483
9484 2015-04-02  Gary Benson <gbenson@redhat.com>
9485
9486         * solib.c (solib_find): Strip "target:" prefix from sysroot
9487         if accessing local files.
9488
9489 2015-04-02  Gary Benson <gbenson@redhat.com>
9490
9491         * symfile.c (symfile_bfd_open): Reorder to remove duplicated
9492         checks and error messages.
9493
9494 2015-04-02  Gary Benson <gbenson@redhat.com>
9495
9496         * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
9497         (remote_filename_p): Remove declaration.
9498         (remote_bfd_open): Likewise.
9499         * remote.c (remote_bfd_iovec_open): Remove function.
9500         (remote_bfd_iovec_close): Likewise.
9501         (remote_bfd_iovec_pread): Likewise.
9502         (remote_bfd_iovec_stat): Likewise.
9503         (remote_filename_p): Likewise.
9504         (remote_bfd_open): Likewise.
9505         * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
9506         * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
9507         (gdb_bfd_open_maybe_remote): Remove function.
9508         (symfile_bfd_open):  Replace remote filename check with
9509         target filename check.
9510         (reread_symbols): Use gdb_bfd_open.
9511         * build-id.c (gdbcore.h): New include.
9512         (build_id_to_debug_bfd): Use gdb_bfd_open.
9513         * infcmd.c (attach_command_post_wait): Remove remote filename
9514         check.
9515         * solib.c (solib_find): Replace remote-specific handling with
9516         target-specific handling.  Update comments where necessary.
9517         (solib_bfd_open): Replace remote-specific handling with
9518         target-specific handling.
9519         (gdb_sysroot_changed): New function.
9520         (_initialize_solib): Call the above when gdb_sysroot changes.
9521         * windows-tdep.c (gdbcore.h): New include.
9522         (windows_xfer_shared_library): Use gdb_bfd_open.
9523
9524 2015-04-02  Gary Benson <gbenson@redhat.com>
9525
9526         * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
9527         (is_target_filename): New declaration.
9528         (gdb_bfd_has_target_filename): Likewise.
9529         (gdb_bfd_open): Update documentation comment.
9530         * gdb_bfd.c (target.h): New include.
9531         (gdb/fileio.h): Likewise.
9532         (is_target_filename): New function.
9533         (gdb_bfd_has_target_filename): Likewise.
9534         (fileio_errno_to_host): Likewise.
9535         (gdb_bfd_iovec_fileio_open): Likewise.
9536         (gdb_bfd_iovec_fileio_pread): Likewise.
9537         (gdb_bfd_iovec_fileio_close): Likewise.
9538         (gdb_bfd_iovec_fileio_fstat): Likewise.
9539         (gdb_bfd_open): Use target fileio to access paths prefixed
9540         with "target:" where necessary.
9541
9542 2015-04-02  Gary Benson <gbenson@redhat.com>
9543
9544         * target.h (struct target_ops) <to_filesystem_is_local>:
9545         New field.
9546         (target_filesystem_is_local): New macro.
9547         * target-delegates.c: Regenerate.
9548         * remote.c (remote_filesystem_is_local): New function.
9549         (init_remote_ops): Initialize to_filesystem_is_local.
9550
9551 2015-04-02  Gary Benson <gbenson@redhat.com>
9552
9553         * target.h (struct target_ops) <to_fileio_fstat>: New field.
9554         (target_fileio_fstat): New declaration.
9555         * target.c (target_fileio_fstat): New function.
9556         * inf-child.c (inf_child_fileio_fstat): Likewise.
9557         (inf_child_target): Initialize to_fileio_fstat.
9558         * remote.c (init_remote_ops): Likewise.
9559
9560 2015-04-01  Sasha Smundak  <asmundak@google.com>
9561
9562         * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
9563         (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
9564         (py-unwind.o): New recipe.
9565         * NEWS: mention Python frame unwinding.
9566         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
9567         gdb/unwinder.py and gdb/command/unwinder.py
9568         * python/lib/gdb/__init__.py (packages): Add frame_unwinders
9569         list.
9570         (execute_unwinders): New function.
9571         * python/lib/gdb/command/unwinders.py: New file.
9572         * python/lib/gdb/unwinder.py: New file.
9573         * python/py-objfile.c (objfile_object): Add frame_unwinders field.
9574         (objfpy_dealloc): Decrement frame_unwinders reference count.
9575         (objfpy_initialize): Create frame_unwinders list.
9576         (objfpy_get_frame_unwinders): New function.
9577         (objfpy_set_frame_unwinders): Ditto.
9578         (objfile_getset): Add frame_unwinders attribute to Objfile.
9579         * python/py-progspace.c (pspace_object): Add frame_unwinders field.
9580         (pspy_dealloc): Decrement frame_unwinders reference count.
9581         (pspy_initialize): Create frame_unwinders list.
9582         (pspy_get_frame_unwinders): New function.
9583         (pspy_set_frame_unwinders): Ditto.
9584         (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
9585         * python/py-unwind.c: New file.
9586         * python/python-internal.h (pspy_get_name_unwinders): New prototype.
9587         (objpy_get_frame_unwinders): New prototype.
9588         (gdbpy_initialize_unwind): New prototype.
9589         * python/python.c (gdbpy_apply_type_printers): Call
9590         gdbpy_initialize_unwind.
9591
9592 2015-04-01  Pedro Alves  <palves@redhat.com>
9593
9594         * infrun.c (resume): Check currently_stepping after clearing
9595         stepped_breakpoint, not before.
9596
9597 2015-04-01  Pedro Alves  <palves@redhat.com>
9598
9599         * infrun.c (print_target_wait_results): Print all the ptid
9600         elements.
9601
9602 2015-04-01  Pedro Alves  <palves@redhat.com>
9603
9604         * infrun.c (keep_going): Also discard cleanups if inserting
9605         breakpoints fails.
9606
9607 2015-04-01  Pedro Alves  <palves@redhat.com>
9608
9609         * infrun.c (wait_for_inferior): Install the
9610         finish_thread_state_cleanup cleanup across the whole function, not
9611         just around handle_inferior_event.
9612
9613 2015-04-01  Pedro Alves  <palves@redhat.com>
9614
9615         * infrun.c (resume) <step past permanent breakpoint>: Use
9616         do_target_resume.
9617
9618 2015-04-01  Pedro Alves  <palves@redhat.com>
9619
9620         * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9621
9622 2015-04-01  Pierre-Marie de Rodat  <derodat@adacore.com>
9623
9624         * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9625
9626 2015-04-01  Pedro Alves  <palves@redhat.com>
9627
9628         * linux-thread-db.c (record_thread): Readd the thread to gdb's
9629         list if it was marked exited.
9630
9631 2015-04-01  H.J. Lu  <hongjiu.lu@intel.com>
9632
9633         * configure: Regenerated.
9634
9635 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
9636             Jan Kratochvil  <jan.kratochvil@redhat.com>
9637             Oleg Nesterov  <oleg@redhat.com>
9638
9639         PR corefiles/16092
9640         * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9641         New enum identifying the various options of the coredump_filter
9642         file.
9643         (struct smaps_vmflags): New struct.
9644         (use_coredump_filter): New variable.
9645         (decode_vmflags): New function.
9646         (mapping_is_anonymous_p): Likewise.
9647         (dump_mapping_p): Likewise.
9648         (linux_find_memory_regions_full): New variables
9649         'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9650         Removed variable 'modified'.  Read /proc/<PID>/smaps file; improve
9651         parsing of its information.  Implement memory mapping filtering
9652         based on its contents.
9653         (show_use_coredump_filter): New function.
9654         (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9655         * NEWS: Mention the possibility of using the
9656         '/proc/PID/coredump_filter' file when generating a corefile.
9657         Mention new command 'set use-coredump-filter'.
9658
9659 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
9660
9661         * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9662         read_memory_unsigned_integer.
9663
9664 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
9665
9666         * Makefile.in (ZLIB): New.
9667         (ZLIBINC): Likewise.
9668         (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9669         (CLIBS): Add $(ZLIB).
9670         * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9671         Add -lz to LIBS.
9672         * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9673         * top.c (print_gdb_configuration): Remove --with-zlib and
9674         --without-zlib.
9675         * config.in: Regenerated.
9676         * configure: Likewise.
9677
9678 2015-03-31  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9679
9680         * NEWS: Mention info os cpus support.
9681         * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9682         (struct osdata_type): Add cpus entry, reorder the entries in
9683         alphabetical order.
9684
9685 2015-03-31  Matthias Klose  <doko@ubuntu.com>
9686
9687         * compile/compile.c (compile_to_object): Allow triplets with or
9688         without vendor set.
9689
9690 2015-03-30  Doug Evans  <dje@google.com>
9691
9692         PR c++/18141
9693         * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9694         klass in VAR_DOMAIN.
9695
9696 2015-03-30  Gary Benson <gbenson@redhat.com>
9697
9698         * remote.c (remote_mourn_1): Remove function.  Update all callers
9699         to use remote_mourn.
9700         (extended_remote_mourn_1): Remove function.  Update all callers
9701         to use extended_remote_mourn.
9702         (extended_remote_attach_1): Remove function.  Update all callers
9703         to use extended_remote_attach.
9704
9705 2015-03-28  James Bowman  <james.bowman@ftdichip.com>
9706
9707         * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9708         (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9709         (ALLDEPFILES): Add ft32-tdep.c.
9710         * configure.tgt: Add FT32 entry.
9711         * ft32-tdep.c: New file, FT32 target-dependent code.
9712         * ft32-tdep.h: New file, FT32 target-dependent code.
9713
9714 2015-03-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
9715
9716         Revert:
9717         2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9718         Code cleanup.
9719         * printcmd.c (print_command_1): Move expr variable scope.
9720
9721 2015-03-27  Joel Brobecker  <brobecker@adacore.com>
9722
9723         * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9724
9725 2015-03-27  Andrzej Kaczmarek  <andrzej.kaczmarek@tieto.com>
9726
9727         * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9728         sections.
9729
9730 2015-03-26  Joel Brobecker  <brobecker@adacore.com>
9731
9732         * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9733         exception raised while parsing the probe arguments.
9734         Force parsing to be done using the C language parser.
9735         * expression.h (parse_expression_with_language): Declare.
9736         * parse.c (parse_expression_with_language): New function.
9737
9738 2015-03-26  Jon Turney  <jon.turney@dronecode.org.uk>
9739
9740         * MAINTAINERS (Write After Approval): Add "Jon Turney".
9741
9742 2015-03-26  Andy Wingo  <wingo@igalia.com>
9743
9744         PR symtab/18148
9745         * dwarf2read.c (struct partial_die_info): Add has_const_value
9746         member.
9747         (add_partial_symbol): Don't punt on symbols that have const_value
9748         attributes.
9749         (read_partial_die): Detect DW_AT_const_value.
9750
9751 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9752
9753         Code cleanup.
9754         * printcmd.c (print_command_1): Move expr variable scope.
9755
9756 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9757
9758         Code cleanup.
9759         * printcmd.c (validate_format): Make the parameter cmdname const.
9760
9761 2015-03-26  Don Breazeal  <donb@codesourcery.com>
9762
9763         * remote.c (_initialize_remote): Update comment.
9764
9765 2015-03-26  Pedro Alves  <palves@redhat.com>
9766             Jon TURNEY  <jon.turney@dronecode.org.uk>
9767
9768         * coffread.c (coff_symfile_read): When constructing the name of an
9769         import stub symbol from import symbol for amd64, only skip the
9770         char after _imp_ if the target is underscored (like i386) and the
9771         char is indeed the target's leading char.
9772
9773 2015-03-25  Pedro Alves  <palves@redhat.com>
9774
9775         * target.h <to_async>: Replace 'callback' and 'context' parameters
9776         with boolean 'enable' parameter.
9777         (target_async): Replace CALLBACK and CONTEXT parameters with
9778         boolean ENABLE parameter.
9779         * inf-loop.c (inferior_event_handler): Adjust.
9780         * linux-nat.c (linux_nat_attach, linux_nat_resume)
9781         (linux_nat_resume): Adjust.
9782         (async_client_callback, async_client_context): Delete.
9783         (handle_target_event): Call inferior_event_handler directly.
9784         (linux_nat_async): Replace 'callback' and 'context' parameters
9785         with boolean 'enable' parameter.  Adjust.  Remove references to
9786         async_client_callback and async_client_context.
9787         (linux_nat_close): Adjust.
9788         * record-btrace.c (record_btrace_async): Replace 'callback' and
9789         'context' parameters with boolean 'enable' parameter.  Adjust.
9790         (record_btrace_resume): Adjust.
9791         * record-full.c (record_full_async): Replace 'callback' and
9792         'context' parameters with boolean 'enable' parameter.  Adjust.
9793         (record_full_resume, record_full_core_resume): Adjust.
9794         * remote.c (struct remote_state) <async_client_callback,
9795         async_client_context>: Delete fields.
9796         (remote_start_remote, extended_remote_attach_1, remote_resume)
9797         (extended_remote_create_inferior): Adjust.
9798         (remote_async_serial_handler): Call inferior_event_handler
9799         directly.
9800         (remote_async): Replace 'callback' and 'context' parameters with
9801         boolean 'enable' parameter.  Adjust.
9802         * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9803         Adjust.
9804         * target-delegates.c: Regenerate.
9805
9806 2015-03-25  Gary Benson <gbenson@redhat.com>
9807             Pedro Alves  <palves@redhat.com>
9808
9809         * target.c (fileio_ft_t): New typedef, define object vector.
9810         (fileio_fhandles): New static variable.
9811         (is_closed_fileio_fh): New macro.
9812         (lowest_closed_fd): New static variable.
9813         (acquire_fileio_fd): New function.
9814         (release_fileio_fd): Likewise.
9815         (fileio_fd_to_fh): New macro.
9816         (target_fileio_open): Wrap the file descriptor on success.
9817         (target_fileio_pwrite): Updated to use wrapped file descriptor.
9818         (target_fileio_pread): Likewise.
9819         (target_fileio_close): Likewise.
9820
9821 2015-03-24  Pedro Alves  <palves@redhat.com>
9822
9823         * thread.c (thread_apply_all_command): Take exited threads into
9824         account.
9825
9826 2015-03-24  Pedro Alves  <palves@redhat.com>
9827
9828         * infrun.c (resume, proceed): Mention
9829         switch_back_to_stepped_thread, not switch_back_to_stepping.
9830
9831 2015-03-24  Pedro Alves  <palves@redhat.com>
9832
9833         * infrun.c (user_visible_resume_ptid): Rewrite going from
9834         most-locked to unlocked instead of the opposite.  Move comment ...
9835         * infrun.h (user_visible_resume_ptid): ... here.
9836
9837 2015-03-24  Pedro Alves  <palves@redhat.com>
9838
9839         * linux-nat.c (linux_nat_resume): Output debug logs before trying
9840         to resume the event lwp.  Use the lwp's ptid instead of the passed
9841         in (maybe wildcard) ptid.
9842         (stop_wait_callback): Tweak debug log output.
9843         (check_stopped_by_breakpoint): Tweak debug log output.  Also dump
9844         TRAP_TRACE.
9845         (linux_nat_filter_event): In debug output, distinguish a
9846         resume_stop SIGSTOP from a delayed SIGSTOP.  Output debug logs
9847         before trying to resume the lwp.
9848
9849 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
9850
9851         * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9852         pointer indirection.
9853         * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9854         (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9855
9856 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
9857
9858         * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9859         Renames DYN_ATTR_DATA_LOCATION.
9860         (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9861         DYN_ATTR_DATA_LOCATION.
9862         * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9863         instead of DYN_ATTR_DATA_LOCATION.
9864
9865 2015-03-24  Pedro Alves  <palves@redhat.com>
9866
9867         * breakpoint.c (until_break_command): Adjust call to proceed.
9868         * gdbthread.h (struct thread_control_state) <stepping_command>:
9869         New field.
9870         * infcall.c (run_inferior_call): Adjust call to proceed.
9871         * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9872         Adjust calls to proceed.
9873         (set_step_frame): Set the current thread's step_start_function
9874         here.
9875         (step_once): Adjust calls to proceed.
9876         (jump_command, signal_command, until_next_command)
9877         (finish_backward, finish_forward, proceed_after_attach_callback)
9878         (attach_command_post_wait): Adjust calls to proceed.
9879         * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9880         (do_target_resume): New function, factored out from ...
9881         (resume): ... here.  Remove 'step' parameter.  Instead, check
9882         currently_stepping to determine whether the thread should be
9883         single-stepped.
9884         (proceed): Remove 'step' parameter and don't set the thread's
9885         step_start_function here.  Adjust call to 'resume'.
9886         (handle_inferior_event): Adjust calls to 'resume'.
9887         (switch_back_to_stepped_thread): Use do_target_resume instead of
9888         'resume'.
9889         (keep_going): Adjust calls to 'resume'.
9890         * infrun.h (proceed): Remove 'step' parameter.
9891         (resume): Likewise.
9892         * windows-nat.c (do_initial_windows_stuff): Adjust call to
9893         'resume'.
9894         * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9895
9896 2015-03-24  Pedro Alves  <palves@redhat.com>
9897
9898         * gdbthread.h (struct thread_control_state) <stepping_command>:
9899         New field.
9900         * infcmd.c (step_once): Pass step=1 to clear_proceed_status.  Set
9901         the thread's stepping_command field.
9902         * infrun.c (resume): Check the thread's stepping_command flag to
9903         determine which threads should be resumed.  Rename 'entry_step'
9904         local to user_step.
9905         (clear_proceed_status_thread): Clear 'stepping_command'.
9906         (schedlock_applies): Change parameter type to struct thread_info
9907         pointer.  Adjust.
9908         (find_thread_needs_step_over): Remove 'step' parameter.  Adjust.
9909         (switch_back_to_stepped_thread): Adjust calls to
9910         'schedlock_applies'.
9911         (_initialize_infrun): Adjust "set scheduler-locking step" help.
9912
9913 2015-03-24  Pedro Alves  <palves@redhat.com>
9914
9915         * infrun.c (step_start_function): Delete and ...
9916         * gdbthread.h (struct thread_control_state) <step_start_function>:
9917         ... now a field here.
9918         * infrun.c (clear_proceed_status_thread): Clear the thread's
9919         step_start_function.
9920         (proceed, process_event_stop_test, print_stop_event): Adjust.
9921
9922 2015-03-24  Pedro Alves  <palves@redhat.com>
9923
9924         * infrun.c (proceed): No longer handle negative step.
9925
9926 2015-03-24  Gary Benson  <gbenson@redhat.com>
9927
9928         * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9929         (x86_linux_prepare_to_resume): Likewise.
9930         * x86-linux-nat.c (x86_linux_new_thread):
9931         Moved to nat/x86-linux.c.
9932         (x86_linux_prepare_to_resume): Likewise.
9933         * nat/x86-linux.c (x86_linux_new_thread): New function.
9934         (x86_linux_prepare_to_resume): Likewise.
9935
9936 2015-03-24  Gary Benson  <gbenson@redhat.com>
9937
9938         * nat/x86-linux-dregs.h: New file.
9939         * nat/x86-linux-dregs.c: Likewise.
9940         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9941         (x86-linux-dregs.o): New rule.
9942         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9943         * config/i386/linux64.mh (NATDEPFILES): Likewise.
9944         * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9945         (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9946         (x86_linux_dr_get): Likewise.
9947         (x86_linux_dr_set): Likewise.
9948         (x86_linux_dr_get_addr): Likewise.
9949         (x86_linux_dr_get_control): Likewise.
9950         (x86_linux_dr_get_status): Likewise.
9951         (update_debug_registers_callback): Likewise.
9952         (x86_linux_dr_set_control): Likewise.
9953         (x86_linux_dr_set_addr): Likewise.
9954         (x86_linux_update_debug_registers): Likewise.
9955
9956 2015-03-24  Gary Benson  <gbenson@redhat.com>
9957
9958         * x86-linux-nat.c (x86_linux_update_debug_registers):
9959         New function, factored out from...
9960         (x86_linux_prepare_to_resume): ...this.
9961
9962 2015-03-24  Gary Benson  <gbenson@redhat.com>
9963
9964         * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9965         (x86_linux_dr_set): Likewise.
9966         (x86_linux_dr_get_addr): Likewise.
9967         (x86_linux_dr_get_control): Likewise.
9968         (x86_linux_dr_get_status): Likewise.
9969         (update_debug_registers_callback): Likewise.
9970         (x86_linux_dr_set_control): Likewise.
9971         (x86_linux_dr_set_addr): Likewise.
9972         (x86_linux_prepare_to_resume): Likewise.
9973         (x86_linux_new_thread): Likewise.
9974
9975 2015-03-24  Gary Benson  <gbenson@redhat.com>
9976
9977         * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9978         (x86_linux_new_thread): Rename argument.
9979
9980 2015-03-24  Gary Benson  <gbenson@redhat.com>
9981
9982         * nat/x86-linux.h: New file.
9983         * nat/x86-linux.c: Likewise.
9984         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9985         (x86-linux.o): New rule.
9986         * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9987         * config/i386/linux64.mh (NATDEPFILES): Likewise.
9988         * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9989         (lwp_set_arch_private_info): New declaration.
9990         (lwp_arch_private_info): Likewise.
9991         * linux-nat.c (lwp_set_arch_private_info): New function.
9992         (lwp_arch_private_info): Likewise.
9993         * x86-linux-nat.c: Include nat/x86-linux.h.
9994         (arch_lwp_info): Removed structure.
9995         (update_debug_registers_callback):
9996         Use lwp_set_debug_registers_changed.
9997         (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9998         and lwp_set_debug_registers_changed.
9999         (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10000
10001 2015-03-24  Gary Benson  <gbenson@redhat.com>
10002
10003         * nat/linux-nat.h (ptid_of_lwp): New declaration.
10004         (lwp_is_stopped): Likewise.
10005         (lwp_stop_reason): Likewise.
10006         * linux-nat.c (ptid_of_lwp): New function.
10007         (lwp_is_stopped): Likewise.
10008         (lwp_is_stopped_by_watchpoint): Likewise.
10009         * x86-linux-nat.c (update_debug_registers_callback):
10010         Use lwp_is_stopped.
10011         (x86_linux_prepare_to_resume): Use ptid_of_lwp and
10012         lwp_stop_reason.
10013
10014 2015-03-24  Gary Benson  <gbenson@redhat.com>
10015
10016         * linux-nat.h (linux_stop_lwp): Move declaration to...
10017         * nat/linux-nat.h (linux_stop_lwp): New declaration.
10018
10019 2015-03-24  Gary Benson  <gbenson@redhat.com>
10020
10021         * linux-nat.h: Include nat/linux-nat.h.
10022         (iterate_over_lwps): Move declaration to nat/linux-nat.h.
10023         * nat/linux-nat.h (struct lwp_info): New forward declaration.
10024         (iterate_over_lwps_ftype): New typedef.
10025         (iterate_over_lwps): New declaration.
10026         * linux-nat.h (iterate_over_lwps): Update comment.  Use
10027         iterate_over_lwps_ftype.  Update callback return value check.
10028
10029 2015-03-24  Gary Benson  <gbenson@redhat.com>
10030
10031         * x86-nat.h (x86_debug_reg_state): Move declaration to...
10032         * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
10033
10034 2015-03-24  Gary Benson  <gbenson@redhat.com>
10035
10036         * nat/linux-nat.h (current_lwp_ptid): New declaration.
10037         * linux-nat.c (current_lwp_ptid): New function.
10038         * x86-linux-nat.c: Include nat/linux-nat.h.
10039         (x86_linux_dr_get_addr): Use current_lwp_ptid.
10040         (x86_linux_dr_get_control): Likewise.
10041         (x86_linux_dr_get_status): Likewise.
10042         (x86_linux_dr_set_control): Likewise.
10043         (x86_linux_dr_set_addr): Likewise.
10044
10045 2015-03-24  Antoine Tremblay  <antoine.tremblay@ericsson.com>
10046
10047         PR breakpoints/16466
10048         * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
10049
10050 2015-03-23  Joel Brobecker  <brobecker@adacore.com>
10051
10052         * ser-mingw.c (ser_windows_setparity): Fix indentation.
10053         * ser-unix.c (hardwire_setparity): Likewise.
10054
10055 2015-03-23  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
10056
10057         * NEWS: Mention set/show serial parity command.
10058         * monitor.c (monitor_open): Call serial_setparity.
10059         * remote.c (remote_open_1): Likewise.
10060         * ser-base.c (ser_base_serparity): New function.
10061         * ser-base.h (ser_base_setparity): Add  declaration.
10062         * ser-go32.c (dos_ops): Set "setparity" field.
10063         * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
10064         state.Parity.
10065         (ser_windows_setparity): New function.
10066         (hardwire_ops): Add ser_windows_setparity.
10067         (tty_ops): Add NULL for setparity field.
10068         (pipe_ops): Add ser_base_setparity.
10069         (tcp_ops): Likewise.
10070         * ser-pipe.c (pipe_ops): Likewise.
10071         * ser-tcp.c (tcp_ops): Likewise.
10072         * ser-unix.c (hardwire_setparity): Add declaration.
10073         (hardwire_raw): Don't reset PARENB flag.
10074         (hardwire_setparity): New function.
10075         (hardwire_ops): Add hardwire_setparity.
10076         * serial.c (serial_setparity): New function.
10077         (serial_parity): New global.
10078         (parity_none, parity_odd, parity_even, parity_enums, parity):
10079         New static globals.
10080         (set_parity): New function.
10081         (_initialize_serial): Add set/show serial parity commands.
10082         * serial.h (GDBPARITY_NONE): Define.
10083         (GDBPARITY_ODD): Define.
10084         (GDBPARITY_EVEN): Define.
10085         (serial_setparity) Add declaration.
10086         (struct serial_ops): Add setparity field.
10087         * target.h (serial_parity): Add declaration.
10088
10089 2015-03-23  Keith Seitz  <keiths@redhat.com>
10090
10091         * linespec.c (linespec_lexer_lex_keyword): Update comment.
10092
10093 2015-03-23  Keith Seitz  <keiths@redhat.com>
10094
10095         * breakpoint.c (parse_breakpoint_sals): Use
10096         linespec_lexer_lex_keyword to ascertain if the user specified
10097         a NULL location.
10098         * linespec.c [IF_KEYWORD_INDEX]: Define.
10099         (linespec_lexer_lex_keyword): Export.
10100         (struct ls_parser) <keyword_ok>: Remove.
10101         A keyword is only a keyword if not followed by another keyword.
10102         (linespec_lexer_lex_one): Remove keyword_ok handling.
10103         Add comment explaining why the parsing stream is not advanced
10104         when a keyword is seen.
10105         (parse_linespec): Remove parser->keyword_ok.
10106         * linespec.h (linespec_lexer_lex_keyword): Add declaration.
10107
10108 2015-03-23  Keith Seitz  <keiths@redhat.com>
10109
10110         PR gdb/18021
10111         * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
10112         if we find a static method with DW_AT_vtable_elem_location.
10113
10114 2015-03-21  Eli Zaretskii  <eliz@gnu.org>
10115
10116         * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
10117         before the second loop, to avoid undefined behavior.  Reported by
10118         Anton Blanchard <anton@samba.org>.
10119
10120 2015-03-20  Keven Boell  <keven.boell@intel.com>
10121
10122         * gdbtypes.c (resolve_dynamic_type_internal): Adapt
10123         data_location usage to linked list.
10124         (resolve_dynamic_type_internal): Adapt data_location to
10125         linked list.
10126         (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
10127         (copy_type_recursive, copy_type): Add copy of linked list.
10128         * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
10129         (struct dynamic_prop_list): New struct.
10130         * dwarf2read.c (set_die_type): Set data_location data.
10131
10132 2015-03-20  Pedro Alves  <palves@redhat.com>
10133
10134         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
10135         inner block and make it const.
10136         * machoread.c (get_archive_prefix_len): Make "lparen" const.
10137
10138 2015-03-20  Pedro Alves  <palves@redhat.com>
10139
10140         * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
10141         * breakpoint.h (set_breakpoint_condition): Update declaration.
10142
10143 2015-03-20  Pedro Alves  <palves@redhat.com>
10144
10145         * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
10146
10147 2015-03-20  Pedro Alves  <palves@redhat.com>
10148
10149         * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
10150
10151 2015-03-20  Pedro Alves  <palves@redhat.com>
10152
10153         * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
10154
10155 2015-03-20  Pedro Alves  <palves@redhat.com>
10156
10157         * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
10158         (nto_init_solib_absolute_prefix): Likewise.
10159
10160 2015-03-20  Pedro Alves  <palves@redhat.com>
10161
10162         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
10163         * spu-tdep.c (spu_gdbarch_init): Make "name" const.
10164
10165 2015-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
10166
10167         * config/djgpp/README: Remove gdb.hp.
10168
10169 2015-03-20  Yao Qi  <yao.qi@linaro.org>
10170
10171         * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
10172         set_gdbarch_cannot_step_breakpoint.
10173
10174 2015-03-19  Pedro Alves  <palves@redhat.com>
10175
10176         * linux-nat.c (linux_resume_one_lwp): Rename to ...
10177         (linux_resume_one_lwp_throw): ... this.  Don't handle ESRCH here,
10178         instead call perror_with_name.
10179         (check_ptrace_stopped_lwp_gone): New function.
10180         (linux_resume_one_lwp): Reimplement as wrapper around
10181         linux_resume_one_lwp_throw that swallows errors if the LWP is
10182         gone.
10183         (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
10184         swallows errors if the LWP is gone.  Use
10185         linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
10186
10187 2015-03-19  Pedro Alves  <palves@redhat.com>
10188
10189         * linux-nat.c (status_callback): Return early if the LWP has no
10190         status pending.
10191
10192 2015-03-19  Pedro Alves  <palves@redhat.com>
10193
10194         * linux-nat.c (select_event_lwp_callback): Update comment to no
10195         longer mention SIGTRAP.
10196
10197 2015-03-18  Tristan Gingold  <gingold@adacore.com>
10198
10199         * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
10200         redirection code to ...
10201         (amd64_windows_frame_decode_insns): ... Here.  Fix in prologue
10202         checks.  Fix SAVE_NONVOL operations.  Add debug code and comments.
10203
10204 2015-03-18  Gary Benson <gbenson@redhat.com>
10205
10206         (remote_protocol_features): Remove the "vFile:fstat" feature.
10207         (remote_hostio_fstat): Probe for "vFile:fstat" support.
10208
10209 2015-03-11  Yao Qi  <yao.qi@linaro.org>
10210
10211         PR tdep/18107
10212         * aarch64-linux-tdep.c: Include xml-syscall.h
10213         (aarch64_linux_get_syscall_number): New function.
10214         (aarch64_linux_init_abi): Call
10215         set_gdbarch_get_syscall_number.
10216         * syscalls/aarch64-linux.xml: New file.
10217
10218 2015-03-17  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
10219
10220         * ser-base.h (ser_base_setstopbits): Change second argument name
10221         from "rate" to "num".
10222
10223 2015-03-17  Gary Benson <gbenson@redhat.com>
10224             Luke Allardyce <lukeallardyce@gmail.com>
10225
10226         PR gdb/18131
10227         * common/common-remote-fileio.h (sys/stat.h): New include.
10228         (stuct stat): Remove forward declaration.
10229
10230 2015-03-16  John Baldwin  <jhb@FreeBSD.org>
10231
10232         * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
10233         before writing core register notes.
10234
10235 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
10236             Pedro Alves  <palves@redhat.com>
10237
10238         * gdb_curses.h (tgetnum): Mark with EXTERN_C.
10239         * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
10240         (tgoto): Wrap with extern "C".
10241
10242 2015-03-16  Pedro Alves  <palves@redhat.com>
10243             Yuanhui Zhang  <asmwarrior@gmail.com>
10244
10245         * stub-termcap.c (tputs): Change prototype.
10246
10247 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
10248             Pedro Alves  <palves@redhat.com>
10249
10250         * windows-nat.c (struct thread_info_struct): Rename to ...
10251         (struct windows_thread_info_struct): ... this.
10252         (thread_info): Rename to ...
10253         (windows_thread_info): ... this.
10254         All users updated.
10255
10256 2015-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10257             Pedro Alves  <palves@redhat.com>
10258
10259         * NEWS: New Removed targets and native configurations.
10260
10261 2015-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
10262
10263         Remove HPUX.
10264         * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
10265         (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
10266         (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
10267         ia64-hpux-tdep.h, solib-ia64-hpux.h.
10268         (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
10269         ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
10270         * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
10271         hppa-hpux-tdep.c.
10272         * config/ia64/hpux.mh: Remove file.
10273         * config/pa/hpux.mh: Remove file.
10274         * configure: Rebuilt.
10275         * configure.ac (dlgetmodinfo, somread.o): Remove.
10276         * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10277         (ia64-*-hpux*): Remove its float format exception.
10278         * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10279         * hppa-hpux-nat.c: Remove file.
10280         * hppa-hpux-tdep.c: Remove file.
10281         * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
10282         Move them here from hppa-tdep.h
10283         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
10284         (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
10285         * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
10286         Move them to hppa-tdep.c.
10287         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
10288         declarations.
10289         * ia64-hpux-nat.c: Remove file.
10290         * ia64-hpux-tdep.c: Remove file.
10291         * ia64-hpux-tdep.h: Remove file.
10292         * inf-ttrace.c: Remove file.
10293         * inf-ttrace.h: Remove file.
10294         * solib-ia64-hpux.c: Remove file.
10295         * solib-ia64-hpux.h: Remove file.
10296         * solib-pa64.c: Remove file.
10297         * solib-pa64.h: Remove file.
10298         * solib-som.c: Remove file.
10299         * solib-som.h: Remove file.
10300         * somread.c: Remove file.
10301
10302 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
10303
10304         * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
10305         * config.in: Regenerate.
10306         * configure: Regenerate.
10307         * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
10308         define.
10309         (fbsd_find_memory_regions): Use kinfo_getvmmap to
10310         enumerate memory regions if present.
10311
10312 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
10313
10314         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
10315         * i386fbsd-tdep.c: Fix style in various gdb_static_assert
10316         expressions.
10317         (i386fbsd_sigtramp_p): Likewise.
10318
10319 2015-03-12  John Baldwin  <jhb@FreeBSD.org>
10320
10321         * MAINTAINERS (Write After Approval): Add John Baldwin.
10322
10323 2015-03-12  Gary Benson <gbenson@redhat.com>
10324
10325         * solib.c (_initialize_solib): Make "set/show sysroot" use
10326         add_setshow_optional_filename_cmd so it can be restored to
10327         empty after being set.
10328
10329 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
10330
10331         * Makefile.in (SFILES): New source break-catch-syscall.c.
10332         (COMMON_OBS): New object break-catch-syscall.o.
10333         * break-catch-syscall.c: New file.
10334         * breakpoint.c: Remove inclusion of "xml-syscall.h".
10335         (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
10336         (struct syscall_catchpoint): Likewise.
10337         (dtor_catch_syscall): Likewise.
10338         (catch_syscall_inferior_data): Likewise.
10339         (struct catch_syscall_inferior_data): Likewise.
10340         (get_catch_syscall_inferior_data): Likewise.
10341         (catch_syscall_inferior_data_cleanup): Likewise.
10342         (insert_catch_syscall): Likewise.
10343         (remove_catch_syscall): Likewise.
10344         (breakpoint_hit_catch_syscall): Likewise.
10345         (print_it_catch_syscall): Likewise.
10346         (print_one_catch_syscall): Likewise.
10347         (print_mention_catch_syscall): Likewise.
10348         (print_recreate_catch_syscall): Likewise.
10349         (catch_syscall_breakpoint_ops): Likewise.
10350         (syscall_catchpoint_p): Likewise.
10351         (create_syscall_event_catchpoint): Likewise.
10352         (catch_syscall_split_args): Likewise.
10353         (catch_syscall_command_1): Likewise.
10354         (is_syscall_catchpoint_enabled): Likewise.
10355         (catch_syscall_enabled): Likewise.
10356         (catching_syscall_number): Likewise.
10357         (catch_syscall_completer): Likewise.
10358         (clear_syscall_counts): Likewise.
10359         (initialize_breakpoint_ops): Move initialization of syscall
10360         catchpoints to break-catch-syscall.c.
10361         (_initialize_breakpoint): Move code related to syscall catchpoints
10362         to break-catch-syscall.c.
10363
10364 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
10365
10366         * breakpoint.c (breakpoint_find_if): New function.
10367         * breakpoint.h (breakpoint_find_if): New prototype.
10368
10369 2015-03-11  Gary Benson <gbenson@redhat.com>
10370
10371         * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
10372         * remote-fileio.c (remote_fileio_to_host_uint): New function.
10373         (remote_fileio_to_host_ulong): Likewise.
10374         (remote_fileio_to_host_mode): Likewise.
10375         (remote_fileio_to_host_time): Likewise.
10376         (remote_fileio_to_host_stat): Likewise.
10377         * remote.c (PACKET_vFile_fstat): New enum value.
10378         (remote_protocol_features): Register the "vFile:fstat" feature.
10379         (remote_hostio_fstat): New function.
10380         (remote_bfd_iovec_stat): Use the above.
10381         (_initialize_remote): Register new "set/show remote
10382         hostio-fstat-packet" command.
10383         * symfile.c (separate_debug_file_exists): Update comment.
10384         * NEWS: Announce new vFile:fstat packet.
10385
10386 2015-03-11  Gary Benson <gbenson@redhat.com>
10387
10388         * common/common-remote-fileio.h: New file.
10389         * common/common-remote-fileio.c: Likewise.
10390         * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10391         (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
10392         (COMMON_OBS): Add common-remote-fileio.o.
10393         (common-remote-fileio.o): New rule.
10394         * remote-fileio.h (common-remote-fileio.h): New include.
10395         * remote-fileio.c (gdb/fileio.h): Do not include.
10396         (remote_fileio_to_be): Moved to common-remote-fileio.h.
10397         (remote_fileio_to_fio_uint): Likewise.
10398         (remote_fileio_to_fio_time): Likewise.
10399         (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
10400         (remote_fileio_to_fio_mode): Likewise.
10401         (remote_fileio_to_fio_ulong): Likewise.
10402         (remote_fileio_to_fio_stat): Likewise.
10403
10404 2015-03-11  Andy Wingo  <wingo@igalia.com>
10405
10406         * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
10407         we were checking the cached type, not the cached dynamic type.
10408
10409 2015-03-11  Andy Wingo  <wingo@igalia.com>
10410
10411         * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
10412         other strings, as these are on the GC'd heap, and will be
10413         collected along with the smob.
10414
10415 2015-03-11  Andy Wingo  <wingo@igalia.com>
10416
10417         * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
10418         (objfile_functions): Bind gdbscm_objfile_progspace to
10419         objfile-progspace.
10420         * guile/lib/gdb.scm: Add objfile-progspace to exports.
10421
10422 2015-03-11  Andy Wingo  <wingo@igalia.com>
10423
10424         * guile/guile.c (_initialize_guile): Disable automatic
10425         finalization, if Guile offers us that possibility.
10426         * guile/guile.c (call_initialize_gdb_module):
10427         * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
10428         finalizers in appropriate places.
10429         * configure.ac (AC_TRY_LIBGUILE): Add a check for
10430         scm_set_automatic_finalization_enabled.
10431         * configure: Regenerated.
10432
10433 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10434
10435         * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
10436         SAL, if possible.
10437
10438 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10439
10440         * s390-linux-nat.c (struct arch_lwp_info): New.
10441         (s390_fix_watch_points): Rename to...
10442         (s390_prepare_to_resume): ...this.  Skip the PER info update
10443         unless the watch points have changed.
10444         (s390_refresh_per_info, s390_new_thread): New functions.
10445         (s390_insert_watchpoint): Call s390_refresh_per_info instead of
10446         s390_fix_watch_points.
10447         (s390_remove_watchpoint): Likewise.
10448         (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
10449         Register s390_prepare_to_resume.
10450
10451 2015-03-09  Pedro Alves  <palves@redhat.com>
10452
10453         Revert:
10454         2015-03-07  Pedro Alves  <palves@redhat.com>
10455         * common/gdb_socket.h: New file.
10456         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
10457         sys/socket.h.
10458         (net_open): Use union gdb_sockaddr_u.
10459
10460 2015-03-07  Pedro Alves  <palves@redhat.com>
10461
10462         * configure.ac (build_warnings): Move -Wmissing-prototypes
10463         -Wdeclaration-after-statement -Wmissing-parameter-type
10464         -Wold-style-declaration -Wold-style-definition to the C-specific
10465         set.
10466         * configure: Regenerate.
10467
10468 2015-03-07  Pedro Alves  <palves@redhat.com>
10469
10470         * common/gdb_socket.h: New file.
10471         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
10472         sys/socket.h.
10473         (net_open): Use union gdb_sockaddr_u.
10474
10475 2015-03-07  Pedro Alves  <palves@redhat.com>
10476
10477         * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
10478         (exceptions_state_mc_action_iter)
10479         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10480         Don't define.
10481         [__cplusplus] (try_scope_depth): New global.
10482         [__cplusplus] (exception_try_scope_entry)
10483         (exception_try_scope_exit, gdb_exception_sliced_copy)
10484         (exception_rethrow): New functions.
10485         (throw_exception): In C++ mode, throw
10486         gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
10487         gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
10488         (throw_it): In C++ mode, use try_scope_depth.
10489         * common/common-exceptions.h [!__cplusplus]
10490         (exceptions_state_mc_action_iter)
10491         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10492         Don't declare.
10493         [__cplusplus] (exception_try_scope_entry)
10494         (exception_try_scope_exit, exception_rethrow): Declare.
10495         [__cplusplus] (struct exception_try_scope): New struct.
10496         [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
10497         C++ exceptions.
10498         (struct gdb_exception_RETURN_MASK_ALL)
10499         (struct gdb_exception_RETURN_MASK_ERROR)
10500         (struct gdb_exception_RETURN_MASK_QUIT): New types.
10501
10502 2015-03-07  Pedro Alves  <palves@redhat.com>
10503
10504         * main.c (handle_command_errors): Remove volatile qualifier from
10505         parameter.
10506
10507 2015-03-07  Pedro Alves  <palves@redhat.com>
10508
10509         * breakpoint.c (save_breakpoints): Adjust to avoid code between
10510         TRY and CATCH.
10511         * gdbtypes.c (safe_parse_type): Remove empty line.
10512         (types_deeply_equal):
10513         * guile/scm-frame.c (gdbscm_frame_name):
10514         * linux-thread-db.c (find_new_threads_once):
10515         * python/py-breakpoint.c (bppy_get_commands):
10516         * record-btrace.c (record_btrace_insert_breakpoint)
10517         (record_btrace_remove_breakpoint, record_btrace_start_replaying)
10518         (record_btrace_start_replaying): Adjust to avoid code between TRY
10519         and CATCH.
10520
10521 2015-03-07  Pedro Alves  <palves@redhat.com>
10522
10523         * common/common-exceptions.c (struct catcher) <exception>: No
10524         longer a pointer to volatile exception.  Now an exception value.
10525         <mask>: Delete field.
10526         (exceptions_state_mc_init): Remove all parameters.  Adjust.
10527         (exceptions_state_mc): No longer pop the catcher here.
10528         (exceptions_state_mc_catch): New function.
10529         (throw_exception): Adjust.
10530         * common/common-exceptions.h (exceptions_state_mc_init): Remove
10531         all parameters.
10532         (exceptions_state_mc_catch): Declare.
10533         (TRY_CATCH): Rename to ...
10534         (TRY): ... this.  Remove EXCEPTION and MASK parameters.
10535         (CATCH, END_CATCH): New.
10536         All callers adjusted.
10537
10538 2015-03-07  Tom Tromey  <tromey@redhat.com>
10539
10540         * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
10541
10542 2015-03-07  Pedro Alves  <palves@redhat.com>
10543
10544         * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10545         (amd64_epilogue_frame_cache): Normal exception handling code.
10546         * break-catch-throw.c (check_status_exception_catchpoint)
10547         (re_set_exception_catchpoint): Ditto.
10548         * cli/cli-interp.c (safe_execute_command):
10549         * cli/cli-script.c (script_from_file): Ditto.
10550         * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
10551         Ditto.
10552         * compile/compile-object-run.c (compile_object_run): Ditto.
10553         * cp-abi.c (baseclass_offset): Ditto.
10554         * cp-valprint.c (cp_print_value): Ditto.
10555         * exceptions.c (catch_exceptions_with_msg):
10556         * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
10557         * frame.c (get_frame_address_in_block_if_available): Ditto.
10558         * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10559         (i386_sigtramp_frame_cache): Ditto.
10560         * infcmd.c (post_create_inferior): Ditto.
10561         * linespec.c (parse_linespec, find_linespec_symbols):
10562         * p-valprint.c (pascal_object_print_value): Ditto.
10563         * parse.c (parse_expression_for_completion): Ditto.
10564         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
10565         * remote.c (remote_get_noisy_reply): Ditto.
10566         * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
10567         * solib-svr4.c (solib_svr4_r_map): Ditto.
10568
10569 2015-03-06  Gary Benson  <gbenson@redhat.com>
10570
10571         * common/common-utils.h (startswith): New inline function.
10572         All places where this logic was used updated to use the above.
10573
10574 2015-03-05  Pedro Alves  <palves@redhat.com>
10575
10576         PR gdb/18002
10577         * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
10578         after reading the breakpoint's shadow memory.
10579
10580 2015-03-05  Mark Kettenis  <kettenis@gnu.org>
10581
10582         * hppabsd-nat.c: Remove file.
10583         * hppaobsd-nat.c: New file.
10584         * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c.  Add
10585         hppaobsd-nat.c.
10586         * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
10587         hppaobsd-nat.o.
10588
10589 2015-03-04  Pedro Alves  <palves@redhat.com>
10590
10591         * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
10592         (target_decr_pc_after_break): Delete declaration.
10593         * target.c (default_target_decr_pc_after_break)
10594         (target_decr_pc_after_break): Delete.
10595         * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
10596         gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
10597         * linux-thread-db.c (check_event): Likewise.
10598         * infrun.c (adjust_pc_after_break): Likewise.
10599         * darwin-nat.c (cancel_breakpoint): Likewise.
10600         * aix-thread.c (aix_thread_wait): Likewise.
10601         * target-delegates.c: Regenerate.
10602
10603 2015-03-04  Pedro Alves  <palves@redhat.com>
10604
10605         * linux-nat.c (save_sigtrap): Check for breakpoints before
10606         checking watchpoints.
10607         (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10608         breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10609         (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10610         a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10611         (linux_nat_stopped_by_sw_breakpoint)
10612         (linux_nat_supports_stopped_by_sw_breakpoint)
10613         (linux_nat_stopped_by_hw_breakpoint)
10614         (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10615         (linux_nat_wait_1): Don't re-increment the PC if relying on
10616         SIGTRAP's siginfo->si_code.
10617         (linux_nat_add_target): Install new target methods.
10618         * linux-thread-db.c (check_event): Don't account for breakpoint PC
10619         offset if the target already adjusted the PC.
10620         * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10621         (GDB_ARCH_TRAP_BRKPT): New.
10622         (TRAP_HWBKPT): Define if not already defined.
10623
10624 2015-03-04  Pedro Alves  <palves@redhat.com>
10625
10626         * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10627         * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10628         Delete field.
10629         <stop_reason>: New field.
10630         (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10631         (packet_set_cmd_state): New function.
10632         (remote_protocol_features): Register the "swbreak" and "hwbreak"
10633         features.
10634         (remote_query_supported): If not disabled with the corresponding
10635         "set remote foo-packet" command, report support for the swbreak
10636         and hwbreak features.
10637         (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10638         field.
10639         <stop_reason>: New field.
10640         (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10641         (remote_wait_as): Adjust.
10642         (remote_stopped_by_sw_breakpoint)
10643         (remote_supports_stopped_by_sw_breakpoint)
10644         (remote_stopped_by_hw_breakpoint)
10645         (remote_supports_stopped_by_hw_breakpoint): New functions.
10646         (remote_stopped_by_watchpoint): New function.
10647         (init_remote_ops): Install them.
10648         (_initialize_remote): Register new "set/show remote
10649         swbreak-feature-packet" and "set/show remote
10650         swbreak-feature-packet" commands.
10651
10652 2015-03-04  Pedro Alves  <palves@redhat.com>
10653
10654         * btrace.h: Include target/waitstatus.h.
10655         (struct btrace_thread_info) <stop_reason>: New field.
10656         * record-btrace.c (record_btrace_step_thread): Use
10657         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10658         (record_btrace_decr_pc_after_break): Delete.
10659         (record_btrace_stopped_by_sw_breakpoint)
10660         (record_btrace_supports_stopped_by_sw_breakpoint)
10661         (record_btrace_stopped_by_hw_breakpoint)
10662         (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10663         (init_record_btrace_ops): Install them.
10664         * record-full.c (record_full_hw_watchpoint): Delete and replace
10665         with ...
10666         (record_full_stop_reason): ... this throughout.
10667         (record_full_exec_insn): Adjust.
10668         (record_full_wait_1): Adjust.  No longer re-increment the PC.
10669         (record_full_wait_1): Adjust.  Use
10670         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10671         (record_full_stopped_by_watchpoint): Adjust.
10672         (record_full_stopped_by_sw_breakpoint)
10673         (record_full_supports_stopped_by_sw_breakpoint)
10674         (record_full_supports_stopped_by_sw_breakpoint)
10675         (record_full_stopped_by_hw_breakpoint)
10676         (record_full_supports_stopped_by_hw_breakpoint): New functions.
10677         (init_record_full_ops, init_record_full_core_ops): Install them.
10678         * record.c (record_check_stopped_by_breakpoint): New function.
10679         * record.h: Include target/waitstatus.h.
10680         (record_check_stopped_by_breakpoint): New declaration.
10681
10682 2015-03-04  Pedro Alves  <palves@redhat.com>
10683
10684         enum lwp_stop_reason -> enum target_stop_reason
10685         * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10686         (linux_nat_stopped_by_watchpoint, status_callback)
10687         (linux_nat_wait_1): Adjust.
10688         * linux-nat.h (enum lwp_stop_reason): Delete.
10689         (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10690         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10691         * target/waitstatus.h (enum target_stop_reason): New.
10692
10693 2015-03-04  Pedro Alves  <palves@redhat.com>
10694
10695         * breakpoint.c (need_moribund_for_location_type): New function.
10696         (bpstat_stop_status): Don't skipping checking moribund locations
10697         of breakpoint types which the target tell caused a stop.
10698         (program_breakpoint_here_p): New function, factored out from ...
10699         (bp_loc_is_permanent): ... this.
10700         (update_global_location_list): Don't create a moribund location if
10701         the target supports reporting stops of the type of the removed
10702         breakpoint.
10703         * breakpoint.h (program_breakpoint_here_p): New declaration.
10704         * infrun.c (adjust_pc_after_break): Return early if the target has
10705         already adjusted the PC.  Add comments.
10706         (handle_signal_stop): If nothing explains a signal, and the target
10707         tells us the stop was caused by a software breakpoint, check if
10708         there's a breakpoint instruction in the memory.  If so, adjust the
10709         PC before presenting the stop to the user.  Otherwise, ignore the
10710         trap.  If nothing explains a signal, and the target tells us the
10711         stop was caused by a hardware breakpoint, ignore the trap.
10712         * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10713         to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10714         to_supports_stopped_by_hw_breakpoint>: New fields.
10715         (target_stopped_by_sw_breakpoint)
10716         (target_supports_stopped_by_sw_breakpoint)
10717         (target_stopped_by_hw_breakpoint)
10718         (target_supports_stopped_by_hw_breakpoint): Define.
10719         * target-delegates.c: Regenerate.
10720
10721 2015-03-04  Pedro Alves  <palves@redhat.com>
10722
10723         * infrun.c (follow_fork_inferior): Use the whole of the
10724         inferior_ptid and pending_follow.related_pid ptids instead of
10725         building ptids from the process components.  Adjust verbose output
10726         to use target_pid_to_str.
10727         * linux-nat.c (linux_child_follow_fork): Use the whole of the
10728         inferior_ptid and pending_follow.related_pid ptids instead of
10729         building ptids from the process components.
10730
10731 2015-03-04  Mark Kettenis  <kettenis@gnu.org>
10732
10733         * inf-ptrace.c [PT_GET_PROCESS_STATE]
10734         (inf_ptrace_insert_fork_catchpoint): New function.
10735         (inf_ptrace_remove_fork_catchpoint): New function.
10736         (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10737
10738 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10739
10740         * s390-linux-tdep.c (s390_register_name): Return empty string
10741         instead of NULL for registers that shouldn't be visible.
10742
10743 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10744
10745         * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10746         XML file for 64-bit targets.
10747
10748 2015-03-03  Simon Marchi  <simon.marchi@ericsson.com>
10749
10750         * target.h (find_default_create_inferior): Remove declaration.
10751         (find_default_attach): Likewise.
10752
10753 2015-03-03  Pedro Alves  <palves@redhat.com>
10754
10755         * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10756         Use ptid_get_pid to get the overall process id when resuming all
10757         threads.
10758
10759 2015-03-03  Pedro Alves  <palves@redhat.com>
10760
10761         * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10762         the lwp field of ptid.  Pass the full ptid to get_thread_regcache.
10763         * inf-ptrace.c (get_ptrace_pid): New function.
10764         (inf_ptrace_resume): Use it.
10765         * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10766         to the lower layer.
10767
10768 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10769
10770         * nat/linux-btrace.c: Include sys/utsname.h.
10771         (linux_determine_kernel_ptr_bits): New.
10772         (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10773         * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10774         ptr_bits.
10775
10776 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10777
10778         * btrace.c (ftrace_update_function): Treat return as tailcall for
10779         "_dl_runtime_resolve".
10780
10781 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10782
10783         * btrace.h (btrace_function) <lbegin, lend>: Remove.
10784         * btrace.c (ftrace_debug): Do not print the line range.
10785         (ftrace_skip_file, ftrace_update_lines): Remove.
10786         (ftrace_new_function): Remove lbegin and lend initialization.
10787         (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10788         * record-btrace.c (btrace_compute_src_line_range): New.
10789         (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10790
10791 2015-03-02  Pedro Alves  <palves@redhat.com>
10792
10793         * infrun.c (follow_exec): Delete all threads of the process except
10794         the event thread.  Extended comments.
10795
10796 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
10797
10798         * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10799
10800 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
10801
10802         * utils.h: Remove <stdbool.h> #include.
10803         (producer_is_gcc): Change return type to "int".
10804         * utils.c (producer_is_gcc): Change return type to int.
10805         Return 1 instead of true, and 0 instead of false.
10806         Adjust function documentation accordingly.
10807
10808 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10809
10810         * s390-linux-nat.c (have_regset_vxrs): New static variable.
10811         (s390_linux_fetch_inferior_registers): Handle vector registers, if
10812         present.
10813         (s390_linux_store_inferior_registers): Likewise.
10814         (s390_get_hwcap): Remove function.  Embed its logic...
10815         (s390_read_description): ...here.  Yield a target description with
10816         vector registers if applicable.
10817         * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10818         "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10819         "features/s390x-tevx-linux64.c".
10820         (struct gdbarch_tdep) <v0_full_regnum>: New field.
10821         (s390_dwarf_regmap): Add vector registers.  Remove bogus entries
10822         for "GNU/Linux-specific registers".
10823         (s390_dwarf_reg_r0l): New enum value.
10824         (s390_dwarf_reg_to_regnum): Support vector registers.
10825         (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10826         of GPR lower halves.
10827         (regnum_is_vxr_full): New function.
10828         (s390_register_name): New function.
10829         (s390_pseudo_register_name): Handle v0-v15, which are composed of
10830         f0-f15 and v0l-v15l.
10831         (s390_pseudo_register_type): Likewise.
10832         (s390_pseudo_register_read): Likewise.
10833         (s390_pseudo_register_write): Likewise.
10834         (s390_value_from_register): Account for the fact that values are
10835         placed left-justified in vector registers.
10836         (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10837         the vector reggroup and omit them from the general reggroup.
10838         (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10839         (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10840         (s390_iterate_over_regset_sections): Add iterations for the two
10841         new vector regsets.
10842         (s390_core_read_description): Yield a target description with
10843         vector registers if applicable.
10844         (s390_gdbarch_init): Handle target descriptions with vector
10845         registers.  Add "register_name" gdbarch method.
10846         (_initialize_s390_tdep): Call new tdesc initialization functions.
10847         * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10848         (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10849         (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10850         (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10851         (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10852         (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10853         (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10854         (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10855         (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10856         (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10857         (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10858         (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10859         (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10860         (S390_NUM_REGS): Adjust value.
10861         (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10862         (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10863         (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10864         * NEWS: Announce S/390 vector register support.
10865
10866 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10867
10868         * features/s390-tevx-linux64.xml: New file.
10869         * features/s390-vx-linux64.xml: New file.
10870         * features/s390-vx.xml: New file.
10871         * features/s390x-tevx-linux64.xml: New file.
10872         * features/s390x-vx-linux64.xml: New file.
10873         * features/Makefile (WHICH): Add s390-vx-linux64,
10874         s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10875         (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10876         (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10877         macros.
10878         * features/s390-tevx-linux64.c: New generated file.
10879         * features/s390-vx-linux64.c: Likewise.
10880         * features/s390x-tevx-linux64.c: Likewise.
10881         * features/s390x-vx-linux64.c: Likewise.
10882         * regformats/s390-tevx-linux64.dat: Likewise.
10883         * regformats/s390-vx-linux64.dat: Likewise.
10884         * regformats/s390x-tevx-linux64.dat: Likewise.
10885         * regformats/s390x-vx-linux64.dat: Likewise.
10886
10887 2015-02-28  Doug Evans  <xdje42@gmail.com>
10888
10889         * symtab.h (struct symtab) <next>: Fix comment.
10890
10891 2015-02-27  Simon Marchi  <simon.marchi@ericsson.com>
10892
10893         * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10894         python_GdbMethods.
10895
10896 2015-02-27  Pedro Alves  <palves@redhat.com>
10897
10898         * dtrace-probe.c (dtrace_probe_ops): Make extern.
10899
10900 2015-02-27  Pedro Alves  <palves@redhat.com>
10901
10902         * common/common-exceptions.h (exception_none): Declare.
10903         * common/common-exceptions.c (exception_none): Moved from
10904         exceptions.c.
10905         (exceptions_state_mc_init): Use exception_none.
10906         * exceptions.c (exception_none): Move to
10907         common/common-exceptions.c.
10908         * exceptions.h (exception_none): Move to
10909         common/common-exceptions.h.
10910
10911 2015-02-27  Pedro Alves  <palves@redhat.com>
10912
10913         * main.c (catch_command_errors, catch_command_errors_const):
10914         Remove 'mask' argument.  Adjust.
10915         (captured_main): Adjust callers.
10916
10917 2015-02-27  Pedro Alves  <palves@redhat.com>
10918
10919         * python/python-internal.h: Include "extension-priv.h".
10920
10921 2015-02-27  Pedro Alves  <palves@redhat.com>
10922
10923         * breakpoint.h (enum print_stop_action): Move further up in the
10924         file.
10925
10926 2015-02-27  Pedro Alves  <palves@redhat.com>
10927
10928         * gdbarch.sh: Include regcache.h.
10929         * gdbarch.h: Regenerate.
10930
10931 2015-02-27  Pedro Alves  <palves@redhat.com>
10932
10933         * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10934         Remove duplicate const.
10935         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10936         duplicate const.
10937
10938 2015-02-27  Pedro Alves  <palves@redhat.com>
10939
10940         * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10941         * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10942         * features/feature_to_c.sh: Tag the generated xml_builtin array
10943         with extern const in C++ mode.
10944
10945 2015-02-27  Tom Tromey  <tromey@redhat.com>
10946
10947         * minidebug.c (struct lzma_stream): Rename to ...
10948         (struct gdb_lzma_stream): ... this.
10949         (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10950
10951 2015-02-27  Pedro Alves  <palves@redhat.com>
10952
10953         * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10954         function.
10955         (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10956         (mi_cmd_stack_list_variables): Use it.
10957
10958 2015-02-27  Pedro Alves  <palves@redhat.com>
10959
10960         * x86-linux-nat.c (u_debugreg_offset): New function.
10961         (x86_linux_dr_get, x86_linux_dr_set): Use it.
10962
10963 2015-02-27  Pedro Alves  <palves@redhat.com>
10964
10965         * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10966         declaration.
10967         Include break-common.h.
10968
10969 2015-02-27  Tom Tromey  <tromey@redhat.com>
10970             Pedro Alves <palves@redhat.com>
10971
10972         * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10973         local used to iterate over enums.
10974         * completer.c (signal_completer): Likewise.
10975         * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10976         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10977         * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10978         * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10979         * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10980         (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10981         * tui-wingeneral.c (tui_refresh_all):  Likewise.
10982
10983 2015-02-27  Pedro Alves  <palves@redhat.com>
10984
10985         * target.h: Include "infrun.h".
10986
10987 2015-02-27  Pedro Alves  <palves@redhat.com>
10988
10989         * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10990
10991 2015-02-27  Pedro Alves  <palves@redhat.com>
10992
10993         * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10994         (IPA_SYM): Use it.
10995         * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10996
10997 2015-02-27  Pedro Alves  <palves@redhat.com>
10998
10999         * cli-out.c (_rl_erase_entire_line): Move declaration out of
11000         cli_mld_erase_entire_line, and make it extern "C".
11001         * common/common-defs.h (EXTERN_C): New.
11002         * completer.c (_rl_completion_prefix_display_length)
11003         (_rl_print_completions_horizontally, QSFUNC): Move declarations
11004         out of gdb_display_match_list_1.
11005         (_rl_qsort_string_compare): Move declaration out of
11006         gdb_display_match_list_1, and make it extern "C".
11007         * defs.h (re_comp): Use EXTERN_C.
11008         * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
11009         and make it extern "C".
11010         (monstartup): Move declaration out of maintenance_set_profile_cmd,
11011         and make it extern "C".
11012         (main): Move declaration out of maintenance_set_profile_cmd.
11013         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
11014         EXTERN_C.
11015
11016 2015-02-27  Pedro Alves  <palves@redhat.com>
11017
11018         * python/python.c (GdbMethods): Rename to ...
11019         (python_GdbMethods): ... this and make extern.
11020         (GdbModuleDef): Rename to ...
11021         (python_GdbModuleDef): ... this and make extern.
11022
11023 2015-02-27  Pedro Alves  <palves@redhat.com>
11024
11025         * record-btrace.c (set_record_btrace_cmdlist)
11026         (show_record_btrace_cmdlist): Remove redefinitions.
11027
11028 2015-02-27  Tom Tromey  <tromey@redhat.com>
11029             Pedro Alves  <palves@redhat.com>
11030
11031         * dwarf2-frame.c (enum cfa_how_kind, struct
11032         dwarf2_frame_state_reg_info): Move out of struct
11033         dwarf2_frame_state.
11034         * dwarf2read.c (struct tu_stats): Move out of struct
11035         dwarf2_per_objfile.
11036         (struct file_entry): Move out of struct line_header.
11037         (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
11038         typedef_field_list): Move out of struct field_info.
11039         * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
11040         Move out of struct dynamic_prop.
11041         (union type_owner, union field_location, struct field, struct
11042         range_bounds, union type_specific): Move out of struct main_type.
11043         (struct fn_fieldlist, struct fn_field, struct typedef_field)
11044         (VOFFSET_STATIC): Move out of struct cplus_struct_type.
11045         (struct call_site_target, union call_site_parameter_u, struct
11046         call_site_parameter): Move out of struct call_site.
11047         * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
11048         m32c_prologue.
11049         (enum srcdest_kind): Move out of struct srcdest.
11050         * main.c (enum cmdarg_kind): Move out of struct cmdarg.
11051         * prologue-value.h (enum prologue_value_kind): Move out of struct
11052         prologue_value.
11053         * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
11054         gdbarch_tdep.
11055         * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
11056         out of struct field_info.
11057         * symfile.h (struct other_sections): Move out of struct
11058         section_addr_info.
11059         * symtab.c (struct symbol_cache_slot): Move out struct
11060         block_symbol_cache.
11061         * target-descriptions.c (enum tdesc_type_kind): Move out of
11062         typedef struct tdesc_type.
11063         * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
11064         struct tui_line_or_address.
11065         * value.c (enum internalvar_kind, union internalvar_data): Move
11066         out of struct internalvar.
11067         * xtensa-tdep.h (struct ctype_cache): Move out of struct
11068         gdbarch_tdep.
11069
11070 2015-02-27  Tom Tromey  <tromey@redhat.com>
11071             Pedro Alves  <palves@redhat.com>
11072
11073         Rename symbols whose names are reserved C++ keywords throughout.
11074
11075 2015-02-27  Pedro Alves  <palves@redhat.com>
11076
11077         * Makefile.in (COMPILER): New, get it from autoconf.
11078         (COMPILE.pre, CC_LD): Use COMPILER.
11079         (CXX): Get from autoconf instead.
11080         (CXX_FOR_TARGET): Default to g++ instead of gcc.
11081         * acinclude.m4: Include build-with-cxx.m4.
11082         * build-with-cxx.m4: New file.
11083         * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11084         Disable -Werror by default if building in C++ mode.
11085         (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11086         -Wno-narrowing in C++ mode.  Only enable -Wpointer-sign in C mode.
11087         Run supported-warning-flags tests with the C++ compiler.
11088         Save/restore CXXFLAGS too.
11089         * configure: Regenerate.
11090
11091 2015-02-27  Pedro Alves  <palves@redhat.com>
11092
11093         * libiberty.m4: New file.
11094         * acinclude.m4: Include libiberty.m4.
11095         * configure.ac: Call libiberty_INIT.
11096         * config.in, configure: Regenerate.
11097
11098 2015-02-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11099
11100         * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
11101         31-bit targets, but 64-bit targets as well.
11102         (s390_gnu_triplet_regexp): New function.
11103         (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
11104         64-bit targets as well.  Set the gnu_triplet_regexp gdbarch
11105         method.
11106
11107 2015-02-27  Jon TURNEY  <jon.turney@dronecode.org.uk>  (tiny patch)
11108
11109         * windows-nat.c (CONTEXT_DEBUGGER): Remove.
11110         (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS.  Incorporate flags
11111         from CONTEXT_DEBUGGER.
11112
11113 2015-02-26  Doug Evans  <dje@google.com>
11114
11115         * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
11116         CHECK_TYPEDEF.
11117         (set_type_vptr_fieldno): Ditto.
11118         (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
11119         * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
11120
11121 2015-02-26  Pedro Alves  <palves@redhat.com>
11122
11123         * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
11124         * complaints.c (vcomplaint): Pass argument FMT directly to
11125         printf-like functions instead of complaint->fmt.
11126         * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
11127         * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
11128         * compile/compile-loc2c.c (pushf, unary, binary): Add
11129         ATTRIBUTE_PRINTF.
11130         (do_compile_dwarf_expr_to_c): Pass string literal as format string
11131         to pushf.
11132         (BINARY): Pass string literal as format string to 'binary'.
11133         * compile/compile-object-load.c (link_callbacks_einfo): Add
11134         ATTRIBUTE_PRINTF.
11135         * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
11136
11137 2015-02-26  Pedro Alves  <palves@redhat.com>
11138
11139         * windows-termcap.c: Rename to ...
11140         * stub-termcap.c: ... this.  Adjust header line.
11141         * Makefile.in (SFILES): Refer to stub-termcap.c instead of
11142         windows-termcap.c.
11143         * configure: Regenerate.
11144         * configure.ac: Refer to stub-termcap.o instead of
11145         windows-termcap.o.
11146         * gdb_curses.h: Mention stub-termcap.c instead of
11147         windows-termcap.c.
11148
11149 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
11150
11151         * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
11152         (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
11153
11154 2015-02-26  Antoine Tremblay  <antoine.tremblay@ericsson.com>
11155
11156         * gdb/infcmd.c (print_return_value): use type_to_string to print type.
11157
11158 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
11159
11160         * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
11161         bfd_canonicalize_symtab.
11162
11163 2015-02-25  John Baldwin  <jhb@FreeBSD.org>
11164
11165         * amd64fbsd-nat.c: Include sys/user.h.
11166         (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11167         instead of KERN_PS_STRINGS to locate the signal trampoline.
11168         * i386fbsd-nat.c: Include sys/user.h.
11169         (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11170         instead of KERN_PS_STRINGS to locate the signal trampoline.
11171         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
11172         (amd64fbsd_sigtramp_p): New.
11173         (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
11174         longer set default values.
11175         (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
11176         * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
11177         (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
11178         (i386fbsd_freebsd4_sigtramp_start)
11179         (i386fbsd_freebsd4_sigtramp_middle)
11180         (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
11181         (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
11182         (i386fbsd_sigtramp_p): New.
11183         (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
11184         longer set default values.
11185         (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
11186
11187 2015-02-25  John Baldwin  <jhb@freebsd.org>
11188
11189         * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
11190         get_frame_register instead of frame_unwind_register_unsigned.
11191
11192 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
11193
11194         PR build/18033
11195         * compile/compile-c-support.c (c_compute_program): Change // comment.
11196         * compile/compile-object-load.c (setup_sections): Change // comment.
11197
11198 2015-02-26  Joel Brobecker  <brobecker@adacore.com>
11199
11200         PR build/18033:
11201         * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
11202
11203 2015-02-23  Pedro Alves  <palves@redhat.com>
11204
11205         * remote.c (skip_to_semicolon): New function.
11206         (remote_parse_stop_reply) <T stop reply>: Use it.  Don't
11207         special case the stop reasons that look like hex numbers
11208         upfront.  Instead handle real register numbers after matching
11209         all the known stop reasons.
11210
11211 2015-02-21  Doug Evans  <dje@google.com>
11212
11213         PR c++/17976, symtab/17821
11214         * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
11215         is_in_anonymous.  All callers updated.
11216         (find_symbol_in_baseclass): Ditto.
11217         (cp_lookup_nested_symbol_1): Ditto.  Don't search all static blocks
11218         for symbols in an anonymous namespace.
11219         * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
11220         DW_AT_name directly.
11221         (dwarf2_name): Convert missing namespace name to
11222         CP_ANONYMOUS_NAMESPACE_STR.
11223
11224 2015-02-20  Pedro Alves  <palves@redhat.com>
11225
11226         * linux-nat.c (linux_handle_extended_wait): Call
11227         thread_db_notice_clone whenever a new clone LWP is detected.
11228         (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
11229         functions.
11230         * linux-nat.h (thread_db_attach_lwp): Delete declaration.
11231         (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
11232         (linux_unstop_all_lwps): Declare.
11233         * linux-thread-db.c (struct thread_get_info_inout): Delete.
11234         (thread_get_info_callback): Delete.
11235         (thread_from_lwp): Use td_thr_get_info and record_thread.
11236         (thread_db_attach_lwp): Delete.
11237         (thread_db_notice_clone): New function.
11238         (try_thread_db_load_1): If /proc is mounted and shows the
11239         process'es task list, walk over all LWPs and call thread_from_lwp
11240         instead of relying on td_ta_thr_iter.
11241         (attach_thread): Don't call check_thread_signals here.  Split the
11242         tail part of the function (which adds the thread to the core GDB
11243         thread list) to ...
11244         (record_thread): ... this function.  Call check_thread_signals
11245         here.
11246         (thread_db_wait): Don't call thread_db_find_new_threads_1.  Always
11247         call thread_from_lwp.
11248         (thread_db_update_thread_list): Rename to ...
11249         (thread_db_update_thread_list_org): ... this.
11250         (thread_db_update_thread_list): New function.
11251         (thread_db_find_thread_from_tid): Delete.
11252         (thread_db_get_ada_task_ptid): Simplify.
11253         * nat/linux-procfs.c: Include <sys/stat.h>.
11254         (linux_proc_task_list_dir_exists): New function.
11255         * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
11256
11257 2015-02-20  Pedro Alves  <palves@redhat.com>
11258
11259         * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
11260         main LWP.  Handle the case of waitpid returning 0 if we're already
11261         attached to the LWP.  Don't set the LWP's last_resume_kind to
11262         resume_stop if we already knew about the LWP.
11263         (linux_nat_filter_event): Add debug logs.
11264
11265 2015-02-20  Pedro Alves  <palves@redhat.com>
11266
11267         * target.h (forward_target_decr_pc_after_break): Delete
11268         declaration.
11269
11270 2015-02-20  Pedro Alves  <palves@redhat.com>
11271
11272         PR threads/18006
11273         * linux-thread-db.c (thread_get_info_callback): Return early if
11274         the thread's lwp id is -1.
11275
11276 2015-02-20  Joel Brobecker  <brobecker@adacore.com>
11277
11278         GDB 7.9 released.
11279
11280 2015-02-19  Steve Ellcey  <sellcey@imgtec.com>
11281
11282         * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
11283         (dtrace_get_probes) Change type of variable 'dof'.
11284
11285 2015-02-19  Antoine Tremblay  <antoine.tremblay@ericsson.com>
11286
11287         PR breakpoints/16812
11288         * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
11289         * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
11290         * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
11291
11292 2015-02-19  David Taylor  <dtaylor@emc.com>
11293
11294         * common/ax.def (setv): Fix consumed entry in setv DEFOP.
11295
11296 2015-02-18  Patrick Palka  <patrick@parcs.ath.cx>
11297
11298         * tui/tui-io.c (tui_handle_resize_during_io): Remove this
11299         function.
11300         (tui_putc): Don't call tui_handle_resize_during_io.
11301         (tui_getc): Likewise.
11302         (tui_mld_getc): Likewise.
11303         * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
11304         (tui_sigwinch_token): New static variable.
11305         (tui_initialize_win): Adjust documentation.  Set
11306         tui_sigwinch_token.
11307         (tui_async_resize_screen): New asynchronous callback.
11308         (tui_sigwinch_handler): Adjust documentation.  Asynchronously
11309         invoke tui_async_resize_screen.
11310
11311 2015-02-18  Jose E. Marchesi  <jose.marchesi@oracle.com>
11312
11313         * configure: Regenerated.
11314         * configure.ac: Use GDB_AC_TRANSFORM.
11315         * Makefile.in (aclocal_m4_deps): Added transform.m4.
11316         * acinclude.m4: sinclude transform.m4.
11317         * transform.m4: New file.
11318         (GDB_AC_TRANSFORM): New macro.
11319
11320 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11321
11322         * NEWS: Announce the support for DTrace SDT probes.
11323
11324 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11325
11326         * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
11327         (amd64_dtrace_parse_probe_argument): New function.
11328         (amd64_dtrace_probe_is_enabled): Likewise.
11329         (amd64_dtrace_enable_probe): Likewise.
11330         (amd64_dtrace_disable_probe): Likewise.
11331         (amd64_linux_init_abi): Register the
11332         `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
11333         `gdbarch_dtrace_disable_probe' and
11334         `gdbarch_dtrace_probe_is_enabled' hooks.
11335         (amd64_dtrace_disabled_probe_sequence_1): New constant.
11336         (amd64_dtrace_disabled_probe_sequence_2): Likewise.
11337         (amd64_dtrace_enable_probe_sequence): Likewise.
11338         (amd64_dtrace_disable_probe_sequence): Likewise.
11339
11340 2015-01-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11341
11342         * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
11343         the -probe-dtrace new vpossible value for PROBE_MODIFIER.
11344         * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
11345         handle ELF files.
11346         * Makefile.in (SFILES): dtrace-probe.c added.
11347         * configure: Regenerate.
11348         * dtrace-probe.c: New file.
11349         (SHT_SUNW_dof): New constant.
11350         (dtrace_probe_type): New enum.
11351         (dtrace_probe_arg): New struct.
11352         (dtrace_probe_arg_s): New typedef.
11353         (struct dtrace_probe_enabler): New struct.
11354         (dtrace_probe_enabler_s): New typedef.
11355         (dtrace_probe): New struct.
11356         (dtrace_probe_is_linespec): New function.
11357         (dtrace_dof_sect_type): New enum.
11358         (dtrace_dof_dofh_ident): Likewise.
11359         (dtrace_dof_encoding): Likewise.
11360         (DTRACE_DOF_ENCODE_LSB): Likewise.
11361         (DTRACE_DOF_ENCODE_MSB): Likewise.
11362         (dtrace_dof_hdr): New struct.
11363         (dtrace_dof_sect): Likewise.
11364         (dtrace_dof_provider): Likewise.
11365         (dtrace_dof_probe): Likewise.
11366         (DOF_UINT): New macro.
11367         (DTRACE_DOF_PTR): Likewise.
11368         (DTRACE_DOF_SECT): Likewise.
11369         (dtrace_process_dof_probe): New function.
11370         (dtrace_process_dof): Likewise.
11371         (dtrace_build_arg_exprs): Likewise.
11372         (dtrace_get_arg): Likewise.
11373         (dtrace_get_probes): Likewise.
11374         (dtrace_get_probe_argument_count): Likewise.
11375         (dtrace_can_evaluate_probe_arguments): Likewise.
11376         (dtrace_evaluate_probe_argument): Likewise.
11377         (dtrace_compile_to_ax): Likewise.
11378         (dtrace_probe_destroy): Likewise.
11379         (dtrace_gen_info_probes_table_header): Likewise.
11380         (dtrace_gen_info_probes_table_values): Likewise.
11381         (dtrace_probe_is_enabled): Likewise.
11382         (dtrace_probe_ops): New variable.
11383         (info_probes_dtrace_command): New function.
11384         (_initialize_dtrace_probe): Likewise.
11385         (dtrace_type_name): Likewise.
11386
11387 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11388
11389         * gdbarch.sh (dtrace_parse_probe_argument): New.
11390         (dtrace_probe_is_enabled): Likewise.
11391         (dtrace_enable_probe): Likewise.
11392         (dtrace_disable_probe): Likewise.
11393         * gdbarch.c: Regenerate.
11394         * gdbarch.h: Regenerate.
11395
11396 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11397
11398         * stap-probe.c (stap_probe_ops): Add NULLs in the static
11399         stap_probe_ops for `enable_probe' and `disable_probe'.
11400         * probe.c (enable_probes_command): New function.
11401         (disable_probes_command): Likewise.
11402         (_initialize_probe): Define the cli commands `enable probe' and
11403         `disable probe'.
11404         (parse_probe_linespec): New function.
11405         (info_probes_for_ops): Use parse_probe_linespec.
11406         * probe.h (probe_ops): New hooks `enable_probe' and
11407         `disable_probe'.
11408
11409 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11410
11411         * probe.c (compute_probe_arg): Moved from stap-probe.c
11412         (compile_probe_arg): Likewise.
11413         (probe_funcs): Likewise.
11414         * stap-probe.c (compute_probe_arg): Moved to probe.c.
11415         (compile_probe_arg): Likewise.
11416         (probe_funcs): Likewise.
11417
11418 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11419
11420         * probe.c (print_ui_out_not_applicables): New function.
11421         (exists_probe_with_pops): Likewise.
11422         (info_probes_for_ops): Do not include column headers for probe
11423         types for which no probe has been actually found on any object.
11424         Also invoke `print_ui_out_not_applicables' in order to match the
11425         column rows with the header when probes of several types are
11426         listed.
11427         Print the "Type" column.
11428         * probe.h (probe_ops): Added a new probe operation `type_name'.
11429         * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
11430         (stap_type_name): New function.
11431
11432 2015-02-17  Patrick Palka  <patrick@parcs.ath.cx>
11433
11434         * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
11435         (key_is_command_char): Delete.
11436
11437 2015-02-17  Pedro Alves  <palves@redhat.com>
11438
11439         * tui/tui.c (tui_enable): Resize windows before anything
11440         might show a window.
11441
11442 2015-02-17  Max Ostapenko  <m.ostapenko@partner.samsung.com>
11443
11444         PR gdb/17984
11445         * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
11446         (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
11447         call.
11448         * aarch64-tdep.h (tdesc_aarch64): Declare.
11449
11450 2015-02-12  Mark Wielaard  <mjw@redhat.com>
11451
11452         * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
11453
11454 2015-02-13  Doug Evans  <dje@google.com>
11455
11456         * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
11457         anonymous_namespace to is_in_anonymous for consistency with the rest
11458         of the file.
11459         (cp_lookup_bare_symbol): Fix typo in comment.
11460         (cp_search_static_and_baseclasses): Ditto.
11461         (search_symbol_list): Use vertical space in comment better.
11462         (reset_directive_searched): Ditto. Fix typo.
11463         (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
11464
11465 2015-02-13  Yao Qi  <yao.qi@arm.com>
11466
11467         * MAINTAINERS: Update my email address.
11468
11469 2015-02-12  Doug Evans  <dje@google.com>
11470
11471         * symtab.c (completion_list_add_name): Fix memory leak.
11472
11473 2015-02-12  Doug Evans  <dje@google.com>
11474
11475         * completer.c (complete_line): Remove incorrect comment.
11476
11477 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11478
11479         * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
11480         (py_print_frame): Use RETURN_MASK_ERROR.
11481
11482 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11483
11484         * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
11485         function comment.  Wrap all function that can throw in cleanups.
11486         (gdbpy_apply_frame_filter): Wrap all function that can throw in
11487         cleanups.
11488
11489 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11490
11491         * python/py-framefilter.c (py_print_frame): Substitute goto error.
11492         Remove the error label.
11493
11494 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11495
11496         * python/py-framefilter.c (py_print_frame): Put conditional code paths
11497         with goto first, indent the former else codepath left.  Put variable
11498         'elided' to a new inner block.
11499
11500 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11501
11502         * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
11503
11504 2015-02-11  Pedro Alves  <palves@redhat.com>
11505
11506         * xcoffread.c (within_function): Delete.
11507
11508 2015-02-11  Tom Tromey  <tromey@redhat.com>
11509             Pedro Alves <palves@redhat.com>
11510
11511         * breakpoint.c (base_breakpoint_ops): Delete.
11512         * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
11513         * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
11514         * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
11515         * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
11516         * python/py-arch.c (arch_object_type): Make extern.
11517         * python/py-block.c (block_syms_iterator_object_type): Make extern.
11518         * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
11519         * python/py-cmd.c (cmdpy_object_type): Make extern.
11520         * python/py-continueevent.c (continue_event_object_type)
11521         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
11522         parameter.  Update all callers.
11523         * python/py-evtregistry.c (eventregistry_object_type): Make extern.
11524         * python/py-exitedevent.c (exited_event_object_type): Make extern.
11525         * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
11526         * python/py-function.c (fnpy_object_type): Make extern.
11527         * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
11528         * python/py-infevents.c (call_pre_event_object_type)
11529         (inferior_call_post_event_object_type).
11530         (memory_changed_event_object_type): Make extern.
11531         * python/py-infthread.c (thread_object_type): Make extern.
11532         * python/py-lazy-string.c (lazy_string_object_type): Make extern.
11533         * python/py-linetable.c (linetable_entry_object_type)
11534         (linetable_object_type, ltpy_iterator_object_type): Make extern.
11535         * python/py-newobjfileevent.c (new_objfile_event_object_type)
11536         (clear_objfiles_event_object_type): Make extern.
11537         * python/py-objfile.c (objfile_object_type): Make extern.
11538         * python/py-param.c (parmpy_object_type): Make extern.
11539         * python/py-progspace.c (pspace_object_type): Make extern.
11540         * python/py-signalevent.c (signal_event_object_type): Make extern.
11541         * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
11542         * python/py-type.c (type_object_type, field_object_type)
11543         (type_iterator_object_type): Make extern.
11544         * python/python.c (python_extension_script_ops)
11545         (python_extension_ops): Make extern.
11546         * stap-probe.c (stap_probe_ops): Make extern.
11547
11548 2015-02-11  Pedro Alves  <pedro@codesourcery.com>
11549
11550         * infrun.c (adjust_pc_after_break): Don't adjust the PC just
11551         because the event thread is not the current thread.
11552
11553 2015-02-11  Doug Evans  <xdje42@gmail.com>
11554
11555         * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
11556         been initialized yet, return NULL.
11557
11558 2015-02-11  Doug Evans  <dje@google.com>
11559
11560         * symfile.h (new_symfile_objfile): Delete.
11561         * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
11562         All callers updated.
11563
11564 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
11565
11566         * tui/tui-io.c (tui_handle_resize_during_io): Call
11567         tui_update_gdb_sizes() after resizing the screen.
11568         * tui/tui.c (tui_enable): Resize the terminal before
11569         calling tui_update_gdb_sizes().
11570
11571 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
11572
11573         * tui/tui-io.c (tui_getc): Move cursor to the end of the command
11574         line before printing a newline.
11575
11576 2015-02-11  Mark Wielaard  <mjw@redhat.com>
11577
11578         * utils.c (producer_is_gcc): Return true or false.
11579
11580 2015-02-10  Mark Wielaard  <mjw@redhat.com>
11581
11582         * utils.h (producer_is_gcc): Change return type to bool. Add major
11583         argument.
11584         * utils.c (producer_is_gcc): Likewise.
11585         (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
11586         * dwarf2read.c (check_producer): Likewise.
11587
11588 2015-02-10  Pedro Alves  <palves@redhat.com>
11589
11590         * infrun.c (displaced_step_fixup): Switch to the event thread
11591         before calling gdbarch_displaced_step_fixup.
11592
11593 2015-02-10  Antoine Tremblay <antoine.tremblay@ericsson.com>
11594
11595         * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
11596
11597 2015-02-10  Simon Marchi  <simon.marchi@ericsson.com>
11598
11599         * ada-varobj.c (ada_name_of_child): Constify parent.
11600         (ada_path_expr_of_child): Same.
11601         (ada_value_of_child): Same.
11602         (ada_type_of_child): Same.
11603         * c-varobj.c (c_is_path_expr_parent): Same.
11604         (c_describe_child): Same.
11605         (c_name_of_child): Same.
11606         (c_value_of_child): Same.
11607         (c_type_of_child): Same.
11608         (cplus_number_of_children): Same.
11609         (cplus_describe_child): Constify var.
11610         (cplus_name_of_child): Constify parent.
11611         (cplus_value_of_child): Same.
11612         (cplus_type_of_child): Same.
11613         * jv-varobj.c (java_name_of_child): Same.
11614         (java_value_of_child): Same.
11615         (java_type_of_child): Same.
11616         * varobj.c (value_of_child): Same.
11617         (varobj_default_is_path_expr_parent): Constify var, parent and return
11618         value.
11619         (varobj_get_path_expr): Constify var, modify path_expr through
11620         mutable_var.
11621         (install_new_value): Constify parent.
11622         (value_of_child): Constify parent.
11623         * varobj.h (struct varobj): Constify parent.
11624         (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11625         type_of_child.
11626         (varobj_get_path_expr): Constify var.
11627         (varobj_get_path_expr_parent): Constify var and return value.
11628
11629 2015-02-10  Luis Machado  <lgustavo@codesourcery.com>
11630
11631         * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11632         (arm_prologue_this_id): Move PC and SP limit checks to
11633         arm_prologue_unwind_stop_reason.
11634         (arm_prologue_unwind) <stop_reason> : Set to
11635         arm_prologue_unwind_stop_reason.
11636
11637 2015-02-09  Mark Wielaard  <mjw@redhat.com>
11638
11639         * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11640         DW_LANG_Fortran08 as language_fortran.
11641
11642 2015-02-09  Sergio Durigan Junior  <sergiodj@redhat.com>
11643
11644         PR remote/17946
11645         * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11646         of pointer against char.
11647
11648 2015-02-09  Mark Wielaard  <mjw@redhat.com>
11649
11650         * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11651         (c_type_print_modifier): Likewise.
11652         * dwarf2read.c (read_tag_atomic_type): New function.
11653         (read_type_die_1): Handle DW_TAG_atomic_type.
11654         * gdbtypes.c (make_atomic_type): New function.
11655         (recursive_dump_type): Handle TYPE_ATOMIC.
11656         * gdbtypes.h (enum type_flag_values): Renumber.
11657         (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11658         (TYPE_ATOMIC): New macro.
11659         (make_atomic_type): Declare.
11660
11661 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11662
11663         * btrace.c (ftrace_find_call): Skip gaps.
11664         (ftrace_new_function): Initialize level.
11665         (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11666         (ftrace_new_switch): Update
11667         level computation.
11668         (ftrace_new_gap): New.
11669         (ftrace_update_function): Create new function after gap.
11670         (btrace_compute_ftrace_bts): Create gap on error.
11671         (btrace_stitch_bts): Update parameters.  Clear trace if it
11672         becomes empty.
11673         (btrace_stitch_trace): Update parameters.  Update callers.
11674         (btrace_clear): Reset the number of gaps.
11675         (btrace_insn_get): Return NULL if the iterator points to a gap.
11676         (btrace_insn_number): Return zero if the iterator points to a gap.
11677         (btrace_insn_end): Allow gaps at the end.
11678         (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11679         (btrace_find_insn_by_number): Assert that the found iterator does
11680         not point to a gap.
11681         (btrace_call_next, btrace_call_prev): Assert that the last function
11682         is not a gap.
11683         * btrace.h (btrace_bts_error): New.
11684         (btrace_function): Update comment.
11685         (btrace_function) <insn, insn_offset, number>: Update comment.
11686         (btrace_function) <errcode>: New.
11687         (btrace_thread_info) <ngaps>: New.
11688         (btrace_thread_info) <replay>: Update comment.
11689         (btrace_insn_get): Update comment.
11690         * record-btrace.c (btrace_ui_out_decode_error): New.
11691         (record_btrace_info): Print number of gaps.
11692         (btrace_insn_history, btrace_call_history): Call
11693         btrace_ui_out_decode_error for gaps.
11694         (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11695
11696 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11697
11698         * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11699         * nat/linux-btrace.c: (btrace_this_cpu): New.
11700         (cpu_supports_bts): Call btrace_this_cpu.
11701         (intel_supports_bts): Add cpu parameter.
11702
11703 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11704
11705         * btrace.h (btrace_insn_class): New.
11706         (btrace_insn) <size, iclass>: New.
11707         * btrace.c (ftrace_find_call): Update parameters.  Update users.
11708         Use instruction classification.
11709         (ftrace_new_return): Update parameters.  Update users.
11710         (ftrace_update_function): Update parameters.  Update users.  Use
11711         instruction classification.
11712         (ftrace_update_insns): Update parameters.  Update users.
11713         (ftrace_classify_insn): New.
11714         (btrace_compute_ftrace_bts): Fill in new btrace_insn fields.  Add
11715         TRY_CATCH around call to gdb_insn_length.
11716
11717 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11718
11719         * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11720         Update parameters.  Update users.
11721
11722 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11723
11724         * btrace.c (parse_xml_btrace_conf_bts): Add size.
11725         (btrace_conf_bts_attributes): New.
11726         (btrace_conf_children): Add attributes.
11727         * common/btrace-common.h (btrace_config_bts): New.
11728         (btrace_config)<bts>: New.
11729         (btrace_config): Update comment.
11730         * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11731         Use config.
11732         * features/btrace-conf.dtd: Increment version.  Add size
11733         attribute to bts element.
11734         * record-btrace.c (set_record_btrace_bts_cmdlist,
11735         show_record_btrace_bts_cmdlist): New.
11736         (record_btrace_adjust_size, record_btrace_print_bts_conf,
11737         record_btrace_print_conf, cmd_set_record_btrace_bts,
11738         cmd_show_record_btrace_bts): New.
11739         (record_btrace_info): Call record_btrace_print_conf.
11740         (_initialize_record_btrace): Add commands.
11741         * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11742         (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11743         (btrace_sync_conf): Synchronize bts size.
11744         (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11745         * NEWS: Announce new commands and new packets.
11746
11747 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11748
11749         * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11750         * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11751         (x86_linux_btrace_conf): New.
11752         (x86_linux_create_target): Initialize to_btrace_conf.
11753         * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11754         Check format.  Split into this and ...
11755         (linux_enable_bts): ... this.
11756         (linux_btrace_conf): New.
11757         (perf_event_skip_record): Renamed into ...
11758         (perf_event_skip_bts_record): ... this.  Updated users.
11759         (linux_disable_btrace): Split into this and ...
11760         (linux_disable_bts): ... this.
11761         (linux_read_btrace): Check format.
11762         * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11763         (linux_btrace_conf): New.
11764         (btrace_target_info)<ptid>: Moved.
11765         (btrace_target_info)<conf>: New.
11766         (btrace_target_info): Split into this and ...
11767         (btrace_tinfo_bts): ... this.  Updated users.
11768         * btrace.c (btrace_enable): Update parameters.
11769         (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11770         (btrace_conf_children, btrace_conf_attributes)
11771         (btrace_conf_elements): New.
11772         * btrace.h (btrace_enable): Update parameters.
11773         (btrace_conf, parse_xml_btrace_conf): New.
11774         * common/btrace-common.h (btrace_config): New.
11775         * feature/btrace-conf.dtd: New.
11776         * record-btrace.c (record_btrace_conf): New.
11777         (record_btrace_cmdlist): New.
11778         (record_btrace_enable_warn, record_btrace_open): Pass
11779         &record_btrace_conf.
11780         (record_btrace_info): Print recording format.
11781         (cmd_record_btrace_bts_start): New.
11782         (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11783         (_initialize_record_btrace): Add "record btrace bts" subcommand.
11784         Add "record bts" alias command.
11785         * remote.c (remote_state)<btrace_config>: New.
11786         (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11787         (remote_protocol_features): Add qXfer:btrace-conf:read.
11788         (remote_open_1): Call remote_btrace_reset.
11789         (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11790         (btrace_target_info)<conf>: New.
11791         (btrace_sync_conf, btrace_read_config): New.
11792         (remote_enable_btrace): Update parameters.  Call btrace_sync_conf and
11793         btrace_read_conf.
11794         (remote_btrace_conf): New.
11795         (init_remote_ops): Initialize to_btrace_conf.
11796         (_initialize_remote): Add qXfer:btrace-conf packet.
11797         * target.c (target_enable_btrace): Update parameters.
11798         (target_btrace_conf): New.
11799         * target.h (target_enable_btrace): Update parameters.
11800         (target_btrace_conf): New.
11801         (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11802         (target_ops)<to_enable_btrace>: Update parameters and comment.
11803         (target_ops)<to_btrace_conf>: New.
11804         * target-delegates: Regenerate.
11805         * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11806         (target_debug_print_const_struct_btrace_target_info_p): New.
11807         * NEWS: Announce new command and new packet.
11808
11809 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11810
11811         * nat/linux-btrace.h (perf_event_buffer): New.
11812         (btrace_target_info) <buffer, size, data_head>: Replace with ...
11813         <bts>: ... this.
11814         * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11815         (perf_event_buffer_size, perf_event_buffer_begin)
11816         (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11817         Updated users.
11818         (perf_event_new_data): New.
11819
11820 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11821
11822         * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11823         * record-btrace.c (record_btrace_open): Remove call to
11824         target_supports_btrace.
11825         * remote.c (remote_supports_btrace): Update parameters.
11826         * target.c (target_supports_btrace): Update parameters.
11827         * target.h (to_supports_btrace, target_supports_btrace): Update
11828         parameters.
11829         * target-delegates.c: Regenerate.
11830         * target-debug.h (target_debug_print_enum_btrace_format): New.
11831         * nat/linux-btrace.c
11832         (kernel_supports_btrace): Rename into ...
11833         (kernel_supports_bts): ... this.  Update users.  Update warning text.
11834         (intel_supports_btrace): Rename into ...
11835         (intel_supports_bts): ... this.  Update users.
11836         (cpu_supports_btrace): Rename into ...
11837         (cpu_supports_bts): ... this.  Update users.
11838         (linux_supports_btrace): Update parameters.  Split into this and ...
11839         (linux_supports_bts): ... this.
11840         * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11841
11842 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11843
11844         * Makefile.in (SFILES): Add common/btrace-common.c.
11845         (COMMON_OBS): Add common/btrace-common.o.
11846         (btrace-common.o): Add build rules.
11847         * btrace.c (parse_xml_btrace): Update parameters.
11848         (parse_xml_btrace_block): Set format field.
11849         (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11850         (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11851         (btrace_compute_ftrace): Split into this and...
11852         (btrace_compute_ftrace_bts): ...this.
11853         (btrace_stitch_trace): Split into this and...
11854         (btrace_stitch_bts): ...this.
11855         * btrace.h (parse_xml_btrace): Update parameters.
11856         (make_cleanup_btrace_data): New.
11857         * common/btrace-common.c: New.
11858         * common/btrace-common.h: Include common-defs.h.
11859         (btrace_block_s): Update comment.
11860         (btrace_format): New.
11861         (btrace_format_string): New.
11862         (btrace_data_bts): New.
11863         (btrace_data): New.
11864         (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11865         * remote.c (remote_read_btrace): Update parameters.
11866         * target.c (target_read_btrace): Update parameters.
11867         * target.h (target_read_btrace): Update parameters.
11868         (target_ops)<to_read_btrace>: Update parameters.
11869         * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11870         * target-delegates.c: Regenerate.
11871         * target-debug (target_debug_print_struct_btrace_data_p): New.
11872         * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11873         (linux_read_bts): ...this.
11874         * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11875
11876 2015-02-06  Doug Evans  <dje@google.com>
11877
11878         * remote-m32r-sdi.c: Include symfile.h.
11879
11880 2015-02-06  Doug Evans  <dje@google.com>
11881
11882         * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11883         * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11884         to here.
11885
11886 2015-02-06  Pedro Alves  <palves@redhat.com>
11887
11888         * linux-thread-db.c (find_new_threads_callback): Add debug output.
11889
11890 2015-02-06  Simon Marchi  <simon.marchi@ericsson.com>
11891
11892         PR gdb/15678
11893         * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11894         (enable_count_command): Check args for NULL value.
11895
11896 2015-02-05  Doug Evans  <xdje42@gmail.com>
11897
11898         * guile/scm-frame.c: Fix spelling errors in a comment.
11899
11900 2015-02-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
11901
11902         * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11903         * python/py-value.c (valpy_fetch_lazy): Use it.  Remove cast to the
11904         return type.
11905
11906 2015-02-04  Pedro Alves  <palves@redhat.com>
11907
11908         * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11909         (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11910         returns true.
11911         (resume_stopped_resumed_lwps): Don't check whether the thread is
11912         marked as executing.
11913         (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11914
11915 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11916
11917         * regset.h (struct regset): Add flags field.
11918         (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11919         * corelow.c (get_core_register_section): Add warning if the size
11920         exceeds the requested size and the regset does not have the
11921         REGSET_VARIABLE_SIZE flag set.
11922         * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11923         flag.
11924         * armbsd-tdep.c (armbsd_gregset): Likewise.
11925         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11926         * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11927         * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11928         * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11929
11930 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11931
11932         * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11933         For ".reg-xstate", explicitly specify the requested section size
11934         via X86_XSTATE_SIZE instead of just 0 on input and
11935         X86_XSTATE_MAX_SIZE on output.
11936         * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11937         Likewise.
11938
11939 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11940
11941         PR corefiles/17808:
11942         * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11943         function type, particularly its SIZE parameter.
11944         * gdbarch.h: Regenerate.
11945         * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11946         actual against required size using ">=" instead of "==".
11947         (amd64_collect_fpregset): Likewise.
11948         * i386-tdep.c (i386_supply_gregset): Likewise.
11949         (i386_collect_gregset): Likewise.
11950         (i386_supply_fpregset): Likewise.
11951         (i386_collect_fpregset): Likewise.
11952         * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11953         (mips_fill_gregset_wrapper): Likewise.
11954         (mips_supply_fpregset_wrapper): Likewise.
11955         (mips_fill_fpregset_wrapper): Likewise.
11956         (mips64_supply_gregset_wrapper): Likewise.
11957         (mips64_fill_gregset_wrapper): Likewise.
11958         (mips64_supply_fpregset_wrapper): Likewise.
11959         (mips64_fill_fpregset_wrapper): Likewise.
11960         * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11961         (am33_supply_fpregset_method): Likewise.
11962         (am33_collect_gregset_method): Likewise.
11963         (am33_collect_fpregset_method): Likewise.
11964
11965 2015-02-04  Doug Evans  <dje@google.com>
11966             Pedro Alves  <palves@redhat.com>
11967             Eli Zaretskii  <eliz@gnu.org>
11968
11969         PR tui/17810
11970         * tui/tui-command.c (tui_refresh_cmd_win): New function.
11971         * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11972         * tui/tui-file.c: #include tui/tui-command.h.
11973         (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11974         (tui_file_flush): Refresh command window if stream is gdb_stdout.
11975         * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11976
11977 2015-02-04  Pedro Alves  <palves@redhat.com>
11978
11979         Fix build breakage.
11980         * event-loop.c (gdb_do_one_event): Add default switch case.
11981
11982 2015-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11983
11984         Filter out inferior gcc option -fpreprocessed.
11985         * compile/compile.c (filter_args): New function.
11986         (get_args): Use it.
11987
11988 2015-02-03  Pedro Alves  <palves@redhat.com>
11989
11990         * event-loop.c: Don't declare nor define a queue type for
11991         gdb_event_p.
11992         (event_queue): Delete.
11993         (create_event, create_file_event, gdb_event_xfree)
11994         (initialize_event_loop, process_event): Delete.
11995         (gdb_do_one_event): Return as soon as one event is handled.
11996         (handle_file_event): Change prototype.  Used the passed in
11997         file_handler pointer and ready_mask instead of looping over all
11998         file handlers.
11999         (gdb_wait_for_event): Update the poll/select timeouts before
12000         blocking.  Run event handlers directly instead of queueing events.
12001         Return as soon as one event is handled.
12002         (struct async_event_handler_data): Delete.
12003         (invoke_async_event_handler): Delete.
12004         (check_async_event_handlers): Change return type to int.  Run
12005         event handlers directly instead of queueing events.  Return as
12006         soon as one event is handled.
12007         (handle_timer_event): Delete.
12008         (update_wait_timeout): New function, factored out from
12009         poll_timers.
12010         (poll_timers): Reimplement.
12011         * event-loop.h (initialize_event_loop): Delete declaration.
12012         * top.c (gdb_init): Don't call initialize_event_loop.
12013
12014 2015-02-03  Pedro Alves  <palves@redhat.com>
12015
12016         * event-loop.c (clear_async_event_handler): New function.
12017         * event-loop.h (clear_async_event_handler): New declaration.
12018         * record-btrace.c (record_btrace_async): New function.
12019         (init_record_btrace_ops): Install record_btrace_async.
12020         * record-full.c (record_full_async): New function.
12021         (record_full_resume): Don't mark the async event source here.
12022         (init_record_full_ops): Install record_full_async.
12023         (record_full_core_resume): Don't mark the async event source here.
12024         (init_record_full_core_ops): Install record_full_async.
12025         * remote.c (remote_async): Mark and clear the async stop reply
12026         queue event-loop token as appropriate.
12027
12028 2015-02-03  Pedro Alves  <palves@redhat.com>
12029
12030         * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
12031         target_is_async_p instead of target_can_async.
12032         (linux_nat_wait): Use target_is_async_p instead of
12033         target_can_async.  Don't enable async here.
12034         * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
12035         target_is_async_p instead of target_can_async.
12036
12037 2015-02-02  Simon Marchi  <simon.marchi@ericsson.com>
12038
12039         * varobj.h (lang_varobj_ops): Mention which return values need
12040         to be freed.
12041
12042 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
12043
12044         * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
12045
12046 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
12047
12048         PR gdb/17856:
12049         * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
12050         results found in the cache.
12051
12052 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
12053
12054         PR gdb/17854:
12055         * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
12056         when allocating a new one.
12057
12058 2015-02-01  Tom Tromey  <tom@tromey.com>
12059
12060         * MAINTAINERS: Remove myself.
12061
12062 2015-01-31  Doug Evans  <xdje42@gmail.com>
12063
12064         * dwarf2read.c (process_structure_scope): Update setting of
12065         TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
12066         * gdbtypes.c (internal_type_vptr_fieldno): New function.
12067         (set_type_vptr_fieldno): New function.
12068         (internal_type_vptr_basetype): New function.
12069         (set_type_vptr_basetype): New function.
12070         (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
12071         TYPE_VPTR_BASETYPE.
12072         (allocate_cplus_struct_type): Initialize vptr_fieldno.
12073         (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
12074         (print_cplus_stuff): ... moved here.
12075         (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
12076         * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
12077         moved to ...
12078         (struct cplus_struct_type): ... here.  All uses updated.
12079         (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
12080         (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
12081         (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
12082         * stabsread.c (read_tilde_fields): Update setting of
12083         TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
12084
12085 2015-01-31  Doug Evans  <xdje42@gmail.com>
12086
12087         * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
12088         to self_p.
12089         (cp_print_class_member): Rename local domain to self_type.
12090         * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
12091         domain_type to self_type.
12092         (set_die_type) <need_gnat_info>: Handle
12093         TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
12094         * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
12095         TYPE_SPECIFIC_SELF_TYPE.
12096         * gdbtypes.c (internal_type_self_type): New function.
12097         (set_type_self_type): New function.
12098         (smash_to_memberptr_type): Rename parameter domain to self_type.
12099         Update setting of TYPE_SELF_TYPE.
12100         (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
12101         (smash_to_method_type): Rename parameter domain to self_type.
12102         Update setting of TYPE_SELF_TYPE.
12103         (check_stub_method): Call smash_to_method_type.
12104         (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
12105         (copy_type_recursive): Ditto.
12106         * gdbtypes.h (enum type_specific_kind): New value
12107         TYPE_SPECIFIC_SELF_TYPE.
12108         (struct main_type) <type_specific>: New member self_type.
12109         (struct cplus_struct_type) <fn_field.type>: Update comment.
12110         (TYPE_SELF_TYPE): Rewrite.
12111         (internal_type_self_type, set_type_self_type): Declare.
12112         * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
12113         self_type.
12114         (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
12115         * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
12116         TYPE_TARGET_TYPE.
12117         * stabsread.c (read_member_functions): Mark methods with
12118         TYPE_CODE_METHOD, not TYPE_CODE_FUNC.  Update setting of
12119         TYPE_SELF_TYPE.
12120
12121 2015-01-31  Doug Evans  <xdje42@gmail.com>
12122
12123         * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
12124         All uses updated.
12125
12126 2015-01-31  Doug Evans  <xdje42@gmail.com>
12127
12128         * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
12129         or unions.  Return zero if union.
12130         (gnuv3_get_vtable): Call check_typedef.  Assert only passed structs.
12131         (gnuv3_rtti_type): Pass already-check_typedef'd value to
12132         gnuv3_get_vtable.
12133         (compute_vtable_size): Assert only passed structs.
12134         (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
12135
12136 2015-01-31  Doug Evans  <xdje42@gmail.com>
12137
12138         * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
12139         kinds.
12140
12141 2015-01-31  Gary Benson <gbenson@redhat.com>
12142             Doug Evans  <dje@google.com>
12143
12144         PR cli/9007
12145         PR cli/11920
12146         PR cli/15548
12147         * cli/cli-cmds.c (complete_command): Notify user if max-completions
12148         reached.
12149         * common/common-exceptions.h (enum errors)
12150         <MAX_COMPLETIONS_REACHED_ERROR>: New value.
12151         * completer.h (get_max_completions_reached_message): New declaration.
12152         (max_completions): Likewise.
12153         (completion_tracker_t): New typedef.
12154         (new_completion_tracker): New declaration.
12155         (make_cleanup_free_completion_tracker): Likewise.
12156         (maybe_add_completion_enum): New enum.
12157         (maybe_add_completion): New declaration.
12158         (throw_max_completions_reached_error): Likewise.
12159         * completer.c (max_completions): New global variable.
12160         (new_completion_tracker): New function.
12161         (free_completion_tracker): Likewise.
12162         (make_cleanup_free_completion_tracker): Likewise.
12163         (maybe_add_completions): Likewise.
12164         (throw_max_completions_reached_error): Likewise.
12165         (complete_line): Remove duplicates and limit result to max_completions
12166         entries.
12167         (get_max_completions_reached_message): New function.
12168         (gdb_display_match_list): Handle max_completions.
12169         (_initialize_completer): New declaration and function.
12170         * symtab.c: Include completer.h.
12171         (completion_tracker): New static variable.
12172         (completion_list_add_name): Call maybe_add_completion.
12173         (default_make_symbol_completion_list_break_on_1): Renamed from
12174         default_make_symbol_completion_list_break_on.  Maintain
12175         completion_tracker across calls to completion_list_add_name.
12176         (default_make_symbol_completion_list_break_on): New function.
12177         * top.c (init_main): Set rl_completion_display_matches_hook.
12178         * tui/tui-io.c: Include completer.h.
12179         (tui_old_rl_display_matches_hook): New static global.
12180         (tui_rl_display_match_list): Notify user if max-completions reached.
12181         (tui_setup_io): Save/restore rl_completion_display_matches_hook.
12182         * NEWS (New Options): Mention set/show max-completions.
12183
12184 2015-01-31  Gary Benson  <gbenson@redhat.com>
12185
12186         * symtab.c (struct add_name_data) <code>: New field.
12187         Updated comments.
12188         (add_symtab_completions): New function.
12189         (symtab_expansion_callback): Likewise.
12190         (default_make_symbol_completion_list_break_on): Set datum.code.
12191         Move minimal symbol scan before calling expand_symtabs_matching.
12192         Scan known primary symtabs for externs and statics before calling
12193         expand_symtabs_matching.  Pass symtab_expansion_callback as
12194         expansion_notify argument to expand_symtabs_matching.  Do not scan
12195         primary symtabs for externs and statics after calling
12196         expand_symtabs_matching.
12197
12198 2015-01-31  Gary Benson  <gbenson@redhat.com>
12199
12200         * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
12201         (struct quick_symbol_functions) <expand_symtabs_matching>:
12202         New argument expansion_notify.  All uses updated.
12203         (expand_symtabs_matching): New argument expansion_notify.
12204         All uses updated.
12205         * symfile-debug.c (debug_qf_expand_symtabs_matching):
12206         Also print expansion notify.
12207         * symtab.c (expand_symtabs_matching_via_partial): Call
12208         expansion_notify whenever a partial symbol table is expanded.
12209         * dwarf2read.c (dw2_expand_symtabs_matching): Call
12210         expansion_notify whenever a symbol table is instantiated.
12211
12212 2015-01-31  Doug Evans  <xdje42@gmail.com>
12213
12214         * cli-out.c: #include completer.h, readline/readline.h.
12215         (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
12216         (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
12217         (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
12218         * cli-out.h (cli_display_match_list): Declare.
12219         * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
12220         (ELLIPSIS_LEN): Ditto.
12221         (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
12222         (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
12223         (gdb_fnprint, gdb_print_filename): Ditto.
12224         (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
12225         (gdb_display_match_list): Ditto.
12226         * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
12227         (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
12228         (mld_beep_ftype, mld_read_key_ftype): Ditto.
12229         (match_list_displayer): New struct.
12230         (gdb_display_match_list): Declare.
12231         * top.c (init_main): Set rl_completion_display_matches_hook.
12232         * tui/tui-io.c: #include completer.h.
12233         (printable_part, PUTX, print_filename, get_y_or_n): Delete.
12234         (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
12235         (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
12236         (tui_mld_getc, tui_mld_read_key): Ditto.
12237         (tui_rl_display_match_list): Rewrite.
12238         (tui_handle_resize_during_io): New arg for_completion.  All callers
12239         updated.
12240
12241 2015-01-31  Doug Evans  <xdje42@gmail.com>
12242
12243         Add symbol lookup cache.
12244         * NEWS: Document new options and commands.
12245         * symtab.c (symbol_cache_key): New static global.
12246         (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
12247         (SYMBOL_LOOKUP_FAILED): New macro.
12248         (symbol_cache_slot_state): New enum.
12249         (block_symbol_cache): New struct.
12250         (symbol_cache): New struct.
12251         (new_symbol_cache_size, symbol_cache_size): New static globals.
12252         (hash_symbol_entry, eq_symbol_entry): New functions.
12253         (symbol_cache_byte_size, resize_symbol_cache): New functions.
12254         (make_symbol_cache, free_symbol_cache): New functions.
12255         (get_symbol_cache, symbol_cache_cleanup): New function.
12256         (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
12257         (symbol_cache_lookup, symbol_cache_clear_slot): New function.
12258         (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
12259         (symbol_cache_flush, symbol_cache_dump): New functions.
12260         (maintenance_print_symbol_cache): New function.
12261         (maintenance_flush_symbol_cache): New function.
12262         (symbol_cache_stats): New function.
12263         (maintenance_print_symbol_cache_statistics): New function.
12264         (symtab_new_objfile_observer): New function.
12265         (symtab_free_objfile_observer): New function.
12266         (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
12267         (_initialize_symtab): Init symbol_cache_key.  New parameter
12268         maint symbol-cache-size.  New maint commands print symbol-cache,
12269         print symbol-cache-statistics, flush-symbol-cache.
12270         Install new_objfile, free_objfile observers.
12271
12272 2015-01-31  Joel Brobecker  <brobecker@adacore.com>
12273
12274         PR symtab/17855
12275         * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
12276         to end.
12277
12278 2015-01-31  Doug Evans  <xdje42@gmail.com>
12279
12280         * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
12281         * auto-load.c: #include ctype.h.
12282         (struct auto_load_pspace_info): Replace member loaded_scripts with
12283         new members loaded_script_files, loaded_script_texts.
12284         (auto_load_pspace_data_cleanup): Update.
12285         (init_loaded_scripts_info): Update.
12286         (get_auto_load_pspace_data_for_loading): Update.
12287         (maybe_add_script_file): Renamed from maybe_add_script.  All callers
12288         updated.
12289         (maybe_add_script_text): New function.
12290         (clear_section_scripts): Update.
12291         (source_script_file, execute_script_contents): New functions.
12292         (source_section_scripts): Add support for
12293         SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
12294         (print_scripts): New function.
12295         (auto_load_info_scripts): Also print inlined scripts.
12296         (maybe_print_unsupported_script_warning): Renamed from
12297         unsupported_script_warning_print.  All callers updated.
12298         (maybe_print_script_not_found_warning): Renamed from
12299         script_not_found_warning_print.  All callers updated.
12300         * extension-priv.h (struct extension_language_script_ops): New member
12301         objfile_script_executor.
12302         * extension.c (ext_lang_objfile_script_executor): New function.
12303         * extension.h (objfile_script_executor_func): New typedef.
12304         (ext_lang_objfile_script_executor): Declare.
12305         * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
12306         * guile/guile.c (guile_extension_script_ops): Update.
12307         * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
12308         * python/python.c (python_extension_script_ops): Update.
12309         (gdbpy_execute_objfile_script): New function.
12310
12311 2015-01-31  Eli Zaretskii  <eliz@gnu.org>
12312
12313         * tui/tui-io.c (tui_expand_tabs): New function.
12314         (tui_puts, tui_redisplay_readline): Expand TABs into the
12315         appropriate number of spaces.
12316         * tui/tui-regs.c: Include tui-io.h.
12317         (tui_register_format): Call tui_expand_tabs to expand TABs into
12318         the appropriate number of spaces.
12319         * tui/tui-io.h: Add prototype for tui_expand_tabs.
12320
12321 2015-01-30  Doug Evans  <dje@google.com>
12322
12323         * NEWS: "info source" command now display producer string if present.
12324         * source.c (source_info): Print producer string if present.
12325
12326 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12327
12328         * varobj.c (varobj_delete): Fix comment.
12329
12330 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12331
12332         * varobj.c (create_child): Modify comment.
12333
12334 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12335
12336         * ada-varobj.c (ada_number_of_children): Constify struct varobj *
12337         parameter.
12338         (ada_name_of_variable): Same.
12339         (ada_path_expr_of_child): Same.
12340         (ada_value_of_variable): Same.
12341         (ada_value_is_changeable_p): Same.
12342         (ada_value_has_mutated): Same.
12343         * c-varobj.c (varobj_is_anonymous_child): Same.
12344         (c_is_path_expr_parent): Same.
12345         (c_number_of_children): Same.
12346         (c_name_of_variable): Same.
12347         (c_path_expr_of_child): Same.
12348         (get_type): Same.
12349         (c_value_of_variable): Same.
12350         (cplus_number_of_children): Same.
12351         (cplus_name_of_variable): Same.
12352         (cplus_path_expr_of_child): Same.
12353         (cplus_value_of_variable): Same.
12354         * jv-varobj.c (java_number_of_children): Same.
12355         (java_name_of_variable): Same.
12356         (java_path_expr_of_child): Same.
12357         (java_value_of_variable): Same.
12358         * varobj.c (number_of_children): Same.
12359         (name_of_variable): Same.
12360         (is_root_p): Same.
12361         (varobj_ensure_python_env): Same.
12362         (varobj_get_objname): Same.
12363         (varobj_get_expression): Same.
12364         (varobj_get_display_format): Same.
12365         (varobj_get_display_hint): Same.
12366         (varobj_has_more): Same.
12367         (varobj_get_thread_id): Same.
12368         (varobj_get_frozen): Same.
12369         (dynamic_varobj_has_child_method): Same.
12370         (varobj_get_gdb_type): Same.
12371         (is_path_expr_parent): Same.
12372         (varobj_default_is_path_expr_parent): Same.
12373         (varobj_get_language): Same.
12374         (varobj_get_attributes): Same.
12375         (varobj_is_dynamic_p): Same.
12376         (varobj_get_child_range): Same.
12377         (varobj_value_has_mutated): Same.
12378         (varobj_get_value_type): Same.
12379         (number_of_children): Same.
12380         (name_of_variable): Same.
12381         (check_scope): Same.
12382         (varobj_editable_p): Same.
12383         (varobj_value_is_changeable_p): Same.
12384         (varobj_floating_p): Same.
12385         (varobj_default_value_is_changeable_p): Same.
12386
12387 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12388
12389         * varobj.c (varobj_get_path_expr): Set var->path_expr.
12390         * c-varobj.c (c_path_expr_of_child): Set local var instead of
12391         child->path_expr.
12392         (cplus_path_expr_of_child): Same.
12393
12394 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12395
12396         * mi-cmd-var.c (print_varobj): Free varobj_get_expression
12397         result.
12398         (mi_cmd_var_info_expression): Same.
12399         * varobj.c (varobj_get_expression): Mention in the comment that
12400         the result must by freed by the caller.
12401
12402 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12403
12404         * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
12405         varobj_get_type.
12406         (varobj_update_one): Same.
12407         * varobj.c (update_type_if_necessary): Free curr_type_str and
12408         new_type_str.
12409         (varobj_get_type): Specify in comment that the result needs to be
12410         freed by the caller.
12411
12412 2015-01-29  Doug Evans  <dje@google.com>
12413
12414         PR symtab/17890
12415         * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
12416
12417 2015-01-25  Mark Wielaard  <mjw@redhat.com>
12418
12419         * dwarf2read.c (checkproducer): Call producer_is_gcc.
12420         * utils.c (producer_is_gcc_ge_4): Likewise.
12421         (producer_is_gcc): New function.
12422         * utils.h (producer_is_gcc): New declaration.
12423
12424 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12425
12426         * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
12427         kind.
12428         * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
12429         parameter by "addr_stack" parameter.
12430         (resolve_dynamic_range): Replace "addr" parameter by
12431         "stack_addr" parameter.  Update function documentation.
12432         Update code accordingly.
12433         (resolve_dynamic_array, resolve_dynamic_union)
12434         (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
12435         (resolve_dynamic_type): Update code, following the changes made
12436         to resolve_dynamic_type_internal's interface.
12437         * dwarf2loc.h (struct property_addr_info): New.
12438         (dwarf2_evaluate_property): Replace "address" parameter
12439         by "addr_stack" parameter.  Adjust function documentation.
12440         (struct dwarf2_offset_baton): New.
12441         (struct dwarf2_property_baton): Update documentation of
12442         field "referenced_type" to be more general. New field
12443         "offset_info" in union data field.
12444         * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
12445         parameter by "addr_stack" parameter.  Adjust code accordingly.
12446         Add support for PROP_ADDR_OFFSET properties.
12447         * dwarf2read.c (attr_to_dynamic_prop): Add support for
12448         DW_AT_data_member_location attributes as well.  Use case
12449         statements instead of if/else condition.
12450
12451 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12452
12453         * ada-varobj.c (ada_varobj_get_array_number_of_children):
12454         Return zero if PARENT_VALUE is NULL and parent_type's
12455         range type is dynamic.
12456
12457 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12458
12459         * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
12460         nonzero if the type's subtype is dynamic.
12461         (resolve_dynamic_range): Also resolve the range's subtype.
12462
12463 2015-01-29  Alexander Klimov  <alserkli@inbox.ru>  (tiny patch)
12464
12465         Pushed by Joel Brobecker  <brobecker@adacore.com>.
12466         * symfile.c (unmap_overlay_command): Initialize sec to NULL.
12467
12468 2015-01-27  Doug Evans  <dje@google.com>
12469
12470         * NEWS: Mention gdb.Objfile.username.
12471         * python/py-objfile.c (objfpy_get_username): New function.
12472         (objfile_getset): Add "username".
12473
12474 2015-01-24  Mark Wielaard  <mjw@redhat.com>
12475
12476         * stack.c (return_command): Markup warning message with _.
12477
12478 2015-01-24  Doug Evans  <xdje42@gmail.com>
12479
12480         * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
12481
12482 2015-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
12483
12484         Fix 100x slowdown regression on DWZ files.
12485         * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
12486         (struct line_header): Add offset and offset_in_dwz.
12487         (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
12488         (free_line_header_voidp): New declaration.
12489         (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
12490         functions.
12491         (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
12492         (handle_DW_AT_stmt_list): Use line_header_hash.
12493         (free_line_header_voidp): New function.
12494         (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
12495         (dwarf_decode_lines): New parameter decode_mapping, use it.
12496         (dwarf2_free_objfile): Free line_header_hash.
12497
12498 2015-01-23  Simon Marchi  <simon.marchi@ericsson.com>
12499
12500         PR gdb/17416
12501         * valops.c (value_rtti_indirect_type): Catch exception thrown by
12502         value_ind.
12503
12504 2015-01-15  Mark Wielaard  <mjw@redhat.com>
12505
12506         * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
12507         DW_AT_noreturn.
12508         * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
12509         calling_convention an 8 bit bit field.
12510         (TYPE_NO_RETURN): New macro.
12511         * infcmd.c (finish_command): Query if function does not return
12512         normally.
12513         * stack.c (return_command): Likewise.
12514
12515 2015-01-23  Pedro Alves  <palves@redhat.com>
12516
12517         * linux-nat.c (linux_is_async_p): New macro.
12518         (linux_nat_is_async_p):
12519         (linux_nat_terminal_inferior): Check whether the target can async
12520         instead of whether it is already async.
12521         (linux_nat_terminal_ours): Don't check whether the target is
12522         async.
12523         (linux_async_pipe): Use linux_is_async_p.
12524
12525 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12526
12527         * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
12528         '-ascending'.
12529         * thread.c (tp_array_compar_ascending, tp_array_compar): New.
12530         (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
12531         Sort tp_array using tp_array_compar.
12532         (_initialize_thread): Extend thread_apply_all_command help.
12533
12534 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12535
12536         * corelow.c (core_open): Call also thread_command.
12537         * gdbthread.h (thread_command): New prototype moved from ...
12538         * thread.c (thread_command): ... here.
12539         (thread_command): Make it global.
12540
12541 2015-01-22  Pedro Alves  <palves@redhat.com>
12542
12543         * configure.ac [*mingw32*]: Check $curses_found instead of
12544         $prefer_curses.
12545         * configure: Regenerate.
12546         * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
12547         HAVE_NCURSES_NCURSES_H checks.
12548
12549 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
12550
12551         * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
12552         fails with the 1st arg NULL, try again with "unknown".  Don't test
12553         the "cup" capability: it isn't supported by the Windows port of
12554         ncurses, but the Windows console driver is still capable of
12555         supporting TUI.
12556
12557 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12558
12559         * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
12560
12561 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
12562
12563         * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
12564         (ALLDEPFILES): Remove irix5-nat.c.  These two are part of the
12565         reason that "make TAGS" is broken.
12566
12567 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
12568
12569         * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
12570         and check additional store instructions.
12571
12572 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
12573
12574         * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
12575
12576 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
12577
12578         * ppc-linux-tdep.c (ppc_skip_trampoline_code,
12579         ppc_canonicalize_syscall, ppc_linux_syscall_record,
12580         ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
12581         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12582         * rs6000-tdep.c (rs6000_epilogue_frame_cache,
12583         rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
12584         rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
12585         ppc_process_record_op19, ppc_process_record_op31,
12586         ppc_process_record_op59, ppc_process_record_op60,
12587         ppc_process_record_op63): Likewise.
12588
12589 2015-01-20  Joel Brobecker  <brobecker@adacore.com>
12590
12591         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
12592         (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
12593         strerror.
12594
12595 2015-01-20  Wei-cheng Wang  <cole945@gmail.com>
12596
12597         * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
12598         ppc_process_record_op31, ppc_process_record_op59,
12599         ppc_process_record_op60, ppc_process_record_op63,
12600         ppc_process_record): Fix -Wformat warning.
12601         * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12602         Remove unused variables.
12603
12604 2015-01-20  Chen Gang  <gang.chen.5i5j@gmail.com>
12605
12606         * MAINTAINERS (Write After Approval): Add "Chen Gang".
12607
12608 2015-01-19  Eli Zaretskii  <eliz@gnu.org>
12609
12610         * configure.ac [*mingw32*]: Only add windows-termcap.o to
12611         CONFIG_OBS if not building with a curses library.
12612         * configure: Regenerate.
12613
12614         * windows-termcap.c: Include defs.h.  Make the whole body empty if
12615         either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12616         HAVE_NCURSES_NCURSES_H is defined.
12617
12618 2015-01-19  Joel Brobecker  <brobecker@adacore.com>
12619
12620         * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12621         from end of line to start of next line.
12622
12623 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12624
12625         * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12626         Scan PLT stub backward for reverse debugging.
12627         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12628
12629 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12630             Ulrich Weigand  <uweigand@de.ibm.com>
12631
12632         * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12633         gdb_target_obs.
12634         (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12635         record.
12636         (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12637         ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12638         (ppc_linux_init_abi): Set process_record, process_record_signal.
12639         * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12640         ppc_linux_record_tdep to gdbarch_tdep.
12641         (ppc_process_record): New declaration.
12642         * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12643         ppc_process_record_op19, ppc_process_record_op31,
12644         ppc_process_record_op59, ppc_process_record_op60,
12645         ppc_process_record_op63, ppc_process_record): New functions.
12646
12647 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12648
12649         * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12650         rs6000_in_function_epilogue_frame_p and add an argument
12651         for frame_info.
12652         (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12653         rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12654         New functions.
12655         (rs6000_epilogue_frame_unwind): New.
12656         (rs6000_gdbarch_init): Append epilogue unwinder.
12657
12658 2015-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
12659
12660         * nat/linux-personality.c: Replace "#ifndef
12661         HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12662         !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12663         systems.
12664
12665 2015-01-16  Eli Zaretskii  <eliz@gnu.org>
12666
12667         * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12668         functions.
12669         (_initialize_tui_win) <border-kind, border-mode>:
12670         <active-border-mode>: Use tui_set_var_cmd as the "set" function.
12671         (tui_set_tab_width_command): Fix the commentary.
12672
12673         * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12674
12675         * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12676         Doc fix.
12677         (tui_set_tab_width_command): Delete and recreate the source and
12678         the disassembly windows, to show the effect of the changed tab
12679         size immediately.
12680
12681         * tui/tui-data.h (LINE_PREFIX): Make shorter
12682         (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12683         "Thread NNNNN.XXXX" thread ID notation on Windows.
12684
12685 2015-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12686
12687         Fix gcc-5 compilation.
12688         * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12689
12690 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
12691
12692         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12693         (linux-personality.o): New rule.
12694         * common/common-defs.h: Include <stdint.h>.
12695         * config/aarch64/linux.mh (NATDEPFILES): Include
12696         linux-personality.o.
12697         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12698         * config/arm/linux.mh (NATDEPFILES): Likewise.
12699         * config/i386/linux64.mh (NATDEPFILES): Likewise.
12700         * config/i386/linux.mh (NATDEPFILES): Likewise.
12701         * config/ia64/linux.mh (NATDEPFILES): Likewise.
12702         * config/m32r/linux.mh (NATDEPFILES): Likewise.
12703         * config/m68k/linux.mh (NATDEPFILES): Likewise.
12704         * config/mips/linux.mh (NATDEPFILES): Likewise.
12705         * config/pa/linux.mh (NATDEPFILES): Likewise.
12706         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12707         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12708         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12709         * config/s390/linux.mh (NATDEPFILES): Likewise.
12710         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12711         * config/sparc/linux.mh (NATDEPFILES): Likewise.
12712         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12713         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12714         * defs.h: Remove #include <stdint.h> (moved to
12715         common/common-defs.h).
12716         * linux-nat.c: Include nat/linux-personality.h.  Remove #include
12717         <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12718         nat/linux-personality.c).
12719         (linux_nat_create_inferior): Remove code to disable address space
12720         randomization (moved to nat/linux-personality.c).  Create cleanup
12721         to disable address space randomization.
12722         * nat/linux-personality.c: New file.
12723         * nat/linux-personality.h: Likewise.
12724
12725 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
12726
12727         * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12728         common/posix-strerror.c.
12729         (posix-strerror.o): New rule.
12730         (mingw-strerror.o): Likewise.
12731         * common/common-utils.h (safe_strerror): Move prototype to here,
12732         from utils.h.
12733         * common/common.host: New file.
12734         * common/mingw-strerror.c: Likewise.
12735         * common/posix-strerror.c: Likewise.
12736         * configure: Regenerated.
12737         * configure.ac: Source common/common.host.  Add variable
12738         common_host_obs to gdb_host_obs.
12739         * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12740         gdb/common/posix-strerror.c when warning about the use of
12741         strerror.
12742         * mingw-hdep.c (safe_strerror): Remove definition; move it to
12743         common/mingw-strerror.c.
12744         * posix-hdep.c (safe_strerror): Remove definition; move it to
12745         common/posix-hdep.c.
12746         * utils.h (safe_strerror): Remove prototype; move to
12747         common/common-utils.h.
12748
12749 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
12750
12751         GDB 7.8.2 released.
12752
12753 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
12754
12755         * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12756         ___XA type if the array has already been fixed.
12757
12758 2015-01-14  Yao Qi  <yao@codesourcery.com>
12759
12760         * Makefile.in (ppc-linux.o): New rule.
12761         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12762         * configure.ac: AC_CHECK_FUNCS(getauxval).
12763         * config.in: Re-generated.
12764         * configure: Re-generated.
12765         * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12766         Declare.
12767         * nat/ppc-linux.c: New file.
12768         * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12769         Call ppc64_64bit_inferior_p.
12770
12771 2015-01-14  Yao Qi  <yao@codesourcery.com>
12772
12773         * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12774         nat/ppc-linux.h.
12775         (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12776         (PPC_FEATURE_HAS_DFP): Likewise.
12777         (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12778         (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12779         (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12780         Include "nat/ppc-linux.h".
12781         * nat/ppc-linux.h: New file.
12782         * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12783
12784 2015-01-14  Pedro Alves  <palves@redhat.com>
12785
12786         PR gdb/17525
12787         * breakpoint.c: Include "interps.h".
12788         (bpstat_do_actions_1): Also check whether the interpreter is
12789         async.
12790
12791 2015-01-14  Pedro Alves  <palves@redhat.com>
12792
12793         PR cli/17828
12794         * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12795         reinstall if the interpreter is sync.
12796
12797 2015-01-13  Doug Evans  <dje@google.com>
12798
12799         * objfiles.c (objfile_filename): New function.
12800         * objfiles.h (objfile_filename): Declare it.
12801         (objfile_name): Add function comment.
12802         * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12803         bfd file name (which may be realpath'd), and the original name.
12804
12805 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12806
12807         * NEWS: Create a new section for the next release branch.
12808         Rename the section of the current branch, now that it has
12809         been cut.
12810
12811 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12812
12813         GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12814         * version.in: Bump version to 7.9.50.DATE-cvs.
12815
12816 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12817
12818         * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12819         Remove trailing new-line in argument of call to warning.
12820
12821 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12822
12823         * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12824         new-line in argument of call to "warning".
12825
12826 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12827
12828         * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12829         in static block, then try searching for primitive types.
12830
12831 2015-01-12  Patrick Palka  <patrick@parcs.ath.cx>
12832
12833         * top.h (gdb_add_history): Declare.
12834         * top.c (command_count): New variable.
12835         (gdb_add_history): New function.
12836         (gdb_safe_append_history): New static function.
12837         (quit_force): Call it.
12838         (command_line_input): Use gdb_add_history instead of
12839         add_history.
12840         * event-top.c (command_line_handler): Likewise.
12841
12842 2015-01-12  James Clarke  <jrtc27@jrtc27.com>  (tiny patch)
12843
12844         PR gdb/17046
12845         * darwin-nat.c: Replace <machine/setjmp.h> #include by
12846         <setjmp.h> #include.
12847
12848 2015-01-11  Doug Evans  <xdje42@gmail.com>
12849
12850         * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12851
12852 2015-01-11  Doug Evans  <xdje42@gmail.com>
12853
12854         PR gdb/15830
12855         * NEWS: The "maint demangle" command is renamed as "demangle".
12856         * demangle.c: #include cli/cli-utils.h, language.h.
12857         (demangle_command): New function.
12858         (_initialize_demangle): Add new command "demangle".
12859         * maint.c (maintenance_demangle): Stub out.
12860         (_initialize_maint_cmds): Update help text for "maint demangle",
12861         and mark as deprecated.
12862
12863 2015-01-11  Mark Kettenis  <kettenis@gnu.org>
12864
12865         * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12866         inferior_thread is a function.
12867
12868 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
12869
12870         * Makefile.in (.y.c): Don't munge yacc's #line
12871         directives.
12872
12873 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
12874
12875         * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12876         to prompt for input.
12877         * tui/tui-hooks.c (tui_query_hook): Remove.
12878         (tui_install_hooks): Don't set deprecated_query_hook.
12879         * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12880         height calculation.  Always update the command window's cur_line.
12881
12882 2015-01-09  Pedro Alves  <palves@redhat.com>
12883
12884         * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12885         function.
12886         * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12887         declaration.
12888         * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12889         (linux_resume_one_lwp): Store the thread's PC.  Adjust to clear
12890         stop_reason.
12891         (check_stopped_by_watchpoint): New function.
12892         (save_sigtrap): Reimplement.
12893         (linux_nat_stopped_by_watchpoint): Adjust.
12894         (linux_nat_lp_status_is_event): Delete.
12895         (stop_wait_callback): Only call save_sigtrap after storing the
12896         pending status.
12897         (status_callback): If the thread had been stopped for a breakpoint
12898         that has since been removed, discard the event and resume the LWP.
12899         (count_events_callback, select_event_lwp_callback): Use
12900         lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12901         (cancel_breakpoint): Rename to ...
12902         (check_stopped_by_breakpoint): ... this.  Record whether the LWP
12903         stopped for a software breakpoint or hardware breakpoint.
12904         (select_event_lwp): Only give preference to the stepping LWP in
12905         all-stop mode.  Adjust comments.
12906         (stop_and_resume_callback): Remove references to new_pending_p.
12907         (linux_nat_filter_event): Likewise.  Leave exit events of the
12908         leader thread pending here.  Handle signal short circuiting here.
12909         Only call save_sigtrap after storing the pending waitstatus.
12910         (linux_nat_wait_1): Remove 'retry' label.  Remove references to
12911         new_pending.  Don't handle leaving events the caller is not
12912         interested in pending here, nor handle signal short-circuiting
12913         here.  Also give equal priority to all LWPs that have had events
12914         in non-stop mode.  If reporting a software breakpoint event,
12915         unadjust the LWP's PC.
12916         * linux-nat.h (enum lwp_stop_reason): New.
12917         (struct lwp_info) <stop_pc>: New field.
12918         (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12919         (struct lwp_info) <stop_reason>: New field.
12920         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12921
12922 2015-01-09  Pedro Alves  <palves@redhat.com>
12923
12924         * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12925         Set the LWP's 'resumed' flag.
12926
12927 2015-01-09  Pedro Alves  <palves@redhat.com>
12928
12929         * linux-nat.c (linux_resume_one_lwp): New function.
12930         (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12931         (linux_nat_resume): Use lwp_status_pending_p and
12932         linux_resume_one_lwp.
12933         (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12934         (linux_handle_extended_wait): Use linux_resume_one_lwp.
12935         (status_callback, running_callback): Use lwp_status_pending_p.
12936         (lwp_status_pending_p): New function.
12937         (stop_and_resume_callback): Use lwp_status_pending_p.
12938         (linux_nat_filter_event): Use linux_resume_one_lwp.
12939         (linux_nat_wait_1): Always use status_callback to look for an LWP
12940         with a pending status.  Use linux_resume_one_lwp.
12941         (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12942         linux_resume_one_lwp.
12943
12944 2015-01-09  Pedro Alves  <palves@redhat.com>
12945
12946         * breakpoint.c (bp_location_inserted_here_p): New function,
12947         factored out from ...
12948         (breakpoint_inserted_here_p): ... here.  Use
12949         ALL_BP_LOCATIONS_AT_ADDR.
12950         (software_breakpoint_inserted_here_p): Use
12951         bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12952
12953 2014-01-09  Pedro Alves  <palves@redhat.com>
12954
12955         Skip enabling event reporting if the kernel supports
12956         PTRACE_EVENT_CLONE.
12957         * linux-thread-db.c: Include "nat/linux-ptrace.h".
12958         (thread_db_use_events): New function.
12959         (try_thread_db_load_1): Check thread_db_use_events before enabling
12960         event reporting.
12961         (update_thread_state): New function.
12962         (attach_thread): Use it.  Check thread_db_use_events before
12963         enabling event reporting.
12964         (thread_db_detach): Check thread_db_use_events before disabling
12965         event reporting.
12966         (find_new_threads_callback): Check thread_db_use_events before
12967         enabling event reporting.  Update the thread's state if not using
12968         libthread_db events.
12969
12970 2015-01-09  Pedro Alves  <palves@redhat.com>
12971
12972         * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12973         about to wait for is > 0.
12974         * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12975         the kernel thread ID is -1.
12976
12977 2015-01-09  Pedro Alves  <palves@redhat.com>
12978
12979         * linux-nat.c (attach_proc_task_lwp_callback): New function.
12980         (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12981         (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12982         ptrace option flags.
12983         * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12984         field.
12985         * nat/linux-procfs.c: Include <dirent.h>.
12986         (linux_proc_get_int): New parameter "warn".  Handle it.
12987         (linux_proc_get_tgid): Adjust.
12988         (linux_proc_get_tracerpid): Rename to ...
12989         (linux_proc_get_tracerpid_nowarn): ... this.
12990         (linux_proc_pid_get_state): New function, factored out from
12991         (linux_proc_pid_has_state): ... this.  Add new parameter "warn"
12992         and handle it.
12993         (linux_proc_pid_is_gone): New function.
12994         (linux_proc_pid_is_stopped): Adjust.
12995         (linux_proc_pid_is_zombie_maybe_warn)
12996         (linux_proc_pid_is_zombie_nowarn): New functions.
12997         (linux_proc_pid_is_zombie): Use
12998         linux_proc_pid_is_zombie_maybe_warn.
12999         (linux_proc_attach_tgid_threads): New function.
13000         * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
13001         (linux_proc_get_tracerpid): Rename to ...
13002         (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
13003         (linux_proc_pid_is_gone): New declaration.
13004         (linux_proc_pid_is_zombie): Update comment.
13005         (linux_proc_pid_is_zombie_nowarn): New declaration.
13006         (linux_proc_attach_lwp_func): New typedef.
13007         (linux_proc_attach_tgid_threads): New declaration.
13008         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
13009         use nowarn functions.
13010         (linux_ptrace_attach_fail_reason_string): Move here from
13011         gdbserver/linux-low.c and rename.
13012         (ptrace_supports_feature): If the current ptrace options are not
13013         known yet, check them now, instead of asserting.
13014         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
13015         Declare.
13016
13017 2015-01-09  Pedro Alves  <palves@redhat.com>
13018
13019         * linux-thread-db.c (thread_db_find_new_threads_silently)
13020         (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
13021         (find_new_threads_once): Print debug output on gdb_stdlog.
13022
13023 2015-01-09  Chen Gang  <gang.chen.5i5j@gmail.com>
13024             Pedro Alves  <palves@redhat.com>
13025
13026         * compile/compile.c: Include "gdb_wait.h".
13027         (do_rmdir): Check return value, and free 'zap'.
13028
13029 2015-01-08  Pedro Alves  <palves@redhat.com>
13030             Yao Qi  <yao@codesourcery.com>
13031
13032         * dwarf2loc.c (indirect_pieced_value): Don't call
13033         gdb_sign_extend.  Call extract_signed_integer instead.
13034         * utils.c (gdb_sign_extend): Remove.
13035         * utils.h (gdb_sign_extend): Remove declaration.
13036
13037 2015-01-07  Pierre Muller  <muller@sourceware.org>
13038
13039         PR symtab/17811
13040         * stabsread.c (define_symbol): Set language for C++ special symbols.
13041
13042 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
13043
13044         * inflow.c (initial_gdb_ttystate): Tweak comment.
13045
13046 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
13047
13048         * inflow.c (set_initial_gdb_ttystate): Add empty line after
13049         comment documenting function.
13050
13051 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
13052
13053         * terminal.h (set_initial_gdb_ttystate): Declare.
13054         * inflow.c (initial_gdb_ttystate): New static variable.
13055         (set_initial_gdb_ttystate): New setter.
13056         (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
13057         instead of our current terminal state.
13058         * top.c (gdb_init): Call set_initial_gdb_ttystate.
13059
13060 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
13061
13062         * guile/scm-type.c (tyscm_array_1): Add comment.
13063         * python/py-type.c (typy_array_1): Add comment.
13064
13065 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
13066
13067         * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
13068         error if N2 is equal to N1 - 1.
13069
13070 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
13071
13072         * python/py-type.c (typy_array_1): Do not raise negative-length
13073         exception if N2 is equal to N1 - 1.
13074
13075 2015-01-03  Doug Evans  <xdje42@gmail.com>
13076
13077         * c-exp.y: Whitespace cleanup.
13078         (classify_inner_name): Remove extra ;.
13079
13080 2015-01-02  Maciej W. Rozycki  <macro@codesourcery.com>
13081
13082         * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
13083         offset signed.
13084
13085 2015-01-02  Doug Evans  <dje@google.com>
13086
13087         * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
13088
13089 2015-01-02  Doug Evans  <dje@google.com>
13090
13091         * symtab.h (struct symbol): Fix typo in comment.
13092
13093 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
13094
13095         Update year range in copyright notice of all files.
13096
13097 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
13098
13099         * top.c (print_gdb_version): Update copyright year to 2015.
13100
13101 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
13102
13103         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
13104
13105 For older changes see ChangeLog-2014.
13106 \f
13107 Local Variables:
13108 mode: change-log
13109 left-margin: 8
13110 fill-column: 74
13111 version-control: never
13112 coding: utf-8
13113 End: