guile: Change return value of gdbscm_with_guile for const char *
[external/binutils.git] / gdb / ChangeLog
1 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
2
3         * guile/guile-internal.h (gdbscm_with_guile): Change return
4         types to const char *.
5         * guile/scm-safe-call.c (gdbscm_with_guile): Likewise.
6         (struct c_data) <func>: Likewise.
7         (struct c_data) <result>: Change type to const char *.
8         (scscm_eval_scheme_string): Change return type to
9         const char *.
10         (scscm_source_scheme_script): Likewise.
11         (gdbscm_safe_eval_string): Change type of result variable to
12         const char * and remove cast.
13         (gdbscm_safe_source_script): Likewise.
14         * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker):
15         Change return type to const char *.
16         (gdbscm_disasm_read_memory): Change type of status to
17         const char *.
18
19 2015-10-27  Pedro Alves  <palves@redhat.com>
20
21         * source.c (openp): New local 'last_errno'.  Use it to
22         save/restore errno.
23
24 2015-10-27  Pedro Alves  <palves@redhat.com>
25
26         * psymtab.c (dump_psymtab_addrmap_1): Add casts.
27
28 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
29
30         * ctf.c (SET_ENUM_FIELD): New macro.
31         (ctf_read_status): Use it.
32         (ctf_read_tp): Use it.
33
34 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
35
36         * guile/scm-breakpoint.c (gdbscm_set_breakpoint_stop_x): Add
37         scm_t_dynwind_flags casts.
38         * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
39         * guile/scm-ports.c (gdbscm_open_memory): Likewise.
40         * guile/scm-value.c (gdbscm_value_to_string): Likewise.
41
42 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
43
44         * ax.h (ax_raw_byte): New declaration.
45         * ax-general.c (ax_raw_byte): New function.
46         (ax_simple): Use ax_raw_byte.
47         * ax-gdb.c (gen_printf): Likewise.
48
49 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
50
51         * ada-lang.h (GROW_VECT): Add cast.
52
53 2015-10-26  Doug Evans  <xdje42@gmail.com>
54
55         * symtab.h (struct general_symbol_info> <ada_mangled>: Update comment.
56
57 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
58
59         * target.c (memory_xfer_partial): Change type of buf to gdb_byte
60         pointer.
61         (simple_search_memory): Cast return of memmem.
62
63 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
64
65         * stap-probe.c (handle_stap_probe): Add (const char *) casts.
66
67 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
68
69         * ctf.c (ctf_xfer_partial): Return TARGET_XFER_E_IO instead of
70         -1 on error.
71
72 2015-10-26  Doug Evans  <dje@google.com>
73
74         PR symtab/17391
75         * dwarf2-frame.c (dwarf2_restore_rule): Call dwarf_reg_to_regnum
76         instead of gdbarch_dwarf2_reg_to_regnum.
77         (dwarf2_frame_cache): Ditto.
78         (read_addr_from_reg): Call dwarf_reg_to_regnum_or_error instead of
79         gdbarch_dwarf2_reg_to_regnum.
80         (get_reg_value): Ditto.
81         (dwarf2_fetch_cfa_info): Ditto.
82         (dwarf2_frame_prev_register): Ditto.
83         * dwarf2loc.c: #include "complaints.h".
84         (dwarf_expr_read_addr_from_reg): Call dwarf_reg_to_regnum_or_error
85         instead of gdbarch_dwarf2_reg_to_regnum.
86         (dwarf_expr_get_reg_value): Ditto.
87         (read_pieced_value): Ditto.
88         (write_pieced_value): Ditto.
89         (dwarf2_evaluate_loc_desc_full): Ditto.
90         (dwarf_reg_to_regnum): New function.
91         (throw_bad_regnum_error): New function.
92         (dwarf_reg_to_regnum_or_error): Renamed from
93         dwarf2_reg_to_regnum_or_errorChange to take a ULONGEST regnum.
94         All callers updated.  Call throw_bad_regnum_error.
95         (locexpr_regname): Improve text of bad register number.
96         * dwarf2loc.h (dwarf_reg_to_regnum): Declare.
97         (dwarf_reg_to_regnum_or_error): Update prototype.
98         * dwarf2expr.c: #include "dwarf2loc.h".
99         (dwarf_block_to_sp_offset): Call dwarf_reg_to_regnum instead of
100         gdbarch_dwarf2_reg_to_regnum.
101         * gdbarch.sh (dwarf2_reg_to_regnum): Add comment.
102         * gdbarch.h: Regenerate.
103         * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Remove warning for bad
104         register.
105         * avr-tdep.c (avr_dwarf_reg_to_regnum): Ditto.
106         * cris-tdep.c (cris_dwarf2_reg_to_regnum): Ditto.
107         * bfin-tdep.c (bfin_reg_to_regnum): Fix error checking.
108         * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Improve error checking.
109         Remove warning for bad register.
110         * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Ditto.
111         * i386-tdep.c (i386_svr4_dwarf_reg_to_regnum): Renamed from
112         i386_svr4_reg_to_regnum.  Return -1 for bad registers.
113         (i386_svr4_reg_to_regnum): New function.
114         (i386_gdbarch_init): Update call to set_gdbarch_dwarf2_reg_to_regnum.
115         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Don't assert
116         on bad registers, return -1.
117         * msp430-tdep.c (msp430_dwarf2_reg_to_regnum): Improve error checking.
118         Remove warning for bad register.
119         * nios2-tdep.c: Add static assert for NIOS2_NUM_REGS.
120         (nios2_dwarf_reg_to_regnum): Fix off-by-one error.
121         Remove warning for bad register.  Return -1 for bad register.
122         * rl78-tdep.c (rl78_dwarf_reg_to_regnum): Don't flag an internal error
123         for bad register, return -1.
124         * rx-tdep.c (rx_dwarf_reg_to_regnum): Ditto.
125         * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Fix error result.
126         * mep-tdep.c (mep_debug_reg_to_regnum): Ditto.
127         * mips-tdep.c (mips_stab_reg_to_regnum): Ditto.
128         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
129         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Remove warning
130         for bad regs.
131         * xtensa-tdep.c (xtensa_reg_to_regnum): Remove internal error for
132         bad regs.  Fix error result.
133         * stabsread.c (stab_reg_to_regnum): Watch for negative regno.
134         (reg_value_complaint): Update complaint text.
135         * mdebugread.c (reg_value_complaint): New function.
136         (mdebug_reg_to_regnum): Rewrite to watch for bad reg numbers.
137
138 2015-10-26  Doug Evans  <dje@google.com>
139
140         PR python/18938
141         * cli/cli-cmds (source_script_fron_sctream): New arg file_to_open.
142         All callers updated.
143
144 2015-10-26  Doug Evans  <dje@google.com>
145
146         * psymtab.c (struct dump_psymtab_addrmap_data): Define.
147         (dump_psymtab_addrmap_1, dump_psymtab_addrmap): New functions.
148         (maintenance_print_psymbols): Print address map.
149
150 2015-10-26  Doug Evans  <dje@google.com>
151
152         * nat/linux-nat.h (__SIGRTMIN): Move here from gdbserver/linux-low.c.
153
154 2015-10-26  Doug Evans  <dje@google.com>
155
156         * common/gdb_wait.h (W_STOPCODE): Define, moved here from
157         gdbserver/linux-low.c.
158         (WSETSTOP): Simplify.
159
160 2015-10-26  Doug Evans  <dje@google.com>
161
162         * linux-thread-db.c (find_new_threads_callback): Ditto.
163         (thread_db_pid_to_str): Ditto.
164
165 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
166
167         * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Do not pass a
168         local char array to scm_mode_bits, use a cast instead.
169
170 2015-10-26  Simon Marchi  <simon.marchi@ericsson.com>
171
172         * tui/tui-data.c (tui_alloc_content): Don't check xmalloc
173         result.  Change type of element_block_ptr.  Change allocation to
174         use XNEWVEC.
175
176 2015-10-26  Luis Machado  <lgustavo@codesourcery.com>
177
178         * record-full.c (record_full_message_wrapper_safe): Pass empty string to
179         catch_errors call instead of NULL.
180
181 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
182
183         * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Pass non-const
184         char pointer to scm_mode_bits.
185
186 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
187
188         * symtab.c (default_make_symbol_completion_list_break_on_1): Add
189         cast.
190
191 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
192
193         * guile/scm-ports.c (gdbscm_memory_port_write): Declare new
194         "data" local variable and use it.
195
196 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
197
198         * guile/scm-symbol.c (gdbscm_lookup_global_symbol): Add
199         domain_enum cast.
200         (gdbscm_lookup_symbol): Likewise.
201
202 2015-10-25  Iain Buclaw  <ibuclaw@gdcproject.org>
203
204         * d-exp.y: Remove an obsolete comment and propagate the block
205         information to the produced expression.
206
207 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
208
209         * tui/tui-data.c (tui_add_to_source_windows): Remove void *
210         cast.
211         (tui_add_content_elements): Likewise.
212
213 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
214
215         * cli/cli-setshow.c (do_set_command): Constify p.
216
217 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
218
219         * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Replace
220         (void *) cast with (gdb_byte *).
221
222 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
223
224         * proc-service.c (ps_pdread): Add cast.
225
226 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
227
228         * sparc64-tdep.c (sparc64_store_arguments): Split assignment of
229         valbuf.
230
231 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
232
233         * ia64-tdep.c (ia64_pseudo_register_write): Remove cast.
234         (ia64_push_dummy_call): Remove cast and change type of "to" to
235         array of gdb_byte.
236
237 2015-10-23  Simon Marchi  <simon.marchi@polymtl.ca>
238
239         * linux-btrace.c (linux_enable_pt): Add cast to mmap return.
240
241 2015-10-23  Simon Marchi  <simon.marchi@ericsson.com>
242
243         * observer.h (observer_${event}_notification_stub): Add cast.
244
245 2015-10-23  Yao Qi  <yao.qi@linaro.org>
246
247         * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set
248         dsd.insn_count to zero.
249
250 2015-10-22  Pedro Alves  <palves@redhat.com>
251
252         * infrun.c (stop_after_trap): Delete.
253         (clear_proceed_status, handle_signal_stop, struct
254         infcall_control_state, save_infcall_control_state)
255         (restore_infcall_control_state): Remove references to
256         stop_after_trap.
257
258 2015-10-22  Simon Marchi  <simon.marchi@ericsson.com>
259
260         * python/python.c (_initialize_python): Add cast.
261
262 2015-10-22  Simon Marchi  <simon.marchi@ericsson.com>
263
264         * nto-tdep.c (nto_inferior_data): Add cast.
265
266 2015-10-22  Pedro Alves  <palves@redhat.com>
267
268         * windows-nat.c (do_initial_windows_stuff): Rewrite loop using
269         windows_wait and windows_resume directly instead of
270         wait_for_inferior and resume.
271
272 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
273
274         * xtensa-tdep.h (XTREG): Add casts.
275         (XTREG_END): Likewise.
276
277 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
278
279         * solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
280
281 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
282
283         * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
284
285 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
286
287         * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
288         buf to gdb_byte*.
289         (supply_32bit_reg): Add cast.
290         (mips64_fill_gregset): Likewise.
291
292 2015-10-21  Simon Marchi  <simon.marchi@polymtl.ca>
293
294         PR python/18073
295         * python/py-type.c (typy_get_composite): Allow returning a
296         function type.
297
298 2015-10-21  Keven Boell  <keven.boell@intel.com>
299
300         * dwarf2read.c (set_die_type): Add read of
301         DW_AT_allocated and DW_AT_associated.
302         * f-typeprint.c: New include of typeprint.h
303         (f_print_type): Add check for allocated/associated
304         status of type.
305         (f_type_print_varspec_suffix): Add check for
306         * gdbtypes.c (create_array_type_with_stride):
307         Add check for valid data location of type in
308         case allocated or associated attributes are set.
309         Length of an array should be only calculated if
310         allocated or associated is resolved as true.
311         (is_dynamic_type_internal): Add check for allocated/
312         associated.
313         (resolve_dynamic_array): Evaluate allocated/associated
314         properties.
315         * gdbtypes.h (enum dynamic_prop_node_kind): <DYN_PROP_ALLOCATED>
316         <DYN_PROP_ASSOCIATED>: New enums.
317         (TYPE_ALLOCATED_PROP, TYPE_ASSOCIATED_PROP): New macros.
318         (type_not_allocated): New function.
319         (type_not_associated): New function.
320         * valarith.c (value_subscripted_rvalue): Add check for
321         allocated/associated.
322         * valprint.c: New include of typeprint.h.
323         (valprint_check_validity): Add check for allocated/associated.
324         (value_check_printable): Add check for allocated/
325         associated.
326         * typeprint.h (val_print_not_allocated): New function.
327         (val_print_not_associated): New function.
328         * typeprint.c (val_print_not_allocated): New function.
329         (val_print_not_associated): New function.
330
331 2015-10-21  Antoine Tremblay  <antoine.tremblay@ericsson.com>
332
333         * Makefile.in: Add arm.c/o.
334         * arch/arm.c: New file.
335         * arch/arm.h: (IS_THUMB_ADDR): Move macro from arm-tdep.c.
336         (MAKE_THUMB_ADDR): Likewise.
337         (UNMAKE_THUMB_ADDR): Likewise.
338         * arm-tdep.c (int thumb_insn_size): Move to arm.c.
339         (IS_THUMB_ADDR): Move to arm.h.
340         (MAKE_THUMB_ADDR): Likewise.
341         (UNMAKE_THUMB_ADDR): Likewise.
342         * configure.tgt: Add arm.o to all ARM configs.
343
344 2015-10-21  Yao Qi  <yao.qi@linaro.org>
345
346         * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
347         Remove argument exp_vCont_s.
348         * gdb.base/range-stepping.exp: Callers updated.
349         * gdb.trace/range-stepping.exp: Likewise.
350
351 2015-10-21  Aleksandar Ristovski  <aristovski@qnx.com>
352
353         * gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
354         (nto_sniff_abi_note_section): New function.
355         (nto_elf_osabi_sniffer): Use new function to recognize nto specific
356         binary.
357
358 2015-10-21  Aleksandar Ristovski  <aristovski@qnx.com>
359
360         * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
361         (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
362         * nto-tdep.c (nto_new_inferior_data_reg): New definition.
363         (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
364         New functions.
365         (_initialize_nto_tdep): New forward declaration, new function.
366         * nto-tdep.h (struct nto_inferior_data): New struct.
367         (nto_inferior_data): New function declaration.
368
369 2015-10-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
370
371         * findvar.c (address_from_register): Check REGNUM validity.
372
373 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
374
375         * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
376         (init_procfs_targets): Wire new function.
377
378 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
379
380         * nto-procfs.c (sys/auxv.h): Include.
381         (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
382         * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
383         * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
384
385 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
386
387         * nto-procfs.c (nto_procfs_path): Rename to...
388         (nodestr): ... this, and change type.
389         (nto_node): Use new variable and logic accordingly.
390         (procfs_open_1): Use new variable name. Use local buffer to construct
391         procfrs path.
392         (procfs_pidlist): Use NODESTR to construct procfs path.
393         (procfs_files_info): Use NODESTR to output meaningful text.
394         (do_attach): Construct procfs using NODESTR.
395         (procfs_create_inferior): Compare pointer to NULL.
396
397 2015-10-19  Josh Stone  <jistone@redhat.com>
398
399         * linux-nat.c (linux_handle_syscall_trap): Always update entry/
400         return state, even when not actively catching syscalls at all.
401         (linux_handle_extended_wait): Mark syscall_state like an entry.
402         (wait_lwp): Set syscall_state ignored for other traps.
403         (linux_nat_filter_event): Likewise.
404
405 2015-10-19  Luis Machado  <lgustavo@codesourcery.com>
406
407         * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
408         when handling 'E', 'T', 'S', 'X' and 'W' packets.
409         Do not set rs->waiting_for_stop_reply back to 1.
410
411 2015-10-16  Aleksandar Ristovski  <aristovski@qnx.com>
412
413         * nto-procfs.c (common/filestuff.h): Include.
414         (procfs_can_use_hw_breakpoint): Fix enum name.
415         (procfs_open_1): Fix compiler warning.
416         (procfs_pidlist): Make static.
417         (procfs_meminfo): Make static, fix type name, add missing argument.
418         (procfs_store_registers): Make static.
419         (procfs_thread_info): Remove unused function.
420         (_initialize_procfs): Forward declare.
421
422 2015-10-16  Yao Qi  <yao.qi@arm.com>
423
424         * MAINTAINERS: Update my email address.
425
426 2015-10-15  Yao Qi  <yao.qi@linaro.org>
427
428         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
429         Call gdbarch_breakpoint_from_pc to instruction length.
430         (aarch64_linux_remove_hw_breakpoint): Likewise.
431         * common/common-regcache.h (regcache_register_size): Declare.
432         * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
433         (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
434         the process is 32bit, otherwise set alignment to 4.
435         (aarch64_handle_breakpoint): Update comments.
436         * regcache.c (regcache_register_size): New function.
437
438 2015-10-15  Aleksandar Ristovski  <aristovski@qnx.com>
439
440         * gdbarch.sh (core_regset_section): Remove.
441         * gdbarch.h: Regenerate.
442
443 2015-10-14  Yao Qi  <yao.qi@linaro.org>
444
445         * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
446         out of it.
447         (enum aarch64_memory_operand_type): New.
448
449 2015-10-13  David Edelsohn  <dje.gcc@gmail.com>
450
451         * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
452
453 2015-10-13  Pedro Alves  <palves@redhat.com>
454
455         * ada-lang.c (ada_enum_name): Constify local.
456         * ada-typeprint.c (print_range_bound): Constify locals.
457         * c-varobj.c (c_describe_child): Likewise.
458         * cli/cli-setshow.c (do_set_command): Likewise.
459         * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
460         * dwarf2read.c (find_file_and_directory): Likewise.
461         (anonymous_struct_prefix, dwarf2_name): Likewise.
462         * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
463         * go-lang.c (unpack_mangled_go_symbol): Likewise.
464         * jv-typeprint.c (java_type_print_base): Likewise.
465         * ser-tcp.c (net_open): Likewise.
466         * symfile.c (deduce_language_from_filename): Likewise.
467         * symtab.c (gdb_mangle_name): Likewise.
468         * tui/tui-io.c (tui_redisplay_readline): Likewise.
469
470 2015-10-13  Pedro Alves  <palves@redhat.com>
471
472         * infrun.c (restore_execution_direction): New function.
473         (fetch_inferior_event): Use it instead of
474         make_cleanup_restore_integer.
475         (execution_direction): Change type to enum
476         exec_direction_kind.
477         * infrun.h (execution_direction): Likewise.
478
479 2015-10-13  Pedro Alves  <palves@redhat.com>
480
481         * ada-lang.c (ada_value_primitive_packed_val): Constify
482         locals.  Use value_contents_writeable.  Remove casts.
483
484 2015-10-13  Pedro Alves  <palves@redhat.com>
485
486         * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
487         and alloca calls.
488
489 2015-10-13  Simon Marchi  <simon.marchi@polymtl.ca>
490
491         * lm32-tdep.c (lm32_push_dummy_call): Replace call to
492         write_memory with write_memory_unsigned_integer.
493
494 2015-10-13  Simon Marchi  <simon.marchi@polymtl.ca>
495
496         * solib-dsbt.c (cmp_name): Constify arguments.
497         * solib-frv.c (cmp_name): Likewise.
498         * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
499         * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
500         (bfd_lookup_symbol_from_dyn_symtab): Likewise.
501         (gdb_bfd_lookup_symbol): Likewise.
502         * solib.h (gdb_bfd_lookup_symbol): Likewise.
503         (gdb_bfd_lookup_symbol_from_symtab): Likewise.
504
505 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
506
507         * stack.c (parse_frame_specification): Remove message parameter,
508         replace with fixed string in function body, update function
509         comment.
510         (frame_info): Remove message to parse_frame_specification.
511         (select_frame_command): Likewise.
512
513 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
514
515         * stack.c (parse_frame_specification): Delete.
516         (parse_frame_specification_1): Rename to
517         parse_frame_specification.
518         (frame_info): Use parse_frame_specification.
519         (select_frame_command): Likewise.
520         (return_command): Use select_frame and print_stack_frame rather
521         than frame_command and select_frame_command.
522         (func_command): Use get_current_frame rather than
523         parse_frame_specification.
524
525 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
526
527         * stack.c (func_command): Return early when there is no ARG
528         string.
529
530 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
531
532         * stack.c: Include safe-ctype.h not ctype.h.
533         (parse_frame_specification): Use ISSPACE not isspace.
534         (backtrace_command): Use TOLOWER not tolower.
535
536 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
537
538         * mep-tdep.c (current_me_module): Add cast.
539         (mep_gdbarch_init): Likewise.
540
541 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
542
543         * m32c-tdep.c (m32c_move_reg_t): Replace with...
544         (m32c_write_reg_t): ...this and...
545         (m32c_read_reg_t): ...this.
546         (struct m32c_reg): Update types of read and write.
547         (m32c_raw_read): Change declaration type to m32c_read_reg_t and
548         adjust definition.
549         (m32c_banked_read): Likewise.
550         (m32c_sb_read): Likewise.
551         (m32c_part_read): Likewise.
552         (m32c_cat_read): Likewise.
553         (m32c_r3r2r1r0_read): Likewise.
554         (m32c_raw_write): Change declaration type to m32c_write_reg_t
555         and adjust definition.
556         (m32c_banked_write): Likewise.
557         (m32c_sb_write): Likewise.
558         (m32c_part_write): Likewise.
559         (m32c_cat_write): Likewise.
560         (m32c_r3r2r1r0_write): Likewise.
561
562 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
563
564         * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
565
566 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
567
568         * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
569         gdb_sys_no_syscall instead of -1.
570
571 2015-10-12  Yao Qi  <yao.qi@linaro.org>
572
573         * NEWS: Mention the change.
574
575 2015-10-12  Yao Qi  <yao.qi@linaro.org>
576
577         * arch/aarch64-insn.c (emit_load_store): Rename to ...
578         (aarch64_emit_load_store): ... it.  All callers updated.
579
580 2015-10-12  Yao Qi  <yao.qi@linaro.org>
581
582         * arch/aarch64-insn.c (emit_insn): Rename to ...
583         (aarch64_emit_insn): ... it.  All callers updated.
584
585 2015-10-12  Yao Qi  <yao.qi@linaro.org>
586
587         * aarch64-linux-tdep.c: Include arch-utils.h.
588         (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
589         set_gdbarch_displaced_step_copy_insn,
590         set_gdbarch_displaced_step_fixup,
591         set_gdbarch_displaced_step_free_closure,
592         set_gdbarch_displaced_step_location,
593         and set_gdbarch_displaced_step_hw_singlestep.
594         * aarch64-tdep.c (struct displaced_step_closure): New.
595         (struct aarch64_displaced_step_data): New.
596         (aarch64_displaced_step_b): New function.
597         (aarch64_displaced_step_b_cond): Likewise.
598         (aarch64_register): Likewise.
599         (aarch64_displaced_step_cb): Likewise.
600         (aarch64_displaced_step_tb): Likewise.
601         (aarch64_displaced_step_adr): Likewise.
602         (aarch64_displaced_step_ldr_literal): Likewise.
603         (aarch64_displaced_step_others): Likewise.
604         (aarch64_displaced_step_copy_insn): Likewise.
605         (aarch64_displaced_step_fixup): Likewise.
606         (aarch64_displaced_step_hw_singlestep): Likewise.
607         * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
608         (aarch64_displaced_step_copy_insn): Declare.
609         (aarch64_displaced_step_fixup): Declare.
610         (aarch64_displaced_step_hw_singlestep): Declare.
611         * arch/aarch64-insn.c (emit_insn): Moved from
612         gdbserver/linux-aarch64-low.c.
613         (emit_load_store): Likewise.
614         * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
615         gdbserver/linux-aarch64-low.c.
616         (struct aarch64_register): Likewise.
617         (struct aarch64_memory_operand): Likewise.
618         (ENCODE): Likewise.
619         (can_encode_int32): New macro.
620         (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
621         (emit_tb, emit_nop): Likewise.
622         (emit_insn): Declare.
623         (emit_load_store): Declare.
624
625 2015-10-12  Yao Qi  <yao.qi@linaro.org>
626
627         * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
628         gdbserver/linux-aarch64-low.c.
629         (aarch64_relocate_instruction): Likewise.
630         * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
631         (struct aarch64_insn_data): Moved from
632         gdbserver/linux-aarch64-low.c.
633         (struct aarch64_insn_visitor): Likewise.
634         (aarch64_relocate_instruction): Declare.
635
636 2015-10-12  Pierre-Marie de Rodat  <derodat@adacore.com>
637
638         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
639         EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
640         to the returned value.
641
642 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
643
644         * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
645         is large enough for BIT_SIZE.  Update function comment.
646
647 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
648
649         * ada-lang.c (ada_value_primitive_packed_val): Move
650         src_len variable to local block where used.  Override
651         BIT_SIZE if bigger than size of resolved type.
652
653 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
654
655         * gdbtypes.h (is_scalar_type): Add extern declaration.
656         * gdbtypes.c (is_scalar_type): Make non-static.
657         * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
658         to compute IS_SCALAR instead of doing it ourselves.
659
660 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
661
662         * ada-lang.c (ada_value_primitive_packed_val): Rework handling
663         of case where TYPE is dynamic.
664
665 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
666
667         * ada-lang.c (ada_unpack_from_contents): New function,
668         extracted from ada_value_primitive_packed_val.
669         (ada_value_primitive_packed_val): Replace extracted out code
670         by call to ada_unpack_from_contents.
671
672 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
673
674         * ada-lang.c (ada_value_primitive_packed_val): Reorder local
675         variable declarations.
676
677 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
678
679         * ada-lang.c (ada_value_primitive_packed_val): Change the type
680         of local variables src and unpacked to "gdb_type *" instead of
681         "unsigned char *".
682
683 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
684
685         * ada-lang.c (ada_value_primitive_packed_val): Make the name
686         of various local variables more explicit and consistent.
687         No real code change otherwise.
688
689 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
690
691         * i386-tdep.h (struct gdbarch_tdep): Change type of
692         register_reggroup_p to gdbarch_register_reggroup_p_ftype.
693
694 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
695
696         * cris-tdep.c (struct instruction_environment): Change type of
697         byte_order to enum bfd_endian.
698
699 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
700
701         * arm-linux-tdep.c (arm_canonicalize_syscall): Add
702         enum gdb_syscall casts.
703
704 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
705
706         * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
707         * arm-tdep.c (struct stack_item): Likewise.
708         (push_stack_item): Add gdb_byte* cast.
709         * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
710         (push_stack_item): Add gdb_byte* cast.
711         * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
712         and add cast.
713         * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
714         (push_stack_item): Add gdb_byte* cast.
715         * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
716         add cast.
717         * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
718         gdb_byte*.
719         * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
720         gdb_byte* and remove unnecessary cast.
721         (h8300h_extract_return_value): Likewise.
722         (h8300_store_return_value): Change type of valbuf to gdb_byte*.
723         (h8300h_store_return_value): Likewise.
724         * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
725         gdb_byte* and remove unnecessary cast.
726         * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
727         and add cast.
728         * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
729         gdb_byte* and remove unnecessary cast.
730         (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
731         valbuf.
732         * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
733         (mep_pseudo_cr64_read): Likewise.
734         (mep_pseudo_csr_write): Likewise.
735         (mep_pseudo_cr32_write): Likewise.
736         (mep_pseudo_cr64_write): Likewise.
737         * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
738         gdb_byte* and add cast.
739         * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
740         gdb_byte* and remove unnecessary cast.
741         (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
742         valbuf.
743         * p-valprint.c (print_scalar_formatted): Change type of valaddr to
744         gdb_byte*.
745         * printcmd.c (void): Likewise.
746         * python/py-inferior.c (infpy_read_memory): Change type of buffer to
747         gdb_byte* and add cast.
748         (infpy_write_memory): Likewise.
749         (infpy_search_memory): Likewise.
750         * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
751         and add cast.
752         (regcache_raw_write_unsigned): Likewise.
753         (regcache_cooked_write_signed): Likewise.
754         (regcache_cooked_write_unsigned): Likewise.
755         * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
756         gdb_byte*.
757
758 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
759
760         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
761         * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
762
763 2015-10-09  Eli Zaretskii  <eliz@gnu.org>
764
765         * stack.c (print_stack_frame):
766         * utils.c (printchar): Fix typos in commentary.
767
768 2015-10-08  Iain Buclaw  <ibuclaw@gdcproject.org>
769
770         * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
771         (PostfixExpression): Support `expr.sizeof' expressions.
772         (PrimaryExpression): Support `typeof(expr)' expressions.
773
774 2015-10-08  Maciej W. Rozycki  <macro@imgtec.com>
775
776         * MAINTAINERS: Update my email address.
777
778 2015-10-08  Markus Metzger  <markus.t.metzger@intel.com>
779
780         * record-btrace.c (record_btrace_resume): Fix void return.
781
782 2015-10-07  Yao Qi  <yao.qi@linaro.org>
783
784         * aarch64-tdep.c: Include opcode/aarch64.h.
785         (submask): Move it above.
786         (bit): Likewise.
787         (bits): Likewise.
788         (aarch64_software_single_step): Call aarch64_decode_insn.
789         Decode instruction by aarch64_inst instead of using
790         aarch64_decode_bcond and decode_masked_match.
791
792 2015-10-06  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
793
794         * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
795         only when the file is binary.
796
797 2015-10-02  James Bowman  <james.bowman@ftdichip.com>
798
799         * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
800         subroutine handling.
801
802 2015-10-01  Simon Marchi  <simon.marchi@ericsson.com>
803
804         * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
805
806 2015-09-30  Doug Evans  <dje@google.com>
807
808         * dwarf2read.c (setup_type_unit_groups): Add comment.
809
810 2015-09-30  Pedro Alves  <palves@redhat.com>
811
812         * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
813         * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
814         (x86_linux_create_target): Don't install
815         x86_linux_always_non_stop_p.
816
817 2015-09-30  Don Breazeal  <donb@codesourcery.com>
818
819         * remote.c (remote_parse_stop_reply): Call strprefix instead
820         of strncmp.
821
822 2015-09-30  Simon Marchi  <simon.marchi@ericsson.com>
823
824         * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
825         * gdbarch.h: Regenerate.
826         * i386-tdep.c (i386_gdbarch_init): Remove cast to
827         struct gdbarch_tdep_info *.
828         * mips-tdep.c (mips_gdbarch_init): Likewise.
829         * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
830         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
831         * spu-multiarch.c (spu_gdbarch): Likewise.
832
833 2015-09-30  Kevin Buettner  <kevinb@redhat.com>
834
835         * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
836         record a NULL value.
837
838 2015-09-29  Kevin Buettner  <kevinb@redhat.com>
839
840         * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
841         and union arguments the same as pointer arguments when determining
842         size of argument.
843
844 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
845
846         * ft32-tdep.c: #include "opcode/ft32.h".
847         Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
848         (ft32_analyze_prologue): Use FT32_* macros.
849
850 2015-09-28  Simon Marchi  <simon.marchi@ericsson.com>
851
852         * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
853         comment.
854
855 2015-09-28  Doug Evans  <dje@google.com>
856
857         * MAINTAINERS: Add Iain Buclaw as D language maintainer.
858
859 2015-09-28  Doug Evans  <dje@google.com>
860
861         * common/filestuff.c (make_cleanup_close): Update comment.
862
863 2015-09-26  Simon Marchi  <simon.marchi@polymtl.ca>
864
865         * btrace.c (parse_xml_btrace_block): Fix cast of
866         xml_find_attribute's return value.
867         * memory-map.c (memory_map_start_memory): Likewise.
868         * solib-svr4.c (library_list_start_library): Likewise.
869         * solib-target.c (library_list_start_segment): Likewise.
870         (library_list_start_section): Likewise.
871         * tracepoint.c (traceframe_info_start_memory): Likewise.
872
873 2015-09-26  Iain Buclaw  <ibuclaw@gdcproject.org>
874
875         * d-namespace.c (d_lookup_symbol): New arg langdef.
876         All callers updated.  Support looking up symbol as a primitive type.
877         (lookup_module_scope): New arg langdef.  All callers updated.
878         Call d_lookup_symbol directly for simple bare symbols.
879
880 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
881
882         * macrocmd.c (print_macro_callback): Add cast(s).
883         * macrotab.c (macro_bcache_str): Likewise.
884         (new_macro_definition): Likewise.
885         * main.c (captured_main): Likewise.
886         * maint.c (print_bfd_section_info): Likewise.
887         * mdebugread.c (mdebug_build_psymtabs): Likewise.
888         (basic_type): Likewise.
889         * memattr.c (mem_region_cmp): Likewise.
890         * memory-map.c (memory_map_start_memory): Likewise.
891         (memory_map_end_memory): Likewise.
892         (memory_map_start_property): Likewise.
893         (memory_map_end_property): Likewise.
894         (clear_result): Likewise.
895         * memrange.c (compare_mem_ranges): Likewise.
896         * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
897         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
898         * mi/mi-console.c (mi_console_file_delete): Likewise.
899         (mi_console_file_fputs): Likewise.
900         (mi_console_raw_packet): Likewise.
901         (mi_console_file_flush): Likewise.
902         (mi_console_set_raw): Likewise.
903         * mi/mi-interp.c (mi_interpreter_resume): Likewise.
904         (mi_new_thread): Likewise.
905         (mi_thread_exit): Likewise.
906         (mi_record_changed): Likewise.
907         (mi_inferior_added): Likewise.
908         (mi_inferior_appeared): Likewise.
909         (mi_inferior_exit): Likewise.
910         (mi_inferior_removed): Likewise.
911         (mi_interp_data): Likewise.
912         (mi_on_normal_stop): Likewise.
913         (mi_traceframe_changed): Likewise.
914         (mi_tsv_created): Likewise.
915         (mi_tsv_deleted): Likewise.
916         (mi_tsv_modified): Likewise.
917         (mi_breakpoint_created): Likewise.
918         (mi_breakpoint_deleted): Likewise.
919         (mi_breakpoint_modified): Likewise.
920         (mi_output_running_pid): Likewise.
921         (mi_inferior_count): Likewise.
922         (mi_solib_loaded): Likewise.
923         (mi_solib_unloaded): Likewise.
924         (mi_command_param_changed): Likewise.
925         (mi_memory_changed): Likewise.
926         (report_initial_inferior): Likewise.
927         (mi_ui_out): Likewise.
928         (mi_set_logging): Likewise.
929         * mi/mi-main.c (collect_cores): Likewise.
930         (print_one_inferior): Likewise.
931         (free_vector_of_ints): Likewise.
932         (free_splay_tree): Likewise.
933         (mi_execute_command): Likewise.
934         * mi/mi-out.c (mi_table_body): Likewise.
935         (mi_table_end): Likewise.
936         (mi_table_header): Likewise.
937         (mi_begin): Likewise.
938         (mi_end): Likewise.
939         (mi_field_int): Likewise.
940         (mi_field_string): Likewise.
941         (mi_field_fmt): Likewise.
942         (mi_flush): Likewise.
943         (mi_redirect): Likewise.
944         (field_separator): Likewise.
945         (mi_open): Likewise.
946         (mi_close): Likewise.
947         (mi_out_buffered): Likewise.
948         (mi_out_rewind): Likewise.
949         (mi_out_put): Likewise.
950         (mi_version): Likewise.
951         (mi_out_data_dtor): Likewise.
952         * mi/mi-parse.c (mi_parse_cleanup): Likewise.
953         * microblaze-tdep.c (microblaze_frame_cache): Likewise.
954         * minidebug.c (lzma_open): Likewise.
955         (lzma_pread): Likewise.
956         (lzma_close): Likewise.
957         (lzma_stat): Likewise.
958         * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
959         * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
960         (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
961         * mips-tdep.c (mips_insn16_frame_cache): Likewise.
962         (mips_micro_frame_cache): Likewise.
963         (mips_insn32_frame_cache): Likewise.
964         (mips_stub_frame_cache): Likewise.
965         (gdb_print_insn_mips): Likewise.
966         (value_of_mips_user_reg): Likewise.
967         (mips_gdbarch_init): Likewise.
968         * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
969         * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
970         (mipsnbsd_supply_gregset): Likewise.
971         * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
972         (am33_collect_gregset_method): Likewise.
973         (am33_collect_fpregset_method): Likewise.
974         * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
975         * moxie-tdep.c (moxie_frame_cache): Likewise.
976         * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
977         (msp430_analyze_frame_prologue): Likewise.
978         * mt-tdep.c (mt_frame_unwind_cache): Likewise.
979         * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
980         (nios2_collect_gregset): Likewise.
981         * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
982         (nios2_stub_frame_cache): Likewise.
983         * objc-lang.c (find_methods): Likewise.
984         * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
985         (get_objfile_pspace_data): Likewise.
986         (get_objfile_bfd_data): Likewise.
987         (objfile_bfd_data_free): Likewise.
988         (add_to_objfile_sections): Likewise.
989         (do_free_objfile_cleanup): Likewise.
990         (resume_section_map_updates_cleanup): Likewise.
991         * opencl-lang.c (builtin_opencl_type): Likewise.
992         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
993         * osdata.c (osdata_start_osdata): Likewise.
994         (osdata_start_item): Likewise.
995         (osdata_start_column): Likewise.
996         (osdata_end_column): Likewise.
997         (clear_parsing_data): Likewise.
998         (osdata_free_cleanup): Likewise.
999         * parse.c (type_stack_cleanup): Likewise.
1000         (exp_uses_objfile_iter): Likewise.
1001         * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
1002         (ppc_linux_collect_gregset): Likewise.
1003         (ppu2spu_prev_arch): Likewise.
1004         (ppu2spu_this_id): Likewise.
1005         (ppu2spu_prev_register): Likewise.
1006         (ppu2spu_unwind_register): Likewise.
1007         (ppu2spu_sniffer): Likewise.
1008         (ppu2spu_dealloc_cache): Likewise.
1009         (ppc_linux_init_abi): Likewise.
1010         * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
1011         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1012         * progspace.c (restore_program_space): Likewise.
1013         * psymtab.c (find_pc_sect_psymtab): Likewise.
1014         (compare_psymbols): Likewise.
1015         (psymbol_bcache_full): Likewise.
1016         (allocate_psymtab): Likewise.
1017         (discard_psymtabs_upto): Likewise.
1018         * python/py-block.c (set_block): Likewise.
1019         (del_objfile_blocks): Likewise.
1020         * python/py-breakpoint.c (build_bp_list): Likewise.
1021         * python/py-inferior.c (inferior_to_inferior_object): Likewise.
1022         (build_inferior_list): Likewise.
1023         (py_free_inferior): Likewise.
1024         * python/py-objfile.c (py_free_objfile): Likewise.
1025         (objfile_to_objfile_object): Likewise.
1026         * python/py-prettyprint.c (py_restore_tstate): Likewise.
1027         * python/py-progspace.c (py_free_pspace): Likewise.
1028         (pspace_to_pspace_object): Likewise.
1029         * python/py-symbol.c (set_symbol): Likewise.
1030         (del_objfile_symbols): Likewise.
1031         * python/py-symtab.c (set_sal): Likewise.
1032         (set_symtab): Likewise.
1033         (del_objfile_symtab): Likewise.
1034         (del_objfile_sal): Likewise.
1035         * python/py-type.c (save_objfile_types): Likewise.
1036         (set_type): Likewise.
1037         * python/py-unwind.c (pyuw_prev_register): Likewise.
1038         (pyuw_on_new_gdbarch): Likewise.
1039         * python/py-utils.c (py_decref): Likewise.
1040         (py_xdecref): Likewise.
1041         (gdb_py_generic_dict): Likewise.
1042         * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
1043         (gdbpy_clone_xmethod_worker_data): Likewise.
1044         (gdbpy_get_xmethod_arg_types): Likewise.
1045         (gdbpy_get_xmethod_result_type): Likewise.
1046         (gdbpy_invoke_xmethod): Likewise.
1047         * python/python.c (gdbpy_apply_type_printers): Likewise.
1048         (gdbpy_free_type_printers): Likewise.
1049         * record-btrace.c (record_btrace_disable_callback): Likewise.
1050         (bfcache_hash): Likewise.
1051         (bfcache_eq): Likewise.
1052         (btrace_get_frame_function): Likewise.
1053         (record_btrace_frame_unwind_stop_reason): Likewise.
1054         (record_btrace_frame_this_id): Likewise.
1055         (record_btrace_frame_prev_register): Likewise.
1056         (record_btrace_frame_dealloc_cache): Likewise.
1057         * record-full.c (record_full_message_wrapper): Likewise.
1058         (record_full_save_cleanups): Likewise.
1059         * regcache.c (regcache_descr): Likewise.
1060         (do_regcache_xfree): Likewise.
1061         (do_regcache_invalidate): Likewise.
1062         (do_cooked_read): Likewise.
1063         (regcache_transfer_regset): Likewise.
1064         * reggroups.c (reggroup_add): Likewise.
1065         (reggroup_next): Likewise.
1066         (reggroup_prev): Likewise.
1067         * remote-fileio.c (do_remote_fileio_request): Likewise.
1068         * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
1069         (do_notif_event_xfree): Likewise.
1070         * remote.c (get_remote_arch_state): Likewise.
1071         (remote_pspace_data_cleanup): Likewise.
1072         (get_remote_exec_file): Likewise.
1073         (set_pspace_remote_exec_file): Likewise.
1074         (compare_pnums): Likewise.
1075         (clear_threads_listing_context): Likewise.
1076         (remote_newthread_step): Likewise.
1077         (start_thread): Likewise.
1078         (end_thread): Likewise.
1079         (remove_child_of_pending_fork): Likewise.
1080         (remove_stop_reply_for_inferior): Likewise.
1081         (remove_stop_reply_of_remote_state): Likewise.
1082         (remote_notif_remove_once_on_match): Likewise.
1083         (stop_reply_match_ptid_and_ws): Likewise.
1084         (kill_child_of_pending_fork): Likewise.
1085         (register_remote_g_packet_guess): Likewise.
1086         (remote_read_description_p): Likewise.
1087         (remote_read_description): Likewise.
1088         (free_actions_list_cleanup_wrapper): Likewise.
1089         (remote_async_serial_handler): Likewise.
1090         * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
1091         (rl78_analyze_frame_prologue): Likewise.
1092         * rs6000-tdep.c (ppc_supply_gregset): Likewise.
1093         (ppc_supply_fpregset): Likewise.
1094         (ppc_supply_vsxregset): Likewise.
1095         (ppc_supply_vrregset): Likewise.
1096         (ppc_collect_gregset): Likewise.
1097         (ppc_collect_fpregset): Likewise.
1098         (ppc_collect_vsxregset): Likewise.
1099         (ppc_collect_vrregset): Likewise.
1100         (e500_move_ev_register): Likewise.
1101         (do_regcache_raw_write): Likewise.
1102         (rs6000_frame_cache): Likewise.
1103         (rs6000_epilogue_frame_cache): Likewise.
1104         (rs6000_gdbarch_init): Likewise.
1105         * rx-tdep.c (rx_get_opcode_byte): Likewise.
1106         (rx_analyze_frame_prologue): Likewise.
1107         (rx_frame_type): Likewise.
1108         (rx_frame_sniffer_common): Likewise.
1109         * s390-linux-tdep.c (s390_check_for_saved): Likewise.
1110         (s390_frame_unwind_cache): Likewise.
1111         (s390_stub_frame_unwind_cache): Likewise.
1112         (s390_sigtramp_frame_unwind_cache): Likewise.
1113         * score-tdep.c (score_make_prologue_cache): Likewise.
1114         * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
1115         (sentinel_frame_prev_arch): Likewise.
1116         * ser-base.c (fd_event): Likewise.
1117         (push_event): Likewise.
1118         (ser_base_write): Likewise.
1119         * ser-pipe.c (pipe_close): Likewise.
1120         * serial.c (serial_write): Likewise.
1121         * sh-tdep.c (sh_frame_cache): Likewise.
1122         (sh_stub_this_id): Likewise.
1123         * sh64-tdep.c (sh64_frame_cache): Likewise.
1124         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
1125         (library_list_start_library): Likewise.
1126         (library_list_start_list): Likewise.
1127         (solib_aix_free_library_list): Likewise.
1128         * solib-darwin.c (get_darwin_info): Likewise.
1129         * solib-dsbt.c (get_dsbt_info): Likewise.
1130         * solib-spu.c (append_ocl_sos): Likewise.
1131         * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1132         (get_svr4_info): Likewise.
1133         (library_list_start_library): Likewise.
1134         (svr4_library_list_start_list): Likewise.
1135         (hash_probe_and_action): Likewise.
1136         (equal_probe_and_action): Likewise.
1137         (svr4_update_solib_event_breakpoint): Likewise.
1138         (set_solib_svr4_fetch_link_map_offsets): Likewise.
1139         (svr4_fetch_link_map_offsets): Likewise.
1140         (svr4_have_link_map_offsets): Likewise.
1141         * solib-target.c (library_list_start_segment): Likewise.
1142         (library_list_start_section): Likewise.
1143         (library_list_start_library): Likewise.
1144         (library_list_end_library): Likewise.
1145         (library_list_start_list): Likewise.
1146         (solib_target_free_library_list): Likewise.
1147         * solib.c (solib_ops): Likewise.
1148         (set_solib_ops): Likewise.
1149         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1150         * sparc-tdep.c (sparc_frame_cache): Likewise.
1151         (sparc32_frame_cache): Likewise.
1152         (sparc32_supply_gregset): Likewise.
1153         (sparc32_collect_gregset): Likewise.
1154         (sparc32_supply_fpregset): Likewise.
1155         (sparc32_collect_fpregset): Likewise.
1156         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1157         * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1158         (sparc64_collect_gregset): Likewise.
1159         (sparc64_supply_fpregset): Likewise.
1160         (sparc64_collect_fpregset): Likewise.
1161         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
1162         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
1163         * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
1164         (sparc64obsd_trapframe_cache): Likewise.
1165         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
1166         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
1167         * spu-multiarch.c (spu_gdbarch): Likewise.
1168         * spu-tdep.c (spu_frame_unwind_cache): Likewise.
1169         (spu2ppu_prev_arch): Likewise.
1170         (spu2ppu_this_id): Likewise.
1171         (spu2ppu_prev_register): Likewise.
1172         (spu2ppu_dealloc_cache): Likewise.
1173         (spu_dis_asm_print_address): Likewise.
1174         (gdb_print_insn_spu): Likewise.
1175         (spu_get_overlay_table): Likewise.
1176         * stabsread.c (rs6000_builtin_type): Likewise.
1177         * stack.c (do_print_variable_and_value): Likewise.
1178         * stap-probe.c (get_stap_base_address_1): Likewise.
1179         * symfile-debug.c (debug_qf_has_symbols): Likewise.
1180         (debug_qf_find_last_source_symtab): Likewise.
1181         (debug_qf_forget_cached_source_info): Likewise.
1182         (debug_qf_map_symtabs_matching_filename): Likewise.
1183         (debug_qf_lookup_symbol): Likewise.
1184         (debug_qf_print_stats): Likewise.
1185         (debug_qf_dump): Likewise.
1186         (debug_qf_relocate): Likewise.
1187         (debug_qf_expand_symtabs_for_function): Likewise.
1188         (debug_qf_expand_all_symtabs): Likewise.
1189         (debug_qf_expand_symtabs_with_fullname): Likewise.
1190         (debug_qf_map_matching_symbols): Likewise.
1191         (debug_qf_expand_symtabs_matching): Likewise.
1192         (debug_qf_find_pc_sect_compunit_symtab): Likewise.
1193         (debug_qf_map_symbol_filenames): Likewise.
1194         (debug_sym_get_probes): Likewise.
1195         (debug_sym_new_init): Likewise.
1196         (debug_sym_init): Likewise.
1197         (debug_sym_read): Likewise.
1198         (debug_sym_read_psymbols): Likewise.
1199         (debug_sym_finish): Likewise.
1200         (debug_sym_offsets): Likewise.
1201         (debug_sym_read_linetable): Likewise.
1202         (debug_sym_relocate): Likewise.
1203         (uninstall_symfile_debug_logging): Likewise.
1204         * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
1205         * symfile.c (place_section): Likewise.
1206         (add_section_size_callback): Likewise.
1207         (load_progress): Likewise.
1208         (load_section_callback): Likewise.
1209         (clear_memory_write_data): Likewise.
1210         (allocate_symtab): Likewise.
1211         * symmisc.c (maintenance_expand_file_matcher): Likewise.
1212         * symtab.c (lookup_symtab_callback): Likewise.
1213         (hash_demangled_name_entry): Likewise.
1214         (eq_demangled_name_entry): Likewise.
1215         (get_symbol_cache): Likewise.
1216         (symbol_cache_cleanup): Likewise.
1217         (set_symbol_cache_size): Likewise.
1218         (symbol_cache_flush): Likewise.
1219         (maintenance_print_symbol_cache): Likewise.
1220         (maintenance_print_symbol_cache_statistics): Likewise.
1221         (delete_filename_seen_cache): Likewise.
1222         (output_partial_symbol_filename): Likewise.
1223         (search_symbols_file_matches): Likewise.
1224         (search_symbols_name_matches): Likewise.
1225         (do_free_completion_list): Likewise.
1226         (maybe_add_partial_symtab_filename): Likewise.
1227         (get_main_info): Likewise.
1228         (main_info_cleanup): Likewise.
1229         * target-dcache.c (target_dcache_cleanup): Likewise.
1230         (target_dcache_init_p): Likewise.
1231         (target_dcache_invalidate): Likewise.
1232         (target_dcache_get): Likewise.
1233         (target_dcache_get_or_init): Likewise.
1234         * target-descriptions.c (target_find_description): Likewise.
1235         (tdesc_find_type): Likewise.
1236         (tdesc_data_cleanup): Likewise.
1237         (tdesc_find_arch_register): Likewise.
1238         (tdesc_register_name): Likewise.
1239         (tdesc_register_type): Likewise.
1240         (tdesc_register_reggroup_p): Likewise.
1241         (set_tdesc_pseudo_register_name): Likewise.
1242         (set_tdesc_pseudo_register_type): Likewise.
1243         (set_tdesc_pseudo_register_reggroup_p): Likewise.
1244         (tdesc_use_registers): Likewise.
1245         (free_target_description): Likewise.
1246         * target-memory.c (compare_block_starting_address): Likewise.
1247         (cleanup_request_data): Likewise.
1248         (cleanup_write_requests_vector): Likewise.
1249         * target.c (open_target): Likewise.
1250         (cleanup_restore_target_terminal): Likewise.
1251         (free_memory_read_result_vector): Likewise.
1252         * thread.c (disable_thread_stack_temporaries): Likewise.
1253         (finish_thread_state_cleanup): Likewise.
1254         (do_restore_current_thread_cleanup): Likewise.
1255         (restore_current_thread_cleanup_dtor): Likewise.
1256         (set_thread_refcount): Likewise.
1257         (tp_array_compar): Likewise.
1258         (do_captured_thread_select): Likewise.
1259         * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
1260         (tic6x_stub_this_id): Likewise.
1261         * tilegx-tdep.c (tilegx_frame_cache): Likewise.
1262         * top.c (do_restore_instream_cleanup): Likewise.
1263         (gdb_readline_wrapper_cleanup): Likewise.
1264         (kill_or_detach): Likewise.
1265         (print_inferior_quit_action): Likewise.
1266         * tracefile-tfile.c (match_blocktype): Likewise.
1267         (build_traceframe_info): Likewise.
1268         * tracefile.c (trace_file_writer_xfree): Likewise.
1269         * tracepoint.c (memrange_cmp): Likewise.
1270         (do_collect_symbol): Likewise.
1271         (do_clear_collection_list): Likewise.
1272         (do_restore_current_traceframe_cleanup): Likewise.
1273         (restore_current_traceframe_cleanup_dtor): Likewise.
1274         (free_current_marker): Likewise.
1275         (traceframe_info_start_memory): Likewise.
1276         (traceframe_info_start_tvar): Likewise.
1277         (free_result): Likewise.
1278         * tramp-frame.c (tramp_frame_cache): Likewise.
1279         * tui/tui-file.c (tui_file_delete): Likewise.
1280         (tui_fileopen): Likewise.
1281         (tui_sfileopen): Likewise.
1282         (tui_file_isatty): Likewise.
1283         (tui_file_rewind): Likewise.
1284         (tui_file_put): Likewise.
1285         (tui_file_fputs): Likewise.
1286         (tui_file_get_strbuf): Likewise.
1287         (tui_file_adjust_strbuf): Likewise.
1288         (tui_file_flush): Likewise.
1289         * tui/tui-layout.c (make_command_window): Likewise.
1290         (make_data_window): Likewise.
1291         (show_source_disasm_command): Likewise.
1292         (show_data): Likewise.
1293         (make_source_or_disasm_window): Likewise.
1294         (show_source_or_disasm_and_command): Likewise.
1295         * tui/tui-out.c (tui_field_int): Likewise.
1296         (tui_field_string): Likewise.
1297         (tui_field_fmt): Likewise.
1298         (tui_text): Likewise.
1299         * typeprint.c (hash_typedef_field): Likewise.
1300         (eq_typedef_field): Likewise.
1301         (do_free_typedef_hash): Likewise.
1302         (copy_typedef_hash_element): Likewise.
1303         (do_free_global_table): Likewise.
1304         (find_global_typedef): Likewise.
1305         (find_typedef_in_hash): Likewise.
1306         * ui-file.c (ui_file_write_for_put): Likewise.
1307         (do_ui_file_xstrdup): Likewise.
1308         (mem_file_delete): Likewise.
1309         (mem_file_rewind): Likewise.
1310         (mem_file_put): Likewise.
1311         (mem_file_write): Likewise.
1312         (stdio_file_delete): Likewise.
1313         (stdio_file_flush): Likewise.
1314         (stdio_file_read): Likewise.
1315         (stdio_file_write): Likewise.
1316         (stdio_file_write_async_safe): Likewise.
1317         (stdio_file_fputs): Likewise.
1318         (stdio_file_isatty): Likewise.
1319         (stdio_file_fseek): Likewise.
1320         (tee_file_delete): Likewise.
1321         (tee_file_flush): Likewise.
1322         (tee_file_write): Likewise.
1323         (tee_file_fputs): Likewise.
1324         (tee_file_isatty): Likewise.
1325         * ui-out.c (do_cleanup_table_end): Likewise.
1326         (do_cleanup_end): Likewise.
1327         * user-regs.c (user_reg_add): Likewise.
1328         (user_reg_map_name_to_regnum): Likewise.
1329         (usernum_to_user_reg): Likewise.
1330         (maintenance_print_user_registers): Likewise.
1331         * utils.c (do_bfd_close_cleanup): Likewise.
1332         (do_fclose_cleanup): Likewise.
1333         (do_obstack_free): Likewise.
1334         (do_ui_file_delete): Likewise.
1335         (do_ui_out_redirect_pop): Likewise.
1336         (do_free_section_addr_info): Likewise.
1337         (restore_integer): Likewise.
1338         (do_unpush_target): Likewise.
1339         (do_htab_delete_cleanup): Likewise.
1340         (do_restore_ui_file): Likewise.
1341         (do_value_free): Likewise.
1342         (do_free_so): Likewise.
1343         (free_current_contents): Likewise.
1344         (do_regfree_cleanup): Likewise.
1345         (core_addr_hash): Likewise.
1346         (core_addr_eq): Likewise.
1347         (do_free_char_ptr_vec): Likewise.
1348         * v850-tdep.c (v850_frame_cache): Likewise.
1349         * varobj.c (do_free_variable_cleanup): Likewise.
1350         * vax-tdep.c (vax_supply_gregset): Likewise.
1351         (vax_frame_cache): Likewise.
1352         * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
1353         * xml-support.c (gdb_xml_body_text): Likewise.
1354         (gdb_xml_values_cleanup): Likewise.
1355         (gdb_xml_start_element): Likewise.
1356         (gdb_xml_start_element_wrapper): Likewise.
1357         (gdb_xml_end_element): Likewise.
1358         (gdb_xml_end_element_wrapper): Likewise.
1359         (gdb_xml_cleanup): Likewise.
1360         (gdb_xml_fetch_external_entity): Likewise.
1361         (gdb_xml_parse_attr_enum): Likewise.
1362         (xinclude_start_include): Likewise.
1363         (xinclude_end_include): Likewise.
1364         (xml_xinclude_default): Likewise.
1365         (xml_xinclude_start_doctype): Likewise.
1366         (xml_xinclude_end_doctype): Likewise.
1367         (xml_xinclude_cleanup): Likewise.
1368         (xml_fetch_content_from_file): Likewise.
1369         * xml-syscall.c (free_syscalls_info): Likewise.
1370         (syscall_start_syscall): Likewise.
1371         * xml-tdesc.c (tdesc_end_arch): Likewise.
1372         (tdesc_end_osabi): Likewise.
1373         (tdesc_end_compatible): Likewise.
1374         (tdesc_start_target): Likewise.
1375         (tdesc_start_feature): Likewise.
1376         (tdesc_start_reg): Likewise.
1377         (tdesc_start_union): Likewise.
1378         (tdesc_start_struct): Likewise.
1379         (tdesc_start_flags): Likewise.
1380         (tdesc_start_field): Likewise.
1381         (tdesc_start_vector): Likewise.
1382         (fetch_available_features_from_target): Likewise.
1383         * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
1384         * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
1385         (xtensa_frame_cache): Likewise.
1386         (xtensa_frame_prev_register): Likewise.
1387         (xtensa_extract_return_value): Likewise.
1388
1389 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
1390
1391         * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
1392         (aarch64_make_stub_cache): Likewise.
1393         (value_of_aarch64_user_reg): Likewise.
1394         * ada-lang.c (ada_inferior_data_cleanup): Likewise.
1395         (get_ada_inferior_data): Likewise.
1396         (get_ada_pspace_data): Likewise.
1397         (ada_pspace_data_cleanup): Likewise.
1398         (ada_complete_symbol_matcher): Likewise.
1399         (ada_exc_search_name_matches): Likewise.
1400         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
1401         (get_ada_tasks_inferior_data): Likewise.
1402         * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
1403         (splay_obstack_alloc): Likewise.
1404         (splay_obstack_free): Likewise.
1405         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
1406         (alpha_linux_collect_gregset): Likewise.
1407         (alpha_linux_supply_fpregset): Likewise.
1408         (alpha_linux_collect_fpregset): Likewise.
1409         * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1410         * alpha-tdep.c (alpha_lds): Likewise.
1411         (alpha_sts): Likewise.
1412         (alpha_sigtramp_frame_unwind_cache): Likewise.
1413         (alpha_heuristic_frame_unwind_cache): Likewise.
1414         (alpha_supply_int_regs): Likewise.
1415         (alpha_fill_int_regs): Likewise.
1416         (alpha_supply_fp_regs): Likewise.
1417         (alpha_fill_fp_regs): Likewise.
1418         * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
1419         (alphanbsd_aout_supply_gregset): Likewise.
1420         (alphanbsd_supply_gregset): Likewise.
1421         * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
1422         (amd64_x32_linux_init_abi): Likewise.
1423         * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1424         (amd64_collect_native_gregset): Likewise.
1425         * amd64-tdep.c (amd64_frame_cache): Likewise.
1426         (amd64_sigtramp_frame_cache): Likewise.
1427         (amd64_epilogue_frame_cache): Likewise.
1428         (amd64_supply_fxsave): Likewise.
1429         (amd64_supply_xsave): Likewise.
1430         (amd64_collect_fxsave): Likewise.
1431         (amd64_collect_xsave): Likewise.
1432         * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
1433         * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
1434         * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1435         (arm_linux_collect_gregset): Likewise.
1436         (arm_linux_supply_nwfpe): Likewise.
1437         (arm_linux_collect_nwfpe): Likewise.
1438         (arm_linux_supply_vfp): Likewise.
1439         (arm_linux_collect_vfp): Likewise.
1440         * arm-tdep.c (arm_find_mapping_symbol): Likewise.
1441         (arm_prologue_unwind_stop_reason): Likewise.
1442         (arm_prologue_this_id): Likewise.
1443         (arm_prologue_prev_register): Likewise.
1444         (arm_exidx_data_free): Likewise.
1445         (arm_find_exidx_entry): Likewise.
1446         (arm_stub_this_id): Likewise.
1447         (arm_m_exception_this_id): Likewise.
1448         (arm_m_exception_prev_register): Likewise.
1449         (arm_normal_frame_base): Likewise.
1450         (gdb_print_insn_arm): Likewise.
1451         (arm_objfile_data_free): Likewise.
1452         (arm_record_special_symbol): Likewise.
1453         (value_of_arm_user_reg): Likewise.
1454         * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
1455         (armbsd_supply_gregset): Likewise.
1456         * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
1457         (get_auto_load_pspace_data): Likewise.
1458         (hash_loaded_script_entry): Likewise.
1459         (eq_loaded_script_entry): Likewise.
1460         (clear_section_scripts): Likewise.
1461         (collect_matching_scripts): Likewise.
1462         * auxv.c (auxv_inferior_data_cleanup): Likewise.
1463         (get_auxv_inferior_data): Likewise.
1464         * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1465         * ax-general.c (do_free_agent_expr_cleanup): Likewise.
1466         * bfd-target.c (target_bfd_xfer_partial): Likewise.
1467         (target_bfd_xclose): Likewise.
1468         (target_bfd_get_section_table): Likewise.
1469         * bfin-tdep.c (bfin_frame_cache): Likewise.
1470         * block.c (find_block_in_blockvector): Likewise.
1471         (call_site_for_pc): Likewise.
1472         (block_find_non_opaque_type_preferred): Likewise.
1473         * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
1474         (signal_catchpoint_remove_location): Likewise.
1475         (signal_catchpoint_breakpoint_hit): Likewise.
1476         (signal_catchpoint_print_one): Likewise.
1477         (signal_catchpoint_print_mention): Likewise.
1478         (signal_catchpoint_print_recreate): Likewise.
1479         * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
1480         * breakpoint.c (do_cleanup_counted_command_line): Likewise.
1481         (bp_location_compare_addrs): Likewise.
1482         (get_first_locp_gte_addr): Likewise.
1483         (check_tracepoint_command): Likewise.
1484         (do_map_commands_command): Likewise.
1485         (get_breakpoint_objfile_data): Likewise.
1486         (free_breakpoint_probes): Likewise.
1487         (do_captured_breakpoint_query): Likewise.
1488         (compare_breakpoints): Likewise.
1489         (bp_location_compare): Likewise.
1490         (bpstat_remove_breakpoint_callback): Likewise.
1491         (do_delete_breakpoint_cleanup): Likewise.
1492         * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
1493         (bsd_uthread_set_collect_uthread): Likewise.
1494         (bsd_uthread_activate): Likewise.
1495         (bsd_uthread_fetch_registers): Likewise.
1496         (bsd_uthread_store_registers): Likewise.
1497         * btrace.c (check_xml_btrace_version): Likewise.
1498         (parse_xml_btrace_block): Likewise.
1499         (parse_xml_btrace_pt_config_cpu): Likewise.
1500         (parse_xml_btrace_pt_raw): Likewise.
1501         (parse_xml_btrace_pt): Likewise.
1502         (parse_xml_btrace_conf_bts): Likewise.
1503         (parse_xml_btrace_conf_pt): Likewise.
1504         (do_btrace_data_cleanup): Likewise.
1505         * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
1506         * charset.c (cleanup_iconv): Likewise.
1507         (do_cleanup_iterator): Likewise.
1508         * cli-out.c (cli_uiout_dtor): Likewise.
1509         (cli_table_begin): Likewise.
1510         (cli_table_body): Likewise.
1511         (cli_table_end): Likewise.
1512         (cli_table_header): Likewise.
1513         (cli_begin): Likewise.
1514         (cli_end): Likewise.
1515         (cli_field_int): Likewise.
1516         (cli_field_skip): Likewise.
1517         (cli_field_string): Likewise.
1518         (cli_field_fmt): Likewise.
1519         (cli_spaces): Likewise.
1520         (cli_text): Likewise.
1521         (cli_message): Likewise.
1522         (cli_wrap_hint): Likewise.
1523         (cli_flush): Likewise.
1524         (cli_redirect): Likewise.
1525         (out_field_fmt): Likewise.
1526         (field_separator): Likewise.
1527         (cli_out_set_stream): Likewise.
1528         * cli/cli-cmds.c (compare_symtabs): Likewise.
1529         * cli/cli-dump.c (call_dump_func): Likewise.
1530         (restore_section_callback): Likewise.
1531         * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
1532         (do_restore_user_call_depth): Likewise.
1533         (do_free_command_lines_cleanup): Likewise.
1534         * coff-pe-read.c (get_section_vmas): Likewise.
1535         (pe_as16): Likewise.
1536         (pe_as32): Likewise.
1537         * coffread.c (coff_symfile_read): Likewise.
1538         * common/agent.c (agent_look_up_symbols): Likewise.
1539         * common/filestuff.c (do_close_cleanup): Likewise.
1540         * common/format.c (free_format_pieces_cleanup): Likewise.
1541         * common/vec.c (vec_o_reserve): Likewise.
1542         * compile/compile-c-support.c (print_one_macro): Likewise.
1543         * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
1544         (eq_symbol_error): Likewise.
1545         (del_symbol_error): Likewise.
1546         (error_symbol_once): Likewise.
1547         (gcc_convert_symbol): Likewise.
1548         (gcc_symbol_address): Likewise.
1549         (hash_symname): Likewise.
1550         (eq_symname): Likewise.
1551         * compile/compile-c-types.c (hash_type_map_instance): Likewise.
1552         (eq_type_map_instance): Likewise.
1553         (insert_type): Likewise.
1554         (convert_type): Likewise.
1555         * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
1556         (setup_sections): Likewise.
1557         (link_hash_table_free): Likewise.
1558         (copy_sections): Likewise.
1559         * compile/compile-object-run.c (do_module_cleanup): Likewise.
1560         * compile/compile.c (compile_print_value): Likewise.
1561         (do_rmdir): Likewise.
1562         (cleanup_compile_instance): Likewise.
1563         (cleanup_unlink_file): Likewise.
1564         * completer.c (free_completion_tracker): Likewise.
1565         * corelow.c (add_to_spuid_list): Likewise.
1566         * cp-namespace.c (reset_directive_searched): Likewise.
1567         * cp-support.c (reset_directive_searched): Likewise.
1568         * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
1569         (cris_frame_unwind_cache): Likewise.
1570         * d-lang.c (builtin_d_type): Likewise.
1571         * d-namespace.c (reset_directive_searched): Likewise.
1572         * dbxread.c (dbx_free_symfile_info): Likewise.
1573         (do_free_bincl_list_cleanup): Likewise.
1574         * disasm.c (hash_dis_line_entry): Likewise.
1575         (eq_dis_line_entry): Likewise.
1576         (dis_asm_print_address): Likewise.
1577         (fprintf_disasm): Likewise.
1578         (do_ui_file_delete): Likewise.
1579         * doublest.c (convert_floatformat_to_doublest): Likewise.
1580         * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1581         (dummy_frame_prev_register): Likewise.
1582         (dummy_frame_this_id): Likewise.
1583         * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1584         (cache_eq): Likewise.
1585         (cache_find): Likewise.
1586         (tailcall_frame_this_id): Likewise.
1587         (dwarf2_tailcall_prev_register_first): Likewise.
1588         (tailcall_frame_prev_register): Likewise.
1589         (tailcall_frame_dealloc_cache): Likewise.
1590         (tailcall_frame_prev_arch): Likewise.
1591         * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1592         (dwarf2_frame_set_init_reg): Likewise.
1593         (dwarf2_frame_init_reg): Likewise.
1594         (dwarf2_frame_set_signal_frame_p): Likewise.
1595         (dwarf2_frame_signal_frame_p): Likewise.
1596         (dwarf2_frame_set_adjust_regnum): Likewise.
1597         (dwarf2_frame_adjust_regnum): Likewise.
1598         (clear_pointer_cleanup): Likewise.
1599         (dwarf2_frame_cache): Likewise.
1600         (find_cie): Likewise.
1601         (dwarf2_frame_find_fde): Likewise.
1602         * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1603         (free_dwarf_expr_context_cleanup): Likewise.
1604         * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1605         (locexpr_get_frame_base): Likewise.
1606         (loclist_find_frame_base_location): Likewise.
1607         (loclist_get_frame_base): Likewise.
1608         (dwarf_expr_dwarf_call): Likewise.
1609         (dwarf_expr_get_base_type): Likewise.
1610         (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1611         (dwarf_expr_get_obj_addr): Likewise.
1612         (entry_data_value_coerce_ref): Likewise.
1613         (entry_data_value_copy_closure): Likewise.
1614         (entry_data_value_free_closure): Likewise.
1615         (get_frame_address_in_block_wrapper): Likewise.
1616         (dwarf2_evaluate_property): Likewise.
1617         (dwarf2_compile_property_to_c): Likewise.
1618         (needs_frame_read_addr_from_reg): Likewise.
1619         (needs_frame_get_reg_value): Likewise.
1620         (needs_frame_frame_base): Likewise.
1621         (needs_frame_frame_cfa): Likewise.
1622         (needs_frame_tls_address): Likewise.
1623         (needs_frame_dwarf_call): Likewise.
1624         (needs_dwarf_reg_entry_value): Likewise.
1625         (get_ax_pc): Likewise.
1626         (locexpr_read_variable): Likewise.
1627         (locexpr_read_variable_at_entry): Likewise.
1628         (locexpr_read_needs_frame): Likewise.
1629         (locexpr_describe_location): Likewise.
1630         (locexpr_tracepoint_var_ref): Likewise.
1631         (locexpr_generate_c_location): Likewise.
1632         (loclist_read_variable): Likewise.
1633         (loclist_read_variable_at_entry): Likewise.
1634         (loclist_describe_location): Likewise.
1635         (loclist_tracepoint_var_ref): Likewise.
1636         (loclist_generate_c_location): Likewise.
1637         * dwarf2read.c (line_header_hash_voidp): Likewise.
1638         (line_header_eq_voidp): Likewise.
1639         (dwarf2_has_info): Likewise.
1640         (dwarf2_get_section_info): Likewise.
1641         (locate_dwz_sections): Likewise.
1642         (hash_file_name_entry): Likewise.
1643         (eq_file_name_entry): Likewise.
1644         (delete_file_name_entry): Likewise.
1645         (dw2_setup): Likewise.
1646         (dw2_get_file_names_reader): Likewise.
1647         (dw2_find_pc_sect_compunit_symtab): Likewise.
1648         (hash_signatured_type): Likewise.
1649         (eq_signatured_type): Likewise.
1650         (add_signatured_type_cu_to_table): Likewise.
1651         (create_debug_types_hash_table): Likewise.
1652         (lookup_dwo_signatured_type): Likewise.
1653         (lookup_dwp_signatured_type): Likewise.
1654         (lookup_signatured_type): Likewise.
1655         (hash_type_unit_group): Likewise.
1656         (eq_type_unit_group): Likewise.
1657         (get_type_unit_group): Likewise.
1658         (process_psymtab_comp_unit_reader): Likewise.
1659         (sort_tu_by_abbrev_offset): Likewise.
1660         (process_skeletonless_type_unit): Likewise.
1661         (psymtabs_addrmap_cleanup): Likewise.
1662         (dwarf2_read_symtab): Likewise.
1663         (psymtab_to_symtab_1): Likewise.
1664         (die_hash): Likewise.
1665         (die_eq): Likewise.
1666         (load_full_comp_unit_reader): Likewise.
1667         (reset_die_in_process): Likewise.
1668         (free_cu_line_header): Likewise.
1669         (handle_DW_AT_stmt_list): Likewise.
1670         (hash_dwo_file): Likewise.
1671         (eq_dwo_file): Likewise.
1672         (hash_dwo_unit): Likewise.
1673         (eq_dwo_unit): Likewise.
1674         (create_dwo_cu_reader): Likewise.
1675         (create_dwo_unit_in_dwp_v1): Likewise.
1676         (create_dwo_unit_in_dwp_v2): Likewise.
1677         (lookup_dwo_unit_in_dwp): Likewise.
1678         (dwarf2_locate_dwo_sections): Likewise.
1679         (dwarf2_locate_common_dwp_sections): Likewise.
1680         (dwarf2_locate_v2_dwp_sections): Likewise.
1681         (hash_dwp_loaded_cutus): Likewise.
1682         (eq_dwp_loaded_cutus): Likewise.
1683         (lookup_dwo_cutu): Likewise.
1684         (abbrev_table_free_cleanup): Likewise.
1685         (dwarf2_free_abbrev_table): Likewise.
1686         (find_partial_die_in_comp_unit): Likewise.
1687         (free_line_header_voidp): Likewise.
1688         (follow_die_offset): Likewise.
1689         (follow_die_sig_1): Likewise.
1690         (free_heap_comp_unit): Likewise.
1691         (free_stack_comp_unit): Likewise.
1692         (dwarf2_free_objfile): Likewise.
1693         (per_cu_offset_and_type_hash): Likewise.
1694         (per_cu_offset_and_type_eq): Likewise.
1695         (get_die_type_at_offset): Likewise.
1696         (partial_die_hash): Likewise.
1697         (partial_die_eq): Likewise.
1698         (dwarf2_per_objfile_free): Likewise.
1699         (hash_strtab_entry): Likewise.
1700         (eq_strtab_entry): Likewise.
1701         (add_string): Likewise.
1702         (hash_symtab_entry): Likewise.
1703         (eq_symtab_entry): Likewise.
1704         (delete_symtab_entry): Likewise.
1705         (cleanup_mapped_symtab): Likewise.
1706         (add_indices_to_cpool): Likewise.
1707         (hash_psymtab_cu_index): Likewise.
1708         (eq_psymtab_cu_index): Likewise.
1709         (add_address_entry_worker): Likewise.
1710         (unlink_if_set): Likewise.
1711         (write_one_signatured_type): Likewise.
1712         (save_gdb_index_command): Likewise.
1713         * elfread.c (elf_symtab_read): Likewise.
1714         (elf_gnu_ifunc_cache_hash): Likewise.
1715         (elf_gnu_ifunc_cache_eq): Likewise.
1716         (elf_gnu_ifunc_record_cache): Likewise.
1717         (elf_gnu_ifunc_resolve_by_cache): Likewise.
1718         (elf_get_probes): Likewise.
1719         (probe_key_free): Likewise.
1720         * f-lang.c (builtin_f_type): Likewise.
1721         * frame-base.c (frame_base_append_sniffer): Likewise.
1722         (frame_base_set_default): Likewise.
1723         (frame_base_find_by_frame): Likewise.
1724         * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1725         (frame_unwind_append_unwinder): Likewise.
1726         (frame_unwind_find_by_frame): Likewise.
1727         * frame.c (frame_addr_hash): Likewise.
1728         (frame_addr_hash_eq): Likewise.
1729         (frame_stash_find): Likewise.
1730         (do_frame_register_read): Likewise.
1731         (unwind_to_current_frame): Likewise.
1732         (frame_cleanup_after_sniffer): Likewise.
1733         * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1734         * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1735         * ft32-tdep.c (ft32_frame_cache): Likewise.
1736         * gcore.c (do_bfd_delete_cleanup): Likewise.
1737         (gcore_create_callback): Likewise.
1738         * gdb_bfd.c (hash_bfd): Likewise.
1739         (eq_bfd): Likewise.
1740         (gdb_bfd_open): Likewise.
1741         (free_one_bfd_section): Likewise.
1742         (gdb_bfd_ref): Likewise.
1743         (gdb_bfd_unref): Likewise.
1744         (get_section_descriptor): Likewise.
1745         (gdb_bfd_map_section): Likewise.
1746         (gdb_bfd_crc): Likewise.
1747         (gdb_bfd_mark_parent): Likewise.
1748         (gdb_bfd_record_inclusion): Likewise.
1749         (gdb_bfd_requires_relocations): Likewise.
1750         (print_one_bfd): Likewise.
1751         * gdbtypes.c (type_pair_hash): Likewise.
1752         (type_pair_eq): Likewise.
1753         (builtin_type): Likewise.
1754         (objfile_type): Likewise.
1755         * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1756         (vtable_address_point_offset): Likewise.
1757         (gnuv3_get_vtable): Likewise.
1758         (hash_value_and_voffset): Likewise.
1759         (eq_value_and_voffset): Likewise.
1760         (compare_value_and_voffset): Likewise.
1761         (compute_vtable_size): Likewise.
1762         (gnuv3_get_typeid_type): Likewise.
1763         * go-lang.c (builtin_go_type): Likewise.
1764         * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1765         (bkscm_eq_block_smob): Likewise.
1766         (bkscm_objfile_block_map): Likewise.
1767         (bkscm_del_objfile_blocks): Likewise.
1768         * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1769         * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1770         (gdbscm_disasm_print_address): Likewise.
1771         * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1772         (frscm_eq_frame_smob): Likewise.
1773         (frscm_inferior_frame_map): Likewise.
1774         (frscm_del_inferior_frames): Likewise.
1775         * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1776         * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1777         (ofscm_objfile_smob_from_objfile): Likewise.
1778         * guile/scm-ports.c (ioscm_write): Likewise.
1779         (ioscm_file_port_delete): Likewise.
1780         (ioscm_file_port_rewind): Likewise.
1781         (ioscm_file_port_put): Likewise.
1782         (ioscm_file_port_write): Likewise.
1783         * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1784         (psscm_pspace_smob_from_pspace): Likewise.
1785         * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1786         (scscm_recording_unwind_handler): Likewise.
1787         (gdbscm_with_catch): Likewise.
1788         (scscm_call_0_body): Likewise.
1789         (scscm_call_1_body): Likewise.
1790         (scscm_call_2_body): Likewise.
1791         (scscm_call_3_body): Likewise.
1792         (scscm_call_4_body): Likewise.
1793         (scscm_apply_1_body): Likewise.
1794         (scscm_eval_scheme_string): Likewise.
1795         (gdbscm_safe_eval_string): Likewise.
1796         (scscm_source_scheme_script): Likewise.
1797         (gdbscm_safe_source_script): Likewise.
1798         * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1799         (gdbscm_call_scm_from_stringn): Likewise.
1800         * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1801         (syscm_eq_symbol_smob): Likewise.
1802         (syscm_get_symbol_map): Likewise.
1803         (syscm_del_objfile_symbols): Likewise.
1804         * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1805         (stscm_eq_symtab_smob): Likewise.
1806         (stscm_objfile_symtab_map): Likewise.
1807         (stscm_del_objfile_symtabs): Likewise.
1808         * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1809         (tyscm_eq_type_smob): Likewise.
1810         (tyscm_type_map): Likewise.
1811         (tyscm_copy_type_recursive): Likewise.
1812         (save_objfile_types): Likewise.
1813         * guile/scm-utils.c (extract_arg): Likewise.
1814         * h8300-tdep.c (h8300_frame_cache): Likewise.
1815         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1816         * hppa-tdep.c (compare_unwind_entries): Likewise.
1817         (find_unwind_entry): Likewise.
1818         (hppa_frame_cache): Likewise.
1819         (hppa_stub_frame_unwind_cache): Likewise.
1820         * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1821         * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1822         (hppaobsd_supply_fpregset): Likewise.
1823         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1824         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1825         * i386-tdep.c (i386_frame_cache): Likewise.
1826         (i386_epilogue_frame_cache): Likewise.
1827         (i386_sigtramp_frame_cache): Likewise.
1828         (i386_supply_gregset): Likewise.
1829         (i386_collect_gregset): Likewise.
1830         (i386_gdbarch_init): Likewise.
1831         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1832         (i386obsd_trapframe_cache): Likewise.
1833         * i387-tdep.c (i387_supply_fsave): Likewise.
1834         (i387_collect_fsave): Likewise.
1835         (i387_supply_fxsave): Likewise.
1836         (i387_collect_fxsave): Likewise.
1837         (i387_supply_xsave): Likewise.
1838         (i387_collect_xsave): Likewise.
1839         * ia64-tdep.c (ia64_frame_cache): Likewise.
1840         (ia64_sigtramp_frame_cache): Likewise.
1841         * infcmd.c (attach_command_continuation): Likewise.
1842         (attach_command_continuation_free_args): Likewise.
1843         * inferior.c (restore_inferior): Likewise.
1844         (delete_thread_of_inferior): Likewise.
1845         * inflow.c (inflow_inferior_data_cleanup): Likewise.
1846         (get_inflow_inferior_data): Likewise.
1847         (inflow_inferior_exit): Likewise.
1848         * infrun.c (displaced_step_clear_cleanup): Likewise.
1849         (restore_current_uiout_cleanup): Likewise.
1850         (release_stop_context_cleanup): Likewise.
1851         (do_restore_infcall_suspend_state_cleanup): Likewise.
1852         (do_restore_infcall_control_state_cleanup): Likewise.
1853         (restore_inferior_ptid): Likewise.
1854         * inline-frame.c (block_starting_point_at): Likewise.
1855         * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1856         * jit.c (get_jit_objfile_data): Likewise.
1857         (get_jit_program_space_data): Likewise.
1858         (jit_object_close_impl): Likewise.
1859         (jit_find_objf_with_entry_addr): Likewise.
1860         (jit_breakpoint_deleted): Likewise.
1861         (jit_unwind_reg_set_impl): Likewise.
1862         (jit_unwind_reg_get_impl): Likewise.
1863         (jit_dealloc_cache): Likewise.
1864         (jit_frame_sniffer): Likewise.
1865         (jit_frame_prev_register): Likewise.
1866         (jit_prepend_unwinder): Likewise.
1867         (jit_inferior_exit_hook): Likewise.
1868         (free_objfile_data): Likewise.
1869         * jv-lang.c (jv_per_objfile_free): Likewise.
1870         (get_dynamics_objfile): Likewise.
1871         (get_java_class_symtab): Likewise.
1872         (builtin_java_type): Likewise.
1873         * language.c (language_string_char_type): Likewise.
1874         (language_bool_type): Likewise.
1875         (language_lookup_primitive_type): Likewise.
1876         (language_lookup_primitive_type_as_symbol): Likewise.
1877         * linespec.c (hash_address_entry): Likewise.
1878         (eq_address_entry): Likewise.
1879         (iterate_inline_only): Likewise.
1880         (iterate_name_matcher): Likewise.
1881         (decode_line_2_compare_items): Likewise.
1882         (collect_one_symbol): Likewise.
1883         (compare_symbols): Likewise.
1884         (compare_msymbols): Likewise.
1885         (add_symtabs_to_list): Likewise.
1886         (collect_symbols): Likewise.
1887         (compare_msyms): Likewise.
1888         (add_minsym): Likewise.
1889         (cleanup_linespec_result): Likewise.
1890         * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1891         * linux-nat.c (delete_lwp_cleanup): Likewise.
1892         (count_events_callback): Likewise.
1893         (select_event_lwp_callback): Likewise.
1894         (resume_stopped_resumed_lwps): Likewise.
1895         * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1896         (invalidate_linux_cache_inf): Likewise.
1897         (get_linux_inferior_data): Likewise.
1898         (linux_find_memory_regions_thunk): Likewise.
1899         (linux_make_mappings_callback): Likewise.
1900         (linux_corefile_thread_callback): Likewise.
1901         (find_mapping_size): Likewise.
1902         * linux-thread-db.c (find_new_threads_callback): Likewise.
1903         * lm32-tdep.c (lm32_frame_cache): Likewise.
1904         * m2-lang.c (builtin_m2_type): Likewise.
1905         * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1906         * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1907         (m32r_linux_supply_gregset): Likewise.
1908         (m32r_linux_collect_gregset): Likewise.
1909         * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1910         * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1911         * m68k-tdep.c (m68k_frame_cache): Likewise.
1912         * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1913         (m68kbsd_supply_gregset): Likewise.
1914         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1915         * m88k-tdep.c (m88k_frame_cache): Likewise.
1916         (m88k_supply_gregset): Likewise.
1917
1918 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
1919
1920         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1921         to allocation result assignment.
1922         * ada-exp.y (write_object_renaming): Likewise.
1923         (write_ambiguous_var): Likewise.
1924         (ada_nget_field_index): Likewise.
1925         (write_var_or_type): Likewise.
1926         * ada-lang.c (ada_decode_symbol): Likewise.
1927         (ada_value_assign): Likewise.
1928         (value_pointer): Likewise.
1929         (cache_symbol): Likewise.
1930         (add_nonlocal_symbols): Likewise.
1931         (ada_name_for_lookup): Likewise.
1932         (symbol_completion_add): Likewise.
1933         (ada_to_fixed_type_1): Likewise.
1934         (ada_get_next_arg): Likewise.
1935         (defns_collected): Likewise.
1936         * ada-lex.l (processId): Likewise.
1937         (processString): Likewise.
1938         * ada-tasks.c (read_known_tasks_array): Likewise.
1939         (read_known_tasks_list): Likewise.
1940         * ada-typeprint.c (decoded_type_name): Likewise.
1941         * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1942         * amd64-tdep.c (amd64_push_arguments): Likewise.
1943         (amd64_displaced_step_copy_insn): Likewise.
1944         (amd64_classify_insn_at): Likewise.
1945         (amd64_relocate_instruction): Likewise.
1946         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1947         * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1948         (initialize_current_architecture): Likewise.
1949         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1950         * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1951         * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1952         (arm_push_dummy_call): Likewise.
1953         (extend_buffer_earlier): Likewise.
1954         (arm_adjust_breakpoint_address): Likewise.
1955         (arm_skip_stub): Likewise.
1956         * auto-load.c (filename_is_in_pattern): Likewise.
1957         (maybe_add_script_file): Likewise.
1958         (maybe_add_script_text): Likewise.
1959         (auto_load_objfile_script_1): Likewise.
1960         * auxv.c (ld_so_xfer_auxv): Likewise.
1961         * ax-general.c (new_agent_expr): Likewise.
1962         (grow_expr): Likewise.
1963         (ax_reg_mask): Likewise.
1964         * bcache.c (bcache_full): Likewise.
1965         * breakpoint.c (program_breakpoint_here_p): Likewise.
1966         * btrace.c (parse_xml_raw): Likewise.
1967         * build-id.c (build_id_to_debug_bfd): Likewise.
1968         * buildsym.c (end_symtab_with_blockvector): Likewise.
1969         * c-exp.y (string_exp): Likewise.
1970         (qualified_name): Likewise.
1971         (write_destructor_name): Likewise.
1972         (operator_stoken): Likewise.
1973         (parse_number): Likewise.
1974         (scan_macro_expansion): Likewise.
1975         (yylex): Likewise.
1976         (c_print_token): Likewise.
1977         * c-lang.c (c_get_string): Likewise.
1978         (emit_numeric_character): Likewise.
1979         * charset.c (wchar_iterate): Likewise.
1980         * cli/cli-cmds.c (complete_command): Likewise.
1981         (make_command): Likewise.
1982         * cli/cli-dump.c (restore_section_callback): Likewise.
1983         (restore_binary_file): Likewise.
1984         * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1985         * cli/cli-script.c (execute_control_command): Likewise.
1986         * cli/cli-setshow.c (do_set_command): Likewise.
1987         * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1988         (read_pe_exported_syms): Likewise.
1989         * coffread.c (coff_read_struct_type): Likewise.
1990         (coff_read_enum_type): Likewise.
1991         * common/btrace-common.c (btrace_data_append): Likewise.
1992         * common/buffer.c (buffer_grow): Likewise.
1993         * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1994         * common/format.c (parse_format_string): Likewise.
1995         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1996         * common/xml-utils.c (xml_escape_text): Likewise.
1997         * compile/compile-object-load.c (copy_sections): Likewise.
1998         (compile_object_load): Likewise.
1999         * compile/compile-object-run.c (compile_object_run): Likewise.
2000         * completer.c (filename_completer): Likewise.
2001         * corefile.c (read_memory_typed_address): Likewise.
2002         (write_memory_unsigned_integer): Likewise.
2003         (write_memory_signed_integer): Likewise.
2004         (complete_set_gnutarget): Likewise.
2005         * corelow.c (get_core_register_section): Likewise.
2006         * cp-name-parser.y (d_grab): Likewise.
2007         (allocate_info): Likewise.
2008         (cp_new_demangle_parse_info): Likewise.
2009         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
2010         (cp_lookup_symbol_in_namespace): Likewise.
2011         (lookup_namespace_scope): Likewise.
2012         (find_symbol_in_baseclass): Likewise.
2013         (cp_lookup_nested_symbol): Likewise.
2014         (cp_lookup_transparent_type_loop): Likewise.
2015         * cp-support.c (copy_string_to_obstack): Likewise.
2016         (make_symbol_overload_list): Likewise.
2017         (make_symbol_overload_list_namespace): Likewise.
2018         (make_symbol_overload_list_adl_namespace): Likewise.
2019         (first_component_command): Likewise.
2020         * cp-valprint.c (cp_print_value): Likewise.
2021         * ctf.c (ctf_xfer_partial): Likewise.
2022         * d-exp.y (StringExp): Likewise.
2023         * d-namespace.c (d_lookup_symbol_in_module): Likewise.
2024         (lookup_module_scope): Likewise.
2025         (find_symbol_in_baseclass): Likewise.
2026         (d_lookup_nested_symbol): Likewise.
2027         * dbxread.c (find_stab_function_addr): Likewise.
2028         (read_dbx_symtab): Likewise.
2029         (dbx_end_psymtab): Likewise.
2030         (cp_set_block_scope): Likewise.
2031         * dcache.c (dcache_alloc): Likewise.
2032         * demangle.c (_initialize_demangler): Likewise.
2033         * dicos-tdep.c (dicos_load_module_p): Likewise.
2034         * dictionary.c (dict_create_hashed_expandable): Likewise.
2035         (dict_create_linear_expandable): Likewise.
2036         (expand_hashtable): Likewise.
2037         (add_symbol_linear_expandable): Likewise.
2038         * dwarf2-frame.c (add_cie): Likewise.
2039         (add_fde): Likewise.
2040         (dwarf2_build_frame_info): Likewise.
2041         * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
2042         (dwarf_expr_fetch_address): Likewise.
2043         (add_piece): Likewise.
2044         (execute_stack_op): Likewise.
2045         * dwarf2loc.c (chain_candidate): Likewise.
2046         (dwarf_entry_parameter_to_value): Likewise.
2047         (read_pieced_value): Likewise.
2048         (write_pieced_value): Likewise.
2049         * dwarf2read.c (dwarf2_read_section): Likewise.
2050         (add_type_unit): Likewise.
2051         (read_comp_units_from_section): Likewise.
2052         (fixup_go_packaging): Likewise.
2053         (dwarf2_compute_name): Likewise.
2054         (dwarf2_physname): Likewise.
2055         (create_dwo_unit_in_dwp_v1): Likewise.
2056         (create_dwo_unit_in_dwp_v2): Likewise.
2057         (read_func_scope): Likewise.
2058         (read_call_site_scope): Likewise.
2059         (dwarf2_attach_fields_to_type): Likewise.
2060         (process_structure_scope): Likewise.
2061         (mark_common_block_symbol_computed): Likewise.
2062         (read_common_block): Likewise.
2063         (abbrev_table_read_table): Likewise.
2064         (guess_partial_die_structure_name): Likewise.
2065         (fixup_partial_die): Likewise.
2066         (add_file_name): Likewise.
2067         (dwarf2_const_value_data): Likewise.
2068         (dwarf2_const_value_attr): Likewise.
2069         (build_error_marker_type): Likewise.
2070         (guess_full_die_structure_name): Likewise.
2071         (anonymous_struct_prefix): Likewise.
2072         (typename_concat): Likewise.
2073         (dwarf2_canonicalize_name): Likewise.
2074         (dwarf2_name): Likewise.
2075         (write_constant_as_bytes): Likewise.
2076         (dwarf2_fetch_constant_bytes): Likewise.
2077         (copy_string): Likewise.
2078         (parse_macro_definition): Likewise.
2079         * elfread.c (elf_symfile_segments): Likewise.
2080         (elf_rel_plt_read): Likewise.
2081         (elf_gnu_ifunc_resolve_by_cache): Likewise.
2082         (elf_gnu_ifunc_resolve_by_got): Likewise.
2083         (elf_read_minimal_symbols): Likewise.
2084         (elf_gnu_ifunc_record_cache): Likewise.
2085         * event-top.c (top_level_prompt): Likewise.
2086         (command_line_handler): Likewise.
2087         * exec.c (resize_section_table): Likewise.
2088         * expprint.c (print_subexp_standard): Likewise.
2089         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2090         * findcmd.c (parse_find_args): Likewise.
2091         * findvar.c (address_from_register): Likewise.
2092         * frame.c (get_prev_frame_always): Likewise.
2093         * gdb_bfd.c (gdb_bfd_ref): Likewise.
2094         (get_section_descriptor): Likewise.
2095         * gdb_obstack.c (obconcat): Likewise.
2096         (obstack_strdup): Likewise.
2097         * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
2098         (create_set_type): Likewise.
2099         (lookup_unsigned_typename): Likewise.
2100         (lookup_signed_typename): Likewise.
2101         (resolve_dynamic_union): Likewise.
2102         (resolve_dynamic_struct): Likewise.
2103         (add_dyn_prop): Likewise.
2104         (copy_dynamic_prop_list): Likewise.
2105         (arch_flags_type): Likewise.
2106         (append_composite_type_field_raw): Likewise.
2107         * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
2108         * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
2109         * go-exp.y (string_exp): Likewise.
2110         * go-lang.c (go_demangle): Likewise.
2111         * guile/guile.c (compute_scheme_string): Likewise.
2112         * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2113         (gdbscm_canonicalize_command_name): Likewise.
2114         * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
2115         (ioscm_init_memory_port): Likewise.
2116         (ioscm_reinit_memory_port): Likewise.
2117         * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
2118         (gdbscm_gc_dup_argv): Likewise.
2119         * h8300-tdep.c (h8300_push_dummy_call): Likewise.
2120         * hppa-tdep.c (internalize_unwinds): Likewise.
2121         (read_unwind_info): Likewise.
2122         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
2123         (windows_core_xfer_shared_libraries): Likewise.
2124         * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
2125         (i386_stap_parse_special_token_triplet): Likewise.
2126         (i386_stap_parse_special_token_three_arg_disp): Likewise.
2127         * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
2128         * inf-child.c (inf_child_fileio_readlink): Likewise.
2129         * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
2130         (inf_ptrace_store_register): Likewise.
2131         * infrun.c (follow_exec): Likewise.
2132         (displaced_step_prepare_throw): Likewise.
2133         (save_stop_context): Likewise.
2134         (save_infcall_suspend_state): Likewise.
2135         * jit.c (jit_read_descriptor): Likewise.
2136         (jit_read_code_entry): Likewise.
2137         (jit_symtab_line_mapping_add_impl): Likewise.
2138         (finalize_symtab): Likewise.
2139         (jit_unwind_reg_get_impl): Likewise.
2140         * jv-exp.y (QualifiedName): Likewise.
2141         * jv-lang.c (get_java_utf8_name): Likewise.
2142         (type_from_class): Likewise.
2143         (java_demangle_type_signature): Likewise.
2144         (java_class_name_from_physname): Likewise.
2145         * jv-typeprint.c (java_type_print_base): Likewise.
2146         * jv-valprint.c (java_value_print): Likewise.
2147         * language.c (add_language): Likewise.
2148         * linespec.c (add_sal_to_sals_basic): Likewise.
2149         (add_sal_to_sals): Likewise.
2150         (decode_objc): Likewise.
2151         (find_linespec_symbols): Likewise.
2152         * linux-fork.c (fork_save_infrun_state): Likewise.
2153         * linux-nat.c (linux_nat_detach): Likewise.
2154         (linux_nat_fileio_readlink): Likewise.
2155         * linux-record.c (record_linux_sockaddr): Likewise.
2156         (record_linux_msghdr): Likewise.
2157         (Do): Likewise.
2158         * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
2159         (linux_collect_regset_section_cb): Likewise.
2160         (linux_get_siginfo_data): Likewise.
2161         * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
2162         (try_thread_db_load_from_dir): Likewise.
2163         (thread_db_load_search): Likewise.
2164         (info_auto_load_libthread_db): Likewise.
2165         * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
2166         (m32c_m16c_pointer_to_address): Likewise.
2167         * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
2168         * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2169         * machoread.c (macho_check_dsym): Likewise.
2170         * macroexp.c (resize_buffer): Likewise.
2171         (gather_arguments): Likewise.
2172         (maybe_expand): Likewise.
2173         * macrotab.c (new_macro_key): Likewise.
2174         (new_source_file): Likewise.
2175         (new_macro_definition): Likewise.
2176         * mdebugread.c (parse_symbol): Likewise.
2177         (parse_type): Likewise.
2178         (parse_partial_symbols): Likewise.
2179         (psymtab_to_symtab_1): Likewise.
2180         * mem-break.c (default_memory_insert_breakpoint): Likewise.
2181         * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
2182         * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
2183         (mi_cmd_data_read_memory_bytes): Likewise.
2184         (mi_cmd_data_write_memory_bytes): Likewise.
2185         (mi_cmd_trace_frame_collected): Likewise.
2186         * mi/mi-parse.c (mi_parse_argv): Likewise.
2187         (mi_parse): Likewise.
2188         * minidebug.c (lzma_open): Likewise.
2189         (lzma_pread): Likewise.
2190         * mips-tdep.c (mips_read_fp_register_single): Likewise.
2191         (mips_print_fp_register): Likewise.
2192         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
2193         * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2194         * mt-tdep.c (mt_register_name): Likewise.
2195         (mt_registers_info): Likewise.
2196         (mt_push_dummy_call): Likewise.
2197         * namespace.c (add_using_directive): Likewise.
2198         * nat/linux-btrace.c (perf_event_read): Likewise.
2199         (linux_enable_bts): Likewise.
2200         * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
2201         * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
2202         * nto-tdep.c (nto_find_and_open_solib): Likewise.
2203         (nto_parse_redirection): Likewise.
2204         * objc-lang.c (objc_demangle): Likewise.
2205         (find_methods): Likewise.
2206         * objfiles.c (get_objfile_bfd_data): Likewise.
2207         (set_objfile_main_name): Likewise.
2208         (allocate_objfile): Likewise.
2209         (objfile_relocate): Likewise.
2210         (update_section_map): Likewise.
2211         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
2212         * p-exp.y (exp): Likewise.
2213         (yylex): Likewise.
2214         * p-valprint.c (pascal_object_print_value): Likewise.
2215         * parse.c (initialize_expout): Likewise.
2216         (mark_completion_tag): Likewise.
2217         (copy_name): Likewise.
2218         (parse_float): Likewise.
2219         (type_stack_reserve): Likewise.
2220         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2221         (ppu2spu_prev_register): Likewise.
2222         * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
2223         * printcmd.c (printf_wide_c_string): Likewise.
2224         (printf_pointer): Likewise.
2225         * probe.c (parse_probes): Likewise.
2226         * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2227         (cmdpy_init): Likewise.
2228         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
2229         * python/py-symtab.c (set_sal): Likewise.
2230         * python/py-unwind.c (pyuw_sniffer): Likewise.
2231         * python/python.c (python_interactive_command): Likewise.
2232         (compute_python_string): Likewise.
2233         * ravenscar-thread.c (get_running_thread_id): Likewise.
2234         * record-full.c (record_full_exec_insn): Likewise.
2235         (record_full_core_open_1): Likewise.
2236         * regcache.c (regcache_raw_read_signed): Likewise.
2237         (regcache_raw_read_unsigned): Likewise.
2238         (regcache_cooked_read_signed): Likewise.
2239         (regcache_cooked_read_unsigned): Likewise.
2240         * remote-fileio.c (remote_fileio_func_open): Likewise.
2241         (remote_fileio_func_rename): Likewise.
2242         (remote_fileio_func_unlink): Likewise.
2243         (remote_fileio_func_stat): Likewise.
2244         (remote_fileio_func_system): Likewise.
2245         * remote-mips.c (mips_xfer_memory): Likewise.
2246         (mips_load_srec): Likewise.
2247         (pmon_end_download): Likewise.
2248         * remote.c (new_remote_state): Likewise.
2249         (map_regcache_remote_table): Likewise.
2250         (remote_register_number_and_offset): Likewise.
2251         (init_remote_state): Likewise.
2252         (get_memory_packet_size): Likewise.
2253         (remote_pass_signals): Likewise.
2254         (remote_program_signals): Likewise.
2255         (remote_start_remote): Likewise.
2256         (remote_check_symbols): Likewise.
2257         (remote_query_supported): Likewise.
2258         (extended_remote_attach): Likewise.
2259         (process_g_packet): Likewise.
2260         (store_registers_using_G): Likewise.
2261         (putpkt_binary): Likewise.
2262         (read_frame): Likewise.
2263         (compare_sections_command): Likewise.
2264         (remote_hostio_pread): Likewise.
2265         (remote_hostio_readlink): Likewise.
2266         (remote_file_put): Likewise.
2267         (remote_file_get): Likewise.
2268         (remote_pid_to_exec_file): Likewise.
2269         (_initialize_remote): Likewise.
2270         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2271         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2272         * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2273         (bfd_uses_spe_extensions): Likewise.
2274         * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
2275         * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
2276         * solib-dsbt.c (decode_loadmap): Likewise.
2277         (fetch_loadmap): Likewise.
2278         (scan_dyntag): Likewise.
2279         (enable_break): Likewise.
2280         (dsbt_relocate_main_executable): Likewise.
2281         * solib-frv.c (fetch_loadmap): Likewise.
2282         (enable_break2): Likewise.
2283         (frv_relocate_main_executable): Likewise.
2284         * solib-spu.c (spu_relocate_main_executable): Likewise.
2285         (spu_bfd_open): Likewise.
2286         * solib-svr4.c (lm_info_read): Likewise.
2287         (read_program_header): Likewise.
2288         (find_program_interpreter): Likewise.
2289         (scan_dyntag): Likewise.
2290         (elf_locate_base): Likewise.
2291         (open_symbol_file_object): Likewise.
2292         (read_program_headers_from_bfd): Likewise.
2293         (svr4_relocate_main_executable): Likewise.
2294         * solib-target.c (solib_target_relocate_section_addresses): Likewise.
2295         * solib.c (solib_find_1): Likewise.
2296         (exec_file_find): Likewise.
2297         (solib_find): Likewise.
2298         * source.c (openp): Likewise.
2299         (print_source_lines_base): Likewise.
2300         (forward_search_command): Likewise.
2301         * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
2302         * spu-tdep.c (spu2ppu_prev_register): Likewise.
2303         (spu_get_overlay_table): Likewise.
2304         * stabsread.c (patch_block_stabs): Likewise.
2305         (define_symbol): Likewise.
2306         (again:): Likewise.
2307         (read_member_functions): Likewise.
2308         (read_one_struct_field): Likewise.
2309         (read_enum_type): Likewise.
2310         (common_block_start): Likewise.
2311         * stack.c (read_frame_arg): Likewise.
2312         (backtrace_command): Likewise.
2313         * stap-probe.c (stap_parse_register_operand): Likewise.
2314         * symfile.c (syms_from_objfile_1): Likewise.
2315         (find_separate_debug_file): Likewise.
2316         (load_command): Likewise.
2317         (load_progress): Likewise.
2318         (load_section_callback): Likewise.
2319         (reread_symbols): Likewise.
2320         (add_filename_language): Likewise.
2321         (allocate_compunit_symtab): Likewise.
2322         (read_target_long_array): Likewise.
2323         (simple_read_overlay_table): Likewise.
2324         * symtab.c (symbol_set_names): Likewise.
2325         (resize_symbol_cache): Likewise.
2326         (rbreak_command): Likewise.
2327         (completion_list_add_name): Likewise.
2328         (completion_list_objc_symbol): Likewise.
2329         (add_filename_to_list): Likewise.
2330         * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
2331         * target-memory.c (target_write_memory_blocks): Likewise.
2332         * target.c (target_read_string): Likewise.
2333         (read_whatever_is_readable): Likewise.
2334         (target_read_alloc_1): Likewise.
2335         (simple_search_memory): Likewise.
2336         (target_fileio_read_alloc_1): Likewise.
2337         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2338         * top.c (command_line_input): Likewise.
2339         * tracefile-tfile.c (tfile_fetch_registers): Likewise.
2340         * tracefile.c (tracefile_fetch_registers): Likewise.
2341         * tracepoint.c (add_memrange): Likewise.
2342         (init_collection_list): Likewise.
2343         (add_aexpr): Likewise.
2344         (trace_dump_actions): Likewise.
2345         (parse_trace_status): Likewise.
2346         (parse_tracepoint_definition): Likewise.
2347         (parse_tsv_definition): Likewise.
2348         (parse_static_tracepoint_marker_definition): Likewise.
2349         * tui/tui-file.c (tui_sfileopen): Likewise.
2350         (tui_file_adjust_strbuf): Likewise.
2351         * tui/tui-io.c (tui_expand_tabs): Likewise.
2352         * tui/tui-source.c (tui_set_source_content): Likewise.
2353         * typeprint.c (find_global_typedef): Likewise.
2354         * ui-file.c (do_ui_file_xstrdup): Likewise.
2355         (ui_file_obsavestring): Likewise.
2356         (mem_file_write): Likewise.
2357         * utils.c (make_hex_string): Likewise.
2358         (get_regcomp_error): Likewise.
2359         (puts_filtered_tabular): Likewise.
2360         (gdb_realpath_keepfile): Likewise.
2361         (ldirname): Likewise.
2362         (gdb_bfd_errmsg): Likewise.
2363         (substitute_path_component): Likewise.
2364         * valops.c (search_struct_method): Likewise.
2365         (find_oload_champ_namespace_loop): Likewise.
2366         * valprint.c (print_decimal_chars): Likewise.
2367         (read_string): Likewise.
2368         (generic_emit_char): Likewise.
2369         * varobj.c (varobj_delete): Likewise.
2370         (varobj_value_get_print_value): Likewise.
2371         * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
2372         * windows-tdep.c (display_one_tib): Likewise.
2373         * xcoffread.c (read_xcoff_symtab): Likewise.
2374         (process_xcoff_symbol): Likewise.
2375         (swap_sym): Likewise.
2376         (scan_xcoff_symtab): Likewise.
2377         (xcoff_initial_scan): Likewise.
2378         * xml-support.c (gdb_xml_end_element): Likewise.
2379         (xml_process_xincludes): Likewise.
2380         (xml_fetch_content_from_file): Likewise.
2381         * xml-syscall.c (xml_list_of_syscalls): Likewise.
2382         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2383
2384 2015-09-23  James Bowman  <james.bowman@ftdichip.com>
2385
2386         * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
2387         instead of builtin_func_ptr.
2388         (ft32_pointer_to_address): New function.
2389         (ft32_address_class_type_flags): New function.
2390         (ft32_address_class_type_flags_to_name): New function.
2391         (ft32_address_class_name_to_type_flags): New function.
2392         (ft32_gdbarch_init): Set tdep->pc_type.  Call
2393         set_gdbarch_pointer_to_address,
2394         set_gdbarch_address_class_type_flags
2395         set_gdbarch_address_class_name_to_type_flags,
2396         and set_gdbarch_address_class_type_flags_to_name.
2397         * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
2398
2399 2015-09-23  Pierre-Marie de Rodat  <derodat@adacore.com>
2400
2401         * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
2402         value is a reference, actually dereference it in order to get
2403         the underlying value.
2404
2405 2015-09-22  Simon Marchi  <simon.marchi@ericsson.com>
2406
2407         * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
2408
2409 2015-09-21  Simon Marchi  <simon.marchi@ericsson.com>
2410
2411         * cli/cli-setshow.c (cmd_show_list): Constify a variable.
2412         * linespec.c (linespec_lexer_lex_string): Same.
2413
2414 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2415
2416         * NEWS: Mention support for fast tracepoints on aarch64-linux.
2417
2418 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2419
2420         * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
2421         variable.  Call aarch64_decode_adr instead of
2422         aarch64_decode_adrp.
2423         * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
2424         (aarch64_decode_adr): New function declaration.
2425         * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
2426         (aarch64_decode_adr): New function, factored out from
2427         aarch64_decode_adrp to decode both adr and adrp instructions.
2428
2429 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2430
2431         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
2432         (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
2433         (aarch64-insn.o): New rule.
2434         * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
2435         (aarch64*-*-linux*): Likewise.
2436         * arch/aarch64-insn.c: New file.
2437         * arch/aarch64-insn.h: New file.
2438         * aarch64-tdep.c: Include arch/aarch64-insn.h.
2439         (aarch64_debug): Move to arch/aarch64-insn.c.  Declare in
2440         arch/aarch64-insn.h.
2441         (decode_add_sub_imm): Rename to ...
2442         (aarch64_decode_add_sub_imm): ... this.
2443         (decode_adrp): Rename to ...
2444         (aarch64_decode_adrp): ... this.  Move to arch/aarch64-insn.c.
2445         Declare in arch/aarch64-insn.h.
2446         (decode_b): Rename to ...
2447         (aarch64_decode_b): ... this.  Move to arch/aarch64-insn.c.
2448         Declare in arch/aarch64-insn.h.
2449         (decode_bcond): Rename to ...
2450         (aarch64_decode_bcond): ... this.  Move to arch/aarch64-insn.c.
2451         Declare in arch/aarch64-insn.h.
2452         (decode_br): Rename to ...
2453         (aarch64_decode_br): ... this.
2454         (decode_cb): Rename to ...
2455         (aarch64_decode_cb): ... this.  Move to arch/aarch64-insn.c.
2456         Declare in arch/aarch64-insn.h.
2457         (decode_eret): Rename to ...
2458         (aarch64_decode_eret): ... this.
2459         (decode_movz): Rename to ...
2460         (aarch64_decode_movz): ... this.
2461         (decode_orr_shifted_register_x): Rename to ...
2462         (aarch64_decode_orr_shifted_register_x): ... this.
2463         (decode_ret): Rename to ...
2464         (aarch64_decode_ret): ... this.
2465         (decode_stp_offset): Rename to ...
2466         (aarch64_decode_stp_offset): ... this.
2467         (decode_stp_offset_wb): Rename to ...
2468         (aarch64_decode_stp_offset_wb): ... this.
2469         (decode_stur): Rename to ...
2470         (aarch64_decode_stur): ... this.
2471         (decode_tb): Rename to ...
2472         (aarch64_decode_tb): ... this.  Move to arch/aarch64-insn.c.
2473         Declare in arch/aarch64-insn.h.
2474         (aarch64_analyze_prologue): Adjust calls to renamed functions.
2475
2476 2015-09-20  Doug Evans  <xdje42@gmail.com>
2477
2478         * dwarf2read.c (add_partial_symbol): Remove outdated comments.
2479
2480 2015-09-20  Doug Evans  <xdje42@gmail.com>
2481
2482         * dwarf2read.c (dwarf2_compute_name): Add FIXME.  Don't use a local
2483         variable name that collides with a parameter.
2484
2485 2015-09-20  Joel Brobecker  <brobecker@adacore.com>
2486
2487         * dwarf2loc.c (locexpr_get_frame_base): Renames
2488         block_op_get_frame_base.
2489         (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
2490         block_op_get_frame_base by reference to locexpr_get_frame_base.
2491         (loclist_get_frame_base): New function, near identical copy of
2492         locexpr_get_frame_base.
2493         (dwarf2_block_frame_base_loclist_funcs): Replace reference to
2494         block_op_get_frame_base by reference to loclist_get_frame_base.
2495
2496 2015-09-19  Doug Evans  <xdje42@gmail.com>
2497
2498         * ravenscar-thread.c (ravenscar_inferior_created): Replace
2499         current_inferior ()->gdbarch with its wrapper target_gdbarch.
2500
2501 2015-09-18  Doug Evans  <xdje42@gmail.com>
2502
2503         * linux-thread-db.c (record_thread): Return the created thread.
2504         (thread_from_lwp): Likewise.
2505         (thread_db_get_thread_local_address): Update.
2506
2507 2015-09-18  Doug Evans  <xdje42@gmail.com>
2508
2509         * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
2510         move only member demangled_name up.  All uses updated.
2511
2512 2015-09-18  Doug Evans  <xdje42@gmail.com>
2513
2514         * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
2515         kind of minimal symbol in the error message.
2516         * objfiles.c (objfile_flavour_name): New function.
2517         * objfiles.h (objfile_flavour_name): Declare.
2518
2519 2015-09-18  Yao Qi  <yao.qi@linaro.org>
2520
2521         * nat/aarch64-linux.c: Include elf/common.h,
2522         nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
2523         (aarch64_ps_get_thread_area): New function.
2524         * nat/aarch64-linux.h: Include gdb_proc_service.h.
2525         (aarch64_ps_get_thread_area): Declare.
2526         * aarch64-linux-nat.c (ps_get_thread_area): Call
2527         aarch64_ps_get_thread_area.
2528
2529 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2530
2531         * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
2532
2533 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2534
2535         * NEWS: Announce new scheduler-locking mode.
2536         * infrun.c (schedlock_replay): New.
2537         (scheduler_enums): Add schedlock_replay.
2538         (scheduler_mode): Change default to schedlock_replay.
2539         (user_visible_resume_ptid): Handle schedlock_replay.
2540         (clear_proceed_status_thread): Stop replaying if resumed thread is
2541         not replaying.
2542         (schedlock_applies): Handle schedlock_replay.
2543         (_initialize_infrun): Document new scheduler-locking mode.
2544         * record-btrace.c (record_btrace_resume): Remove code to stop other
2545         threads when not replaying the resumed thread.
2546
2547 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2548
2549         * record-btrace.c ((record_btrace_will_replay): New.
2550         (init_record_btrace_ops): Initialize to_record_will_replay.
2551         * record-full.c ((record_full_will_replay): New.
2552         (init_record_full_ops): Initialize to_record_will_replay.
2553         * target-delegates.c: Regenerated.
2554         * target.c (target_record_will_replay): New.
2555         * target.h (struct target_ops) <to_record_will_replay>: New.
2556         (target_record_will_replay): New.
2557
2558 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2559
2560         * record-btrace.c (record_btrace_resume): Call
2561         target_record_stop_replaying.
2562         (record_btrace_stop_replaying_all): New.
2563         (init_record_btrace_ops): Initialize to_record_stop_replaying.
2564         * record-full.c (record_full_stop_replaying): New.
2565         (init_record_full_ops ): Initialize to_record_stop_replaying.
2566         * target-delegates.c: Regenerated.
2567         * target.c (target_record_stop_replaying): New.
2568         * target.h (struct target_ops) <to_record_stop_replaying>: New.
2569         (target_record_stop_replaying): New.
2570
2571 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2572
2573         * record-btrace.c (record_btrace_xfer_partial)
2574         (record_btrace_store_registers, record_btrace_prepare_to_store):
2575         Call record_btrace_is_replaying with inferior_ptid instead of
2576         minus_one_ptid.
2577         (record_btrace_store_registers): Change error message.
2578
2579 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2580
2581         * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2582         Update users to pass minus_one_ptid.
2583         * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2584         * record.c (cmd_record_delete): Pass inferior_ptid to
2585         target_record_is_replaying.
2586         * target-delegates.c: Regenerated.
2587         * target.c (target_record_is_replaying): Add ptid argument.
2588         * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2589         argument.
2590         (target_record_is_replaying): Add ptid argument.
2591
2592 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2593
2594         * record-btrace.c (record_btrace_open): Remove non_stop check.
2595         * NEWS: Announce that record btrace supports non-stop mode.
2596
2597 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2598
2599         * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2600         in the TARKET_WAITKIND_NO_HISTORY case.
2601
2602 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2603
2604         * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2605         (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2606
2607 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2608
2609         * record-btrace.c (get_thread_current_frame): New.
2610         (record_btrace_start_replaying): Call get_thread_current_frame.
2611
2612 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2613
2614         * record-btrace.c (record_btrace_resume_thread): A move request
2615         overwrites a previous move request.
2616         (record_btrace_find_resume_thread): Removed.
2617         (record_btrace_resume): Resume all requested threads.
2618
2619 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2620
2621         * record-btrace.c: Include vec.h.
2622         (record_btrace_find_thread_to_move): Removed.
2623         (btrace_step_no_resumed, btrace_step_again)
2624         (record_btrace_stop_replaying_at_end): New.
2625         (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2626         (record_btrace_single_step_forward): Remove calls to
2627         record_btrace_stop_replaying.
2628         (record_btrace_step_thread): Do only one step for BTHR_CONT and
2629         BTHR_RCONT.  Keep threads at the end of their history moving.
2630         (record_btrace_wait): Call record_btrace_step_thread for all threads
2631         until one reports an event.  Call record_btrace_stop_replaying_at_end
2632         for the eventing thread.
2633
2634 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2635
2636         * record-btrace.c (record_btrace_single_step_forward): Return
2637         NO_HISTORY if a step brings us to the end of the execution history.
2638
2639 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2640
2641         * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2642         to ...
2643         (record_btrace_single_step_forward): ... here and
2644         (record_btrace_single_step_backward): ... here.
2645
2646 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2647
2648         * record-btrace.c (btrace_step_spurious)
2649         (record_btrace_single_step_forward)
2650         (record_btrace_single_step_backward): New.
2651         (record_btrace_step_thread): Call record_btrace_single_step_forward
2652         and record_btrace_single_step_backward.
2653
2654 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2655
2656         * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2657         (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2658
2659 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2660
2661         * record-btrace.c (btrace_thread_flag_to_str)
2662         (record_btrace_cancel_resume): New.
2663         (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2664         (record_btrace_resume): Print execution direction.
2665         (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2666         (record_btrace_wait): Call record_btrace_cancel_resume.
2667
2668 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2669
2670         * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2671         * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2672         (record_btrace_find_thread_to_move): Also accept threads that have
2673         BTHR_STOP set.
2674         (btrace_step_stopped_on_request, record_btrace_stop): New.
2675         (record_btrace_step_thread): Support BTHR_STOP.
2676         (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2677         (init_record_btrace_ops): Initialize to_stop.
2678
2679 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2680
2681         * record-btrace.c (record_btrace_wait): Replace non_stop check with
2682         target_is_non_stop_p ().
2683
2684 2015-09-15  Pierre-Marie de Rodat  <derodat@adacore.com>
2685
2686         * ada-typeprint.c (print_array_type): Do not describe arrays as
2687         packed when they embed dynamic elements.
2688
2689 2015-09-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
2690
2691         * symtab.h (address_class): Document that TLS variables
2692         are handled by LOC_UNRESOLVED.
2693         * findvar.c (default_read_var_value): Don't relocate TLS variables.
2694         * printcmd.c (address_info): Don't relocate TLS variables.
2695
2696 2015-09-15  Pierre Langlois  <pierre.langlois@arm.com>
2697
2698         * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2699         (decode_adrp): Likewise.
2700         (decode_b): Likewise.
2701         (decode_bcond): Likewise.
2702         (decode_br): Likewise.
2703         (decode_cb): Likewise.
2704         (decode_eret): Likewise.
2705         (decode_movz): Likewise.
2706         (decode_orr_shifted_register_x): Likewise.
2707         (decode_ret): Likewise.
2708         (decode_stp_offset): Likewise.
2709         (decode_stp_offset_wb): Likewise.
2710         (decode_stur): Likewise.
2711         (decode_tb): Likewise.
2712         (aarch64_analyze_prologue): Likewise.
2713         (pass_in_x): Likewise.
2714         (pass_in_v): Likewise.
2715         (pass_on_stack): Likewise.
2716         (aarch64_push_dummy_call): Likewise.
2717         (aarch64_extract_return_value): Likewise.
2718         (aarch64_store_return_value): Likewise.
2719         (aarch64_return_value): Likewise.
2720         (aarch64_record_asimd_load_store): Likewise.
2721         (aarch64_record_load_store): Likewise.
2722         (aarch64_record_data_proc_simd_fp): Likewise.
2723
2724 2015-09-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
2725
2726         * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2727         * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2728         (ppc64_skip_trampoline_code_1): ... here.
2729         (ppc64_skip_trampoline_code): New wrapper function.
2730         * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2731
2732 2015-09-15  Yao Qi  <yao.qi@linaro.org>
2733
2734         * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2735         function.
2736         (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2737         * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2738         if target_can_do_single_step returns 1.
2739         * remote.c (struct vCont_action_support) <s, S>: New fields.
2740         (PACKET_vContSupported): New enum.
2741         (remote_protocol_features): New element for vContSupported.
2742         (remote_query_supported): Append "vContSupported+".
2743         (remote_vcont_probe): Remove support_s and support_S, use
2744         rs->supports_vCont.s and rs->supports_vCont.S instead.  Disable
2745         vCont packet if c and C actions are not supported.
2746         (remote_can_do_single_step): New function.
2747         (init_remote_ops): Install it to to_can_do_single_step.
2748         (_initialize_remote): Call add_packet_config_cmd.
2749         * target.h (struct target_ops) <to_can_do_single_step>: New field.
2750         (target_can_do_single_step): New macro.
2751         * target-delegates.c: Re-generated.
2752
2753 2015-09-15  Yao Qi  <yao.qi@linaro.org>
2754
2755         * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2756         (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2757         * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2758         New function.
2759         (aarch64_siginfo_from_compat_siginfo): New function.
2760         * nat/aarch64-linux.h: Include signal.h.
2761         (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2762         (compat_timer_t, compat_clock_t): Likewise.
2763         (struct compat_timeval): New.
2764         (union compat_sigval): New.
2765         (struct compat_siginfo): New.
2766         (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2767         (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2768         (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2769         (cpt_si_band, cpt_si_fd): Likewise.
2770
2771 2015-09-14  Pedro Alves  <palves@redhat.com>
2772
2773         * infrun.c (current_stop_id): New global.
2774         (get_stop_id, new_stop_id): New functions.
2775         (fetch_inferior_event): Handle normal_stop proceeding the target.
2776         (struct stop_context): New.
2777         (save_stop_context, release_stop_context_cleanup)
2778         (stop_context_changed): New functions.
2779         (normal_stop): Return true if the hook-stop changes the stop
2780         context.
2781         * infrun.h (get_stop_id): Declare.
2782         (normal_stop): Now returns int.  Add documentation.
2783
2784 2015-09-14  Pierre-Marie de Rodat  <derodat@adacore.com>
2785
2786         * ada-lang.c (ada_value_ptr_subscript): Update the heading
2787         comment.  Handle packed arrays.
2788
2789 2015-09-14  Pedro Alves  <palves@redhat.com>
2790
2791         * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2792         mention of maint set/show target-non-stop.
2793
2794 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2795
2796         * NEWS: Announce new remote packets for the exec-events
2797         feature and the exec-events feature and associated commands.
2798
2799 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2800
2801         * remote.c (remote_exec_event_p): New function.
2802         (remote_insert_exec_catchpoint): New function.
2803         (remote_remove_exec_catchpoint): New function.
2804         (init_extended_remote_ops): Initialize extended_remote_ops
2805         members to_insert_exec_catchpoint and
2806         to_remove_exec_catchpoint.
2807
2808 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2809             Luis Machado  <lgustavo@codesourcery.com>
2810
2811         * infrun.c (follow_exec): Use process-style ptid for
2812         exec message.  Call add_inferior_with_spaces and
2813         target_follow_exec.
2814         * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2815         * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2816         * remote.c (remote_pspace_data): New static variable.
2817         (remote_pspace_data_cleanup): New function.
2818         (get_remote_exec_file): New function.
2819         (set_remote_exec_file_1): New function.
2820         (set_remote_exec_file): New function.
2821         (show_remote_exec_file): New function.
2822         (remote_exec_file): Delete static variable.
2823         (anonymous enum) <PACKET_exec_event_feature>: New
2824         enumeration constant.
2825         (remote_protocol_features): Add entry for exec-events feature.
2826         (remote_query_supported): Add client side of qSupported query
2827         for exec-events feature.
2828         (remote_follow_exec): New function.
2829         (remote_parse_stop_reply): Handle 'exec' stop reason.
2830         (extended_remote_run, extended_remote_create_inferior): Call
2831         get_remote_exec_file and set_remote_exec_file_1.
2832         (init_extended_remote_ops) <to_follow_exec>: Initialize new
2833         member.
2834         (_initialize_remote): Call
2835         register_program_space_data_with_cleanup.  Call
2836         add_packet_config_cmd for remote exec-events feature.
2837         Modify call to add_setshow_string_noescape_cmd for exec-file
2838         to use new functions set_remote_exec_file and
2839         show_remote_exec_file.
2840         * target-debug.h, target-delegates.c: Regenerated.
2841         * target.c (target_follow_exec): New function.
2842         * target.h (struct target_ops) <to_follow_exec>: New member.
2843         (target_follow_exec): Declare new function.
2844
2845 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
2846
2847         * aarch64-tdep.c (decode_cb): Move up comment describing the
2848         encoding.
2849         (decode_tb): Fix a typo in comment above the function.  Move up
2850         comment describing the encoding.
2851
2852 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
2853
2854         * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2855
2856 2015-09-11  Mihail-Marian Nistor  <mihail.nistor@freescale.com>
2857
2858         PR gdb/18947
2859         * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2860         glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2861
2862 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
2863
2864         * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2865         operations.
2866
2867 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
2868
2869         * ada-lang.c (ada_search_struct_field): Constify parameters
2870         and/or variables..
2871         (xget_renaming_scope): Likewise.
2872         (ada_is_redundant_range_encoding): Likewise.
2873         (scan_discrim_bound): Likewise.
2874         (to_fixed_range_type): Likewise.
2875
2876 2015-09-10  Yao Qi  <yao.qi@linaro.org>
2877
2878         * breakpoint.c (download_tracepoint_locations): New local
2879         can_download_tracepoint.  Check the result of
2880         target_can_download_tracepoint and save it in
2881         can_download_tracepoint if there are tracepoints to download.
2882         * linux-nat.h (enum tribool): Move it to ...
2883         * common/common-types.h: ... here.
2884
2885 2015-09-09  Pedro Alves  <palves@redhat.com>
2886
2887         * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2888         * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2889
2890 2015-09-09  Pedro Alves  <palves@redhat.com>
2891
2892         * continuations.c (add_continuation, restore_thread_cleanup)
2893         (do_all_continuations_ptid, do_all_continuations_thread_callback)
2894         (do_all_continuations_thread, do_all_continuations)
2895         (discard_all_continuations_thread_callback)
2896         (discard_all_continuations_thread, discard_all_continuations)
2897         (add_intermediate_continuation)
2898         (do_all_intermediate_continuations_thread_callback)
2899         (do_all_intermediate_continuations_thread)
2900         (do_all_intermediate_continuations)
2901         (discard_all_intermediate_continuations_thread_callback)
2902         (discard_all_intermediate_continuations_thread)
2903         (discard_all_intermediate_continuations): Delete.
2904         * continuations.h (add_continuation, do_all_continuations)
2905         (do_all_continuations_thread, discard_all_continuations)
2906         (discard_all_continuations_thread, add_intermediate_continuation)
2907         (do_all_intermediate_continuations)
2908         (do_all_intermediate_continuations_thread)
2909         (discard_all_intermediate_continuations)
2910         (discard_all_intermediate_continuations_thread): Delete
2911         declarations.
2912         * event-top.c (stdin_event_handler): Delete references to
2913         continuations.
2914         * gdbthread.h (struct thread_info): Delete continuations and
2915         intermediate_continuations fields.
2916         * inf-loop.c (inferior_event_handler): Remove references to
2917         continuations.
2918         * infrun.c (infrun_thread_stop_requested_callback): Remove
2919         references to continuations.
2920         * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2921         * thread.c: Don't include "continuations.h".
2922         (clear_thread_inferior_resources): Remove references to
2923         continuations.
2924
2925 2015-09-09  Pedro Alves  <palves@redhat.com>
2926
2927         * infcall.c (struct dummy_frame_context_saver): Delete.
2928         (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2929         (dummy_frame_context_saver_drop)
2930         (dummy_frame_context_saver_cleanup)
2931         (dummy_frame_context_saver_get_regs)
2932         (dummy_frame_context_saver_setup): Delete.
2933         * infcall.h (dummy_frame_context_saver_drop)
2934         (dummy_frame_context_saver_cleanup)
2935         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2936         Delete.
2937         (get_return_value): Remove 'ctx_saver' paremeter.  Adjust.
2938         * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2939         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2940
2941 2015-09-09  Pedro Alves  <palves@redhat.com>
2942
2943         * breakpoint.c: Include "thread-fsm.h".
2944         (struct until_break_command_continuation_args): Delete.
2945         (struct until_break_fsm): New.
2946         (until_break_fsm_ops): New global.
2947         (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2948         (until_break_command_continuation): Delete.
2949         (until_break_fsm_clean_up): New function.
2950         (until_break_fsm_async_reply_reason): New function.
2951         (until_break_command): Adjust to create an until_break_fsm instead
2952         of a continuation.
2953         (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2954         here.
2955         * infcmd.c (struct until_next_fsm): New.
2956         (until_next_fsm_ops): New global.
2957         (new_until_next_fsm, until_next_fsm_should_stop): New function.
2958         (until_next_continuation): Delete.
2959         (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2960         functions.
2961         (until_next_command): Adjust to create a new until_next_fsm
2962         instead of a continuation.
2963
2964 2015-09-09  Pedro Alves  <palves@redhat.com>
2965
2966         * infcall.c: Include thread_fsm.h.
2967         (struct call_return_meta_info): New.
2968         (get_call_return_value): New function, factored out from
2969         call_function_by_hand_dummy.
2970         (struct call_thread_fsm): New.
2971         (call_thread_fsm_ops): New global.
2972         (new_call_thread_fsm, call_thread_fsm_should_stop)
2973         (call_thread_fsm_should_notify_stop): New functions.
2974         (run_inferior_call): Add 'sm' parameter.  Associate the FSM with
2975         the thread.
2976         (call_function_by_hand_dummy): Create a new call_thread_fsm
2977         instance, associate it with the thread, and wait for the FSM to
2978         finish.  If finished successfully, fetch the function's result
2979         value out of the FSM.
2980         * infrun.c (fetch_inferior_event): If the FSM says the stop
2981         shouldn't be notified, don't call normal_stop.
2982         (maybe_remove_breakpoints): New function, factored out from ...
2983         (normal_stop): ... here.  Simplify.
2984         * infrun.h (maybe_remove_breakpoints): Declare.
2985         * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2986         (thread-fsm.h) <struct thread_fsm_ops>: New field.
2987         (thread_fsm_should_notify_stop): Declare.
2988
2989 2015-09-09  Pedro Alves  <palves@redhat.com>
2990
2991         * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2992         * breakpoint.c (handle_jit_event): Print debug output.
2993         (bpstat_what): Split event callback handling to ...
2994         (bpstat_run_callbacks): ... this new function.
2995         (momentary_bkpt_print_it): No longer handle bp_finish here.
2996         * breakpoint.h (bpstat_run_callbacks): Declare.
2997         * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2998         <thread_fsm>: New field.
2999         (thread_cancel_execution_command): Declare.
3000         * infcmd.c: Include thread-fsm.h.
3001         (struct step_command_fsm): New.
3002         (step_command_fsm_ops): New global.
3003         (new_step_command_fsm, step_command_fsm_prepare): New functions.
3004         (step_1): Adjust to use step_command_fsm_prepare and
3005         prepare_one_step.
3006         (struct step_1_continuation_args): Delete.
3007         (step_1_continuation): Delete.
3008         (step_command_fsm_should_stop): New function.
3009         (step_once): Delete.
3010         (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
3011         (prepare_one_step): New function, based on step_once.
3012         (until_next_command): Remove step_multi reference.
3013         (struct return_value_info): New.
3014         (print_return_value): Rename to ...
3015         (print_return_value_1): ... this.  New struct return_value_info
3016         parameter.  Adjust.
3017         (print_return_value): Reimplement as wrapper around
3018         print_return_value_1.
3019         (struct finish_command_fsm): New.
3020         (finish_command_continuation): Delete.
3021         (finish_command_fsm_ops): New global.
3022         (new_finish_command_fsm, finish_command_fsm_should_stop): New
3023         functions.
3024         (finish_command_fsm_clean_up, finish_command_fsm_return_value):
3025         New.
3026         (finish_command_continuation_free_arg): Delete.
3027         (finish_command_fsm_async_reply_reason): New.
3028         (finish_backward, finish_forward): Change symbol parameter to a
3029         finish_command_fsm.  Adjust.
3030         (finish_command): Create a finish_command_fsm.  Adjust.
3031         * infrun.c: Include "thread-fsm.h".
3032         (clear_proceed_status_thread): Delete the thread's FSM.
3033         (infrun_thread_stop_requested_callback): Cancel the thread's
3034         execution command.
3035         (clean_up_just_stopped_threads_fsms): New function.
3036         (fetch_inferior_event): Handle the event_thread's should_stop
3037         method saying the command isn't done yet.
3038         (process_event_stop_test): Run breakpoint callbacks here.
3039         (print_stop_event): Rename to ...
3040         (print_stop_location): ... this.
3041         (restore_current_uiout_cleanup): New function.
3042         (print_stop_event): Reimplement.
3043         (normal_stop): No longer notify the end_stepping_range observers
3044         here handle "step N" nor "finish" here.  No longer call
3045         print_stop_event here.
3046         * infrun.h (struct return_value_info): Forward declare.
3047         (print_return_value): Declare.
3048         (print_stop_event): Change prototype.
3049         * thread-fsm.c: New file.
3050         * thread-fsm.h: New file.
3051         * thread.c: Include "thread-fsm.h".
3052         (thread_cancel_execution_command): New function.
3053         (clear_thread_inferior_resources): Call it.
3054         * cli/cli-interp.c (cli_on_normal_stop): New function.
3055         (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
3056         observer.
3057         * mi/mi-interp.c: Include "thread-fsm.h".
3058         (restore_current_uiout_cleanup): Delete.
3059         (mi_on_normal_stop): If the thread has an FSM associated, and it
3060         finished, ask it for the async-reply-reason to print.  Always call
3061         print_stop_event here, regardless of the top-level interpreter.
3062         Check bpstat_what to tell whether an asynchronous breakpoint hit
3063         triggered.
3064         * tui/tui-interp.c (tui_on_normal_stop): New function.
3065         (tui_init): Install tui_on_normal_stop as normal_stop observer.
3066
3067 2015-09-09  Pedro Alves  <palves@redhat.com>
3068
3069         * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
3070         check whether the target can async.
3071         * inf-loop.c (inferior_event_handler): Only call target_async if
3072         the target can async.
3073         * infcall.c: Include top.h and interps.h.
3074         (run_inferior_call): For the interpreter to sync mode while
3075         running the infcall.  Call wait_sync_command_done instead of
3076         wait_for_inferior plus normal_stop.
3077         * infcmd.c (prepare_execution_command): Don't check whether the
3078         target can async when running in the foreground.
3079         (step_1): Delete synchronous case handling.
3080         (step_once): Always install a continuation, even in sync mode.
3081         (until_next_command, finish_forward): Don't check whether the
3082         target can async.
3083         (attach_command_post_wait, notice_new_inferior): Always install a
3084         continuation, even in sync mode.
3085         * infrun.c (mark_infrun_async_event_handler): New function.
3086         (proceed): In sync mode, mark infrun's event source instead of
3087         waiting for events here.
3088         (fetch_inferior_event): If the target can't async, do a blocking
3089         wait.
3090         (prepare_to_wait): In sync mode, mark infrun's event source.
3091         (infrun_async_inferior_event_handler): No longer bail out if the
3092         target can't async.
3093         * infrun.h (mark_infrun_async_event_handler): New declaration.
3094         * linux-nat.c (linux_nat_wait_1): Remove calls to
3095         set_sigint_trap/clear_sigint_trap.
3096         (linux_nat_terminal_inferior): No longer check whether the target
3097         can async.
3098         * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
3099         comment.
3100         (mi_execute_command_input_handler): No longer check whether the
3101         target is async.  Update and simplify comment.
3102         * target.c (default_target_wait): New function.
3103         * target.h (struct target_ops) <to_wait>: Now defaults to
3104         default_target_wait.
3105         (default_target_wait): Declare.
3106         * top.c (wait_sync_command_done): New function, factored out from
3107         ...
3108         (maybe_wait_sync_command_done): ... this.
3109         * top.h (wait_sync_command_done): Declare.
3110         * target-delegates.c: Regenerate.
3111
3112 2015-09-09  Markus Metzger  <markus.t.metzger@intel.com>
3113
3114         * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
3115         * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
3116         Remove include of sys/utsname.h.
3117         (linux_determine_kernel_ptr_bits): Remove.
3118         (linux_determine_kernel_start): New.
3119         (perf_event_is_kernel_addr): Remove tinfo argument.  Update users.
3120         Update check.
3121         (perf_event_skip_bts_record): Remove tinfo argument.  Update users.
3122         (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
3123         initialization.
3124         * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
3125         assignment.
3126
3127 2015-09-07  Pedro Alves  <palves@redhat.com>
3128
3129         * guile/guile-internal.h (as_a_scm_t_subr): New.
3130         * guile/guile.c (misc_guile_functions): Use it.
3131         * guile/scm-arch.c (arch_functions): Use it.
3132         * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
3133         Use it.
3134         * guile/scm-breakpoint.c (breakpoint_functions): Use it.
3135         * guile/scm-cmd.c (command_functions): Use it.
3136         * guile/scm-disasm.c (disasm_functions): Use it.
3137         * guile/scm-exception.c (exception_functions)
3138         (private_exception_functions): Use it.
3139         * guile/scm-frame.c (frame_functions)
3140         * guile/scm-gsmob.c (gsmob_functions): Use it.
3141         * guile/scm-iterator.c (iterator_functions): Use it.
3142         * guile/scm-lazy-string.c (lazy_string_functions): Use it.
3143         * guile/scm-math.c (math_functions): Use it.
3144         * guile/scm-objfile.c (objfile_functions): Use it.
3145         * guile/scm-param.c (parameter_functions): Use it.
3146         * guile/scm-ports.c (port_functions, private_port_functions): Use
3147         it.
3148         * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
3149         * guile/scm-progspace.c (pspace_functions): Use it.
3150         * guile/scm-string.c (string_functions): Use it.
3151         * guile/scm-symbol.c (symbol_functions): Use it.
3152         * guile/scm-symtab.c (symtab_functions): Use it.
3153         * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
3154         it.
3155         * guile/scm-value.c (value_functions): Use it.
3156
3157 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
3158
3159         * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
3160         (tui_next_win): Likewise.
3161         (tui_prev_win): Likewise.
3162         (tui_partial_win_by_name): Likewise.
3163         (tui_init_generic_part): Likewise.
3164         (init_content_element): Likewise.
3165         (tui_del_window): Likewise.
3166         (tui_free_window): Likewise.
3167         (tui_del_data_windows): Likewise.
3168         (tui_free_data_content): Likewise.
3169         * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
3170         * tui/tui-regs.c (tui_show_register_group): Likewise.
3171         * tui/tui-win.c (tui_resize_all): Likewise.
3172         (tui_set_focus): Likewise.
3173         (tui_set_win_height): Likewise.
3174         (make_invisible_and_set_new_height): Likewise.
3175         * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
3176         * tui/tui-wingeneral.c (make_visible): Likewise.
3177
3178 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
3179
3180         * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
3181
3182 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
3183
3184         * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
3185         pointer.
3186         * dbxread.c (dbx_end_psymtab): Likewise.
3187         * gnu-nat.c (gnu_write_inferior): Likewise.
3188         * mdebugread.c (cross_ref): Likewise.
3189         * p-valprint.c (pascal_val_print): Likewise.
3190         * xcoffread.c (xcoff_end_psymtab): Likewise.
3191
3192 2015-09-04  Yao Qi  <yao.qi@linaro.org>
3193
3194         * NEWS: Mention the aarch64 multi-arch debugging support.
3195
3196 2015-09-03  Pierre-Marie de Rodat  <derodat@adacore.com>
3197
3198         * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
3199         type instead of a TYPE_CODE_INT one for the string_char_type
3200         and the ada_primitive_type_char types.
3201
3202 2015-09-03  Yao Qi  <yao.qi@linaro.org>
3203
3204         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
3205         Move code to aarch64_linux_region_ok_for_watchpoint.  Call
3206         aarch64_linux_region_ok_for_watchpoint.
3207         * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
3208         New function.
3209         * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
3210         Declare it.
3211
3212 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
3213
3214         * gdb_obstack.h (obstack_strdup): Declare.
3215         * gdb_obstack.c (obstack_strdup): Define.
3216         * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
3217         * gdbarch.c: Regenerate.
3218         * gdbarch.h: Regenerate.
3219         * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
3220
3221 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
3222
3223         * gdbtypes.c (copy_type_recursive): Update documentation.
3224
3225 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
3226
3227         * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
3228         as zero.
3229
3230 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
3231
3232         * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
3233
3234 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
3235
3236         * solib-svr4.c (solib_event_probe_action): Call
3237         get_probe_argument_count using TRY...CATCH.
3238         (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
3239
3240 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
3241
3242         * probe.h (struct probe_ops) <get_probe_argument_count,
3243         evaluate_probe_argument, enable_probe, disable_probe>: Mention in
3244         the comment that the function can throw an exception.
3245         (get_probe_argument_count): Likewise.
3246         (evaluate_probe_argument): Likewise.
3247         * stap-probe.c (stap_get_opcode): Call error instead of
3248         internal_error.
3249         (stap_get_expected_argument_type): Likewise.  Add argument
3250         'probe'.  Improve error message by mentioning the probe's name.
3251         (stap_parse_probe_arguments): Adjust call to
3252         stap_get_expected_argument_type.
3253         (stap_get_arg): Add comment.  Assert that 'probe->args_parsed' is
3254         not zero.  Call internal_error if GDB requests an argument but the
3255         probe has no arguments.
3256
3257 2015-09-01  Pierre-Marie de Rodat  <derodat@adacore.com>
3258
3259         * ada-lang.c (ada_resolve_function): Do not ask the user what
3260         match to use when in completion mode.
3261
3262 2015-08-31  Andrew Burgess  <andrew.burgess@embecosm.com>
3263
3264         * tui/tui-data.c (tui_win_name): Make local variable const, remove
3265         cast of NULL.
3266
3267 2015-08-31  Max Filippov  <jcmvbkbc@gmail.com>
3268
3269         * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
3270         call_abi using XSHAL_ABI macro.
3271
3272 2015-08-29  Doug Evans  <xdje42@gmail.com>
3273
3274         * symtab.h (struct symbol): Tweak comment.
3275
3276 2015-08-29  Patrick Palka  <patrick@parcs.ath.cx>
3277
3278         * gdbtypes.c (alloc_type_arch): Allocate the type on the given
3279         gdbarch obstack instead of on the heap.  Update commentary
3280         accordingly.
3281
3282 2015-08-28  Joel Brobecker  <brobecker@adacore.com>
3283
3284         GDB 7.10 released.
3285
3286 2015-08-28  Simon Marchi  <simon.marchi@ericsson.com>
3287
3288         * NEWS: Update entry about non-8-bits addressable memory.
3289
3290 2015-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
3291
3292         Revert:
3293         2014-11-06  Doug Evans  <xdje42@gmail.com>
3294         * solib.c (solib_global_lookup): Fetch arch from objfile,
3295         not target_gdbarch.
3296
3297 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3298
3299         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
3300         attempt to relocate a TLS variable offset.
3301
3302 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3303
3304         * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
3305         registered yet.  Set inferior_ptid while calling target_read_memory.
3306
3307 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3308
3309         * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
3310         (GDB_ARCH_IS_TRAP_BRKPT): ... this.  Add __powerpc__ case.
3311         * linux-nat.c (check_stopped_by_breakpoint): Use
3312         GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
3313
3314 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3315
3316         * linux-thread-db.c (thread_db_get_thread_local_address): If the
3317         thread was not yet discovered, use thread_from_lwp instead of
3318         calling thread_db_find_new_threads_1.
3319
3320 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
3321
3322         * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
3323         statements.
3324
3325 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
3326
3327         * NEWS: Document support for non-8-bits addressable memory.
3328
3329 2015-08-27  Pedro Alves  <palves@redhat.com>
3330
3331         * configure.ac: Remove AC_TYPE_SIGNAL call.
3332         * configure, config.in: Regenerate.
3333
3334 2015-08-27  Pedro Alves  <palves@redhat.com>
3335
3336         * cp-support.c (gdb_demangle): Use sighandler_t.  Remove cast.
3337         * extension-priv.h: Include signal.h.
3338         (struct signal_handler) <handler>: Change type to sighandler_t.
3339         * extension.c (install_gdb_sigint_handler): Use sighandler_t.
3340         * inflow.c (sigint_ours, sigquit_ours): Change type to
3341         sighandler_t.
3342         (child_terminal_inferior): Remove casts.
3343         (child_terminal_ours_1, new_tty): Use sighandler_t.  Remove casts.
3344         (osig): Change type to sighandler_t.
3345         * nto-procfs.c (ofunc): Change type to sighandler_t.
3346         (procfs_wait): Remove casts.
3347         * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
3348         * remote-sim.c (gdbsim_wait): Use sighandler_t.
3349         * utils.c (wait_to_die_with_timeout): Use sighandler_t.
3350
3351 2015-08-27  Pedro Alves  <palves@redhat.com>
3352
3353         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
3354         * gnulib/aclocal.m4: Renegerate.
3355         * gnulib/config.in: Renegerate.
3356         * gnulib/configure: Renegerate.
3357         * gnulib/import/Makefile.am: Update.
3358         * gnulib/import/Makefile.in: Regenerate.
3359         * gnulib/import/m4/gnulib-cache.m4: Update.
3360         * gnulib/import/m4/gnulib-comp.m4: Update.
3361         * gnulib/import/m4/signal_h.m4: New file.
3362         * gnulib/import/signal.in.h: New file.
3363
3364 2015-08-27  Pedro Alves  <palves@redhat.com>
3365
3366         * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
3367         (MIN_MEMORY_PACKET_SIZE): New.
3368         (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
3369         (get_memory_packet_size): Adjust.  No longer limit the max packet
3370         size.
3371         (set_memory_packet_size): Adjust, and remove dead code.
3372         (remote_check_symbols): Use xmalloc and a cleanup instead of
3373         alloca.
3374         (remote_packet_size): No longer cap the packet size.
3375         (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
3376
3377 2015-08-26  Luis Machado  <lgustavo@codesourcery.com>
3378
3379         * compile/compile.c (compile_to_object): Mention language in
3380         error message.
3381
3382 2015-08-26  Patrick Palka  <patrick@parcs.ath.cx>
3383
3384         * target.c (target_pre_inferior): Unset attach_flag.
3385
3386 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
3387
3388         * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
3389         * gdbarch.c: Re-generate.
3390
3391 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
3392
3393         * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
3394         function with the XNEW-family equivalent.
3395         * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
3396         * ada-exp.y (write_ambiguous_var): Likewise.
3397         * ada-lang.c (resolve_subexp): Likewise.
3398         (user_select_syms): Likewise.
3399         (assign_aggregate): Likewise.
3400         (ada_evaluate_subexp): Likewise.
3401         (cache_symbol): Likewise.
3402         * addrmap.c (allocate_key): Likewise.
3403         (addrmap_create_mutable): Likewise.
3404         * aix-thread.c (sync_threadlists): Likewise.
3405         * alpha-tdep.c (alpha_push_dummy_call): Likewise.
3406         (alpha_gdbarch_init): Likewise.
3407         * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
3408         * arm-linux-nat.c (arm_linux_add_process): Likewise.
3409         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3410         * arm-tdep.c (push_stack_item): Likewise.
3411         (arm_displaced_step_copy_insn): Likewise.
3412         (arm_gdbarch_init): Likewise.
3413         (_initialize_arm_tdep): Likewise.
3414         * avr-tdep.c (push_stack_item): Likewise.
3415         * ax-general.c (new_agent_expr): Likewise.
3416         * block.c (block_initialize_namespace): Likewise.
3417         * breakpoint.c (alloc_counted_command_line): Likewise.
3418         (update_dprintf_command_list): Likewise.
3419         (parse_breakpoint_sals): Likewise.
3420         (decode_static_tracepoint_spec): Likewise.
3421         (until_break_command): Likewise.
3422         (clear_command): Likewise.
3423         (update_global_location_list): Likewise.
3424         (get_breakpoint_objfile_data) Likewise.
3425         * btrace.c (ftrace_new_function): Likewise.
3426         (btrace_set_insn_history): Likewise.
3427         (btrace_set_call_history): Likewise.
3428         * buildsym.c (add_symbol_to_list): Likewise.
3429         (record_pending_block): Likewise.
3430         (start_subfile): Likewise.
3431         (start_buildsym_compunit): Likewise.
3432         (push_subfile): Likewise.
3433         (end_symtab_get_static_block): Likewise.
3434         (buildsym_init): Likewise.
3435         * cli/cli-cmds.c (source_command): Likewise.
3436         * cli/cli-decode.c (add_cmd): Likewise.
3437         * cli/cli-script.c (build_command_line): Likewise.
3438         (setup_user_args): Likewise.
3439         (realloc_body_list): Likewise.
3440         (process_next_line): Likewise.
3441         (copy_command_lines): Likewise.
3442         * cli/cli-setshow.c (do_set_command): Likewise.
3443         * coff-pe-read.c (read_pe_exported_syms): Likewise.
3444         * coffread.c (coff_locate_sections): Likewise.
3445         (coff_symtab_read): Likewise.
3446         (coff_read_struct_type): Likewise.
3447         * common/cleanups.c (make_my_cleanup2): Likewise.
3448         * common/common-exceptions.c (throw_it): Likewise.
3449         * common/filestuff.c (make_cleanup_close): Likewise.
3450         * common/format.c (parse_format_string): Likewise.
3451         * common/queue.h (DEFINE_QUEUE_P): Likewise.
3452         * compile/compile-object-load.c (munmap_list_add): Likewise.
3453         (compile_object_load): Likewise.
3454         * compile/compile-object-run.c (compile_object_run): Likewise.
3455         * compile/compile.c (append_args): Likewise.
3456         * corefile.c (specify_exec_file_hook): Likewise.
3457         * cp-support.c (make_symbol_overload_list): Likewise.
3458         * cris-tdep.c (push_stack_item): Likewise.
3459         (cris_gdbarch_init): Likewise.
3460         * ctf.c (ctf_trace_file_writer_new): Likewise.
3461         * dbxread.c (init_header_files): Likewise.
3462         (add_new_header_file): Likewise.
3463         (init_bincl_list): Likewise.
3464         (dbx_end_psymtab): Likewise.
3465         (start_psymtab): Likewise.
3466         (dbx_end_psymtab): Likewise.
3467         * dcache.c (dcache_init): Likewise.
3468         * dictionary.c (dict_create_hashed): Likewise.
3469         (dict_create_hashed_expandable): Likewise.
3470         (dict_create_linear): Likewise.
3471         (dict_create_linear_expandable): Likewise.
3472         * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
3473         * dummy-frame.c (register_dummy_frame_dtor): Likewise.
3474         * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
3475         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3476         (decode_frame_entry_1): Likewise.
3477         * dwarf2expr.c (new_dwarf_expr_context): Likewise.
3478         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
3479         * dwarf2read.c (dwarf2_has_info): Likewise.
3480         (create_signatured_type_table_from_index): Likewise.
3481         (dwarf2_read_index): Likewise.
3482         (dw2_get_file_names_reader): Likewise.
3483         (create_all_type_units): Likewise.
3484         (read_cutu_die_from_dwo): Likewise.
3485         (init_tu_and_read_dwo_dies): Likewise.
3486         (init_cutu_and_read_dies): Likewise.
3487         (create_all_comp_units): Likewise.
3488         (queue_comp_unit): Likewise.
3489         (inherit_abstract_dies): Likewise.
3490         (read_call_site_scope): Likewise.
3491         (dwarf2_add_field): Likewise.
3492         (dwarf2_add_typedef): Likewise.
3493         (dwarf2_add_member_fn): Likewise.
3494         (attr_to_dynamic_prop): Likewise.
3495         (abbrev_table_alloc_abbrev): Likewise.
3496         (abbrev_table_read_table): Likewise.
3497         (add_include_dir): Likewise.
3498         (add_file_name): Likewise.
3499         (dwarf_decode_line_header): Likewise.
3500         (dwarf2_const_value_attr): Likewise.
3501         (dwarf_alloc_block): Likewise.
3502         (parse_macro_definition): Likewise.
3503         (set_die_type): Likewise.
3504         (write_psymtabs_to_index): Likewise.
3505         (create_cus_from_index): Likewise.
3506         (dwarf2_create_include_psymtab): Likewise.
3507         (process_psymtab_comp_unit_reader): Likewise.
3508         (build_type_psymtab_dependencies): Likewise.
3509         (read_comp_units_from_section): Likewise.
3510         (compute_compunit_symtab_includes): Likewise.
3511         (create_dwo_unit_in_dwp_v1): Likewise.
3512         (create_dwo_unit_in_dwp_v2): Likewise.
3513         (read_func_scope): Likewise.
3514         (process_structure_scope): Likewise.
3515         (mark_common_block_symbol_computed): Likewise.
3516         (load_partial_dies): Likewise.
3517         (dwarf2_symbol_mark_computed): Likewise.
3518         * elfread.c (elf_symfile_segments): Likewise.
3519         (elf_read_minimal_symbols): Likewise.
3520         * environ.c (make_environ): Likewise.
3521         * eval.c (evaluate_subexp_standard): Likewise.
3522         * event-loop.c (create_file_handler): Likewise.
3523         (create_async_signal_handler): Likewise.
3524         (create_async_event_handler): Likewise.
3525         (create_timer): Likewise.
3526         * exec.c (build_section_table): Likewise.
3527         * fbsd-nat.c (fbsd_remember_child): Likewise.
3528         * fork-child.c (fork_inferior): Likewise.
3529         * frv-tdep.c (new_variant): Likewise.
3530         * gdbarch.sh (gdbarch_alloc): Likewise.
3531         (append_name): Likewise.
3532         * gdbtypes.c (rank_function): Likewise.
3533         (copy_type_recursive): Likewise.
3534         (add_dyn_prop): Likewise.
3535         * gnu-nat.c (make_proc): Likewise.
3536         (make_inf): Likewise.
3537         (gnu_write_inferior): Likewise.
3538         * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3539         (build_std_type_info_type): Likewise.
3540         * guile/scm-param.c (compute_enum_list): Likewise.
3541         * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
3542         * guile/scm-value.c (gdbscm_value_call): Likewise.
3543         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3544         * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3545         (read_unwind_info): Likewise.
3546         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3547         * infcall.c (dummy_frame_context_saver_setup): Likewise.
3548         (call_function_by_hand_dummy): Likewise.
3549         * infcmd.c (step_once): Likewise.
3550         (finish_forward): Likewise.
3551         (attach_command): Likewise.
3552         (notice_new_inferior): Likewise.
3553         * inferior.c (add_inferior_silent): Likewise.
3554         * infrun.c (add_displaced_stepping_state): Likewise.
3555         (save_infcall_control_state): Likewise.
3556         (save_inferior_ptid): Likewise.
3557         (_initialize_infrun): Likewise.
3558         * jit.c (bfd_open_from_target_memory): Likewise.
3559         (jit_gdbarch_data_init): Likewise.
3560         * language.c (add_language): Likewise.
3561         * linespec.c (decode_line_2): Likewise.
3562         * linux-nat.c (add_to_pid_list): Likewise.
3563         (add_initial_lwp): Likewise.
3564         * linux-thread-db.c (add_thread_db_info): Likewise.
3565         (record_thread): Likewise.
3566         (info_auto_load_libthread_db): Likewise.
3567         * m32c-tdep.c (m32c_gdbarch_init): Likewise.
3568         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3569         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3570         * m88k-tdep.c (m88k_analyze_prologue): Likewise.
3571         * macrocmd.c (macro_define_command): Likewise.
3572         * macroexp.c (gather_arguments): Likewise.
3573         * macroscope.c (sal_macro_scope): Likewise.
3574         * macrotab.c (new_macro_table): Likewise.
3575         * mdebugread.c (push_parse_stack): Likewise.
3576         (parse_partial_symbols): Likewise.
3577         (parse_symbol): Likewise.
3578         (psymtab_to_symtab_1): Likewise.
3579         (new_block): Likewise.
3580         (new_psymtab): Likewise.
3581         (mdebug_build_psymtabs): Likewise.
3582         (add_pending): Likewise.
3583         (elfmdebug_build_psymtabs): Likewise.
3584         * mep-tdep.c (mep_gdbarch_init): Likewise.
3585         * mi/mi-main.c (mi_execute_command): Likewise.
3586         * mi/mi-parse.c (mi_parse_argv): Likewise.
3587         * minidebug.c (lzma_open): Likewise.
3588         * minsyms.c (terminate_minimal_symbol_table): Likewise.
3589         * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3590         * mips-tdep.c (mips_gdbarch_init): Likewise.
3591         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3592         * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3593         * mt-tdep.c (mt_registers_info): Likewise.
3594         * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3595         * nat/linux-btrace.c (linux_enable_bts): Likewise.
3596         (linux_enable_pt): Likewise.
3597         * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3598         (linux_xfer_osdata_processgroups): Likewise.
3599         * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3600         * nto-procfs.c (procfs_meminfo): Likewise.
3601         * objc-lang.c (start_msglist): Likewise.
3602         (selectors_info): Likewise.
3603         (classes_info): Likewise.
3604         (find_methods): Likewise.
3605         * objfiles.c (allocate_objfile): Likewise.
3606         (update_section_map): Likewise.
3607         * osabi.c (gdbarch_register_osabi): Likewise.
3608         (gdbarch_register_osabi_sniffer): Likewise.
3609         * parse.c (start_arglist): Likewise.
3610         * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3611         (hwdebug_insert_point): Likewise.
3612         * printcmd.c (display_command): Likewise.
3613         (ui_printf): Likewise.
3614         * procfs.c (create_procinfo): Likewise.
3615         (load_syscalls): Likewise.
3616         (proc_get_LDT_entry): Likewise.
3617         (proc_update_threads): Likewise.
3618         * prologue-value.c (make_pv_area): Likewise.
3619         (pv_area_store): Likewise.
3620         * psymtab.c (extend_psymbol_list): Likewise.
3621         (init_psymbol_list): Likewise.
3622         (allocate_psymtab): Likewise.
3623         * python/py-inferior.c (add_thread_object): Likewise.
3624         * python/py-param.c (compute_enum_values): Likewise.
3625         * python/py-value.c (valpy_call): Likewise.
3626         * python/py-varobj.c (py_varobj_iter_next): Likewise.
3627         * python/python.c (ensure_python_env): Likewise.
3628         * record-btrace.c (record_btrace_start_replaying): Likewise.
3629         * record-full.c (record_full_reg_alloc): Likewise.
3630         (record_full_mem_alloc): Likewise.
3631         (record_full_end_alloc): Likewise.
3632         (record_full_core_xfer_partial): Likewise.
3633         * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3634         * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3635         * remote-notif.c (remote_notif_state_allocate): Likewise.
3636         * remote.c (demand_private_info): Likewise.
3637         (remote_notif_stop_alloc_reply): Likewise.
3638         (remote_enable_btrace): Likewise.
3639         * reverse.c (save_bookmark_command): Likewise.
3640         * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3641         * rx-tdep.c (rx_gdbarch_init): Likewise.
3642         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3643         * ser-go32.c (dos_get_tty_state): Likewise.
3644         (dos_copy_tty_state): Likewise.
3645         * ser-mingw.c (ser_windows_open): Likewise.
3646         (ser_console_wait_handle): Likewise.
3647         (ser_console_get_tty_state): Likewise.
3648         (make_pipe_state): Likewise.
3649         (net_windows_open): Likewise.
3650         * ser-unix.c (hardwire_get_tty_state): Likewise.
3651         (hardwire_copy_tty_state): Likewise.
3652         * solib-aix.c (solib_aix_new_lm_info): Likewise.
3653         * solib-dsbt.c (dsbt_current_sos): Likewise.
3654         (dsbt_relocate_main_executable): Likewise.
3655         * solib-frv.c (frv_current_sos): Likewise.
3656         (frv_relocate_main_executable): Likewise.
3657         * solib-spu.c (spu_bfd_fopen): Likewise.
3658         * solib-svr4.c (lm_info_read): Likewise.
3659         (svr4_copy_library_list): Likewise.
3660         (svr4_default_sos): Likewise.
3661         * source.c (find_source_lines): Likewise.
3662         (line_info): Likewise.
3663         (add_substitute_path_rule): Likewise.
3664         * spu-linux-nat.c (spu_bfd_open): Likewise.
3665         * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3666         * stabsread.c (dbx_lookup_type): Likewise.
3667         (read_type): Likewise.
3668         (read_member_functions): Likewise.
3669         (read_struct_fields): Likewise.
3670         (read_baseclasses): Likewise.
3671         (read_args): Likewise.
3672         (_initialize_stabsread): Likewise.
3673         * stack.c (func_command): Likewise.
3674         * stap-probe.c (handle_stap_probe): Likewise.
3675         * symfile.c (addrs_section_sort): Likewise.
3676         (addr_info_make_relative): Likewise.
3677         (load_section_callback): Likewise.
3678         (add_symbol_file_command): Likewise.
3679         (init_filename_language_table): Likewise.
3680         * symtab.c (create_filename_seen_cache): Likewise.
3681         (sort_search_symbols_remove_dups): Likewise.
3682         (search_symbols): Likewise.
3683         * target.c (make_cleanup_restore_target_terminal): Likewise.
3684         * thread.c (new_thread): Likewise.
3685         (enable_thread_stack_temporaries): Likewise.
3686         (make_cleanup_restore_current_thread): Likewise.
3687         (thread_apply_all_command): Likewise.
3688         * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3689         * top.c (gdb_readline_wrapper): Likewise.
3690         * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3691         * tracepoint.c (trace_find_line_command): Likewise.
3692         (all_tracepoint_actions_and_cleanup): Likewise.
3693         (make_cleanup_restore_current_traceframe): Likewise.
3694         (get_uploaded_tp): Likewise.
3695         (get_uploaded_tsv): Likewise.
3696         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3697         (tui_alloc_win_info): Likewise.
3698         (tui_alloc_content): Likewise.
3699         (tui_add_content_elements): Likewise.
3700         * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3701         (tui_set_disassem_content): Likewise.
3702         * ui-file.c (ui_file_new): Likewise.
3703         (stdio_file_new): Likewise.
3704         (tee_file_new): Likewise.
3705         * utils.c (make_cleanup_restore_integer): Likewise.
3706         (add_internal_problem_command): Likewise.
3707         * v850-tdep.c (v850_gdbarch_init): Likewise.
3708         * valops.c (find_oload_champ): Likewise.
3709         * value.c (allocate_value_lazy): Likewise.
3710         (record_latest_value): Likewise.
3711         (create_internalvar): Likewise.
3712         * varobj.c (install_variable): Likewise.
3713         (new_variable): Likewise.
3714         (new_root_variable): Likewise.
3715         (cppush): Likewise.
3716         (_initialize_varobj): Likewise.
3717         * windows-nat.c (windows_make_so): Likewise.
3718         * x86-nat.c (x86_add_process): Likewise.
3719         * xcoffread.c (arrange_linetable): Likewise.
3720         (allocate_include_entry): Likewise.
3721         (process_linenos): Likewise.
3722         (SYMBOL_DUP): Likewise.
3723         (xcoff_start_psymtab): Likewise.
3724         (xcoff_end_psymtab): Likewise.
3725         * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3726         * xtensa-tdep.c (xtensa_register_type): Likewise.
3727         * gdbarch.c: Regenerate.
3728         * gdbarch.h: Regenerate.
3729
3730 2015-08-25  Don Breazeal  <donb@codesourcery.com>
3731
3732         * infrun.c (follow_exec): Re-order operations for
3733         handling follow-exec-mode "new".
3734         (handle_inferior_event_1): Assign ecs->event_thread
3735         to the current thread.
3736         * remote.c (get_remote_arch_state): Add an assertion.
3737
3738 2015-08-26  Pedro Alves  <palves@redhat.com>
3739
3740         * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3741
3742 2015-08-25  Pedro Alves  <palves@redhat.com>
3743
3744         PR gdb/18804
3745         * defs.h (maybe_quit): Declare.
3746         (QUIT): Now calls maybe_quit.
3747         * event-loop.c (clear_async_signal_handler)
3748         (async_signal_handler_is_marked): New functions.
3749         * event-loop.h (async_signal_handler_is_marked)
3750         (clear_async_signal_handler): New declarations.
3751         * remote.c (remote_check_pending_interrupt): New function.
3752         (interrupt_query): Use make_cleanup_restore_target_terminal.  No
3753         longer check whether the target is async.  If waiting for a stop
3754         reply, and a Ctrl-C as been sent to the target, offer to
3755         disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3756         Otherwise do not disconnect and throw a quit.
3757         (_initialize_remote): Install remote_check_pending_interrupt as
3758         to_check_pending_interrupt.
3759         * target.c (target_check_pending_interrupt): New function.
3760         * target.h (struct target_ops) <to_check_pending_interrupt>: New
3761         field.
3762         (target_check_pending_interrupt): New declaration.
3763         * utils.c (maybe_quit): New function.
3764         * target-delegates.c: Regenerate.
3765
3766 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3767
3768         * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3769         Rename local variable pid to tid, and get lwpid of lwp.  Update
3770         debug output.
3771
3772 2015-08-25  Pierre-Marie de Rodat  <derodat@adacore.com>
3773
3774         * ada-lang.c (ada_read_var_value): Add a var_block argument
3775         and pass it to default_read_var_value.
3776         * block.c (block_static_link): New accessor.
3777         * block.h (block_static_link): Declare it.
3778         * buildsym.c (finish_block_internal): Add a static_link
3779         argument.  If there is a static link, associate it to the new
3780         block.
3781         (finish_block): Add a static link argument and pass it to
3782         finish_block_internal.
3783         (end_symtab_get_static_block): Update calls to finish_block and
3784         to finish_block_internal.
3785         (end_symtab_with_blockvector): Update call to
3786         finish_block_internal.
3787         * buildsym.h: Forward-declare struct dynamic_prop.
3788         (struct context_stack): Add a static_link field.
3789         (finish_block): Add a static link argument.
3790         * c-exp.y: Remove an obsolete comment (evaluation of variables
3791         already start from the selected frame, and now they climb *up*
3792         the call stack) and propagate the block information to the
3793         produced expression.
3794         * d-exp.y: Likewise.
3795         * f-exp.y: Likewise.
3796         * go-exp.y: Likewise.
3797         * jv-exp.y: Likewise.
3798         * m2-exp.y: Likewise.
3799         * p-exp.y: Likewise.
3800         * coffread.c (coff_symtab_read): Update calls to finish_block.
3801         * dbxread.c (process_one_symbol): Likewise.
3802         * xcoffread.c (read_xcoff_symtab): Likewise.
3803         * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3804         "sym" parameter to struct block_symbol, update its uses and pass
3805         its block to calls to read_var_value.
3806         (convert_symbol_sym): Update the calls to convert_one_symbol.
3807         * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3808         call to read_var_value.
3809         * dwarf2loc.c (block_op_get_frame_base): New.
3810         (dwarf2_block_frame_base_locexpr_funcs): Implement the
3811         get_frame_base method.
3812         (dwarf2_block_frame_base_loclist_funcs): Likewise.
3813         (dwarf2locexpr_baton_eval): Add a frame argument and use it
3814         instead of the selected frame in order to evaluate the
3815         expression.
3816         (dwarf2_evaluate_property): Add a frame argument.  Update call
3817         to dwarf2_locexpr_baton_eval to provide a frame in available and
3818         to handle the absence of address stack.
3819         * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3820         * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3821         declaration.
3822         (read_func_scope): Record any available static link description.
3823         Update call to finish_block.
3824         (read_lexical_block_scope): Update call to finish_block.
3825         * findvar.c (follow_static_link): New.
3826         (get_hosting_frame): New.
3827         (default_read_var_value): Add a var_block argument.  Use
3828         get_hosting_frame to handle non-local references.
3829         (read_var_value): Add a var_block argument and pass it to the
3830         LA_READ_VAR_VALUE method.
3831         * gdbtypes.c (resolve_dynamic_range): Update calls to
3832         dwarf2_evaluate_property.
3833         (resolve_dynamic_type_internal): Likewise.
3834         * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3835         read_var_value, passing it the block coming from symbol lookup.
3836         * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3837         read_var_value (TODO).
3838         * infcmd.c (finish_command_continuation): Update call to
3839         read_var_value, passing it the block coming from symbol lookup.
3840         * infrun.c (insert_exception_resume_breakpoint): Likewise.
3841         * language.h (struct language_defn): Add a var_block argument to
3842         the LA_READ_VAR_VALUE method.
3843         * objfiles.c (struct static_link_htab_entry): New.
3844         (static_link_htab_entry_hash): New.
3845         (static_link_htab_entry_eq): New.
3846         (objfile_register_static_link): New.
3847         (objfile_lookup_static_link): New.
3848         (free_objfile): Free the STATIC_LINKS hashed map if needed.
3849         * objfiles.h: Include hashtab.h.
3850         (struct objfile): Add a static_links field.
3851         (objfile_register_static_link): New.
3852         (objfile_lookup_static_link): New.
3853         * printcmd.c (print_variable_and_value): Update call to
3854         read_var_value.
3855         * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3856         * python/py-frame.c (frapy_read_var): Update call to
3857         read_var_value, passing it the block coming from symbol lookup.
3858         * python/py-framefilter.c (extract_sym): Add a sym_block
3859         parameter and set the pointed value to NULL (TODO).
3860         (enumerate_args): Update call to extract_sym.
3861         (enumerate_locals): Update calls to extract_sym and to
3862         read_var_value.
3863         * python/py-symbol.c (sympy_value): Update call to
3864         read_var_value (TODO).
3865         * stack.c (read_frame_local): Update call to read_var_value.
3866         (read_frame_arg): Likewise.
3867         (return_command): Likewise.
3868         * symtab.h (struct symbol_block_ops): Add a get_frame_base
3869         method.
3870         (struct symbol): Add a block field.
3871         (SYMBOL_BLOCK): New accessor.
3872         * valops.c (value_of_variable): Remove frame/block handling and
3873         pass the block argument to read_var_value, which does this job
3874         now.
3875         (value_struct_elt_for_reference): Update calls to
3876         read_var_value.
3877         (value_of_this): Pass the block found to read_var_value.
3878         * value.h (read_var_value): Add a var_block argument.
3879         (default_read_var_value): Likewise.
3880
3881 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3882
3883         * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3884         * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3885         * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3886
3887 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3888
3889         * Makefile.in (aarch64-liunx.o): New rule.
3890         (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3891         * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3892         * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3893         * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3894         extern.
3895         (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3896         * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3897         * nat/aarch64-linux.c: New file.
3898         * nat/aarch64-linux.h: New file.
3899
3900 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3901
3902         * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3903         lwp_arch_private_info and ptid_of_lwp.
3904
3905 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3906
3907         * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3908         Move it to nat/aarch64-linux-hw-point.c.
3909         (debug_reg_change_callback): Likewise.
3910         (aarch64_notify_debug_reg_change): :Likewise.
3911         * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3912         (aarch64_dr_update_callback_param): New.
3913         (debug_reg_change_callback): New function.
3914         (aarch64_notify_debug_reg_change): Likewise.
3915         * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3916         Remove the declaration.
3917
3918 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3919
3920         * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3921         Call current_lwp_ptid.
3922
3923 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3924
3925         * aarch64-linux-nat.c (debug_reg_change_callback): Use
3926         debug_printf.
3927
3928 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3929
3930         * aarch64-linux-nat.c (debug_reg_change_callback): Call
3931         ptid_get_pid rather than ptid_get_lwp.
3932
3933 2015-08-24  Pedro Alves  <palves@redhat.com>
3934
3935         * NEWS (New commands): Mention set/show remote
3936         multiprocess-extensions-packet.
3937         * remote.c (remote_query_supported): Only tell the server to use
3938         the multiprocess extensions if the user hasn't force-disabled them
3939         with "set remote multiprocess-extensions-packet off".
3940
3941 2015-08-24  Pedro Alves  <palves@redhat.com>
3942
3943         * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3944         1029a8112290f6eee9d7878a391c49db42c999bd.
3945         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3946         Regenerate.
3947         * gnulib/import/Makefile.am: Update.
3948         * gnulib/import/Makefile.in: Update.
3949         * gnulib/import/alloca.in.h: Update.
3950         * gnulib/import/basename-lgpl.c: Update.
3951         * gnulib/import/canonicalize-lgpl.c: Update.
3952         * gnulib/import/config.charset: Update.
3953         * gnulib/import/dirent.in.h: Update.
3954         * gnulib/import/dirfd.c: Update.
3955         * gnulib/import/dirname-lgpl.c: Update.
3956         * gnulib/import/dirname.h: Update.
3957         * gnulib/import/dosname.h: Update.
3958         * gnulib/import/errno.in.h: Update.
3959         * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3960         * gnulib/import/extra/snippet/c++defs.h: Update.
3961         * gnulib/import/extra/snippet/warn-on-use.h: Update.
3962         * gnulib/import/extra/update-copyright: Update.
3963         * gnulib/import/float+.h: Update.
3964         * gnulib/import/float.c: Update.
3965         * gnulib/import/float.in.h: Update.
3966         * gnulib/import/fnmatch.c: Update.
3967         * gnulib/import/fnmatch.in.h: Update.
3968         * gnulib/import/fnmatch_loop.c: Update.
3969         * gnulib/import/fpucw.h: Update.
3970         * gnulib/import/frexp.c: Update.
3971         * gnulib/import/frexpl.c: Update.
3972         * gnulib/import/gettimeofday.c: Update.
3973         * gnulib/import/inttypes.in.h: Update.
3974         * gnulib/import/isnan.c: Update.
3975         * gnulib/import/isnand-nolibm.h: Update.
3976         * gnulib/import/isnand.c: Update.
3977         * gnulib/import/isnanl-nolibm.h: Update.
3978         * gnulib/import/isnanl.c: Update.
3979         * gnulib/import/itold.c: Update.
3980         * gnulib/import/localcharset.c: Update.
3981         * gnulib/import/localcharset.h: Update.
3982         * gnulib/import/lstat.c: Update.
3983         * gnulib/import/m4/00gnulib.m4: Update.
3984         * gnulib/import/m4/absolute-header.m4: Update.
3985         * gnulib/import/m4/alloca.m4: Update.
3986         * gnulib/import/m4/canonicalize.m4: Update.
3987         * gnulib/import/m4/codeset.m4: Update.
3988         * gnulib/import/m4/configmake.m4: Update.
3989         * gnulib/import/m4/dirent_h.m4: Update.
3990         * gnulib/import/m4/dirfd.m4: Update.
3991         * gnulib/import/m4/dirname.m4: Update.
3992         * gnulib/import/m4/double-slash-root.m4: Update.
3993         * gnulib/import/m4/eealloc.m4: Update.
3994         * gnulib/import/m4/errno_h.m4: Update.
3995         * gnulib/import/m4/exponentd.m4: Update.
3996         * gnulib/import/m4/exponentl.m4: Update.
3997         * gnulib/import/m4/extensions.m4: Update.
3998         * gnulib/import/m4/extern-inline.m4: Update.
3999         * gnulib/import/m4/fcntl-o.m4: Update.
4000         * gnulib/import/m4/float_h.m4: Update.
4001         * gnulib/import/m4/fnmatch.m4: Update.
4002         * gnulib/import/m4/fpieee.m4: Update.
4003         * gnulib/import/m4/frexp.m4: Update.
4004         * gnulib/import/m4/frexpl.m4: Update.
4005         * gnulib/import/m4/gettimeofday.m4: Update.
4006         * gnulib/import/m4/glibc21.m4: Update.
4007         * gnulib/import/m4/gnulib-cache.m4: Update.
4008         * gnulib/import/m4/gnulib-common.m4: Update.
4009         * gnulib/import/m4/gnulib-comp.m4: Update.
4010         * gnulib/import/m4/gnulib-tool.m4: Update.
4011         * gnulib/import/m4/include_next.m4: Update.
4012         * gnulib/import/m4/inttypes-pri.m4: Update.
4013         * gnulib/import/m4/inttypes.m4: Update.
4014         * gnulib/import/m4/isnand.m4: Update.
4015         * gnulib/import/m4/isnanl.m4: Update.
4016         * gnulib/import/m4/largefile.m4: Update.
4017         * gnulib/import/m4/localcharset.m4: Update.
4018         * gnulib/import/m4/locale-fr.m4: Update.
4019         * gnulib/import/m4/locale-ja.m4: Update.
4020         * gnulib/import/m4/locale-zh.m4: Update.
4021         * gnulib/import/m4/longlong.m4: Update.
4022         * gnulib/import/m4/lstat.m4: Update.
4023         * gnulib/import/m4/malloc.m4: Update.
4024         * gnulib/import/m4/malloca.m4: Update.
4025         * gnulib/import/m4/math_h.m4: Update.
4026         * gnulib/import/m4/mbrtowc.m4: Update.
4027         * gnulib/import/m4/mbsinit.m4: Update.
4028         * gnulib/import/m4/mbsrtowcs.m4: Update.
4029         * gnulib/import/m4/mbstate_t.m4: Update.
4030         * gnulib/import/m4/memchr.m4: Update.
4031         * gnulib/import/m4/memmem.m4: Update.
4032         * gnulib/import/m4/mmap-anon.m4: Update.
4033         * gnulib/import/m4/multiarch.m4: Update.
4034         * gnulib/import/m4/nocrash.m4: Update.
4035         * gnulib/import/m4/off_t.m4: Update.
4036         * gnulib/import/m4/pathmax.m4: Update.
4037         * gnulib/import/m4/readlink.m4: Update.
4038         * gnulib/import/m4/rename.m4: Update.
4039         * gnulib/import/m4/rmdir.m4: Update.
4040         * gnulib/import/m4/ssize_t.m4: Update.
4041         * gnulib/import/m4/stat.m4: Update.
4042         * gnulib/import/m4/stdbool.m4: Update.
4043         * gnulib/import/m4/stddef_h.m4: Update.
4044         * gnulib/import/m4/stdint.m4: Update.
4045         * gnulib/import/m4/stdio_h.m4: Update.
4046         * gnulib/import/m4/stdlib_h.m4: Update.
4047         * gnulib/import/m4/string_h.m4: Update.
4048         * gnulib/import/m4/strstr.m4: Update.
4049         * gnulib/import/m4/strtok_r.m4: Update.
4050         * gnulib/import/m4/sys_socket_h.m4: Update.
4051         * gnulib/import/m4/sys_stat_h.m4: Update.
4052         * gnulib/import/m4/sys_time_h.m4: Update.
4053         * gnulib/import/m4/sys_types_h.m4: Update.
4054         * gnulib/import/m4/time_h.m4: Update.
4055         * gnulib/import/m4/unistd_h.m4: Update.
4056         * gnulib/import/m4/warn-on-use.m4: Update.
4057         * gnulib/import/m4/wchar_h.m4: Update.
4058         * gnulib/import/m4/wchar_t.m4: Update.
4059         * gnulib/import/m4/wctype_h.m4: Update.
4060         * gnulib/import/m4/wint_t.m4: Update.
4061         * gnulib/import/malloc.c: Update.
4062         * gnulib/import/malloca.c: Update.
4063         * gnulib/import/malloca.h: Update.
4064         * gnulib/import/math.in.h: Update.
4065         * gnulib/import/mbrtowc.c: Update.
4066         * gnulib/import/mbsinit.c: Update.
4067         * gnulib/import/mbsrtowcs-impl.h: Update.
4068         * gnulib/import/mbsrtowcs-state.c: Update.
4069         * gnulib/import/mbsrtowcs.c: Update.
4070         * gnulib/import/memchr.c: Update.
4071         * gnulib/import/memmem.c: Update.
4072         * gnulib/import/pathmax.h: Update.
4073         * gnulib/import/readlink.c: Update.
4074         * gnulib/import/ref-add.sin: Update.
4075         * gnulib/import/ref-del.sin: Update.
4076         * gnulib/import/rename.c: Update.
4077         * gnulib/import/rmdir.c: Update.
4078         * gnulib/import/same-inode.h: Update.
4079         * gnulib/import/stat.c: Update.
4080         * gnulib/import/stdbool.in.h: Update.
4081         * gnulib/import/stddef.in.h: Update.
4082         * gnulib/import/stdint.in.h: Update.
4083         * gnulib/import/stdio.c: Update.
4084         * gnulib/import/stdio.in.h: Update.
4085         * gnulib/import/stdlib.in.h: Update.
4086         * gnulib/import/str-two-way.h: Update.
4087         * gnulib/import/streq.h: Update.
4088         * gnulib/import/string.in.h: Update.
4089         * gnulib/import/stripslash.c: Update.
4090         * gnulib/import/strnlen1.c: Update.
4091         * gnulib/import/strnlen1.h: Update.
4092         * gnulib/import/strstr.c: Update.
4093         * gnulib/import/strtok_r.c: Update.
4094         * gnulib/import/sys_stat.in.h: Update.
4095         * gnulib/import/sys_time.in.h: Update.
4096         * gnulib/import/sys_types.in.h: Update.
4097         * gnulib/import/time.in.h: Update.
4098         * gnulib/import/unistd.in.h: Update.
4099         * gnulib/import/verify.h: Update.
4100         * gnulib/import/wchar.in.h: Update.
4101         * gnulib/import/wctype.in.h: Update.
4102         * gnulib/import/gettimeofday.c: New file.
4103         * gnulib/import/m4/absolute-header.m4: New file.
4104         * gnulib/import/m4/gettimeofday.m4: New file.
4105         * gnulib/import/m4/sys_socket_h.m4: New file.
4106         * gnulib/import/m4/sys_time_h.m4: New file.
4107         * gnulib/import/stdio.c: Delete file.
4108         * gnulib/import/sys_time.in.h: New file.
4109
4110 2015-08-24  Pedro Alves  <palves@redhat.com>
4111
4112         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
4113         * common/gdb_sys_time.h: New file.
4114         * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
4115         * gdb_select.h: Likewise.
4116         * gdb_usleep.c: Likewise.
4117         * maint.c: Likewise.
4118         * mi/mi-main.c: Likewise.
4119         * mi/mi-parse.h: Likewise.
4120         * remote-fileio.c: Likewise.
4121         * remote-m32r-sdi.c: Likewise.
4122         * remote.c: Likewise.
4123         * ser-base.c: Likewise.
4124         * ser-pipe.c: Likewise.
4125         * ser-tcp.c: Likewise.
4126         * ser-unix.c: Likewise.
4127         * symfile.c: Likewise.
4128         * symfile.c: Likewise.  Rename OSIZE to SIZE throughout.
4129         * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
4130         * utils.c: Likewise.
4131
4132 2015-08-24  Pedro Alves  <palves@redhat.com>
4133
4134         * NEWS: Mention removed support for the various ROM monitors.
4135         * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
4136         ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
4137         * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
4138         gdb_target_obs.
4139         (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
4140         gdb_target_obs.
4141         (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
4142         dsrec.o from gdb_target_obs.
4143         (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
4144         from gdb_target_obs.
4145         (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
4146         gdb_target_obs.
4147         (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
4148         dink32-rom.o from gdb_target_obs.
4149         (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
4150         (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
4151         * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
4152         monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
4153
4154 2015-08-21  Pedro Alves  <palves@redhat.com>
4155
4156         * frame.c (null_frame_id): Explicitly zero-initialize.
4157
4158 2015-08-21  Tom Tromey  <tromey@redhat.com>
4159
4160         * dwarf2read.c (struct dwarf2_section_info): Rename field
4161         'asection' to 'section'.
4162         (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
4163         (dwarf2_locate_sections, dwarf2_locate_sections)
4164         (locate_dwz_sections, locate_v1_virtual_dwo_sections)
4165         (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
4166         (dwarf2_locate_v2_dwp_sections): Adjust.
4167
4168 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
4169
4170         * top.h (gdb_in_secondary_prompt_p): Declare.
4171         * top.c (gdb_secondary_prompt_depth): Define.
4172         (gdb_in_secondary_prompt_p): Define.
4173         (gdb_readline_wrapper_cleanup): Decrement
4174         gdb_secondary_prompt_depth.
4175         (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
4176         * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
4177         are in a secondary prompt.
4178
4179 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
4180
4181         * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
4182         emit the newline.
4183
4184 2015-08-21  Gary Benson  <gbenson@redhat.com>
4185
4186         * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
4187
4188 2015-08-21  Gary Benson  <gbenson@redhat.com>
4189
4190         * target.h (struct target_ops) <to_fileio_open>: New argument
4191         warn_if_slow.  Update comment.  All implementations updated.
4192         (target_fileio_open_warn_if_slow): New declaration.
4193         * target.c (target_fileio_open): Renamed as...
4194         (target_fileio_open_1): ...this.  New argument warn_if_slow.
4195         Pass warn_if_slow to implementation.  Update debug printing.
4196         (target_fileio_open): New function.
4197         (target_fileio_open_warn_if_slow): Likewise.
4198         * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
4199         target_fileio_open_warn_if_slow.
4200
4201 2015-08-21  Gary Benson  <gbenson@redhat.com>
4202
4203         * nat/linux-namespaces.c (linux_mntns_access_fs):
4204         Do not overwrite old_chain.
4205
4206 2015-08-20  Max Filippov  <jcmvbkbc@gmail.com>
4207
4208         * arch/xtensa.h: New file.
4209         * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
4210         (ps_get_thread_area): New function.
4211         * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
4212         set_gdbarch_fetch_tls_load_module_address to enable TLS support.
4213         * xtensa-tdep.c (osabi.h): New #include.
4214         (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
4215         xtensa-specific hooks.
4216         * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
4217         member and move the structure to arch/xtensa.h.
4218
4219 2015-08-21  Pedro Alves  <palves@redhat.com>
4220
4221         * remote.c (struct readahead_cache): New.
4222         (struct remote_state) <readahead_cache>: New field.
4223         (remote_open_1): Invalidate the cache.
4224         (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
4225         functions.
4226         (remote_hostio_pwrite): Invalidate the readahead cache.
4227         (remote_hostio_pread): Rename to ...
4228         (remote_hostio_pread_vFile): ... this.
4229         (remote_hostio_pread_from_cache): New function.
4230         (remote_hostio_pread): Reimplement.
4231         (remote_hostio_close): Invalidate the readahead cache.
4232
4233 2015-08-21  Marcin CieÅ›lak <saper@saper.info>  (tiny patch)
4234
4235         PR build/18843
4236         * procfs.c: Include "filestuff.h".
4237
4238 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
4239
4240         * tui/tui-data.h (tui_command_info): Remove fields cur_line and
4241         curch.
4242         * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
4243         cur_line or curch, instead call wmove().
4244         (init_win_info) [CMD_WIN]: Likewise.
4245         * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
4246         instead call getcury().
4247         (tui_redisplay_readline): Don't set cur_line or curch.
4248         (tui_mld_erase_entire_line): Don't read cur_line, instead call
4249         getcury().
4250         (tui_cont_sig): Remove call to wmove.
4251         (tui_getc): Don't read cur_line or curch, instead call getcury()
4252         or getyx().  Don't set curch.
4253         * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
4254         set cur_line or curch.  Always move cursor to (0,0).
4255
4256 2015-08-20  Pedro Alves  <palves@redhat.com>
4257
4258         * infrun.c (print_target_wait_results): Make extern.
4259         * infrun.h (print_target_wait_results): Declare.
4260         * remote.c (set_stop_requested_callback): Delete.
4261         (process_initial_stop_replies): New function.
4262         (remote_start_remote): Use it.
4263         (stop_reply_queue_length): New function.
4264
4265 2015-08-20  Pedro Alves  <palves@redhat.com>
4266
4267         * dwarf2read.c (process_full_comp_unit): To tell whether
4268         start_subfile managed to deduce a language, test for
4269         language_unknown instead of language_c.
4270
4271 2015-08-20  Pierre-Marie de Rodat  <derodat@adacore.com>
4272
4273         * ada-lex.l: Reset the start condition to INITIAL in the rule that
4274         matches attributes.
4275
4276 2015-08-19  Kevin Buettner  <kevinb@redhat.com>
4277
4278         * dwarf2read.c (dwarf2_string_attr): New function.
4279         (lookup_dwo_unit, process_psymtab_comp_unit_reader)
4280         (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
4281         (read_call_site_scope, namespace_name, guess_full_die_structure_name)
4282         (anonymous_struct_prefix, prepare_one_comp_unit): Use
4283         dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
4284
4285 2015-08-18  Doug Evans  <dje@google.com>
4286             Adrian Sendroiu <adrian.sendroiu@freescale.com>
4287
4288         PR mi/18833
4289         * cli/cli-logging.c (pop_output_files): Don't restore redirection
4290         if MI-like.
4291         * mi/mi-out.c: #include "vec.h".
4292         (ui_filep): New type.
4293         (DEV_VEC_P (ui_filep)): New type.
4294         (struct ui_out_data) <buffer, original_buffer>: Delete.
4295         (struct ui_out_data) <streams>: New member.
4296         (mi_ui_out_impl): Add data_destroy field.
4297         (mi_field_string, mi_field_fmt): Update.
4298         (mi_flush, mi_redirect, field_separator): Update.
4299         (mi_open, mi_close): Update.
4300         (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
4301         (mi_out_data_ctor, mi_out_data_dtor): New functions.
4302         (mi_out_new): Call mi_out_data_ctor.
4303
4304 2015-08-18  Sandra Loosemore  <sandra@codesourcery.com>
4305
4306         * remote.c (strprefix): New.
4307         (remote_parse_stop_reply): Use strprefix instead of strncmp
4308         to ensure exact match of keyword.
4309
4310 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
4311
4312         * gdb_bfd.c (debug_bfd_cache): New variable.
4313         (show_bfd_cache_debug): New function.
4314         (gdb_bfd_open): Add debug logging.
4315         (gdb_bfd_ref): Likewise.
4316         (gdb_bfd_unref): Likewise.
4317         (_initialize_gdb_bfd): Add new set/show command.
4318         * NEWS: Mention new command.
4319
4320 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
4321
4322         * gdb_bfd.c (bfd_sharing): New variable.
4323         (show_bfd_sharing): New function.
4324         (gdb_bfd_open): Check bfd_sharing variable.
4325         (_initialize_gdb_bfd): Add new set/show command.
4326         * NEWS: Mention new command.
4327
4328 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
4329
4330         * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
4331         field.
4332         (struct gdb_bfd_cache_search): Likewise.
4333         (eq_bfd): Compare the size, inode, and device id fields.
4334         (gdb_bfd_open): Initialise the size, inode, and device id fields.
4335         (gdb_bfd_ref): Likewise.
4336         (gdb_bfd_unref): Likewise.
4337
4338 2015-08-18  Pedro Alves  <palves@redhat.com>
4339
4340         * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
4341         target implements to_always_non_stop_p, call it.
4342         * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
4343         (x86_linux_create_target): Install it as to_always_non_stop_p
4344         method.
4345
4346 2015-08-17  Doug Evans  <dje@google.com>
4347
4348         * ui-out.c (default_ui_out_impl): Add comment.
4349
4350 2015-08-17  Iain Buclaw  <ibuclaw@gdcproject.org>
4351
4352         * d-exp.y (type_aggregate_p): New function.
4353         (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
4354         (classify_inner_name): Likewise.
4355         * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
4356
4357 2015-08-15  Doug Evans  <xdje42@gmail.com>
4358
4359         * psymtab.c (add_psymbol_to_bcache): Remove "val" arg.  All callers
4360         updated.
4361         (add_psymbol_to_list): Ditto.
4362
4363 2015-08-15  Doug Evans  <xdje42@gmail.com>
4364
4365         * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab.  All callers
4366         updated.  Call end_psymtab_common.
4367         * dwarf2read.c (process_psymtab_comp_unit_reader): Call
4368         end_psymtab_common.
4369         (build_type_psymtabs_reader): Ditto.
4370         * psympriv.h (sort_pst_symbols): Delete.
4371         (end_psymtab_common): Declare.
4372         * psymtab.c (sort_pst_symbols): Make static.
4373         (end_psymtab_common): New function.
4374         * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
4375
4376 2015-08-15  Doug Evans  <xdje42@gmail.com>
4377
4378         * defs.h (LANGUAGE_BITS): Define.
4379         * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
4380         (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
4381         * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
4382         (minimal_symbol_type): Add nr_minsym_types.
4383         (MINSYM_TYPE_BITS): Define.
4384         (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
4385         (domain_enum_tag): Add NR_DOMAINS.
4386         (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
4387         (SYMBOL_ACLASS_BITS): Define from 6 to 5.
4388
4389 2015-08-15  Doug Evans  <xdje42@gmail.com>
4390
4391         * objfiles.h: Whitespace cleanup.
4392         * psympriv.h: Whitespace cleanup.
4393         * psymtab.c: Whitespace/coding convention cleanup.
4394
4395 2015-08-15  Patrick Palka  <patrick@parcs.ath.cx>
4396
4397         * inferior.c (detach_inferior_command): Don't call
4398         any_thread_of_process when pid is 0.
4399         (kill_inferior_command): Likewise.
4400
4401 2015-08-14  Doug Evans  <xdje42@gmail.com>
4402
4403         PR gdb/11833
4404         * NEWS: Document new /s modifier for the disassemble command.
4405         * cli/cli-cmds.c (disassemble_command): Add support for /s.
4406         (_initialize_cli_cmds): Update online docs of disassemble command.
4407         * disasm.c: #include "source.h".
4408         (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
4409         All uses updated.
4410         (dis_line_entry): New struct.
4411         (hash_dis_line_entry, eq_dis_line_entry): New functions.
4412         (allocate_dis_line_table): New functions.
4413         (maybe_add_dis_line_entry, line_has_code_p): New functions.
4414         (dump_insns): New arg end_pc.  All callers updated.
4415         (do_mixed_source_and_assembly_deprecated): Renamed from
4416         do_mixed_source_and_assembly.  All callers updated.
4417         (do_mixed_source_and_assembly): New function.
4418         (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
4419         * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
4420         DISASSEMBLY_SOURCE.  All uses updated.
4421         (DISASSEMBLY_SOURCE): New macro.
4422         * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
4423
4424 2015-08-14  Keith Seitz  <keiths@redhat.com>
4425
4426         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
4427         `typename' to `type_name' to avoid C++ reserved word.
4428
4429 2015-08-14  Keith Seitz  <keiths@redhat.com>
4430
4431         * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
4432         (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
4433         silence ARI errors.
4434
4435 2015-08-14  Iain Buclaw  <ibuclaw@gdcproject.org>
4436
4437         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
4438         xstrprintf instead of malloc and sprintf.
4439         (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
4440         (lex_one_token): Likewise.
4441
4442 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
4443
4444         * solib-svr4.c (read_program_header): Add base_addr argument to
4445         report the runtime address of the segment.
4446         (find_program_interpreter): Update read_program_header call to pass
4447         a NULL pointer for the new argument.
4448         (scan_dyntag): Add ptr_addr argument to report the runtime address
4449         of the tag payload.
4450         (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
4451         read_program_header to get the base address of the dynamic segment.
4452         (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
4453         read_program_header.
4454         (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
4455
4456 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
4457
4458         * MAINTAINERS (Write After Approval): Add Matthew Fortune.
4459
4460 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
4461
4462         * d-exp.y (%union): Add voidval.
4463         (%token): Add UNKNOWN_NAME as a token to represent an unclassified
4464         name in the lexing stage.
4465         (PostfixExpression): Move symbol completion handling in grammar here
4466         from PrimaryExpression.
4467         (PrimaryExpression): Move routines to handle resolving identifier
4468         tokens in the grammar here from push_expression_name.
4469         (IdentifierExp): Remove the handling of alternating '.' and identifier
4470         tokens.
4471         (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
4472         (BasicType): Remove C-style typename rules.
4473         (d_type_from_name, d_module_from_name, push_variable)
4474         (push_fieldnames, push_type_name, push_module_name)
4475         (push_expression_name): Remove.
4476         (lex_one_token): Rename from yylex.  Replace pstate with par_state.
4477         (token_and_value): New type.
4478         (token_fifo, popping, name_obstack): New globals.
4479         (classify_name): New function.
4480         (classify_inner_name): Likewise.
4481         (yylex): Likewise.
4482         (d_parse): Initialize token_fifo, popping and name_obstack.
4483
4484 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
4485
4486         * Makefile.in (SFILES): Add d-namespace.c.
4487         (COMMON_OBS): Add d-namespace.o.
4488         * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
4489         la_lookup_symbol_nonlocal callback function pointer.
4490         * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
4491         (d_lookup_nested_symbol): New declaration.
4492         * d-namespace.c: New file.
4493
4494 2015-08-13  Pedro Alves  <palves@redhat.com>
4495
4496         * python/py-unwind.c (pyuw_sniffer): Install the invalidate
4497         cleanup after the decref cleanup, not before.
4498
4499 2015-08-13  Pierre-Marie de Rodat  <derodat@adacore.com>
4500
4501         * ada-lang.c: Include namespace.h
4502         (aux_add_nonlocal_symbols): Fix a function name in comment.
4503         (ada_add_block_renamings): New.
4504         (add_nonlocal_symbols): Add global renamings handling.
4505         (ada_lookup_symbol_list_worker): Move the symbol lookup part
4506         to...
4507         (ada_add_all_symbols): ... this new function.
4508         (ada_add_block_symbols): Try to match the input name against the
4509         "using directives list", perform a recursive symbol lookup on
4510         the matched declarations.
4511         * block.h (struct block): Move the_namespace to top-level as
4512         namespace_info. Remove the language_specific field.
4513         (BLOCK_NAMESPACE): Update access to the namespace_info field.
4514         * buildsym.h (using_directives): Rename into...
4515         (local_using_directives): ... this.
4516         (global_using_directives): New.
4517         (struct context_stack): Rename the using_directives field into
4518         local_using_directives.
4519         * buildsym.c (finish_block_internal): Deal with the proper
4520         using directives repository (local or global).
4521         (prepare_for_building): Reset local_using_directives. Assert
4522         that there is no pending global using directive.
4523         (reset_symtab_globals): Reset global_using_directives and
4524         local_using_directives.
4525         (end_symtab_get_static_block): Don't ignore symtabs that have
4526         only using directives.
4527         (push_context): Update references to local_using_directives.
4528         (buildsym_init): Do not reset using_directives.
4529         * cp-support.c: Include namespace.h.
4530         * cp-support.h (struct using_direct): Move to namespace.h.
4531         (cp_add_using_directives): Move to namespace.h.
4532         * cp-namespace.c: Include namespace.h
4533         (cp_add_using_directive): Move to namespace.c, rename it to
4534         add_using_directive, add a "using_directives" argument and use
4535         it as the pending using directives repository.  All callers
4536         updated.
4537         * dwarf2read.c (using_directives): New.
4538         (read_import_statement): Call using_directives.
4539         (read_func_scope): Update references to local_using_directives.
4540         (read_lexical_block_scope): Likewise.
4541         (read_namespace): Update the heading comment, call
4542         using_directives.
4543         * namespace.h: New file.
4544         * namespace.c: New file.
4545         * Makefile.in (SFILES): Add namespace.c.
4546         (COMMON_OBS): Add namespace.o
4547
4548 2015-08-12  Joel Brobecker  <brobecker@adacore.com>
4549
4550         * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
4551         compute RETADDR.
4552
4553 2015-08-12  Keith Seitz  <keiths@redhat.com>
4554
4555         * break-catch-throw.c (re_set_exception_catchpoint) Rename
4556         reserved C++ keyword "explicit" to "explicit_loc".
4557         * breakpoint.c (create_overlay_event_breakpoint)
4558         (create_longjmp_master_breakpoint)
4559         (create_std_terminate_master_breakpoint)
4560         (create_exception_master_breakpoint, update_static_tracepoint):
4561         Rename reserved C++ keyword "explicit" to "explicit_loc".
4562         * completer.c (collect_explicit_location_matches)
4563         (explicit_location_completer): Rename reserved C++ keyword
4564         "explicit" to "explicit_loc".
4565         * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
4566         (canonicalize_linespec, create_sals_line_offset)
4567         (convert_linespec_to_sals, convert_explicit_location_to_sals)
4568         (event_location_to_sals, decode_objc): Rename reserved C++ keyword
4569         "explicit" to "explicit_loc".
4570         * location.c (struct event_location) <explicit>: Rename to
4571         "explicit_loc".
4572         (initialize_explicit_location, new_explicit_location)
4573         (explicit_location_to_string_internal, explicit_location_to_linespec):
4574         Rename reserved C++ keyword "explicit" to "explicit_loc".
4575         * location.h (explicit_location_to_string)
4576         (explicit_location_to_linespec, initialize_explicit_location)
4577         (new_explicit_location): Rename reserved C++ keyword "explicit"
4578         to "explicit_loc".
4579         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4580         keyword "explicit" to "explicit_loc".
4581
4582 2015-08-12  Keith Seitz  <keiths@redhat.com>
4583
4584         * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4585         and only call decode_line_1 when it is non-NULL.
4586
4587 2015-08-12  Luis Machado  <lgustavo@codesourcery.com>
4588
4589         * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4590         location address is not meaningful.
4591         (breakpoint_address_is_meaningful): Update comment.
4592
4593 2015-08-11  Keith Seitz  <keiths@redhat.com>
4594
4595         * NEWS: Mention explicit locations.
4596         * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4597         [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4598         (_initialize_breakpoint): Update documentation for
4599         "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4600
4601 2015-08-11  Keith Seitz  <keiths@redhat.com>
4602
4603         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4604         explicit locations, options "--source", "--function",
4605         "--label", and "--line".
4606
4607 2015-08-11  Keith Seitz  <keiths@redhat.com>
4608
4609         * completer.c: Include location.h.
4610         (enum match_type): New enum.
4611         (location_completer): Rename to ...
4612         (linespec_completer): ... this.
4613         (collect_explicit_location_matches, backup_text_ptr)
4614         (explicit_location_completer): New functions.
4615         (location_completer): "New" function; handle linespec
4616         and explicit location completions.
4617         (complete_line_internal): Remove all location completer-specific
4618         handling.
4619         * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4620         (find_toplevel_char): Export.
4621         (linespec_parse_line_offset): Export.
4622         Issue error if STRING is not numerical.
4623         (gdb_get_linespec_parser_quote_characters): New function.
4624         * linespec.h (linespec_parse_line_offset): Declare.
4625         (get_gdb_linespec_parser_quote_characters): Declare.
4626         (is_ada_operator): Declare.
4627         (find_toplevel_char): Declare.
4628         (linespec_lexer_lex_keyword): Declare.
4629         * location.c (explicit_to_event_location): New function.
4630         (explicit_location_lex_one): New function.
4631         (string_to_explicit_location): New function.
4632         (string_to_event_location): Handle explicit locations.
4633         * location.h (explicit_to_event_location): Declare.
4634         (string_to_explicit_location): Declare.
4635
4636 2015-08-11  Keith Seitz  <keiths@redhat.com>
4637
4638         * break-catch-throw.c (re_set_exception_catchpoint): Convert
4639         linespec into explicit location.
4640         * breakpoint.c (create_overlay_breakpoint)
4641         (create_longjmp_master_breakpoint)
4642         (create_std_terminate_master_breakpoint)
4643         (create_exception_master_breakpoint): Convert linespec into explicit
4644         location.
4645         (update_static_tracepoint): Convert linespec into explicit location.
4646         * linespec.c (enum offset_relative_sign, struct line_offset): Move
4647         location.h.
4648         (struct linespec) <expression, expr_pc, source_filename>
4649         <function_name, label_name, line_offset>: Replace with ...
4650         <explicit>: ... this.
4651         <is_linespec>: New member.
4652         (PARSER_EXPLICIT): New accessor macro.
4653         (undefined_label_error): New function.
4654         (source_file_not_found_error): New function.
4655         (linespec_parse_basic): The parser result is now an explicit location.
4656         Use PARSER_EXPLICIT to access it.
4657         Use undefined_label_error.
4658         (canonicalize_linespec): Convert canonical linespec into explicit
4659         location.
4660         Move string representation of location to explicit_location_to_linespec
4661         and use it and explicit_location_to_string to save string
4662         representations of the canonical location.
4663         (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4664         explicit location.  Update all references.
4665         (convert_explicit_location_to_sals): New function.
4666         (parse_linespec): Use PARSER_EXPLICIT to access the parser
4667         result's explicit location.
4668         (linespec_state_constructor): Initialize is_linespec.
4669         Use PARSER_EXPLICIT.
4670         (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4671         result.
4672         (event_location_to_sals): For linespec locations, set is_linespec.
4673         Handle explicit locations.
4674         (decode_objc): 'ls' contains an explicit location now. Update all
4675         references.
4676         (symtabs_from_filename): Use source_file_not_found_error.
4677         * location.c (struct event_location.u) <explicit>: New member.
4678         (initialize_explicit_location): New function.
4679         (initialize_event_location): Initialize explicit locations.
4680         (new_explicit_location, get_explicit_location)
4681         (get_explicit_location_const): New functions.
4682         (explicit_to_string_internal): New function; most of contents moved
4683         from canonicalize_linespec.
4684         (explicit_location_to_string): New function.
4685         (explicit_location_to_linespec): New function.
4686         (copy_event_location, delete_event_location)
4687         (event_location_to_string_const, event_location_empty_p): Handle
4688         explicit locations.
4689         * location.h (enum offset_relative_sign, struct line_offset): Move
4690         here from linespec.h.
4691         (enum event_location_type): Add EXPLICIT_LOCATION.
4692         (struct explicit_location): New structure.
4693         (explicit_location_to_string): Declare.
4694         (explicit_location_to_linespec): Declare.
4695         (new_explicit_location, get_explicit_locationp
4696         (get_explicit_location_const, initialize_explicit_location): Declare.
4697
4698 2015-08-11  Keith Seitz  <keiths@redhat.com>
4699
4700         * break-catch-throw.c (re_set_exception_catchpoint): Convert
4701         linespec for stap probe to probe location.
4702         * breakpoint.c (create_longjmp_master_breakpoint)
4703         (create_exception_master_breakpoint): Likewise.
4704         (break_command_1): Remove local variable `arg_cp'.
4705         Check location type to set appropriate breakpoint ops methods.
4706         (trace_command): Likewise.
4707         * linespec.c (event_location_to_sals): Assert on probe locations.
4708         * location.c (EL_PROBE): Add macro definition.
4709         (new_probe_location, get_probe_location): New functions.
4710         (copy_event_location, delete_event_location, event_location_to_string)
4711         (string_to_event_location, event_location_empty_p): Handle probe
4712         locations.
4713         * location.h (enum event_location_type): Add PROBE_LOCATION.
4714         (new_probe_location, get_probe_location): Declare.
4715         * probe.c (parse_probes): Assert that LOCATION is a probe location.
4716         Convert linespec into probe location.
4717
4718 2015-08-11  Keith Seitz  <keiths@redhat.com>
4719
4720         * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4721         Convert linespec to address location.
4722         * linespec.c (canonicalize_linespec): Do not handle address
4723         locations here.
4724         (convert_address_location_to_sals): New function; contents moved
4725         from ...
4726         (convert_linespc_to_sals): ... here.
4727         (parse_linespec): Remove address locations from linespec grammar.
4728         Remove handling of address locations.
4729         (linespec_lex_to_end): Remove handling of address linespecs.
4730         (event_location_to_sals): Handle ADDRESS_LOCATION.
4731         (linespec_expression_to_pc): Export.
4732         * linespec.h (linespec_expression_to_pc): Add declaration.
4733         * location.c (struct event_location.u) <address>: New member.
4734         (new_address_location, get_address_location): New functions.
4735         (copy_event_location, delete_event_location, event_location_to_string)
4736         (string_to_event_location, event_location_empty_p): Handle address
4737         locations.
4738         * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4739         (new_address_location, get_address_location): Declare.
4740         * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4741         to address location.
4742         * spu-tdep.c (spu_catch_start): Likewise.
4743
4744 2015-08-11  Keith Seitz  <keiths@redhat.com>
4745
4746         * ax-gdb.c: Include location.h.
4747         (agent_command_1) Use linespec location instead of address
4748         string.
4749         * break-catch-throw.c: Include location.h.
4750         (re_set_exception_catchpoint): Use linespec locations instead
4751         of address strings.
4752         * breakpoint.c: Include location.h.
4753         (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4754         (create_std_terminate_master_breakpoint)
4755         (create_exception_master_breakpoint, update_breakpoints_after_exec):
4756         Use linespec location instead of address string.
4757         (print_breakpoint_location):  Use locations and
4758         event_location_to_string.
4759         Print extra_string for pending locations for non-MI streams.
4760         (print_one_breakpoint_location): Use locations and
4761         event_location_to_string.
4762         (init_raw_breakpoint_without_location): Initialize b->location.
4763         (create_thread_event_breakpoint): Use linespec location instead of
4764         address string.
4765         (init_breakpoint_sal): Likewise.
4766         Only save extra_string if it is non-NULL and not the empty string.
4767         Use event_location_to_string instead of `addr_string'.
4768         Constify `p' and `endp'.
4769         Use skip_spaces_const/skip_space_const instead of non-const versions.
4770         Copy the location into the breakpoint.
4771         If LOCATION is NULL, save the breakpoint address as a linespec location
4772         instead of an address string.
4773         (create_breakpoint_sal): Change `addr_string' parameter to a struct
4774         event_location. All uses updated.
4775         (create_breakpoints_sal): Likewise for local variable `addr_string'.
4776         (parse_breakpoint_sals): Use locations instead of address strings.
4777         Remove check for empty linespec with conditional.
4778         Refactor.
4779         (decode_static_tracepoint_spec): Make argument const and update
4780         function.
4781         (create_breakpoint): Change `arg' to a struct event_location and
4782         rename.
4783         Remove `copy_arg' and `addr_start'.
4784         If EXTRA_STRING is empty, set it to NULL.
4785         Don't populate `canonical' for pending breakpoints.
4786         Pass `extra_string' to find_condition_and_thread.
4787         Clear `extra_string' if `rest' was NULL.
4788         Do not error with "garbage after location" if setting a dprintf
4789         breakpoint.
4790         Copy the location into the breakpoint instead of an address string.
4791         (break_command_1): Use string_to_event_location and pass this to
4792         create_breakpoint instead of an address string.
4793         Check against `arg_cp' for a probe linespec.
4794         (dprintf_command): Use string_to_event_location and pass this to
4795         create_breakpoint instead of an address string.
4796         Throw an exception if no format string was specified.
4797         (print_recreate_ranged_breakpoint): Use event_location_to_string
4798         instead of address strings.
4799         (break_range_command, until_break_command)
4800         (init_ada_exception_breakpoint): Use locations instead
4801         of address strings.
4802         (say_where): Print out extra_string for pending locations.
4803         (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4804         the breakpoint.
4805         (base_breakpoint_create_sals_from_location): Use struct event_location
4806         instead of address string.
4807         Remove `addr_start' and `copy_arg' parameters.
4808         (base_breakpoint_decode_location): Use struct event_location instead of
4809         address string.
4810         (bkpt_re_set): Use locations instead of address strings.
4811         Use event_location_empty_p to check for unset location.
4812         (bkpt_print_recreate): Use event_location_to_string instead of
4813         an address string.
4814         Print out extra_string for pending locations.
4815         (bkpt_create_sals_from_location, bkpt_decode_location)
4816         (bkpt_probe_create_sals_from_location): Use struct event_location
4817         instead of address string.
4818         (bkpt_probe_decode_location): Use struct event_location instead of
4819         address string.
4820         (tracepoint_print_recreate): Use event_location_to_string to
4821         recreate the tracepoint.
4822         (tracepoint_create_sals_from_location, tracepoint_decode_location)
4823         (tracepoint_probe_create_sals_from_location)
4824         (tracepoint_probe_decode_location): Use struct event_location
4825         instead of address string.
4826         (dprintf_print_recreate): Use event_location_to_string to recreate
4827         the dprintf.
4828         (dprintf_re_set): Remove check for valid/missing format string.
4829         (strace_marker_create_sals_from_location)
4830         (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4831         (update_static_tracepoint): Use struct event_location instead of
4832         address string.
4833         (location_to_sals): Likewise.
4834         Pass `extra_string' to find_condition_and_thread.
4835         For newly resolved pending breakpoint locations, clear the location's
4836         string representation.
4837         Assert that the breakpoint's condition string is NULL when
4838         condition_not_parsed.
4839         (breakpoint_re_set_default, create_sals_from_location_default)
4840         (decode_location_default, trace_command, ftrace_command)
4841         (strace_command, create_tracepoint_from_upload): Use locations
4842         instead of address strings.
4843         * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4844         Use struct event_location instead of address string.
4845         Update all uses.
4846         <decode_location>: Likewise.
4847         (struct breakpoint) <addr_string>: Change to struct event_location
4848         and rename `location'.
4849         <addr_string_range_end>: Change to struct event_location and rename
4850         `location_range_end'.
4851         (create_breakpoint): Use struct event_location instead of address
4852         string.
4853         * cli/cli-cmds.c: Include location.h.
4854         (edit_command, list_command): Use locations instead of address strings.
4855         * elfread.c: Include location.h.
4856         (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4857         * guile/scm-breakpoint.c: Include location.h.
4858         (bpscm_print_breakpoint_smob): Use event_location_to_string.
4859         (gdbscm_register_breakpoint): Use locations instead of address
4860         strings.
4861         * linespec.c: Include location.h.
4862         (struct ls_parser) <stream>: Change to const char *.
4863         (PARSER_STREAM): Update.
4864         (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4865         keywords must be followed by whitespace.
4866         (canonicalize_linespec): Save a linespec location into `canonical'.
4867         Save a canonical linespec into `canonical'.
4868         (parse_linespec): Change `argptr' to const char * and rename `arg'.
4869         All uses updated.
4870         Update function description.
4871         (linespec_parser_new): Initialize `parser'.
4872         Update initialization of  parsing stream.
4873         (event_location_to_sals): New function.
4874         (decode_line_full): Change `argptr' to a struct event_location and
4875         rename it `location'.
4876         Use locations instead of address strings.
4877         Call event_location_to_sals instead of parse_linespec.
4878         (decode_line_1): Likewise.
4879         (decode_line_with_current_source, decode_line_with_last_displayed)
4880         Use locations instead of address strings.
4881         (decode_objc): Likewise.
4882         Change `argptr' to const char * and rename `arg'.
4883         (destroy_linespec_result): Delete the linespec result's location
4884         instead of freeing the address string.
4885         * linespec.h (struct linespec_result) <addr_string>: Change to
4886         struct event_location and rename to ...
4887         <location>: ... this.
4888         (decode_line_1, decode_line_full): Change `argptr' to struct
4889         event_location.  All callers updated.
4890         * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4891         (mi_cmd_break_insert_1): Use locations instead of address strings.
4892         Throw an error if there was "garbage" at the end of the specified
4893         linespec.
4894         * probe.c: Include location.h.
4895         (parse_probes): Change `argptr' to struct event_location.
4896         Use event locations instead of address strings.
4897         * probe.h (parse_probes): Change `argptr' to struct event_location.
4898         * python/py-breakpoint.c: Include location.h.
4899         (bppy_get_location): Constify local variable `str'.
4900         Use event_location_to_string.
4901         (bppy_init): Use locations instead of address strings.
4902         * python/py-finishbreakpoint.c: Include location.h.
4903         (bpfinishpy_init): Remove local variable `addr_str'.
4904         Use locations instead of address strings.
4905         * python/python.c: Include location.h.
4906         (gdbpy_decode_line): Use locations instead of address strings.
4907         * remote.c: Include location.h.
4908         (remote_download_tracepoint): Use locations instead of address
4909         strings.
4910         * spu-tdep.c: Include location.h.
4911         (spu_catch_start): Remove local variable `buf'.
4912         Use locations instead of address strings.
4913         * tracepoint.c: Include location.h.
4914         (scope_info): Use locations instead of address strings.
4915         (encode_source_string): Constify parameter `src'.
4916         * tracepoint.h (encode_source_string): Likewise.
4917
4918 2015-08-11  Keith Seitz  <keiths@redhat.com>
4919
4920         * Makefile.in (SFILES): Add location.c.
4921         (HFILES_NO_SRCDIR): Add location.h.
4922         (COMMON_OBS): Add location.o.
4923         * linespec.c (linespec_lex_to_end): New function.
4924         * linespec.h (linespec_lex_to_end): Declare.
4925         * location.c: New file.
4926         * location.h: New file.
4927
4928 2015-08-11  Keith Seitz  <keiths@redhat.com>
4929
4930         * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4931         Renamed to create_sals_from_location.
4932         <decode_linespec>: Renamed to decode_location.
4933         Update all callers.
4934         * breakpoint.c (create_sals_from_address_default): Renamed to ...
4935         (create_sals_from_location_default): ... this.
4936         (addr_string_to_sals): Renamed to ...
4937         (location_to_sals): ... this.
4938         (decode_linespec_default): Renamed to ...
4939         (decode_location_default): ... this.
4940         (base_breakpoint_create_sals_from_address): Renamed to ...
4941         (base_breakpoint_create_sals_from_location): ... this.
4942         (bkpt_create_sals_from_address): Renamed to ...
4943         (bkpt_create_sals_from_location): ... this.
4944         (bkpt_decode_linespec): Renamed to ...
4945         (bkpt_decode_location): ... this.
4946         (bkpt_probe_create_sals_from_address): Renamed to ...
4947         (bkpt_probe_create_sals_from_location): ... this.
4948         (tracepoint_create_sals_from_address): Renamed to ...
4949         (tracepoint_create_sals_from_location): ... this.
4950         (tracepoint_decode_linespec): Renamed to ...
4951         (tracepoint_decode_location): ... this.
4952         (tracepoint_probe_create_sals_from_address): Renamed to ...
4953         (tracepoint_probe_create_sals_from_location): ... this.
4954         (tracepoint_probe_decode_linespec): Renamed to ...
4955         (tracepoint_probe_decode_location): ... this.
4956         (strace_marker_create_sals_from_address): Renamed to ...
4957         (strace_marker_create_sals_from_location): ... this.
4958         (decode_linespec_default): Renamed to ...
4959         (decode_location_default): ... this.
4960
4961 2015-08-10  Doug Evans  <dje@google.com>
4962             Keith Seitz  <keiths@redhat.com>
4963
4964         PR gdb/17960
4965         * symtab.c (make_file_symbol_completion_list_1): Renamed from
4966         make_file_symbol_completion_list and made static.
4967         (make_file_symbol_completion_list): New function.
4968
4969 2015-08-10  Joel Brobecker  <brobecker@adacore.com>
4970
4971         * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4972         trailing new-line at end of warning message.
4973         (proceed): Add i18n marker to error messages.
4974
4975 2015-08-07  Pedro Alves  <palves@redhat.com>
4976
4977         * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4978
4979 2015-08-07  Pedro Alves  <palves@redhat.com>
4980
4981         * s390-linux-tdep.c (is_non_branch_ril)
4982         (s390_displaced_step_copy_insn): New functions.
4983         (s390_displaced_step_fixup): Update comment.
4984         (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4985         gdbarch_displaced_step_copy_insn hook.
4986
4987 2015-08-07  Pedro Alves  <palves@redhat.com>
4988
4989         * infrun.c (displaced_step_prepare_throw): Return -1 if
4990         gdbarch_displaced_step_copy_insn returns NULL.  Update intro
4991         comment.
4992         * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4993         (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4994         in file.
4995         (ppc_displaced_step_copy_insn): New function.
4996         (ppc_displaced_step_fixup): Update comment.
4997         (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4998         gdbarch_displaced_step_copy_insn hook.
4999         * gdbarch.sh (displaced_step_copy_insn): Document what happens on
5000         NULL return.
5001         * gdbarch.h: Regenerate.
5002
5003 2015-08-07  Pedro Alves  <palves@redhat.com>
5004
5005         * inferior.h (struct inferior) <displaced_stepping_failed>: New
5006         field.
5007         * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
5008         Return false if dispaced stepping failed before.
5009         (resume): Pass the current inferior to
5010         use_displaced_stepping_now_p.  Wrap displaced_step_prepare in
5011         TRY/CATCH.  If we get a MEMORY_ERROR, set the inferior's
5012         displaced_stepping_failed flag, and fall back to an in-line
5013         step-over.
5014
5015 2015-08-07  Pedro Alves  <palves@redhat.com>
5016
5017         * darwin-nat.c (darwin_stop): Rename to ...
5018         (darwin_interrupt): ... this.
5019         (_initialize_darwin_inferior): Adjust.
5020         * gnu-nat.c (gnu_stop): Delete.
5021         (gnu_target): Don't install gnu_stop.
5022         * inf-ptrace.c (inf_ptrace_stop): Rename to ...
5023         (inf_ptrace_interrupt): ... this.
5024         (inf_ptrace_target): Adjust.
5025         * infcmd.c (interrupt_target_1): Use target_interrupt instead of
5026         target_stop.
5027         * linux-nat (linux_nat_stop): Rename to ...
5028         (linux_nat_interrupt): ... this.
5029         (linux_nat_stop): Reimplement.
5030         (linux_nat_add_target): Install linux_nat_interrupt.
5031         * nto-procfs.c (nto_interrupt_twice): Rename to ...
5032         (nto_handle_sigint_twice): ... this.
5033         (nto_interrupt): Rename to ...
5034         (nto_handle_sigint): ... this.  Call target_interrupt instead of
5035         target_stop.
5036         (procfs_wait): Adjust.
5037         (procfs_stop): Rename to ...
5038         (procfs_interrupt): ... this.
5039         (init_procfs_targets): Adjust.
5040         * procfs.c (procfs_stop): Rename to ...
5041         (procfs_interrupt): ... this.
5042         (procfs_target): Adjust.
5043         * remote-m32r-sdi.c (m32r_stop): Rename to ...
5044         (m32r_interrupt): ... this.
5045         (init_m32r_ops): Adjust.
5046         * remote-sim.c (gdbsim_stop_inferior): Rename to ...
5047         (gdbsim_interrupt_inferior): ... this.
5048         (gdbsim_stop): Rename to ...
5049         (gdbsim_interrupt): ... this.
5050         (gdbsim_cntrl_c): Adjust.
5051         (init_gdbsim_ops): Adjust.
5052         * remote.c (sync_remote_interrupt): Adjust comments.
5053         (remote_stop_as): Rename to ...
5054         (remote_interrupt_as): ... this.
5055         (remote_stop): Adjust comment.
5056         (remote_interrupt): New function.
5057         (init_remote_ops): Install remote_interrupt.
5058         * target.c (target_interrupt): New function.
5059         * target.h (struct target_ops) <to_interrupt>: New field.
5060         (target_interrupt): New declaration.
5061         * windows-nat.c (windows_stop): Rename to ...
5062         (windows_interrupt): ... this.
5063         * target-delegates.c: Regenerate.
5064
5065 2015-08-07  Pedro Alves  <palves@redhat.com>
5066
5067         * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
5068         threads" as alternative to "switching back to stepped thread".
5069
5070 2015-08-07  Pedro Alves  <palves@redhat.com>
5071
5072         * NEWS: Mention "maint set/show target-non-stop".
5073         * breakpoint.c (update_global_location_list): Check
5074         target_is_non_stop_p instead of non_stop.
5075         * infcmd.c (attach_command_post_wait, attach_command): Likewise.
5076         * infrun.c (show_can_use_displaced_stepping)
5077         (can_use_displaced_stepping_p, start_step_over_inferior):
5078         Likewise.
5079         (internal_resume_ptid): New function.
5080         (resume): Use it.
5081         (proceed): Check target_is_non_stop_p instead of non_stop.  If in
5082         all-stop mode but the target is always in non-stop mode, start all
5083         the other threads that are implicitly resumed too.
5084         (for_each_just_stopped_thread, fetch_inferior_event)
5085         (adjust_pc_after_break, stop_all_threads): Check
5086         target_is_non_stop_p instead of non_stop.
5087         (handle_inferior_event): Likewise.  Handle detach-fork in all-stop
5088         with the target always in non-stop mode.
5089         (handle_signal_stop) <random signal>: Check target_is_non_stop_p
5090         instead of non_stop.
5091         (switch_back_to_stepped_thread): Check target_is_non_stop_p
5092         instead of non_stop.
5093         (keep_going_stepped_thread): Use internal_resume_ptid.
5094         (stop_waiting): If in all-stop mode, and the target is in non-stop
5095         mode, stop all threads.
5096         (keep_going_pass): Likewise, when starting a new in-line step-over
5097         sequence.
5098         * linux-nat.c (get_pending_status, select_event_lwp)
5099         (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
5100         target_is_non_stop_p instead of non_stop.
5101         (linux_nat_always_non_stop_p): New function.
5102         (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
5103         (linux_nat_add_target): Install linux_nat_always_non_stop_p.
5104         * target-delegates.c: Regenerate.
5105         * target.c (target_is_non_stop_p): New function.
5106         (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
5107         (maint_set_target_non_stop_command)
5108         (maint_show_target_non_stop_command): New functions.
5109         (_initilize_target): Install "maint set/show target-non-stop"
5110         commands.
5111         * target.h (struct target_ops) <to_always_non_stop_p>: New field.
5112         (target_non_stop_enabled): New declaration.
5113         (target_is_non_stop_p): New declaration.
5114
5115 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
5116
5117         * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
5118         has a pending status, return true.
5119         * gdbthread.h: Include target/waitstatus.h.
5120         (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
5121         stop_pc>: New fields.
5122         (struct thread_info) <resumed>: New field.
5123         (set_resumed): Declare.
5124         * infrun.c: Include "event-loop.h".
5125         (infrun_async_inferior_event_token, infrun_is_async): New globals.
5126         (infrun_async): New function.
5127         (clear_step_over_info): Add debug output.
5128         (displaced_step_in_progress_any_inferior): New function.
5129         (displaced_step_fixup): New returns int.
5130         (start_step_over): Handle in-line step-overs too.  Assert the
5131         thread is marked resumed.
5132         (resume_cleanups): Clear the thread's resumed flag.
5133         (resume): Set the thread's resumed flag.  Return early if the
5134         thread has a pending status.  Allow stepping a breakpoint with no
5135         signal.
5136         (proceed): Adjust to check 'resumed' instead of 'executing'.
5137         (clear_proceed_status_thread): If the thread has a pending status,
5138         and that status is a finished step, discard the pending status.
5139         (clear_proceed_status): Don't clear step_over_info here.
5140         (random_pending_event_thread, do_target_wait): New functions.
5141         (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
5142         do_target_wait.
5143         (wait_one): New function.
5144         (THREAD_STOPPED_BY): New macro.
5145         (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5146         (thread_stopped_by_hw_breakpoint): New functions.
5147         (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
5148         functions.
5149         (handle_inferior_event): Also call set_resumed(false) on all
5150         threads implicitly stopped by the event.
5151         (restart_threads, resumed_thread_with_pending_status): New
5152         functions.
5153         (finish_step_over): If we were doing an in-line step-over before,
5154         and no longer are after trying to start a new step-over, restart
5155         all threads.  If we have multiple threads with pending events,
5156         save the current event and go through the event loop again.
5157         (handle_signal_stop): Return early if finish_step_over returns
5158         false.
5159         <random signal>: If we get a signal while stepping over a
5160         breakpoint in-line in non-stop mode, restart all threads.  Clear
5161         step_over_info before delivering the signal.
5162         (keep_going_stepped_thread): Use internal_error instead of
5163         gdb_assert.  Mark the thread as resumed.
5164         (keep_going_pass_signal): Assert the thread isn't already resumed.
5165         If some other thread is doing an in-line step-over, defer the
5166         resume.  If we just started a new in-line step-over, stop all
5167         threads.  Don't clear step_over_info.
5168         (infrun_async_inferior_event_handler): New function.
5169         (_initialize_infrun): Create async event handler with
5170         infrun_async_inferior_event_handler as callback.
5171         (infrun_async): New declaration.
5172         * target.c (target_async): New function.
5173         * target.h (target_async): Declare macro and readd as function
5174         declaration.
5175         * target/waitstatus.h (enum target_stop_reason)
5176         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5177         * thread.c (new_thread): Clear the new waitstatus field.
5178         (set_resumed): New function.
5179
5180 2015-08-07  Pedro Alves  <palves@redhat.com>
5181
5182         * infrun.c (keep_going_stepped_thread): New function, factored out
5183         from ...
5184         (switch_back_to_stepped_thread): ... here.
5185
5186 2015-08-07  Pedro Alves  <palves@redhat.com>
5187
5188         * infrun.c (currently_stepping): Extend intro comment.
5189         * target.h (target_resume): Extend intro comment.
5190
5191 2015-08-07  Pedro Alves  <palves@redhat.com>
5192
5193         * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
5194         of inferior_ptid.  If the stepped thread vanished, return 0
5195         instead of resuming here.  Use reset_ecs.  Print the prev_pc and
5196         the current stop_pc in log message.  Clear trap_expected if the
5197         thread advanced.  Don't pass currently_stepping to
5198         do_target_resume.
5199
5200 2015-08-07  Pedro Alves  <palves@redhat.com>
5201
5202         * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
5203         * infrun.c (struct execution_control_state): Move higher up in the
5204         file.
5205         (reset_ecs): New function.
5206         (start_step_over): Now returns int.  Rewrite to use
5207         keep_going_pass_signal instead of manually starting a displaced step.
5208         (resume): Don't call set_running here.  If displaced stepping
5209         can't start now, clear trap_expected.
5210         (find_thread_needs_step_over): Delete function.
5211         (proceed): Set up finish_thread_state_cleanup.  Call set_running.
5212         If the current thread needs a step over, push it in the step-over
5213         chain.  Don't set insert breakpoints nor call resume directly
5214         here.  Instead rewrite to use start_step_over and
5215         keep_going_pass_signal.
5216         (finish_step_over): New function.
5217         (handle_signal_stop): Call finish_step_over instead of
5218         start_step_over.
5219         (switch_back_to_stepped_thread): If the event thread needs another
5220         step-over do that first.  Use start_step_over.
5221         (keep_going_pass_signal): New function, factored out from ...
5222         (keep_going): ... here.
5223         (_initialize_infrun): Comment moved here.
5224         * thread.c (set_running_thread): New function.
5225         (set_running, finish_thread_state): Use set_running_thread.
5226
5227 2015-08-07  Pedro Alves  <palves@redhat.com>
5228
5229         * gdbthread.h (struct thread_info) <step_over_prev,
5230         step_over_next>: New fields.
5231         (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
5232         (thread_step_over_chain_next, thread_is_in_step_over_chain): New
5233         declarations.
5234         * infrun.c (struct displaced_step_request): Delete.
5235         (struct displaced_step_inferior_state) <step_request_queue>:
5236         Delete field.
5237         (displaced_step_prepare): Assert that trap_expected is set.  Use
5238         thread_step_over_chain_enqueue.  Split starting a new displaced
5239         step to ...
5240         (start_step_over): ... this new function.
5241         (resume): Assert the thread isn't waiting for a step over already.
5242         (proceed): Assert the thread isn't waiting for a step over
5243         already.
5244         (infrun_thread_stop_requested): Adjust to remove threads from the
5245         embedded step-over chain.
5246         (handle_inferior_event) <fork/vfork>: Call start_step_over after
5247         displaced_step_fixup.
5248         (handle_signal_stop): Call start_step_over after
5249         displaced_step_fixup.
5250         * infrun.h (step_over_queue_head): New declaration.
5251         * thread.c (step_over_chain_enqueue, step_over_chain_remove)
5252         (thread_step_over_chain_next, thread_is_in_step_over_chain)
5253         (thread_step_over_chain_enqueue)
5254         (thread_step_over_chain_remove): New functions.
5255         (delete_thread_1): Remove thread from the step-over chain.
5256
5257 2015-08-07  Pedro Alves  <palves@redhat.com>
5258
5259         * infrun.c (thread_still_needs_step_over): Rename to ...
5260         (thread_still_needs_step_over_bp): ... this.
5261         (enum step_over_what): New.
5262         (thread_still_needs_step_over): Reimplement.
5263
5264 2015-08-07  Pedro Alves  <palves@redhat.com>
5265
5266         * remote.c (remote_wait_as): If not waiting for a stop reply,
5267         return TARGET_WAITKIND_NO_RESUMED.  If TARGET_WNOHANG is
5268         requested, don't block waiting forever.
5269
5270 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
5271
5272         * infrun.c (adjust_pc_after_break): Now takes thread_info and
5273         waitstatus pointers instead of an ecs.  Adjust.
5274         (handle_inferior_event): Adjust caller.
5275
5276 2015-08-07  Pedro Alves  <palves@redhat.com>
5277
5278         * infrun.c (handle_inferior_event): If we get
5279         TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
5280         mode, mark all threads of the exiting process as not-executing.
5281         (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
5282         TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
5283         exiting process, if inferior_ptid still points at a process.
5284         * thread.c (struct current_thread_cleanup) <next>: New field.
5285         (current_thread_cleanup_chain): New global.
5286         (restore_current_thread_ptid_changed): New function.
5287         (restore_current_thread_cleanup_dtor): Remove the cleanup from the
5288         current_thread_cleanup_chain list.
5289         (make_cleanup_restore_current_thread): Add the cleanup data to the
5290         current_thread_cleanup_chain list.
5291         (_initialize_thread): Install restore_current_thread_ptid_changed
5292         as thread_ptid_changed observer.
5293
5294 2015-08-07  Joel Brobecker  <brobecker@adacore.com>
5295
5296         * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
5297         data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
5298         smaller than expected.
5299
5300 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
5301
5302         * stack.c (get_frame_language): Moved ...
5303         * frame.c (get_frame_language): ... to here.
5304         * language.h (get_frame_language): Declaration moved to frame.h.
5305         * frame.h: Add language.h include, for language enum.
5306         (get_frame_language): Declaration moved from language.h.
5307         * language.c: Add frame.h include.
5308         * top.c: Add frame.h include.
5309         * symtab.h (struct obj_section): Declare.
5310         (struct cmd_list_element): Declare.
5311
5312 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
5313
5314         * language.c (show_language_command): Find selected frame before
5315         asking for the language of that frame.
5316         (set_language_command): Likewise.
5317         * language.h (get_frame_language): Add frame parameter.
5318         * stack.c (get_frame_language): Add frame parameter, assert
5319         parameter is not NULL, update comment and reindent.
5320         * top.c (check_frame_language_change): Pass the selected frame
5321         into get_frame_language.
5322
5323 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
5324
5325         * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
5326         (pt_btrace_insn_flags): New.
5327         (ftrace_add_pt): Call pt_btrace_insn_flags.
5328         * btrace.h (btrace_insn_flag): New.
5329         (btrace_insn) <flags>: New.
5330         * record-btrace.c (btrace_insn_history): Print insn prefix.
5331         * NEWS: Announce it.
5332
5333 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
5334
5335         * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
5336         * configure: Regenerate.
5337
5338 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
5339
5340         * Makefile.in (LIBICONV): Define.
5341         (CLIBS): Add LIBICONV.
5342         * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
5343         * configure: Regenerate.
5344
5345 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
5346             Pedro Alves  <palves@redhat.com>
5347
5348         * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
5349         (arm_set_abi): Likewise.
5350         * ax-general.c (ax_print): Likewise.
5351         * c-exp.y (exp : string_exp): Likewise.
5352         * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
5353         (do_compile_dwarf_expr_to_c): Likewise.
5354         * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
5355         Likewise.
5356         * dwarf2expr.c (execute_stack_op): Likewise.
5357         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
5358         (disassemble_dwarf_expression): Likewise.
5359         * dwarf2read.c (dwarf2_add_member_fn): Likewise.
5360         (read_array_order): Likewise.
5361         (abbrev_table_read_table): Likewise.
5362         (read_attribute_value): Likewise.
5363         (skip_unknown_opcode): Likewise.
5364         (dwarf_decode_macro_bytes): Likewise.
5365         (dwarf_decode_macros): Likewise.
5366         * eval.c (value_f90_subarray): Likewise.
5367         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5368         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5369         * infrun.c (handle_command): Likewise.
5370         * memory-map.c (memory_map_start_memory): Likewise.
5371         * osabi.c (set_osabi): Likewise.
5372         * parse.c (operator_length_standard): Likewise.
5373         * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
5374         single return point.
5375         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5376         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5377         (gdbpy_lookup_global_symbol): Likewise.
5378         * record-full.c (record_full_restore): Likewise.
5379         * regcache.c (regcache_register_status): Likewise.
5380         (regcache_raw_read): Likewise.
5381         (regcache_cooked_read): Likewise.
5382         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5383         * symtab.c (initialize_ordinary_address_classes): Likewise.
5384         * target-debug.h (target_debug_print_signals): Likewise.
5385         * utils.c (do_restore_current_language): Likewise.
5386
5387 2015-08-06  Clem Dickey  <clemd@acm.org>
5388
5389         PR python/17136
5390         * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
5391
5392 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
5393
5394         * complaints.c (enum complaint_series): Add newlines and remove
5395         out of date comment.
5396         (struct complaints) <series>: Change type to enum
5397         complaint_series and remove out of date comment.
5398         (symfile_complaint_hook): Use equivalent enum value
5399         ISOLATED_MESSAGE instead of 0.
5400
5401 2015-08-06  Pedro Alves  <palves@redhat.com>
5402
5403         * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
5404         returned > 0.
5405
5406 2015-08-06  Pierre Langlois  <pierre.langlois@arm.com>
5407
5408         * common/agent.c (symbol_list) <required>: Remove.
5409
5410 2015-08-06  Pedro Alves  <palves@redhat.com>
5411
5412         * target/waitstatus.h (enum target_stop_reason)
5413         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5414
5415 2015-08-05  Pedro Alves  <palves@redhat.com>
5416             Joel Brobecker  <brobecker@adacore.com>
5417
5418         * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
5419         <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
5420         case where BS->STOP is not set.
5421
5422 2015-08-05  Ulrich Weigand  <uweigand@de.ibm.com>
5423
5424         * nat/gdb_thread_db.h: Add copyright header.
5425         Protect against multiple inclusion.
5426
5427 2015-08-05  Yao Qi  <yao.qi@linaro.org>
5428
5429         * aarch64-linux-nat.c (get_thread_id): Remove.
5430         (debug_reg_change_callback): Call ptid_get_lwp instead of
5431         get_thread_id.
5432         (fetch_gregs_from_thread): Likewise.
5433         (store_gregs_to_thread): Likewise.
5434         (fetch_fpregs_from_thread): Likewise.
5435         (store_fpregs_to_thread): Likewise.
5436         (aarch64_linux_get_debug_reg_capacity): Likewise.
5437         * arm-linux-nat.c (get_thread_id): Remove.
5438         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5439         * xtensa-linux-nat.c (get_thread_id): Remove.
5440         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5441         * arm-linux-nat.c (get_thread_id): Remove.
5442         (GET_THREAD_ID): Remove.
5443         (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
5444         (store_fpregs, fetch_regs, store_regs): Likewise.
5445         (fetch_wmmx_regs, store_wmmx_regs): Likewise.
5446         (fetch_vfp_regs, store_vfp_regs): Likewise.
5447         (arm_linux_read_description): Likewise.
5448         (arm_linux_get_hwbp_cap): Likewise.
5449         * xtensa-linux-nat.c (get_thread_id): Remove.
5450         (GET_THREAD_ID): Remove.
5451         (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
5452         GET_THREAD_ID.
5453
5454 2015-08-04  Ciro Santilli  <ciro.santilli@gmail.com>  (obvious patch)
5455
5456         * python/py-linetable.c: Fix case of Linetable to LineTable
5457         in docstrings and code comments.
5458         * python/py-symtab.c: Same.
5459
5460 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5461
5462         * infcmd.c (signal_command): Call do_cleanups for args_chain.
5463
5464 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5465
5466         PR gdb/18767
5467         * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
5468         use.
5469
5470 2015-08-04  Pedro Alves  <palves@redhat.com>
5471
5472         * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
5473         (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
5474         (td_ta_event_addr_ftype, td_ta_set_event_ftype)
5475         (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
5476         (td_thr_validate_ftype, td_thr_get_info_ftype)
5477         (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
5478         (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
5479         New typedefs.
5480         * linux-thread-db.c (struct thread_db_info): Use new typedefs.
5481         (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
5482         local macros and use them instead of verbose_dlsym and dlsym
5483         calls.
5484
5485 2015-08-03  Sandra Loosemore  <sandra@codesourcery.com>
5486
5487         * nios2-tdep.h: Include opcode/nios2.h here.
5488         (NIOS2_CDX_OPCODE_SIZE): New.
5489         (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
5490         * nios2-tdep.c: Don't include opcode/nios2.h here.
5491         (nios2_fetch_insn): For R2, try reading 2-byte instruction if
5492         4-byte read fails.
5493         (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
5494         (nios2_match_addi, nios2_match_orhi): Likewise.
5495         (nios2_match_stw, nios2_match_ldw): Likewise.
5496         (nios2_match_rdctl): Likewise.
5497         (nios2_match_stwm, nios2_match_ldwm): New.
5498         (nios2_match_branch): Add cases for R2 encodings.
5499         (nios2_match_jmpi, nios2_match_calli): Likewise.
5500         (nios2_match_jmpr, nios2_match_callr): Likewise.
5501         (nios2_match_break, nios2_match_trap): Likewise.
5502         (nios2_in_epilogue_p): Add R2 support.
5503         (nios2_analyze_prologue): Update comments.  Recognize R2 CDX
5504         prologues.
5505         (nios2_breakpoint_from_pc): Handle R2 instructions.
5506         (nios2_get_next_pc): Likewise.  Adjust call to
5507         tdep->syscall_next_pc.
5508         * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
5509         Renamed from nios2_linux_rt_sigreturn_tramp_frame.  Use
5510         instruction field macros instead of literal hex values.
5511         (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
5512         (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
5513         Use size field from OP instead of assuming all instructions
5514         are the same size.
5515         (nios2_linux_init_abi): Register appropriate unwinder for mach.
5516
5517 2015-08-03  Ulrich Weigand  <uweigand@de.ibm.com>
5518
5519         * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
5520         variable warning with some compilers.
5521
5522 2015-08-03  Yao Qi  <yao.qi@linaro.org>
5523
5524         * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
5525         in comment.  Replace "rw" with "type".
5526         (arm_linux_remove_watchpoint): Change type of "rw" to
5527         "enum target_hw_bp_type".
5528
5529 2015-08-02  Pierre-Marie de Rodat  <derodat@adacore.com>
5530
5531         * alpha-mdebug-tdep.c (find_proc_desc): Update call to
5532         lookup_symbol.
5533         * ft32-tdep.c (ft32_skip_prologue): Likewise.
5534         * moxie-tdep.c (moxie_skip_prologue): Likewise.
5535         * mt-tdep.c (mt_skip_prologue): Likewise.
5536         * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5537
5538 2015-08-01  Pierre-Marie de Rodat  <derodat@adacore.com>
5539
5540         * ada-exp.y (write_object_renaming): Replace struct
5541         ada_symbol_info with struct block_symbol.  Update field
5542         references accordingly.
5543         (block_lookup, select_possible_type_sym): Likewise.
5544         (find_primitive_type): Likewise.  Also update call to
5545         ada_lookup_symbol to extract the symbol itself.
5546         (write_var_or_type, write_name_assoc): Likewise.
5547         * ada-lang.h (struct ada_symbol_info): Remove.
5548         (ada_lookup_symbol_list): Replace struct ada_symbol_info with
5549         struct block_symbol.
5550         (ada_lookup_encoded_symbol, user_select_syms): Likewise.
5551         (ada_lookup_symbol): Return struct block_symbol instead of a
5552         mere symbol.
5553         * ada-lang.c (defns_collected): Replace struct ada_symbol_info
5554         with struct block_symbol.
5555         (resolve_subexp, ada_resolve_function, sort_choices,
5556         user_select_syms, is_nonfunction, add_defn_to_vec,
5557         num_defns_collected, defns_collected,
5558         symbols_are_identical_enums, remove_extra_symbols,
5559         remove_irrelevant_renamings, add_lookup_symbol_list_worker,
5560         ada_lookup_symbol_list, ada_iterate_over_symbols,
5561         ada_lookup_encoded_symbol, get_var_value): Likewise.
5562         (ada_lookup_symbol): Return a block_symbol instead of a mere
5563         symbol.  Replace struct ada_symbol_info with struct
5564         block_symbol.
5565         (ada_lookup_symbol_nonlocal): Likewise.
5566         (standard_lookup): Make block passing explicit through
5567         lookup_symbol_in_language.
5568         * ada-tasks.c (get_tcb_types_info): Update the calls to
5569         lookup_symbol_in_language to extract the mere symbol out of the
5570         returned value.
5571         (ada_tasks_inferior_data_sniffer): Likewise.
5572         * ax-gdb.c (gen_static_field): Likewise for the call to
5573         lookup_symbol.
5574         (gen_maybe_namespace_elt): Deal with struct block_symbol from
5575         lookup functions.
5576         (gen_expr): Likewise.
5577         * c-exp.y: Likewise.  Remove uses of block_found.
5578         (lex_one_token, classify_inner_name, c_print_token): Likewise.
5579         (classify_name): Likewise.  Rename the "sym" local variable to
5580         "bsym".
5581         * c-valprint.c (print_unpacked_pointer): Likewise.
5582         * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5583         "sym" parameter from struct symbol * to struct block_symbol.
5584         Use it to remove uses of block_found.  Deal with struct
5585         block_symbol from lookup functions.
5586         (gcc_convert_symbol): Likewise.  Update the call to
5587         convert_symbol_sym.
5588         * compile/compile-object-load.c (compile_object_load): Deal with
5589         struct block_symbol from lookup functions.
5590         * cp-namespace.c (cp_lookup_nested_symbol_1,
5591         cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5592         cp_search_static_and_baseclasses,
5593         cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5594         cp_lookup_symbol_imports_or_template,
5595         cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5596         lookup_namespace_scope, cp_lookup_nonlocal,
5597         find_symbol_in_baseclass): Return struct block_symbol instead of
5598         mere symbols and deal with struct block_symbol from lookup
5599         functions.
5600         * cp-support.c (inspect_type, replace_typedefs,
5601         cp_lookup_rtti_type): Deal with struct block_symbol from
5602         lookup functions.
5603         * cp-support.h (cp_lookup_symbol_nonlocal,
5604         cp_lookup_symbol_from_namespace,
5605         cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
5606         Return struct block_symbol instead of mere symbols.
5607         * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5608         push_module_name):
5609         Deal with struct block_symbol from lookup functions.  Remove
5610         uses of block_found.
5611         * eval.c (evaluate_subexp_standard): Update call to
5612         cp_lookup_symbol_namespace.
5613         * f-exp.y: Deal with struct block_symbol from lookup functions.
5614         Remove uses of block_found.
5615         (yylex): Likewise.
5616         * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5617         lookup_enum, lookup_template_type, check_typedef): Deal with
5618         struct block_symbol from lookup functions.
5619         * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5620         * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5621         (gdbscm_lookup_global_symbol): Likewise.
5622         * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5623         * go-exp.y: Likewise.  Remove uses of block_found.
5624         (package_name_p, classify_packaged_name, classify_name):
5625         Likewise.
5626         * infrun.c (insert_exception_resume_breakpoint): Likewise.
5627         * jv-exp.y (push_variable): Likewise.
5628         * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5629         * language.c (language_bool_type): Likewise.
5630         * language.h (struct language_defn): Update
5631         la_lookup_symbol_nonlocal to return a struct block_symbol rather
5632         than a mere symbol.
5633         * linespec.c (find_label_symbols): Deal with struct block_symbol
5634         from lookup functions.
5635         * m2-exp.y: Likewise.  Remove uses of block_found.
5636         (yylex): Likewise.
5637         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5638         * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5639         * p-exp.y: Likewise.  Remove uses of block_found.
5640         (yylex): Likewise.
5641         * p-valprint.c (pascal_val_print): Likewise.
5642         * parse.c (write_dollar_variable): Likewise.  Remove uses of
5643         block_found.
5644         * parser-defs.h (struct symtoken): Turn the SYM field into a
5645         struct block_symbol.
5646         * printcmd.c (address_info): Deal with struct block_symbol from
5647         lookup functions.
5648         * python/py-frame.c (frapy_read_var): Likewise.
5649         * python/py-symbol.c (gdbpy_lookup_symbol,
5650         gdbpy_lookup_global_symbol): Likewise.
5651         * skip.c (skip_function_command): Likewise.
5652         * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
5653         block_symbol instead of a mere symbol.
5654         * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5655         * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5656         * solib.c (solib_global_lookup): Likewise.
5657         * solist.h (solib_global_lookup): Likewise.
5658         (struct target_so_ops): Update lookup_lib_global_symbol to
5659         return a struct block_symbol rather than a mere symbol.
5660         * source.c (select_source_symtab): Deal with struct block_symbol
5661         from lookup functions.
5662         * stack.c (print_frame_args, iterate_over_block_arg_vars):
5663         Likewise.
5664         * symfile.c (set_initial_language): Likewise.
5665         * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
5666         block_symbol.
5667         (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5668         (struct symbol_cache_slot): Turn the FOUND field into a struct
5669         block_symbol.
5670         (block_found): Remove.
5671         (eq_symbol_entry): Update to deal with struct block_symbol in
5672         cache slots.
5673         (symbol_cache_lookup): Return a struct block_symbol rather than
5674         a mere symbol.
5675         (symbol_cache_mark_found): Add a BLOCK parameter to fill
5676         appropriately the cache slots.  Update callers.
5677         (symbol_cache_dump): Update cache slots handling to the type
5678         change.
5679         (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5680         lookup_symbol_aux, lookup_local_symbol,
5681         lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5682         lookup_symbol_in_objfile_symtabs,
5683         lookup_symbol_in_objfile_from_linkage_name,
5684         lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5685         lookup_symbol_in_static_block, lookup_static_symbol,
5686         lookup_global_symbol):
5687         Return a struct block_symbol rather than a mere symbol.  Deal
5688         with struct block_symbol from other lookup functions.  Remove
5689         uses of block_found.
5690         (lookup_symbol_in_block): Remove uses of block_found.
5691         (struct global_sym_lookup_data): Turn the RESULT field into a
5692         struct block_symbol.
5693         (lookup_symbol_global_iterator_cb): Update references to the
5694         RESULT field.
5695         (search_symbols): Deal with struct block_symbol from lookup
5696         functions.
5697         * symtab.h (struct block_symbol): New structure.
5698         (block_found): Remove.
5699         (lookup_symbol_in_language, lookup_symbol,
5700         basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
5701         lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5702         lookup_global_symbol_from_objfile): Return a struct block_symbol
5703         rather than just a mere symbol.  Update comments to remove
5704         mentions of block_found.
5705         * valops.c (find_function_in_inferior,
5706         value_struct_elt_for_reference, value_maybe_namespace_elt,
5707         value_of_this):  Deal with struct block_symbol from lookup
5708         functions.
5709         * value.c (value_static_field, value_fn_field): Likewise.
5710
5711 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5712
5713         * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5714         instead of integer.
5715
5716 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5717             Pedro Alves  <palves@redhat.com>
5718
5719         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5720         type or value instead of integer.
5721         (aarch64_linux_insert_watchpoint): Likewise.
5722         (aarch64_linux_remove_watchpoint): Likewise.
5723         * ada-lang.c (ada_op_print_tab): Likewise.
5724         * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5725         (amd64_linux_syscall_record_common): Likewise.
5726         * arch-utils.c (target_byte_order_user): Likewise.
5727         (default_byte_order): Likewise.
5728         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5729         (arm_linux_get_hwbp_type): Likewise.
5730         (arm_linux_hw_watchpoint_initialize): Likewise.
5731         (arm_linux_insert_watchpoint): Likewise.
5732         * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5733         (arm_linux_syscall_record): Likewise.
5734         * breakpoint.c (update_watchpoint): Likewise.
5735         (breakpoint_here_p): Likewise.
5736         (bpstat_print): Likewise.
5737         (enable_breakpoint_disp): Likewise.
5738         * c-lang.c (c_op_print_tab): Likewise.
5739         * cli/cli-decode.c (add_info_alias): Likewise.
5740         * d-lang.c (d_op_print_tab): Likewise.
5741         * eval.c (evaluate_subexp_standard): Likewise.
5742         * f-exp.y (dot_ops): Likewise.
5743         (f77_keywords): Likewise.
5744         * f-lang.c (f_op_print_tab): Likewise.
5745         * go-lang.c (go_op_print_tab): Likewise.
5746         * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5747         * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5748         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5749         * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5750         * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5751         (struct scm_from_stringn_data): Likewise.
5752         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5753         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5754         (ia64_linux_remove_watchpoint): Likewise.
5755         (ia64_linux_can_use_hw_breakpoint): Likewise.
5756         * infrun.c (print_stop_event): Likewise.
5757         * jv-lang.c (java_op_print_tab): Likewise.
5758         * linux-nat.c (linux_proc_xfer_partial): Likewise.
5759         * linux-nat.h (struct lwp_info): Likewise.
5760         * linux-thread-db.c (enable_thread_event): Likewise.
5761         * m2-lang.c (m2_op_print_tab): Likewise.
5762         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5763         (mi_cmd_stack_list_variables): Likewise.
5764         * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5765         * mi/mi-out.c (mi_table_begin): Likewise.
5766         (mi_table_header): Likewise.
5767         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5768         (mips_linux_insert_watchpoint): Likewise.
5769         (mips_linux_remove_watchpoint): Likewise.
5770         * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5771         * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5772         (mips_linux_watch_type_to_irw): Likewise.
5773         * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5774         (procfs_insert_hw_watchpoint): Likewise.
5775         (procfs_remove_hw_watchpoint): Likewise.
5776         (procfs_hw_watchpoint): Likewise.
5777         (procfs_can_use_hw_breakpoint): Likewise.
5778         (procfs_remove_hw_watchpoint): Likewise.
5779         (procfs_insert_hw_watchpoint): Likewise.
5780         * p-lang.c (pascal_op_print_tab): Likewise.
5781         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5782         * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5783         * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5784         * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5785         (procfs_insert_watchpoint): Likewise.
5786         (procfs_remove_watchpoint): Likewise.
5787         * psymtab.c (recursively_search_psymtabs): Likewise.
5788         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5789         (m32r_insert_watchpoint): Likewise.
5790         * remote-mips.c (mips_can_use_watchpoint): Likewise.
5791         (mips_insert_watchpoint): Likewise.
5792         (mips_remove_watchpoint): Likewise.
5793         * remote.c (watchpoint_to_Z_packet): Likewise.
5794         (remote_insert_watchpoint): Likewise.
5795         (remote_remove_watchpoint): Likewise.
5796         (remote_check_watch_resources): Likewise.
5797         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5798         (s390_remove_watchpoint): Likewise.
5799         (s390_can_use_hw_breakpoint): Likewise.
5800         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5801         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5802         * target.h (struct target_ops): Likewise.
5803         * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5804         * ui-out.c (struct ui_out_hdr): Likewise.
5805         (append_header_to_list): Likewise.
5806         (get_next_header): Likewise.
5807         (verify_field): Likewise.
5808         (ui_out_begin): Likewise.
5809         (ui_out_field_int): Likewise.
5810         (ui_out_field_fmt_int): Likewise.
5811         (ui_out_field_skip): Likewise.
5812         (ui_out_field_string): Likewise.
5813         (ui_out_field_fmt): Likewise.
5814         * varobj.c (new_variable): Likewise.
5815         * x86-nat.c (x86_insert_watchpoint): Likewise.
5816         (x86_remove_watchpoint): Likewise.
5817         (x86_can_use_hw_breakpoint): Likewise.
5818         * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5819         * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5820         previously anonymous enumeration type..
5821         * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5822         value.
5823         * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5824         (target_debug_print_enum_bptype): New.
5825         * target-delegates.c: Regenerate.
5826
5827 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
5828
5829         * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5830         already says and disallow non-stack memory writes in the prologue.
5831
5832 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
5833
5834         * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5835         reflect how current GCC emits stack overflow checks.  Match
5836         both trap and break instructions for backward compatbility.
5837         Disallow other trap and break instructions in the prologue.
5838
5839 2015-07-30  Pedro Alves  <palves@redhat.com>
5840
5841         PR threads/18600
5842         * linux-nat.c (wait_lwp): Report to the core when thread group
5843         leader exits.
5844
5845 2015-07-30  Pedro Alves  <palves@redhat.com>
5846             Simon Marchi  <simon.marchi@ericsson.com>
5847
5848         PR threads/18600
5849         * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5850         mark the new thread as resumed.  Remove STOPPING parameter.
5851         (wait_lwp): Adjust call to linux_handle_extended_wait.
5852         (linux_nat_filter_event): Adjust call to
5853         linux_handle_extended_wait.
5854         (resume_stopped_resumed_lwps): Add debug output.
5855
5856 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
5857
5858         * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5859         isize argument.
5860         * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5861         * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5862         gdbarch_fast_tracepoint_valid_at.
5863         * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5864         * gdbarch.h: Regenerate.
5865         * gdbarch.c: Regenerate.
5866         * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5867         argument.  Do not set it.
5868         * remote.c (remote_download_tracepoint): Adjust call to
5869         gdbarch_fast_tracepoint_valid_at.  Call gdb_insn_length to get
5870         the instruction length.
5871
5872 2015-07-30  Yao Qi  <yao.qi@linaro.org>
5873
5874         * arm-tdep.h (enum gdb_regnum): Move it to ...
5875         * arch/arm.h: ... here.  New file.
5876         * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5877
5878 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
5879
5880         * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5881         Change its type to int *.
5882         (decode_br): Rename link argument to is_blr.  Change its type to
5883         int *.
5884         (decode_cb): Rename op argument to is_cbnz.  Change its type to
5885         int *.
5886         (decode_tb): Rename op argument to is_tbnz.  Change its type to
5887         int *.  Set is_tbnz to either 1 or 0.
5888         (aarch64_analyze_prologue): Change type of is_link to int.  Add
5889         new variables is_cbnz and is_tbnz.  Adjust call to
5890         aarch64_decode_cb and aarch64_decode_tb.
5891
5892 2015-07-29  Simon Marchi  <simon.marchi@ericsson.com>
5893
5894         * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5895         parameter.
5896         (mips_linux_new_thread): Likewise.
5897         * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5898
5899 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
5900
5901         * top.c: Include "tui/tui.h".
5902         (undo_terminal_modifications_before_exit): New static function.
5903         (quit_force): Use it.
5904
5905 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
5906
5907         * target.c (terminal_state): Initialize to terminal_is_ours.
5908
5909 2015-07-29  Yao Qi  <yao.qi@linaro.org>
5910
5911         PR record/18691
5912         * dcache.c (dcache_read_memory_partial): Call
5913         raw_memory_xfer_partial.
5914         * target.c (raw_memory_xfer_partial): Make it non-static.
5915         * target.h (raw_memory_xfer_partial): Declare.
5916
5917 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5918
5919         * c-valprint.c (c_val_print_array): Consider addressable memory
5920         unit size.
5921         (c_val_print_ptr): Likewise.
5922         (c_val_print_int): Likewise.
5923         * findvar.c (read_frame_register_value): Likewise.
5924         * valarith.c (find_size_for_pointer_math): Likewise.
5925         (value_ptrdiff): Likewise.
5926         (value_subscripted_rvalue): Likewise.
5927         * valops.c (read_value_memory): Likewise (and rename variables).
5928         (value_assign): Likewise.
5929         (value_repeat): Likewise.
5930         (value_array): Likewise.
5931         (value_slice): Likewise.
5932         * valprint.c (generic_val_print_ptr): Likewise.
5933         (generic_val_print_enum): Likewise.
5934         (generic_val_print_bool): Likewise.
5935         (generic_val_print_int): Likewise.
5936         (generic_val_print_char): Likewise.
5937         (generic_val_print_float): Likewise.
5938         (generic_val_print_decfloat): Likewise.
5939         (generic_val_print_complex): Likewise.
5940         (val_print_scalar_formatted): Likewise.
5941         (val_print_array_elements): Likewise.
5942         * value.c (set_value_parent): Likewise.
5943         (value_contents_copy_raw): Likewise.
5944         (set_internalvar_component): Likewise.
5945         (value_primitive_field): Likewise.
5946         (value_fetch_lazy): Likewise.
5947         * value.h (read_value_memory): Update comment.
5948
5949 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5950
5951         * value.c (get_value_arch): New function.
5952         * value.h (get_value_arch): New declaration.
5953
5954 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5955
5956         * value.c (struct value): Update comments.
5957
5958 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5959
5960         * gdbtypes.c (type_length_units): New function.
5961         * gdbtypes.h (type_length_units): New declaration.
5962         (struct type) <length>: Update comment.
5963
5964 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5965
5966         * valprint.c (generic_val_print): Factor out complex
5967         printing code to ...
5968         (generic_val_print_complex): ... this new function.
5969
5970 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5971
5972         * valprint.c (generic_val_print): Factor out decfloat
5973         printing code to ...
5974         (generic_val_print_decfloat): ... this new function.
5975
5976 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5977
5978         * valprint.c (generic_val_print): Factor out float
5979         printing code to ...
5980         (generic_val_print_float): ... this new function.
5981
5982 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5983
5984         * valprint.c (generic_val_print): Factor out char
5985         printing code to ...
5986         (generic_val_print_char): ... this new function.
5987
5988 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5989
5990         * valprint.c (generic_val_print): Factor out integer
5991         printing code to ...
5992         (generic_val_print_int): ... this new function.
5993
5994 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5995
5996         * valprint.c (generic_val_print): Factor out bool
5997         printing code to ...
5998         (generic_val_print_bool): ... this new function.
5999
6000 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6001
6002         * valprint.c (generic_val_print): Factor out function/method
6003         printing code to ...
6004         (generic_val_print_func): ... this new function.
6005
6006 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6007
6008         * valprint.c (generic_val_print): Factor out flags
6009         printing code to ...
6010         (generic_val_print_flags): ... this new function.
6011
6012 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6013
6014         * valprint.c (generic_val_print): Factor out enum
6015         printing code to ...
6016         (generic_val_print_enum): ... this new function.
6017
6018 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6019
6020         * valprint.c (generic_val_print): Factor out reference
6021         printing code to ...
6022         (generic_val_print_ref): ... this new function.
6023
6024 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6025
6026         * valprint.c (generic_val_print): Factor out memberptr
6027         printing code to ...
6028         (generic_val_print_memberptr): ... this new function.
6029
6030 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6031
6032         * valprint.c (generic_val_print): Factor out pointer
6033         printing code to ...
6034         (generic_val_print_ptr): ... this new function.
6035
6036 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6037
6038         * valprint.c (generic_val_print): Factor out array
6039         printing code to ...
6040         (generic_val_print_array): ... this new function.
6041
6042 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6043
6044         * valprint.c (generic_val_print): Factor out
6045         print_unpacked_pointer code to ...
6046         (print_unpacked_pointer): ... this new function.
6047
6048 2015-07-27  Patrick Palka  <patrick@parcs.ath.cx>
6049
6050         * event-top.c (handle_sigterm): Don't inspect
6051         target_can_async_p.  Always set the quit flag and always mark
6052         the async signal handler.
6053
6054 2015-07-27  Yao Qi  <yao.qi@linaro.org>
6055
6056         * Makefile.in (REMOTE_EXAMPLES): Remove it.
6057
6058 2015-07-25  Kevin Buettner  <kevinb@redhat.com>
6059
6060         * remote.c (read_ptid): Return null_ptid when no thread id
6061         is found.
6062         (remote_current_thread): Add log warning for malformed
6063         qC reply.
6064         (remote_start_remote): Add log warning when current thread
6065         not found.
6066
6067 2015-07-24  Pedro Alves  <palves@redhat.com>
6068
6069         * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
6070         (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
6071         forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
6072
6073 2015-07-24  Pedro Alves  <palves@redhat.com>
6074
6075         PR gdb/18717
6076         * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
6077         is resumed, and extend the debug log.
6078
6079 2015-07-24  Pedro Alves  <palves@redhat.com>
6080
6081         * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
6082
6083 2015-07-24  Pedro Alves  <palves@redhat.com>
6084
6085         * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
6086         sys/ptrace.h.
6087         * alpha-linux-nat.c: Likewise.
6088         * amd64-linux-nat.c: Likewise.
6089         * arm-linux-nat.c: Likewise.
6090         * hppa-linux-nat.c: Likewise.
6091         * i386-linux-nat.c: Likewise.
6092         * ia64-linux-nat.c: Likewise.
6093         * linux-fork.c: Likewise.
6094         * linux-nat.c: Likewise.
6095         * m32r-linux-nat.c: Likewise.
6096         * m68klinux-nat.c: Likewise.
6097         * mips-linux-nat.c: Likewise.
6098         * nat/linux-btrace.c: Likewise.
6099         * nat/linux-ptrace.c: Likewise.
6100         * nat/linux-ptrace.h
6101         * nat/mips-linux-watch.c: Likewise.
6102         * nat/x86-linux-dregs.c: Likewise.
6103         * ppc-linux-nat.c: Likewise.
6104         * s390-linux-nat.c: Likewise.
6105         * spu-linux-nat.c: Likewise.
6106         * tilegx-linux-nat.c: Likewise.
6107         * x86-linux-nat.c: Likewise.
6108         * xtensa-linux-nat.c: Likewise.
6109
6110 2015-07-24  Pedro Alves  <palves@redhat.com>
6111
6112         * ptrace.m4 (ptrace tests): Test in C++ mode.  Try with 'enum
6113         __ptrace_request as first parameter type instead of int.
6114         (PTRACE_TYPE_ARG1): Define.
6115         * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
6116         that casts first argument to PTRACE_TYPE_ARG1.
6117         * config.in: Regenerate.
6118         * configure: Regenerate.
6119
6120 2015-07-24  Pedro Alves  <palves@redhat.com>
6121
6122         * gdb_ptrace.h: Move ...
6123         * nat/gdb_ptrace.h: ... here.
6124         * inf-ptrace.c: Adjust.
6125
6126 2015-07-24  Pedro Alves  <palves@redhat.com>
6127
6128         * acinclude.m4: Include ptrace.m4.
6129         * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
6130         * ptrace.m4: ... to this new file.
6131
6132 2015-07-23  Doug Evans  <dje@google.com>
6133
6134         * dwarf2read.c (dwarf2_per_cu_data): Add comment.
6135         (load_cu): Handle dummy CUs.
6136         (dw2_do_instantiate_symtab, process_queuef): Ditto.
6137         (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
6138
6139 2015-07-23  Ciro Santilli  <ciro.santilli@gmail.com>  (tiny patch)
6140
6141         * py-linetable.c (ltpy_get_all_source_lines): Adjust function
6142         documentation to say that it returns a list rather than
6143         a FrozenSet.
6144         (linetable_object_methods): Update the docstring of the
6145         "source_line" entry.
6146
6147 2015-07-23  Pierre-Marie de Rodat  <derodat@adacore.com>
6148
6149         * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
6150         type to the recursive call instead of the original (maybe
6151         TYPE_CODE_TYPEDEF) type.
6152
6153 2015-07-23  Yao Qi  <yao.qi@linaro.org>
6154
6155         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
6156         TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
6157         If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
6158
6159 2015-07-21  Yao Qi  <yao.qi@linaro.org>
6160
6161         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
6162         Move it to nat/aarch64-linux-hw-point.c.
6163         (aarch64_linux_child_post_startup_inferior): Update.
6164         * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
6165         New function.
6166         * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
6167         Declare it.
6168
6169 2015-07-21  Markus Metzger  <markus.t.metzger@intel.com>
6170
6171         * common/btrace-common.c (btrace_data_append): Change case label.
6172
6173 2015-07-20  Yao Qi  <yao.qi@linaro.org>
6174
6175         * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
6176         Re-indent the code.
6177         * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
6178         "unsigned long long".
6179
6180 2015-07-18  Kevin Buettner  <kevinb@redhat.com>
6181
6182         * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
6183         to be set for SEC_ALLOC sections too.
6184
6185 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6186
6187         * Makefile.in (HFILES_NO_SRCDIR): Add
6188         nat/aarch64-linux-hw-point.h.
6189         (aarch64-linux-hw-point.o): New rule.
6190         * nat/aarch64-linux-hw-point.h: New file.
6191         * nat/aarch64-linux-hw-point.c: New file.
6192         * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
6193         (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
6194         (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
6195         (AARCH64_HWP_ALIGNMENT): Likewise.
6196         (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
6197         (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
6198         (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
6199         (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
6200         (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
6201         (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
6202         (struct aarch64_debug_reg_state): Likewise.
6203         (struct arch_lwp_info): Likewise.
6204         (aarch64_linux_set_debug_regs): Likewise.
6205         (aarch64_notify_debug_reg_change): Remove static.
6206         (aarch64_align_watchpoint): Likewise.
6207         (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
6208         (aarch64_watchpoint_length): Likewise.
6209         (aarch64_point_encode_ctrl_reg): Likewise
6210         (aarch64_point_is_aligned): Likewise.
6211         (aarch64_dr_state_insert_one_point): Likewise.
6212         (aarch64_dr_state_remove_one_point): Likewise.
6213         (aarch64_handle_breakpoint): Likewise.
6214         (aarch64_handle_aligned_watchpoint): Likewise.
6215         (aarch64_handle_unaligned_watchpoint): Likewise.
6216         (aarch64_handle_watchpoint): Likewise.
6217         * config/aarch64/linux.mh (NAT_FILE): Add
6218         aarch64-linux-hw-point.o.
6219
6220 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6221
6222         * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
6223         state and don't call aarch64_get_debug_reg_state.  All callers
6224         update.
6225         (aarch64_linux_insert_hw_breakpoint): Call
6226         aarch64_get_debug_reg_state earlier.
6227         (aarch64_linux_remove_hw_breakpoint): Likewise.
6228         (aarch64_handle_aligned_watchpoint): Add argument state and
6229         don't call aarch64_get_debug_reg_state.  All callers update.
6230         (aarch64_handle_unaligned_watchpoint): Likewise.
6231         (aarch64_handle_watchpoint): Add argument state.
6232         (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
6233         earlier.
6234         (aarch64_linux_remove_watchpoint): Likewise.
6235
6236 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6237
6238         * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
6239         debug_printf.
6240         (aarch64_handle_unaligned_watchpoint): Likewise.
6241
6242 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6243
6244         * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
6245         argument type's type to 'enum target_hw_bp_type'.
6246         (aarch64_dr_state_remove_one_point): Likewise.
6247         (aarch64_handle_breakpoint): Likewise.
6248         (aarch64_linux_insert_hw_breakpoint): Likewise.
6249         (aarch64_linux_remove_hw_breakpoint): Likewise.
6250         (aarch64_handle_aligned_watchpoint): Likewise.
6251
6252 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6253
6254         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
6255         ptid_get_pid instead of get_thread_id.
6256
6257 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6258
6259         * remote.c (get_current_thread): Initialise ptid to null_ptid.
6260         (add_current_inferior_and_thread): Don't initialise ptid.
6261
6262 2015-07-16  Pierre Langlois  <pierre.langlois@arm.com>
6263
6264         * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
6265         unavailable if invalid.
6266
6267 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6268
6269         Revert the previous 6 commits:
6270         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6271         Move gdb_regex* to common/
6272         Prepare linux_find_memory_regions_full & co. for move
6273         Move linux_find_memory_regions_full & co.
6274         gdbserver build-id attribute generator
6275         Validate symbol file using build-id
6276
6277 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6278             Jan Kratochvil  <jan.kratochvil@redhat.com>
6279
6280         Validate symbol file using build-id.
6281         * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
6282         and 'show validate-build-id'.  Add build-id attribute.
6283         * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
6284         * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
6285         * solib-frv.c (_initialize_frv_solib): Ditto.
6286         * solib-spu.c (set_spu_solib_ops): Ditto.
6287         * solib-svr4.c: Include rsp-low.h.
6288         (NOTE_GNU_BUILD_ID_NAME): New define.
6289         (svr4_validate): New function.
6290         (svr4_copy_library_list): Duplicate field build_id.
6291         (library_list_start_library): Parse 'build-id' attribute.
6292         (svr4_library_attributes): Add 'build-id' attribute.
6293         (_initialize_svr4_solib): Assign validate value.
6294         * solib-target.c (solib.h): Include.
6295         (_initialize_solib_target): Assign validate value.
6296         * solib.c (validate_build_id, show_validate_build_id): New.
6297         (solib_map_sections): Use ops->validate.
6298         (clear_so): Free build_id.
6299         (default_solib_validate): New function.
6300         (_initialize_solib): Add "validate-build-id".
6301         * solib.h (default_solib_validate): New declaration.
6302         * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
6303         (target_so_ops): New field 'validate'.
6304
6305 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6306             Jan Kratochvil  <jan.kratochvil@redhat.com>
6307
6308         gdbserver build-id attribute generator.
6309         * features/library-list-svr4.dtd (library-list-svr4): New
6310         'build-id' attribute.
6311
6312 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6313             Jan Kratochvil  <jan.kratochvil@redhat.com>
6314
6315         Move linux_find_memory_regions_full & co.
6316         * linux-tdep.c (nat/linux-maps.h): Include.
6317         (gdb_regex.h): Remove the include.
6318         (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
6319         (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
6320         (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
6321         (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
6322         * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
6323         and target/target.h.
6324         (struct smaps_vmflags, read_mapping, decode_vmflags)
6325         (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
6326         (linux_find_memory_regions_full): Move from linux-tdep.c.
6327         * nat/linux-maps.h (read_mapping): New declaration.
6328         (linux_find_memory_region_ftype, enum filterflags): Moved from
6329         linux-tdep.c.
6330         (linux_find_memory_regions_full): New declaration.
6331         * target.c (target/target-utils.h): Include.
6332         (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
6333         (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
6334         definitions to target/target-utils.c.
6335         * target.h (target_fileio_read_stralloc): Move it to target/target.h.
6336         * target/target-utils.c (read_alloc, read_stralloc): Move definitions
6337         from target.c.
6338         * target/target-utils.h (read_alloc_pread_ftype): New typedef.
6339         (read_alloc): New declaration.
6340         (read_stralloc_func_ftype): New typedef.
6341         (read_stralloc): New declaration.
6342         * target/target.h (target_fileio_read_stralloc): Move it from target.h.
6343
6344 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6345             Jan Kratochvil  <jan.kratochvil@redhat.com>
6346
6347         Prepare linux_find_memory_regions_full & co. for move.
6348         * linux-tdep.c (linux_find_memory_region_ftype): Comment.
6349         (linux_find_memory_regions_full): Change signature and prepare
6350         for moving to linux-maps.
6351         (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
6352         (linux_find_memory_regions_thunk): New.
6353         (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
6354         (linux_find_memory_regions_gdb): New.
6355         (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
6356         (linux_make_mappings_corefile_notes): Use
6357         linux_find_memory_regions_gdb.
6358         * target.c (read_alloc_pread_ftype): New typedef.
6359         (target_fileio_read_alloc_1_pread): New function.
6360         (read_alloc): Refactor from target_fileio_read_alloc_1.
6361         (read_stralloc_func_ftype): New typedef.
6362         (target_fileio_read_alloc_1): New implementation. Use read_alloc.
6363         (read_stralloc): Refactored from target_fileio_read_stralloc.
6364         (target_fileio_read_stralloc): New implementation, use read_stralloc.
6365
6366 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6367
6368         * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
6369         common/gdb_regex.h.
6370         (COMMON_OBS): Add gdb_regex.o.
6371         (gdb_regex.o): New.
6372         * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
6373         --without-included-regex and USE_INCLUDED_REGEX.
6374         * common/gdb_regex.c: New file from utils.c functions.
6375         * common/gdb_regex.h: Move it here from gdb_regex.h, update include
6376         file wrapping define name.
6377         * configure: Rebuilt.
6378         * configure.ac (gdb_use_included_regex, --without-included-regex)
6379         (USE_INCLUDED_REGEX): Move them to common/common.m4.
6380         * gdb_regex.h: Move it to common/gdb_regex.h.
6381         * utils.c: Remove include gdb_regex.h.
6382         (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
6383         (compile_rx_or_error): Move them to common/gdb_regex.c.
6384
6385 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6386             Jan Kratochvil  <jan.kratochvil@redhat.com>
6387
6388         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6389         * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
6390         common/target-utils.h.
6391         (COMMON_OBS): Add target-utils.o.
6392         (linux-maps.o, target-utils.o): New.
6393         * target/target-utils.c: New file.
6394         * target/target-utils.h: New file.
6395         * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
6396         * config/i386/linux64.mh (NATDEPFILES): Ditto.
6397         * nat/linux-maps.c: New file.
6398         * nat/linux-maps.h: New file.
6399
6400 2015-07-15  Markus Metzger  <markus.t.metzger@intel.com>
6401             Pedro Alves <palves@redhat.com>
6402
6403         * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
6404         (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
6405         (perf_event_read_bts): Change the type of SIZE and READ.
6406         (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
6407         and DATA_OFFSET.  Move DATA_SIZE declaration.  Restrict the buffer size
6408         to UINT_MAX.  Check for overflows when using DATA_HEAD from the perf
6409         mmap page.
6410         (linux_enable_pt): Change the type of PAGES and SIZE.  Restrict the
6411         buffer size to UINT_MAX.
6412         (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
6413         DATA_TAIL.
6414         * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
6415         <last_head>: Change type.
6416         * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
6417         * common/btrace-common.c (btrace_data_append): Change the type of
6418         SIZE.
6419         * btrace.c (parse_xml_raw): Change the type of SIZE.  Change oddness
6420         check.
6421
6422 2015-07-14  Simon Marchi  <simon.marchi@ericsson.com>
6423
6424         * gdbtypes.h (CHECK_TYPEDEF): Remove.
6425         * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
6426         with check_typedef.
6427         * ada-lang.c (decode_constrained_packed_array_type): Likewise.
6428         (ada_array_length): Likewise.
6429         (find_parallel_type_by_descriptive_type): Likewise.
6430         (ada_check_typedef): Likewise.
6431         * arm-tdep.c (arm_return_in_memory): Likewise.
6432         * ax-gdb.c (gen_trace_static_fields): Likewise.
6433         (gen_struct_ref_recursive): Likewise.
6434         * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6435         (variable: block COLONCOLON name): Likewise.
6436         (qualified_name: TYPENAME COLONCOLON name): Likewise.
6437         * c-lang.c (classify_type): Likewise.
6438         * c-typeprint.c (c_print_type): Likewise.
6439         (c_print_typedef): Likewise.
6440         (c_type_print_base): Likewise.
6441         * c-valprint.c (c_val_print): Likewise.
6442         * compile/compile-c-types.c (convert_type): Likewise.
6443         * compile/compile-object-load.c (get_out_value_type): Likewise.
6444         * completer.c (add_struct_fields): Likewise.
6445         (expression_completer): Likewise.
6446         * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
6447         (cp_lookup_nested_symbol_1): Likewise.
6448         (cp_lookup_nested_symbol): Likewise.
6449         * cp-valprint.c (cp_print_value_fields): Likewise.
6450         (cp_print_static_field): Likewise.
6451         * d-valprint.c (d_val_print): Likewise.
6452         * eval.c (evaluate_subexp_standard): Likewise.
6453         (evaluate_subexp_for_sizeof): Likewise.
6454         * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6455         * f-typeprint.c (f_type_print_base): Likewise.
6456         * f-valprint.c (f_val_print): Likewise.
6457         * gdbtypes.c (get_discrete_bounds): Likewise.
6458         (create_array_type_with_stride): Likewise.
6459         (type_name_no_tag_or_error): Likewise.
6460         (lookup_struct_elt_type): Likewise.
6461         (get_unsigned_type_max): Likewise.
6462         (internal_type_vptr_fieldno): Likewise.
6463         (set_type_vptr_fieldno): Likewise.
6464         (internal_type_vptr_basetype): Likewise.
6465         (set_type_vptr_basetype): Likewise.
6466         (get_vptr_fieldno): Likewise.
6467         (is_integral_type): Likewise.
6468         (is_scalar_type): Likewise.
6469         (is_scalar_type_recursive): Likewise.
6470         (distance_to_ancestor): Likewise.
6471         (is_unique_ancestor_worker): Likewise.
6472         (check_types_equal): Likewise.
6473         * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
6474
6475 2015-07-14  Iain Buclaw  <ibuclaw@gdcproject.org>
6476
6477         * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
6478         also test for language_d.
6479         (dwarf2_compute_name): Likewise.
6480         (read_func_scope): Likewise.
6481         (read_structure_type): Likewise.
6482         (new_symbol_full): Likewise.
6483         (determine_prefix): Likewise.
6484         (read_import_statement): Use dot as the separator for language_d.
6485         (typename_concat): Likewise, but don't prefix the D main function.
6486
6487 2015-07-14  Peter Bergner  <bergner@vnet.ibm.com>
6488
6489         * nat/linux-namespaces.c (setns): Rename from this ...
6490         (do_setns): ... to this.  Support calling setns if it exists.
6491         (mnsh_handle_setns): Call do_setns.
6492
6493 2015-07-13  Yao Qi  <yao.qi@linaro.org>
6494
6495         * exec.c (exec_file_attach): Add period at the end of error
6496         message.
6497
6498 2015-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
6499
6500         * tui/tui-win.c (window_name_completer): New function.
6501         (focus_completer): Call window_name_completer.  All old content
6502         moved into window_name_completer.
6503         (winheight_completer): New function.
6504         (_initialize_tui_win): Rename variable.  Add completer to
6505         winheight command.  Update doc string on winheight.
6506
6507 2015-07-12  Sandra Loosemore  <sandra@codesourcery.com>
6508
6509         * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
6510         all nios2 mach variants.
6511
6512 2015-07-10  Kevin Buettner  <kevinb@redhat.com>
6513
6514         * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
6515         of target_read_memory.
6516
6517 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6518
6519         * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
6520         string copy.
6521         (parse_scrolling_args): Likewise.
6522
6523 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6524
6525         * tui/tui-win.c (focus_completer): Don't duplicate the tui window
6526         names in this function.
6527
6528 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6529
6530         * tui/tui-data.h (SRC_NAME): Convert to lower case.
6531         (CMD_NAME): Likewise.
6532         (DATA_NAME): Likewise.
6533         (DISASSEM_NAME): Likewise.
6534         * tui/tui-win.c (tui_set_focus): Window names are now lower case.
6535         (tui_set_win_height): Likewise.
6536         (parse_scrolling_args): Likewise.
6537
6538 2015-07-10  Markus Metzger  <markus.t.metzger@intel.com>
6539
6540         * record-btrace.c (record_btrace_goto_begin)
6541         (record_btrace_goto_end, record_btrace_goto): Move call to
6542         print_stack_frame ...
6543         (record_btrace_set_replay): ... here.  Set stop_pc.
6544         * record-full.c (record_full_goto_entry): Set stop_pc.
6545
6546 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6547
6548         * NEWS: Mention support for tracepoints on aarch64-linux.
6549
6550 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6551
6552         * linux-aarch64-low.c (aarch64_supports_tracepoints): New
6553         function.  Return 1.
6554         (the_low_target): Install it.
6555
6556 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6557
6558         * gdb.trace/backtrace.exp: Set registers for aarch64 target.
6559         * gdb.trace/collection.exp: Likewise.
6560         * gdb.trace/mi-trace-frame-collected.exp: Likewise.
6561         * gdb.trace/mi-trace-unavailable.exp: Likewise.
6562         * gdb.trace/report.exp: Likewise.
6563         * gdb.trace/trace-break.exp: Likewise.
6564         * gdb.trace/unavailable.exp: Likewise.
6565         * gdb.trace/while-dyn.exp: Likewise.
6566
6567 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6568
6569         * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
6570         (aarch64_gen_return_address): New function.
6571         (aarch64_gdbarch_init): Hook it.
6572
6573 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6574
6575         * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
6576         swallow NOT_AVAILABLE_ERROR.
6577         (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
6578         available_p is not set.
6579         (aarch64_stub_frame_unwind_stop_reason): New function.
6580         (aarch64_stub_unwind): Install it.
6581
6582 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6583
6584         * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6585         field.
6586         (aarch64_make_prologue_cache_1): New function, factored out from
6587         aarch64_make_prologue_cache.  Do not allocate cache.  Set
6588         available_p.
6589         (aarch64_make_prologue_cache): Reimplement wrapping
6590         aarch64_make_prologue_cache_1, and swallowing
6591         NOT_AVAILABLE_ERROR.
6592         (aarch64_prologue_frame_unwind_stop_reason): New function.
6593         Return UNWIND_UNAVAILABLE if available_p is not set.
6594         (aarch64_prologue_unwind): Install it.
6595         (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6596         checks into aarch64_prologue_frame_unwind_stop_reason.  Call
6597         frame_id_build_unavailable_stack if available_p is not set.
6598
6599 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6600
6601         * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6602         fields.
6603         (aarch64_scan_prologue): Set prev_pc.
6604         (aarch64_make_prologue_cache): Set func.
6605         (aarch64_make_stub_cache): Set prev_pc.
6606         (aarch64_prologue_this_id): Remove local variables id, pc and
6607         func.  Read prev_pc and func from cache.
6608         (aarch64_stub_this_id): Read prev_pc from cache.
6609
6610 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6611
6612         * aarch64-tdep.c (aarch64_make_stub_cache): Update comment.  New
6613         argument this_cache.  Remove unused local variables reg and
6614         unwound_fp.  Return early if this_cache is already set.  Set
6615         this_cache.
6616         (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6617
6618 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6619
6620         * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6621         New argument this_cache.  Return early if this_cache is already
6622         set.  Set this_cache.
6623         (aarch64_prologue_this_id): Update call to
6624         aarch64_make_prologue_cache.
6625         (aarch64_prologue_prev_register): Likewise.
6626         (aarch64_normal_frame_base): Likewise.
6627
6628 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6629
6630         * c-valprint.c (c_val_print): Factor out memberptr printing code
6631         from c_val_print to ...
6632         (c_val_print_memberptr): ... this new function.
6633
6634 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6635
6636         * c-valprint.c (c_val_print): Factor out int printing code to ...
6637         (c_val_print_int): ... this new function.
6638
6639 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6640
6641         * c-valprint.c (c_val_print): Factor out struct and union
6642         printing code to ...
6643         (c_val_print_struct): ... this new function ...
6644         (c_val_print_union): ... and this new function.
6645
6646 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6647
6648         * c-valprint.c (c_val_print): Factor out pointer printing code
6649         to ...
6650         (c_val_print_ptr): ... this new function.
6651
6652 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6653
6654         * c-valprint.c (c_valprint): Factor our array printing code from
6655         c_val_print to ...
6656         (c_val_print_array): ... this new function.
6657
6658 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6659
6660         * c-valprint.c (c_val_print): Factor out pointer printing code
6661         to ...
6662         (print_unpacked_pointer): ... this new function.
6663
6664 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6665
6666         * c-valprint.c (c_val_print): Remove an assignment to i and move
6667         its declaration.
6668
6669 2015-07-09  Yao Qi  <yao.qi@linaro.org>
6670
6671         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6672         argument ptid.  Update comments.  Caller update.
6673
6674 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
6675
6676         * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6677         mnt packets.
6678
6679 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
6680
6681         * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6682
6683 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
6684
6685         * progspace.c (delete_program_space): Add missing spaces.
6686
6687 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
6688
6689         * inferior.c (delete_inferior_1): Rename to ...
6690         (delete_inferior): ..., remove 'silent' parameter, delete
6691         program space when unused and remove call to prune_program_spaces.
6692         Remove the old, unused, delete_inferior.
6693         (delete_inferior_silent): Remove.
6694         (prune_inferiors): Change call from delete_inferior_1 to
6695         delete_inferior and remove 'silent' parameter. Remove call to
6696         prune_program_spaces.
6697         (remove_inferior_command): Idem.
6698         * inferior.h (delete_inferior_1): Rename to...
6699         (delete_inferior): ..., remove 'silent' parameter and remove the
6700         original delete_inferior.
6701         (delete_inferior_silent): Remove.
6702         * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6703         delete_inferior_1 to delete_inferior and remove 'silent'
6704         parameter.
6705         * progspace.c (prune_program_spaces): Remove.
6706         (pspace_empty_p): Rename to...
6707         (program_space_empty_p): ... and make non-static.
6708         (delete_program_space): New.
6709         * progspace.h (prune_program_spaces): Remove declaration.
6710         (program_space_empty_p): New declaration.
6711         (delete_program_space): New declaration.
6712         * monitor.c (monitor_close): Replace call to
6713         delete_thread_silent and delete_inferior_silent with
6714         discard_all_inferiors.
6715
6716 2015-07-08  Patrick Palka  <patrick@parcs.ath.cx>
6717
6718         * defs.h (deprecated_register_changed_hook): Remove prototype.
6719         * interps.c (clear_iterpreter_hooks): Remove reference to
6720         deprecated_register_changed_hook.
6721         * top.c (deprecated_register_changed_hook): Remove prototype.
6722         * valops.c (value_assign): Remove reference to
6723         deprecated_register_changed_hook.
6724         * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6725         Add comment documenting the function.
6726         (tui_register_changed_observer): Define.
6727         (tui_install_hooks): Remove reference to
6728         deprecated_register_changed_hook.  Set
6729         tui_register_changed_observer.
6730         (tui_remove_hooks): Remove reference to
6731         deprecated_register_changed_hook.  Unset
6732         tui_register_changed_observer.
6733
6734 2015-07-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
6735
6736         PR compile/18484
6737         * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6738
6739 2015-07-08  Robert O'Callahan  <robert@ocallahan.org>
6740
6741         PR exp/18617
6742         * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6743
6744 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6745
6746         * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6747
6748 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6749
6750         * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6751         Use safe_strerror() instead of strerror().
6752
6753 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6754
6755         * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6756         * features/arm-with-m-fpa-layout.c: Regenerated.
6757         * features/arm-with-m-vfp-d16.xml: Likewise.
6758         * features/arm-with-m-vfp-d16.c: Regenerated.
6759         * features/arm-with-m.xml: Likewise.
6760         * features/arm-with-m.c: Regenerated.
6761         * features/arm-with-neon.xml: Likewise.
6762         * features/arm-with-neon.c: Regenerated.
6763         * features/arm-with-vfpv2.xml: Likewise.
6764         * features/arm-with-vfpv2.c: Regenerated.
6765         * features/arm-with-vfpv3.xml: Likewise.
6766         * features/arm-with-vfpv3.c: Regenerated.
6767
6768 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6769
6770         * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6771         arm-linux-nat.c.
6772         * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6773         elf/external.h.
6774         (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6775         if target is 32-bit.
6776         (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6777         if target is 32-bit.
6778         (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6779         if target is 32-bit.
6780         (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6781         if target is 32-bit.
6782         (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6783         (aarch64_linux_read_description): Return the right target
6784         description.
6785         * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6786         * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6787         * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6788         arm-linux-tdep.o.
6789
6790 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6791
6792         * aarch32-linux-nat.c: New file.
6793         * aarch32-linux-nat.h: New file.
6794         * arm-linux-nat.c: Include aarch32-linux-nat.h.
6795         (fetch_regs): Move code to aarch32-linux-nat.c.  Call
6796         aarch32_gp_regcache_supply.
6797         (store_regs): Move code to aarch32-linux-nat.c.  Call
6798         aarch32_gp_regcache_collect.
6799         (fetch_vfp_regs): Move code to aarch32-linux-nat.c.  Call
6800         aarch32_vfp_regcache_supply.
6801         (store_vfp_regs): Move code to aarch32-linux-nat.c.  Call
6802         aarch32_vfp_regcache_collect.
6803         * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6804
6805 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6806
6807         * arm-linux-nat.c (store_fpregister): Remove.
6808         (store_register): Likewise.
6809         (fetch_fpregister): Likewise.
6810         (fetch_register): Likewise.
6811         (arm_linux_store_inferior_registers): Call store_regs and
6812         store_fpregs instead.
6813         (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6814         fetch_regs instead.
6815
6816 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6817
6818         * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6819         and focus commands.
6820
6821 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
6822
6823         * NEWS: Create a new section for the next release branch.
6824         Rename the section of the current branch, now that it has
6825         been cut.
6826
6827 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
6828
6829         GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6830         * version.in: Bump version to 7.10.50.DATE-cvs.
6831
6832 2015-07-06  Luis Machado  <lgustavo@codesourcery.com>
6833
6834         * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6835         breakpoints in a special way.
6836         (remove_breakpoint): Likewise.
6837         (mark_breakpoints_out): Likewise.
6838
6839 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6840
6841         * doc/gdb.texinfo (TUI): Add comma after @xref.
6842
6843 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6844
6845         * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6846         instead of casting the structure type.
6847
6848 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
6849
6850         * valops.c (search_struct_field): Remove OFFSET parameter.
6851         (value_cast_structs): Adjust calls to search_struct_field.
6852         (value_struct_elt): Same.
6853         (find_overload_match): Same.
6854
6855 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
6856
6857         * value.c (value_fetch_lazy): Update comment, change return
6858         value to void.
6859         * value.h (value_fetch_lazy): Change return value to void.
6860
6861 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6862
6863         * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6864         (tui_win_name): Make parameter and result const.
6865         * tui/tui-data.h (tui_win_name): Make parameter and result const.
6866
6867 2015-07-06  Patrick Palka  <patrick@parcs.ath.cx>
6868
6869         * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6870         use printf_unfiltered.
6871         (set_mpx_cmd): Add missing trailing space to command string
6872         literal.
6873         (_initialize_i386_tdep): Give the "mpx" prefix command its
6874         correct name.
6875
6876 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
6877
6878         * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6879         (enum rx_frame_type): New.
6880         (struct rx_prologue): Add new field `frame_type'.
6881         (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6882         parameter in the prologue struct.  Add code for recording
6883         locations of PC and PSW for fast interrupt and exception frames.
6884         (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6885         (rx_analyze_frame_prologue): Add `frame_type' parameter.
6886         (rx_frame_type): New function.
6887         (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6888         (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6889         `this_cache'.
6890         (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
6891         `this_cache'.  Add cases for RX_FRAME_TYPE_EXCEPTION and
6892         RX_FRAME_TYPE_FAST_INTERRUPT.
6893         (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6894         (rx_frame_sniffer, rx_exception_sniffer): New functions.
6895         (rx_frame_unwind): Use rx_frame_sniffer instead of
6896         default_frame_sniffer.
6897         (rx_frame_unwind): New unwinder.
6898         (rx_gdbarch_init): Register new unwinder.
6899
6900 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
6901
6902         * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6903         (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6904         (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6905         and RX_FPSW_REGNUM.
6906         (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6907
6908 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6909
6910         Fix GCC false warning.
6911         * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6912
6913 2015-07-02  Yao Qi  <yao.qi@linaro.org>
6914
6915         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6916         typo in the debugging message.
6917
6918 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6919
6920         * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6921         (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6922         (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6923         (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6924         (btrace_maint_clear): New.
6925         (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6926         (pt_print_packet, btrace_maint_decode_pt)
6927         (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6928         (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6929         (maint_btrace_packet_history_cmd)
6930         (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6931         (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6932         (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6933         (maint_info_btrace_cmd, _initialize_btrace): New.
6934         * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6935         (btrace_maint_packet_history, btrace_maint_info): New.
6936         (btrace_thread_info) <maint>: New.
6937         * NEWS: Announce it.
6938
6939 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6940
6941         * btrace.c (btrace_fetch): Append the new trace data.
6942         (btrace_clear): Clear the stored trace data.
6943         * btrace.h (btrace_thread_info) <data>: New.
6944         * common/btrace-common.h (btrace_data_clear)
6945         (btrace_data_append): New.
6946         * common/btrace-common.c (btrace_data_clear)
6947         (btrace_data_append): New.
6948
6949 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6950
6951         * nat/linux-btrace.c (linux_enable_bts): Check for
6952         PERF_ATTR_SIZE_VER5.
6953         Check for data_offset and data_size fields.  Use them.
6954
6955 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6956
6957         * NEWS: Announce new commands "record btrace pt" and "record pt".
6958         Announce new options "set|show record btrace pt buffer-size".
6959         * btrace.c: Include "rsp-low.h".
6960         Include "inttypes.h".
6961         (btrace_add_pc): Add forward declaration.
6962         (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6963         (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6964         (btrace_compute_ftrace_pt): New.
6965         (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6966         (check_xml_btrace_version): Update version check.
6967         (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6968         (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6969         (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6970         (btrace_pt_children): New.
6971         (btrace_children): Add support for "pt".
6972         (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6973         (btrace_conf_children): Add support for "pt".
6974         * btrace.h: Include "intel-pt.h".
6975         (btrace_pt_error): New.
6976         * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6977         (btrace_data_empty): Support BTRACE_FORMAT_PT.
6978         * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6979         (struct btrace_config_pt): New.
6980         (struct btrace_config)<pt>: New.
6981         (struct btrace_data_pt_config, struct btrace_data_pt): New.
6982         (struct btrace_data)<pt>: New.
6983         * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6984         (pt): New.
6985         * features/btrace.dtd (btrace)<pt>: New.
6986         (pt, pt-config, cpu): New.
6987         * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6988         (perf_event_pt_event_type, kernel_supports_pt)
6989         (linux_supports_pt): New.
6990         (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6991         (linux_enable_bts): Free tinfo on error.
6992         (linux_enable_pt): New.
6993         (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6994         (linux_disable_pt): New.
6995         (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6996         (linux_fill_btrace_pt_config, linux_read_pt): New.
6997         (linux_read_btrace): Support BTRACE_FORMAT_PT.
6998         * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6999         (struct btrace_target_info)<pt>: New.
7000         * record-btrace.c (set_record_btrace_pt_cmdlist)
7001         (show_record_btrace_pt_cmdlist): New.
7002         (record_btrace_print_pt_conf): New.
7003         (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
7004         (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
7005         (cmd_record_btrace_pt_start): New.
7006         (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
7007         (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
7008         (_initialize_record_btrace): Add new commands.
7009         * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
7010         (remote_protocol_features): Add "Qbtrace:pt".
7011         Add "Qbtrace-conf:pt:size".
7012         (remote_supports_btrace): Support BTRACE_FORMAT_PT.
7013         (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
7014         (remote_enable_btrace): Support BTRACE_FORMAT_PT.
7015         (_initialize_remote): Add new commands.
7016
7017 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
7018
7019         * configure.ac: check for libipt
7020         * configure: Regenerate.
7021         * config.in: Regenerate.
7022         * Makefile.in (LIBIPT): New.
7023         (CLIBS): Add $LIBIPT.
7024         * NEWS: document new configure options
7025
7026 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7027
7028         * compile/compile-object-load.c (compile_object_load): Replace debug
7029         message "lookup undefined ELF symbol" by 3 more specific messages.
7030
7031 2015-07-01  Kevin Buettner  <kevinb@redhat.com>
7032
7033         * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
7034         (rl78_register_type): Add case for RL78_PSW_REGNUM.
7035         (rl78_gdbarch_init): Initialize rl78_psw_type.
7036
7037 2015-07-01  Patrick Palka  <patrick@parcs.ath.cx>
7038
7039         * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
7040         Update commentary.  Always refresh the registers when frame
7041         information has changed.
7042         * tui/tui-stack.c (tui_show_frame_info): Update commentary.
7043         Change return type to int.  Return 1 if frame information has
7044         changed, 0 otherwise.
7045         (tui_before_prompt): Update commentary.
7046         * tui/tui-stack.h (tui_show_frame_info): Change return type to
7047         int.
7048
7049 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
7050
7051         PR tui/13378
7052         * frame.c (select_frame): Remove reference to
7053         deprecated_selected_frame_level_changed_hook.
7054         * frame.h (deprecated_selected_frame_level_changed_hook): Remove
7055         declaration.
7056         * stack.c (deprecated_selected_frame_level_changed_hook):
7057         Likewise.
7058         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
7059         Rename to ...
7060         (tui_refresh_frame_and_register_information): ... this.  Bail
7061         out if there is no stack.  Don't update register information
7062         unless registers_too_p is true.
7063         (tui_print_frame_info_listing_hook): Rename to ...
7064         (tui_dummy_print_frame_info_listing_hook): ... this.
7065         (tui_before_prompt): New function.
7066         (tui_normal_stop): New function.
7067         (tui_before_prompt_observer): New observer.
7068         (tui_normal_stop_observer): New observer.
7069         (tui_install_hooks): Set
7070         deprecated_print_frame_info_listing_hook to
7071         tui_dummy_print_frame_info_listing_hook.  Register
7072         tui_before_prompt_observer to call tui_before_prompt and
7073         tui_normal_stop_observer to call tui_normal_stop.  Remove
7074         reference to deprecated_selected_frame_level_changed_hook.
7075         (tui_remove_hooks): Detach and unset tui_before_prompt_observer
7076         and tui_normal_stop_observer.  Remove reference to
7077         deprecated_selected_frame_level_changed_hook.
7078
7079 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
7080
7081         PR tui/13378
7082         * tui/tui-stack.c (tui_set_locator_info): Change prototype to
7083         return an int instead of void.  Return whether the locator
7084         window has changed.
7085         (tui_show_frame_info): If the locator info has not changed, then
7086         bail out early to avoid refreshing the windows.
7087
7088 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
7089
7090         * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
7091         LOCATOR_WIN to tui_alloc_content.
7092
7093 2015-06-30  Yao Qi  <yao.qi@linaro.org>
7094
7095         PR tdep/18605
7096         * arm-tdep.c (arm_get_next_pc_raw): Break for media
7097         instructions.
7098
7099 2015-06-29  Kevin Buettner  <kevinb@redhat.com>
7100
7101         * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
7102         (rx_dwarf_reg_to_regnum): New function.
7103         (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum.  Use dwarf2
7104         unwinding.
7105
7106 2015-06-29  Pedro Alves  <palves@redhat.com>
7107
7108         PR threads/18127
7109         * infcall.c (run_inferior_call): On infcall success, if the thread
7110         was marked stopped before, reset it back to stopped.
7111         * infrun.c (resume): Don't suppress the set_running calls when
7112         doing an infcall.
7113         (normal_stop): Only discard the finish_thread_state cleanup if the
7114         infcall succeeded.
7115
7116 2015-06-29  Pierre Langlois  <pierre.langlois@arm.com>
7117
7118         * MAINTAINERS (Write After Approval): Update my email address.
7119
7120 2015-06-26  Keith Seitz  <keiths@redhat.com>
7121             Doug Evans  <dje@google.com>
7122
7123         PR 16253
7124         * block.c (block_lookup_symbol): For non-function blocks,
7125         continue to search for a symbol with an exact domain match
7126         Otherwise, return any previously found "best domain" symbol.
7127         (block_lookup_symbol_primary): Likewise.
7128
7129 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
7130
7131         * NEWS: Mention the new option "history remove-duplicates".
7132         * top.c (history_remove_duplicates): New static variable.
7133         (show_history_remove_duplicates): New static function.
7134         (gdb_add_history): Conditionally remove duplicate history
7135         entries.
7136         (init_main): Add "history remove-duplicates" option.
7137
7138 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
7139
7140         * tui/tui-win.c (focus_completer): New static function.
7141         (_initialize_tui_win): Set the completion function of the
7142         "focus" command to focus_completer.
7143
7144 2015-06-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
7145
7146         * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
7147         and language_asm..
7148         * symtab.c (find_function_start_sal): Likewise.
7149
7150 2015-06-25  Gary Benson  <gbenson@redhat.com>
7151
7152         * solib.c (solib_find_1): Set local variable sysroot to NULL if
7153         it is the empty string after trailing slashes have been stripped.
7154
7155 2015-06-25  Gary Benson  <gbenson@redhat.com>
7156
7157         * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
7158         * infrun.c (follow_exec): Likewise.
7159         * remote.c (remote_filesystem_is_local): Likewise.
7160         * solib.c (solib_find_1): Likewise.
7161
7162 2015-06-24  Keith Seitz  <keiths@redhat.com>
7163
7164         * build-id.c (build_id_to_debug_bfd): Add cleanup to free
7165         return value from lrealpath.
7166
7167 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
7168
7169         * remote-sim.c (gdbsim_open): Move sysroot update to the top.
7170
7171 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
7172
7173         * remote-sim.c: Include gdb_bfd.h.
7174         (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
7175         Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
7176
7177 2015-06-24  Yao Qi  <yao.qi@linaro.org>
7178
7179         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
7180         set_gdbarch_get_siginfo_type.
7181         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
7182         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
7183         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
7184         * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
7185         * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
7186         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7187         * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
7188         * linux-tdep.c (linux_get_siginfo_type): Change it to static.
7189         (linux_init_abi): Call set_gdbarch_get_siginfo_type.
7190         * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
7191
7192 2015-06-24  Gary Benson  <gbenson@redhat.com>
7193
7194         * common/buffer.c (stdint.h): Do not include.
7195         * common/print-utils.c (stdint.h): Likewise.
7196         * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
7197         * compile/compile-c-types.c (gdb_assert.h): Likewise.
7198         * ft32-tdep.c (gdb_assert.h): Likewise.
7199         * guile/scm-utils.c (stdint.h): Likewise.
7200         * i386-linux-tdep.c (stdint.h): Likewise.
7201         * i386-tdep.c (stdint.h): Likewise.
7202         * nat/linux-btrace.c (stdint.h): Likewise.
7203         * nat/linux-btrace.h (stdint.h): Likewise.
7204         * nat/linux-ptrace.c (stdint.h): Likewise.
7205         * nat/mips-linux-watch.h (stdint.h): Likewise.
7206         * ppc-linux-nat.c (stdint.h): Likewise.
7207         * python/python-internal.h (stdint.h): Likewise.
7208         * stub-termcap.c (stdlib.h): Likewise.
7209         * target/target.h (stdint.h): Likewise.
7210         * xtensa-linux-nat.c (stdint.h): Likewise.
7211
7212 2015-06-23  Patrick Palka  <patrick@parcs.ath.cx>
7213
7214         * top.c (init_history): Look at errno after calling strtol to
7215         properly map large GDBHISTSIZE values to infinity.
7216
7217 2015-06-23  Doug Evans  <dje@google.com>
7218
7219         * inferior.h (struct inferior_suspend_state): Delete, unused.
7220         All references deleted.
7221
7222 2015-06-23  Mike Frysinger  <vapier@gentoo.org>
7223
7224         * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
7225         (microblaze_push_dummy_call): Likewise.
7226         (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
7227         and set_gdbarch_push_dummy_call.
7228
7229 2015-06-23  Yao Qi  <yao.qi@linaro.org>
7230
7231         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
7232         Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
7233         (amd64_linux_store_inferior_registers): Likewise.
7234         * arm-linux-nat.c (fetch_fpregister): Likewise.
7235         (fetch_fpregs, store_fpregister): Likewise.
7236         (store_fpregister, store_fpregs): Likewise.
7237         (fetch_register, fetch_regs): Likewise.
7238         (store_register, store_regs): Likewise.
7239         (fetch_vfp_regs, store_vfp_regs): Likewise.
7240         (arm_linux_read_description): Check have_ptrace_getregset is
7241         TRIBOOL_UNKNOWN.  Set have_ptrace_getregset to TRIBOOL_TRUE
7242         or TRIBOOL_FALSE.
7243         * i386-linux-nat.c (fetch_xstateregs): Check
7244         have_ptrace_getregset is not TRIBOOL_TRUE.
7245         (store_xstateregs): Likewise.
7246         * linux-nat.c (have_ptrace_getregset): Change its type to
7247         enum tribool.
7248         * linux-nat.h (tribool): New enum.
7249         * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
7250         Check whether have_ptrace_getregset is TRIBOOL_TRUE.
7251
7252 2015-06-19  Doug Evans  <dje@google.com>
7253
7254         * NEWS: Mention Sun's version of stabs is no longer supported.
7255         * elfread.c (free_elfinfo): Delete.  All uses updated.
7256         (elfstab_offset_sections): Delete.  All uses updated.
7257         * gdb-stabs.h (stab_section_info): Delete.  All uses updated.
7258         * psympriv.h (partial_symtab) <section_offsets>: Delete.
7259         All uses updated.
7260         * psymtab.c (start_psymtab_common): Delete arg section_offsets.
7261         All callers updated.
7262
7263 2015-06-18  Simon Marchi  <simon.marchi@ericsson.com>
7264
7265         * common/rsp-low.c (needs_escaping): New.
7266         (remote_escape_output): Add unit_size parameter. Refactor to
7267         support multi-byte addressable units.  Rename parameters.
7268         * common/rsp-low.h (remote_escape_output): Add unit_size
7269         parameter and rename others. Update doc.
7270         * remote.c (align_for_efficient_write): New.
7271         (remote_write_bytes_aux): Add unit_size parameter and use it.
7272         Rename some variables.  Update doc.
7273         (remote_xfer_partial): Get unit size and use it.
7274         (remote_read_bytes_1): Add unit_size parameter and use it.
7275         Rename some variables. Update doc.
7276         (remote_write_bytes): Same.
7277         (remote_xfer_live_readonly_partial): Same.
7278         (remote_read_bytes): Same.
7279         (remote_flash_write): Update call to remote_write_bytes_aux.
7280         (remote_write_qxfer): Update call to remote_escape_output.
7281         (remote_search_memory): Same.
7282         (remote_hostio_pwrite): Same.
7283
7284 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
7285
7286         * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
7287         locations as inserted.
7288         Update and expand comment about permanent locations.
7289         (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
7290         Move comment to add_location_to_breakpoint.
7291         (update_global_location_list): Don't error out if a permanent
7292         breakpoint is not marked inserted.
7293         Don't error out if a non-permanent breakpoint location is inserted on
7294         top of a permanent breakpoint.
7295
7296 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
7297
7298         * breakpoint.c (make_breakpoint_permanent): Remove unused
7299         function.
7300         * breakpoint.h (make_breakpoint_permanent): Remove declaration.
7301
7302 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
7303
7304         PR gdb/16999
7305         * NEWS: Mention new GDBHISTSIZE behavior.
7306         * top.c (init_history): For null or out-of-range GDBHISTSIZE,
7307         set history size to unlimited.  Ignore non-numeric GDBHISTSIZE.
7308
7309 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
7310
7311         * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
7312         * top.c (init_history): Read from GDBHISTSIZE instead of
7313         HISTSIZE.
7314         (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
7315
7316 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
7317
7318         * top.c (gdb_safe_append_history): Do not call
7319         history_truncate_file if the history is not stifled.
7320
7321 2015-06-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7322
7323         * syscalls/s390-linux.xml: Add syscalls 344 through 354.
7324         * syscalls/s390x-linux.xml: Likewise.
7325
7326 2015-06-16  Michael Eager  <eager@eagercon.com>
7327
7328         * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
7329
7330 2015-06-16  Patrick Palka  <patrick@parcs.ath.cx>
7331
7332         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
7333         target_terminal_ours_for_output() before calling
7334         tui_show_frame_info(), and restore the original terminal
7335         settings afterwards.
7336
7337 2015-06-16  Martin Simmons  <martin@lispworks.com>  (tiny patch)
7338
7339         * arm-linux-nat.c: Include nat/linux-ptrace.h.
7340
7341 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
7342
7343         * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
7344         memory unit size.
7345         (mi_cmd_data_write_memory_bytes): Same.
7346
7347 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
7348
7349         * corefile.c (write_memory): Update doc.
7350         * gdbcore.h (write_memory): Same.
7351
7352 2015-06-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
7353
7354         * linux-tdep.c (enum filterflags): Make it from anonymous enum.
7355         (dump_mapping_p): Use it for parameter filterflags.
7356         (linux_find_memory_regions_full): Use it for variable filterflags.
7357
7358 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
7359             Jan Kratochvil  <jan.kratochvil@redhat.com>
7360
7361         Merge multiple hex conversions.
7362         * monitor.c: Include rsp-low.h.
7363         (fromhex): Remove definition.
7364
7365 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
7366             Jan Kratochvil  <jan.kratochvil@redhat.com>
7367
7368         Move utility functions to common/.
7369         * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
7370         Move defs to common/common-utils.c.
7371         * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
7372         (skip_to_space_const): Move decls to common/common-utils.h.
7373         * common/common-defs.h: Move include of common-types.h before
7374         common-utils.h.
7375         * common/common-utils.c: Include host-defs.h and ctype.h.
7376         (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
7377         from utils.c.
7378         (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
7379         cli/cli-utils.c.
7380         * common/common-utils.h (strtoulst): Move decl from utils.h.
7381         (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
7382         Move from cli/cli-utils.h.
7383         * common/host-defs.h: Include limits.h.
7384         (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
7385         (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
7386         * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
7387         common/common-utils.h.
7388         * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
7389         (strtoulst): Move to common/common-utils.c.
7390         * utils.h (strtoulst): Moved decl to common/common-utils.h.
7391
7392 2015-06-15  Yao Qi  <yao.qi@linaro.org>
7393
7394         * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
7395
7396 2015-06-10  Jon Turney  <jon.turney@dronecode.org.uk>
7397
7398         * build-id.c: Don't include elf-bfd.h.
7399         (build_id_bfd_get): Use bfd_build_id.
7400         (build_id_verify): Ditto.
7401         * build-id.h: Ditto.
7402         (find_separate_debug_file_by_buildid): Ditto.
7403         * python/py-objfile.c: Don't include elf-bfd.h.
7404         (objfpy_get_build_id) Use bfd_build_id.
7405         (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
7406         * coffread.c: Include build-id.h.
7407         (coff_symfile_read): Try find_separate_debug_file_by_buildid.
7408
7409 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7410
7411         * windows-nat.c (do_windows_fetch_inferior_registers)
7412         (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
7413         conditional with __CYGWIN__.
7414
7415 2015-06-13  Andrew Burgess  <andrew.burgess@embecosm.com>
7416
7417         * completer.c: Add arch-utils.h include.
7418         (enum reg_completer_targets): New enum.
7419         (reg_or_group_completer_1): New function containing old
7420         reg_or_group_completer, add and use new parameter to control what
7421         is completed on.  Use get_current_arch rather than architecture of
7422         currently selected frame.
7423         (reg_or_group_completer): Call new reg_or_group_completer_1.
7424         (reggroup_completer): Call new reg_or_group_completer_1.
7425         * completer.h (reggroup_completer): Add declaration.
7426         * tui/tui-regs.c: Add 'completer.h' include.
7427         (tui_reg_next_command): Renamed to...
7428         (tui_reg_next): ...this.  Adjust parameters and return rather than
7429         display new group.
7430         (tui_reg_prev_command): Renamed to...
7431         (tui_reg_prev): ...this.  Adjust parameters and return rather than
7432         display new group.
7433         (tui_reg_float_command): Delete.
7434         (tui_reg_general_command): Delete.
7435         (tui_reg_system_command): Delete.
7436         (tui_reg_command): Rewrite to perform switching of register group.
7437         Add header comment.
7438         (tuireglist): Remove.
7439         (tui_reggroup_completer): New function.
7440         (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
7441         creation of 'tui reg' command.
7442         * NEWS: Add comment about 'tui reg' changes.
7443
7444 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7445
7446         * target.c (target_read): Consider addressable unit size when
7447         reading from a memory object.
7448         (read_memory_robust): Same.
7449         (read_whatever_is_readable): Same.
7450         (target_write_with_progress): Consider addressable unit size
7451         when writing to a memory object.
7452         * target.h (target_read): Update documentation.
7453         (target_write): Add documentation.
7454
7455 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7456
7457         * arch-utils.h (default_addressable_memory_unit_size): New.
7458         * arch-utils.c (default_addressable_memory_unit_size): New.
7459         * gdbarch.sh (addressable_memory_unit_size): New.
7460         * gdbarch.h: Re-generate.
7461         * gdbarch.c: Re-generate.
7462
7463 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7464
7465         * target.c (target_read): Rename variables and use
7466         TARGET_XFER_E_IO.
7467         (target_read_with_progress): Same.
7468         (read_memory_robust): Constify parameters and rename
7469         variables.
7470         (read_whatever_is_readable): Constify parameters,
7471         rename variables, adjust formatting.
7472         * target.h (read_memory_robust): Constify parameters.
7473
7474 2015-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
7475
7476         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
7477         synthetic (non-AltiVec) vector types.
7478         (ppc64_sysv_abi_return_value): Likewise.
7479
7480 2015-06-12  Antoine Tremblay  <antoine.tremblay@ericsson.com>
7481
7482         PR breakpoints/16465
7483         * breakpoint.c (create_breakpoint): Save extra_string for
7484         pending breakpoints.
7485
7486 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7487
7488         * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
7489         and bt_mask to CORE_ADDR.
7490
7491 2015-06-11  Gary Benson <gbenson@redhat.com>
7492
7493         * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
7494         (mnsh_recv_message): Likewise.
7495
7496 2015-06-11  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7497
7498         * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
7499         long long int and plongest instead of %ll.
7500
7501 2015-06-11  Gary Benson <gbenson@redhat.com>
7502
7503         * nat/linux-namespaces.c (gdb_wait.h): New include.
7504         (sys/wait.h): Do not include.
7505
7506 2015-06-10  Simon Marchi  <simon.marchi@ericsson.com>
7507
7508         * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
7509         end_sequence is true.
7510
7511 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7512
7513         Code cleanup.
7514         * solib-target.c (library_list_start_list): Use explicit NULL
7515         comparison.
7516
7517 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7518
7519         * solib-target.c (library_list_start_list): Do not dereference
7520         variable version in its initialization.  Make the VERSION check handle
7521         NULL.
7522         (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
7523
7524 2015-06-10  Gary Benson <gbenson@redhat.com>
7525
7526         * NEWS: Announce support for direct access of executable and
7527         shared library files when attaching to inferiors in containers
7528         on GNU/Linux systems.
7529
7530 2015-06-10  Gary Benson <gbenson@redhat.com>
7531
7532         * remote.c (struct remote_state) <fs_pid>: New field.
7533         (new_remote_state): Initialize the above.
7534         (PACKET_vFile_setfs): New enum value.
7535         (remote_hostio_set_filesystem): New function.
7536         (remote_hostio_open): Call the above.
7537         (remote_hostio_unlink): Likewise.
7538         (remote_hostio_readlink): Likewise.
7539         (_initialize_remote): Register new "set/show remote
7540         hostio-setfs-packet" command.
7541         * NEWS: Announce new vFile:setfs packet.
7542
7543 2015-06-10  Gary Benson <gbenson@redhat.com>
7544
7545         * linux-nat.c (nat/linux-namespaces.h): New include.
7546         (fileio.h): Likewise.
7547         (linux_nat_filesystem_is_local): New function.
7548         (linux_nat_fileio_pid_of): Likewise.
7549         (linux_nat_fileio_open): Likewise.
7550         (linux_nat_fileio_readlink): Likewise.
7551         (linux_nat_fileio_unlink): Likewise.
7552         (linux_nat_add_target): Initialize to_filesystem_is_local,
7553         to_fileio_open, to_fileio_readlink and to_fileio_unlink.
7554         (_initialize_linux_nat): New "set/show debug linux-namespaces"
7555         commands.
7556         * NEWS: Mention new "set/show debug linux-namespaces" commands.
7557
7558 2015-06-10  Gary Benson <gbenson@redhat.com>
7559
7560         * target.h (struct inferior): New forward declaration.
7561         (struct target_ops) <to_filesystem_is_local>: Update comment.
7562         (struct target_ops) <to_fileio_open>: New argument inf.
7563         Update comment.  All implementations updated.
7564         (struct target_ops) <to_fileio_unlink>: Likewise.
7565         (struct target_ops) <to_fileio_readlink>: Likewise.
7566         (target_filesystem_is_local): Update comment.
7567         (target_fileio_open): New argument inf.  Update comment.
7568         (target_fileio_unlink): Likewise.
7569         (target_fileio_readlink): Likewise.
7570         (target_fileio_read_alloc): Likewise.
7571         (target_fileio_read_stralloc): Likewise.
7572         * target.c (target_fileio_open): New argument inf.
7573         Pass inf to implementation.  Update debug printing.
7574         (target_fileio_unlink): Likewise.
7575         (target_fileio_readlink): Likewise.
7576         (target_fileio_read_alloc_1): New argument inf. Pass inf
7577         to target_fileio_open.
7578         (target_fileio_read_alloc): New argument inf. Pass inf to
7579         target_fileio_read_alloc_1.
7580         (target_fileio_read_stralloc): Likewise.
7581         * gdb_bfd.c (inferior.h): New include.
7582         (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7583         argument with new argument "inferior".  Pass inferior to
7584         target_fileio_open.
7585         (gdb_bfd_open): Supply inferior argument to
7586         gdb_bfd_iovec_fileio_open.
7587         * linux-tdep.c (linux_info_proc): Supply inf argument to
7588         relevant target_fileio calls.
7589         (linux_find_memory_regions_full): Likewise.
7590         (linux_fill_prpsinfo): Likewise.
7591         * remote.c (remote_filesystem_is_local): Supply inf
7592         argument to remote_hostio_open.
7593         (remote_file_put): Likewise.
7594         (remote_file_get): Likewise.
7595         (remote_file_delete): Supply inf argument to
7596         remote_hostio_unlink.
7597
7598 2015-06-10  Gary Benson <gbenson@redhat.com>
7599
7600         * inf-child.c (inf_child_fileio_open): Replace comment.
7601         (inf_child_fileio_pwrite): Likewise.
7602         (inf_child_fileio_pread): Likewise.
7603         (inf_child_fileio_fstat): Insert blank line before comment.
7604         (inf_child_fileio_close): Replace comment.
7605         (inf_child_fileio_unlink): Likewise.
7606         (inf_child_fileio_readlink): Likewise.
7607         * remote.c (remote_hostio_open): Likewise.
7608         (remote_hostio_pread): Likewise.
7609         (remote_hostio_pwrite): Likewise.
7610         (remote_hostio_close): Likewise.
7611         (remote_hostio_unlink): Likewise.
7612         (remote_hostio_readlink): Likewise.
7613         (remote_hostio_fstat): Likewise.
7614         (remote_filesystem_is_local): Likewise.
7615         * target.c (target_fileio_open): Likewise.
7616         (target_fileio_pwrite): Likewise.
7617         (target_fileio_pread): Likewise.
7618         (target_fileio_fstat): Insert blank line before comment.
7619         (target_fileio_close): Replace comment.
7620         (target_fileio_unlink): Likewise.
7621         (target_fileio_readlink): Likewise.
7622         (target_fileio_read_alloc): Likewise.
7623         (target_fileio_read_stralloc): Likewise.
7624
7625 2015-06-10  Gary Benson <gbenson@redhat.com>
7626
7627         * linux-thread-db.c (nat/linux-namespaces.h): New include.
7628         (check_pid_namespace_match): Use linux_ns_same rather than
7629         linux_proc_pid_get_ns to spot PID namespace mismatches.
7630         * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7631         * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7632
7633 2015-06-10  Gary Benson <gbenson@redhat.com>
7634
7635         * configure.ac (AC_CHECK_FUNCS): Add setns.
7636         * config.in: Regenerate.
7637         * configure: Likewise.
7638         * nat/linux-namespaces.h: New file.
7639         * nat/linux-namespaces.c: Likewise.
7640         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7641         (linux-namespaces.o): New rule.
7642         * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7643         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7644         * config/arm/linux.mh (NATDEPFILES): Likewise.
7645         * config/i386/linux.mh (NATDEPFILES): Likewise.
7646         * config/i386/linux64.mh (NATDEPFILES): Likewise.
7647         * config/ia64/linux.mh (NATDEPFILES): Likewise.
7648         * config/m32r/linux.mh (NATDEPFILES): Likewise.
7649         * config/m68k/linux.mh (NATDEPFILES): Likewise.
7650         * config/mips/linux.mh (NATDEPFILES): Likewise.
7651         * config/pa/linux.mh (NATDEPFILES): Likewise.
7652         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7653         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7654         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7655         * config/s390/linux.mh (NATDEPFILES): Likewise.
7656         * config/sparc/linux.mh (NATDEPFILES): Likewise.
7657         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7658         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7659         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7660
7661 2015-06-10  Gary Benson <gbenson@redhat.com>
7662
7663         * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7664         * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7665         (make_cleanup_close): Likewise.
7666         * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7667         * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7668         (make_cleanup_close): Likewise.
7669
7670 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7671
7672         * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7673         from SuspendThread().
7674
7675 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7676
7677         * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7678         from OutputDebugString.
7679
7680 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7681                         Mircea Gherzan  <mircea.gherzan@intel.com>
7682
7683         * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7684         MPX_BT_MASK_32): New macros.
7685         (i386_mpx_set_bounds): New function that implements
7686         the command "set-mpx-bound".
7687         (i386_mpx_enabled): Helper function to test MPX availability.
7688         (i386_mpx_bd_base): Helper function to calculate the base directory
7689         address.
7690         (i386_mpx_get_bt_entry): Helper function to access a bound
7691         table entry.
7692         (i386_mpx_print_bounds): Effectively display bound information.
7693         (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7694         "show mpx".
7695         (_initialize_i386_tdep):
7696         Add "bound" to the commands "show mpx" and "set mpx" commands.
7697         (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7698         and "show mpx" commands.
7699         * NEWS: List new commands for MPX support.
7700
7701 2015-06-09  Gary Benson <gbenson@redhat.com>
7702
7703         * common/fileio.h (fileio_to_host_mode): New declaration.
7704         * common/fileio.c (fileio_to_host_mode): New Function.
7705         * inf-child.c (inf_child_fileio_open): Process mode argument
7706         with fileio_to_host_mode.
7707
7708 2015-06-09  Gary Benson <gbenson@redhat.com>
7709
7710         * common/fileio.c (fileio_mode_pack): Fix preprocessor
7711         conditional.
7712
7713 2015-06-05  Gary Benson <gbenson@redhat.com>
7714
7715         * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7716         * remote.c (remote_filesystem_is_local): ...here.
7717
7718 2015-06-04  Yao Qi  <yao.qi@linaro.org>
7719
7720         * gdbarch.c: Regenerate it.
7721
7722 2015-06-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7723
7724         * arch-utils.c (default_infcall_munmap): New.
7725         * arch-utils.h (default_infcall_munmap): New declaration.
7726         * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7727         (munmap_list_free, munmap_listp_free_cleanup): New.
7728         (struct setup_sections_data): Add field munmap_list_headp.
7729         (setup_sections): Call munmap_list_add.
7730         (compile_object_load): New variable munmap_list_head, initialize
7731         setup_sections_data.munmap_list_headp, return munmap_list_head.
7732         * compile/compile-object-load.h (struct munmap_list): New declaration.
7733         (struct compile_module): Add field munmap_list_head.
7734         (munmap_list_free): New declaration.
7735         * compile/compile-object-run.c (struct do_module_cleanup): Add field
7736         munmap_list_head.
7737         (do_module_cleanup): Call munmap_list_free.
7738         (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7739         * gdbarch.c: Regenerate.
7740         * gdbarch.h: Regenerate.
7741         * gdbarch.sh (infcall_munmap): New.
7742         * linux-tdep.c (linux_infcall_munmap): New.
7743         (linux_init_abi): Install it.
7744
7745 2015-06-02  Simon Marchi  <simon.marchi@ericsson.com>
7746
7747         PR gdb/15564
7748         * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7749
7750 2015-06-02  Yao Qi  <yao.qi@linaro.org>
7751
7752         * i386-linux-nat.c: Include linux-nat.h.
7753
7754 2015-06-01  Andreas Schwab  <schwab@linux-m68k.org>
7755             Jan Kratochvil  <jan.kratochvil@redhat.com>
7756
7757         PR symtab/18392
7758         * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7759         assertion.
7760         * dwarf2loc.c (chain_candidate): Likewise.
7761
7762 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7763
7764         * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7765         (store_vfp_regs): Use PTRACE_SETREGSET.
7766
7767 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7768
7769         * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7770         (fetch_fpregs): Likewise.
7771         * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7772         (store_fpregs): Likewise.
7773
7774 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7775
7776         * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7777         (fetch_regs): Likewise.
7778         (store_regs): Use PTRACE_SETREGSET.
7779         (store_register): Likewise.
7780
7781 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7782
7783         * arm-linux-nat.c (arm_linux_read_description): Check whether
7784         kernel supports PTRACE_GETREGSET.
7785
7786 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7787
7788         * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7789         * linux-nat.c: ... here.
7790         * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7791         to ...
7792         * linux-nat.h: ... here.
7793
7794 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7795
7796         * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7797         * i386-linux-nat.c: Likewise.
7798         * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7799         * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7800         (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7801         * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7802         * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7803
7804 2015-05-30  Eli Zaretskii  <eliz@gnu.org>
7805
7806         * go32-nat.c (go32_xfer_memory): Fix the return value to be
7807         compatible to what read_child and write_child return.  This
7808         unbreaks that DJGPP build of GDB which was broken since v7.7.
7809
7810 2015-05-29  Martin Galvan  <martin.galvan@tallertechnologies.com>
7811
7812         * MAINTAINERS (Write After Approval): Add Martin Galvan.
7813
7814 2015-05-29  Roland McGrath  <mcgrathr@google.com>
7815
7816         PR gdb/18464
7817         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7818         rather than internal_error for an unrecognized value.
7819
7820 2015-05-29  Max Filippov  <jcmvbkbc@gmail.com>
7821
7822         * xtensa-tdep.c (xtensa_pseudo_register_read)
7823         (xtensa_pseudo_register_write): Don't alias last pseudo register
7824         to a1.
7825
7826 2015-05-28  Don Breazeal  <donb@codesourcery.com>
7827
7828         * infrun.c (follow_fork_inferior): Ensure the use of
7829         process-style ptids (pid,0,0) in verbose/debug "Detaching"
7830         messages.
7831
7832 2015-05-28  Doug Evans  <dje@google.com>
7833
7834         * dwarf2read.c (record_line_ftype): Remove, duplicate.
7835
7836 2015-05-28  Yao Qi  <yao.qi@linaro.org>
7837
7838         * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7839         (arm_linux_fetch_inferior_registers): Use
7840         tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7841         (arm_linux_store_inferior_registers): Likewise.
7842         (arm_linux_read_description): Don't set
7843         arm_linux_has_wmmx_registers.
7844         * arm-tdep.c (arm_gdbarch_init): Set
7845         tdep->have_wmmx_registers according target descriptions.
7846         * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7847         field.
7848
7849 2015-05-28  Yao Qi  <yao.qi@linaro.org>
7850
7851         * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7852         (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7853         instead of arm_linux_vfp_register_count.
7854         (store_vfp_regs): Likewise.
7855         (arm_linux_fetch_inferior_registers): Likewise.
7856         (arm_linux_store_inferior_registers): Likewise.
7857         (arm_linux_read_description): Don't set
7858         arm_linux_vfp_register_count.
7859         * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7860         Adjust.
7861         * arm-tdep.c (arm_gdbarch_init): Add assert on
7862         vfp_register_count.
7863         * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7864         field to vfp_register_count.  All users updated.
7865
7866 2015-05-28  Kyle Huey  <me@kylehuey.com>  (tiny patch)
7867
7868         * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7869         ELFOSABI_GNU binaries.
7870
7871 2015-05-27  Doug Evans  <dje@google.com>
7872
7873         * dwarf2read.c (lnp_state_machine): New typedef.
7874         (lnp_reader_state): New typedef.
7875         (dwarf_record_line_1): Renamed from dwarf_record_line.
7876         All callers updated.
7877         (dwarf_record_line): New function.
7878         (init_lnp_state_machine): New function.
7879         (check_line_address): Replace p_record_line parameter with state.
7880         All callers updated.
7881         (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7882         Update to record state in lnp_state_machine.
7883
7884 2015-05-27  Doug Evans  <dje@google.com>
7885
7886         * dwarf2read.c (record_line_ftype): New typedef.
7887         (check_line_address): New function.
7888         (dwarf_decode_lines_1): Call it.
7889
7890 2015-05-27  Doug Evans  <dje@google.com>
7891
7892         * NEWS: Mention "set debug dwarf-line".
7893         * dwarf2read.c (dwarf_line_debug): New static global.
7894         (add_include_dir): Add debug dwarf-line support.
7895         (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7896         (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7897
7898 2015-05-27  Doug Evans  <dje@google.com>
7899
7900         * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7901         All callers updated.
7902         (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7903         * cp-support.h (cp_lookup_nested_symbol): Update.
7904
7905 2015-05-27  Doug Evans  <dje@google.com>
7906
7907         PR symtab/18258
7908         * block.c (block_find_symbol): New function.
7909         (block_find_non_opaque_type): Ditto.
7910         (block_find_non_opaque_type_preferred): Ditto.
7911         * block.h (block_symbol_matcher_ftype): New typedef.
7912         (block_find_symbol): Declare.
7913         (block_find_non_opaque_type): Ditto.
7914         (block_find_non_opaque_type_preferred): Ditto.
7915         * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7916         * psymtab.c (psym_lookup_symbol): Ditto.
7917         * symtab.c (basic_lookup_transparent_type_1): New function.
7918         (basic_lookup_transparent_type): Call it.
7919
7920 2015-05-27  Yao Qi  <yao.qi@linaro.org>
7921
7922         * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7923         AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7924
7925 2015-05-27  Yao Qi  <yao.qi@linaro.org>
7926
7927         * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7928         before operator &&.
7929         (aarch64_record_load_store): Likewise.
7930
7931 2015-05-26  Doug Evans  <dje@google.com>
7932
7933         PR c++/18141, c++/18417.
7934         * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7935         a typedef.
7936
7937 2015-05-26  Doug Evans  <dje@google.com>
7938
7939         * NEWS: Add entries for command renamings.
7940         * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7941         All uses updated.
7942         (dwarf_die_debug): Renamed from dwarf2_die_debug.  All uses updated.
7943         (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7944         All uses updated.
7945         (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7946         All callers updated.  Fix spelling of DWARF in help text.
7947         (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7948         All uses updated.
7949         (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7950         All uses updated.
7951         (set_dwarf_cmd): Renamed from set_dwarf2_cmd.  All callers updated.
7952         (show_dwarf_cmd): Renamed from show_dwarf2_cmd.  All callers updated.
7953         (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7954         All uses updated.
7955         (show_dwarf_always_disassemble): Renamed from
7956         show_dwarf2_always_disassemble.  All callers updated.
7957         (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7958         "set/show dwarf".  Rename "set/show dwarf2 max-cache-age" to
7959         "set/show dwarf max-cache-age".  Rename
7960         "set/show dwarf2 always-disassemble" to
7961         "set/show dwarf always-disassemble".  Rename
7962         "set/show debug dwarf2-read" to "set/show debug dwarf-read".  Rename
7963         "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7964
7965 2015-05-26  Doug Evans  <dje@google.com>
7966
7967         PR python/18438
7968         * python/py-lazy-string.c (stpy_convert_to_value): Use
7969         gdbpy_gdb_memory_error not PyExc_MemoryError.
7970         (gdbpy_create_lazy_string_object): Ditto.
7971
7972 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
7973
7974         * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7975
7976 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
7977
7978         * tui/tui-regs.c (tui_reg_prev_command): New function.
7979         (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7980         * reggroups.c (reggroup_prev): New function.
7981         * reggroups.h (reggroup_prev): Add declaration.  Update comment.
7982
7983 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
7984             Yao Qi  <yao.qi@linaro.org>
7985
7986         * aarch64-linux-tdep.c: Include linux-record.h and
7987         record-full.h.
7988         (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7989         (aarch64_syscall): New enum.
7990         (aarch64_canonicalize_syscall): New function.
7991         (aarch64_all_but_pc_registers_record): New function.
7992         (aarch64_linux_syscall_record): New function.
7993         (aarch64_linux_init_abi): Install AArch64 process record
7994         handler.  Update to handle syscall recording.
7995         * aarch64-tdep.c: Include record.h and record-full.h.
7996         (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7997         (struct aarch64_mem_r): Define.
7998         (aarch64_record_result): New enum.
7999         (struct insn_decode_record): Define.
8000         (insn_decode_record): New typedef.
8001         (aarch64_record_data_proc_reg): New function.
8002         (aarch64_record_data_proc_imm): New function.
8003         (aarch64_record_branch_except_sys): New function.
8004         (aarch64_record_load_store): New function.
8005         (aarch64_record_data_proc_simd_fp): New function.
8006         (aarch64_record_asimd_load_store): New function.
8007         (aarch64_record_decode_insn_handler): New function.
8008         (deallocate_reg_mem): New function.
8009         (aarch64_process_record): New function.
8010         * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
8011         New field.
8012         (aarch64_process_record): New extern declaration.
8013         * configure.tgt: Add linux-record.o to gdb_target_obs.
8014         * linux-record.h (struct linux_record_tdep) <arg7>: New field.
8015
8016 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
8017
8018         * NEWS: Add a note on process record-replay support on aarch64*-linux*
8019         targets.
8020
8021 2015-05-26  Martin Galvan  <martin.galvan@tallertechnologies.com>
8022
8023         * amd64-tdep.c: Replace in_function_epilogue_p with
8024         stack_frame_destroyed_p throughout.
8025         * arch-utils.c: Ditto.
8026         * arch-utils.h: Ditto.
8027         * arm-tdep.c: Ditto.
8028         * breakpoint.c: Ditto.
8029         * gdbarch.sh: Ditto.
8030         * hppa-tdep.c: Ditto.
8031         * i386-tdep.c: Ditto.
8032         * mips-tdep.c: Ditto.
8033         * nios2-tdep.c: Ditto.
8034         * rs6000-tdep.c: Ditto.
8035         * s390-linux-tdep.c: Ditto.
8036         * score-tdep.c: Ditto.
8037         * sh-tdep.c: Ditto.
8038         * sparc-tdep.c: Ditto.
8039         * sparc-tdep.h: Ditto.
8040         * sparc64-tdep.c: Ditto.
8041         * spu-tdep.c: Ditto.
8042         * tic6x-tdep.c: Ditto.
8043         * tilegx-tdep.c: Ditto.
8044         * xstormy16-tdep.c: Ditto.
8045         * gdbarch.c, gdbarch.h: Re-generated.
8046
8047 2015-05-22  Andrew Burgess  <andrew.burgess@embecosm.com>
8048
8049         * NEWS: Mention 'tui enable' and 'tui disable'.
8050         * tui/tui.c (tui_enable_command): New function.
8051         (tui_disable_command): New function.
8052         (_initialize_tui): New function.
8053
8054 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8055
8056         * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
8057
8058 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8059
8060         * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
8061         buf_ptr is freed.
8062
8063 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8064
8065         * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
8066         into ...
8067         (tui_set_layout_for_display_command): ...here, before calling
8068         tui_set_layout.  Only set the layout if gdb has not already
8069         entered the TUI_FAILURE state.
8070
8071 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8072
8073         * tui/tui-layout.c (layout_completer): New function.
8074         (_initialize_tui_layout): Set completer on layout command.
8075
8076 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8077
8078         * tui/tui-layout.c (tui_set_layout): Remove
8079         tui_register_display_type parameter.  Remove all checking of this
8080         parameter, and reindent function.  Update header comment.
8081         (tui_set_layout_for_display_command): Rename to...
8082         (tui_set_layout_by_name): ...this, and don't check for different
8083         register class types, don't pass a tui_register_display_type to
8084         tui_set_layout.  Update header comment.
8085         (layout_names): Remove register set specific names.
8086         * tui/tui-layout.h (tui_set_layout): Remove
8087         tui_register_display_type parameter.
8088         * tui/tui.c (tui_rl_change_windows): Don't pass a
8089         tui_register_display_type to tui_set_layout.
8090         (tui_rl_delete_other_windows): Likewise.
8091         (tui_enable): Likewise.
8092         * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
8093         (TUI_FLOAT_REGS_NAME_LOWER): Remove.
8094         (TUI_GENERAL_REGS_NAME): Remove.
8095         (TUI_GENERAL_REGS_NAME_LOWER): Remove.
8096         (TUI_SPECIAL_REGS_NAME): Remove.
8097         (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
8098         (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
8099         (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
8100         (enum tui_register_display_type): Remove.
8101         (struct tui_layout_def): Remove regs_display_type and
8102         float_regs_display_type fields.
8103         (struct tui_data_info): Remove regs_display_type field.
8104         (tui_layout_command): Use new name for
8105         tui_set_layout_for_display_command.
8106         * tui/tui-data.c (layout_def): Don't initialise removed fields.
8107         (tui_clear_win_detail): Don't initialise removed fields of
8108         win_info.
8109         * tui/tui-regs.c (tui_show_registers): Use new name for
8110         tui_set_layout_for_display_command.
8111         * tui/tui.h (tui_set_layout_for_display_command): Rename
8112         declaration to...
8113         (tui_set_layout_by_name): ...this.
8114         * printcmd.c (display_command): Remove tui related layout call,
8115         and reindent.
8116
8117 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
8118
8119         * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
8120         (handle_inferior_event): New function.
8121
8122 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
8123
8124         * ada-lang.c (to_fixed_array_type): Rename local variable
8125         typename into type_name.
8126
8127 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8128
8129         Fix ASAN crash for gdb.compile/compile.exp.
8130         * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
8131
8132 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8133
8134         * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
8135         (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
8136         * compile/compile-object-load.c (setup_sections, compile_object_load):
8137         Likewise.
8138         * compile/compile.c (compile_to_object): Likewise.
8139
8140 2015-05-16  Doug Evans  <xdje42@gmail.com>
8141
8142         * NEWS: Mention support for unbuffered Guile memory ports.
8143         * scm-ports.c (ioscm_memory_port): Update comments on end, size.
8144         (ioscm_lseek_address): Improve overflow calculation.
8145         (gdbscm_memory_port_fill_input): Add assert.
8146         (gdbscm_memory_port_write): Handle unbuffered ports.
8147         Handle large writes identical to Guile's fport_write.
8148         (gdbscm_memory_port_seek): Fix seeking past end check.
8149         (gdbscm_memory_port_close): Handle closing unbuffered port.
8150         (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
8151         (ioscm_init_memory_port): Handle unbuffered ports.
8152         (ioscm_reinit_memory_port): Ditto.
8153         (ioscm_init_memory_port): Update size calculation.
8154         (gdbscm_open_memory): Support zero sized ports.
8155
8156 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8157
8158         * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
8159         variable compiler warnings.
8160
8161 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8162
8163         * compile/compile-object-load.c (get_out_value_type): Fix returned type.
8164
8165 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8166             Phil Muldoon  <pmuldoon@redhat.com>
8167
8168         * NEWS (Changes since GDB 7.9): Add compile print.
8169         * compile/compile-c-support.c (add_code_header, add_code_footer)
8170         (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
8171         COMPILE_I_PRINT_VALUE_SCOPE.
8172         * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
8173         (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
8174         New.
8175         * compile/compile-object-load.c: Include block.h.
8176         (get_out_value_type): New function.
8177         (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8178         COMPILE_I_PRINT_VALUE_SCOPE.  Set compile_module's OUT_VALUE_ADDR and
8179         OUT_VALUE_TYPE.
8180         * compile/compile-object-load.h (struct compile_module): Add fields
8181         out_value_addr and out_value_type.
8182         * compile/compile-object-run.c: Include valprint.h and compile.h.
8183         (struct do_module_cleanup): Add fields out_value_addr and
8184         out_value_type.
8185         (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8186         COMPILE_I_PRINT_VALUE_SCOPE.
8187         (compile_object_run): Propagate out_value_addr and out_value_type.
8188         Pass OUT_VALUE_ADDR.
8189         * compile/compile.c: Include valprint.h.
8190         (compile_print_value, compile_print_command): New functions.
8191         (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
8192         (_initialize_compile): Update compile code help text.  Install
8193         compile_print_command.
8194         * compile/compile.h (compile_print_value): New prototype.
8195         * defs.h (enum compile_i_scope_types): Add
8196         COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
8197
8198 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8199
8200         * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
8201         Rely on its parameter count.
8202         (compile_object_load): Replace lookup_minimal_symbol_text by
8203         lookup_global_symbol_from_objfile.  Verify FUNC_SYM.  Set it in the
8204         return value.
8205         * compile/compile-object-load.h (struct compile_module): Replace
8206         func_addr by func_sym.
8207         * compile/compile-object-run.c: Include block.h.
8208         (compile_object_run): Reset module variable after it is freed.  Use
8209         FUNC_SYM instead of FUNC_ADDR.  Rely on it.
8210
8211 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8212
8213         * compile/compile-c-support.c (print_one_macro): Use #ifndef.
8214         (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
8215         (c_compute_program): Call generate_register_struct after typedefs.
8216         * compile/compile-loc2c.c (push, pushf_register_address)
8217         (pushf_register): Cast to GCC_UINTPTR.
8218         (do_compile_dwarf_expr_to_c): Use unused attribute.  Add space after
8219         type.  Use GCC_UINTPTR instead of void *.  Remove excessive cast.
8220         (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
8221         * compile/compile.c (_initialize_compile): Enable warnings for
8222         COMPILE_ARGS.
8223
8224 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8225
8226         * cli/cli-script.c (execute_control_command): Update
8227         eval_compile_command caller.
8228         * compile/compile-object-load.c (compile_object_load): Add parameters
8229         scope and scope_data.  Set them.
8230         * compile/compile-object-load.h (struct compile_module): Add fields
8231         scope and scope_data.
8232         (compile_object_load): Add parameters scope and scope_data.
8233         * compile/compile-object-run.c (struct do_module_cleanup): Add fields
8234         scope and scope_data.
8235         (compile_object_run): Propagate the fields scope and scope_data.
8236         * compile/compile.c (compile_file_command, compile_code_command):
8237         Update eval_compile_command callers.
8238         (eval_compile_command): Add parameter scope_data.  Pass it plus scope.
8239         * compile/compile.h (eval_compile_command): Add parameter scope_data.
8240         * defs.h (struct command_line): Add field scope_data.
8241
8242 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8243
8244         * printcmd.c (struct format_data): Move it to valprint.h.
8245         (print_command_parse_format, print_value): New functions from ...
8246         (print_command_1): ... here.  Call them.
8247         * valprint.h (struct format_data): Move it here from printcmd.c.
8248         (print_command_parse_format, print_value): New declarations.
8249
8250 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8251
8252         * compile/compile-object-load.c (compile_object_load): Add
8253         COMPILE_DEBUG message.
8254
8255 2015-05-15  Jerome Guitton  <guitton@adacore.com>
8256
8257         * ada-lang.c (ada_value_ptr_subscript): Use enum position of
8258         index to get element instead of enum value.
8259         (ada_value_slice_from_ptr, ada_value_slice): Use enum position
8260         of index to compute length, but enum values to compute bounds.
8261         (ada_array_length): Use enum position of index instead of enum value.
8262         (pos_atr): Move position computation to...
8263         (ada_evaluate_subexp): Use enum values to compute bounds.
8264         * gdbtypes.c (discrete_position): ...this new function.
8265         * gdbtypes.h (discrete_position): New function declaration.
8266         * valprint.c (val_print_array_elements): Call discrete_position
8267         to handle array indexed by non-contiguous enumeration types.
8268
8269 2015-05-15  Jerome Guitton  <guitton@adacore.com>
8270
8271         * ada-lang.c (find_parallel_type_by_descriptive_type):
8272         Go through typedefs during lookup.
8273         (to_fixed_array_type): Add support for non-bit packed arrays
8274         as variable-length fields.
8275
8276 2015-05-15  Pedro Alves  <palves@redhat.com>
8277             Simon Marchi  <simon.marchi@ericsson.com>
8278
8279         * event-loop.c (gdb_notifier) <next_file_handler,
8280         next_poll_fds_index>: New fields.
8281         (get_next_file_handler_to_handle_and_advance): New function.
8282         (delete_file_handler): If deleting the next file handler to
8283         handle, advance to the next file handler.
8284         (gdb_wait_for_event): Bail early if no event fired.  Poll file
8285         handlers in round-robin fashion.
8286
8287 2015-05-15  Pedro Alves  <palves@redhat.com>
8288
8289         * linux-tdep.c (linux_find_memory_regions_full): Rename local
8290         'private' to 'priv'.
8291
8292 2015-05-15  Pedro Alves  <palves@redhat.com>
8293
8294         * nat/linux-nat.h: Include "target/waitstatus.h".
8295
8296 2015-05-15  Yuanhui Zhang  <asmwarrior@gmail.com>
8297
8298         * python/py-unwind.c (struct reg_info): Move out of ...
8299         (struct cached_frame_info): ... this scope.
8300         (pending_frame_object_type, unwind_info_object_type): Make extern.
8301
8302 2015-05-15  Joel Brobecker  <brobecker@adacore.com>
8303
8304         * ada-lang.c (ada_value_primitive_packed_val): Make sure
8305         accumSize is never negative.
8306
8307 2015-05-14  Patrick Palka  <patrick@parcs.ath.cx>
8308
8309         * tui/tui-command.c: Remove include of <ctype.h>.
8310         (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
8311
8312 2015-05-13  Martin Galvan  <martin.galvan@tallertechnologies.com>
8313
8314         * dwarf2read.c (die_needs_namespace): Return 1 for
8315         DW_TAG_inlined_subroutine.
8316
8317 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8318
8319         * regcache.c (regcache_cpy_no_passthrough): New declaration.
8320         (regcache_cpy_no_passthrough): Make it static, add function comment.
8321         * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
8322         (regcache_cpy_no_passthrough): Remove declaration.
8323
8324 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8325
8326         * gdbthread.h (struct thread_control_state): Update comment for
8327         proceed_to_finish.
8328         * infcall.c (run_inferior_call): Update comment about
8329         proceed_to_finish.
8330         * infcmd.c (get_return_value): Update comment about stop_registers.
8331         (finish_forward): Update comment about proceed_to_finish.
8332         * infrun.c (stop_registers): Remove.
8333         (clear_proceed_status, normal_stop): Remove stop_registers handling.
8334         * infrun.h (stop_registers): Remove.
8335
8336 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8337
8338         * infcall.c (struct dummy_frame_context_saver)
8339         (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
8340         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8341         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8342         New.
8343         (call_function_by_hand_dummy): Move discard_cleanups of
8344         inf_status_cleanup before dummy_frame_push.  Call
8345         dummy_frame_context_saver_setup and prepare context_saver_cleanup.
8346         Use dummy_frame_context_saver_get_regs instead of stop_registers.
8347         * infcall.h (struct dummy_frame_context_saver)
8348         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8349         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8350         New declarations.
8351         * infcmd.c: Include infcall.h.
8352         (get_return_value): Add parameter ctx_saver, use it instead of
8353         stop_registers.
8354         (print_return_value): Add parameter ctx_saver, pass it.
8355         (struct finish_command_continuation_args): Add field ctx_saver.
8356         (finish_command_continuation): Update print_return_value caller.
8357         (finish_command_continuation_free_arg): Free also ctx_saver.
8358         (finish_forward): Call dummy_frame_context_saver_setup.
8359         * inferior.h (struct dummy_frame_context_saver): New declaration.
8360         (get_return_value): Add parameter ctx_saver.
8361         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
8362         get_return_value caller.
8363
8364 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8365
8366         * dummy-frame.c (struct dummy_frame_dtor_list): New.
8367         (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
8368         (remove_dummy_frame): Process dtor_list.
8369         (pop_dummy_frame): Process dtor_list.
8370         (register_dummy_frame_dtor): Maintain dtor_list.
8371         (find_dummy_frame_dtor): Handle dtor_list.
8372         * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
8373         Update comments.
8374
8375 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8376
8377         * compile/compile-object-run.c (do_module_cleanup): Add parameter
8378         registers_valid.
8379         (compile_object_run): Update do_module_cleanup caller.
8380         * dummy-frame.c: Include infcall.h.
8381         (struct dummy_frame): Update dtor comment.
8382         (remove_dummy_frame): Call dtor.
8383         (pop_dummy_frame): Update dtor caller.
8384         * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
8385         registers_valid.
8386
8387 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
8388
8389         GDB 7.9.1 released.
8390
8391 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
8392
8393         * NEWS: Create "Changes in GDB 7.9.1" section.  Move news about
8394         Xmethods now being able to specify a result type to that new
8395         sectioin.
8396
8397 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
8398
8399         * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
8400         first before resizing the window.
8401         * tui/tui.c (tui_enable): Likewise.
8402
8403 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8404
8405         * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
8406         * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
8407         * infcall.c (call_function_by_hand_dummy): Use proper typedef for
8408         dummy_dtor parameter.
8409         * infcall.h: Include dummy-frame.h.
8410         (call_function_by_hand_dummy_dtor_ftype): Remove.
8411         (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
8412         parameter.
8413
8414 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
8415
8416         PR gdb/17820
8417         * top.c (history_size_setshow_var): Change type to signed.
8418         Initialize to -2.  Update documentation.
8419         (set_readline_history_size): Define.
8420         (set_history_size_command): Use it.  Remove logic for handling
8421         out-of-range sizes.
8422         (init_history): Use set_readline_history_size().  Test for a
8423         value of -2 instead of 0 when determining whether to set a
8424         default history size.
8425         (init_main): Decode the argument of the "size" command as a
8426         zuinteger_unlimited.
8427
8428 2015-05-12  Doug Evans  <dje@google.com>
8429
8430         * dwarf2read.c (struct file_entry): Tweak comments.
8431         (get_debug_line_section): Tweak comments.
8432
8433 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8434
8435         * NEWS: Announce fork support in the RSP and support
8436         for fork debugging in extended mode.
8437
8438 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8439
8440         * remote.c (remote_insert_fork_catchpoint): New function.
8441         (remote_remove_fork_catchpoint): New function.
8442         (remote_insert_vfork_catchpoint): New function.
8443         (remote_remove_vfork_catchpoint): New function.
8444         (pending_fork_parent_callback): New function.
8445         (remove_new_fork_child): New function.
8446         (remote_update_thread_list): Call remote_notif_get_pending_events
8447         and remove_new_fork_child.
8448         (extended_remote_kill): Kill fork child when killing the
8449         parent before follow_fork completes.
8450         (init_extended_remote_ops): Initialize target vector with
8451         new fork catchpoint functions.
8452
8453 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8454
8455         * remote.c (remove_vfork_event_p): New function.
8456         (remote_follow_fork): Add vfork event type to event checking.
8457         (remote_parse_stop_reply): New stop reasons "vfork" and
8458         "vforkdone" for RSP 'T' Stop Reply Packet.
8459
8460 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8461
8462         * linux-nat.c (linux_nat_ptrace_options): New function.
8463         (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
8464         Call linux_nat_ptrace_options and use different argument to
8465         linux_enable_event_reporting.
8466         (_initialize_linux_nat): Delete call to
8467         linux_ptrace_set_additional_flags.
8468         * nat/linux-ptrace.c (current_ptrace_options): Rename to
8469         supported_ptrace_options.
8470         (additional_flags): Delete variable.
8471         (linux_check_ptrace_features): Use supported_ptrace_options.
8472         (linux_test_for_tracesysgood, linux_test_for_tracefork):
8473         Likewise, and remove additional_flags check.
8474         (linux_enable_event_reporting): Change 'attached' argument to
8475         'options'.  Use supported_ptrace_options.
8476         (ptrace_supports_feature): Change comment.  Use
8477         supported_ptrace_options.
8478         (linux_ptrace_set_additional_flags): Delete function.
8479         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
8480         Delete function prototype.
8481         * remote.c (remote_fork_event_p): New function.
8482         (remote_detach_pid): New function.
8483         (remote_detach_1): Call remote_detach_pid, don't mourn inferior
8484         if doing detach-on-fork.
8485         (remote_follow_fork): New function.
8486         (remote_parse_stop_reply): Handle new "T" stop reason "fork".
8487         (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
8488         (init_extended_remote_ops): Initialize to_follow_fork.
8489
8490 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8491
8492         * nat/linux-ptrace.c (linux_check_ptrace_features): Change
8493         from static to extern.
8494         * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
8495         * remote.c (anonymous enum): <PACKET_fork_event_feature,
8496         * PACKET_vfork_event_feature>: New enumeration constants.
8497         (remote_protocol_features): Add table entries for new packets.
8498         (remote_query_supported): Add new feature queries to qSupported
8499         packet.
8500
8501 2015-05-12  Gary Benson <gbenson@redhat.com>
8502
8503         * remote.c (remote_add_inferior): Call exec_file_locate_attach
8504         for fake PIDs as well as real ones.
8505         (remote_pid_to_exec_file): Send empty annex if PID is fake.
8506
8507 2015-05-09  Siva Chandra Reddy  <sivachandra@google.com>
8508
8509         * NEWS (Python Scripting): Mention the new gdb.Value methods.
8510         * python/py-value.c (valpy_reference_value): New function.
8511         (valpy_const_value): Likewise.
8512         (value_object_methods): Add new methods.
8513         * value.c (make_cv_value): New function.
8514         * value.h (make_cv_value): Declare.
8515
8516 2015-05-08  Yao Qi  <yao@codesourcery.com>
8517             Sandra Loosemore  <sandra@codesourcery.com>
8518
8519         * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
8520         to 'lh->include_dirs' before accessing to it.
8521         (psymtab_include_file_name): Likewise.
8522         (dwarf_decode_lines_1): Likewise.
8523         (dwarf_decode_lines): Likewise.
8524         (file_file_name): Likewise.
8525
8526 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
8527
8528         * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
8529         (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
8530         (nios2_linux_rt_sigreturn_init): Adjust base address of
8531         register save area.
8532
8533 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
8534
8535         * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
8536         "trap 31" as the breakpoint instruction on all targets.
8537
8538 2015-05-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8539
8540         * infcmd.c (print_return_value): Remove unused declaration.
8541
8542 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8543
8544         * dwarf2read.c (attr_to_dynamic_prop)
8545         <DW_AT_data_member_location>: Use read_type_die isntead of
8546         get_die_type.
8547
8548 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8549
8550         * ada-lang.c (ada_convert_actual): Add handling of formals
8551         passed inside an aligner type.
8552
8553 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8554
8555         * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
8556
8557 2015-05-08  Siva Chandra Reddy  <sivachandra@google.com>
8558
8559         PR python/18291
8560         * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
8561         Print xmethod matcher status.
8562
8563 2015-05-08  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8564
8565         * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
8566         register in the regcache when treating the PSWM register, and vice
8567         versa.
8568
8569 2015-05-07  Gary Benson <gbenson@redhat.com>
8570
8571         * linux-thread-db.c (struct thread_db_info)
8572         <td_ta_map_id2thr_p>: Remove field.
8573         (try_thread_db_load_1): Remove initialization for the above.
8574
8575 2015-05-07  Gary Benson <gbenson@redhat.com>
8576
8577         * linux-thread-db.c (struct thread_db_info)
8578         <td_thr_validate_p>: Remove field.
8579         (try_thread_db_load_1): Remove initialization for the above.
8580
8581 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
8582
8583         * compile/compile-object-load.c (compile_object_load): Support
8584         mst_text_gnu_ifunc.
8585
8586 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
8587
8588         * compile/compile.c (compile_to_object): Make the cmd_string parameter
8589         const.  Use new variables for the const compatibility.
8590         (eval_compile_command): Make the cmd_string parameter const.
8591         * compile/compile.h (eval_compile_command): Make the cmd_string
8592         parameter const.
8593
8594 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
8595
8596         * defs.h (deprecated_init_ui_hook): Delete.  Remove associated
8597         comment.
8598         * top.c (deprecated_init_ui_hook): Delete.
8599         (gdb_init): Remove handling of deprecated_init_ui_hook.
8600         * interps.c (clear_interpreter_hooks): Remove handling of
8601         deprecated_init_ui_hook.
8602         * main.c (captured_main): Update comment.
8603
8604 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
8605
8606         * solib.c (_initialize_solib): Add "info dll" alias creation.
8607         * windows-nat.c (set_windows_aliases): Delete.
8608         (_initialize_windows_nat): Remove deprecated_init_ui_hook
8609         assignment.
8610         * NEWS: Add news entry about "info dll" now being available
8611         on all platforms.
8612
8613 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8614
8615         * ada-lang.c (value_assign_to_component): Reformat and improve
8616         documentation. Remove all trailing spaces.
8617
8618 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8619
8620         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8621         Stop counting inlined frames as soon as an out-of-line function
8622         is found.
8623
8624 2014-05-05  Pierre-Marie de Rodat  <derodat@adacore.com>
8625
8626         * dwarf2read.c (inherit_abstract_dies): Skip
8627         DW_TAG_GNU_call_site dies while inheriting children of an
8628         abstract DIE into a scope.
8629         (read_lexical_block_scope): Inherit abstract DIE's for
8630         lexical scopes.
8631
8632 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8633
8634         * ada-valprint.c (val_print_packed_array_elements): Delete
8635         variable "len".  Add a type-length check when comparing two
8636         consecutive elements of the array.  Use the element's actual
8637         length in call to value_contents_eq.
8638         * ada-lang.c (ada_value_primitive_packed_val): Always return
8639         a value whose type has been resolved.
8640
8641 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8642
8643         * ada-lang.c (ada_value_primitive_packed_val): Recompute
8644         BIT_SIZE and LEN if the size of the resolved type is smaller
8645         than BIT_SIZE * HOST_CHAR_BIT.
8646
8647 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8648
8649         * ada-lang.c (ada_value_primitive_packed_val): Use a more
8650         correct address in call to value_at.  Adjust call to
8651         value_address accordingly.
8652
8653 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8654
8655         * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8656         to print it.
8657
8658 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8659
8660         * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8661         * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8662         pinfo->valaddr.
8663         * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8664         * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8665         (resolve_dynamic_type_internal): Set pinfo.valaddr.
8666         Add handling of addr_stack->valaddr.
8667         (resolve_dynamic_type): Add "valaddr" parameter.
8668         Set pinfo.valaddr field.
8669         * ada-lang.c (ada_discrete_type_high_bound): Update call to
8670         resolve_dynamic_type.
8671         (ada_discrete_type_low_bound): Likewise.
8672         * findvar.c (default_read_var_value): Likewise.
8673         * value.c (value_from_contents_and_address): Likewise.
8674
8675 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8676
8677         * gdbtypes.c (resolve_dynamic_array): Use
8678         create_array_type_with_stride instead of create_array_type.
8679
8680 2015-04-30  DJ Delorie  <dj@redhat.com>
8681
8682         * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8683         rl78_decode_opcode
8684
8685 2015-04-29  Doug Evans  <dje@google.com>
8686
8687         PR python/18285
8688         * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8689         * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8690         EVAL_AVOID_SIDE_EFFECTS for xmethods.
8691         * extension-priv.h (struct extension_language_ops)
8692         <get_xmethod_result_type>: New member.
8693         * extension.c (get_xmethod_result_type): New function.
8694         * extension.h (get_xmethod_result_type): Declare.
8695         * python/py-xmethods.c (get_result_type_method_name): New static
8696         global.
8697         (py_get_result_type_method_name): Ditto.
8698         (gdbpy_get_xmethod_result_type): New function.
8699         (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8700         * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8701         * python/python.c (python_extension_ops): Add
8702         gdbpy_get_xmethod_result_type.
8703         * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8704         * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8705         xmethods.
8706         (value_x_unop): Ditto.
8707         * value.c (result_type_of_xmethod): New function.
8708         * value.h (result_type_of_xmethod): Declare.
8709
8710 2015-04-29  Gary Benson <gbenson@redhat.com>
8711
8712         * solib.c (solib_find_1): Allow fd argument to be NULL.
8713         (exec_file_find): Update comment.
8714         (solib_find): Likewise.
8715         * exec.c (exec_file_locate_attach): Use NULL as fd
8716         argument to exec_file_find to avoid having to close
8717         the opened file.
8718         * infrun.c (follow_exec): Likewise.
8719
8720 2015-04-28  Doug Evans  <dje@google.com>
8721
8722         PR python/18299
8723         * python/lib/gdb/printing.py (register_pretty_printer): Handle
8724         name or __name__ attributes.  Handle gdb module as first argument.
8725
8726 2015-04-28  Doug Evans  <dje@google.com>
8727
8728         PR python/18089
8729         * python/py-prettyprint.c (print_children): Verify result of children
8730         iterator.  Provide better error message.
8731         * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8732         * python/python.c (gdbpy_print_python_errors_p): New function.
8733
8734 2015-04-28  Doug Evans  <dje@google.com>
8735
8736         * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8737
8738 2015-04-28  Sasha Smundak  <asmundak@google.com>
8739
8740         * NEWS: Mention gdb.Type.optimized_out method.
8741         * python/py-type.c (typy_optimized_out):  New function.
8742
8743 2015-04-28  John Baldwin  <jhb@FreeBSD.org>
8744
8745         * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8746
8747 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8748
8749         * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8750         (initialize_utils): Move call of init_page_info() to ...
8751         * top.c (gdb_init): ... here.
8752
8753 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8754
8755         * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8756         (tui_sigwinch_handler): Still update our idea of
8757         the terminal's width and height even when TUI is not active.
8758
8759 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8760
8761         * utils.h (set_screen_width_and_height): Declare.
8762         * utils.c (set_screen_width_and_height): Define.
8763         * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8764
8765 2015-04-28  Gary Benson <gbenson@redhat.com>
8766
8767         * infrun.c (solist.h): New include.
8768         (follow_exec): Use exec_file_find to prefix execd_pathname
8769         with gdb_sysroot.
8770
8771 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8772
8773         * tui/tui-source.c (tui_set_source_content): Avoid calling
8774         strcpy() when offset is 0.
8775
8776 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8777
8778         PR gdb/18155
8779         * tui/tui-data.c (tui_free_window): Don't free the locator
8780         window when passed an SRC_WIN or a DISASSEM_WIN.
8781
8782 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8783
8784         * tui/tui-data.h (struct tui_win_element): Forward-declare.
8785         (tui_win_content): Move declaration.
8786         (struct tui_gen_win_info): Give 'content' field the
8787         type tui_win_content.
8788         * tui/tui-data.c (init_content_element): Remove redundant and
8789         erroneous casts.
8790         (tui_add_content_elements): Remove erroneous cast.
8791         * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8792         casts.
8793         (tui_get_begin_asm_address): Likewise.
8794         * tui/tui-regs.c (tui_show_registers): Likewise.
8795         (tui_show_register_group): Likewise.
8796         (tui_display_registers_from): Likewise.
8797         (tui_check_register_values): Likewise.
8798         * tui/tui-source.c (tui_set_source_content): Likewise.
8799         (tui_set_source_content_nil): Likewise.
8800         (tui_source_is_displayed): Likewise.
8801         * tui/tui-stack.c (tui_show_locator_content): Likewise.
8802         (tui_set_locator_fullname): Likewise.
8803         (tui_set_locator_info): Likewise.
8804         (tui_show_frame_info): Likewise.
8805         * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8806         (tui_show_source_line): Likewise.
8807         (tui_horizontal_source_scroll): Likewise.
8808         (tui_update_breakpoint_info): Likewise.
8809         (tui_set_exec_info_content): Likewise.
8810         (tui_show_exec_info_content): Likewise.
8811         (tui_alloc_source_buffer): Likewise.
8812         (tui_line_is_displayed): Likewise.
8813         (tui_addr_is_displayed): Likewise.
8814
8815 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8816
8817         * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8818         event if PL_FLAG_EXEC is set.
8819         [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8820         [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8821         (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8822         "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8823         Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8824
8825 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8826
8827         * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8828         [TDP_RFPPWAIT] New variable fbsd_pending_children.
8829         [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8830         [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8831         [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8832         [PT_LWPINFO] (fbsd_wait): New function.
8833         [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8834         [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8835         [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8836         [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8837         [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8838         [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8839         [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8840         [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8841         (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8842         "fbsd_wait".
8843         [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8844         Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8845         Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8846         Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8847         Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8848         Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8849         Set "to_post_attach" to "fbsd_post_attach".
8850
8851 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8852
8853         * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8854         (fbsd_find_memory_regions): Mark static.
8855         (fbsd_nat_add_target): New function.
8856         * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8857         fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8858         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8859         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8860         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8861         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8862
8863 2015-04-27  Gary Benson <gbenson@redhat.com>
8864
8865         * objfiles.c (allocate_objfile): Do not attempt to expand name
8866         if name is a "target:" filename.
8867         * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8868         to load auto-load scripts for objfiles with "target:" filenames.
8869
8870 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8871
8872         * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8873         (enum s390_vector_abi_kind): New enum.
8874         (struct gdbarch_tdep)<vector_abi>: New field.
8875         (s390_effective_inner_type): Add parameter min_size.  Stop
8876         unwrapping if the inner type is smaller than min_size.
8877         (s390_function_arg_float): Adjust call to
8878         s390_effective_inner_type.
8879         (s390_function_arg_vector): New function.
8880         (s390_function_arg_integer): Adjust comment.
8881         (struct s390_arg_state)<vr>: New field.
8882         (s390_handle_arg): Add parameter 'is_unnamed'.  Pass vector
8883         arguments according to vector ABI when appropriate.
8884         (s390_push_dummy_call): Initialize the argument state's field
8885         'vr'.  Adjust calls to s390_handle_arg.
8886         (s390_register_return_value): Handle vector return values.
8887         (s390_return_value): Apply the "register" return value convention
8888         to a vector when appropriate.
8889         (s390_gdbarch_init): Initialize tdep->vector_abi.
8890         * NEWS: Announce S390 vector ABI support.
8891
8892 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8893
8894         * s390-linux-tdep.c (s390_return_value_convention): Remove
8895         function.  Inline its logic...
8896         (s390_return_value): ...here.  Instead, move the handling of the
8897         "register" return value convention...
8898         (s390_register_return_value): ...here.  New function.
8899
8900 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8901
8902         * s390-linux-tdep.c
8903         (is_float_singleton): Remove function.  Move the "singleton" part
8904         of the logic...
8905         (s390_effective_inner_type): ...here.  New function.
8906         (is_float_like): Remove function.  Inline its logic...
8907         (s390_function_arg_float): ...here.
8908         (is_pointer_like, is_integer_like, is_struct_like): Remove
8909         functions.  Inline their logic...
8910         (s390_function_arg_integer): ...here.
8911         (s390_function_arg_pass_by_reference): Remove function.
8912         (extend_simple_arg): Remove function.
8913         (alignment_of): Remove function.
8914         (struct s390_arg_state): New structure.
8915         (s390_handle_arg): New function.
8916         (s390_push_dummy_call): Move parameter placement logic to the new
8917         function s390_handle_arg.  Call it for calculating the stack area
8918         sizes first, and again for actually writing the parameters.
8919
8920 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8921
8922         * s390-linux-tdep.c (is_power_of_two): Add comment.  Return
8923           false if the argument is zero.
8924
8925 2015-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
8926
8927         * ada-lang.c (template_to_static_fixed_type): Return input type
8928         when it is already fixed.  Cache the input type itself when not
8929         creating a static fixed copy.  Make it explicit that we never
8930         molestate the input type.
8931         * gdbtypes.c (resolve_dynamic_struct): Reset the
8932         TYPE_TARGET_TYPE field for resolved copies.
8933
8934 2015-04-27  Joel Brobecker  <brobecker@adacore.com>
8935
8936         * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8937         (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8938         (template_to_static_fixed_type): Call ada_check_typedef only
8939         when necessary.
8940
8941 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
8942
8943         * cli/cli-dump.c (srec_dump_command): Add internationalization
8944         mark ups.
8945         (ihex_dump_command): Likewise.
8946         (tekhex_dump_command): Likewise.
8947         (binary_dump_command): Likewise.
8948         (binary_append_command): Likewise.
8949
8950 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
8951
8952         * cli/cli-dump.c (verilog_cmdlist): New variable.
8953         (dump_verilog_memory): New function.
8954         (dump_verilog_value): New function.
8955         (verilog_dump_command): New function.
8956         (_initialize_cli_dump): Add new commands to support verilog dump
8957         format.
8958         * NEWS: Add entry for "dump verilog".
8959
8960 2015-04-24  Pierre-Marie de Rodat  <derodat@adacore.com>
8961
8962         * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8963         descriptive type when there is none.
8964
8965 2015-04-23  Patrick Palka  <patrick@parcs.ath.cx>
8966
8967         * tui/tui-win.c (tui_async_resize_screen): Call
8968         rl_resize_terminal().
8969
8970 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
8971
8972         * windows-nat.c (handle_output_debug_string): Don't change
8973         current_event.dwThreadId.
8974         (get_windows_debug_event): Use thread_id, rather than relying on
8975         current_event.dwThreadId being changed.
8976
8977 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
8978
8979         * windows-nat.c (windows_continue): Report an error if
8980         ContinueDebugEvent() fails.
8981
8982 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8983
8984         * windows-nat.c (windows_resume): Fix misspelling in debug output.
8985
8986 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8987
8988         * windows-nat.c (get_windows_debug_event): Replace retval with
8989         thread_id throughout.  Update stale comment.
8990
8991 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8992
8993         * windows-nat.c (get_windows_debug_event): Don't use ternary
8994         conditional operator.
8995
8996 2015-04-21  Pierre Muller  <muller@sourceware.org>
8997
8998         PR pascal/17815
8999         p-exp.y (yylex): Reorganize code to return the matched pattern
9000         for a field of this.
9001
9002 2015-04-21  Gary Benson <gbenson@redhat.com>
9003
9004         * common/fileio.h (fileio_to_host_openflags): New declaration.
9005         * common/fileio.c (fcntl.h): New include.
9006         (fileio_to_host_openflags): New function, factored out from...
9007         * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
9008         Single use updated.
9009
9010 2015-04-21  Kevin Buettner  <kevinb@redhat.com>
9011
9012         * rl78-tdep.c (RL78_SP_ADDR): Define.
9013         (opc_reg_to_gdb_regnum): New static function.
9014         (rl78_analyze_prologue): Recognize instructions forming slightly
9015         more interesting prologues.
9016
9017 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
9018
9019         Revert:
9020         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9021         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9022         TYPE_CODE_REF types so that they are not considered as dynamic
9023         depending on the referenced type.
9024         (resolve_dynamic_type_internal): Likewise.
9025
9026 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
9027
9028         Revert:
9029         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9030         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9031         "top_level" parameter.
9032         (resolve_dynamic_type_internal): Remove the unused "top_level"
9033         parameter.  Update call to is_dynamic_type_internal.
9034         (is_dynamic_type): Update call to is_dynamic_type_internal.
9035         (resolve_dynamic_range): Update call to
9036         resolve_dynamic_type_internal.
9037         (resolve_dynamic_union): Likewise.
9038         (resolve_dynamic_struct): Likewise.
9039         (resolve_dynamic_type): Likewise.
9040
9041 2015-04-19  Gabriel Krisman Bertazi  <gabriel@krisman.be>
9042
9043         * breakpoint.c (update_dprintf_command_list): Remove duplicated
9044         xmalloc.
9045
9046 2015-04-20  Thomas Schwinge  <thomas@codesourcery.com>
9047
9048         * reply_mig_hack.awk: Robustify parsing.
9049
9050         * reply_mig_hack.awk: Don't bother to declare an intermediate
9051         function pointer variable.
9052
9053 2015-04-17  Doug Evans  <dje@google.com>
9054
9055         * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
9056         to "exec_displacement" to avoid confusion with inner use of the name.
9057
9058 2015-04-17  Pedro Alves  <palves@redhat.com>
9059
9060         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
9061         if HW point of TYPE isn't supported.
9062
9063 2015-04-17  Yao Qi  <yao.qi@linaro.org>
9064             Pedro Alves  <palves@redhat.com>
9065
9066         * target.h (target_can_use_hardware_watchpoint): Update comments.
9067         Remove trailing ";".
9068
9069 2015-04-17  Gary Benson <gbenson@redhat.com>
9070
9071         * remote.c (remote_add_inferior): New argument try_open_exec.
9072         If nonzero, attempt to open the inferior's executable file as
9073         the main executable if no main executable is open already.
9074         All callers updated.
9075         * NEWS: Mention that GDB now supports automatic location and
9076         retrieval of executable + files from remote targets.
9077
9078 2015-04-17  Gary Benson <gbenson@redhat.com>
9079
9080         * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
9081         * remote.c (PACKET_qXfer_exec_file): Likewise.
9082         (remote_protocol_features): Register the
9083         "qXfer:exec-file:read" feature.
9084         (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
9085         (remote_pid_to_exec_file): New function.
9086         (init_remote_ops): Initialize to_pid_to_exec_file.
9087         (_initialize_remote): Register new "set/show remote
9088         pid-to-exec-file-packet" command.
9089         * NEWS: Announce new qXfer:exec-file:read packet.
9090
9091 2015-04-17  Gary Benson <gbenson@redhat.com>
9092
9093         * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
9094         New declaration.
9095         * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
9096         New function, factored out from...
9097         * linux-nat.c (linux_child_pid_to_exec_file): ...here.
9098
9099 2015-04-17  Gary Benson <gbenson@redhat.com>
9100
9101         * exec.c (solist.h): New include.
9102         (exec_file_locate_attach): Prefix absolute executable
9103         paths with gdb_sysroot if set.
9104         * NEWS: Mention that executable paths may be prepended
9105         with sysroot.
9106
9107 2015-04-17  Gary Benson <gbenson@redhat.com>
9108
9109         * solist.h (exec_file_find): New declaration.
9110         * solib.c (solib_find_1): New function, factored out from...
9111         (solib_find): ...here.
9112         (exec_file_find): New function.
9113
9114 2015-04-17  Gary Benson <gbenson@redhat.com>
9115
9116         * gdbcore.h (exec_file_locate_attach): New declaration.
9117         * exec.c (exec_file_locate_attach): New function, factored
9118         out from...
9119         * infcmd.c (attach_command_post_wait): ...here.
9120
9121 2015-04-17  Mike Frysinger  <vapier@gentoo.org>
9122
9123         * MAINTAINERS: Add myself for Blackfin/write-after-approval.
9124
9125 2015-04-16  Yao Qi  <yao.qi@linaro.org>
9126
9127         * infrun.c (maybe_software_singlestep): Declare.
9128         (displaced_step_fixup): Call maybe_software_singlestep.
9129
9130 2015-04-15  Doug Evans  <dje@google.com>
9131
9132         * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
9133
9134 2015-04-15  Doug Evans  <dje@google.com>
9135
9136         * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
9137
9138 2015-04-15  Simon Marchi  <simon.marchi@ericsson.com>
9139
9140         * python/lib/gdb/command/unwinders.py: Add parentheses.
9141
9142 2015-04-15  Yao Qi  <yao.qi@linaro.org>
9143
9144         * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
9145
9146 2015-04-15  Yao Qi  <yao.qi@linaro.org>
9147
9148         * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
9149
9150 2015-04-15  Yao Qi  <yao.qi@linaro.org>
9151
9152         * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
9153         dsc->insn_size instead of 4.
9154
9155 2015-04-14  Gary Benson <gbenson@redhat.com>
9156
9157         * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
9158         * minidebug.c (lzma_stat): Likewise.
9159         * solib-spu.c (spu_bfd_iovec_stat): Likewise.
9160         * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
9161
9162 2015-04-13  Stan Shebs  <stanshebs@google.com>
9163
9164         * MAINTAINERS: Update my email address.
9165
9166 2015-04-13  John Baldwin  <jhb@FreeBSD.org>
9167
9168         * amd64-tdep.c (amd64_target_description): New function.
9169         * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
9170         * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
9171         (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9172         x86 extended save area.
9173         (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9174         * amd64bsd-nat.h: Export amd64bsd_xsave_len.
9175         * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
9176         (_initialize_amd64fbsd_nat): Set "to_read_description" to
9177         "amd64fbsd_read_description".
9178         * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
9179         (amd64fbsd_supply_xstateregset): New function.
9180         (amd64fbsd_collect_xstateregset): New function.
9181         Add "amd64fbsd_xstateregset".
9182         (amd64fbsd_iterate_over_regset_sections): New function.
9183         (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
9184         "I386_FBSD_XSAVE_XCR0_OFFSET".
9185         Add "iterate_over_regset_sections" gdbarch method.
9186         Add "core_read_description" gdbarch method.
9187         * i386-tdep.c (i386_target_description): New function.
9188         * i386-tdep.h: Export i386_target_description and tdesc_i386.
9189         * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
9190         (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9191         x86 extended save area.
9192         (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9193         * i386bsd-nat.h: Export i386bsd_xsave_len.
9194         * i386fbsd-nat.c (i386fbsd_read_description): New function.
9195         (_initialize_i386fbsd_nat): Set "to_read_description" to
9196         "i386fbsd_read_description".
9197         * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
9198         (i386fbsd_core_read_description): New function.
9199         (i386fbsd_supply_xstateregset): New function.
9200         (i386fbsd_collect_xstateregset): New function.
9201         Add "i386fbsd_xstateregset".
9202         (i386fbsd_iterate_over_regset_sections): New function.
9203         (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
9204         "I386_FBSD_XSAVE_XCR0_OFFSET".
9205         Add "iterate_over_regset_sections" gdbarch method.
9206         Add "core_read_description" gdbarch method.
9207         * i386fbsd-tdep.h: New file.
9208
9209 2015-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
9210
9211         * NEWS (Changes since GDB 7.9): Add removed -xdb.
9212         * breakpoint.c (command_line_is_silent): Remove xdb_commands
9213         conditional.
9214         (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
9215         and lb.
9216         * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
9217         va.
9218         * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
9219         conditional.
9220         * defs.h (xdb_commands): Remove declaration.
9221         * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
9222         * guile/scm-cmd.c (command_classes): Remove xdb from comment.
9223         * infcmd.c (run_no_args_command, go_command): Remove.
9224         (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
9225         * infrun.c (xdb_handle_command): Remove.
9226         (_initialize_infrun): Remove xdb_commands for lz and z.
9227         * main.c (xdb_commands): Remove variable.
9228         (captured_main): Remove "xdb" from long_options.
9229         (print_gdb_help): Remove --xdb from help.
9230         * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
9231         * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
9232         * stack.c (backtrace_full_command, args_plus_locals_info)
9233         (current_frame_command): Remove.
9234         (_initialize_stack): Remove xdb_commands for t, T and l.
9235         * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
9236         * thread.c (_initialize_thread): Remove xdb_commands condition.
9237         * tui/tui-layout.c (tui_toggle_layout_command)
9238         (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
9239         (_initialize_tui_layout): Remove xdb_commands for td and ts.
9240         * tui/tui-regs.c (tui_scroll_regs_forward_command)
9241         (tui_scroll_regs_backward_command): Remove.
9242         (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
9243         * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
9244         (_initialize_tui_win): Remove xdb_commands for U and w.
9245         * utils.c (pagination_on_command, pagination_off_command): Remove.
9246         (initialize_utils): Remove xdb_commands for am and sm.
9247
9248 2015-04-10  Pedro Alves  <palves@redhat.com>
9249
9250         * infrun.c (displaced_step_fixup): Switch to the event ptid
9251         earlier.  If the thread stopped for a watchpoint and the
9252         target/arch has non-continuable watchpoints, cancel the displaced
9253         step.
9254         (resume): Don't start a displaced step if in-line step-over info
9255         is valid.
9256
9257 2015-04-10  Pedro Alves  <palves@redhat.com>
9258
9259         * infrun.c (displaced_step_in_progress): New function.
9260         (do_target_resume): Advise target to report all signals if
9261         displaced stepping.
9262
9263 2015-04-10  Pedro Alves  <palves@redhat.com>
9264
9265         PR gdb/18216
9266         * infrun.c (process_event_stop_test): Don't assume a step-resume
9267         is set if tp->stepped_breakpoint is true.
9268
9269 2015-04-10  Yao Qi  <yao.qi@linaro.org>
9270
9271         * arm-tdep.c (install_alu_reg): Update comment.
9272         (thumb_copy_alu_reg): Remove local variable rn.  Update
9273         debugging message.  Use r2 instead of r1 in the modified
9274         instruction.
9275
9276 2015-04-10  Pedro Alves  <palves@redhat.com>
9277
9278         PR gdb/13858
9279         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
9280         linux_displaced_step_location as gdbarch_displaced_step_location
9281         hook.
9282         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
9283         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9284         * linux-tdep.c (linux_displaced_step_location): New function,
9285         based on ppc_linux_displaced_step_location.
9286         * linux-tdep.h (linux_displaced_step_location): New declaration.
9287         * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
9288         (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
9289         Delete.
9290         (ppc_linux_init_abi): Install linux_displaced_step_location as
9291         gdbarch_displaced_step_location hook, even without Cell/B.E..
9292         (_initialize_ppc_linux_tdep): Don't install
9293         ppc_linux_inferior_created as inferior_created observer.
9294         * s390-linux-tdep.c (s390_gdbarch_init): Install
9295         linux_displaced_step_location as gdbarch_displaced_step_location
9296         hook.
9297
9298 2015-04-09  Gary Benson <gbenson@redhat.com>
9299
9300         * common/common-remote-fileio.h: Rename to...
9301         * common/fileio.h: ...this.  Update all references.
9302         (remote_fileio_to_fio_error): Rename to...
9303         (host_to_fileio_error): ...this.
9304         (remote_fileio_to_be): Rename to...
9305         (host_to_bigendian): ...this.  Update all callers.
9306         (remote_fileio_to_fio_uint): Rename to...
9307         (host_to_fileio_uint): ...this.  Update all callers.
9308         (remote_fileio_to_fio_time): Rename to...
9309         (host_to_fileio_time): ...this.  Update all callers.
9310         (remote_fileio_to_fio_stat): Rename to...
9311         (host_to_fileio_stat): ...this.
9312         Update all references.
9313         * common/common-remote-fileio.c: Rename to...
9314         * common/fileio.c: ...this.  Update all references.
9315         (remote_fileio_to_fio_error): Rename to...
9316         (host_to_fileio_error): ...this.  Update all callers.
9317         (remote_fileio_mode_to_target): Rename to...
9318         (fileio_mode_pack): ...this.  Update all callers.
9319         (remote_fileio_to_fio_mode): Rename to...
9320         (host_to_fileio_mode): ...this.  Update all callers.
9321         (remote_fileio_to_fio_ulong): Rename to...
9322         (host_to_fileio_ulong): ...this.  Update all callers.
9323         (remote_fileio_to_fio_stat): Rename to...
9324         (host_to_fileio_stat): ...this.  Update all callers.
9325
9326 2015-04-09  Andy Wingo  <wingo@igalia.com>
9327
9328         * guile/scm-frame.c (gdbscm_frame_read_register): New function.
9329         (frame_functions): Bind gdbscm_frame_read_register to
9330         frame-read-register.
9331         * guile/lib/gdb.scm (frame-read-register): Export.
9332
9333 2015-04-09  Gary Benson <gbenson@redhat.com>
9334
9335         * common/common-remote-fileio.h (remote_fileio_to_fio_error):
9336         New declaration.
9337         * common/common-remote-fileio.c (remote_fileio_to_fio_error):
9338         New function, factored out the named functions below.
9339         * inf-child.c (gdb/fileio.h): Remove include.
9340         (common-remote-fileio.h): New include.
9341         (inf_child_errno_to_fileio_error): Remove function.  Update
9342         all callers to use remote_fileio_to_fio_error.
9343         * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
9344
9345 2015-04-09  Andy Wingo  <wingo@igalia.com>
9346
9347         * MAINTAINERS (Write After Approval): Add Andy Wingo.
9348
9349 2015-04-09  H.J. Lu  <hongjiu.lu@intel.com>
9350
9351         * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
9352         Replace $zlibdir with $ZLIBDIR in LDFLAGS.
9353         * configure: Regenerated.
9354
9355 2015-04-09  Pedro Alves  <palves@redhat.com>
9356
9357         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
9358         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
9359         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
9360         * gnulib/import/Makefile.am: Update.
9361         * gnulib/import/Makefile.in: Update.
9362         * gnulib/import/m4/gnulib-cache.m4: Update.
9363         * gnulib/import/m4/gnulib-comp.m4: Update.
9364         * gnulib/import/m4/strtok_r.m4: New file.
9365         * gnulib/import/strtok_r.c: New file.
9366
9367 2015-04-09  Pedro Alves  <palves@redhat.com>
9368
9369         * gnulib/update-gnulib.sh (aclocal version check): Filter out
9370         "called too early to check prototype".
9371
9372 2015-04-08  Sergio Durigan Junior  <sergiodj@redhat.com>
9373
9374         PR python/16699
9375         * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
9376         use a caching mechanism.  Adjust comments and code to reflect
9377         that.  Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
9378         (cmdpy_completer_handle_brkchars): Adjust call to
9379         cmdpy_completer_helper.  Call Py_XDECREF for 'resultobj'.
9380         (cmdpy_completer): Likewise.
9381
9382 2015-04-08  Yao Qi  <yao.qi@linaro.org>
9383
9384         * spu-tdep.c (spu_gdbarch_init): Don't call
9385         set_gdbarch_cannot_step_breakpoint.
9386
9387 2015-04-07  Sergio Durigan Junior  <sergiodj@redhat.com>
9388
9389         * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
9390
9391 2015-04-07  Pedro Alves  <palves@redhat.com>
9392
9393         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
9394         (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
9395         (delete_exited_threads): New declaration.
9396         * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
9397         * linux-nat.c (linux_nat_update_thread_list): New function.
9398         (linux_nat_add_target): Install it.
9399         * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
9400         * thread.c (prune_threads): Use ALL_THREADS_SAFE.
9401         (delete_exited_threads): New function.
9402
9403 2015-04-07  Pedro Alves  <pedro@codesourcery.com>
9404
9405         * infrun.c (resume) <displaced stepping debug output>: Get the
9406         leader thread's regcache, not resume_ptid's.
9407
9408 2015-04-06  Doug Evans  <xdje42@gmail.com>
9409
9410         * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
9411         VAR_DOMAIN.
9412         (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
9413         Include symbol domain in debugging output.
9414
9415 2015-04-06  Pedro Alves  <palves@redhat.com>
9416             Bernd Edlinger  <bernd.edlinger@hotmail.de>
9417
9418         * configure.ac: Remove the mingw32-specific stub-termcap.o
9419         fallback, and instead fallback to the stub termcap on all hosts.
9420         * configure: Regenerate.
9421         * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
9422         symbols.
9423
9424 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9425
9426         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9427         "top_level" parameter.
9428         (resolve_dynamic_type_internal): Remove the unused "top_level"
9429         parameter.  Update call to is_dynamic_type_internal.
9430         (is_dynamic_type): Update call to is_dynamic_type_internal.
9431         (resolve_dynamic_range): Update call to
9432         resolve_dynamic_type_internal.
9433         (resolve_dynamic_union): Likewise.
9434         (resolve_dynamic_struct): Likewise.
9435         (resolve_dynamic_type): Likewise.
9436
9437 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9438
9439         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9440         TYPE_CODE_REF types so that they are not considered as dynamic
9441         depending on the referenced type.
9442         (resolve_dynamic_type_internal): Likewise.
9443
9444 2015-04-02  H.J. Lu  <hongjiu.lu@intel.com>
9445
9446         * Makefile.in (top_srcdir): New.
9447         * configure: Regenerated.
9448
9449 2015-04-02  Gary Benson <gbenson@redhat.com>
9450
9451         * NEWS: Announce the new default sysroot of "target:".
9452
9453 2015-04-02  Gary Benson <gbenson@redhat.com>
9454
9455         * main.c (captured_main): Set gdb_sysroot to "target:"
9456         if not otherwise set.
9457
9458 2015-04-02  Gary Benson <gbenson@redhat.com>
9459
9460         * exec.c (exec_file_attach): Support "target:" filenames.
9461
9462 2015-04-02  Gary Benson <gbenson@redhat.com>
9463
9464         * solib.c (solib_find): Strip "target:" prefix from sysroot
9465         if accessing local files.
9466
9467 2015-04-02  Gary Benson <gbenson@redhat.com>
9468
9469         * symfile.c (symfile_bfd_open): Reorder to remove duplicated
9470         checks and error messages.
9471
9472 2015-04-02  Gary Benson <gbenson@redhat.com>
9473
9474         * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
9475         (remote_filename_p): Remove declaration.
9476         (remote_bfd_open): Likewise.
9477         * remote.c (remote_bfd_iovec_open): Remove function.
9478         (remote_bfd_iovec_close): Likewise.
9479         (remote_bfd_iovec_pread): Likewise.
9480         (remote_bfd_iovec_stat): Likewise.
9481         (remote_filename_p): Likewise.
9482         (remote_bfd_open): Likewise.
9483         * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
9484         * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
9485         (gdb_bfd_open_maybe_remote): Remove function.
9486         (symfile_bfd_open):  Replace remote filename check with
9487         target filename check.
9488         (reread_symbols): Use gdb_bfd_open.
9489         * build-id.c (gdbcore.h): New include.
9490         (build_id_to_debug_bfd): Use gdb_bfd_open.
9491         * infcmd.c (attach_command_post_wait): Remove remote filename
9492         check.
9493         * solib.c (solib_find): Replace remote-specific handling with
9494         target-specific handling.  Update comments where necessary.
9495         (solib_bfd_open): Replace remote-specific handling with
9496         target-specific handling.
9497         (gdb_sysroot_changed): New function.
9498         (_initialize_solib): Call the above when gdb_sysroot changes.
9499         * windows-tdep.c (gdbcore.h): New include.
9500         (windows_xfer_shared_library): Use gdb_bfd_open.
9501
9502 2015-04-02  Gary Benson <gbenson@redhat.com>
9503
9504         * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
9505         (is_target_filename): New declaration.
9506         (gdb_bfd_has_target_filename): Likewise.
9507         (gdb_bfd_open): Update documentation comment.
9508         * gdb_bfd.c (target.h): New include.
9509         (gdb/fileio.h): Likewise.
9510         (is_target_filename): New function.
9511         (gdb_bfd_has_target_filename): Likewise.
9512         (fileio_errno_to_host): Likewise.
9513         (gdb_bfd_iovec_fileio_open): Likewise.
9514         (gdb_bfd_iovec_fileio_pread): Likewise.
9515         (gdb_bfd_iovec_fileio_close): Likewise.
9516         (gdb_bfd_iovec_fileio_fstat): Likewise.
9517         (gdb_bfd_open): Use target fileio to access paths prefixed
9518         with "target:" where necessary.
9519
9520 2015-04-02  Gary Benson <gbenson@redhat.com>
9521
9522         * target.h (struct target_ops) <to_filesystem_is_local>:
9523         New field.
9524         (target_filesystem_is_local): New macro.
9525         * target-delegates.c: Regenerate.
9526         * remote.c (remote_filesystem_is_local): New function.
9527         (init_remote_ops): Initialize to_filesystem_is_local.
9528
9529 2015-04-02  Gary Benson <gbenson@redhat.com>
9530
9531         * target.h (struct target_ops) <to_fileio_fstat>: New field.
9532         (target_fileio_fstat): New declaration.
9533         * target.c (target_fileio_fstat): New function.
9534         * inf-child.c (inf_child_fileio_fstat): Likewise.
9535         (inf_child_target): Initialize to_fileio_fstat.
9536         * remote.c (init_remote_ops): Likewise.
9537
9538 2015-04-01  Sasha Smundak  <asmundak@google.com>
9539
9540         * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
9541         (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
9542         (py-unwind.o): New recipe.
9543         * NEWS: mention Python frame unwinding.
9544         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
9545         gdb/unwinder.py and gdb/command/unwinder.py
9546         * python/lib/gdb/__init__.py (packages): Add frame_unwinders
9547         list.
9548         (execute_unwinders): New function.
9549         * python/lib/gdb/command/unwinders.py: New file.
9550         * python/lib/gdb/unwinder.py: New file.
9551         * python/py-objfile.c (objfile_object): Add frame_unwinders field.
9552         (objfpy_dealloc): Decrement frame_unwinders reference count.
9553         (objfpy_initialize): Create frame_unwinders list.
9554         (objfpy_get_frame_unwinders): New function.
9555         (objfpy_set_frame_unwinders): Ditto.
9556         (objfile_getset): Add frame_unwinders attribute to Objfile.
9557         * python/py-progspace.c (pspace_object): Add frame_unwinders field.
9558         (pspy_dealloc): Decrement frame_unwinders reference count.
9559         (pspy_initialize): Create frame_unwinders list.
9560         (pspy_get_frame_unwinders): New function.
9561         (pspy_set_frame_unwinders): Ditto.
9562         (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
9563         * python/py-unwind.c: New file.
9564         * python/python-internal.h (pspy_get_name_unwinders): New prototype.
9565         (objpy_get_frame_unwinders): New prototype.
9566         (gdbpy_initialize_unwind): New prototype.
9567         * python/python.c (gdbpy_apply_type_printers): Call
9568         gdbpy_initialize_unwind.
9569
9570 2015-04-01  Pedro Alves  <palves@redhat.com>
9571
9572         * infrun.c (resume): Check currently_stepping after clearing
9573         stepped_breakpoint, not before.
9574
9575 2015-04-01  Pedro Alves  <palves@redhat.com>
9576
9577         * infrun.c (print_target_wait_results): Print all the ptid
9578         elements.
9579
9580 2015-04-01  Pedro Alves  <palves@redhat.com>
9581
9582         * infrun.c (keep_going): Also discard cleanups if inserting
9583         breakpoints fails.
9584
9585 2015-04-01  Pedro Alves  <palves@redhat.com>
9586
9587         * infrun.c (wait_for_inferior): Install the
9588         finish_thread_state_cleanup cleanup across the whole function, not
9589         just around handle_inferior_event.
9590
9591 2015-04-01  Pedro Alves  <palves@redhat.com>
9592
9593         * infrun.c (resume) <step past permanent breakpoint>: Use
9594         do_target_resume.
9595
9596 2015-04-01  Pedro Alves  <palves@redhat.com>
9597
9598         * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9599
9600 2015-04-01  Pierre-Marie de Rodat  <derodat@adacore.com>
9601
9602         * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9603
9604 2015-04-01  Pedro Alves  <palves@redhat.com>
9605
9606         * linux-thread-db.c (record_thread): Readd the thread to gdb's
9607         list if it was marked exited.
9608
9609 2015-04-01  H.J. Lu  <hongjiu.lu@intel.com>
9610
9611         * configure: Regenerated.
9612
9613 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
9614             Jan Kratochvil  <jan.kratochvil@redhat.com>
9615             Oleg Nesterov  <oleg@redhat.com>
9616
9617         PR corefiles/16092
9618         * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9619         New enum identifying the various options of the coredump_filter
9620         file.
9621         (struct smaps_vmflags): New struct.
9622         (use_coredump_filter): New variable.
9623         (decode_vmflags): New function.
9624         (mapping_is_anonymous_p): Likewise.
9625         (dump_mapping_p): Likewise.
9626         (linux_find_memory_regions_full): New variables
9627         'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9628         Removed variable 'modified'.  Read /proc/<PID>/smaps file; improve
9629         parsing of its information.  Implement memory mapping filtering
9630         based on its contents.
9631         (show_use_coredump_filter): New function.
9632         (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9633         * NEWS: Mention the possibility of using the
9634         '/proc/PID/coredump_filter' file when generating a corefile.
9635         Mention new command 'set use-coredump-filter'.
9636
9637 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
9638
9639         * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9640         read_memory_unsigned_integer.
9641
9642 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
9643
9644         * Makefile.in (ZLIB): New.
9645         (ZLIBINC): Likewise.
9646         (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9647         (CLIBS): Add $(ZLIB).
9648         * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9649         Add -lz to LIBS.
9650         * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9651         * top.c (print_gdb_configuration): Remove --with-zlib and
9652         --without-zlib.
9653         * config.in: Regenerated.
9654         * configure: Likewise.
9655
9656 2015-03-31  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9657
9658         * NEWS: Mention info os cpus support.
9659         * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9660         (struct osdata_type): Add cpus entry, reorder the entries in
9661         alphabetical order.
9662
9663 2015-03-31  Matthias Klose  <doko@ubuntu.com>
9664
9665         * compile/compile.c (compile_to_object): Allow triplets with or
9666         without vendor set.
9667
9668 2015-03-30  Doug Evans  <dje@google.com>
9669
9670         PR c++/18141
9671         * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9672         klass in VAR_DOMAIN.
9673
9674 2015-03-30  Gary Benson <gbenson@redhat.com>
9675
9676         * remote.c (remote_mourn_1): Remove function.  Update all callers
9677         to use remote_mourn.
9678         (extended_remote_mourn_1): Remove function.  Update all callers
9679         to use extended_remote_mourn.
9680         (extended_remote_attach_1): Remove function.  Update all callers
9681         to use extended_remote_attach.
9682
9683 2015-03-28  James Bowman  <james.bowman@ftdichip.com>
9684
9685         * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9686         (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9687         (ALLDEPFILES): Add ft32-tdep.c.
9688         * configure.tgt: Add FT32 entry.
9689         * ft32-tdep.c: New file, FT32 target-dependent code.
9690         * ft32-tdep.h: New file, FT32 target-dependent code.
9691
9692 2015-03-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
9693
9694         Revert:
9695         2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9696         Code cleanup.
9697         * printcmd.c (print_command_1): Move expr variable scope.
9698
9699 2015-03-27  Joel Brobecker  <brobecker@adacore.com>
9700
9701         * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9702
9703 2015-03-27  Andrzej Kaczmarek  <andrzej.kaczmarek@tieto.com>
9704
9705         * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9706         sections.
9707
9708 2015-03-26  Joel Brobecker  <brobecker@adacore.com>
9709
9710         * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9711         exception raised while parsing the probe arguments.
9712         Force parsing to be done using the C language parser.
9713         * expression.h (parse_expression_with_language): Declare.
9714         * parse.c (parse_expression_with_language): New function.
9715
9716 2015-03-26  Jon Turney  <jon.turney@dronecode.org.uk>
9717
9718         * MAINTAINERS (Write After Approval): Add "Jon Turney".
9719
9720 2015-03-26  Andy Wingo  <wingo@igalia.com>
9721
9722         PR symtab/18148
9723         * dwarf2read.c (struct partial_die_info): Add has_const_value
9724         member.
9725         (add_partial_symbol): Don't punt on symbols that have const_value
9726         attributes.
9727         (read_partial_die): Detect DW_AT_const_value.
9728
9729 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9730
9731         Code cleanup.
9732         * printcmd.c (print_command_1): Move expr variable scope.
9733
9734 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9735
9736         Code cleanup.
9737         * printcmd.c (validate_format): Make the parameter cmdname const.
9738
9739 2015-03-26  Don Breazeal  <donb@codesourcery.com>
9740
9741         * remote.c (_initialize_remote): Update comment.
9742
9743 2015-03-26  Pedro Alves  <palves@redhat.com>
9744             Jon TURNEY  <jon.turney@dronecode.org.uk>
9745
9746         * coffread.c (coff_symfile_read): When constructing the name of an
9747         import stub symbol from import symbol for amd64, only skip the
9748         char after _imp_ if the target is underscored (like i386) and the
9749         char is indeed the target's leading char.
9750
9751 2015-03-25  Pedro Alves  <palves@redhat.com>
9752
9753         * target.h <to_async>: Replace 'callback' and 'context' parameters
9754         with boolean 'enable' parameter.
9755         (target_async): Replace CALLBACK and CONTEXT parameters with
9756         boolean ENABLE parameter.
9757         * inf-loop.c (inferior_event_handler): Adjust.
9758         * linux-nat.c (linux_nat_attach, linux_nat_resume)
9759         (linux_nat_resume): Adjust.
9760         (async_client_callback, async_client_context): Delete.
9761         (handle_target_event): Call inferior_event_handler directly.
9762         (linux_nat_async): Replace 'callback' and 'context' parameters
9763         with boolean 'enable' parameter.  Adjust.  Remove references to
9764         async_client_callback and async_client_context.
9765         (linux_nat_close): Adjust.
9766         * record-btrace.c (record_btrace_async): Replace 'callback' and
9767         'context' parameters with boolean 'enable' parameter.  Adjust.
9768         (record_btrace_resume): Adjust.
9769         * record-full.c (record_full_async): Replace 'callback' and
9770         'context' parameters with boolean 'enable' parameter.  Adjust.
9771         (record_full_resume, record_full_core_resume): Adjust.
9772         * remote.c (struct remote_state) <async_client_callback,
9773         async_client_context>: Delete fields.
9774         (remote_start_remote, extended_remote_attach_1, remote_resume)
9775         (extended_remote_create_inferior): Adjust.
9776         (remote_async_serial_handler): Call inferior_event_handler
9777         directly.
9778         (remote_async): Replace 'callback' and 'context' parameters with
9779         boolean 'enable' parameter.  Adjust.
9780         * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9781         Adjust.
9782         * target-delegates.c: Regenerate.
9783
9784 2015-03-25  Gary Benson <gbenson@redhat.com>
9785             Pedro Alves  <palves@redhat.com>
9786
9787         * target.c (fileio_ft_t): New typedef, define object vector.
9788         (fileio_fhandles): New static variable.
9789         (is_closed_fileio_fh): New macro.
9790         (lowest_closed_fd): New static variable.
9791         (acquire_fileio_fd): New function.
9792         (release_fileio_fd): Likewise.
9793         (fileio_fd_to_fh): New macro.
9794         (target_fileio_open): Wrap the file descriptor on success.
9795         (target_fileio_pwrite): Updated to use wrapped file descriptor.
9796         (target_fileio_pread): Likewise.
9797         (target_fileio_close): Likewise.
9798
9799 2015-03-24  Pedro Alves  <palves@redhat.com>
9800
9801         * thread.c (thread_apply_all_command): Take exited threads into
9802         account.
9803
9804 2015-03-24  Pedro Alves  <palves@redhat.com>
9805
9806         * infrun.c (resume, proceed): Mention
9807         switch_back_to_stepped_thread, not switch_back_to_stepping.
9808
9809 2015-03-24  Pedro Alves  <palves@redhat.com>
9810
9811         * infrun.c (user_visible_resume_ptid): Rewrite going from
9812         most-locked to unlocked instead of the opposite.  Move comment ...
9813         * infrun.h (user_visible_resume_ptid): ... here.
9814
9815 2015-03-24  Pedro Alves  <palves@redhat.com>
9816
9817         * linux-nat.c (linux_nat_resume): Output debug logs before trying
9818         to resume the event lwp.  Use the lwp's ptid instead of the passed
9819         in (maybe wildcard) ptid.
9820         (stop_wait_callback): Tweak debug log output.
9821         (check_stopped_by_breakpoint): Tweak debug log output.  Also dump
9822         TRAP_TRACE.
9823         (linux_nat_filter_event): In debug output, distinguish a
9824         resume_stop SIGSTOP from a delayed SIGSTOP.  Output debug logs
9825         before trying to resume the lwp.
9826
9827 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
9828
9829         * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9830         pointer indirection.
9831         * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9832         (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9833
9834 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
9835
9836         * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9837         Renames DYN_ATTR_DATA_LOCATION.
9838         (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9839         DYN_ATTR_DATA_LOCATION.
9840         * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9841         instead of DYN_ATTR_DATA_LOCATION.
9842
9843 2015-03-24  Pedro Alves  <palves@redhat.com>
9844
9845         * breakpoint.c (until_break_command): Adjust call to proceed.
9846         * gdbthread.h (struct thread_control_state) <stepping_command>:
9847         New field.
9848         * infcall.c (run_inferior_call): Adjust call to proceed.
9849         * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9850         Adjust calls to proceed.
9851         (set_step_frame): Set the current thread's step_start_function
9852         here.
9853         (step_once): Adjust calls to proceed.
9854         (jump_command, signal_command, until_next_command)
9855         (finish_backward, finish_forward, proceed_after_attach_callback)
9856         (attach_command_post_wait): Adjust calls to proceed.
9857         * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9858         (do_target_resume): New function, factored out from ...
9859         (resume): ... here.  Remove 'step' parameter.  Instead, check
9860         currently_stepping to determine whether the thread should be
9861         single-stepped.
9862         (proceed): Remove 'step' parameter and don't set the thread's
9863         step_start_function here.  Adjust call to 'resume'.
9864         (handle_inferior_event): Adjust calls to 'resume'.
9865         (switch_back_to_stepped_thread): Use do_target_resume instead of
9866         'resume'.
9867         (keep_going): Adjust calls to 'resume'.
9868         * infrun.h (proceed): Remove 'step' parameter.
9869         (resume): Likewise.
9870         * windows-nat.c (do_initial_windows_stuff): Adjust call to
9871         'resume'.
9872         * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9873
9874 2015-03-24  Pedro Alves  <palves@redhat.com>
9875
9876         * gdbthread.h (struct thread_control_state) <stepping_command>:
9877         New field.
9878         * infcmd.c (step_once): Pass step=1 to clear_proceed_status.  Set
9879         the thread's stepping_command field.
9880         * infrun.c (resume): Check the thread's stepping_command flag to
9881         determine which threads should be resumed.  Rename 'entry_step'
9882         local to user_step.
9883         (clear_proceed_status_thread): Clear 'stepping_command'.
9884         (schedlock_applies): Change parameter type to struct thread_info
9885         pointer.  Adjust.
9886         (find_thread_needs_step_over): Remove 'step' parameter.  Adjust.
9887         (switch_back_to_stepped_thread): Adjust calls to
9888         'schedlock_applies'.
9889         (_initialize_infrun): Adjust "set scheduler-locking step" help.
9890
9891 2015-03-24  Pedro Alves  <palves@redhat.com>
9892
9893         * infrun.c (step_start_function): Delete and ...
9894         * gdbthread.h (struct thread_control_state) <step_start_function>:
9895         ... now a field here.
9896         * infrun.c (clear_proceed_status_thread): Clear the thread's
9897         step_start_function.
9898         (proceed, process_event_stop_test, print_stop_event): Adjust.
9899
9900 2015-03-24  Pedro Alves  <palves@redhat.com>
9901
9902         * infrun.c (proceed): No longer handle negative step.
9903
9904 2015-03-24  Gary Benson  <gbenson@redhat.com>
9905
9906         * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9907         (x86_linux_prepare_to_resume): Likewise.
9908         * x86-linux-nat.c (x86_linux_new_thread):
9909         Moved to nat/x86-linux.c.
9910         (x86_linux_prepare_to_resume): Likewise.
9911         * nat/x86-linux.c (x86_linux_new_thread): New function.
9912         (x86_linux_prepare_to_resume): Likewise.
9913
9914 2015-03-24  Gary Benson  <gbenson@redhat.com>
9915
9916         * nat/x86-linux-dregs.h: New file.
9917         * nat/x86-linux-dregs.c: Likewise.
9918         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9919         (x86-linux-dregs.o): New rule.
9920         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9921         * config/i386/linux64.mh (NATDEPFILES): Likewise.
9922         * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9923         (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9924         (x86_linux_dr_get): Likewise.
9925         (x86_linux_dr_set): Likewise.
9926         (x86_linux_dr_get_addr): Likewise.
9927         (x86_linux_dr_get_control): Likewise.
9928         (x86_linux_dr_get_status): Likewise.
9929         (update_debug_registers_callback): Likewise.
9930         (x86_linux_dr_set_control): Likewise.
9931         (x86_linux_dr_set_addr): Likewise.
9932         (x86_linux_update_debug_registers): Likewise.
9933
9934 2015-03-24  Gary Benson  <gbenson@redhat.com>
9935
9936         * x86-linux-nat.c (x86_linux_update_debug_registers):
9937         New function, factored out from...
9938         (x86_linux_prepare_to_resume): ...this.
9939
9940 2015-03-24  Gary Benson  <gbenson@redhat.com>
9941
9942         * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9943         (x86_linux_dr_set): Likewise.
9944         (x86_linux_dr_get_addr): Likewise.
9945         (x86_linux_dr_get_control): Likewise.
9946         (x86_linux_dr_get_status): Likewise.
9947         (update_debug_registers_callback): Likewise.
9948         (x86_linux_dr_set_control): Likewise.
9949         (x86_linux_dr_set_addr): Likewise.
9950         (x86_linux_prepare_to_resume): Likewise.
9951         (x86_linux_new_thread): Likewise.
9952
9953 2015-03-24  Gary Benson  <gbenson@redhat.com>
9954
9955         * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9956         (x86_linux_new_thread): Rename argument.
9957
9958 2015-03-24  Gary Benson  <gbenson@redhat.com>
9959
9960         * nat/x86-linux.h: New file.
9961         * nat/x86-linux.c: Likewise.
9962         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9963         (x86-linux.o): New rule.
9964         * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9965         * config/i386/linux64.mh (NATDEPFILES): Likewise.
9966         * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9967         (lwp_set_arch_private_info): New declaration.
9968         (lwp_arch_private_info): Likewise.
9969         * linux-nat.c (lwp_set_arch_private_info): New function.
9970         (lwp_arch_private_info): Likewise.
9971         * x86-linux-nat.c: Include nat/x86-linux.h.
9972         (arch_lwp_info): Removed structure.
9973         (update_debug_registers_callback):
9974         Use lwp_set_debug_registers_changed.
9975         (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9976         and lwp_set_debug_registers_changed.
9977         (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9978
9979 2015-03-24  Gary Benson  <gbenson@redhat.com>
9980
9981         * nat/linux-nat.h (ptid_of_lwp): New declaration.
9982         (lwp_is_stopped): Likewise.
9983         (lwp_stop_reason): Likewise.
9984         * linux-nat.c (ptid_of_lwp): New function.
9985         (lwp_is_stopped): Likewise.
9986         (lwp_is_stopped_by_watchpoint): Likewise.
9987         * x86-linux-nat.c (update_debug_registers_callback):
9988         Use lwp_is_stopped.
9989         (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9990         lwp_stop_reason.
9991
9992 2015-03-24  Gary Benson  <gbenson@redhat.com>
9993
9994         * linux-nat.h (linux_stop_lwp): Move declaration to...
9995         * nat/linux-nat.h (linux_stop_lwp): New declaration.
9996
9997 2015-03-24  Gary Benson  <gbenson@redhat.com>
9998
9999         * linux-nat.h: Include nat/linux-nat.h.
10000         (iterate_over_lwps): Move declaration to nat/linux-nat.h.
10001         * nat/linux-nat.h (struct lwp_info): New forward declaration.
10002         (iterate_over_lwps_ftype): New typedef.
10003         (iterate_over_lwps): New declaration.
10004         * linux-nat.h (iterate_over_lwps): Update comment.  Use
10005         iterate_over_lwps_ftype.  Update callback return value check.
10006
10007 2015-03-24  Gary Benson  <gbenson@redhat.com>
10008
10009         * x86-nat.h (x86_debug_reg_state): Move declaration to...
10010         * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
10011
10012 2015-03-24  Gary Benson  <gbenson@redhat.com>
10013
10014         * nat/linux-nat.h (current_lwp_ptid): New declaration.
10015         * linux-nat.c (current_lwp_ptid): New function.
10016         * x86-linux-nat.c: Include nat/linux-nat.h.
10017         (x86_linux_dr_get_addr): Use current_lwp_ptid.
10018         (x86_linux_dr_get_control): Likewise.
10019         (x86_linux_dr_get_status): Likewise.
10020         (x86_linux_dr_set_control): Likewise.
10021         (x86_linux_dr_set_addr): Likewise.
10022
10023 2015-03-24  Antoine Tremblay  <antoine.tremblay@ericsson.com>
10024
10025         PR breakpoints/16466
10026         * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
10027
10028 2015-03-23  Joel Brobecker  <brobecker@adacore.com>
10029
10030         * ser-mingw.c (ser_windows_setparity): Fix indentation.
10031         * ser-unix.c (hardwire_setparity): Likewise.
10032
10033 2015-03-23  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
10034
10035         * NEWS: Mention set/show serial parity command.
10036         * monitor.c (monitor_open): Call serial_setparity.
10037         * remote.c (remote_open_1): Likewise.
10038         * ser-base.c (ser_base_serparity): New function.
10039         * ser-base.h (ser_base_setparity): Add  declaration.
10040         * ser-go32.c (dos_ops): Set "setparity" field.
10041         * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
10042         state.Parity.
10043         (ser_windows_setparity): New function.
10044         (hardwire_ops): Add ser_windows_setparity.
10045         (tty_ops): Add NULL for setparity field.
10046         (pipe_ops): Add ser_base_setparity.
10047         (tcp_ops): Likewise.
10048         * ser-pipe.c (pipe_ops): Likewise.
10049         * ser-tcp.c (tcp_ops): Likewise.
10050         * ser-unix.c (hardwire_setparity): Add declaration.
10051         (hardwire_raw): Don't reset PARENB flag.
10052         (hardwire_setparity): New function.
10053         (hardwire_ops): Add hardwire_setparity.
10054         * serial.c (serial_setparity): New function.
10055         (serial_parity): New global.
10056         (parity_none, parity_odd, parity_even, parity_enums, parity):
10057         New static globals.
10058         (set_parity): New function.
10059         (_initialize_serial): Add set/show serial parity commands.
10060         * serial.h (GDBPARITY_NONE): Define.
10061         (GDBPARITY_ODD): Define.
10062         (GDBPARITY_EVEN): Define.
10063         (serial_setparity) Add declaration.
10064         (struct serial_ops): Add setparity field.
10065         * target.h (serial_parity): Add declaration.
10066
10067 2015-03-23  Keith Seitz  <keiths@redhat.com>
10068
10069         * linespec.c (linespec_lexer_lex_keyword): Update comment.
10070
10071 2015-03-23  Keith Seitz  <keiths@redhat.com>
10072
10073         * breakpoint.c (parse_breakpoint_sals): Use
10074         linespec_lexer_lex_keyword to ascertain if the user specified
10075         a NULL location.
10076         * linespec.c [IF_KEYWORD_INDEX]: Define.
10077         (linespec_lexer_lex_keyword): Export.
10078         (struct ls_parser) <keyword_ok>: Remove.
10079         A keyword is only a keyword if not followed by another keyword.
10080         (linespec_lexer_lex_one): Remove keyword_ok handling.
10081         Add comment explaining why the parsing stream is not advanced
10082         when a keyword is seen.
10083         (parse_linespec): Remove parser->keyword_ok.
10084         * linespec.h (linespec_lexer_lex_keyword): Add declaration.
10085
10086 2015-03-23  Keith Seitz  <keiths@redhat.com>
10087
10088         PR gdb/18021
10089         * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
10090         if we find a static method with DW_AT_vtable_elem_location.
10091
10092 2015-03-21  Eli Zaretskii  <eliz@gnu.org>
10093
10094         * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
10095         before the second loop, to avoid undefined behavior.  Reported by
10096         Anton Blanchard <anton@samba.org>.
10097
10098 2015-03-20  Keven Boell  <keven.boell@intel.com>
10099
10100         * gdbtypes.c (resolve_dynamic_type_internal): Adapt
10101         data_location usage to linked list.
10102         (resolve_dynamic_type_internal): Adapt data_location to
10103         linked list.
10104         (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
10105         (copy_type_recursive, copy_type): Add copy of linked list.
10106         * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
10107         (struct dynamic_prop_list): New struct.
10108         * dwarf2read.c (set_die_type): Set data_location data.
10109
10110 2015-03-20  Pedro Alves  <palves@redhat.com>
10111
10112         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
10113         inner block and make it const.
10114         * machoread.c (get_archive_prefix_len): Make "lparen" const.
10115
10116 2015-03-20  Pedro Alves  <palves@redhat.com>
10117
10118         * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
10119         * breakpoint.h (set_breakpoint_condition): Update declaration.
10120
10121 2015-03-20  Pedro Alves  <palves@redhat.com>
10122
10123         * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
10124
10125 2015-03-20  Pedro Alves  <palves@redhat.com>
10126
10127         * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
10128
10129 2015-03-20  Pedro Alves  <palves@redhat.com>
10130
10131         * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
10132
10133 2015-03-20  Pedro Alves  <palves@redhat.com>
10134
10135         * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
10136         (nto_init_solib_absolute_prefix): Likewise.
10137
10138 2015-03-20  Pedro Alves  <palves@redhat.com>
10139
10140         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
10141         * spu-tdep.c (spu_gdbarch_init): Make "name" const.
10142
10143 2015-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
10144
10145         * config/djgpp/README: Remove gdb.hp.
10146
10147 2015-03-20  Yao Qi  <yao.qi@linaro.org>
10148
10149         * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
10150         set_gdbarch_cannot_step_breakpoint.
10151
10152 2015-03-19  Pedro Alves  <palves@redhat.com>
10153
10154         * linux-nat.c (linux_resume_one_lwp): Rename to ...
10155         (linux_resume_one_lwp_throw): ... this.  Don't handle ESRCH here,
10156         instead call perror_with_name.
10157         (check_ptrace_stopped_lwp_gone): New function.
10158         (linux_resume_one_lwp): Reimplement as wrapper around
10159         linux_resume_one_lwp_throw that swallows errors if the LWP is
10160         gone.
10161         (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
10162         swallows errors if the LWP is gone.  Use
10163         linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
10164
10165 2015-03-19  Pedro Alves  <palves@redhat.com>
10166
10167         * linux-nat.c (status_callback): Return early if the LWP has no
10168         status pending.
10169
10170 2015-03-19  Pedro Alves  <palves@redhat.com>
10171
10172         * linux-nat.c (select_event_lwp_callback): Update comment to no
10173         longer mention SIGTRAP.
10174
10175 2015-03-18  Tristan Gingold  <gingold@adacore.com>
10176
10177         * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
10178         redirection code to ...
10179         (amd64_windows_frame_decode_insns): ... Here.  Fix in prologue
10180         checks.  Fix SAVE_NONVOL operations.  Add debug code and comments.
10181
10182 2015-03-18  Gary Benson <gbenson@redhat.com>
10183
10184         (remote_protocol_features): Remove the "vFile:fstat" feature.
10185         (remote_hostio_fstat): Probe for "vFile:fstat" support.
10186
10187 2015-03-11  Yao Qi  <yao.qi@linaro.org>
10188
10189         PR tdep/18107
10190         * aarch64-linux-tdep.c: Include xml-syscall.h
10191         (aarch64_linux_get_syscall_number): New function.
10192         (aarch64_linux_init_abi): Call
10193         set_gdbarch_get_syscall_number.
10194         * syscalls/aarch64-linux.xml: New file.
10195
10196 2015-03-17  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
10197
10198         * ser-base.h (ser_base_setstopbits): Change second argument name
10199         from "rate" to "num".
10200
10201 2015-03-17  Gary Benson <gbenson@redhat.com>
10202             Luke Allardyce <lukeallardyce@gmail.com>
10203
10204         PR gdb/18131
10205         * common/common-remote-fileio.h (sys/stat.h): New include.
10206         (stuct stat): Remove forward declaration.
10207
10208 2015-03-16  John Baldwin  <jhb@FreeBSD.org>
10209
10210         * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
10211         before writing core register notes.
10212
10213 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
10214             Pedro Alves  <palves@redhat.com>
10215
10216         * gdb_curses.h (tgetnum): Mark with EXTERN_C.
10217         * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
10218         (tgoto): Wrap with extern "C".
10219
10220 2015-03-16  Pedro Alves  <palves@redhat.com>
10221             Yuanhui Zhang  <asmwarrior@gmail.com>
10222
10223         * stub-termcap.c (tputs): Change prototype.
10224
10225 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
10226             Pedro Alves  <palves@redhat.com>
10227
10228         * windows-nat.c (struct thread_info_struct): Rename to ...
10229         (struct windows_thread_info_struct): ... this.
10230         (thread_info): Rename to ...
10231         (windows_thread_info): ... this.
10232         All users updated.
10233
10234 2015-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10235             Pedro Alves  <palves@redhat.com>
10236
10237         * NEWS: New Removed targets and native configurations.
10238
10239 2015-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
10240
10241         Remove HPUX.
10242         * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
10243         (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
10244         (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
10245         ia64-hpux-tdep.h, solib-ia64-hpux.h.
10246         (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
10247         ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
10248         * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
10249         hppa-hpux-tdep.c.
10250         * config/ia64/hpux.mh: Remove file.
10251         * config/pa/hpux.mh: Remove file.
10252         * configure: Rebuilt.
10253         * configure.ac (dlgetmodinfo, somread.o): Remove.
10254         * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10255         (ia64-*-hpux*): Remove its float format exception.
10256         * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10257         * hppa-hpux-nat.c: Remove file.
10258         * hppa-hpux-tdep.c: Remove file.
10259         * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
10260         Move them here from hppa-tdep.h
10261         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
10262         (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
10263         * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
10264         Move them to hppa-tdep.c.
10265         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
10266         declarations.
10267         * ia64-hpux-nat.c: Remove file.
10268         * ia64-hpux-tdep.c: Remove file.
10269         * ia64-hpux-tdep.h: Remove file.
10270         * inf-ttrace.c: Remove file.
10271         * inf-ttrace.h: Remove file.
10272         * solib-ia64-hpux.c: Remove file.
10273         * solib-ia64-hpux.h: Remove file.
10274         * solib-pa64.c: Remove file.
10275         * solib-pa64.h: Remove file.
10276         * solib-som.c: Remove file.
10277         * solib-som.h: Remove file.
10278         * somread.c: Remove file.
10279
10280 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
10281
10282         * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
10283         * config.in: Regenerate.
10284         * configure: Regenerate.
10285         * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
10286         define.
10287         (fbsd_find_memory_regions): Use kinfo_getvmmap to
10288         enumerate memory regions if present.
10289
10290 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
10291
10292         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
10293         * i386fbsd-tdep.c: Fix style in various gdb_static_assert
10294         expressions.
10295         (i386fbsd_sigtramp_p): Likewise.
10296
10297 2015-03-12  John Baldwin  <jhb@FreeBSD.org>
10298
10299         * MAINTAINERS (Write After Approval): Add John Baldwin.
10300
10301 2015-03-12  Gary Benson <gbenson@redhat.com>
10302
10303         * solib.c (_initialize_solib): Make "set/show sysroot" use
10304         add_setshow_optional_filename_cmd so it can be restored to
10305         empty after being set.
10306
10307 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
10308
10309         * Makefile.in (SFILES): New source break-catch-syscall.c.
10310         (COMMON_OBS): New object break-catch-syscall.o.
10311         * break-catch-syscall.c: New file.
10312         * breakpoint.c: Remove inclusion of "xml-syscall.h".
10313         (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
10314         (struct syscall_catchpoint): Likewise.
10315         (dtor_catch_syscall): Likewise.
10316         (catch_syscall_inferior_data): Likewise.
10317         (struct catch_syscall_inferior_data): Likewise.
10318         (get_catch_syscall_inferior_data): Likewise.
10319         (catch_syscall_inferior_data_cleanup): Likewise.
10320         (insert_catch_syscall): Likewise.
10321         (remove_catch_syscall): Likewise.
10322         (breakpoint_hit_catch_syscall): Likewise.
10323         (print_it_catch_syscall): Likewise.
10324         (print_one_catch_syscall): Likewise.
10325         (print_mention_catch_syscall): Likewise.
10326         (print_recreate_catch_syscall): Likewise.
10327         (catch_syscall_breakpoint_ops): Likewise.
10328         (syscall_catchpoint_p): Likewise.
10329         (create_syscall_event_catchpoint): Likewise.
10330         (catch_syscall_split_args): Likewise.
10331         (catch_syscall_command_1): Likewise.
10332         (is_syscall_catchpoint_enabled): Likewise.
10333         (catch_syscall_enabled): Likewise.
10334         (catching_syscall_number): Likewise.
10335         (catch_syscall_completer): Likewise.
10336         (clear_syscall_counts): Likewise.
10337         (initialize_breakpoint_ops): Move initialization of syscall
10338         catchpoints to break-catch-syscall.c.
10339         (_initialize_breakpoint): Move code related to syscall catchpoints
10340         to break-catch-syscall.c.
10341
10342 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
10343
10344         * breakpoint.c (breakpoint_find_if): New function.
10345         * breakpoint.h (breakpoint_find_if): New prototype.
10346
10347 2015-03-11  Gary Benson <gbenson@redhat.com>
10348
10349         * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
10350         * remote-fileio.c (remote_fileio_to_host_uint): New function.
10351         (remote_fileio_to_host_ulong): Likewise.
10352         (remote_fileio_to_host_mode): Likewise.
10353         (remote_fileio_to_host_time): Likewise.
10354         (remote_fileio_to_host_stat): Likewise.
10355         * remote.c (PACKET_vFile_fstat): New enum value.
10356         (remote_protocol_features): Register the "vFile:fstat" feature.
10357         (remote_hostio_fstat): New function.
10358         (remote_bfd_iovec_stat): Use the above.
10359         (_initialize_remote): Register new "set/show remote
10360         hostio-fstat-packet" command.
10361         * symfile.c (separate_debug_file_exists): Update comment.
10362         * NEWS: Announce new vFile:fstat packet.
10363
10364 2015-03-11  Gary Benson <gbenson@redhat.com>
10365
10366         * common/common-remote-fileio.h: New file.
10367         * common/common-remote-fileio.c: Likewise.
10368         * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10369         (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
10370         (COMMON_OBS): Add common-remote-fileio.o.
10371         (common-remote-fileio.o): New rule.
10372         * remote-fileio.h (common-remote-fileio.h): New include.
10373         * remote-fileio.c (gdb/fileio.h): Do not include.
10374         (remote_fileio_to_be): Moved to common-remote-fileio.h.
10375         (remote_fileio_to_fio_uint): Likewise.
10376         (remote_fileio_to_fio_time): Likewise.
10377         (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
10378         (remote_fileio_to_fio_mode): Likewise.
10379         (remote_fileio_to_fio_ulong): Likewise.
10380         (remote_fileio_to_fio_stat): Likewise.
10381
10382 2015-03-11  Andy Wingo  <wingo@igalia.com>
10383
10384         * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
10385         we were checking the cached type, not the cached dynamic type.
10386
10387 2015-03-11  Andy Wingo  <wingo@igalia.com>
10388
10389         * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
10390         other strings, as these are on the GC'd heap, and will be
10391         collected along with the smob.
10392
10393 2015-03-11  Andy Wingo  <wingo@igalia.com>
10394
10395         * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
10396         (objfile_functions): Bind gdbscm_objfile_progspace to
10397         objfile-progspace.
10398         * guile/lib/gdb.scm: Add objfile-progspace to exports.
10399
10400 2015-03-11  Andy Wingo  <wingo@igalia.com>
10401
10402         * guile/guile.c (_initialize_guile): Disable automatic
10403         finalization, if Guile offers us that possibility.
10404         * guile/guile.c (call_initialize_gdb_module):
10405         * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
10406         finalizers in appropriate places.
10407         * configure.ac (AC_TRY_LIBGUILE): Add a check for
10408         scm_set_automatic_finalization_enabled.
10409         * configure: Regenerated.
10410
10411 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10412
10413         * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
10414         SAL, if possible.
10415
10416 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10417
10418         * s390-linux-nat.c (struct arch_lwp_info): New.
10419         (s390_fix_watch_points): Rename to...
10420         (s390_prepare_to_resume): ...this.  Skip the PER info update
10421         unless the watch points have changed.
10422         (s390_refresh_per_info, s390_new_thread): New functions.
10423         (s390_insert_watchpoint): Call s390_refresh_per_info instead of
10424         s390_fix_watch_points.
10425         (s390_remove_watchpoint): Likewise.
10426         (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
10427         Register s390_prepare_to_resume.
10428
10429 2015-03-09  Pedro Alves  <palves@redhat.com>
10430
10431         Revert:
10432         2015-03-07  Pedro Alves  <palves@redhat.com>
10433         * common/gdb_socket.h: New file.
10434         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
10435         sys/socket.h.
10436         (net_open): Use union gdb_sockaddr_u.
10437
10438 2015-03-07  Pedro Alves  <palves@redhat.com>
10439
10440         * configure.ac (build_warnings): Move -Wmissing-prototypes
10441         -Wdeclaration-after-statement -Wmissing-parameter-type
10442         -Wold-style-declaration -Wold-style-definition to the C-specific
10443         set.
10444         * configure: Regenerate.
10445
10446 2015-03-07  Pedro Alves  <palves@redhat.com>
10447
10448         * common/gdb_socket.h: New file.
10449         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
10450         sys/socket.h.
10451         (net_open): Use union gdb_sockaddr_u.
10452
10453 2015-03-07  Pedro Alves  <palves@redhat.com>
10454
10455         * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
10456         (exceptions_state_mc_action_iter)
10457         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10458         Don't define.
10459         [__cplusplus] (try_scope_depth): New global.
10460         [__cplusplus] (exception_try_scope_entry)
10461         (exception_try_scope_exit, gdb_exception_sliced_copy)
10462         (exception_rethrow): New functions.
10463         (throw_exception): In C++ mode, throw
10464         gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
10465         gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
10466         (throw_it): In C++ mode, use try_scope_depth.
10467         * common/common-exceptions.h [!__cplusplus]
10468         (exceptions_state_mc_action_iter)
10469         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10470         Don't declare.
10471         [__cplusplus] (exception_try_scope_entry)
10472         (exception_try_scope_exit, exception_rethrow): Declare.
10473         [__cplusplus] (struct exception_try_scope): New struct.
10474         [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
10475         C++ exceptions.
10476         (struct gdb_exception_RETURN_MASK_ALL)
10477         (struct gdb_exception_RETURN_MASK_ERROR)
10478         (struct gdb_exception_RETURN_MASK_QUIT): New types.
10479
10480 2015-03-07  Pedro Alves  <palves@redhat.com>
10481
10482         * main.c (handle_command_errors): Remove volatile qualifier from
10483         parameter.
10484
10485 2015-03-07  Pedro Alves  <palves@redhat.com>
10486
10487         * breakpoint.c (save_breakpoints): Adjust to avoid code between
10488         TRY and CATCH.
10489         * gdbtypes.c (safe_parse_type): Remove empty line.
10490         (types_deeply_equal):
10491         * guile/scm-frame.c (gdbscm_frame_name):
10492         * linux-thread-db.c (find_new_threads_once):
10493         * python/py-breakpoint.c (bppy_get_commands):
10494         * record-btrace.c (record_btrace_insert_breakpoint)
10495         (record_btrace_remove_breakpoint, record_btrace_start_replaying)
10496         (record_btrace_start_replaying): Adjust to avoid code between TRY
10497         and CATCH.
10498
10499 2015-03-07  Pedro Alves  <palves@redhat.com>
10500
10501         * common/common-exceptions.c (struct catcher) <exception>: No
10502         longer a pointer to volatile exception.  Now an exception value.
10503         <mask>: Delete field.
10504         (exceptions_state_mc_init): Remove all parameters.  Adjust.
10505         (exceptions_state_mc): No longer pop the catcher here.
10506         (exceptions_state_mc_catch): New function.
10507         (throw_exception): Adjust.
10508         * common/common-exceptions.h (exceptions_state_mc_init): Remove
10509         all parameters.
10510         (exceptions_state_mc_catch): Declare.
10511         (TRY_CATCH): Rename to ...
10512         (TRY): ... this.  Remove EXCEPTION and MASK parameters.
10513         (CATCH, END_CATCH): New.
10514         All callers adjusted.
10515
10516 2015-03-07  Tom Tromey  <tromey@redhat.com>
10517
10518         * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
10519
10520 2015-03-07  Pedro Alves  <palves@redhat.com>
10521
10522         * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10523         (amd64_epilogue_frame_cache): Normal exception handling code.
10524         * break-catch-throw.c (check_status_exception_catchpoint)
10525         (re_set_exception_catchpoint): Ditto.
10526         * cli/cli-interp.c (safe_execute_command):
10527         * cli/cli-script.c (script_from_file): Ditto.
10528         * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
10529         Ditto.
10530         * compile/compile-object-run.c (compile_object_run): Ditto.
10531         * cp-abi.c (baseclass_offset): Ditto.
10532         * cp-valprint.c (cp_print_value): Ditto.
10533         * exceptions.c (catch_exceptions_with_msg):
10534         * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
10535         * frame.c (get_frame_address_in_block_if_available): Ditto.
10536         * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10537         (i386_sigtramp_frame_cache): Ditto.
10538         * infcmd.c (post_create_inferior): Ditto.
10539         * linespec.c (parse_linespec, find_linespec_symbols):
10540         * p-valprint.c (pascal_object_print_value): Ditto.
10541         * parse.c (parse_expression_for_completion): Ditto.
10542         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
10543         * remote.c (remote_get_noisy_reply): Ditto.
10544         * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
10545         * solib-svr4.c (solib_svr4_r_map): Ditto.
10546
10547 2015-03-06  Gary Benson  <gbenson@redhat.com>
10548
10549         * common/common-utils.h (startswith): New inline function.
10550         All places where this logic was used updated to use the above.
10551
10552 2015-03-05  Pedro Alves  <palves@redhat.com>
10553
10554         PR gdb/18002
10555         * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
10556         after reading the breakpoint's shadow memory.
10557
10558 2015-03-05  Mark Kettenis  <kettenis@gnu.org>
10559
10560         * hppabsd-nat.c: Remove file.
10561         * hppaobsd-nat.c: New file.
10562         * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c.  Add
10563         hppaobsd-nat.c.
10564         * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
10565         hppaobsd-nat.o.
10566
10567 2015-03-04  Pedro Alves  <palves@redhat.com>
10568
10569         * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
10570         (target_decr_pc_after_break): Delete declaration.
10571         * target.c (default_target_decr_pc_after_break)
10572         (target_decr_pc_after_break): Delete.
10573         * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
10574         gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
10575         * linux-thread-db.c (check_event): Likewise.
10576         * infrun.c (adjust_pc_after_break): Likewise.
10577         * darwin-nat.c (cancel_breakpoint): Likewise.
10578         * aix-thread.c (aix_thread_wait): Likewise.
10579         * target-delegates.c: Regenerate.
10580
10581 2015-03-04  Pedro Alves  <palves@redhat.com>
10582
10583         * linux-nat.c (save_sigtrap): Check for breakpoints before
10584         checking watchpoints.
10585         (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10586         breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10587         (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10588         a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10589         (linux_nat_stopped_by_sw_breakpoint)
10590         (linux_nat_supports_stopped_by_sw_breakpoint)
10591         (linux_nat_stopped_by_hw_breakpoint)
10592         (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10593         (linux_nat_wait_1): Don't re-increment the PC if relying on
10594         SIGTRAP's siginfo->si_code.
10595         (linux_nat_add_target): Install new target methods.
10596         * linux-thread-db.c (check_event): Don't account for breakpoint PC
10597         offset if the target already adjusted the PC.
10598         * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10599         (GDB_ARCH_TRAP_BRKPT): New.
10600         (TRAP_HWBKPT): Define if not already defined.
10601
10602 2015-03-04  Pedro Alves  <palves@redhat.com>
10603
10604         * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10605         * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10606         Delete field.
10607         <stop_reason>: New field.
10608         (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10609         (packet_set_cmd_state): New function.
10610         (remote_protocol_features): Register the "swbreak" and "hwbreak"
10611         features.
10612         (remote_query_supported): If not disabled with the corresponding
10613         "set remote foo-packet" command, report support for the swbreak
10614         and hwbreak features.
10615         (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10616         field.
10617         <stop_reason>: New field.
10618         (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10619         (remote_wait_as): Adjust.
10620         (remote_stopped_by_sw_breakpoint)
10621         (remote_supports_stopped_by_sw_breakpoint)
10622         (remote_stopped_by_hw_breakpoint)
10623         (remote_supports_stopped_by_hw_breakpoint): New functions.
10624         (remote_stopped_by_watchpoint): New function.
10625         (init_remote_ops): Install them.
10626         (_initialize_remote): Register new "set/show remote
10627         swbreak-feature-packet" and "set/show remote
10628         swbreak-feature-packet" commands.
10629
10630 2015-03-04  Pedro Alves  <palves@redhat.com>
10631
10632         * btrace.h: Include target/waitstatus.h.
10633         (struct btrace_thread_info) <stop_reason>: New field.
10634         * record-btrace.c (record_btrace_step_thread): Use
10635         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10636         (record_btrace_decr_pc_after_break): Delete.
10637         (record_btrace_stopped_by_sw_breakpoint)
10638         (record_btrace_supports_stopped_by_sw_breakpoint)
10639         (record_btrace_stopped_by_hw_breakpoint)
10640         (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10641         (init_record_btrace_ops): Install them.
10642         * record-full.c (record_full_hw_watchpoint): Delete and replace
10643         with ...
10644         (record_full_stop_reason): ... this throughout.
10645         (record_full_exec_insn): Adjust.
10646         (record_full_wait_1): Adjust.  No longer re-increment the PC.
10647         (record_full_wait_1): Adjust.  Use
10648         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10649         (record_full_stopped_by_watchpoint): Adjust.
10650         (record_full_stopped_by_sw_breakpoint)
10651         (record_full_supports_stopped_by_sw_breakpoint)
10652         (record_full_supports_stopped_by_sw_breakpoint)
10653         (record_full_stopped_by_hw_breakpoint)
10654         (record_full_supports_stopped_by_hw_breakpoint): New functions.
10655         (init_record_full_ops, init_record_full_core_ops): Install them.
10656         * record.c (record_check_stopped_by_breakpoint): New function.
10657         * record.h: Include target/waitstatus.h.
10658         (record_check_stopped_by_breakpoint): New declaration.
10659
10660 2015-03-04  Pedro Alves  <palves@redhat.com>
10661
10662         enum lwp_stop_reason -> enum target_stop_reason
10663         * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10664         (linux_nat_stopped_by_watchpoint, status_callback)
10665         (linux_nat_wait_1): Adjust.
10666         * linux-nat.h (enum lwp_stop_reason): Delete.
10667         (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10668         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10669         * target/waitstatus.h (enum target_stop_reason): New.
10670
10671 2015-03-04  Pedro Alves  <palves@redhat.com>
10672
10673         * breakpoint.c (need_moribund_for_location_type): New function.
10674         (bpstat_stop_status): Don't skipping checking moribund locations
10675         of breakpoint types which the target tell caused a stop.
10676         (program_breakpoint_here_p): New function, factored out from ...
10677         (bp_loc_is_permanent): ... this.
10678         (update_global_location_list): Don't create a moribund location if
10679         the target supports reporting stops of the type of the removed
10680         breakpoint.
10681         * breakpoint.h (program_breakpoint_here_p): New declaration.
10682         * infrun.c (adjust_pc_after_break): Return early if the target has
10683         already adjusted the PC.  Add comments.
10684         (handle_signal_stop): If nothing explains a signal, and the target
10685         tells us the stop was caused by a software breakpoint, check if
10686         there's a breakpoint instruction in the memory.  If so, adjust the
10687         PC before presenting the stop to the user.  Otherwise, ignore the
10688         trap.  If nothing explains a signal, and the target tells us the
10689         stop was caused by a hardware breakpoint, ignore the trap.
10690         * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10691         to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10692         to_supports_stopped_by_hw_breakpoint>: New fields.
10693         (target_stopped_by_sw_breakpoint)
10694         (target_supports_stopped_by_sw_breakpoint)
10695         (target_stopped_by_hw_breakpoint)
10696         (target_supports_stopped_by_hw_breakpoint): Define.
10697         * target-delegates.c: Regenerate.
10698
10699 2015-03-04  Pedro Alves  <palves@redhat.com>
10700
10701         * infrun.c (follow_fork_inferior): Use the whole of the
10702         inferior_ptid and pending_follow.related_pid ptids instead of
10703         building ptids from the process components.  Adjust verbose output
10704         to use target_pid_to_str.
10705         * linux-nat.c (linux_child_follow_fork): Use the whole of the
10706         inferior_ptid and pending_follow.related_pid ptids instead of
10707         building ptids from the process components.
10708
10709 2015-03-04  Mark Kettenis  <kettenis@gnu.org>
10710
10711         * inf-ptrace.c [PT_GET_PROCESS_STATE]
10712         (inf_ptrace_insert_fork_catchpoint): New function.
10713         (inf_ptrace_remove_fork_catchpoint): New function.
10714         (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10715
10716 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10717
10718         * s390-linux-tdep.c (s390_register_name): Return empty string
10719         instead of NULL for registers that shouldn't be visible.
10720
10721 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10722
10723         * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10724         XML file for 64-bit targets.
10725
10726 2015-03-03  Simon Marchi  <simon.marchi@ericsson.com>
10727
10728         * target.h (find_default_create_inferior): Remove declaration.
10729         (find_default_attach): Likewise.
10730
10731 2015-03-03  Pedro Alves  <palves@redhat.com>
10732
10733         * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10734         Use ptid_get_pid to get the overall process id when resuming all
10735         threads.
10736
10737 2015-03-03  Pedro Alves  <palves@redhat.com>
10738
10739         * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10740         the lwp field of ptid.  Pass the full ptid to get_thread_regcache.
10741         * inf-ptrace.c (get_ptrace_pid): New function.
10742         (inf_ptrace_resume): Use it.
10743         * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10744         to the lower layer.
10745
10746 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10747
10748         * nat/linux-btrace.c: Include sys/utsname.h.
10749         (linux_determine_kernel_ptr_bits): New.
10750         (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10751         * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10752         ptr_bits.
10753
10754 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10755
10756         * btrace.c (ftrace_update_function): Treat return as tailcall for
10757         "_dl_runtime_resolve".
10758
10759 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10760
10761         * btrace.h (btrace_function) <lbegin, lend>: Remove.
10762         * btrace.c (ftrace_debug): Do not print the line range.
10763         (ftrace_skip_file, ftrace_update_lines): Remove.
10764         (ftrace_new_function): Remove lbegin and lend initialization.
10765         (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10766         * record-btrace.c (btrace_compute_src_line_range): New.
10767         (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10768
10769 2015-03-02  Pedro Alves  <palves@redhat.com>
10770
10771         * infrun.c (follow_exec): Delete all threads of the process except
10772         the event thread.  Extended comments.
10773
10774 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
10775
10776         * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10777
10778 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
10779
10780         * utils.h: Remove <stdbool.h> #include.
10781         (producer_is_gcc): Change return type to "int".
10782         * utils.c (producer_is_gcc): Change return type to int.
10783         Return 1 instead of true, and 0 instead of false.
10784         Adjust function documentation accordingly.
10785
10786 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10787
10788         * s390-linux-nat.c (have_regset_vxrs): New static variable.
10789         (s390_linux_fetch_inferior_registers): Handle vector registers, if
10790         present.
10791         (s390_linux_store_inferior_registers): Likewise.
10792         (s390_get_hwcap): Remove function.  Embed its logic...
10793         (s390_read_description): ...here.  Yield a target description with
10794         vector registers if applicable.
10795         * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10796         "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10797         "features/s390x-tevx-linux64.c".
10798         (struct gdbarch_tdep) <v0_full_regnum>: New field.
10799         (s390_dwarf_regmap): Add vector registers.  Remove bogus entries
10800         for "GNU/Linux-specific registers".
10801         (s390_dwarf_reg_r0l): New enum value.
10802         (s390_dwarf_reg_to_regnum): Support vector registers.
10803         (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10804         of GPR lower halves.
10805         (regnum_is_vxr_full): New function.
10806         (s390_register_name): New function.
10807         (s390_pseudo_register_name): Handle v0-v15, which are composed of
10808         f0-f15 and v0l-v15l.
10809         (s390_pseudo_register_type): Likewise.
10810         (s390_pseudo_register_read): Likewise.
10811         (s390_pseudo_register_write): Likewise.
10812         (s390_value_from_register): Account for the fact that values are
10813         placed left-justified in vector registers.
10814         (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10815         the vector reggroup and omit them from the general reggroup.
10816         (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10817         (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10818         (s390_iterate_over_regset_sections): Add iterations for the two
10819         new vector regsets.
10820         (s390_core_read_description): Yield a target description with
10821         vector registers if applicable.
10822         (s390_gdbarch_init): Handle target descriptions with vector
10823         registers.  Add "register_name" gdbarch method.
10824         (_initialize_s390_tdep): Call new tdesc initialization functions.
10825         * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10826         (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10827         (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10828         (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10829         (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10830         (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10831         (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10832         (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10833         (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10834         (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10835         (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10836         (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10837         (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10838         (S390_NUM_REGS): Adjust value.
10839         (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10840         (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10841         (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10842         * NEWS: Announce S/390 vector register support.
10843
10844 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10845
10846         * features/s390-tevx-linux64.xml: New file.
10847         * features/s390-vx-linux64.xml: New file.
10848         * features/s390-vx.xml: New file.
10849         * features/s390x-tevx-linux64.xml: New file.
10850         * features/s390x-vx-linux64.xml: New file.
10851         * features/Makefile (WHICH): Add s390-vx-linux64,
10852         s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10853         (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10854         (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10855         macros.
10856         * features/s390-tevx-linux64.c: New generated file.
10857         * features/s390-vx-linux64.c: Likewise.
10858         * features/s390x-tevx-linux64.c: Likewise.
10859         * features/s390x-vx-linux64.c: Likewise.
10860         * regformats/s390-tevx-linux64.dat: Likewise.
10861         * regformats/s390-vx-linux64.dat: Likewise.
10862         * regformats/s390x-tevx-linux64.dat: Likewise.
10863         * regformats/s390x-vx-linux64.dat: Likewise.
10864
10865 2015-02-28  Doug Evans  <xdje42@gmail.com>
10866
10867         * symtab.h (struct symtab) <next>: Fix comment.
10868
10869 2015-02-27  Simon Marchi  <simon.marchi@ericsson.com>
10870
10871         * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10872         python_GdbMethods.
10873
10874 2015-02-27  Pedro Alves  <palves@redhat.com>
10875
10876         * dtrace-probe.c (dtrace_probe_ops): Make extern.
10877
10878 2015-02-27  Pedro Alves  <palves@redhat.com>
10879
10880         * common/common-exceptions.h (exception_none): Declare.
10881         * common/common-exceptions.c (exception_none): Moved from
10882         exceptions.c.
10883         (exceptions_state_mc_init): Use exception_none.
10884         * exceptions.c (exception_none): Move to
10885         common/common-exceptions.c.
10886         * exceptions.h (exception_none): Move to
10887         common/common-exceptions.h.
10888
10889 2015-02-27  Pedro Alves  <palves@redhat.com>
10890
10891         * main.c (catch_command_errors, catch_command_errors_const):
10892         Remove 'mask' argument.  Adjust.
10893         (captured_main): Adjust callers.
10894
10895 2015-02-27  Pedro Alves  <palves@redhat.com>
10896
10897         * python/python-internal.h: Include "extension-priv.h".
10898
10899 2015-02-27  Pedro Alves  <palves@redhat.com>
10900
10901         * breakpoint.h (enum print_stop_action): Move further up in the
10902         file.
10903
10904 2015-02-27  Pedro Alves  <palves@redhat.com>
10905
10906         * gdbarch.sh: Include regcache.h.
10907         * gdbarch.h: Regenerate.
10908
10909 2015-02-27  Pedro Alves  <palves@redhat.com>
10910
10911         * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10912         Remove duplicate const.
10913         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10914         duplicate const.
10915
10916 2015-02-27  Pedro Alves  <palves@redhat.com>
10917
10918         * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10919         * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10920         * features/feature_to_c.sh: Tag the generated xml_builtin array
10921         with extern const in C++ mode.
10922
10923 2015-02-27  Tom Tromey  <tromey@redhat.com>
10924
10925         * minidebug.c (struct lzma_stream): Rename to ...
10926         (struct gdb_lzma_stream): ... this.
10927         (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10928
10929 2015-02-27  Pedro Alves  <palves@redhat.com>
10930
10931         * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10932         function.
10933         (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10934         (mi_cmd_stack_list_variables): Use it.
10935
10936 2015-02-27  Pedro Alves  <palves@redhat.com>
10937
10938         * x86-linux-nat.c (u_debugreg_offset): New function.
10939         (x86_linux_dr_get, x86_linux_dr_set): Use it.
10940
10941 2015-02-27  Pedro Alves  <palves@redhat.com>
10942
10943         * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10944         declaration.
10945         Include break-common.h.
10946
10947 2015-02-27  Tom Tromey  <tromey@redhat.com>
10948             Pedro Alves <palves@redhat.com>
10949
10950         * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10951         local used to iterate over enums.
10952         * completer.c (signal_completer): Likewise.
10953         * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10954         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10955         * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10956         * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10957         * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10958         (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10959         * tui-wingeneral.c (tui_refresh_all):  Likewise.
10960
10961 2015-02-27  Pedro Alves  <palves@redhat.com>
10962
10963         * target.h: Include "infrun.h".
10964
10965 2015-02-27  Pedro Alves  <palves@redhat.com>
10966
10967         * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10968
10969 2015-02-27  Pedro Alves  <palves@redhat.com>
10970
10971         * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10972         (IPA_SYM): Use it.
10973         * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10974
10975 2015-02-27  Pedro Alves  <palves@redhat.com>
10976
10977         * cli-out.c (_rl_erase_entire_line): Move declaration out of
10978         cli_mld_erase_entire_line, and make it extern "C".
10979         * common/common-defs.h (EXTERN_C): New.
10980         * completer.c (_rl_completion_prefix_display_length)
10981         (_rl_print_completions_horizontally, QSFUNC): Move declarations
10982         out of gdb_display_match_list_1.
10983         (_rl_qsort_string_compare): Move declaration out of
10984         gdb_display_match_list_1, and make it extern "C".
10985         * defs.h (re_comp): Use EXTERN_C.
10986         * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10987         and make it extern "C".
10988         (monstartup): Move declaration out of maintenance_set_profile_cmd,
10989         and make it extern "C".
10990         (main): Move declaration out of maintenance_set_profile_cmd.
10991         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10992         EXTERN_C.
10993
10994 2015-02-27  Pedro Alves  <palves@redhat.com>
10995
10996         * python/python.c (GdbMethods): Rename to ...
10997         (python_GdbMethods): ... this and make extern.
10998         (GdbModuleDef): Rename to ...
10999         (python_GdbModuleDef): ... this and make extern.
11000
11001 2015-02-27  Pedro Alves  <palves@redhat.com>
11002
11003         * record-btrace.c (set_record_btrace_cmdlist)
11004         (show_record_btrace_cmdlist): Remove redefinitions.
11005
11006 2015-02-27  Tom Tromey  <tromey@redhat.com>
11007             Pedro Alves  <palves@redhat.com>
11008
11009         * dwarf2-frame.c (enum cfa_how_kind, struct
11010         dwarf2_frame_state_reg_info): Move out of struct
11011         dwarf2_frame_state.
11012         * dwarf2read.c (struct tu_stats): Move out of struct
11013         dwarf2_per_objfile.
11014         (struct file_entry): Move out of struct line_header.
11015         (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
11016         typedef_field_list): Move out of struct field_info.
11017         * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
11018         Move out of struct dynamic_prop.
11019         (union type_owner, union field_location, struct field, struct
11020         range_bounds, union type_specific): Move out of struct main_type.
11021         (struct fn_fieldlist, struct fn_field, struct typedef_field)
11022         (VOFFSET_STATIC): Move out of struct cplus_struct_type.
11023         (struct call_site_target, union call_site_parameter_u, struct
11024         call_site_parameter): Move out of struct call_site.
11025         * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
11026         m32c_prologue.
11027         (enum srcdest_kind): Move out of struct srcdest.
11028         * main.c (enum cmdarg_kind): Move out of struct cmdarg.
11029         * prologue-value.h (enum prologue_value_kind): Move out of struct
11030         prologue_value.
11031         * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
11032         gdbarch_tdep.
11033         * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
11034         out of struct field_info.
11035         * symfile.h (struct other_sections): Move out of struct
11036         section_addr_info.
11037         * symtab.c (struct symbol_cache_slot): Move out struct
11038         block_symbol_cache.
11039         * target-descriptions.c (enum tdesc_type_kind): Move out of
11040         typedef struct tdesc_type.
11041         * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
11042         struct tui_line_or_address.
11043         * value.c (enum internalvar_kind, union internalvar_data): Move
11044         out of struct internalvar.
11045         * xtensa-tdep.h (struct ctype_cache): Move out of struct
11046         gdbarch_tdep.
11047
11048 2015-02-27  Tom Tromey  <tromey@redhat.com>
11049             Pedro Alves  <palves@redhat.com>
11050
11051         Rename symbols whose names are reserved C++ keywords throughout.
11052
11053 2015-02-27  Pedro Alves  <palves@redhat.com>
11054
11055         * Makefile.in (COMPILER): New, get it from autoconf.
11056         (COMPILE.pre, CC_LD): Use COMPILER.
11057         (CXX): Get from autoconf instead.
11058         (CXX_FOR_TARGET): Default to g++ instead of gcc.
11059         * acinclude.m4: Include build-with-cxx.m4.
11060         * build-with-cxx.m4: New file.
11061         * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11062         Disable -Werror by default if building in C++ mode.
11063         (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11064         -Wno-narrowing in C++ mode.  Only enable -Wpointer-sign in C mode.
11065         Run supported-warning-flags tests with the C++ compiler.
11066         Save/restore CXXFLAGS too.
11067         * configure: Regenerate.
11068
11069 2015-02-27  Pedro Alves  <palves@redhat.com>
11070
11071         * libiberty.m4: New file.
11072         * acinclude.m4: Include libiberty.m4.
11073         * configure.ac: Call libiberty_INIT.
11074         * config.in, configure: Regenerate.
11075
11076 2015-02-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11077
11078         * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
11079         31-bit targets, but 64-bit targets as well.
11080         (s390_gnu_triplet_regexp): New function.
11081         (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
11082         64-bit targets as well.  Set the gnu_triplet_regexp gdbarch
11083         method.
11084
11085 2015-02-27  Jon TURNEY  <jon.turney@dronecode.org.uk>  (tiny patch)
11086
11087         * windows-nat.c (CONTEXT_DEBUGGER): Remove.
11088         (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS.  Incorporate flags
11089         from CONTEXT_DEBUGGER.
11090
11091 2015-02-26  Doug Evans  <dje@google.com>
11092
11093         * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
11094         CHECK_TYPEDEF.
11095         (set_type_vptr_fieldno): Ditto.
11096         (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
11097         * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
11098
11099 2015-02-26  Pedro Alves  <palves@redhat.com>
11100
11101         * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
11102         * complaints.c (vcomplaint): Pass argument FMT directly to
11103         printf-like functions instead of complaint->fmt.
11104         * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
11105         * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
11106         * compile/compile-loc2c.c (pushf, unary, binary): Add
11107         ATTRIBUTE_PRINTF.
11108         (do_compile_dwarf_expr_to_c): Pass string literal as format string
11109         to pushf.
11110         (BINARY): Pass string literal as format string to 'binary'.
11111         * compile/compile-object-load.c (link_callbacks_einfo): Add
11112         ATTRIBUTE_PRINTF.
11113         * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
11114
11115 2015-02-26  Pedro Alves  <palves@redhat.com>
11116
11117         * windows-termcap.c: Rename to ...
11118         * stub-termcap.c: ... this.  Adjust header line.
11119         * Makefile.in (SFILES): Refer to stub-termcap.c instead of
11120         windows-termcap.c.
11121         * configure: Regenerate.
11122         * configure.ac: Refer to stub-termcap.o instead of
11123         windows-termcap.o.
11124         * gdb_curses.h: Mention stub-termcap.c instead of
11125         windows-termcap.c.
11126
11127 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
11128
11129         * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
11130         (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
11131
11132 2015-02-26  Antoine Tremblay  <antoine.tremblay@ericsson.com>
11133
11134         * gdb/infcmd.c (print_return_value): use type_to_string to print type.
11135
11136 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
11137
11138         * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
11139         bfd_canonicalize_symtab.
11140
11141 2015-02-25  John Baldwin  <jhb@FreeBSD.org>
11142
11143         * amd64fbsd-nat.c: Include sys/user.h.
11144         (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11145         instead of KERN_PS_STRINGS to locate the signal trampoline.
11146         * i386fbsd-nat.c: Include sys/user.h.
11147         (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11148         instead of KERN_PS_STRINGS to locate the signal trampoline.
11149         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
11150         (amd64fbsd_sigtramp_p): New.
11151         (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
11152         longer set default values.
11153         (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
11154         * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
11155         (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
11156         (i386fbsd_freebsd4_sigtramp_start)
11157         (i386fbsd_freebsd4_sigtramp_middle)
11158         (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
11159         (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
11160         (i386fbsd_sigtramp_p): New.
11161         (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
11162         longer set default values.
11163         (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
11164
11165 2015-02-25  John Baldwin  <jhb@freebsd.org>
11166
11167         * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
11168         get_frame_register instead of frame_unwind_register_unsigned.
11169
11170 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
11171
11172         PR build/18033
11173         * compile/compile-c-support.c (c_compute_program): Change // comment.
11174         * compile/compile-object-load.c (setup_sections): Change // comment.
11175
11176 2015-02-26  Joel Brobecker  <brobecker@adacore.com>
11177
11178         PR build/18033:
11179         * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
11180
11181 2015-02-23  Pedro Alves  <palves@redhat.com>
11182
11183         * remote.c (skip_to_semicolon): New function.
11184         (remote_parse_stop_reply) <T stop reply>: Use it.  Don't
11185         special case the stop reasons that look like hex numbers
11186         upfront.  Instead handle real register numbers after matching
11187         all the known stop reasons.
11188
11189 2015-02-21  Doug Evans  <dje@google.com>
11190
11191         PR c++/17976, symtab/17821
11192         * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
11193         is_in_anonymous.  All callers updated.
11194         (find_symbol_in_baseclass): Ditto.
11195         (cp_lookup_nested_symbol_1): Ditto.  Don't search all static blocks
11196         for symbols in an anonymous namespace.
11197         * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
11198         DW_AT_name directly.
11199         (dwarf2_name): Convert missing namespace name to
11200         CP_ANONYMOUS_NAMESPACE_STR.
11201
11202 2015-02-20  Pedro Alves  <palves@redhat.com>
11203
11204         * linux-nat.c (linux_handle_extended_wait): Call
11205         thread_db_notice_clone whenever a new clone LWP is detected.
11206         (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
11207         functions.
11208         * linux-nat.h (thread_db_attach_lwp): Delete declaration.
11209         (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
11210         (linux_unstop_all_lwps): Declare.
11211         * linux-thread-db.c (struct thread_get_info_inout): Delete.
11212         (thread_get_info_callback): Delete.
11213         (thread_from_lwp): Use td_thr_get_info and record_thread.
11214         (thread_db_attach_lwp): Delete.
11215         (thread_db_notice_clone): New function.
11216         (try_thread_db_load_1): If /proc is mounted and shows the
11217         process'es task list, walk over all LWPs and call thread_from_lwp
11218         instead of relying on td_ta_thr_iter.
11219         (attach_thread): Don't call check_thread_signals here.  Split the
11220         tail part of the function (which adds the thread to the core GDB
11221         thread list) to ...
11222         (record_thread): ... this function.  Call check_thread_signals
11223         here.
11224         (thread_db_wait): Don't call thread_db_find_new_threads_1.  Always
11225         call thread_from_lwp.
11226         (thread_db_update_thread_list): Rename to ...
11227         (thread_db_update_thread_list_org): ... this.
11228         (thread_db_update_thread_list): New function.
11229         (thread_db_find_thread_from_tid): Delete.
11230         (thread_db_get_ada_task_ptid): Simplify.
11231         * nat/linux-procfs.c: Include <sys/stat.h>.
11232         (linux_proc_task_list_dir_exists): New function.
11233         * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
11234
11235 2015-02-20  Pedro Alves  <palves@redhat.com>
11236
11237         * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
11238         main LWP.  Handle the case of waitpid returning 0 if we're already
11239         attached to the LWP.  Don't set the LWP's last_resume_kind to
11240         resume_stop if we already knew about the LWP.
11241         (linux_nat_filter_event): Add debug logs.
11242
11243 2015-02-20  Pedro Alves  <palves@redhat.com>
11244
11245         * target.h (forward_target_decr_pc_after_break): Delete
11246         declaration.
11247
11248 2015-02-20  Pedro Alves  <palves@redhat.com>
11249
11250         PR threads/18006
11251         * linux-thread-db.c (thread_get_info_callback): Return early if
11252         the thread's lwp id is -1.
11253
11254 2015-02-20  Joel Brobecker  <brobecker@adacore.com>
11255
11256         GDB 7.9 released.
11257
11258 2015-02-19  Steve Ellcey  <sellcey@imgtec.com>
11259
11260         * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
11261         (dtrace_get_probes) Change type of variable 'dof'.
11262
11263 2015-02-19  Antoine Tremblay  <antoine.tremblay@ericsson.com>
11264
11265         PR breakpoints/16812
11266         * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
11267         * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
11268         * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
11269
11270 2015-02-19  David Taylor  <dtaylor@emc.com>
11271
11272         * common/ax.def (setv): Fix consumed entry in setv DEFOP.
11273
11274 2015-02-18  Patrick Palka  <patrick@parcs.ath.cx>
11275
11276         * tui/tui-io.c (tui_handle_resize_during_io): Remove this
11277         function.
11278         (tui_putc): Don't call tui_handle_resize_during_io.
11279         (tui_getc): Likewise.
11280         (tui_mld_getc): Likewise.
11281         * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
11282         (tui_sigwinch_token): New static variable.
11283         (tui_initialize_win): Adjust documentation.  Set
11284         tui_sigwinch_token.
11285         (tui_async_resize_screen): New asynchronous callback.
11286         (tui_sigwinch_handler): Adjust documentation.  Asynchronously
11287         invoke tui_async_resize_screen.
11288
11289 2015-02-18  Jose E. Marchesi  <jose.marchesi@oracle.com>
11290
11291         * configure: Regenerated.
11292         * configure.ac: Use GDB_AC_TRANSFORM.
11293         * Makefile.in (aclocal_m4_deps): Added transform.m4.
11294         * acinclude.m4: sinclude transform.m4.
11295         * transform.m4: New file.
11296         (GDB_AC_TRANSFORM): New macro.
11297
11298 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11299
11300         * NEWS: Announce the support for DTrace SDT probes.
11301
11302 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11303
11304         * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
11305         (amd64_dtrace_parse_probe_argument): New function.
11306         (amd64_dtrace_probe_is_enabled): Likewise.
11307         (amd64_dtrace_enable_probe): Likewise.
11308         (amd64_dtrace_disable_probe): Likewise.
11309         (amd64_linux_init_abi): Register the
11310         `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
11311         `gdbarch_dtrace_disable_probe' and
11312         `gdbarch_dtrace_probe_is_enabled' hooks.
11313         (amd64_dtrace_disabled_probe_sequence_1): New constant.
11314         (amd64_dtrace_disabled_probe_sequence_2): Likewise.
11315         (amd64_dtrace_enable_probe_sequence): Likewise.
11316         (amd64_dtrace_disable_probe_sequence): Likewise.
11317
11318 2015-01-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11319
11320         * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
11321         the -probe-dtrace new vpossible value for PROBE_MODIFIER.
11322         * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
11323         handle ELF files.
11324         * Makefile.in (SFILES): dtrace-probe.c added.
11325         * configure: Regenerate.
11326         * dtrace-probe.c: New file.
11327         (SHT_SUNW_dof): New constant.
11328         (dtrace_probe_type): New enum.
11329         (dtrace_probe_arg): New struct.
11330         (dtrace_probe_arg_s): New typedef.
11331         (struct dtrace_probe_enabler): New struct.
11332         (dtrace_probe_enabler_s): New typedef.
11333         (dtrace_probe): New struct.
11334         (dtrace_probe_is_linespec): New function.
11335         (dtrace_dof_sect_type): New enum.
11336         (dtrace_dof_dofh_ident): Likewise.
11337         (dtrace_dof_encoding): Likewise.
11338         (DTRACE_DOF_ENCODE_LSB): Likewise.
11339         (DTRACE_DOF_ENCODE_MSB): Likewise.
11340         (dtrace_dof_hdr): New struct.
11341         (dtrace_dof_sect): Likewise.
11342         (dtrace_dof_provider): Likewise.
11343         (dtrace_dof_probe): Likewise.
11344         (DOF_UINT): New macro.
11345         (DTRACE_DOF_PTR): Likewise.
11346         (DTRACE_DOF_SECT): Likewise.
11347         (dtrace_process_dof_probe): New function.
11348         (dtrace_process_dof): Likewise.
11349         (dtrace_build_arg_exprs): Likewise.
11350         (dtrace_get_arg): Likewise.
11351         (dtrace_get_probes): Likewise.
11352         (dtrace_get_probe_argument_count): Likewise.
11353         (dtrace_can_evaluate_probe_arguments): Likewise.
11354         (dtrace_evaluate_probe_argument): Likewise.
11355         (dtrace_compile_to_ax): Likewise.
11356         (dtrace_probe_destroy): Likewise.
11357         (dtrace_gen_info_probes_table_header): Likewise.
11358         (dtrace_gen_info_probes_table_values): Likewise.
11359         (dtrace_probe_is_enabled): Likewise.
11360         (dtrace_probe_ops): New variable.
11361         (info_probes_dtrace_command): New function.
11362         (_initialize_dtrace_probe): Likewise.
11363         (dtrace_type_name): Likewise.
11364
11365 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11366
11367         * gdbarch.sh (dtrace_parse_probe_argument): New.
11368         (dtrace_probe_is_enabled): Likewise.
11369         (dtrace_enable_probe): Likewise.
11370         (dtrace_disable_probe): Likewise.
11371         * gdbarch.c: Regenerate.
11372         * gdbarch.h: Regenerate.
11373
11374 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11375
11376         * stap-probe.c (stap_probe_ops): Add NULLs in the static
11377         stap_probe_ops for `enable_probe' and `disable_probe'.
11378         * probe.c (enable_probes_command): New function.
11379         (disable_probes_command): Likewise.
11380         (_initialize_probe): Define the cli commands `enable probe' and
11381         `disable probe'.
11382         (parse_probe_linespec): New function.
11383         (info_probes_for_ops): Use parse_probe_linespec.
11384         * probe.h (probe_ops): New hooks `enable_probe' and
11385         `disable_probe'.
11386
11387 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11388
11389         * probe.c (compute_probe_arg): Moved from stap-probe.c
11390         (compile_probe_arg): Likewise.
11391         (probe_funcs): Likewise.
11392         * stap-probe.c (compute_probe_arg): Moved to probe.c.
11393         (compile_probe_arg): Likewise.
11394         (probe_funcs): Likewise.
11395
11396 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11397
11398         * probe.c (print_ui_out_not_applicables): New function.
11399         (exists_probe_with_pops): Likewise.
11400         (info_probes_for_ops): Do not include column headers for probe
11401         types for which no probe has been actually found on any object.
11402         Also invoke `print_ui_out_not_applicables' in order to match the
11403         column rows with the header when probes of several types are
11404         listed.
11405         Print the "Type" column.
11406         * probe.h (probe_ops): Added a new probe operation `type_name'.
11407         * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
11408         (stap_type_name): New function.
11409
11410 2015-02-17  Patrick Palka  <patrick@parcs.ath.cx>
11411
11412         * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
11413         (key_is_command_char): Delete.
11414
11415 2015-02-17  Pedro Alves  <palves@redhat.com>
11416
11417         * tui/tui.c (tui_enable): Resize windows before anything
11418         might show a window.
11419
11420 2015-02-17  Max Ostapenko  <m.ostapenko@partner.samsung.com>
11421
11422         PR gdb/17984
11423         * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
11424         (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
11425         call.
11426         * aarch64-tdep.h (tdesc_aarch64): Declare.
11427
11428 2015-02-12  Mark Wielaard  <mjw@redhat.com>
11429
11430         * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
11431
11432 2015-02-13  Doug Evans  <dje@google.com>
11433
11434         * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
11435         anonymous_namespace to is_in_anonymous for consistency with the rest
11436         of the file.
11437         (cp_lookup_bare_symbol): Fix typo in comment.
11438         (cp_search_static_and_baseclasses): Ditto.
11439         (search_symbol_list): Use vertical space in comment better.
11440         (reset_directive_searched): Ditto. Fix typo.
11441         (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
11442
11443 2015-02-13  Yao Qi  <yao.qi@arm.com>
11444
11445         * MAINTAINERS: Update my email address.
11446
11447 2015-02-12  Doug Evans  <dje@google.com>
11448
11449         * symtab.c (completion_list_add_name): Fix memory leak.
11450
11451 2015-02-12  Doug Evans  <dje@google.com>
11452
11453         * completer.c (complete_line): Remove incorrect comment.
11454
11455 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11456
11457         * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
11458         (py_print_frame): Use RETURN_MASK_ERROR.
11459
11460 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11461
11462         * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
11463         function comment.  Wrap all function that can throw in cleanups.
11464         (gdbpy_apply_frame_filter): Wrap all function that can throw in
11465         cleanups.
11466
11467 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11468
11469         * python/py-framefilter.c (py_print_frame): Substitute goto error.
11470         Remove the error label.
11471
11472 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11473
11474         * python/py-framefilter.c (py_print_frame): Put conditional code paths
11475         with goto first, indent the former else codepath left.  Put variable
11476         'elided' to a new inner block.
11477
11478 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11479
11480         * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
11481
11482 2015-02-11  Pedro Alves  <palves@redhat.com>
11483
11484         * xcoffread.c (within_function): Delete.
11485
11486 2015-02-11  Tom Tromey  <tromey@redhat.com>
11487             Pedro Alves <palves@redhat.com>
11488
11489         * breakpoint.c (base_breakpoint_ops): Delete.
11490         * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
11491         * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
11492         * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
11493         * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
11494         * python/py-arch.c (arch_object_type): Make extern.
11495         * python/py-block.c (block_syms_iterator_object_type): Make extern.
11496         * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
11497         * python/py-cmd.c (cmdpy_object_type): Make extern.
11498         * python/py-continueevent.c (continue_event_object_type)
11499         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
11500         parameter.  Update all callers.
11501         * python/py-evtregistry.c (eventregistry_object_type): Make extern.
11502         * python/py-exitedevent.c (exited_event_object_type): Make extern.
11503         * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
11504         * python/py-function.c (fnpy_object_type): Make extern.
11505         * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
11506         * python/py-infevents.c (call_pre_event_object_type)
11507         (inferior_call_post_event_object_type).
11508         (memory_changed_event_object_type): Make extern.
11509         * python/py-infthread.c (thread_object_type): Make extern.
11510         * python/py-lazy-string.c (lazy_string_object_type): Make extern.
11511         * python/py-linetable.c (linetable_entry_object_type)
11512         (linetable_object_type, ltpy_iterator_object_type): Make extern.
11513         * python/py-newobjfileevent.c (new_objfile_event_object_type)
11514         (clear_objfiles_event_object_type): Make extern.
11515         * python/py-objfile.c (objfile_object_type): Make extern.
11516         * python/py-param.c (parmpy_object_type): Make extern.
11517         * python/py-progspace.c (pspace_object_type): Make extern.
11518         * python/py-signalevent.c (signal_event_object_type): Make extern.
11519         * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
11520         * python/py-type.c (type_object_type, field_object_type)
11521         (type_iterator_object_type): Make extern.
11522         * python/python.c (python_extension_script_ops)
11523         (python_extension_ops): Make extern.
11524         * stap-probe.c (stap_probe_ops): Make extern.
11525
11526 2015-02-11  Pedro Alves  <pedro@codesourcery.com>
11527
11528         * infrun.c (adjust_pc_after_break): Don't adjust the PC just
11529         because the event thread is not the current thread.
11530
11531 2015-02-11  Doug Evans  <xdje42@gmail.com>
11532
11533         * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
11534         been initialized yet, return NULL.
11535
11536 2015-02-11  Doug Evans  <dje@google.com>
11537
11538         * symfile.h (new_symfile_objfile): Delete.
11539         * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
11540         All callers updated.
11541
11542 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
11543
11544         * tui/tui-io.c (tui_handle_resize_during_io): Call
11545         tui_update_gdb_sizes() after resizing the screen.
11546         * tui/tui.c (tui_enable): Resize the terminal before
11547         calling tui_update_gdb_sizes().
11548
11549 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
11550
11551         * tui/tui-io.c (tui_getc): Move cursor to the end of the command
11552         line before printing a newline.
11553
11554 2015-02-11  Mark Wielaard  <mjw@redhat.com>
11555
11556         * utils.c (producer_is_gcc): Return true or false.
11557
11558 2015-02-10  Mark Wielaard  <mjw@redhat.com>
11559
11560         * utils.h (producer_is_gcc): Change return type to bool. Add major
11561         argument.
11562         * utils.c (producer_is_gcc): Likewise.
11563         (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
11564         * dwarf2read.c (check_producer): Likewise.
11565
11566 2015-02-10  Pedro Alves  <palves@redhat.com>
11567
11568         * infrun.c (displaced_step_fixup): Switch to the event thread
11569         before calling gdbarch_displaced_step_fixup.
11570
11571 2015-02-10  Antoine Tremblay <antoine.tremblay@ericsson.com>
11572
11573         * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
11574
11575 2015-02-10  Simon Marchi  <simon.marchi@ericsson.com>
11576
11577         * ada-varobj.c (ada_name_of_child): Constify parent.
11578         (ada_path_expr_of_child): Same.
11579         (ada_value_of_child): Same.
11580         (ada_type_of_child): Same.
11581         * c-varobj.c (c_is_path_expr_parent): Same.
11582         (c_describe_child): Same.
11583         (c_name_of_child): Same.
11584         (c_value_of_child): Same.
11585         (c_type_of_child): Same.
11586         (cplus_number_of_children): Same.
11587         (cplus_describe_child): Constify var.
11588         (cplus_name_of_child): Constify parent.
11589         (cplus_value_of_child): Same.
11590         (cplus_type_of_child): Same.
11591         * jv-varobj.c (java_name_of_child): Same.
11592         (java_value_of_child): Same.
11593         (java_type_of_child): Same.
11594         * varobj.c (value_of_child): Same.
11595         (varobj_default_is_path_expr_parent): Constify var, parent and return
11596         value.
11597         (varobj_get_path_expr): Constify var, modify path_expr through
11598         mutable_var.
11599         (install_new_value): Constify parent.
11600         (value_of_child): Constify parent.
11601         * varobj.h (struct varobj): Constify parent.
11602         (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11603         type_of_child.
11604         (varobj_get_path_expr): Constify var.
11605         (varobj_get_path_expr_parent): Constify var and return value.
11606
11607 2015-02-10  Luis Machado  <lgustavo@codesourcery.com>
11608
11609         * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11610         (arm_prologue_this_id): Move PC and SP limit checks to
11611         arm_prologue_unwind_stop_reason.
11612         (arm_prologue_unwind) <stop_reason> : Set to
11613         arm_prologue_unwind_stop_reason.
11614
11615 2015-02-09  Mark Wielaard  <mjw@redhat.com>
11616
11617         * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11618         DW_LANG_Fortran08 as language_fortran.
11619
11620 2015-02-09  Sergio Durigan Junior  <sergiodj@redhat.com>
11621
11622         PR remote/17946
11623         * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11624         of pointer against char.
11625
11626 2015-02-09  Mark Wielaard  <mjw@redhat.com>
11627
11628         * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11629         (c_type_print_modifier): Likewise.
11630         * dwarf2read.c (read_tag_atomic_type): New function.
11631         (read_type_die_1): Handle DW_TAG_atomic_type.
11632         * gdbtypes.c (make_atomic_type): New function.
11633         (recursive_dump_type): Handle TYPE_ATOMIC.
11634         * gdbtypes.h (enum type_flag_values): Renumber.
11635         (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11636         (TYPE_ATOMIC): New macro.
11637         (make_atomic_type): Declare.
11638
11639 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11640
11641         * btrace.c (ftrace_find_call): Skip gaps.
11642         (ftrace_new_function): Initialize level.
11643         (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11644         (ftrace_new_switch): Update
11645         level computation.
11646         (ftrace_new_gap): New.
11647         (ftrace_update_function): Create new function after gap.
11648         (btrace_compute_ftrace_bts): Create gap on error.
11649         (btrace_stitch_bts): Update parameters.  Clear trace if it
11650         becomes empty.
11651         (btrace_stitch_trace): Update parameters.  Update callers.
11652         (btrace_clear): Reset the number of gaps.
11653         (btrace_insn_get): Return NULL if the iterator points to a gap.
11654         (btrace_insn_number): Return zero if the iterator points to a gap.
11655         (btrace_insn_end): Allow gaps at the end.
11656         (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11657         (btrace_find_insn_by_number): Assert that the found iterator does
11658         not point to a gap.
11659         (btrace_call_next, btrace_call_prev): Assert that the last function
11660         is not a gap.
11661         * btrace.h (btrace_bts_error): New.
11662         (btrace_function): Update comment.
11663         (btrace_function) <insn, insn_offset, number>: Update comment.
11664         (btrace_function) <errcode>: New.
11665         (btrace_thread_info) <ngaps>: New.
11666         (btrace_thread_info) <replay>: Update comment.
11667         (btrace_insn_get): Update comment.
11668         * record-btrace.c (btrace_ui_out_decode_error): New.
11669         (record_btrace_info): Print number of gaps.
11670         (btrace_insn_history, btrace_call_history): Call
11671         btrace_ui_out_decode_error for gaps.
11672         (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11673
11674 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11675
11676         * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11677         * nat/linux-btrace.c: (btrace_this_cpu): New.
11678         (cpu_supports_bts): Call btrace_this_cpu.
11679         (intel_supports_bts): Add cpu parameter.
11680
11681 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11682
11683         * btrace.h (btrace_insn_class): New.
11684         (btrace_insn) <size, iclass>: New.
11685         * btrace.c (ftrace_find_call): Update parameters.  Update users.
11686         Use instruction classification.
11687         (ftrace_new_return): Update parameters.  Update users.
11688         (ftrace_update_function): Update parameters.  Update users.  Use
11689         instruction classification.
11690         (ftrace_update_insns): Update parameters.  Update users.
11691         (ftrace_classify_insn): New.
11692         (btrace_compute_ftrace_bts): Fill in new btrace_insn fields.  Add
11693         TRY_CATCH around call to gdb_insn_length.
11694
11695 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11696
11697         * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11698         Update parameters.  Update users.
11699
11700 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11701
11702         * btrace.c (parse_xml_btrace_conf_bts): Add size.
11703         (btrace_conf_bts_attributes): New.
11704         (btrace_conf_children): Add attributes.
11705         * common/btrace-common.h (btrace_config_bts): New.
11706         (btrace_config)<bts>: New.
11707         (btrace_config): Update comment.
11708         * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11709         Use config.
11710         * features/btrace-conf.dtd: Increment version.  Add size
11711         attribute to bts element.
11712         * record-btrace.c (set_record_btrace_bts_cmdlist,
11713         show_record_btrace_bts_cmdlist): New.
11714         (record_btrace_adjust_size, record_btrace_print_bts_conf,
11715         record_btrace_print_conf, cmd_set_record_btrace_bts,
11716         cmd_show_record_btrace_bts): New.
11717         (record_btrace_info): Call record_btrace_print_conf.
11718         (_initialize_record_btrace): Add commands.
11719         * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11720         (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11721         (btrace_sync_conf): Synchronize bts size.
11722         (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11723         * NEWS: Announce new commands and new packets.
11724
11725 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11726
11727         * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11728         * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11729         (x86_linux_btrace_conf): New.
11730         (x86_linux_create_target): Initialize to_btrace_conf.
11731         * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11732         Check format.  Split into this and ...
11733         (linux_enable_bts): ... this.
11734         (linux_btrace_conf): New.
11735         (perf_event_skip_record): Renamed into ...
11736         (perf_event_skip_bts_record): ... this.  Updated users.
11737         (linux_disable_btrace): Split into this and ...
11738         (linux_disable_bts): ... this.
11739         (linux_read_btrace): Check format.
11740         * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11741         (linux_btrace_conf): New.
11742         (btrace_target_info)<ptid>: Moved.
11743         (btrace_target_info)<conf>: New.
11744         (btrace_target_info): Split into this and ...
11745         (btrace_tinfo_bts): ... this.  Updated users.
11746         * btrace.c (btrace_enable): Update parameters.
11747         (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11748         (btrace_conf_children, btrace_conf_attributes)
11749         (btrace_conf_elements): New.
11750         * btrace.h (btrace_enable): Update parameters.
11751         (btrace_conf, parse_xml_btrace_conf): New.
11752         * common/btrace-common.h (btrace_config): New.
11753         * feature/btrace-conf.dtd: New.
11754         * record-btrace.c (record_btrace_conf): New.
11755         (record_btrace_cmdlist): New.
11756         (record_btrace_enable_warn, record_btrace_open): Pass
11757         &record_btrace_conf.
11758         (record_btrace_info): Print recording format.
11759         (cmd_record_btrace_bts_start): New.
11760         (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11761         (_initialize_record_btrace): Add "record btrace bts" subcommand.
11762         Add "record bts" alias command.
11763         * remote.c (remote_state)<btrace_config>: New.
11764         (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11765         (remote_protocol_features): Add qXfer:btrace-conf:read.
11766         (remote_open_1): Call remote_btrace_reset.
11767         (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11768         (btrace_target_info)<conf>: New.
11769         (btrace_sync_conf, btrace_read_config): New.
11770         (remote_enable_btrace): Update parameters.  Call btrace_sync_conf and
11771         btrace_read_conf.
11772         (remote_btrace_conf): New.
11773         (init_remote_ops): Initialize to_btrace_conf.
11774         (_initialize_remote): Add qXfer:btrace-conf packet.
11775         * target.c (target_enable_btrace): Update parameters.
11776         (target_btrace_conf): New.
11777         * target.h (target_enable_btrace): Update parameters.
11778         (target_btrace_conf): New.
11779         (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11780         (target_ops)<to_enable_btrace>: Update parameters and comment.
11781         (target_ops)<to_btrace_conf>: New.
11782         * target-delegates: Regenerate.
11783         * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11784         (target_debug_print_const_struct_btrace_target_info_p): New.
11785         * NEWS: Announce new command and new packet.
11786
11787 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11788
11789         * nat/linux-btrace.h (perf_event_buffer): New.
11790         (btrace_target_info) <buffer, size, data_head>: Replace with ...
11791         <bts>: ... this.
11792         * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11793         (perf_event_buffer_size, perf_event_buffer_begin)
11794         (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11795         Updated users.
11796         (perf_event_new_data): New.
11797
11798 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11799
11800         * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11801         * record-btrace.c (record_btrace_open): Remove call to
11802         target_supports_btrace.
11803         * remote.c (remote_supports_btrace): Update parameters.
11804         * target.c (target_supports_btrace): Update parameters.
11805         * target.h (to_supports_btrace, target_supports_btrace): Update
11806         parameters.
11807         * target-delegates.c: Regenerate.
11808         * target-debug.h (target_debug_print_enum_btrace_format): New.
11809         * nat/linux-btrace.c
11810         (kernel_supports_btrace): Rename into ...
11811         (kernel_supports_bts): ... this.  Update users.  Update warning text.
11812         (intel_supports_btrace): Rename into ...
11813         (intel_supports_bts): ... this.  Update users.
11814         (cpu_supports_btrace): Rename into ...
11815         (cpu_supports_bts): ... this.  Update users.
11816         (linux_supports_btrace): Update parameters.  Split into this and ...
11817         (linux_supports_bts): ... this.
11818         * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11819
11820 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11821
11822         * Makefile.in (SFILES): Add common/btrace-common.c.
11823         (COMMON_OBS): Add common/btrace-common.o.
11824         (btrace-common.o): Add build rules.
11825         * btrace.c (parse_xml_btrace): Update parameters.
11826         (parse_xml_btrace_block): Set format field.
11827         (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11828         (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11829         (btrace_compute_ftrace): Split into this and...
11830         (btrace_compute_ftrace_bts): ...this.
11831         (btrace_stitch_trace): Split into this and...
11832         (btrace_stitch_bts): ...this.
11833         * btrace.h (parse_xml_btrace): Update parameters.
11834         (make_cleanup_btrace_data): New.
11835         * common/btrace-common.c: New.
11836         * common/btrace-common.h: Include common-defs.h.
11837         (btrace_block_s): Update comment.
11838         (btrace_format): New.
11839         (btrace_format_string): New.
11840         (btrace_data_bts): New.
11841         (btrace_data): New.
11842         (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11843         * remote.c (remote_read_btrace): Update parameters.
11844         * target.c (target_read_btrace): Update parameters.
11845         * target.h (target_read_btrace): Update parameters.
11846         (target_ops)<to_read_btrace>: Update parameters.
11847         * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11848         * target-delegates.c: Regenerate.
11849         * target-debug (target_debug_print_struct_btrace_data_p): New.
11850         * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11851         (linux_read_bts): ...this.
11852         * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11853
11854 2015-02-06  Doug Evans  <dje@google.com>
11855
11856         * remote-m32r-sdi.c: Include symfile.h.
11857
11858 2015-02-06  Doug Evans  <dje@google.com>
11859
11860         * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11861         * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11862         to here.
11863
11864 2015-02-06  Pedro Alves  <palves@redhat.com>
11865
11866         * linux-thread-db.c (find_new_threads_callback): Add debug output.
11867
11868 2015-02-06  Simon Marchi  <simon.marchi@ericsson.com>
11869
11870         PR gdb/15678
11871         * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11872         (enable_count_command): Check args for NULL value.
11873
11874 2015-02-05  Doug Evans  <xdje42@gmail.com>
11875
11876         * guile/scm-frame.c: Fix spelling errors in a comment.
11877
11878 2015-02-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
11879
11880         * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11881         * python/py-value.c (valpy_fetch_lazy): Use it.  Remove cast to the
11882         return type.
11883
11884 2015-02-04  Pedro Alves  <palves@redhat.com>
11885
11886         * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11887         (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11888         returns true.
11889         (resume_stopped_resumed_lwps): Don't check whether the thread is
11890         marked as executing.
11891         (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11892
11893 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11894
11895         * regset.h (struct regset): Add flags field.
11896         (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11897         * corelow.c (get_core_register_section): Add warning if the size
11898         exceeds the requested size and the regset does not have the
11899         REGSET_VARIABLE_SIZE flag set.
11900         * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11901         flag.
11902         * armbsd-tdep.c (armbsd_gregset): Likewise.
11903         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11904         * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11905         * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11906         * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11907
11908 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11909
11910         * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11911         For ".reg-xstate", explicitly specify the requested section size
11912         via X86_XSTATE_SIZE instead of just 0 on input and
11913         X86_XSTATE_MAX_SIZE on output.
11914         * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11915         Likewise.
11916
11917 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11918
11919         PR corefiles/17808:
11920         * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11921         function type, particularly its SIZE parameter.
11922         * gdbarch.h: Regenerate.
11923         * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11924         actual against required size using ">=" instead of "==".
11925         (amd64_collect_fpregset): Likewise.
11926         * i386-tdep.c (i386_supply_gregset): Likewise.
11927         (i386_collect_gregset): Likewise.
11928         (i386_supply_fpregset): Likewise.
11929         (i386_collect_fpregset): Likewise.
11930         * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11931         (mips_fill_gregset_wrapper): Likewise.
11932         (mips_supply_fpregset_wrapper): Likewise.
11933         (mips_fill_fpregset_wrapper): Likewise.
11934         (mips64_supply_gregset_wrapper): Likewise.
11935         (mips64_fill_gregset_wrapper): Likewise.
11936         (mips64_supply_fpregset_wrapper): Likewise.
11937         (mips64_fill_fpregset_wrapper): Likewise.
11938         * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11939         (am33_supply_fpregset_method): Likewise.
11940         (am33_collect_gregset_method): Likewise.
11941         (am33_collect_fpregset_method): Likewise.
11942
11943 2015-02-04  Doug Evans  <dje@google.com>
11944             Pedro Alves  <palves@redhat.com>
11945             Eli Zaretskii  <eliz@gnu.org>
11946
11947         PR tui/17810
11948         * tui/tui-command.c (tui_refresh_cmd_win): New function.
11949         * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11950         * tui/tui-file.c: #include tui/tui-command.h.
11951         (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11952         (tui_file_flush): Refresh command window if stream is gdb_stdout.
11953         * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11954
11955 2015-02-04  Pedro Alves  <palves@redhat.com>
11956
11957         Fix build breakage.
11958         * event-loop.c (gdb_do_one_event): Add default switch case.
11959
11960 2015-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11961
11962         Filter out inferior gcc option -fpreprocessed.
11963         * compile/compile.c (filter_args): New function.
11964         (get_args): Use it.
11965
11966 2015-02-03  Pedro Alves  <palves@redhat.com>
11967
11968         * event-loop.c: Don't declare nor define a queue type for
11969         gdb_event_p.
11970         (event_queue): Delete.
11971         (create_event, create_file_event, gdb_event_xfree)
11972         (initialize_event_loop, process_event): Delete.
11973         (gdb_do_one_event): Return as soon as one event is handled.
11974         (handle_file_event): Change prototype.  Used the passed in
11975         file_handler pointer and ready_mask instead of looping over all
11976         file handlers.
11977         (gdb_wait_for_event): Update the poll/select timeouts before
11978         blocking.  Run event handlers directly instead of queueing events.
11979         Return as soon as one event is handled.
11980         (struct async_event_handler_data): Delete.
11981         (invoke_async_event_handler): Delete.
11982         (check_async_event_handlers): Change return type to int.  Run
11983         event handlers directly instead of queueing events.  Return as
11984         soon as one event is handled.
11985         (handle_timer_event): Delete.
11986         (update_wait_timeout): New function, factored out from
11987         poll_timers.
11988         (poll_timers): Reimplement.
11989         * event-loop.h (initialize_event_loop): Delete declaration.
11990         * top.c (gdb_init): Don't call initialize_event_loop.
11991
11992 2015-02-03  Pedro Alves  <palves@redhat.com>
11993
11994         * event-loop.c (clear_async_event_handler): New function.
11995         * event-loop.h (clear_async_event_handler): New declaration.
11996         * record-btrace.c (record_btrace_async): New function.
11997         (init_record_btrace_ops): Install record_btrace_async.
11998         * record-full.c (record_full_async): New function.
11999         (record_full_resume): Don't mark the async event source here.
12000         (init_record_full_ops): Install record_full_async.
12001         (record_full_core_resume): Don't mark the async event source here.
12002         (init_record_full_core_ops): Install record_full_async.
12003         * remote.c (remote_async): Mark and clear the async stop reply
12004         queue event-loop token as appropriate.
12005
12006 2015-02-03  Pedro Alves  <palves@redhat.com>
12007
12008         * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
12009         target_is_async_p instead of target_can_async.
12010         (linux_nat_wait): Use target_is_async_p instead of
12011         target_can_async.  Don't enable async here.
12012         * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
12013         target_is_async_p instead of target_can_async.
12014
12015 2015-02-02  Simon Marchi  <simon.marchi@ericsson.com>
12016
12017         * varobj.h (lang_varobj_ops): Mention which return values need
12018         to be freed.
12019
12020 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
12021
12022         * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
12023
12024 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
12025
12026         PR gdb/17856:
12027         * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
12028         results found in the cache.
12029
12030 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
12031
12032         PR gdb/17854:
12033         * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
12034         when allocating a new one.
12035
12036 2015-02-01  Tom Tromey  <tom@tromey.com>
12037
12038         * MAINTAINERS: Remove myself.
12039
12040 2015-01-31  Doug Evans  <xdje42@gmail.com>
12041
12042         * dwarf2read.c (process_structure_scope): Update setting of
12043         TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
12044         * gdbtypes.c (internal_type_vptr_fieldno): New function.
12045         (set_type_vptr_fieldno): New function.
12046         (internal_type_vptr_basetype): New function.
12047         (set_type_vptr_basetype): New function.
12048         (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
12049         TYPE_VPTR_BASETYPE.
12050         (allocate_cplus_struct_type): Initialize vptr_fieldno.
12051         (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
12052         (print_cplus_stuff): ... moved here.
12053         (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
12054         * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
12055         moved to ...
12056         (struct cplus_struct_type): ... here.  All uses updated.
12057         (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
12058         (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
12059         (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
12060         * stabsread.c (read_tilde_fields): Update setting of
12061         TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
12062
12063 2015-01-31  Doug Evans  <xdje42@gmail.com>
12064
12065         * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
12066         to self_p.
12067         (cp_print_class_member): Rename local domain to self_type.
12068         * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
12069         domain_type to self_type.
12070         (set_die_type) <need_gnat_info>: Handle
12071         TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
12072         * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
12073         TYPE_SPECIFIC_SELF_TYPE.
12074         * gdbtypes.c (internal_type_self_type): New function.
12075         (set_type_self_type): New function.
12076         (smash_to_memberptr_type): Rename parameter domain to self_type.
12077         Update setting of TYPE_SELF_TYPE.
12078         (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
12079         (smash_to_method_type): Rename parameter domain to self_type.
12080         Update setting of TYPE_SELF_TYPE.
12081         (check_stub_method): Call smash_to_method_type.
12082         (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
12083         (copy_type_recursive): Ditto.
12084         * gdbtypes.h (enum type_specific_kind): New value
12085         TYPE_SPECIFIC_SELF_TYPE.
12086         (struct main_type) <type_specific>: New member self_type.
12087         (struct cplus_struct_type) <fn_field.type>: Update comment.
12088         (TYPE_SELF_TYPE): Rewrite.
12089         (internal_type_self_type, set_type_self_type): Declare.
12090         * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
12091         self_type.
12092         (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
12093         * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
12094         TYPE_TARGET_TYPE.
12095         * stabsread.c (read_member_functions): Mark methods with
12096         TYPE_CODE_METHOD, not TYPE_CODE_FUNC.  Update setting of
12097         TYPE_SELF_TYPE.
12098
12099 2015-01-31  Doug Evans  <xdje42@gmail.com>
12100
12101         * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
12102         All uses updated.
12103
12104 2015-01-31  Doug Evans  <xdje42@gmail.com>
12105
12106         * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
12107         or unions.  Return zero if union.
12108         (gnuv3_get_vtable): Call check_typedef.  Assert only passed structs.
12109         (gnuv3_rtti_type): Pass already-check_typedef'd value to
12110         gnuv3_get_vtable.
12111         (compute_vtable_size): Assert only passed structs.
12112         (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
12113
12114 2015-01-31  Doug Evans  <xdje42@gmail.com>
12115
12116         * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
12117         kinds.
12118
12119 2015-01-31  Gary Benson <gbenson@redhat.com>
12120             Doug Evans  <dje@google.com>
12121
12122         PR cli/9007
12123         PR cli/11920
12124         PR cli/15548
12125         * cli/cli-cmds.c (complete_command): Notify user if max-completions
12126         reached.
12127         * common/common-exceptions.h (enum errors)
12128         <MAX_COMPLETIONS_REACHED_ERROR>: New value.
12129         * completer.h (get_max_completions_reached_message): New declaration.
12130         (max_completions): Likewise.
12131         (completion_tracker_t): New typedef.
12132         (new_completion_tracker): New declaration.
12133         (make_cleanup_free_completion_tracker): Likewise.
12134         (maybe_add_completion_enum): New enum.
12135         (maybe_add_completion): New declaration.
12136         (throw_max_completions_reached_error): Likewise.
12137         * completer.c (max_completions): New global variable.
12138         (new_completion_tracker): New function.
12139         (free_completion_tracker): Likewise.
12140         (make_cleanup_free_completion_tracker): Likewise.
12141         (maybe_add_completions): Likewise.
12142         (throw_max_completions_reached_error): Likewise.
12143         (complete_line): Remove duplicates and limit result to max_completions
12144         entries.
12145         (get_max_completions_reached_message): New function.
12146         (gdb_display_match_list): Handle max_completions.
12147         (_initialize_completer): New declaration and function.
12148         * symtab.c: Include completer.h.
12149         (completion_tracker): New static variable.
12150         (completion_list_add_name): Call maybe_add_completion.
12151         (default_make_symbol_completion_list_break_on_1): Renamed from
12152         default_make_symbol_completion_list_break_on.  Maintain
12153         completion_tracker across calls to completion_list_add_name.
12154         (default_make_symbol_completion_list_break_on): New function.
12155         * top.c (init_main): Set rl_completion_display_matches_hook.
12156         * tui/tui-io.c: Include completer.h.
12157         (tui_old_rl_display_matches_hook): New static global.
12158         (tui_rl_display_match_list): Notify user if max-completions reached.
12159         (tui_setup_io): Save/restore rl_completion_display_matches_hook.
12160         * NEWS (New Options): Mention set/show max-completions.
12161
12162 2015-01-31  Gary Benson  <gbenson@redhat.com>
12163
12164         * symtab.c (struct add_name_data) <code>: New field.
12165         Updated comments.
12166         (add_symtab_completions): New function.
12167         (symtab_expansion_callback): Likewise.
12168         (default_make_symbol_completion_list_break_on): Set datum.code.
12169         Move minimal symbol scan before calling expand_symtabs_matching.
12170         Scan known primary symtabs for externs and statics before calling
12171         expand_symtabs_matching.  Pass symtab_expansion_callback as
12172         expansion_notify argument to expand_symtabs_matching.  Do not scan
12173         primary symtabs for externs and statics after calling
12174         expand_symtabs_matching.
12175
12176 2015-01-31  Gary Benson  <gbenson@redhat.com>
12177
12178         * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
12179         (struct quick_symbol_functions) <expand_symtabs_matching>:
12180         New argument expansion_notify.  All uses updated.
12181         (expand_symtabs_matching): New argument expansion_notify.
12182         All uses updated.
12183         * symfile-debug.c (debug_qf_expand_symtabs_matching):
12184         Also print expansion notify.
12185         * symtab.c (expand_symtabs_matching_via_partial): Call
12186         expansion_notify whenever a partial symbol table is expanded.
12187         * dwarf2read.c (dw2_expand_symtabs_matching): Call
12188         expansion_notify whenever a symbol table is instantiated.
12189
12190 2015-01-31  Doug Evans  <xdje42@gmail.com>
12191
12192         * cli-out.c: #include completer.h, readline/readline.h.
12193         (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
12194         (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
12195         (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
12196         * cli-out.h (cli_display_match_list): Declare.
12197         * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
12198         (ELLIPSIS_LEN): Ditto.
12199         (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
12200         (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
12201         (gdb_fnprint, gdb_print_filename): Ditto.
12202         (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
12203         (gdb_display_match_list): Ditto.
12204         * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
12205         (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
12206         (mld_beep_ftype, mld_read_key_ftype): Ditto.
12207         (match_list_displayer): New struct.
12208         (gdb_display_match_list): Declare.
12209         * top.c (init_main): Set rl_completion_display_matches_hook.
12210         * tui/tui-io.c: #include completer.h.
12211         (printable_part, PUTX, print_filename, get_y_or_n): Delete.
12212         (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
12213         (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
12214         (tui_mld_getc, tui_mld_read_key): Ditto.
12215         (tui_rl_display_match_list): Rewrite.
12216         (tui_handle_resize_during_io): New arg for_completion.  All callers
12217         updated.
12218
12219 2015-01-31  Doug Evans  <xdje42@gmail.com>
12220
12221         Add symbol lookup cache.
12222         * NEWS: Document new options and commands.
12223         * symtab.c (symbol_cache_key): New static global.
12224         (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
12225         (SYMBOL_LOOKUP_FAILED): New macro.
12226         (symbol_cache_slot_state): New enum.
12227         (block_symbol_cache): New struct.
12228         (symbol_cache): New struct.
12229         (new_symbol_cache_size, symbol_cache_size): New static globals.
12230         (hash_symbol_entry, eq_symbol_entry): New functions.
12231         (symbol_cache_byte_size, resize_symbol_cache): New functions.
12232         (make_symbol_cache, free_symbol_cache): New functions.
12233         (get_symbol_cache, symbol_cache_cleanup): New function.
12234         (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
12235         (symbol_cache_lookup, symbol_cache_clear_slot): New function.
12236         (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
12237         (symbol_cache_flush, symbol_cache_dump): New functions.
12238         (maintenance_print_symbol_cache): New function.
12239         (maintenance_flush_symbol_cache): New function.
12240         (symbol_cache_stats): New function.
12241         (maintenance_print_symbol_cache_statistics): New function.
12242         (symtab_new_objfile_observer): New function.
12243         (symtab_free_objfile_observer): New function.
12244         (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
12245         (_initialize_symtab): Init symbol_cache_key.  New parameter
12246         maint symbol-cache-size.  New maint commands print symbol-cache,
12247         print symbol-cache-statistics, flush-symbol-cache.
12248         Install new_objfile, free_objfile observers.
12249
12250 2015-01-31  Joel Brobecker  <brobecker@adacore.com>
12251
12252         PR symtab/17855
12253         * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
12254         to end.
12255
12256 2015-01-31  Doug Evans  <xdje42@gmail.com>
12257
12258         * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
12259         * auto-load.c: #include ctype.h.
12260         (struct auto_load_pspace_info): Replace member loaded_scripts with
12261         new members loaded_script_files, loaded_script_texts.
12262         (auto_load_pspace_data_cleanup): Update.
12263         (init_loaded_scripts_info): Update.
12264         (get_auto_load_pspace_data_for_loading): Update.
12265         (maybe_add_script_file): Renamed from maybe_add_script.  All callers
12266         updated.
12267         (maybe_add_script_text): New function.
12268         (clear_section_scripts): Update.
12269         (source_script_file, execute_script_contents): New functions.
12270         (source_section_scripts): Add support for
12271         SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
12272         (print_scripts): New function.
12273         (auto_load_info_scripts): Also print inlined scripts.
12274         (maybe_print_unsupported_script_warning): Renamed from
12275         unsupported_script_warning_print.  All callers updated.
12276         (maybe_print_script_not_found_warning): Renamed from
12277         script_not_found_warning_print.  All callers updated.
12278         * extension-priv.h (struct extension_language_script_ops): New member
12279         objfile_script_executor.
12280         * extension.c (ext_lang_objfile_script_executor): New function.
12281         * extension.h (objfile_script_executor_func): New typedef.
12282         (ext_lang_objfile_script_executor): Declare.
12283         * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
12284         * guile/guile.c (guile_extension_script_ops): Update.
12285         * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
12286         * python/python.c (python_extension_script_ops): Update.
12287         (gdbpy_execute_objfile_script): New function.
12288
12289 2015-01-31  Eli Zaretskii  <eliz@gnu.org>
12290
12291         * tui/tui-io.c (tui_expand_tabs): New function.
12292         (tui_puts, tui_redisplay_readline): Expand TABs into the
12293         appropriate number of spaces.
12294         * tui/tui-regs.c: Include tui-io.h.
12295         (tui_register_format): Call tui_expand_tabs to expand TABs into
12296         the appropriate number of spaces.
12297         * tui/tui-io.h: Add prototype for tui_expand_tabs.
12298
12299 2015-01-30  Doug Evans  <dje@google.com>
12300
12301         * NEWS: "info source" command now display producer string if present.
12302         * source.c (source_info): Print producer string if present.
12303
12304 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12305
12306         * varobj.c (varobj_delete): Fix comment.
12307
12308 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12309
12310         * varobj.c (create_child): Modify comment.
12311
12312 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12313
12314         * ada-varobj.c (ada_number_of_children): Constify struct varobj *
12315         parameter.
12316         (ada_name_of_variable): Same.
12317         (ada_path_expr_of_child): Same.
12318         (ada_value_of_variable): Same.
12319         (ada_value_is_changeable_p): Same.
12320         (ada_value_has_mutated): Same.
12321         * c-varobj.c (varobj_is_anonymous_child): Same.
12322         (c_is_path_expr_parent): Same.
12323         (c_number_of_children): Same.
12324         (c_name_of_variable): Same.
12325         (c_path_expr_of_child): Same.
12326         (get_type): Same.
12327         (c_value_of_variable): Same.
12328         (cplus_number_of_children): Same.
12329         (cplus_name_of_variable): Same.
12330         (cplus_path_expr_of_child): Same.
12331         (cplus_value_of_variable): Same.
12332         * jv-varobj.c (java_number_of_children): Same.
12333         (java_name_of_variable): Same.
12334         (java_path_expr_of_child): Same.
12335         (java_value_of_variable): Same.
12336         * varobj.c (number_of_children): Same.
12337         (name_of_variable): Same.
12338         (is_root_p): Same.
12339         (varobj_ensure_python_env): Same.
12340         (varobj_get_objname): Same.
12341         (varobj_get_expression): Same.
12342         (varobj_get_display_format): Same.
12343         (varobj_get_display_hint): Same.
12344         (varobj_has_more): Same.
12345         (varobj_get_thread_id): Same.
12346         (varobj_get_frozen): Same.
12347         (dynamic_varobj_has_child_method): Same.
12348         (varobj_get_gdb_type): Same.
12349         (is_path_expr_parent): Same.
12350         (varobj_default_is_path_expr_parent): Same.
12351         (varobj_get_language): Same.
12352         (varobj_get_attributes): Same.
12353         (varobj_is_dynamic_p): Same.
12354         (varobj_get_child_range): Same.
12355         (varobj_value_has_mutated): Same.
12356         (varobj_get_value_type): Same.
12357         (number_of_children): Same.
12358         (name_of_variable): Same.
12359         (check_scope): Same.
12360         (varobj_editable_p): Same.
12361         (varobj_value_is_changeable_p): Same.
12362         (varobj_floating_p): Same.
12363         (varobj_default_value_is_changeable_p): Same.
12364
12365 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12366
12367         * varobj.c (varobj_get_path_expr): Set var->path_expr.
12368         * c-varobj.c (c_path_expr_of_child): Set local var instead of
12369         child->path_expr.
12370         (cplus_path_expr_of_child): Same.
12371
12372 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12373
12374         * mi-cmd-var.c (print_varobj): Free varobj_get_expression
12375         result.
12376         (mi_cmd_var_info_expression): Same.
12377         * varobj.c (varobj_get_expression): Mention in the comment that
12378         the result must by freed by the caller.
12379
12380 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12381
12382         * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
12383         varobj_get_type.
12384         (varobj_update_one): Same.
12385         * varobj.c (update_type_if_necessary): Free curr_type_str and
12386         new_type_str.
12387         (varobj_get_type): Specify in comment that the result needs to be
12388         freed by the caller.
12389
12390 2015-01-29  Doug Evans  <dje@google.com>
12391
12392         PR symtab/17890
12393         * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
12394
12395 2015-01-25  Mark Wielaard  <mjw@redhat.com>
12396
12397         * dwarf2read.c (checkproducer): Call producer_is_gcc.
12398         * utils.c (producer_is_gcc_ge_4): Likewise.
12399         (producer_is_gcc): New function.
12400         * utils.h (producer_is_gcc): New declaration.
12401
12402 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12403
12404         * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
12405         kind.
12406         * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
12407         parameter by "addr_stack" parameter.
12408         (resolve_dynamic_range): Replace "addr" parameter by
12409         "stack_addr" parameter.  Update function documentation.
12410         Update code accordingly.
12411         (resolve_dynamic_array, resolve_dynamic_union)
12412         (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
12413         (resolve_dynamic_type): Update code, following the changes made
12414         to resolve_dynamic_type_internal's interface.
12415         * dwarf2loc.h (struct property_addr_info): New.
12416         (dwarf2_evaluate_property): Replace "address" parameter
12417         by "addr_stack" parameter.  Adjust function documentation.
12418         (struct dwarf2_offset_baton): New.
12419         (struct dwarf2_property_baton): Update documentation of
12420         field "referenced_type" to be more general. New field
12421         "offset_info" in union data field.
12422         * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
12423         parameter by "addr_stack" parameter.  Adjust code accordingly.
12424         Add support for PROP_ADDR_OFFSET properties.
12425         * dwarf2read.c (attr_to_dynamic_prop): Add support for
12426         DW_AT_data_member_location attributes as well.  Use case
12427         statements instead of if/else condition.
12428
12429 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12430
12431         * ada-varobj.c (ada_varobj_get_array_number_of_children):
12432         Return zero if PARENT_VALUE is NULL and parent_type's
12433         range type is dynamic.
12434
12435 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12436
12437         * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
12438         nonzero if the type's subtype is dynamic.
12439         (resolve_dynamic_range): Also resolve the range's subtype.
12440
12441 2015-01-29  Alexander Klimov  <alserkli@inbox.ru>  (tiny patch)
12442
12443         Pushed by Joel Brobecker  <brobecker@adacore.com>.
12444         * symfile.c (unmap_overlay_command): Initialize sec to NULL.
12445
12446 2015-01-27  Doug Evans  <dje@google.com>
12447
12448         * NEWS: Mention gdb.Objfile.username.
12449         * python/py-objfile.c (objfpy_get_username): New function.
12450         (objfile_getset): Add "username".
12451
12452 2015-01-24  Mark Wielaard  <mjw@redhat.com>
12453
12454         * stack.c (return_command): Markup warning message with _.
12455
12456 2015-01-24  Doug Evans  <xdje42@gmail.com>
12457
12458         * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
12459
12460 2015-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
12461
12462         Fix 100x slowdown regression on DWZ files.
12463         * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
12464         (struct line_header): Add offset and offset_in_dwz.
12465         (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
12466         (free_line_header_voidp): New declaration.
12467         (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
12468         functions.
12469         (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
12470         (handle_DW_AT_stmt_list): Use line_header_hash.
12471         (free_line_header_voidp): New function.
12472         (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
12473         (dwarf_decode_lines): New parameter decode_mapping, use it.
12474         (dwarf2_free_objfile): Free line_header_hash.
12475
12476 2015-01-23  Simon Marchi  <simon.marchi@ericsson.com>
12477
12478         PR gdb/17416
12479         * valops.c (value_rtti_indirect_type): Catch exception thrown by
12480         value_ind.
12481
12482 2015-01-15  Mark Wielaard  <mjw@redhat.com>
12483
12484         * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
12485         DW_AT_noreturn.
12486         * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
12487         calling_convention an 8 bit bit field.
12488         (TYPE_NO_RETURN): New macro.
12489         * infcmd.c (finish_command): Query if function does not return
12490         normally.
12491         * stack.c (return_command): Likewise.
12492
12493 2015-01-23  Pedro Alves  <palves@redhat.com>
12494
12495         * linux-nat.c (linux_is_async_p): New macro.
12496         (linux_nat_is_async_p):
12497         (linux_nat_terminal_inferior): Check whether the target can async
12498         instead of whether it is already async.
12499         (linux_nat_terminal_ours): Don't check whether the target is
12500         async.
12501         (linux_async_pipe): Use linux_is_async_p.
12502
12503 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12504
12505         * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
12506         '-ascending'.
12507         * thread.c (tp_array_compar_ascending, tp_array_compar): New.
12508         (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
12509         Sort tp_array using tp_array_compar.
12510         (_initialize_thread): Extend thread_apply_all_command help.
12511
12512 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12513
12514         * corelow.c (core_open): Call also thread_command.
12515         * gdbthread.h (thread_command): New prototype moved from ...
12516         * thread.c (thread_command): ... here.
12517         (thread_command): Make it global.
12518
12519 2015-01-22  Pedro Alves  <palves@redhat.com>
12520
12521         * configure.ac [*mingw32*]: Check $curses_found instead of
12522         $prefer_curses.
12523         * configure: Regenerate.
12524         * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
12525         HAVE_NCURSES_NCURSES_H checks.
12526
12527 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
12528
12529         * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
12530         fails with the 1st arg NULL, try again with "unknown".  Don't test
12531         the "cup" capability: it isn't supported by the Windows port of
12532         ncurses, but the Windows console driver is still capable of
12533         supporting TUI.
12534
12535 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12536
12537         * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
12538
12539 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
12540
12541         * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
12542         (ALLDEPFILES): Remove irix5-nat.c.  These two are part of the
12543         reason that "make TAGS" is broken.
12544
12545 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
12546
12547         * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
12548         and check additional store instructions.
12549
12550 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
12551
12552         * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
12553
12554 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
12555
12556         * ppc-linux-tdep.c (ppc_skip_trampoline_code,
12557         ppc_canonicalize_syscall, ppc_linux_syscall_record,
12558         ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
12559         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12560         * rs6000-tdep.c (rs6000_epilogue_frame_cache,
12561         rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
12562         rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
12563         ppc_process_record_op19, ppc_process_record_op31,
12564         ppc_process_record_op59, ppc_process_record_op60,
12565         ppc_process_record_op63): Likewise.
12566
12567 2015-01-20  Joel Brobecker  <brobecker@adacore.com>
12568
12569         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
12570         (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
12571         strerror.
12572
12573 2015-01-20  Wei-cheng Wang  <cole945@gmail.com>
12574
12575         * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
12576         ppc_process_record_op31, ppc_process_record_op59,
12577         ppc_process_record_op60, ppc_process_record_op63,
12578         ppc_process_record): Fix -Wformat warning.
12579         * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12580         Remove unused variables.
12581
12582 2015-01-20  Chen Gang  <gang.chen.5i5j@gmail.com>
12583
12584         * MAINTAINERS (Write After Approval): Add "Chen Gang".
12585
12586 2015-01-19  Eli Zaretskii  <eliz@gnu.org>
12587
12588         * configure.ac [*mingw32*]: Only add windows-termcap.o to
12589         CONFIG_OBS if not building with a curses library.
12590         * configure: Regenerate.
12591
12592         * windows-termcap.c: Include defs.h.  Make the whole body empty if
12593         either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12594         HAVE_NCURSES_NCURSES_H is defined.
12595
12596 2015-01-19  Joel Brobecker  <brobecker@adacore.com>
12597
12598         * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12599         from end of line to start of next line.
12600
12601 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12602
12603         * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12604         Scan PLT stub backward for reverse debugging.
12605         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12606
12607 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12608             Ulrich Weigand  <uweigand@de.ibm.com>
12609
12610         * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12611         gdb_target_obs.
12612         (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12613         record.
12614         (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12615         ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12616         (ppc_linux_init_abi): Set process_record, process_record_signal.
12617         * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12618         ppc_linux_record_tdep to gdbarch_tdep.
12619         (ppc_process_record): New declaration.
12620         * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12621         ppc_process_record_op19, ppc_process_record_op31,
12622         ppc_process_record_op59, ppc_process_record_op60,
12623         ppc_process_record_op63, ppc_process_record): New functions.
12624
12625 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12626
12627         * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12628         rs6000_in_function_epilogue_frame_p and add an argument
12629         for frame_info.
12630         (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12631         rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12632         New functions.
12633         (rs6000_epilogue_frame_unwind): New.
12634         (rs6000_gdbarch_init): Append epilogue unwinder.
12635
12636 2015-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
12637
12638         * nat/linux-personality.c: Replace "#ifndef
12639         HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12640         !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12641         systems.
12642
12643 2015-01-16  Eli Zaretskii  <eliz@gnu.org>
12644
12645         * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12646         functions.
12647         (_initialize_tui_win) <border-kind, border-mode>:
12648         <active-border-mode>: Use tui_set_var_cmd as the "set" function.
12649         (tui_set_tab_width_command): Fix the commentary.
12650
12651         * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12652
12653         * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12654         Doc fix.
12655         (tui_set_tab_width_command): Delete and recreate the source and
12656         the disassembly windows, to show the effect of the changed tab
12657         size immediately.
12658
12659         * tui/tui-data.h (LINE_PREFIX): Make shorter
12660         (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12661         "Thread NNNNN.XXXX" thread ID notation on Windows.
12662
12663 2015-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12664
12665         Fix gcc-5 compilation.
12666         * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12667
12668 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
12669
12670         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12671         (linux-personality.o): New rule.
12672         * common/common-defs.h: Include <stdint.h>.
12673         * config/aarch64/linux.mh (NATDEPFILES): Include
12674         linux-personality.o.
12675         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12676         * config/arm/linux.mh (NATDEPFILES): Likewise.
12677         * config/i386/linux64.mh (NATDEPFILES): Likewise.
12678         * config/i386/linux.mh (NATDEPFILES): Likewise.
12679         * config/ia64/linux.mh (NATDEPFILES): Likewise.
12680         * config/m32r/linux.mh (NATDEPFILES): Likewise.
12681         * config/m68k/linux.mh (NATDEPFILES): Likewise.
12682         * config/mips/linux.mh (NATDEPFILES): Likewise.
12683         * config/pa/linux.mh (NATDEPFILES): Likewise.
12684         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12685         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12686         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12687         * config/s390/linux.mh (NATDEPFILES): Likewise.
12688         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12689         * config/sparc/linux.mh (NATDEPFILES): Likewise.
12690         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12691         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12692         * defs.h: Remove #include <stdint.h> (moved to
12693         common/common-defs.h).
12694         * linux-nat.c: Include nat/linux-personality.h.  Remove #include
12695         <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12696         nat/linux-personality.c).
12697         (linux_nat_create_inferior): Remove code to disable address space
12698         randomization (moved to nat/linux-personality.c).  Create cleanup
12699         to disable address space randomization.
12700         * nat/linux-personality.c: New file.
12701         * nat/linux-personality.h: Likewise.
12702
12703 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
12704
12705         * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12706         common/posix-strerror.c.
12707         (posix-strerror.o): New rule.
12708         (mingw-strerror.o): Likewise.
12709         * common/common-utils.h (safe_strerror): Move prototype to here,
12710         from utils.h.
12711         * common/common.host: New file.
12712         * common/mingw-strerror.c: Likewise.
12713         * common/posix-strerror.c: Likewise.
12714         * configure: Regenerated.
12715         * configure.ac: Source common/common.host.  Add variable
12716         common_host_obs to gdb_host_obs.
12717         * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12718         gdb/common/posix-strerror.c when warning about the use of
12719         strerror.
12720         * mingw-hdep.c (safe_strerror): Remove definition; move it to
12721         common/mingw-strerror.c.
12722         * posix-hdep.c (safe_strerror): Remove definition; move it to
12723         common/posix-hdep.c.
12724         * utils.h (safe_strerror): Remove prototype; move to
12725         common/common-utils.h.
12726
12727 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
12728
12729         GDB 7.8.2 released.
12730
12731 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
12732
12733         * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12734         ___XA type if the array has already been fixed.
12735
12736 2015-01-14  Yao Qi  <yao@codesourcery.com>
12737
12738         * Makefile.in (ppc-linux.o): New rule.
12739         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12740         * configure.ac: AC_CHECK_FUNCS(getauxval).
12741         * config.in: Re-generated.
12742         * configure: Re-generated.
12743         * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12744         Declare.
12745         * nat/ppc-linux.c: New file.
12746         * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12747         Call ppc64_64bit_inferior_p.
12748
12749 2015-01-14  Yao Qi  <yao@codesourcery.com>
12750
12751         * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12752         nat/ppc-linux.h.
12753         (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12754         (PPC_FEATURE_HAS_DFP): Likewise.
12755         (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12756         (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12757         (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12758         Include "nat/ppc-linux.h".
12759         * nat/ppc-linux.h: New file.
12760         * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12761
12762 2015-01-14  Pedro Alves  <palves@redhat.com>
12763
12764         PR gdb/17525
12765         * breakpoint.c: Include "interps.h".
12766         (bpstat_do_actions_1): Also check whether the interpreter is
12767         async.
12768
12769 2015-01-14  Pedro Alves  <palves@redhat.com>
12770
12771         PR cli/17828
12772         * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12773         reinstall if the interpreter is sync.
12774
12775 2015-01-13  Doug Evans  <dje@google.com>
12776
12777         * objfiles.c (objfile_filename): New function.
12778         * objfiles.h (objfile_filename): Declare it.
12779         (objfile_name): Add function comment.
12780         * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12781         bfd file name (which may be realpath'd), and the original name.
12782
12783 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12784
12785         * NEWS: Create a new section for the next release branch.
12786         Rename the section of the current branch, now that it has
12787         been cut.
12788
12789 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12790
12791         GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12792         * version.in: Bump version to 7.9.50.DATE-cvs.
12793
12794 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12795
12796         * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12797         Remove trailing new-line in argument of call to warning.
12798
12799 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12800
12801         * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12802         new-line in argument of call to "warning".
12803
12804 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12805
12806         * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12807         in static block, then try searching for primitive types.
12808
12809 2015-01-12  Patrick Palka  <patrick@parcs.ath.cx>
12810
12811         * top.h (gdb_add_history): Declare.
12812         * top.c (command_count): New variable.
12813         (gdb_add_history): New function.
12814         (gdb_safe_append_history): New static function.
12815         (quit_force): Call it.
12816         (command_line_input): Use gdb_add_history instead of
12817         add_history.
12818         * event-top.c (command_line_handler): Likewise.
12819
12820 2015-01-12  James Clarke  <jrtc27@jrtc27.com>  (tiny patch)
12821
12822         PR gdb/17046
12823         * darwin-nat.c: Replace <machine/setjmp.h> #include by
12824         <setjmp.h> #include.
12825
12826 2015-01-11  Doug Evans  <xdje42@gmail.com>
12827
12828         * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12829
12830 2015-01-11  Doug Evans  <xdje42@gmail.com>
12831
12832         PR gdb/15830
12833         * NEWS: The "maint demangle" command is renamed as "demangle".
12834         * demangle.c: #include cli/cli-utils.h, language.h.
12835         (demangle_command): New function.
12836         (_initialize_demangle): Add new command "demangle".
12837         * maint.c (maintenance_demangle): Stub out.
12838         (_initialize_maint_cmds): Update help text for "maint demangle",
12839         and mark as deprecated.
12840
12841 2015-01-11  Mark Kettenis  <kettenis@gnu.org>
12842
12843         * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12844         inferior_thread is a function.
12845
12846 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
12847
12848         * Makefile.in (.y.c): Don't munge yacc's #line
12849         directives.
12850
12851 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
12852
12853         * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12854         to prompt for input.
12855         * tui/tui-hooks.c (tui_query_hook): Remove.
12856         (tui_install_hooks): Don't set deprecated_query_hook.
12857         * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12858         height calculation.  Always update the command window's cur_line.
12859
12860 2015-01-09  Pedro Alves  <palves@redhat.com>
12861
12862         * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12863         function.
12864         * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12865         declaration.
12866         * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12867         (linux_resume_one_lwp): Store the thread's PC.  Adjust to clear
12868         stop_reason.
12869         (check_stopped_by_watchpoint): New function.
12870         (save_sigtrap): Reimplement.
12871         (linux_nat_stopped_by_watchpoint): Adjust.
12872         (linux_nat_lp_status_is_event): Delete.
12873         (stop_wait_callback): Only call save_sigtrap after storing the
12874         pending status.
12875         (status_callback): If the thread had been stopped for a breakpoint
12876         that has since been removed, discard the event and resume the LWP.
12877         (count_events_callback, select_event_lwp_callback): Use
12878         lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12879         (cancel_breakpoint): Rename to ...
12880         (check_stopped_by_breakpoint): ... this.  Record whether the LWP
12881         stopped for a software breakpoint or hardware breakpoint.
12882         (select_event_lwp): Only give preference to the stepping LWP in
12883         all-stop mode.  Adjust comments.
12884         (stop_and_resume_callback): Remove references to new_pending_p.
12885         (linux_nat_filter_event): Likewise.  Leave exit events of the
12886         leader thread pending here.  Handle signal short circuiting here.
12887         Only call save_sigtrap after storing the pending waitstatus.
12888         (linux_nat_wait_1): Remove 'retry' label.  Remove references to
12889         new_pending.  Don't handle leaving events the caller is not
12890         interested in pending here, nor handle signal short-circuiting
12891         here.  Also give equal priority to all LWPs that have had events
12892         in non-stop mode.  If reporting a software breakpoint event,
12893         unadjust the LWP's PC.
12894         * linux-nat.h (enum lwp_stop_reason): New.
12895         (struct lwp_info) <stop_pc>: New field.
12896         (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12897         (struct lwp_info) <stop_reason>: New field.
12898         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12899
12900 2015-01-09  Pedro Alves  <palves@redhat.com>
12901
12902         * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12903         Set the LWP's 'resumed' flag.
12904
12905 2015-01-09  Pedro Alves  <palves@redhat.com>
12906
12907         * linux-nat.c (linux_resume_one_lwp): New function.
12908         (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12909         (linux_nat_resume): Use lwp_status_pending_p and
12910         linux_resume_one_lwp.
12911         (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12912         (linux_handle_extended_wait): Use linux_resume_one_lwp.
12913         (status_callback, running_callback): Use lwp_status_pending_p.
12914         (lwp_status_pending_p): New function.
12915         (stop_and_resume_callback): Use lwp_status_pending_p.
12916         (linux_nat_filter_event): Use linux_resume_one_lwp.
12917         (linux_nat_wait_1): Always use status_callback to look for an LWP
12918         with a pending status.  Use linux_resume_one_lwp.
12919         (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12920         linux_resume_one_lwp.
12921
12922 2015-01-09  Pedro Alves  <palves@redhat.com>
12923
12924         * breakpoint.c (bp_location_inserted_here_p): New function,
12925         factored out from ...
12926         (breakpoint_inserted_here_p): ... here.  Use
12927         ALL_BP_LOCATIONS_AT_ADDR.
12928         (software_breakpoint_inserted_here_p): Use
12929         bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12930
12931 2014-01-09  Pedro Alves  <palves@redhat.com>
12932
12933         Skip enabling event reporting if the kernel supports
12934         PTRACE_EVENT_CLONE.
12935         * linux-thread-db.c: Include "nat/linux-ptrace.h".
12936         (thread_db_use_events): New function.
12937         (try_thread_db_load_1): Check thread_db_use_events before enabling
12938         event reporting.
12939         (update_thread_state): New function.
12940         (attach_thread): Use it.  Check thread_db_use_events before
12941         enabling event reporting.
12942         (thread_db_detach): Check thread_db_use_events before disabling
12943         event reporting.
12944         (find_new_threads_callback): Check thread_db_use_events before
12945         enabling event reporting.  Update the thread's state if not using
12946         libthread_db events.
12947
12948 2015-01-09  Pedro Alves  <palves@redhat.com>
12949
12950         * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12951         about to wait for is > 0.
12952         * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12953         the kernel thread ID is -1.
12954
12955 2015-01-09  Pedro Alves  <palves@redhat.com>
12956
12957         * linux-nat.c (attach_proc_task_lwp_callback): New function.
12958         (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12959         (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12960         ptrace option flags.
12961         * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12962         field.
12963         * nat/linux-procfs.c: Include <dirent.h>.
12964         (linux_proc_get_int): New parameter "warn".  Handle it.
12965         (linux_proc_get_tgid): Adjust.
12966         (linux_proc_get_tracerpid): Rename to ...
12967         (linux_proc_get_tracerpid_nowarn): ... this.
12968         (linux_proc_pid_get_state): New function, factored out from
12969         (linux_proc_pid_has_state): ... this.  Add new parameter "warn"
12970         and handle it.
12971         (linux_proc_pid_is_gone): New function.
12972         (linux_proc_pid_is_stopped): Adjust.
12973         (linux_proc_pid_is_zombie_maybe_warn)
12974         (linux_proc_pid_is_zombie_nowarn): New functions.
12975         (linux_proc_pid_is_zombie): Use
12976         linux_proc_pid_is_zombie_maybe_warn.
12977         (linux_proc_attach_tgid_threads): New function.
12978         * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12979         (linux_proc_get_tracerpid): Rename to ...
12980         (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12981         (linux_proc_pid_is_gone): New declaration.
12982         (linux_proc_pid_is_zombie): Update comment.
12983         (linux_proc_pid_is_zombie_nowarn): New declaration.
12984         (linux_proc_attach_lwp_func): New typedef.
12985         (linux_proc_attach_tgid_threads): New declaration.
12986         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12987         use nowarn functions.
12988         (linux_ptrace_attach_fail_reason_string): Move here from
12989         gdbserver/linux-low.c and rename.
12990         (ptrace_supports_feature): If the current ptrace options are not
12991         known yet, check them now, instead of asserting.
12992         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12993         Declare.
12994
12995 2015-01-09  Pedro Alves  <palves@redhat.com>
12996
12997         * linux-thread-db.c (thread_db_find_new_threads_silently)
12998         (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12999         (find_new_threads_once): Print debug output on gdb_stdlog.
13000
13001 2015-01-09  Chen Gang  <gang.chen.5i5j@gmail.com>
13002             Pedro Alves  <palves@redhat.com>
13003
13004         * compile/compile.c: Include "gdb_wait.h".
13005         (do_rmdir): Check return value, and free 'zap'.
13006
13007 2015-01-08  Pedro Alves  <palves@redhat.com>
13008             Yao Qi  <yao@codesourcery.com>
13009
13010         * dwarf2loc.c (indirect_pieced_value): Don't call
13011         gdb_sign_extend.  Call extract_signed_integer instead.
13012         * utils.c (gdb_sign_extend): Remove.
13013         * utils.h (gdb_sign_extend): Remove declaration.
13014
13015 2015-01-07  Pierre Muller  <muller@sourceware.org>
13016
13017         PR symtab/17811
13018         * stabsread.c (define_symbol): Set language for C++ special symbols.
13019
13020 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
13021
13022         * inflow.c (initial_gdb_ttystate): Tweak comment.
13023
13024 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
13025
13026         * inflow.c (set_initial_gdb_ttystate): Add empty line after
13027         comment documenting function.
13028
13029 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
13030
13031         * terminal.h (set_initial_gdb_ttystate): Declare.
13032         * inflow.c (initial_gdb_ttystate): New static variable.
13033         (set_initial_gdb_ttystate): New setter.
13034         (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
13035         instead of our current terminal state.
13036         * top.c (gdb_init): Call set_initial_gdb_ttystate.
13037
13038 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
13039
13040         * guile/scm-type.c (tyscm_array_1): Add comment.
13041         * python/py-type.c (typy_array_1): Add comment.
13042
13043 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
13044
13045         * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
13046         error if N2 is equal to N1 - 1.
13047
13048 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
13049
13050         * python/py-type.c (typy_array_1): Do not raise negative-length
13051         exception if N2 is equal to N1 - 1.
13052
13053 2015-01-03  Doug Evans  <xdje42@gmail.com>
13054
13055         * c-exp.y: Whitespace cleanup.
13056         (classify_inner_name): Remove extra ;.
13057
13058 2015-01-02  Maciej W. Rozycki  <macro@codesourcery.com>
13059
13060         * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
13061         offset signed.
13062
13063 2015-01-02  Doug Evans  <dje@google.com>
13064
13065         * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
13066
13067 2015-01-02  Doug Evans  <dje@google.com>
13068
13069         * symtab.h (struct symbol): Fix typo in comment.
13070
13071 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
13072
13073         Update year range in copyright notice of all files.
13074
13075 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
13076
13077         * top.c (print_gdb_version): Update copyright year to 2015.
13078
13079 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
13080
13081         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
13082
13083 For older changes see ChangeLog-2014.
13084 \f
13085 Local Variables:
13086 mode: change-log
13087 left-margin: 8
13088 fill-column: 74
13089 version-control: never
13090 coding: utf-8
13091 End: