gdb/linux-record: Fix msghdr parsing on 64-bit targets
[external/binutils.git] / gdb / ChangeLog
1 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
2
3         * linux-record.c (record_linux_msghdr): Fix msg_namelen handling.
4
5 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
6
7         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove
8         size_dirent{,64}, add size_old_dirent.
9         * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_dirent{,64},
10         add size_old_dirent.
11         (amd64_x32_linux_init_abi): Remove size_dirent{,64}, add
12         size_old_dirent.
13         * arm-linux-tdep.c (arm_linux_init_abi): Remove size_dirent{,64},
14         add size_old_dirent.
15         * i386-linux-tdep.c (i386_linux_init_abi): Remove size_dirent{,64},
16         add size_old_dirent.
17         * linux-record.c (record_linux_system_call): Fix handling of readdir
18         and getdents{,64}.
19         * linux-record.h (struct linux_record_tdep): Remove size_dirent{,64},
20         add size_old_dirent.
21         * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove
22         size_dirent{,64}, add size_old_dirent.
23
24 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
25
26         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Fix size_sigaction,
27         size_sigset_t, size_old_sigaction, size_old_sigset_t.
28         * amd64-linux-tdep.c (amd64_linux_init_abi): Fix size_sigaction,
29         size_sigset_t, size_old_sigaction, size_old_sigset_t.
30         (amd64_x32_linux_init_abi): Fix size_sigaction, size_sigset_t,
31         size_old_sigaction, size_old_sigset_t.
32         * arm-linux-tdep.c (arm_linux_init_abi): Fix size_sigaction,
33         size_old_sigaction, size_old_sigset_t.
34         * i386-linux-tdep.c (i386_linux_init_abi): Fix size_sigaction,
35         size_old_sigaction, size_old_sigset_t.
36         * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Fix size_sigaction,
37         size_sigset_t, size_old_sigaction, size_old_sigset_t.
38
39 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
40
41         * arm-linux-tdep.c (arm_linux_init_abi): Fix size_[ug]id.
42         * i386-linux-tdep.c (i386_linux_init_abi): Fix size_[ug]id.
43
44 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
45
46         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove size_siginfo.
47         * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_siginfo.
48         (amd64_x32_linux_init_abi): Remove size_siginfo.
49         * arm-linux-tdep.c (arm_linux_init_abi): Remove size_siginfo.
50         * i386-linux-tdep.c (i386_linux_init_abi): Remove size_siginfo.
51         * linux-record.c (record_linux_system_call): Change size_siginfo
52         to size_siginfo_t.
53         * linux-record.h (struct linux_record_tdep): Remove size_siginfo.
54         * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove size_siginfo.
55
56 2015-10-29  Pedro Alves  <palves@redhat.com>
57
58         * mdebugread.c (add_data_symbol): New function, factored out from
59         ...
60         (parse_symbol): ... here.  Delete 'theclass' local.
61
62 2015-10-29  Simon Marchi  <simon.marchi@polymtl.ca>
63
64         * jit.c (jit_target_read_impl): Add cast.
65
66 2015-10-29  Simon Marchi  <simon.marchi@polymtl.ca>
67
68         * jit.c (jit_reader_load): Add cast.
69
70 2015-10-29  Simon Marchi  <simon.marchi@polymtl.ca>
71
72         * dwarf2read.c (partial_die_full_name): Add cast.
73
74 2015-10-29  Pedro Alves  <palves@redhat.com>
75
76         * common/vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
77
78 2015-10-29  Pedro Alves  <palves@redhat.com>
79
80         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Add cast.
81
82 2015-10-29  Eli Zaretskii  <eliz@gnu.org>
83
84         * utils.c (init_page_info): Disable paging if INSIDE_EMACS is set
85         in the environment.
86
87 2015-10-29  Pedro Alves  <palves@redhat.com>
88
89         * gnu-v2-abi.c (gnuv2_is_destructor_name)
90         (gnuv2_is_constructor_name): Add casts.
91
92 2015-10-29  Pedro Alves  <palves@redhat.com>
93
94         * common/common-exceptions.c (exception_none): Add cast.
95
96 2015-10-29  Pedro Alves  <palves@redhat.com>
97
98         * compile/compile-c-types.c (struct type_map_instance)
99         <gcc_type>: Rename to gcc_type_handle.
100         (insert_type, convert_type): Adjust.
101
102 2015-10-29  Pedro Alves  <palves@redhat.com>
103
104         * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Don't
105         assume that "break" breaks out of a TRY/CATCH.
106         * python/py-framefilter.c (py_print_single_arg): Don't assume
107         "continue" breaks out of a TRY/CATCH.
108         * python/py-value.c (valpy_binop_throw): New function, factored
109         out from ...
110         (valpy_binop): ... this.
111         (valpy_richcompare_throw): New function, factored
112         out from ...
113         (valpy_richcompare): ... this.
114         * solib.c (solib_read_symbols): Don't assume "break" breaks out
115         of a TRY/CATCH.
116         * common/common-exceptions.h [USE_RAW_CXX_TRY]
117         <TRY/CATCH/END_CATCH>: Define as 1-1 wrappers around try/catch.
118
119 2015-10-28  Simon Dardis  <Simon.Dardis@imgtec.com>
120
121         * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Recognise 'or'
122         as move along with [d]addu.
123
124 2015-10-28  Yao Qi  <yao.qi@linaro.org>
125
126         * aarch64-tdep.c (aarch64_software_single_step): Pass 1 to
127         aarch64_decode_insn.
128
129 2015-10-27  Pedro Alves  <palves@redhat.com>
130
131         * common/print-utils.c (host_address_to_string): Rename to ...
132         (host_address_to_string_1): ... this.
133         * common/print-utils.h (host_address_to_string): Reimplement as
134         wrapper around host_address_to_string_1.
135         * utils.c (gdb_print_host_address): Rename to ...
136         (gdb_print_host_address_1): ... this.
137         * utils.h (gdb_print_host_address): Reimplement as wrapper macro
138         around  host_address_to_string_1.
139
140 2015-10-27  Pedro Alves  <palves@redhat.com>
141
142         * alpha-tdep.c (alpha_read_insn): Always pass TARGET_XFER_E_IO to
143         memory_error.  Rename local 'status' to 'res'.
144         * c-lang.c (c_get_string): Always pass TARGET_XFER_E_IO to
145         memory_error.
146         * corefile.c (read_stack, read_code, write_memory): Always pass
147         TARGET_XFER_E_IO to memory_error.
148         * disasm.c (dis_asm_memory_error): Always pass TARGET_XFER_E_IO to
149         memory_error.  Rename parameter 'status' to 'err'.
150         (dump_insns): Rename local 'status' to 'err'.
151         * mips-tdep.c (mips_fetch_instruction): Rename parameter 'statusp'
152         to 'errp'.  Rename local 'status' to 'err'.  Always pass
153         TARGET_XFER_E_IO to memory_error.
154         (mips_breakpoint_from_pc): Rename local 'status' to 'err'.
155         * target.c (target_read_memory, target_read_raw_memory)
156         (target_read_stack, target_read_code, target_write_memory)
157         (target_write_raw_memory): Return -1 on error instead of
158         TARGET_XFER_E_IO.
159         * valprint.c (val_print_string): Rename local 'errcode' to 'err'.
160         Always pass TARGET_XFER_E_IO to memory_error.  Update comment.
161
162 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
163
164         * guile/guile-internal.h (gdbscm_with_guile): Change return
165         types to const char *.
166         * guile/scm-safe-call.c (gdbscm_with_guile): Likewise.
167         (struct c_data) <func>: Likewise.
168         (struct c_data) <result>: Change type to const char *.
169         (scscm_eval_scheme_string): Change return type to
170         const char *.
171         (scscm_source_scheme_script): Likewise.
172         (gdbscm_safe_eval_string): Change type of result variable to
173         const char * and remove cast.
174         (gdbscm_safe_source_script): Likewise.
175         * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker):
176         Change return type to const char *.
177         (gdbscm_disasm_read_memory): Change type of status to
178         const char *.
179
180 2015-10-27  Pedro Alves  <palves@redhat.com>
181
182         * source.c (openp): New local 'last_errno'.  Use it to
183         save/restore errno.
184
185 2015-10-27  Pedro Alves  <palves@redhat.com>
186
187         * psymtab.c (dump_psymtab_addrmap_1): Add casts.
188
189 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
190
191         * ctf.c (SET_ENUM_FIELD): New macro.
192         (ctf_read_status): Use it.
193         (ctf_read_tp): Use it.
194
195 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
196
197         * guile/scm-breakpoint.c (gdbscm_set_breakpoint_stop_x): Add
198         scm_t_dynwind_flags casts.
199         * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
200         * guile/scm-ports.c (gdbscm_open_memory): Likewise.
201         * guile/scm-value.c (gdbscm_value_to_string): Likewise.
202
203 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
204
205         * ax.h (ax_raw_byte): New declaration.
206         * ax-general.c (ax_raw_byte): New function.
207         (ax_simple): Use ax_raw_byte.
208         * ax-gdb.c (gen_printf): Likewise.
209
210 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
211
212         * ada-lang.h (GROW_VECT): Add cast.
213
214 2015-10-26  Doug Evans  <xdje42@gmail.com>
215
216         * symtab.h (struct general_symbol_info> <ada_mangled>: Update comment.
217
218 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
219
220         * target.c (memory_xfer_partial): Change type of buf to gdb_byte
221         pointer.
222         (simple_search_memory): Cast return of memmem.
223
224 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
225
226         * stap-probe.c (handle_stap_probe): Add (const char *) casts.
227
228 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
229
230         * ctf.c (ctf_xfer_partial): Return TARGET_XFER_E_IO instead of
231         -1 on error.
232
233 2015-10-26  Doug Evans  <dje@google.com>
234
235         PR symtab/17391
236         * dwarf2-frame.c (dwarf2_restore_rule): Call dwarf_reg_to_regnum
237         instead of gdbarch_dwarf2_reg_to_regnum.
238         (dwarf2_frame_cache): Ditto.
239         (read_addr_from_reg): Call dwarf_reg_to_regnum_or_error instead of
240         gdbarch_dwarf2_reg_to_regnum.
241         (get_reg_value): Ditto.
242         (dwarf2_fetch_cfa_info): Ditto.
243         (dwarf2_frame_prev_register): Ditto.
244         * dwarf2loc.c: #include "complaints.h".
245         (dwarf_expr_read_addr_from_reg): Call dwarf_reg_to_regnum_or_error
246         instead of gdbarch_dwarf2_reg_to_regnum.
247         (dwarf_expr_get_reg_value): Ditto.
248         (read_pieced_value): Ditto.
249         (write_pieced_value): Ditto.
250         (dwarf2_evaluate_loc_desc_full): Ditto.
251         (dwarf_reg_to_regnum): New function.
252         (throw_bad_regnum_error): New function.
253         (dwarf_reg_to_regnum_or_error): Renamed from
254         dwarf2_reg_to_regnum_or_errorChange to take a ULONGEST regnum.
255         All callers updated.  Call throw_bad_regnum_error.
256         (locexpr_regname): Improve text of bad register number.
257         * dwarf2loc.h (dwarf_reg_to_regnum): Declare.
258         (dwarf_reg_to_regnum_or_error): Update prototype.
259         * dwarf2expr.c: #include "dwarf2loc.h".
260         (dwarf_block_to_sp_offset): Call dwarf_reg_to_regnum instead of
261         gdbarch_dwarf2_reg_to_regnum.
262         * gdbarch.sh (dwarf2_reg_to_regnum): Add comment.
263         * gdbarch.h: Regenerate.
264         * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Remove warning for bad
265         register.
266         * avr-tdep.c (avr_dwarf_reg_to_regnum): Ditto.
267         * cris-tdep.c (cris_dwarf2_reg_to_regnum): Ditto.
268         * bfin-tdep.c (bfin_reg_to_regnum): Fix error checking.
269         * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Improve error checking.
270         Remove warning for bad register.
271         * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Ditto.
272         * i386-tdep.c (i386_svr4_dwarf_reg_to_regnum): Renamed from
273         i386_svr4_reg_to_regnum.  Return -1 for bad registers.
274         (i386_svr4_reg_to_regnum): New function.
275         (i386_gdbarch_init): Update call to set_gdbarch_dwarf2_reg_to_regnum.
276         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Don't assert
277         on bad registers, return -1.
278         * msp430-tdep.c (msp430_dwarf2_reg_to_regnum): Improve error checking.
279         Remove warning for bad register.
280         * nios2-tdep.c: Add static assert for NIOS2_NUM_REGS.
281         (nios2_dwarf_reg_to_regnum): Fix off-by-one error.
282         Remove warning for bad register.  Return -1 for bad register.
283         * rl78-tdep.c (rl78_dwarf_reg_to_regnum): Don't flag an internal error
284         for bad register, return -1.
285         * rx-tdep.c (rx_dwarf_reg_to_regnum): Ditto.
286         * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Fix error result.
287         * mep-tdep.c (mep_debug_reg_to_regnum): Ditto.
288         * mips-tdep.c (mips_stab_reg_to_regnum): Ditto.
289         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
290         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Remove warning
291         for bad regs.
292         * xtensa-tdep.c (xtensa_reg_to_regnum): Remove internal error for
293         bad regs.  Fix error result.
294         * stabsread.c (stab_reg_to_regnum): Watch for negative regno.
295         (reg_value_complaint): Update complaint text.
296         * mdebugread.c (reg_value_complaint): New function.
297         (mdebug_reg_to_regnum): Rewrite to watch for bad reg numbers.
298
299 2015-10-26  Doug Evans  <dje@google.com>
300
301         PR python/18938
302         * cli/cli-cmds (source_script_fron_sctream): New arg file_to_open.
303         All callers updated.
304
305 2015-10-26  Doug Evans  <dje@google.com>
306
307         * psymtab.c (struct dump_psymtab_addrmap_data): Define.
308         (dump_psymtab_addrmap_1, dump_psymtab_addrmap): New functions.
309         (maintenance_print_psymbols): Print address map.
310
311 2015-10-26  Doug Evans  <dje@google.com>
312
313         * nat/linux-nat.h (__SIGRTMIN): Move here from gdbserver/linux-low.c.
314
315 2015-10-26  Doug Evans  <dje@google.com>
316
317         * common/gdb_wait.h (W_STOPCODE): Define, moved here from
318         gdbserver/linux-low.c.
319         (WSETSTOP): Simplify.
320
321 2015-10-26  Doug Evans  <dje@google.com>
322
323         * linux-thread-db.c (find_new_threads_callback): Ditto.
324         (thread_db_pid_to_str): Ditto.
325
326 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
327
328         * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Do not pass a
329         local char array to scm_mode_bits, use a cast instead.
330
331 2015-10-26  Simon Marchi  <simon.marchi@ericsson.com>
332
333         * tui/tui-data.c (tui_alloc_content): Don't check xmalloc
334         result.  Change type of element_block_ptr.  Change allocation to
335         use XNEWVEC.
336
337 2015-10-26  Luis Machado  <lgustavo@codesourcery.com>
338
339         * record-full.c (record_full_message_wrapper_safe): Pass empty string to
340         catch_errors call instead of NULL.
341
342 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
343
344         * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Pass non-const
345         char pointer to scm_mode_bits.
346
347 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
348
349         * symtab.c (default_make_symbol_completion_list_break_on_1): Add
350         cast.
351
352 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
353
354         * guile/scm-ports.c (gdbscm_memory_port_write): Declare new
355         "data" local variable and use it.
356
357 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
358
359         * guile/scm-symbol.c (gdbscm_lookup_global_symbol): Add
360         domain_enum cast.
361         (gdbscm_lookup_symbol): Likewise.
362
363 2015-10-25  Iain Buclaw  <ibuclaw@gdcproject.org>
364
365         * d-exp.y: Remove an obsolete comment and propagate the block
366         information to the produced expression.
367
368 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
369
370         * tui/tui-data.c (tui_add_to_source_windows): Remove void *
371         cast.
372         (tui_add_content_elements): Likewise.
373
374 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
375
376         * cli/cli-setshow.c (do_set_command): Constify p.
377
378 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
379
380         * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Replace
381         (void *) cast with (gdb_byte *).
382
383 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
384
385         * proc-service.c (ps_pdread): Add cast.
386
387 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
388
389         * sparc64-tdep.c (sparc64_store_arguments): Split assignment of
390         valbuf.
391
392 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
393
394         * ia64-tdep.c (ia64_pseudo_register_write): Remove cast.
395         (ia64_push_dummy_call): Remove cast and change type of "to" to
396         array of gdb_byte.
397
398 2015-10-23  Simon Marchi  <simon.marchi@polymtl.ca>
399
400         * linux-btrace.c (linux_enable_pt): Add cast to mmap return.
401
402 2015-10-23  Simon Marchi  <simon.marchi@ericsson.com>
403
404         * observer.h (observer_${event}_notification_stub): Add cast.
405
406 2015-10-23  Yao Qi  <yao.qi@linaro.org>
407
408         * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set
409         dsd.insn_count to zero.
410
411 2015-10-22  Pedro Alves  <palves@redhat.com>
412
413         * infrun.c (stop_after_trap): Delete.
414         (clear_proceed_status, handle_signal_stop, struct
415         infcall_control_state, save_infcall_control_state)
416         (restore_infcall_control_state): Remove references to
417         stop_after_trap.
418
419 2015-10-22  Simon Marchi  <simon.marchi@ericsson.com>
420
421         * python/python.c (_initialize_python): Add cast.
422
423 2015-10-22  Simon Marchi  <simon.marchi@ericsson.com>
424
425         * nto-tdep.c (nto_inferior_data): Add cast.
426
427 2015-10-22  Pedro Alves  <palves@redhat.com>
428
429         * windows-nat.c (do_initial_windows_stuff): Rewrite loop using
430         windows_wait and windows_resume directly instead of
431         wait_for_inferior and resume.
432
433 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
434
435         * xtensa-tdep.h (XTREG): Add casts.
436         (XTREG_END): Likewise.
437
438 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
439
440         * solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
441
442 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
443
444         * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
445
446 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
447
448         * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
449         buf to gdb_byte*.
450         (supply_32bit_reg): Add cast.
451         (mips64_fill_gregset): Likewise.
452
453 2015-10-21  Simon Marchi  <simon.marchi@polymtl.ca>
454
455         PR python/18073
456         * python/py-type.c (typy_get_composite): Allow returning a
457         function type.
458
459 2015-10-21  Keven Boell  <keven.boell@intel.com>
460
461         * dwarf2read.c (set_die_type): Add read of
462         DW_AT_allocated and DW_AT_associated.
463         * f-typeprint.c: New include of typeprint.h
464         (f_print_type): Add check for allocated/associated
465         status of type.
466         (f_type_print_varspec_suffix): Add check for
467         * gdbtypes.c (create_array_type_with_stride):
468         Add check for valid data location of type in
469         case allocated or associated attributes are set.
470         Length of an array should be only calculated if
471         allocated or associated is resolved as true.
472         (is_dynamic_type_internal): Add check for allocated/
473         associated.
474         (resolve_dynamic_array): Evaluate allocated/associated
475         properties.
476         * gdbtypes.h (enum dynamic_prop_node_kind): <DYN_PROP_ALLOCATED>
477         <DYN_PROP_ASSOCIATED>: New enums.
478         (TYPE_ALLOCATED_PROP, TYPE_ASSOCIATED_PROP): New macros.
479         (type_not_allocated): New function.
480         (type_not_associated): New function.
481         * valarith.c (value_subscripted_rvalue): Add check for
482         allocated/associated.
483         * valprint.c: New include of typeprint.h.
484         (valprint_check_validity): Add check for allocated/associated.
485         (value_check_printable): Add check for allocated/
486         associated.
487         * typeprint.h (val_print_not_allocated): New function.
488         (val_print_not_associated): New function.
489         * typeprint.c (val_print_not_allocated): New function.
490         (val_print_not_associated): New function.
491
492 2015-10-21  Antoine Tremblay  <antoine.tremblay@ericsson.com>
493
494         * Makefile.in: Add arm.c/o.
495         * arch/arm.c: New file.
496         * arch/arm.h: (IS_THUMB_ADDR): Move macro from arm-tdep.c.
497         (MAKE_THUMB_ADDR): Likewise.
498         (UNMAKE_THUMB_ADDR): Likewise.
499         * arm-tdep.c (int thumb_insn_size): Move to arm.c.
500         (IS_THUMB_ADDR): Move to arm.h.
501         (MAKE_THUMB_ADDR): Likewise.
502         (UNMAKE_THUMB_ADDR): Likewise.
503         * configure.tgt: Add arm.o to all ARM configs.
504
505 2015-10-21  Yao Qi  <yao.qi@linaro.org>
506
507         * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
508         Remove argument exp_vCont_s.
509         * gdb.base/range-stepping.exp: Callers updated.
510         * gdb.trace/range-stepping.exp: Likewise.
511
512 2015-10-21  Aleksandar Ristovski  <aristovski@qnx.com>
513
514         * gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
515         (nto_sniff_abi_note_section): New function.
516         (nto_elf_osabi_sniffer): Use new function to recognize nto specific
517         binary.
518
519 2015-10-21  Aleksandar Ristovski  <aristovski@qnx.com>
520
521         * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
522         (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
523         * nto-tdep.c (nto_new_inferior_data_reg): New definition.
524         (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
525         New functions.
526         (_initialize_nto_tdep): New forward declaration, new function.
527         * nto-tdep.h (struct nto_inferior_data): New struct.
528         (nto_inferior_data): New function declaration.
529
530 2015-10-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
531
532         * findvar.c (address_from_register): Check REGNUM validity.
533
534 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
535
536         * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
537         (init_procfs_targets): Wire new function.
538
539 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
540
541         * nto-procfs.c (sys/auxv.h): Include.
542         (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
543         * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
544         * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
545
546 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
547
548         * nto-procfs.c (nto_procfs_path): Rename to...
549         (nodestr): ... this, and change type.
550         (nto_node): Use new variable and logic accordingly.
551         (procfs_open_1): Use new variable name. Use local buffer to construct
552         procfrs path.
553         (procfs_pidlist): Use NODESTR to construct procfs path.
554         (procfs_files_info): Use NODESTR to output meaningful text.
555         (do_attach): Construct procfs using NODESTR.
556         (procfs_create_inferior): Compare pointer to NULL.
557
558 2015-10-19  Josh Stone  <jistone@redhat.com>
559
560         * linux-nat.c (linux_handle_syscall_trap): Always update entry/
561         return state, even when not actively catching syscalls at all.
562         (linux_handle_extended_wait): Mark syscall_state like an entry.
563         (wait_lwp): Set syscall_state ignored for other traps.
564         (linux_nat_filter_event): Likewise.
565
566 2015-10-19  Luis Machado  <lgustavo@codesourcery.com>
567
568         * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
569         when handling 'E', 'T', 'S', 'X' and 'W' packets.
570         Do not set rs->waiting_for_stop_reply back to 1.
571
572 2015-10-16  Aleksandar Ristovski  <aristovski@qnx.com>
573
574         * nto-procfs.c (common/filestuff.h): Include.
575         (procfs_can_use_hw_breakpoint): Fix enum name.
576         (procfs_open_1): Fix compiler warning.
577         (procfs_pidlist): Make static.
578         (procfs_meminfo): Make static, fix type name, add missing argument.
579         (procfs_store_registers): Make static.
580         (procfs_thread_info): Remove unused function.
581         (_initialize_procfs): Forward declare.
582
583 2015-10-16  Yao Qi  <yao.qi@arm.com>
584
585         * MAINTAINERS: Update my email address.
586
587 2015-10-15  Yao Qi  <yao.qi@linaro.org>
588
589         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
590         Call gdbarch_breakpoint_from_pc to instruction length.
591         (aarch64_linux_remove_hw_breakpoint): Likewise.
592         * common/common-regcache.h (regcache_register_size): Declare.
593         * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
594         (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
595         the process is 32bit, otherwise set alignment to 4.
596         (aarch64_handle_breakpoint): Update comments.
597         * regcache.c (regcache_register_size): New function.
598
599 2015-10-15  Aleksandar Ristovski  <aristovski@qnx.com>
600
601         * gdbarch.sh (core_regset_section): Remove.
602         * gdbarch.h: Regenerate.
603
604 2015-10-14  Yao Qi  <yao.qi@linaro.org>
605
606         * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
607         out of it.
608         (enum aarch64_memory_operand_type): New.
609
610 2015-10-13  David Edelsohn  <dje.gcc@gmail.com>
611
612         * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
613
614 2015-10-13  Pedro Alves  <palves@redhat.com>
615
616         * ada-lang.c (ada_enum_name): Constify local.
617         * ada-typeprint.c (print_range_bound): Constify locals.
618         * c-varobj.c (c_describe_child): Likewise.
619         * cli/cli-setshow.c (do_set_command): Likewise.
620         * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
621         * dwarf2read.c (find_file_and_directory): Likewise.
622         (anonymous_struct_prefix, dwarf2_name): Likewise.
623         * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
624         * go-lang.c (unpack_mangled_go_symbol): Likewise.
625         * jv-typeprint.c (java_type_print_base): Likewise.
626         * ser-tcp.c (net_open): Likewise.
627         * symfile.c (deduce_language_from_filename): Likewise.
628         * symtab.c (gdb_mangle_name): Likewise.
629         * tui/tui-io.c (tui_redisplay_readline): Likewise.
630
631 2015-10-13  Pedro Alves  <palves@redhat.com>
632
633         * infrun.c (restore_execution_direction): New function.
634         (fetch_inferior_event): Use it instead of
635         make_cleanup_restore_integer.
636         (execution_direction): Change type to enum
637         exec_direction_kind.
638         * infrun.h (execution_direction): Likewise.
639
640 2015-10-13  Pedro Alves  <palves@redhat.com>
641
642         * ada-lang.c (ada_value_primitive_packed_val): Constify
643         locals.  Use value_contents_writeable.  Remove casts.
644
645 2015-10-13  Pedro Alves  <palves@redhat.com>
646
647         * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
648         and alloca calls.
649
650 2015-10-13  Simon Marchi  <simon.marchi@polymtl.ca>
651
652         * lm32-tdep.c (lm32_push_dummy_call): Replace call to
653         write_memory with write_memory_unsigned_integer.
654
655 2015-10-13  Simon Marchi  <simon.marchi@polymtl.ca>
656
657         * solib-dsbt.c (cmp_name): Constify arguments.
658         * solib-frv.c (cmp_name): Likewise.
659         * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
660         * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
661         (bfd_lookup_symbol_from_dyn_symtab): Likewise.
662         (gdb_bfd_lookup_symbol): Likewise.
663         * solib.h (gdb_bfd_lookup_symbol): Likewise.
664         (gdb_bfd_lookup_symbol_from_symtab): Likewise.
665
666 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
667
668         * stack.c (parse_frame_specification): Remove message parameter,
669         replace with fixed string in function body, update function
670         comment.
671         (frame_info): Remove message to parse_frame_specification.
672         (select_frame_command): Likewise.
673
674 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
675
676         * stack.c (parse_frame_specification): Delete.
677         (parse_frame_specification_1): Rename to
678         parse_frame_specification.
679         (frame_info): Use parse_frame_specification.
680         (select_frame_command): Likewise.
681         (return_command): Use select_frame and print_stack_frame rather
682         than frame_command and select_frame_command.
683         (func_command): Use get_current_frame rather than
684         parse_frame_specification.
685
686 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
687
688         * stack.c (func_command): Return early when there is no ARG
689         string.
690
691 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
692
693         * stack.c: Include safe-ctype.h not ctype.h.
694         (parse_frame_specification): Use ISSPACE not isspace.
695         (backtrace_command): Use TOLOWER not tolower.
696
697 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
698
699         * mep-tdep.c (current_me_module): Add cast.
700         (mep_gdbarch_init): Likewise.
701
702 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
703
704         * m32c-tdep.c (m32c_move_reg_t): Replace with...
705         (m32c_write_reg_t): ...this and...
706         (m32c_read_reg_t): ...this.
707         (struct m32c_reg): Update types of read and write.
708         (m32c_raw_read): Change declaration type to m32c_read_reg_t and
709         adjust definition.
710         (m32c_banked_read): Likewise.
711         (m32c_sb_read): Likewise.
712         (m32c_part_read): Likewise.
713         (m32c_cat_read): Likewise.
714         (m32c_r3r2r1r0_read): Likewise.
715         (m32c_raw_write): Change declaration type to m32c_write_reg_t
716         and adjust definition.
717         (m32c_banked_write): Likewise.
718         (m32c_sb_write): Likewise.
719         (m32c_part_write): Likewise.
720         (m32c_cat_write): Likewise.
721         (m32c_r3r2r1r0_write): Likewise.
722
723 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
724
725         * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
726
727 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
728
729         * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
730         gdb_sys_no_syscall instead of -1.
731
732 2015-10-12  Yao Qi  <yao.qi@linaro.org>
733
734         * NEWS: Mention the change.
735
736 2015-10-12  Yao Qi  <yao.qi@linaro.org>
737
738         * arch/aarch64-insn.c (emit_load_store): Rename to ...
739         (aarch64_emit_load_store): ... it.  All callers updated.
740
741 2015-10-12  Yao Qi  <yao.qi@linaro.org>
742
743         * arch/aarch64-insn.c (emit_insn): Rename to ...
744         (aarch64_emit_insn): ... it.  All callers updated.
745
746 2015-10-12  Yao Qi  <yao.qi@linaro.org>
747
748         * aarch64-linux-tdep.c: Include arch-utils.h.
749         (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
750         set_gdbarch_displaced_step_copy_insn,
751         set_gdbarch_displaced_step_fixup,
752         set_gdbarch_displaced_step_free_closure,
753         set_gdbarch_displaced_step_location,
754         and set_gdbarch_displaced_step_hw_singlestep.
755         * aarch64-tdep.c (struct displaced_step_closure): New.
756         (struct aarch64_displaced_step_data): New.
757         (aarch64_displaced_step_b): New function.
758         (aarch64_displaced_step_b_cond): Likewise.
759         (aarch64_register): Likewise.
760         (aarch64_displaced_step_cb): Likewise.
761         (aarch64_displaced_step_tb): Likewise.
762         (aarch64_displaced_step_adr): Likewise.
763         (aarch64_displaced_step_ldr_literal): Likewise.
764         (aarch64_displaced_step_others): Likewise.
765         (aarch64_displaced_step_copy_insn): Likewise.
766         (aarch64_displaced_step_fixup): Likewise.
767         (aarch64_displaced_step_hw_singlestep): Likewise.
768         * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
769         (aarch64_displaced_step_copy_insn): Declare.
770         (aarch64_displaced_step_fixup): Declare.
771         (aarch64_displaced_step_hw_singlestep): Declare.
772         * arch/aarch64-insn.c (emit_insn): Moved from
773         gdbserver/linux-aarch64-low.c.
774         (emit_load_store): Likewise.
775         * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
776         gdbserver/linux-aarch64-low.c.
777         (struct aarch64_register): Likewise.
778         (struct aarch64_memory_operand): Likewise.
779         (ENCODE): Likewise.
780         (can_encode_int32): New macro.
781         (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
782         (emit_tb, emit_nop): Likewise.
783         (emit_insn): Declare.
784         (emit_load_store): Declare.
785
786 2015-10-12  Yao Qi  <yao.qi@linaro.org>
787
788         * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
789         gdbserver/linux-aarch64-low.c.
790         (aarch64_relocate_instruction): Likewise.
791         * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
792         (struct aarch64_insn_data): Moved from
793         gdbserver/linux-aarch64-low.c.
794         (struct aarch64_insn_visitor): Likewise.
795         (aarch64_relocate_instruction): Declare.
796
797 2015-10-12  Pierre-Marie de Rodat  <derodat@adacore.com>
798
799         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
800         EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
801         to the returned value.
802
803 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
804
805         * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
806         is large enough for BIT_SIZE.  Update function comment.
807
808 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
809
810         * ada-lang.c (ada_value_primitive_packed_val): Move
811         src_len variable to local block where used.  Override
812         BIT_SIZE if bigger than size of resolved type.
813
814 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
815
816         * gdbtypes.h (is_scalar_type): Add extern declaration.
817         * gdbtypes.c (is_scalar_type): Make non-static.
818         * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
819         to compute IS_SCALAR instead of doing it ourselves.
820
821 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
822
823         * ada-lang.c (ada_value_primitive_packed_val): Rework handling
824         of case where TYPE is dynamic.
825
826 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
827
828         * ada-lang.c (ada_unpack_from_contents): New function,
829         extracted from ada_value_primitive_packed_val.
830         (ada_value_primitive_packed_val): Replace extracted out code
831         by call to ada_unpack_from_contents.
832
833 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
834
835         * ada-lang.c (ada_value_primitive_packed_val): Reorder local
836         variable declarations.
837
838 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
839
840         * ada-lang.c (ada_value_primitive_packed_val): Change the type
841         of local variables src and unpacked to "gdb_type *" instead of
842         "unsigned char *".
843
844 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
845
846         * ada-lang.c (ada_value_primitive_packed_val): Make the name
847         of various local variables more explicit and consistent.
848         No real code change otherwise.
849
850 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
851
852         * i386-tdep.h (struct gdbarch_tdep): Change type of
853         register_reggroup_p to gdbarch_register_reggroup_p_ftype.
854
855 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
856
857         * cris-tdep.c (struct instruction_environment): Change type of
858         byte_order to enum bfd_endian.
859
860 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
861
862         * arm-linux-tdep.c (arm_canonicalize_syscall): Add
863         enum gdb_syscall casts.
864
865 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
866
867         * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
868         * arm-tdep.c (struct stack_item): Likewise.
869         (push_stack_item): Add gdb_byte* cast.
870         * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
871         (push_stack_item): Add gdb_byte* cast.
872         * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
873         and add cast.
874         * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
875         (push_stack_item): Add gdb_byte* cast.
876         * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
877         add cast.
878         * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
879         gdb_byte*.
880         * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
881         gdb_byte* and remove unnecessary cast.
882         (h8300h_extract_return_value): Likewise.
883         (h8300_store_return_value): Change type of valbuf to gdb_byte*.
884         (h8300h_store_return_value): Likewise.
885         * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
886         gdb_byte* and remove unnecessary cast.
887         * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
888         and add cast.
889         * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
890         gdb_byte* and remove unnecessary cast.
891         (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
892         valbuf.
893         * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
894         (mep_pseudo_cr64_read): Likewise.
895         (mep_pseudo_csr_write): Likewise.
896         (mep_pseudo_cr32_write): Likewise.
897         (mep_pseudo_cr64_write): Likewise.
898         * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
899         gdb_byte* and add cast.
900         * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
901         gdb_byte* and remove unnecessary cast.
902         (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
903         valbuf.
904         * p-valprint.c (print_scalar_formatted): Change type of valaddr to
905         gdb_byte*.
906         * printcmd.c (void): Likewise.
907         * python/py-inferior.c (infpy_read_memory): Change type of buffer to
908         gdb_byte* and add cast.
909         (infpy_write_memory): Likewise.
910         (infpy_search_memory): Likewise.
911         * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
912         and add cast.
913         (regcache_raw_write_unsigned): Likewise.
914         (regcache_cooked_write_signed): Likewise.
915         (regcache_cooked_write_unsigned): Likewise.
916         * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
917         gdb_byte*.
918
919 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
920
921         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
922         * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
923
924 2015-10-09  Eli Zaretskii  <eliz@gnu.org>
925
926         * stack.c (print_stack_frame):
927         * utils.c (printchar): Fix typos in commentary.
928
929 2015-10-08  Iain Buclaw  <ibuclaw@gdcproject.org>
930
931         * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
932         (PostfixExpression): Support `expr.sizeof' expressions.
933         (PrimaryExpression): Support `typeof(expr)' expressions.
934
935 2015-10-08  Maciej W. Rozycki  <macro@imgtec.com>
936
937         * MAINTAINERS: Update my email address.
938
939 2015-10-08  Markus Metzger  <markus.t.metzger@intel.com>
940
941         * record-btrace.c (record_btrace_resume): Fix void return.
942
943 2015-10-07  Yao Qi  <yao.qi@linaro.org>
944
945         * aarch64-tdep.c: Include opcode/aarch64.h.
946         (submask): Move it above.
947         (bit): Likewise.
948         (bits): Likewise.
949         (aarch64_software_single_step): Call aarch64_decode_insn.
950         Decode instruction by aarch64_inst instead of using
951         aarch64_decode_bcond and decode_masked_match.
952
953 2015-10-06  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
954
955         * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
956         only when the file is binary.
957
958 2015-10-02  James Bowman  <james.bowman@ftdichip.com>
959
960         * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
961         subroutine handling.
962
963 2015-10-01  Simon Marchi  <simon.marchi@ericsson.com>
964
965         * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
966
967 2015-09-30  Doug Evans  <dje@google.com>
968
969         * dwarf2read.c (setup_type_unit_groups): Add comment.
970
971 2015-09-30  Pedro Alves  <palves@redhat.com>
972
973         * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
974         * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
975         (x86_linux_create_target): Don't install
976         x86_linux_always_non_stop_p.
977
978 2015-09-30  Don Breazeal  <donb@codesourcery.com>
979
980         * remote.c (remote_parse_stop_reply): Call strprefix instead
981         of strncmp.
982
983 2015-09-30  Simon Marchi  <simon.marchi@ericsson.com>
984
985         * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
986         * gdbarch.h: Regenerate.
987         * i386-tdep.c (i386_gdbarch_init): Remove cast to
988         struct gdbarch_tdep_info *.
989         * mips-tdep.c (mips_gdbarch_init): Likewise.
990         * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
991         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
992         * spu-multiarch.c (spu_gdbarch): Likewise.
993
994 2015-09-30  Kevin Buettner  <kevinb@redhat.com>
995
996         * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
997         record a NULL value.
998
999 2015-09-29  Kevin Buettner  <kevinb@redhat.com>
1000
1001         * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
1002         and union arguments the same as pointer arguments when determining
1003         size of argument.
1004
1005 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
1006
1007         * ft32-tdep.c: #include "opcode/ft32.h".
1008         Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
1009         (ft32_analyze_prologue): Use FT32_* macros.
1010
1011 2015-09-28  Simon Marchi  <simon.marchi@ericsson.com>
1012
1013         * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
1014         comment.
1015
1016 2015-09-28  Doug Evans  <dje@google.com>
1017
1018         * MAINTAINERS: Add Iain Buclaw as D language maintainer.
1019
1020 2015-09-28  Doug Evans  <dje@google.com>
1021
1022         * common/filestuff.c (make_cleanup_close): Update comment.
1023
1024 2015-09-26  Simon Marchi  <simon.marchi@polymtl.ca>
1025
1026         * btrace.c (parse_xml_btrace_block): Fix cast of
1027         xml_find_attribute's return value.
1028         * memory-map.c (memory_map_start_memory): Likewise.
1029         * solib-svr4.c (library_list_start_library): Likewise.
1030         * solib-target.c (library_list_start_segment): Likewise.
1031         (library_list_start_section): Likewise.
1032         * tracepoint.c (traceframe_info_start_memory): Likewise.
1033
1034 2015-09-26  Iain Buclaw  <ibuclaw@gdcproject.org>
1035
1036         * d-namespace.c (d_lookup_symbol): New arg langdef.
1037         All callers updated.  Support looking up symbol as a primitive type.
1038         (lookup_module_scope): New arg langdef.  All callers updated.
1039         Call d_lookup_symbol directly for simple bare symbols.
1040
1041 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
1042
1043         * macrocmd.c (print_macro_callback): Add cast(s).
1044         * macrotab.c (macro_bcache_str): Likewise.
1045         (new_macro_definition): Likewise.
1046         * main.c (captured_main): Likewise.
1047         * maint.c (print_bfd_section_info): Likewise.
1048         * mdebugread.c (mdebug_build_psymtabs): Likewise.
1049         (basic_type): Likewise.
1050         * memattr.c (mem_region_cmp): Likewise.
1051         * memory-map.c (memory_map_start_memory): Likewise.
1052         (memory_map_end_memory): Likewise.
1053         (memory_map_start_property): Likewise.
1054         (memory_map_end_property): Likewise.
1055         (clear_result): Likewise.
1056         * memrange.c (compare_mem_ranges): Likewise.
1057         * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
1058         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
1059         * mi/mi-console.c (mi_console_file_delete): Likewise.
1060         (mi_console_file_fputs): Likewise.
1061         (mi_console_raw_packet): Likewise.
1062         (mi_console_file_flush): Likewise.
1063         (mi_console_set_raw): Likewise.
1064         * mi/mi-interp.c (mi_interpreter_resume): Likewise.
1065         (mi_new_thread): Likewise.
1066         (mi_thread_exit): Likewise.
1067         (mi_record_changed): Likewise.
1068         (mi_inferior_added): Likewise.
1069         (mi_inferior_appeared): Likewise.
1070         (mi_inferior_exit): Likewise.
1071         (mi_inferior_removed): Likewise.
1072         (mi_interp_data): Likewise.
1073         (mi_on_normal_stop): Likewise.
1074         (mi_traceframe_changed): Likewise.
1075         (mi_tsv_created): Likewise.
1076         (mi_tsv_deleted): Likewise.
1077         (mi_tsv_modified): Likewise.
1078         (mi_breakpoint_created): Likewise.
1079         (mi_breakpoint_deleted): Likewise.
1080         (mi_breakpoint_modified): Likewise.
1081         (mi_output_running_pid): Likewise.
1082         (mi_inferior_count): Likewise.
1083         (mi_solib_loaded): Likewise.
1084         (mi_solib_unloaded): Likewise.
1085         (mi_command_param_changed): Likewise.
1086         (mi_memory_changed): Likewise.
1087         (report_initial_inferior): Likewise.
1088         (mi_ui_out): Likewise.
1089         (mi_set_logging): Likewise.
1090         * mi/mi-main.c (collect_cores): Likewise.
1091         (print_one_inferior): Likewise.
1092         (free_vector_of_ints): Likewise.
1093         (free_splay_tree): Likewise.
1094         (mi_execute_command): Likewise.
1095         * mi/mi-out.c (mi_table_body): Likewise.
1096         (mi_table_end): Likewise.
1097         (mi_table_header): Likewise.
1098         (mi_begin): Likewise.
1099         (mi_end): Likewise.
1100         (mi_field_int): Likewise.
1101         (mi_field_string): Likewise.
1102         (mi_field_fmt): Likewise.
1103         (mi_flush): Likewise.
1104         (mi_redirect): Likewise.
1105         (field_separator): Likewise.
1106         (mi_open): Likewise.
1107         (mi_close): Likewise.
1108         (mi_out_buffered): Likewise.
1109         (mi_out_rewind): Likewise.
1110         (mi_out_put): Likewise.
1111         (mi_version): Likewise.
1112         (mi_out_data_dtor): Likewise.
1113         * mi/mi-parse.c (mi_parse_cleanup): Likewise.
1114         * microblaze-tdep.c (microblaze_frame_cache): Likewise.
1115         * minidebug.c (lzma_open): Likewise.
1116         (lzma_pread): Likewise.
1117         (lzma_close): Likewise.
1118         (lzma_stat): Likewise.
1119         * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1120         * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
1121         (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
1122         * mips-tdep.c (mips_insn16_frame_cache): Likewise.
1123         (mips_micro_frame_cache): Likewise.
1124         (mips_insn32_frame_cache): Likewise.
1125         (mips_stub_frame_cache): Likewise.
1126         (gdb_print_insn_mips): Likewise.
1127         (value_of_mips_user_reg): Likewise.
1128         (mips_gdbarch_init): Likewise.
1129         * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
1130         * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
1131         (mipsnbsd_supply_gregset): Likewise.
1132         * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
1133         (am33_collect_gregset_method): Likewise.
1134         (am33_collect_fpregset_method): Likewise.
1135         * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
1136         * moxie-tdep.c (moxie_frame_cache): Likewise.
1137         * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
1138         (msp430_analyze_frame_prologue): Likewise.
1139         * mt-tdep.c (mt_frame_unwind_cache): Likewise.
1140         * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
1141         (nios2_collect_gregset): Likewise.
1142         * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
1143         (nios2_stub_frame_cache): Likewise.
1144         * objc-lang.c (find_methods): Likewise.
1145         * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1146         (get_objfile_pspace_data): Likewise.
1147         (get_objfile_bfd_data): Likewise.
1148         (objfile_bfd_data_free): Likewise.
1149         (add_to_objfile_sections): Likewise.
1150         (do_free_objfile_cleanup): Likewise.
1151         (resume_section_map_updates_cleanup): Likewise.
1152         * opencl-lang.c (builtin_opencl_type): Likewise.
1153         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1154         * osdata.c (osdata_start_osdata): Likewise.
1155         (osdata_start_item): Likewise.
1156         (osdata_start_column): Likewise.
1157         (osdata_end_column): Likewise.
1158         (clear_parsing_data): Likewise.
1159         (osdata_free_cleanup): Likewise.
1160         * parse.c (type_stack_cleanup): Likewise.
1161         (exp_uses_objfile_iter): Likewise.
1162         * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
1163         (ppc_linux_collect_gregset): Likewise.
1164         (ppu2spu_prev_arch): Likewise.
1165         (ppu2spu_this_id): Likewise.
1166         (ppu2spu_prev_register): Likewise.
1167         (ppu2spu_unwind_register): Likewise.
1168         (ppu2spu_sniffer): Likewise.
1169         (ppu2spu_dealloc_cache): Likewise.
1170         (ppc_linux_init_abi): Likewise.
1171         * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
1172         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1173         * progspace.c (restore_program_space): Likewise.
1174         * psymtab.c (find_pc_sect_psymtab): Likewise.
1175         (compare_psymbols): Likewise.
1176         (psymbol_bcache_full): Likewise.
1177         (allocate_psymtab): Likewise.
1178         (discard_psymtabs_upto): Likewise.
1179         * python/py-block.c (set_block): Likewise.
1180         (del_objfile_blocks): Likewise.
1181         * python/py-breakpoint.c (build_bp_list): Likewise.
1182         * python/py-inferior.c (inferior_to_inferior_object): Likewise.
1183         (build_inferior_list): Likewise.
1184         (py_free_inferior): Likewise.
1185         * python/py-objfile.c (py_free_objfile): Likewise.
1186         (objfile_to_objfile_object): Likewise.
1187         * python/py-prettyprint.c (py_restore_tstate): Likewise.
1188         * python/py-progspace.c (py_free_pspace): Likewise.
1189         (pspace_to_pspace_object): Likewise.
1190         * python/py-symbol.c (set_symbol): Likewise.
1191         (del_objfile_symbols): Likewise.
1192         * python/py-symtab.c (set_sal): Likewise.
1193         (set_symtab): Likewise.
1194         (del_objfile_symtab): Likewise.
1195         (del_objfile_sal): Likewise.
1196         * python/py-type.c (save_objfile_types): Likewise.
1197         (set_type): Likewise.
1198         * python/py-unwind.c (pyuw_prev_register): Likewise.
1199         (pyuw_on_new_gdbarch): Likewise.
1200         * python/py-utils.c (py_decref): Likewise.
1201         (py_xdecref): Likewise.
1202         (gdb_py_generic_dict): Likewise.
1203         * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
1204         (gdbpy_clone_xmethod_worker_data): Likewise.
1205         (gdbpy_get_xmethod_arg_types): Likewise.
1206         (gdbpy_get_xmethod_result_type): Likewise.
1207         (gdbpy_invoke_xmethod): Likewise.
1208         * python/python.c (gdbpy_apply_type_printers): Likewise.
1209         (gdbpy_free_type_printers): Likewise.
1210         * record-btrace.c (record_btrace_disable_callback): Likewise.
1211         (bfcache_hash): Likewise.
1212         (bfcache_eq): Likewise.
1213         (btrace_get_frame_function): Likewise.
1214         (record_btrace_frame_unwind_stop_reason): Likewise.
1215         (record_btrace_frame_this_id): Likewise.
1216         (record_btrace_frame_prev_register): Likewise.
1217         (record_btrace_frame_dealloc_cache): Likewise.
1218         * record-full.c (record_full_message_wrapper): Likewise.
1219         (record_full_save_cleanups): Likewise.
1220         * regcache.c (regcache_descr): Likewise.
1221         (do_regcache_xfree): Likewise.
1222         (do_regcache_invalidate): Likewise.
1223         (do_cooked_read): Likewise.
1224         (regcache_transfer_regset): Likewise.
1225         * reggroups.c (reggroup_add): Likewise.
1226         (reggroup_next): Likewise.
1227         (reggroup_prev): Likewise.
1228         * remote-fileio.c (do_remote_fileio_request): Likewise.
1229         * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
1230         (do_notif_event_xfree): Likewise.
1231         * remote.c (get_remote_arch_state): Likewise.
1232         (remote_pspace_data_cleanup): Likewise.
1233         (get_remote_exec_file): Likewise.
1234         (set_pspace_remote_exec_file): Likewise.
1235         (compare_pnums): Likewise.
1236         (clear_threads_listing_context): Likewise.
1237         (remote_newthread_step): Likewise.
1238         (start_thread): Likewise.
1239         (end_thread): Likewise.
1240         (remove_child_of_pending_fork): Likewise.
1241         (remove_stop_reply_for_inferior): Likewise.
1242         (remove_stop_reply_of_remote_state): Likewise.
1243         (remote_notif_remove_once_on_match): Likewise.
1244         (stop_reply_match_ptid_and_ws): Likewise.
1245         (kill_child_of_pending_fork): Likewise.
1246         (register_remote_g_packet_guess): Likewise.
1247         (remote_read_description_p): Likewise.
1248         (remote_read_description): Likewise.
1249         (free_actions_list_cleanup_wrapper): Likewise.
1250         (remote_async_serial_handler): Likewise.
1251         * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
1252         (rl78_analyze_frame_prologue): Likewise.
1253         * rs6000-tdep.c (ppc_supply_gregset): Likewise.
1254         (ppc_supply_fpregset): Likewise.
1255         (ppc_supply_vsxregset): Likewise.
1256         (ppc_supply_vrregset): Likewise.
1257         (ppc_collect_gregset): Likewise.
1258         (ppc_collect_fpregset): Likewise.
1259         (ppc_collect_vsxregset): Likewise.
1260         (ppc_collect_vrregset): Likewise.
1261         (e500_move_ev_register): Likewise.
1262         (do_regcache_raw_write): Likewise.
1263         (rs6000_frame_cache): Likewise.
1264         (rs6000_epilogue_frame_cache): Likewise.
1265         (rs6000_gdbarch_init): Likewise.
1266         * rx-tdep.c (rx_get_opcode_byte): Likewise.
1267         (rx_analyze_frame_prologue): Likewise.
1268         (rx_frame_type): Likewise.
1269         (rx_frame_sniffer_common): Likewise.
1270         * s390-linux-tdep.c (s390_check_for_saved): Likewise.
1271         (s390_frame_unwind_cache): Likewise.
1272         (s390_stub_frame_unwind_cache): Likewise.
1273         (s390_sigtramp_frame_unwind_cache): Likewise.
1274         * score-tdep.c (score_make_prologue_cache): Likewise.
1275         * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
1276         (sentinel_frame_prev_arch): Likewise.
1277         * ser-base.c (fd_event): Likewise.
1278         (push_event): Likewise.
1279         (ser_base_write): Likewise.
1280         * ser-pipe.c (pipe_close): Likewise.
1281         * serial.c (serial_write): Likewise.
1282         * sh-tdep.c (sh_frame_cache): Likewise.
1283         (sh_stub_this_id): Likewise.
1284         * sh64-tdep.c (sh64_frame_cache): Likewise.
1285         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
1286         (library_list_start_library): Likewise.
1287         (library_list_start_list): Likewise.
1288         (solib_aix_free_library_list): Likewise.
1289         * solib-darwin.c (get_darwin_info): Likewise.
1290         * solib-dsbt.c (get_dsbt_info): Likewise.
1291         * solib-spu.c (append_ocl_sos): Likewise.
1292         * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1293         (get_svr4_info): Likewise.
1294         (library_list_start_library): Likewise.
1295         (svr4_library_list_start_list): Likewise.
1296         (hash_probe_and_action): Likewise.
1297         (equal_probe_and_action): Likewise.
1298         (svr4_update_solib_event_breakpoint): Likewise.
1299         (set_solib_svr4_fetch_link_map_offsets): Likewise.
1300         (svr4_fetch_link_map_offsets): Likewise.
1301         (svr4_have_link_map_offsets): Likewise.
1302         * solib-target.c (library_list_start_segment): Likewise.
1303         (library_list_start_section): Likewise.
1304         (library_list_start_library): Likewise.
1305         (library_list_end_library): Likewise.
1306         (library_list_start_list): Likewise.
1307         (solib_target_free_library_list): Likewise.
1308         * solib.c (solib_ops): Likewise.
1309         (set_solib_ops): Likewise.
1310         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1311         * sparc-tdep.c (sparc_frame_cache): Likewise.
1312         (sparc32_frame_cache): Likewise.
1313         (sparc32_supply_gregset): Likewise.
1314         (sparc32_collect_gregset): Likewise.
1315         (sparc32_supply_fpregset): Likewise.
1316         (sparc32_collect_fpregset): Likewise.
1317         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1318         * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1319         (sparc64_collect_gregset): Likewise.
1320         (sparc64_supply_fpregset): Likewise.
1321         (sparc64_collect_fpregset): Likewise.
1322         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
1323         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
1324         * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
1325         (sparc64obsd_trapframe_cache): Likewise.
1326         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
1327         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
1328         * spu-multiarch.c (spu_gdbarch): Likewise.
1329         * spu-tdep.c (spu_frame_unwind_cache): Likewise.
1330         (spu2ppu_prev_arch): Likewise.
1331         (spu2ppu_this_id): Likewise.
1332         (spu2ppu_prev_register): Likewise.
1333         (spu2ppu_dealloc_cache): Likewise.
1334         (spu_dis_asm_print_address): Likewise.
1335         (gdb_print_insn_spu): Likewise.
1336         (spu_get_overlay_table): Likewise.
1337         * stabsread.c (rs6000_builtin_type): Likewise.
1338         * stack.c (do_print_variable_and_value): Likewise.
1339         * stap-probe.c (get_stap_base_address_1): Likewise.
1340         * symfile-debug.c (debug_qf_has_symbols): Likewise.
1341         (debug_qf_find_last_source_symtab): Likewise.
1342         (debug_qf_forget_cached_source_info): Likewise.
1343         (debug_qf_map_symtabs_matching_filename): Likewise.
1344         (debug_qf_lookup_symbol): Likewise.
1345         (debug_qf_print_stats): Likewise.
1346         (debug_qf_dump): Likewise.
1347         (debug_qf_relocate): Likewise.
1348         (debug_qf_expand_symtabs_for_function): Likewise.
1349         (debug_qf_expand_all_symtabs): Likewise.
1350         (debug_qf_expand_symtabs_with_fullname): Likewise.
1351         (debug_qf_map_matching_symbols): Likewise.
1352         (debug_qf_expand_symtabs_matching): Likewise.
1353         (debug_qf_find_pc_sect_compunit_symtab): Likewise.
1354         (debug_qf_map_symbol_filenames): Likewise.
1355         (debug_sym_get_probes): Likewise.
1356         (debug_sym_new_init): Likewise.
1357         (debug_sym_init): Likewise.
1358         (debug_sym_read): Likewise.
1359         (debug_sym_read_psymbols): Likewise.
1360         (debug_sym_finish): Likewise.
1361         (debug_sym_offsets): Likewise.
1362         (debug_sym_read_linetable): Likewise.
1363         (debug_sym_relocate): Likewise.
1364         (uninstall_symfile_debug_logging): Likewise.
1365         * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
1366         * symfile.c (place_section): Likewise.
1367         (add_section_size_callback): Likewise.
1368         (load_progress): Likewise.
1369         (load_section_callback): Likewise.
1370         (clear_memory_write_data): Likewise.
1371         (allocate_symtab): Likewise.
1372         * symmisc.c (maintenance_expand_file_matcher): Likewise.
1373         * symtab.c (lookup_symtab_callback): Likewise.
1374         (hash_demangled_name_entry): Likewise.
1375         (eq_demangled_name_entry): Likewise.
1376         (get_symbol_cache): Likewise.
1377         (symbol_cache_cleanup): Likewise.
1378         (set_symbol_cache_size): Likewise.
1379         (symbol_cache_flush): Likewise.
1380         (maintenance_print_symbol_cache): Likewise.
1381         (maintenance_print_symbol_cache_statistics): Likewise.
1382         (delete_filename_seen_cache): Likewise.
1383         (output_partial_symbol_filename): Likewise.
1384         (search_symbols_file_matches): Likewise.
1385         (search_symbols_name_matches): Likewise.
1386         (do_free_completion_list): Likewise.
1387         (maybe_add_partial_symtab_filename): Likewise.
1388         (get_main_info): Likewise.
1389         (main_info_cleanup): Likewise.
1390         * target-dcache.c (target_dcache_cleanup): Likewise.
1391         (target_dcache_init_p): Likewise.
1392         (target_dcache_invalidate): Likewise.
1393         (target_dcache_get): Likewise.
1394         (target_dcache_get_or_init): Likewise.
1395         * target-descriptions.c (target_find_description): Likewise.
1396         (tdesc_find_type): Likewise.
1397         (tdesc_data_cleanup): Likewise.
1398         (tdesc_find_arch_register): Likewise.
1399         (tdesc_register_name): Likewise.
1400         (tdesc_register_type): Likewise.
1401         (tdesc_register_reggroup_p): Likewise.
1402         (set_tdesc_pseudo_register_name): Likewise.
1403         (set_tdesc_pseudo_register_type): Likewise.
1404         (set_tdesc_pseudo_register_reggroup_p): Likewise.
1405         (tdesc_use_registers): Likewise.
1406         (free_target_description): Likewise.
1407         * target-memory.c (compare_block_starting_address): Likewise.
1408         (cleanup_request_data): Likewise.
1409         (cleanup_write_requests_vector): Likewise.
1410         * target.c (open_target): Likewise.
1411         (cleanup_restore_target_terminal): Likewise.
1412         (free_memory_read_result_vector): Likewise.
1413         * thread.c (disable_thread_stack_temporaries): Likewise.
1414         (finish_thread_state_cleanup): Likewise.
1415         (do_restore_current_thread_cleanup): Likewise.
1416         (restore_current_thread_cleanup_dtor): Likewise.
1417         (set_thread_refcount): Likewise.
1418         (tp_array_compar): Likewise.
1419         (do_captured_thread_select): Likewise.
1420         * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
1421         (tic6x_stub_this_id): Likewise.
1422         * tilegx-tdep.c (tilegx_frame_cache): Likewise.
1423         * top.c (do_restore_instream_cleanup): Likewise.
1424         (gdb_readline_wrapper_cleanup): Likewise.
1425         (kill_or_detach): Likewise.
1426         (print_inferior_quit_action): Likewise.
1427         * tracefile-tfile.c (match_blocktype): Likewise.
1428         (build_traceframe_info): Likewise.
1429         * tracefile.c (trace_file_writer_xfree): Likewise.
1430         * tracepoint.c (memrange_cmp): Likewise.
1431         (do_collect_symbol): Likewise.
1432         (do_clear_collection_list): Likewise.
1433         (do_restore_current_traceframe_cleanup): Likewise.
1434         (restore_current_traceframe_cleanup_dtor): Likewise.
1435         (free_current_marker): Likewise.
1436         (traceframe_info_start_memory): Likewise.
1437         (traceframe_info_start_tvar): Likewise.
1438         (free_result): Likewise.
1439         * tramp-frame.c (tramp_frame_cache): Likewise.
1440         * tui/tui-file.c (tui_file_delete): Likewise.
1441         (tui_fileopen): Likewise.
1442         (tui_sfileopen): Likewise.
1443         (tui_file_isatty): Likewise.
1444         (tui_file_rewind): Likewise.
1445         (tui_file_put): Likewise.
1446         (tui_file_fputs): Likewise.
1447         (tui_file_get_strbuf): Likewise.
1448         (tui_file_adjust_strbuf): Likewise.
1449         (tui_file_flush): Likewise.
1450         * tui/tui-layout.c (make_command_window): Likewise.
1451         (make_data_window): Likewise.
1452         (show_source_disasm_command): Likewise.
1453         (show_data): Likewise.
1454         (make_source_or_disasm_window): Likewise.
1455         (show_source_or_disasm_and_command): Likewise.
1456         * tui/tui-out.c (tui_field_int): Likewise.
1457         (tui_field_string): Likewise.
1458         (tui_field_fmt): Likewise.
1459         (tui_text): Likewise.
1460         * typeprint.c (hash_typedef_field): Likewise.
1461         (eq_typedef_field): Likewise.
1462         (do_free_typedef_hash): Likewise.
1463         (copy_typedef_hash_element): Likewise.
1464         (do_free_global_table): Likewise.
1465         (find_global_typedef): Likewise.
1466         (find_typedef_in_hash): Likewise.
1467         * ui-file.c (ui_file_write_for_put): Likewise.
1468         (do_ui_file_xstrdup): Likewise.
1469         (mem_file_delete): Likewise.
1470         (mem_file_rewind): Likewise.
1471         (mem_file_put): Likewise.
1472         (mem_file_write): Likewise.
1473         (stdio_file_delete): Likewise.
1474         (stdio_file_flush): Likewise.
1475         (stdio_file_read): Likewise.
1476         (stdio_file_write): Likewise.
1477         (stdio_file_write_async_safe): Likewise.
1478         (stdio_file_fputs): Likewise.
1479         (stdio_file_isatty): Likewise.
1480         (stdio_file_fseek): Likewise.
1481         (tee_file_delete): Likewise.
1482         (tee_file_flush): Likewise.
1483         (tee_file_write): Likewise.
1484         (tee_file_fputs): Likewise.
1485         (tee_file_isatty): Likewise.
1486         * ui-out.c (do_cleanup_table_end): Likewise.
1487         (do_cleanup_end): Likewise.
1488         * user-regs.c (user_reg_add): Likewise.
1489         (user_reg_map_name_to_regnum): Likewise.
1490         (usernum_to_user_reg): Likewise.
1491         (maintenance_print_user_registers): Likewise.
1492         * utils.c (do_bfd_close_cleanup): Likewise.
1493         (do_fclose_cleanup): Likewise.
1494         (do_obstack_free): Likewise.
1495         (do_ui_file_delete): Likewise.
1496         (do_ui_out_redirect_pop): Likewise.
1497         (do_free_section_addr_info): Likewise.
1498         (restore_integer): Likewise.
1499         (do_unpush_target): Likewise.
1500         (do_htab_delete_cleanup): Likewise.
1501         (do_restore_ui_file): Likewise.
1502         (do_value_free): Likewise.
1503         (do_free_so): Likewise.
1504         (free_current_contents): Likewise.
1505         (do_regfree_cleanup): Likewise.
1506         (core_addr_hash): Likewise.
1507         (core_addr_eq): Likewise.
1508         (do_free_char_ptr_vec): Likewise.
1509         * v850-tdep.c (v850_frame_cache): Likewise.
1510         * varobj.c (do_free_variable_cleanup): Likewise.
1511         * vax-tdep.c (vax_supply_gregset): Likewise.
1512         (vax_frame_cache): Likewise.
1513         * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
1514         * xml-support.c (gdb_xml_body_text): Likewise.
1515         (gdb_xml_values_cleanup): Likewise.
1516         (gdb_xml_start_element): Likewise.
1517         (gdb_xml_start_element_wrapper): Likewise.
1518         (gdb_xml_end_element): Likewise.
1519         (gdb_xml_end_element_wrapper): Likewise.
1520         (gdb_xml_cleanup): Likewise.
1521         (gdb_xml_fetch_external_entity): Likewise.
1522         (gdb_xml_parse_attr_enum): Likewise.
1523         (xinclude_start_include): Likewise.
1524         (xinclude_end_include): Likewise.
1525         (xml_xinclude_default): Likewise.
1526         (xml_xinclude_start_doctype): Likewise.
1527         (xml_xinclude_end_doctype): Likewise.
1528         (xml_xinclude_cleanup): Likewise.
1529         (xml_fetch_content_from_file): Likewise.
1530         * xml-syscall.c (free_syscalls_info): Likewise.
1531         (syscall_start_syscall): Likewise.
1532         * xml-tdesc.c (tdesc_end_arch): Likewise.
1533         (tdesc_end_osabi): Likewise.
1534         (tdesc_end_compatible): Likewise.
1535         (tdesc_start_target): Likewise.
1536         (tdesc_start_feature): Likewise.
1537         (tdesc_start_reg): Likewise.
1538         (tdesc_start_union): Likewise.
1539         (tdesc_start_struct): Likewise.
1540         (tdesc_start_flags): Likewise.
1541         (tdesc_start_field): Likewise.
1542         (tdesc_start_vector): Likewise.
1543         (fetch_available_features_from_target): Likewise.
1544         * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
1545         * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
1546         (xtensa_frame_cache): Likewise.
1547         (xtensa_frame_prev_register): Likewise.
1548         (xtensa_extract_return_value): Likewise.
1549
1550 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
1551
1552         * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
1553         (aarch64_make_stub_cache): Likewise.
1554         (value_of_aarch64_user_reg): Likewise.
1555         * ada-lang.c (ada_inferior_data_cleanup): Likewise.
1556         (get_ada_inferior_data): Likewise.
1557         (get_ada_pspace_data): Likewise.
1558         (ada_pspace_data_cleanup): Likewise.
1559         (ada_complete_symbol_matcher): Likewise.
1560         (ada_exc_search_name_matches): Likewise.
1561         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
1562         (get_ada_tasks_inferior_data): Likewise.
1563         * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
1564         (splay_obstack_alloc): Likewise.
1565         (splay_obstack_free): Likewise.
1566         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
1567         (alpha_linux_collect_gregset): Likewise.
1568         (alpha_linux_supply_fpregset): Likewise.
1569         (alpha_linux_collect_fpregset): Likewise.
1570         * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1571         * alpha-tdep.c (alpha_lds): Likewise.
1572         (alpha_sts): Likewise.
1573         (alpha_sigtramp_frame_unwind_cache): Likewise.
1574         (alpha_heuristic_frame_unwind_cache): Likewise.
1575         (alpha_supply_int_regs): Likewise.
1576         (alpha_fill_int_regs): Likewise.
1577         (alpha_supply_fp_regs): Likewise.
1578         (alpha_fill_fp_regs): Likewise.
1579         * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
1580         (alphanbsd_aout_supply_gregset): Likewise.
1581         (alphanbsd_supply_gregset): Likewise.
1582         * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
1583         (amd64_x32_linux_init_abi): Likewise.
1584         * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1585         (amd64_collect_native_gregset): Likewise.
1586         * amd64-tdep.c (amd64_frame_cache): Likewise.
1587         (amd64_sigtramp_frame_cache): Likewise.
1588         (amd64_epilogue_frame_cache): Likewise.
1589         (amd64_supply_fxsave): Likewise.
1590         (amd64_supply_xsave): Likewise.
1591         (amd64_collect_fxsave): Likewise.
1592         (amd64_collect_xsave): Likewise.
1593         * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
1594         * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
1595         * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1596         (arm_linux_collect_gregset): Likewise.
1597         (arm_linux_supply_nwfpe): Likewise.
1598         (arm_linux_collect_nwfpe): Likewise.
1599         (arm_linux_supply_vfp): Likewise.
1600         (arm_linux_collect_vfp): Likewise.
1601         * arm-tdep.c (arm_find_mapping_symbol): Likewise.
1602         (arm_prologue_unwind_stop_reason): Likewise.
1603         (arm_prologue_this_id): Likewise.
1604         (arm_prologue_prev_register): Likewise.
1605         (arm_exidx_data_free): Likewise.
1606         (arm_find_exidx_entry): Likewise.
1607         (arm_stub_this_id): Likewise.
1608         (arm_m_exception_this_id): Likewise.
1609         (arm_m_exception_prev_register): Likewise.
1610         (arm_normal_frame_base): Likewise.
1611         (gdb_print_insn_arm): Likewise.
1612         (arm_objfile_data_free): Likewise.
1613         (arm_record_special_symbol): Likewise.
1614         (value_of_arm_user_reg): Likewise.
1615         * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
1616         (armbsd_supply_gregset): Likewise.
1617         * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
1618         (get_auto_load_pspace_data): Likewise.
1619         (hash_loaded_script_entry): Likewise.
1620         (eq_loaded_script_entry): Likewise.
1621         (clear_section_scripts): Likewise.
1622         (collect_matching_scripts): Likewise.
1623         * auxv.c (auxv_inferior_data_cleanup): Likewise.
1624         (get_auxv_inferior_data): Likewise.
1625         * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1626         * ax-general.c (do_free_agent_expr_cleanup): Likewise.
1627         * bfd-target.c (target_bfd_xfer_partial): Likewise.
1628         (target_bfd_xclose): Likewise.
1629         (target_bfd_get_section_table): Likewise.
1630         * bfin-tdep.c (bfin_frame_cache): Likewise.
1631         * block.c (find_block_in_blockvector): Likewise.
1632         (call_site_for_pc): Likewise.
1633         (block_find_non_opaque_type_preferred): Likewise.
1634         * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
1635         (signal_catchpoint_remove_location): Likewise.
1636         (signal_catchpoint_breakpoint_hit): Likewise.
1637         (signal_catchpoint_print_one): Likewise.
1638         (signal_catchpoint_print_mention): Likewise.
1639         (signal_catchpoint_print_recreate): Likewise.
1640         * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
1641         * breakpoint.c (do_cleanup_counted_command_line): Likewise.
1642         (bp_location_compare_addrs): Likewise.
1643         (get_first_locp_gte_addr): Likewise.
1644         (check_tracepoint_command): Likewise.
1645         (do_map_commands_command): Likewise.
1646         (get_breakpoint_objfile_data): Likewise.
1647         (free_breakpoint_probes): Likewise.
1648         (do_captured_breakpoint_query): Likewise.
1649         (compare_breakpoints): Likewise.
1650         (bp_location_compare): Likewise.
1651         (bpstat_remove_breakpoint_callback): Likewise.
1652         (do_delete_breakpoint_cleanup): Likewise.
1653         * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
1654         (bsd_uthread_set_collect_uthread): Likewise.
1655         (bsd_uthread_activate): Likewise.
1656         (bsd_uthread_fetch_registers): Likewise.
1657         (bsd_uthread_store_registers): Likewise.
1658         * btrace.c (check_xml_btrace_version): Likewise.
1659         (parse_xml_btrace_block): Likewise.
1660         (parse_xml_btrace_pt_config_cpu): Likewise.
1661         (parse_xml_btrace_pt_raw): Likewise.
1662         (parse_xml_btrace_pt): Likewise.
1663         (parse_xml_btrace_conf_bts): Likewise.
1664         (parse_xml_btrace_conf_pt): Likewise.
1665         (do_btrace_data_cleanup): Likewise.
1666         * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
1667         * charset.c (cleanup_iconv): Likewise.
1668         (do_cleanup_iterator): Likewise.
1669         * cli-out.c (cli_uiout_dtor): Likewise.
1670         (cli_table_begin): Likewise.
1671         (cli_table_body): Likewise.
1672         (cli_table_end): Likewise.
1673         (cli_table_header): Likewise.
1674         (cli_begin): Likewise.
1675         (cli_end): Likewise.
1676         (cli_field_int): Likewise.
1677         (cli_field_skip): Likewise.
1678         (cli_field_string): Likewise.
1679         (cli_field_fmt): Likewise.
1680         (cli_spaces): Likewise.
1681         (cli_text): Likewise.
1682         (cli_message): Likewise.
1683         (cli_wrap_hint): Likewise.
1684         (cli_flush): Likewise.
1685         (cli_redirect): Likewise.
1686         (out_field_fmt): Likewise.
1687         (field_separator): Likewise.
1688         (cli_out_set_stream): Likewise.
1689         * cli/cli-cmds.c (compare_symtabs): Likewise.
1690         * cli/cli-dump.c (call_dump_func): Likewise.
1691         (restore_section_callback): Likewise.
1692         * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
1693         (do_restore_user_call_depth): Likewise.
1694         (do_free_command_lines_cleanup): Likewise.
1695         * coff-pe-read.c (get_section_vmas): Likewise.
1696         (pe_as16): Likewise.
1697         (pe_as32): Likewise.
1698         * coffread.c (coff_symfile_read): Likewise.
1699         * common/agent.c (agent_look_up_symbols): Likewise.
1700         * common/filestuff.c (do_close_cleanup): Likewise.
1701         * common/format.c (free_format_pieces_cleanup): Likewise.
1702         * common/vec.c (vec_o_reserve): Likewise.
1703         * compile/compile-c-support.c (print_one_macro): Likewise.
1704         * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
1705         (eq_symbol_error): Likewise.
1706         (del_symbol_error): Likewise.
1707         (error_symbol_once): Likewise.
1708         (gcc_convert_symbol): Likewise.
1709         (gcc_symbol_address): Likewise.
1710         (hash_symname): Likewise.
1711         (eq_symname): Likewise.
1712         * compile/compile-c-types.c (hash_type_map_instance): Likewise.
1713         (eq_type_map_instance): Likewise.
1714         (insert_type): Likewise.
1715         (convert_type): Likewise.
1716         * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
1717         (setup_sections): Likewise.
1718         (link_hash_table_free): Likewise.
1719         (copy_sections): Likewise.
1720         * compile/compile-object-run.c (do_module_cleanup): Likewise.
1721         * compile/compile.c (compile_print_value): Likewise.
1722         (do_rmdir): Likewise.
1723         (cleanup_compile_instance): Likewise.
1724         (cleanup_unlink_file): Likewise.
1725         * completer.c (free_completion_tracker): Likewise.
1726         * corelow.c (add_to_spuid_list): Likewise.
1727         * cp-namespace.c (reset_directive_searched): Likewise.
1728         * cp-support.c (reset_directive_searched): Likewise.
1729         * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
1730         (cris_frame_unwind_cache): Likewise.
1731         * d-lang.c (builtin_d_type): Likewise.
1732         * d-namespace.c (reset_directive_searched): Likewise.
1733         * dbxread.c (dbx_free_symfile_info): Likewise.
1734         (do_free_bincl_list_cleanup): Likewise.
1735         * disasm.c (hash_dis_line_entry): Likewise.
1736         (eq_dis_line_entry): Likewise.
1737         (dis_asm_print_address): Likewise.
1738         (fprintf_disasm): Likewise.
1739         (do_ui_file_delete): Likewise.
1740         * doublest.c (convert_floatformat_to_doublest): Likewise.
1741         * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1742         (dummy_frame_prev_register): Likewise.
1743         (dummy_frame_this_id): Likewise.
1744         * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1745         (cache_eq): Likewise.
1746         (cache_find): Likewise.
1747         (tailcall_frame_this_id): Likewise.
1748         (dwarf2_tailcall_prev_register_first): Likewise.
1749         (tailcall_frame_prev_register): Likewise.
1750         (tailcall_frame_dealloc_cache): Likewise.
1751         (tailcall_frame_prev_arch): Likewise.
1752         * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1753         (dwarf2_frame_set_init_reg): Likewise.
1754         (dwarf2_frame_init_reg): Likewise.
1755         (dwarf2_frame_set_signal_frame_p): Likewise.
1756         (dwarf2_frame_signal_frame_p): Likewise.
1757         (dwarf2_frame_set_adjust_regnum): Likewise.
1758         (dwarf2_frame_adjust_regnum): Likewise.
1759         (clear_pointer_cleanup): Likewise.
1760         (dwarf2_frame_cache): Likewise.
1761         (find_cie): Likewise.
1762         (dwarf2_frame_find_fde): Likewise.
1763         * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1764         (free_dwarf_expr_context_cleanup): Likewise.
1765         * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1766         (locexpr_get_frame_base): Likewise.
1767         (loclist_find_frame_base_location): Likewise.
1768         (loclist_get_frame_base): Likewise.
1769         (dwarf_expr_dwarf_call): Likewise.
1770         (dwarf_expr_get_base_type): Likewise.
1771         (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1772         (dwarf_expr_get_obj_addr): Likewise.
1773         (entry_data_value_coerce_ref): Likewise.
1774         (entry_data_value_copy_closure): Likewise.
1775         (entry_data_value_free_closure): Likewise.
1776         (get_frame_address_in_block_wrapper): Likewise.
1777         (dwarf2_evaluate_property): Likewise.
1778         (dwarf2_compile_property_to_c): Likewise.
1779         (needs_frame_read_addr_from_reg): Likewise.
1780         (needs_frame_get_reg_value): Likewise.
1781         (needs_frame_frame_base): Likewise.
1782         (needs_frame_frame_cfa): Likewise.
1783         (needs_frame_tls_address): Likewise.
1784         (needs_frame_dwarf_call): Likewise.
1785         (needs_dwarf_reg_entry_value): Likewise.
1786         (get_ax_pc): Likewise.
1787         (locexpr_read_variable): Likewise.
1788         (locexpr_read_variable_at_entry): Likewise.
1789         (locexpr_read_needs_frame): Likewise.
1790         (locexpr_describe_location): Likewise.
1791         (locexpr_tracepoint_var_ref): Likewise.
1792         (locexpr_generate_c_location): Likewise.
1793         (loclist_read_variable): Likewise.
1794         (loclist_read_variable_at_entry): Likewise.
1795         (loclist_describe_location): Likewise.
1796         (loclist_tracepoint_var_ref): Likewise.
1797         (loclist_generate_c_location): Likewise.
1798         * dwarf2read.c (line_header_hash_voidp): Likewise.
1799         (line_header_eq_voidp): Likewise.
1800         (dwarf2_has_info): Likewise.
1801         (dwarf2_get_section_info): Likewise.
1802         (locate_dwz_sections): Likewise.
1803         (hash_file_name_entry): Likewise.
1804         (eq_file_name_entry): Likewise.
1805         (delete_file_name_entry): Likewise.
1806         (dw2_setup): Likewise.
1807         (dw2_get_file_names_reader): Likewise.
1808         (dw2_find_pc_sect_compunit_symtab): Likewise.
1809         (hash_signatured_type): Likewise.
1810         (eq_signatured_type): Likewise.
1811         (add_signatured_type_cu_to_table): Likewise.
1812         (create_debug_types_hash_table): Likewise.
1813         (lookup_dwo_signatured_type): Likewise.
1814         (lookup_dwp_signatured_type): Likewise.
1815         (lookup_signatured_type): Likewise.
1816         (hash_type_unit_group): Likewise.
1817         (eq_type_unit_group): Likewise.
1818         (get_type_unit_group): Likewise.
1819         (process_psymtab_comp_unit_reader): Likewise.
1820         (sort_tu_by_abbrev_offset): Likewise.
1821         (process_skeletonless_type_unit): Likewise.
1822         (psymtabs_addrmap_cleanup): Likewise.
1823         (dwarf2_read_symtab): Likewise.
1824         (psymtab_to_symtab_1): Likewise.
1825         (die_hash): Likewise.
1826         (die_eq): Likewise.
1827         (load_full_comp_unit_reader): Likewise.
1828         (reset_die_in_process): Likewise.
1829         (free_cu_line_header): Likewise.
1830         (handle_DW_AT_stmt_list): Likewise.
1831         (hash_dwo_file): Likewise.
1832         (eq_dwo_file): Likewise.
1833         (hash_dwo_unit): Likewise.
1834         (eq_dwo_unit): Likewise.
1835         (create_dwo_cu_reader): Likewise.
1836         (create_dwo_unit_in_dwp_v1): Likewise.
1837         (create_dwo_unit_in_dwp_v2): Likewise.
1838         (lookup_dwo_unit_in_dwp): Likewise.
1839         (dwarf2_locate_dwo_sections): Likewise.
1840         (dwarf2_locate_common_dwp_sections): Likewise.
1841         (dwarf2_locate_v2_dwp_sections): Likewise.
1842         (hash_dwp_loaded_cutus): Likewise.
1843         (eq_dwp_loaded_cutus): Likewise.
1844         (lookup_dwo_cutu): Likewise.
1845         (abbrev_table_free_cleanup): Likewise.
1846         (dwarf2_free_abbrev_table): Likewise.
1847         (find_partial_die_in_comp_unit): Likewise.
1848         (free_line_header_voidp): Likewise.
1849         (follow_die_offset): Likewise.
1850         (follow_die_sig_1): Likewise.
1851         (free_heap_comp_unit): Likewise.
1852         (free_stack_comp_unit): Likewise.
1853         (dwarf2_free_objfile): Likewise.
1854         (per_cu_offset_and_type_hash): Likewise.
1855         (per_cu_offset_and_type_eq): Likewise.
1856         (get_die_type_at_offset): Likewise.
1857         (partial_die_hash): Likewise.
1858         (partial_die_eq): Likewise.
1859         (dwarf2_per_objfile_free): Likewise.
1860         (hash_strtab_entry): Likewise.
1861         (eq_strtab_entry): Likewise.
1862         (add_string): Likewise.
1863         (hash_symtab_entry): Likewise.
1864         (eq_symtab_entry): Likewise.
1865         (delete_symtab_entry): Likewise.
1866         (cleanup_mapped_symtab): Likewise.
1867         (add_indices_to_cpool): Likewise.
1868         (hash_psymtab_cu_index): Likewise.
1869         (eq_psymtab_cu_index): Likewise.
1870         (add_address_entry_worker): Likewise.
1871         (unlink_if_set): Likewise.
1872         (write_one_signatured_type): Likewise.
1873         (save_gdb_index_command): Likewise.
1874         * elfread.c (elf_symtab_read): Likewise.
1875         (elf_gnu_ifunc_cache_hash): Likewise.
1876         (elf_gnu_ifunc_cache_eq): Likewise.
1877         (elf_gnu_ifunc_record_cache): Likewise.
1878         (elf_gnu_ifunc_resolve_by_cache): Likewise.
1879         (elf_get_probes): Likewise.
1880         (probe_key_free): Likewise.
1881         * f-lang.c (builtin_f_type): Likewise.
1882         * frame-base.c (frame_base_append_sniffer): Likewise.
1883         (frame_base_set_default): Likewise.
1884         (frame_base_find_by_frame): Likewise.
1885         * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1886         (frame_unwind_append_unwinder): Likewise.
1887         (frame_unwind_find_by_frame): Likewise.
1888         * frame.c (frame_addr_hash): Likewise.
1889         (frame_addr_hash_eq): Likewise.
1890         (frame_stash_find): Likewise.
1891         (do_frame_register_read): Likewise.
1892         (unwind_to_current_frame): Likewise.
1893         (frame_cleanup_after_sniffer): Likewise.
1894         * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1895         * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1896         * ft32-tdep.c (ft32_frame_cache): Likewise.
1897         * gcore.c (do_bfd_delete_cleanup): Likewise.
1898         (gcore_create_callback): Likewise.
1899         * gdb_bfd.c (hash_bfd): Likewise.
1900         (eq_bfd): Likewise.
1901         (gdb_bfd_open): Likewise.
1902         (free_one_bfd_section): Likewise.
1903         (gdb_bfd_ref): Likewise.
1904         (gdb_bfd_unref): Likewise.
1905         (get_section_descriptor): Likewise.
1906         (gdb_bfd_map_section): Likewise.
1907         (gdb_bfd_crc): Likewise.
1908         (gdb_bfd_mark_parent): Likewise.
1909         (gdb_bfd_record_inclusion): Likewise.
1910         (gdb_bfd_requires_relocations): Likewise.
1911         (print_one_bfd): Likewise.
1912         * gdbtypes.c (type_pair_hash): Likewise.
1913         (type_pair_eq): Likewise.
1914         (builtin_type): Likewise.
1915         (objfile_type): Likewise.
1916         * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1917         (vtable_address_point_offset): Likewise.
1918         (gnuv3_get_vtable): Likewise.
1919         (hash_value_and_voffset): Likewise.
1920         (eq_value_and_voffset): Likewise.
1921         (compare_value_and_voffset): Likewise.
1922         (compute_vtable_size): Likewise.
1923         (gnuv3_get_typeid_type): Likewise.
1924         * go-lang.c (builtin_go_type): Likewise.
1925         * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1926         (bkscm_eq_block_smob): Likewise.
1927         (bkscm_objfile_block_map): Likewise.
1928         (bkscm_del_objfile_blocks): Likewise.
1929         * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1930         * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1931         (gdbscm_disasm_print_address): Likewise.
1932         * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1933         (frscm_eq_frame_smob): Likewise.
1934         (frscm_inferior_frame_map): Likewise.
1935         (frscm_del_inferior_frames): Likewise.
1936         * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1937         * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1938         (ofscm_objfile_smob_from_objfile): Likewise.
1939         * guile/scm-ports.c (ioscm_write): Likewise.
1940         (ioscm_file_port_delete): Likewise.
1941         (ioscm_file_port_rewind): Likewise.
1942         (ioscm_file_port_put): Likewise.
1943         (ioscm_file_port_write): Likewise.
1944         * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1945         (psscm_pspace_smob_from_pspace): Likewise.
1946         * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1947         (scscm_recording_unwind_handler): Likewise.
1948         (gdbscm_with_catch): Likewise.
1949         (scscm_call_0_body): Likewise.
1950         (scscm_call_1_body): Likewise.
1951         (scscm_call_2_body): Likewise.
1952         (scscm_call_3_body): Likewise.
1953         (scscm_call_4_body): Likewise.
1954         (scscm_apply_1_body): Likewise.
1955         (scscm_eval_scheme_string): Likewise.
1956         (gdbscm_safe_eval_string): Likewise.
1957         (scscm_source_scheme_script): Likewise.
1958         (gdbscm_safe_source_script): Likewise.
1959         * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1960         (gdbscm_call_scm_from_stringn): Likewise.
1961         * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1962         (syscm_eq_symbol_smob): Likewise.
1963         (syscm_get_symbol_map): Likewise.
1964         (syscm_del_objfile_symbols): Likewise.
1965         * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1966         (stscm_eq_symtab_smob): Likewise.
1967         (stscm_objfile_symtab_map): Likewise.
1968         (stscm_del_objfile_symtabs): Likewise.
1969         * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1970         (tyscm_eq_type_smob): Likewise.
1971         (tyscm_type_map): Likewise.
1972         (tyscm_copy_type_recursive): Likewise.
1973         (save_objfile_types): Likewise.
1974         * guile/scm-utils.c (extract_arg): Likewise.
1975         * h8300-tdep.c (h8300_frame_cache): Likewise.
1976         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1977         * hppa-tdep.c (compare_unwind_entries): Likewise.
1978         (find_unwind_entry): Likewise.
1979         (hppa_frame_cache): Likewise.
1980         (hppa_stub_frame_unwind_cache): Likewise.
1981         * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1982         * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1983         (hppaobsd_supply_fpregset): Likewise.
1984         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1985         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1986         * i386-tdep.c (i386_frame_cache): Likewise.
1987         (i386_epilogue_frame_cache): Likewise.
1988         (i386_sigtramp_frame_cache): Likewise.
1989         (i386_supply_gregset): Likewise.
1990         (i386_collect_gregset): Likewise.
1991         (i386_gdbarch_init): Likewise.
1992         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1993         (i386obsd_trapframe_cache): Likewise.
1994         * i387-tdep.c (i387_supply_fsave): Likewise.
1995         (i387_collect_fsave): Likewise.
1996         (i387_supply_fxsave): Likewise.
1997         (i387_collect_fxsave): Likewise.
1998         (i387_supply_xsave): Likewise.
1999         (i387_collect_xsave): Likewise.
2000         * ia64-tdep.c (ia64_frame_cache): Likewise.
2001         (ia64_sigtramp_frame_cache): Likewise.
2002         * infcmd.c (attach_command_continuation): Likewise.
2003         (attach_command_continuation_free_args): Likewise.
2004         * inferior.c (restore_inferior): Likewise.
2005         (delete_thread_of_inferior): Likewise.
2006         * inflow.c (inflow_inferior_data_cleanup): Likewise.
2007         (get_inflow_inferior_data): Likewise.
2008         (inflow_inferior_exit): Likewise.
2009         * infrun.c (displaced_step_clear_cleanup): Likewise.
2010         (restore_current_uiout_cleanup): Likewise.
2011         (release_stop_context_cleanup): Likewise.
2012         (do_restore_infcall_suspend_state_cleanup): Likewise.
2013         (do_restore_infcall_control_state_cleanup): Likewise.
2014         (restore_inferior_ptid): Likewise.
2015         * inline-frame.c (block_starting_point_at): Likewise.
2016         * iq2000-tdep.c (iq2000_frame_cache): Likewise.
2017         * jit.c (get_jit_objfile_data): Likewise.
2018         (get_jit_program_space_data): Likewise.
2019         (jit_object_close_impl): Likewise.
2020         (jit_find_objf_with_entry_addr): Likewise.
2021         (jit_breakpoint_deleted): Likewise.
2022         (jit_unwind_reg_set_impl): Likewise.
2023         (jit_unwind_reg_get_impl): Likewise.
2024         (jit_dealloc_cache): Likewise.
2025         (jit_frame_sniffer): Likewise.
2026         (jit_frame_prev_register): Likewise.
2027         (jit_prepend_unwinder): Likewise.
2028         (jit_inferior_exit_hook): Likewise.
2029         (free_objfile_data): Likewise.
2030         * jv-lang.c (jv_per_objfile_free): Likewise.
2031         (get_dynamics_objfile): Likewise.
2032         (get_java_class_symtab): Likewise.
2033         (builtin_java_type): Likewise.
2034         * language.c (language_string_char_type): Likewise.
2035         (language_bool_type): Likewise.
2036         (language_lookup_primitive_type): Likewise.
2037         (language_lookup_primitive_type_as_symbol): Likewise.
2038         * linespec.c (hash_address_entry): Likewise.
2039         (eq_address_entry): Likewise.
2040         (iterate_inline_only): Likewise.
2041         (iterate_name_matcher): Likewise.
2042         (decode_line_2_compare_items): Likewise.
2043         (collect_one_symbol): Likewise.
2044         (compare_symbols): Likewise.
2045         (compare_msymbols): Likewise.
2046         (add_symtabs_to_list): Likewise.
2047         (collect_symbols): Likewise.
2048         (compare_msyms): Likewise.
2049         (add_minsym): Likewise.
2050         (cleanup_linespec_result): Likewise.
2051         * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
2052         * linux-nat.c (delete_lwp_cleanup): Likewise.
2053         (count_events_callback): Likewise.
2054         (select_event_lwp_callback): Likewise.
2055         (resume_stopped_resumed_lwps): Likewise.
2056         * linux-tdep.c (get_linux_gdbarch_data): Likewise.
2057         (invalidate_linux_cache_inf): Likewise.
2058         (get_linux_inferior_data): Likewise.
2059         (linux_find_memory_regions_thunk): Likewise.
2060         (linux_make_mappings_callback): Likewise.
2061         (linux_corefile_thread_callback): Likewise.
2062         (find_mapping_size): Likewise.
2063         * linux-thread-db.c (find_new_threads_callback): Likewise.
2064         * lm32-tdep.c (lm32_frame_cache): Likewise.
2065         * m2-lang.c (builtin_m2_type): Likewise.
2066         * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
2067         * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
2068         (m32r_linux_supply_gregset): Likewise.
2069         (m32r_linux_collect_gregset): Likewise.
2070         * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
2071         * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
2072         * m68k-tdep.c (m68k_frame_cache): Likewise.
2073         * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
2074         (m68kbsd_supply_gregset): Likewise.
2075         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
2076         * m88k-tdep.c (m88k_frame_cache): Likewise.
2077         (m88k_supply_gregset): Likewise.
2078
2079 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
2080
2081         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
2082         to allocation result assignment.
2083         * ada-exp.y (write_object_renaming): Likewise.
2084         (write_ambiguous_var): Likewise.
2085         (ada_nget_field_index): Likewise.
2086         (write_var_or_type): Likewise.
2087         * ada-lang.c (ada_decode_symbol): Likewise.
2088         (ada_value_assign): Likewise.
2089         (value_pointer): Likewise.
2090         (cache_symbol): Likewise.
2091         (add_nonlocal_symbols): Likewise.
2092         (ada_name_for_lookup): Likewise.
2093         (symbol_completion_add): Likewise.
2094         (ada_to_fixed_type_1): Likewise.
2095         (ada_get_next_arg): Likewise.
2096         (defns_collected): Likewise.
2097         * ada-lex.l (processId): Likewise.
2098         (processString): Likewise.
2099         * ada-tasks.c (read_known_tasks_array): Likewise.
2100         (read_known_tasks_list): Likewise.
2101         * ada-typeprint.c (decoded_type_name): Likewise.
2102         * addrmap.c (addrmap_mutable_create_fixed): Likewise.
2103         * amd64-tdep.c (amd64_push_arguments): Likewise.
2104         (amd64_displaced_step_copy_insn): Likewise.
2105         (amd64_classify_insn_at): Likewise.
2106         (amd64_relocate_instruction): Likewise.
2107         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
2108         * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
2109         (initialize_current_architecture): Likewise.
2110         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2111         * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
2112         * arm-tdep.c (arm_exidx_new_objfile): Likewise.
2113         (arm_push_dummy_call): Likewise.
2114         (extend_buffer_earlier): Likewise.
2115         (arm_adjust_breakpoint_address): Likewise.
2116         (arm_skip_stub): Likewise.
2117         * auto-load.c (filename_is_in_pattern): Likewise.
2118         (maybe_add_script_file): Likewise.
2119         (maybe_add_script_text): Likewise.
2120         (auto_load_objfile_script_1): Likewise.
2121         * auxv.c (ld_so_xfer_auxv): Likewise.
2122         * ax-general.c (new_agent_expr): Likewise.
2123         (grow_expr): Likewise.
2124         (ax_reg_mask): Likewise.
2125         * bcache.c (bcache_full): Likewise.
2126         * breakpoint.c (program_breakpoint_here_p): Likewise.
2127         * btrace.c (parse_xml_raw): Likewise.
2128         * build-id.c (build_id_to_debug_bfd): Likewise.
2129         * buildsym.c (end_symtab_with_blockvector): Likewise.
2130         * c-exp.y (string_exp): Likewise.
2131         (qualified_name): Likewise.
2132         (write_destructor_name): Likewise.
2133         (operator_stoken): Likewise.
2134         (parse_number): Likewise.
2135         (scan_macro_expansion): Likewise.
2136         (yylex): Likewise.
2137         (c_print_token): Likewise.
2138         * c-lang.c (c_get_string): Likewise.
2139         (emit_numeric_character): Likewise.
2140         * charset.c (wchar_iterate): Likewise.
2141         * cli/cli-cmds.c (complete_command): Likewise.
2142         (make_command): Likewise.
2143         * cli/cli-dump.c (restore_section_callback): Likewise.
2144         (restore_binary_file): Likewise.
2145         * cli/cli-interp.c (cli_interpreter_exec): Likewise.
2146         * cli/cli-script.c (execute_control_command): Likewise.
2147         * cli/cli-setshow.c (do_set_command): Likewise.
2148         * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
2149         (read_pe_exported_syms): Likewise.
2150         * coffread.c (coff_read_struct_type): Likewise.
2151         (coff_read_enum_type): Likewise.
2152         * common/btrace-common.c (btrace_data_append): Likewise.
2153         * common/buffer.c (buffer_grow): Likewise.
2154         * common/filestuff.c (gdb_fopen_cloexec): Likewise.
2155         * common/format.c (parse_format_string): Likewise.
2156         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
2157         * common/xml-utils.c (xml_escape_text): Likewise.
2158         * compile/compile-object-load.c (copy_sections): Likewise.
2159         (compile_object_load): Likewise.
2160         * compile/compile-object-run.c (compile_object_run): Likewise.
2161         * completer.c (filename_completer): Likewise.
2162         * corefile.c (read_memory_typed_address): Likewise.
2163         (write_memory_unsigned_integer): Likewise.
2164         (write_memory_signed_integer): Likewise.
2165         (complete_set_gnutarget): Likewise.
2166         * corelow.c (get_core_register_section): Likewise.
2167         * cp-name-parser.y (d_grab): Likewise.
2168         (allocate_info): Likewise.
2169         (cp_new_demangle_parse_info): Likewise.
2170         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
2171         (cp_lookup_symbol_in_namespace): Likewise.
2172         (lookup_namespace_scope): Likewise.
2173         (find_symbol_in_baseclass): Likewise.
2174         (cp_lookup_nested_symbol): Likewise.
2175         (cp_lookup_transparent_type_loop): Likewise.
2176         * cp-support.c (copy_string_to_obstack): Likewise.
2177         (make_symbol_overload_list): Likewise.
2178         (make_symbol_overload_list_namespace): Likewise.
2179         (make_symbol_overload_list_adl_namespace): Likewise.
2180         (first_component_command): Likewise.
2181         * cp-valprint.c (cp_print_value): Likewise.
2182         * ctf.c (ctf_xfer_partial): Likewise.
2183         * d-exp.y (StringExp): Likewise.
2184         * d-namespace.c (d_lookup_symbol_in_module): Likewise.
2185         (lookup_module_scope): Likewise.
2186         (find_symbol_in_baseclass): Likewise.
2187         (d_lookup_nested_symbol): Likewise.
2188         * dbxread.c (find_stab_function_addr): Likewise.
2189         (read_dbx_symtab): Likewise.
2190         (dbx_end_psymtab): Likewise.
2191         (cp_set_block_scope): Likewise.
2192         * dcache.c (dcache_alloc): Likewise.
2193         * demangle.c (_initialize_demangler): Likewise.
2194         * dicos-tdep.c (dicos_load_module_p): Likewise.
2195         * dictionary.c (dict_create_hashed_expandable): Likewise.
2196         (dict_create_linear_expandable): Likewise.
2197         (expand_hashtable): Likewise.
2198         (add_symbol_linear_expandable): Likewise.
2199         * dwarf2-frame.c (add_cie): Likewise.
2200         (add_fde): Likewise.
2201         (dwarf2_build_frame_info): Likewise.
2202         * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
2203         (dwarf_expr_fetch_address): Likewise.
2204         (add_piece): Likewise.
2205         (execute_stack_op): Likewise.
2206         * dwarf2loc.c (chain_candidate): Likewise.
2207         (dwarf_entry_parameter_to_value): Likewise.
2208         (read_pieced_value): Likewise.
2209         (write_pieced_value): Likewise.
2210         * dwarf2read.c (dwarf2_read_section): Likewise.
2211         (add_type_unit): Likewise.
2212         (read_comp_units_from_section): Likewise.
2213         (fixup_go_packaging): Likewise.
2214         (dwarf2_compute_name): Likewise.
2215         (dwarf2_physname): Likewise.
2216         (create_dwo_unit_in_dwp_v1): Likewise.
2217         (create_dwo_unit_in_dwp_v2): Likewise.
2218         (read_func_scope): Likewise.
2219         (read_call_site_scope): Likewise.
2220         (dwarf2_attach_fields_to_type): Likewise.
2221         (process_structure_scope): Likewise.
2222         (mark_common_block_symbol_computed): Likewise.
2223         (read_common_block): Likewise.
2224         (abbrev_table_read_table): Likewise.
2225         (guess_partial_die_structure_name): Likewise.
2226         (fixup_partial_die): Likewise.
2227         (add_file_name): Likewise.
2228         (dwarf2_const_value_data): Likewise.
2229         (dwarf2_const_value_attr): Likewise.
2230         (build_error_marker_type): Likewise.
2231         (guess_full_die_structure_name): Likewise.
2232         (anonymous_struct_prefix): Likewise.
2233         (typename_concat): Likewise.
2234         (dwarf2_canonicalize_name): Likewise.
2235         (dwarf2_name): Likewise.
2236         (write_constant_as_bytes): Likewise.
2237         (dwarf2_fetch_constant_bytes): Likewise.
2238         (copy_string): Likewise.
2239         (parse_macro_definition): Likewise.
2240         * elfread.c (elf_symfile_segments): Likewise.
2241         (elf_rel_plt_read): Likewise.
2242         (elf_gnu_ifunc_resolve_by_cache): Likewise.
2243         (elf_gnu_ifunc_resolve_by_got): Likewise.
2244         (elf_read_minimal_symbols): Likewise.
2245         (elf_gnu_ifunc_record_cache): Likewise.
2246         * event-top.c (top_level_prompt): Likewise.
2247         (command_line_handler): Likewise.
2248         * exec.c (resize_section_table): Likewise.
2249         * expprint.c (print_subexp_standard): Likewise.
2250         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2251         * findcmd.c (parse_find_args): Likewise.
2252         * findvar.c (address_from_register): Likewise.
2253         * frame.c (get_prev_frame_always): Likewise.
2254         * gdb_bfd.c (gdb_bfd_ref): Likewise.
2255         (get_section_descriptor): Likewise.
2256         * gdb_obstack.c (obconcat): Likewise.
2257         (obstack_strdup): Likewise.
2258         * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
2259         (create_set_type): Likewise.
2260         (lookup_unsigned_typename): Likewise.
2261         (lookup_signed_typename): Likewise.
2262         (resolve_dynamic_union): Likewise.
2263         (resolve_dynamic_struct): Likewise.
2264         (add_dyn_prop): Likewise.
2265         (copy_dynamic_prop_list): Likewise.
2266         (arch_flags_type): Likewise.
2267         (append_composite_type_field_raw): Likewise.
2268         * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
2269         * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
2270         * go-exp.y (string_exp): Likewise.
2271         * go-lang.c (go_demangle): Likewise.
2272         * guile/guile.c (compute_scheme_string): Likewise.
2273         * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2274         (gdbscm_canonicalize_command_name): Likewise.
2275         * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
2276         (ioscm_init_memory_port): Likewise.
2277         (ioscm_reinit_memory_port): Likewise.
2278         * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
2279         (gdbscm_gc_dup_argv): Likewise.
2280         * h8300-tdep.c (h8300_push_dummy_call): Likewise.
2281         * hppa-tdep.c (internalize_unwinds): Likewise.
2282         (read_unwind_info): Likewise.
2283         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
2284         (windows_core_xfer_shared_libraries): Likewise.
2285         * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
2286         (i386_stap_parse_special_token_triplet): Likewise.
2287         (i386_stap_parse_special_token_three_arg_disp): Likewise.
2288         * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
2289         * inf-child.c (inf_child_fileio_readlink): Likewise.
2290         * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
2291         (inf_ptrace_store_register): Likewise.
2292         * infrun.c (follow_exec): Likewise.
2293         (displaced_step_prepare_throw): Likewise.
2294         (save_stop_context): Likewise.
2295         (save_infcall_suspend_state): Likewise.
2296         * jit.c (jit_read_descriptor): Likewise.
2297         (jit_read_code_entry): Likewise.
2298         (jit_symtab_line_mapping_add_impl): Likewise.
2299         (finalize_symtab): Likewise.
2300         (jit_unwind_reg_get_impl): Likewise.
2301         * jv-exp.y (QualifiedName): Likewise.
2302         * jv-lang.c (get_java_utf8_name): Likewise.
2303         (type_from_class): Likewise.
2304         (java_demangle_type_signature): Likewise.
2305         (java_class_name_from_physname): Likewise.
2306         * jv-typeprint.c (java_type_print_base): Likewise.
2307         * jv-valprint.c (java_value_print): Likewise.
2308         * language.c (add_language): Likewise.
2309         * linespec.c (add_sal_to_sals_basic): Likewise.
2310         (add_sal_to_sals): Likewise.
2311         (decode_objc): Likewise.
2312         (find_linespec_symbols): Likewise.
2313         * linux-fork.c (fork_save_infrun_state): Likewise.
2314         * linux-nat.c (linux_nat_detach): Likewise.
2315         (linux_nat_fileio_readlink): Likewise.
2316         * linux-record.c (record_linux_sockaddr): Likewise.
2317         (record_linux_msghdr): Likewise.
2318         (Do): Likewise.
2319         * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
2320         (linux_collect_regset_section_cb): Likewise.
2321         (linux_get_siginfo_data): Likewise.
2322         * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
2323         (try_thread_db_load_from_dir): Likewise.
2324         (thread_db_load_search): Likewise.
2325         (info_auto_load_libthread_db): Likewise.
2326         * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
2327         (m32c_m16c_pointer_to_address): Likewise.
2328         * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
2329         * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2330         * machoread.c (macho_check_dsym): Likewise.
2331         * macroexp.c (resize_buffer): Likewise.
2332         (gather_arguments): Likewise.
2333         (maybe_expand): Likewise.
2334         * macrotab.c (new_macro_key): Likewise.
2335         (new_source_file): Likewise.
2336         (new_macro_definition): Likewise.
2337         * mdebugread.c (parse_symbol): Likewise.
2338         (parse_type): Likewise.
2339         (parse_partial_symbols): Likewise.
2340         (psymtab_to_symtab_1): Likewise.
2341         * mem-break.c (default_memory_insert_breakpoint): Likewise.
2342         * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
2343         * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
2344         (mi_cmd_data_read_memory_bytes): Likewise.
2345         (mi_cmd_data_write_memory_bytes): Likewise.
2346         (mi_cmd_trace_frame_collected): Likewise.
2347         * mi/mi-parse.c (mi_parse_argv): Likewise.
2348         (mi_parse): Likewise.
2349         * minidebug.c (lzma_open): Likewise.
2350         (lzma_pread): Likewise.
2351         * mips-tdep.c (mips_read_fp_register_single): Likewise.
2352         (mips_print_fp_register): Likewise.
2353         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
2354         * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2355         * mt-tdep.c (mt_register_name): Likewise.
2356         (mt_registers_info): Likewise.
2357         (mt_push_dummy_call): Likewise.
2358         * namespace.c (add_using_directive): Likewise.
2359         * nat/linux-btrace.c (perf_event_read): Likewise.
2360         (linux_enable_bts): Likewise.
2361         * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
2362         * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
2363         * nto-tdep.c (nto_find_and_open_solib): Likewise.
2364         (nto_parse_redirection): Likewise.
2365         * objc-lang.c (objc_demangle): Likewise.
2366         (find_methods): Likewise.
2367         * objfiles.c (get_objfile_bfd_data): Likewise.
2368         (set_objfile_main_name): Likewise.
2369         (allocate_objfile): Likewise.
2370         (objfile_relocate): Likewise.
2371         (update_section_map): Likewise.
2372         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
2373         * p-exp.y (exp): Likewise.
2374         (yylex): Likewise.
2375         * p-valprint.c (pascal_object_print_value): Likewise.
2376         * parse.c (initialize_expout): Likewise.
2377         (mark_completion_tag): Likewise.
2378         (copy_name): Likewise.
2379         (parse_float): Likewise.
2380         (type_stack_reserve): Likewise.
2381         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2382         (ppu2spu_prev_register): Likewise.
2383         * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
2384         * printcmd.c (printf_wide_c_string): Likewise.
2385         (printf_pointer): Likewise.
2386         * probe.c (parse_probes): Likewise.
2387         * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2388         (cmdpy_init): Likewise.
2389         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
2390         * python/py-symtab.c (set_sal): Likewise.
2391         * python/py-unwind.c (pyuw_sniffer): Likewise.
2392         * python/python.c (python_interactive_command): Likewise.
2393         (compute_python_string): Likewise.
2394         * ravenscar-thread.c (get_running_thread_id): Likewise.
2395         * record-full.c (record_full_exec_insn): Likewise.
2396         (record_full_core_open_1): Likewise.
2397         * regcache.c (regcache_raw_read_signed): Likewise.
2398         (regcache_raw_read_unsigned): Likewise.
2399         (regcache_cooked_read_signed): Likewise.
2400         (regcache_cooked_read_unsigned): Likewise.
2401         * remote-fileio.c (remote_fileio_func_open): Likewise.
2402         (remote_fileio_func_rename): Likewise.
2403         (remote_fileio_func_unlink): Likewise.
2404         (remote_fileio_func_stat): Likewise.
2405         (remote_fileio_func_system): Likewise.
2406         * remote-mips.c (mips_xfer_memory): Likewise.
2407         (mips_load_srec): Likewise.
2408         (pmon_end_download): Likewise.
2409         * remote.c (new_remote_state): Likewise.
2410         (map_regcache_remote_table): Likewise.
2411         (remote_register_number_and_offset): Likewise.
2412         (init_remote_state): Likewise.
2413         (get_memory_packet_size): Likewise.
2414         (remote_pass_signals): Likewise.
2415         (remote_program_signals): Likewise.
2416         (remote_start_remote): Likewise.
2417         (remote_check_symbols): Likewise.
2418         (remote_query_supported): Likewise.
2419         (extended_remote_attach): Likewise.
2420         (process_g_packet): Likewise.
2421         (store_registers_using_G): Likewise.
2422         (putpkt_binary): Likewise.
2423         (read_frame): Likewise.
2424         (compare_sections_command): Likewise.
2425         (remote_hostio_pread): Likewise.
2426         (remote_hostio_readlink): Likewise.
2427         (remote_file_put): Likewise.
2428         (remote_file_get): Likewise.
2429         (remote_pid_to_exec_file): Likewise.
2430         (_initialize_remote): Likewise.
2431         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2432         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2433         * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2434         (bfd_uses_spe_extensions): Likewise.
2435         * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
2436         * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
2437         * solib-dsbt.c (decode_loadmap): Likewise.
2438         (fetch_loadmap): Likewise.
2439         (scan_dyntag): Likewise.
2440         (enable_break): Likewise.
2441         (dsbt_relocate_main_executable): Likewise.
2442         * solib-frv.c (fetch_loadmap): Likewise.
2443         (enable_break2): Likewise.
2444         (frv_relocate_main_executable): Likewise.
2445         * solib-spu.c (spu_relocate_main_executable): Likewise.
2446         (spu_bfd_open): Likewise.
2447         * solib-svr4.c (lm_info_read): Likewise.
2448         (read_program_header): Likewise.
2449         (find_program_interpreter): Likewise.
2450         (scan_dyntag): Likewise.
2451         (elf_locate_base): Likewise.
2452         (open_symbol_file_object): Likewise.
2453         (read_program_headers_from_bfd): Likewise.
2454         (svr4_relocate_main_executable): Likewise.
2455         * solib-target.c (solib_target_relocate_section_addresses): Likewise.
2456         * solib.c (solib_find_1): Likewise.
2457         (exec_file_find): Likewise.
2458         (solib_find): Likewise.
2459         * source.c (openp): Likewise.
2460         (print_source_lines_base): Likewise.
2461         (forward_search_command): Likewise.
2462         * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
2463         * spu-tdep.c (spu2ppu_prev_register): Likewise.
2464         (spu_get_overlay_table): Likewise.
2465         * stabsread.c (patch_block_stabs): Likewise.
2466         (define_symbol): Likewise.
2467         (again:): Likewise.
2468         (read_member_functions): Likewise.
2469         (read_one_struct_field): Likewise.
2470         (read_enum_type): Likewise.
2471         (common_block_start): Likewise.
2472         * stack.c (read_frame_arg): Likewise.
2473         (backtrace_command): Likewise.
2474         * stap-probe.c (stap_parse_register_operand): Likewise.
2475         * symfile.c (syms_from_objfile_1): Likewise.
2476         (find_separate_debug_file): Likewise.
2477         (load_command): Likewise.
2478         (load_progress): Likewise.
2479         (load_section_callback): Likewise.
2480         (reread_symbols): Likewise.
2481         (add_filename_language): Likewise.
2482         (allocate_compunit_symtab): Likewise.
2483         (read_target_long_array): Likewise.
2484         (simple_read_overlay_table): Likewise.
2485         * symtab.c (symbol_set_names): Likewise.
2486         (resize_symbol_cache): Likewise.
2487         (rbreak_command): Likewise.
2488         (completion_list_add_name): Likewise.
2489         (completion_list_objc_symbol): Likewise.
2490         (add_filename_to_list): Likewise.
2491         * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
2492         * target-memory.c (target_write_memory_blocks): Likewise.
2493         * target.c (target_read_string): Likewise.
2494         (read_whatever_is_readable): Likewise.
2495         (target_read_alloc_1): Likewise.
2496         (simple_search_memory): Likewise.
2497         (target_fileio_read_alloc_1): Likewise.
2498         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2499         * top.c (command_line_input): Likewise.
2500         * tracefile-tfile.c (tfile_fetch_registers): Likewise.
2501         * tracefile.c (tracefile_fetch_registers): Likewise.
2502         * tracepoint.c (add_memrange): Likewise.
2503         (init_collection_list): Likewise.
2504         (add_aexpr): Likewise.
2505         (trace_dump_actions): Likewise.
2506         (parse_trace_status): Likewise.
2507         (parse_tracepoint_definition): Likewise.
2508         (parse_tsv_definition): Likewise.
2509         (parse_static_tracepoint_marker_definition): Likewise.
2510         * tui/tui-file.c (tui_sfileopen): Likewise.
2511         (tui_file_adjust_strbuf): Likewise.
2512         * tui/tui-io.c (tui_expand_tabs): Likewise.
2513         * tui/tui-source.c (tui_set_source_content): Likewise.
2514         * typeprint.c (find_global_typedef): Likewise.
2515         * ui-file.c (do_ui_file_xstrdup): Likewise.
2516         (ui_file_obsavestring): Likewise.
2517         (mem_file_write): Likewise.
2518         * utils.c (make_hex_string): Likewise.
2519         (get_regcomp_error): Likewise.
2520         (puts_filtered_tabular): Likewise.
2521         (gdb_realpath_keepfile): Likewise.
2522         (ldirname): Likewise.
2523         (gdb_bfd_errmsg): Likewise.
2524         (substitute_path_component): Likewise.
2525         * valops.c (search_struct_method): Likewise.
2526         (find_oload_champ_namespace_loop): Likewise.
2527         * valprint.c (print_decimal_chars): Likewise.
2528         (read_string): Likewise.
2529         (generic_emit_char): Likewise.
2530         * varobj.c (varobj_delete): Likewise.
2531         (varobj_value_get_print_value): Likewise.
2532         * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
2533         * windows-tdep.c (display_one_tib): Likewise.
2534         * xcoffread.c (read_xcoff_symtab): Likewise.
2535         (process_xcoff_symbol): Likewise.
2536         (swap_sym): Likewise.
2537         (scan_xcoff_symtab): Likewise.
2538         (xcoff_initial_scan): Likewise.
2539         * xml-support.c (gdb_xml_end_element): Likewise.
2540         (xml_process_xincludes): Likewise.
2541         (xml_fetch_content_from_file): Likewise.
2542         * xml-syscall.c (xml_list_of_syscalls): Likewise.
2543         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2544
2545 2015-09-23  James Bowman  <james.bowman@ftdichip.com>
2546
2547         * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
2548         instead of builtin_func_ptr.
2549         (ft32_pointer_to_address): New function.
2550         (ft32_address_class_type_flags): New function.
2551         (ft32_address_class_type_flags_to_name): New function.
2552         (ft32_address_class_name_to_type_flags): New function.
2553         (ft32_gdbarch_init): Set tdep->pc_type.  Call
2554         set_gdbarch_pointer_to_address,
2555         set_gdbarch_address_class_type_flags
2556         set_gdbarch_address_class_name_to_type_flags,
2557         and set_gdbarch_address_class_type_flags_to_name.
2558         * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
2559
2560 2015-09-23  Pierre-Marie de Rodat  <derodat@adacore.com>
2561
2562         * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
2563         value is a reference, actually dereference it in order to get
2564         the underlying value.
2565
2566 2015-09-22  Simon Marchi  <simon.marchi@ericsson.com>
2567
2568         * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
2569
2570 2015-09-21  Simon Marchi  <simon.marchi@ericsson.com>
2571
2572         * cli/cli-setshow.c (cmd_show_list): Constify a variable.
2573         * linespec.c (linespec_lexer_lex_string): Same.
2574
2575 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2576
2577         * NEWS: Mention support for fast tracepoints on aarch64-linux.
2578
2579 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2580
2581         * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
2582         variable.  Call aarch64_decode_adr instead of
2583         aarch64_decode_adrp.
2584         * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
2585         (aarch64_decode_adr): New function declaration.
2586         * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
2587         (aarch64_decode_adr): New function, factored out from
2588         aarch64_decode_adrp to decode both adr and adrp instructions.
2589
2590 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2591
2592         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
2593         (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
2594         (aarch64-insn.o): New rule.
2595         * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
2596         (aarch64*-*-linux*): Likewise.
2597         * arch/aarch64-insn.c: New file.
2598         * arch/aarch64-insn.h: New file.
2599         * aarch64-tdep.c: Include arch/aarch64-insn.h.
2600         (aarch64_debug): Move to arch/aarch64-insn.c.  Declare in
2601         arch/aarch64-insn.h.
2602         (decode_add_sub_imm): Rename to ...
2603         (aarch64_decode_add_sub_imm): ... this.
2604         (decode_adrp): Rename to ...
2605         (aarch64_decode_adrp): ... this.  Move to arch/aarch64-insn.c.
2606         Declare in arch/aarch64-insn.h.
2607         (decode_b): Rename to ...
2608         (aarch64_decode_b): ... this.  Move to arch/aarch64-insn.c.
2609         Declare in arch/aarch64-insn.h.
2610         (decode_bcond): Rename to ...
2611         (aarch64_decode_bcond): ... this.  Move to arch/aarch64-insn.c.
2612         Declare in arch/aarch64-insn.h.
2613         (decode_br): Rename to ...
2614         (aarch64_decode_br): ... this.
2615         (decode_cb): Rename to ...
2616         (aarch64_decode_cb): ... this.  Move to arch/aarch64-insn.c.
2617         Declare in arch/aarch64-insn.h.
2618         (decode_eret): Rename to ...
2619         (aarch64_decode_eret): ... this.
2620         (decode_movz): Rename to ...
2621         (aarch64_decode_movz): ... this.
2622         (decode_orr_shifted_register_x): Rename to ...
2623         (aarch64_decode_orr_shifted_register_x): ... this.
2624         (decode_ret): Rename to ...
2625         (aarch64_decode_ret): ... this.
2626         (decode_stp_offset): Rename to ...
2627         (aarch64_decode_stp_offset): ... this.
2628         (decode_stp_offset_wb): Rename to ...
2629         (aarch64_decode_stp_offset_wb): ... this.
2630         (decode_stur): Rename to ...
2631         (aarch64_decode_stur): ... this.
2632         (decode_tb): Rename to ...
2633         (aarch64_decode_tb): ... this.  Move to arch/aarch64-insn.c.
2634         Declare in arch/aarch64-insn.h.
2635         (aarch64_analyze_prologue): Adjust calls to renamed functions.
2636
2637 2015-09-20  Doug Evans  <xdje42@gmail.com>
2638
2639         * dwarf2read.c (add_partial_symbol): Remove outdated comments.
2640
2641 2015-09-20  Doug Evans  <xdje42@gmail.com>
2642
2643         * dwarf2read.c (dwarf2_compute_name): Add FIXME.  Don't use a local
2644         variable name that collides with a parameter.
2645
2646 2015-09-20  Joel Brobecker  <brobecker@adacore.com>
2647
2648         * dwarf2loc.c (locexpr_get_frame_base): Renames
2649         block_op_get_frame_base.
2650         (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
2651         block_op_get_frame_base by reference to locexpr_get_frame_base.
2652         (loclist_get_frame_base): New function, near identical copy of
2653         locexpr_get_frame_base.
2654         (dwarf2_block_frame_base_loclist_funcs): Replace reference to
2655         block_op_get_frame_base by reference to loclist_get_frame_base.
2656
2657 2015-09-19  Doug Evans  <xdje42@gmail.com>
2658
2659         * ravenscar-thread.c (ravenscar_inferior_created): Replace
2660         current_inferior ()->gdbarch with its wrapper target_gdbarch.
2661
2662 2015-09-18  Doug Evans  <xdje42@gmail.com>
2663
2664         * linux-thread-db.c (record_thread): Return the created thread.
2665         (thread_from_lwp): Likewise.
2666         (thread_db_get_thread_local_address): Update.
2667
2668 2015-09-18  Doug Evans  <xdje42@gmail.com>
2669
2670         * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
2671         move only member demangled_name up.  All uses updated.
2672
2673 2015-09-18  Doug Evans  <xdje42@gmail.com>
2674
2675         * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
2676         kind of minimal symbol in the error message.
2677         * objfiles.c (objfile_flavour_name): New function.
2678         * objfiles.h (objfile_flavour_name): Declare.
2679
2680 2015-09-18  Yao Qi  <yao.qi@linaro.org>
2681
2682         * nat/aarch64-linux.c: Include elf/common.h,
2683         nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
2684         (aarch64_ps_get_thread_area): New function.
2685         * nat/aarch64-linux.h: Include gdb_proc_service.h.
2686         (aarch64_ps_get_thread_area): Declare.
2687         * aarch64-linux-nat.c (ps_get_thread_area): Call
2688         aarch64_ps_get_thread_area.
2689
2690 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2691
2692         * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
2693
2694 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2695
2696         * NEWS: Announce new scheduler-locking mode.
2697         * infrun.c (schedlock_replay): New.
2698         (scheduler_enums): Add schedlock_replay.
2699         (scheduler_mode): Change default to schedlock_replay.
2700         (user_visible_resume_ptid): Handle schedlock_replay.
2701         (clear_proceed_status_thread): Stop replaying if resumed thread is
2702         not replaying.
2703         (schedlock_applies): Handle schedlock_replay.
2704         (_initialize_infrun): Document new scheduler-locking mode.
2705         * record-btrace.c (record_btrace_resume): Remove code to stop other
2706         threads when not replaying the resumed thread.
2707
2708 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2709
2710         * record-btrace.c ((record_btrace_will_replay): New.
2711         (init_record_btrace_ops): Initialize to_record_will_replay.
2712         * record-full.c ((record_full_will_replay): New.
2713         (init_record_full_ops): Initialize to_record_will_replay.
2714         * target-delegates.c: Regenerated.
2715         * target.c (target_record_will_replay): New.
2716         * target.h (struct target_ops) <to_record_will_replay>: New.
2717         (target_record_will_replay): New.
2718
2719 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2720
2721         * record-btrace.c (record_btrace_resume): Call
2722         target_record_stop_replaying.
2723         (record_btrace_stop_replaying_all): New.
2724         (init_record_btrace_ops): Initialize to_record_stop_replaying.
2725         * record-full.c (record_full_stop_replaying): New.
2726         (init_record_full_ops ): Initialize to_record_stop_replaying.
2727         * target-delegates.c: Regenerated.
2728         * target.c (target_record_stop_replaying): New.
2729         * target.h (struct target_ops) <to_record_stop_replaying>: New.
2730         (target_record_stop_replaying): New.
2731
2732 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2733
2734         * record-btrace.c (record_btrace_xfer_partial)
2735         (record_btrace_store_registers, record_btrace_prepare_to_store):
2736         Call record_btrace_is_replaying with inferior_ptid instead of
2737         minus_one_ptid.
2738         (record_btrace_store_registers): Change error message.
2739
2740 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2741
2742         * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2743         Update users to pass minus_one_ptid.
2744         * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2745         * record.c (cmd_record_delete): Pass inferior_ptid to
2746         target_record_is_replaying.
2747         * target-delegates.c: Regenerated.
2748         * target.c (target_record_is_replaying): Add ptid argument.
2749         * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2750         argument.
2751         (target_record_is_replaying): Add ptid argument.
2752
2753 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2754
2755         * record-btrace.c (record_btrace_open): Remove non_stop check.
2756         * NEWS: Announce that record btrace supports non-stop mode.
2757
2758 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2759
2760         * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2761         in the TARKET_WAITKIND_NO_HISTORY case.
2762
2763 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2764
2765         * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2766         (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2767
2768 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2769
2770         * record-btrace.c (get_thread_current_frame): New.
2771         (record_btrace_start_replaying): Call get_thread_current_frame.
2772
2773 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2774
2775         * record-btrace.c (record_btrace_resume_thread): A move request
2776         overwrites a previous move request.
2777         (record_btrace_find_resume_thread): Removed.
2778         (record_btrace_resume): Resume all requested threads.
2779
2780 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2781
2782         * record-btrace.c: Include vec.h.
2783         (record_btrace_find_thread_to_move): Removed.
2784         (btrace_step_no_resumed, btrace_step_again)
2785         (record_btrace_stop_replaying_at_end): New.
2786         (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2787         (record_btrace_single_step_forward): Remove calls to
2788         record_btrace_stop_replaying.
2789         (record_btrace_step_thread): Do only one step for BTHR_CONT and
2790         BTHR_RCONT.  Keep threads at the end of their history moving.
2791         (record_btrace_wait): Call record_btrace_step_thread for all threads
2792         until one reports an event.  Call record_btrace_stop_replaying_at_end
2793         for the eventing thread.
2794
2795 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2796
2797         * record-btrace.c (record_btrace_single_step_forward): Return
2798         NO_HISTORY if a step brings us to the end of the execution history.
2799
2800 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2801
2802         * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2803         to ...
2804         (record_btrace_single_step_forward): ... here and
2805         (record_btrace_single_step_backward): ... here.
2806
2807 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2808
2809         * record-btrace.c (btrace_step_spurious)
2810         (record_btrace_single_step_forward)
2811         (record_btrace_single_step_backward): New.
2812         (record_btrace_step_thread): Call record_btrace_single_step_forward
2813         and record_btrace_single_step_backward.
2814
2815 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2816
2817         * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2818         (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2819
2820 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2821
2822         * record-btrace.c (btrace_thread_flag_to_str)
2823         (record_btrace_cancel_resume): New.
2824         (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2825         (record_btrace_resume): Print execution direction.
2826         (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2827         (record_btrace_wait): Call record_btrace_cancel_resume.
2828
2829 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2830
2831         * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2832         * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2833         (record_btrace_find_thread_to_move): Also accept threads that have
2834         BTHR_STOP set.
2835         (btrace_step_stopped_on_request, record_btrace_stop): New.
2836         (record_btrace_step_thread): Support BTHR_STOP.
2837         (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2838         (init_record_btrace_ops): Initialize to_stop.
2839
2840 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2841
2842         * record-btrace.c (record_btrace_wait): Replace non_stop check with
2843         target_is_non_stop_p ().
2844
2845 2015-09-15  Pierre-Marie de Rodat  <derodat@adacore.com>
2846
2847         * ada-typeprint.c (print_array_type): Do not describe arrays as
2848         packed when they embed dynamic elements.
2849
2850 2015-09-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
2851
2852         * symtab.h (address_class): Document that TLS variables
2853         are handled by LOC_UNRESOLVED.
2854         * findvar.c (default_read_var_value): Don't relocate TLS variables.
2855         * printcmd.c (address_info): Don't relocate TLS variables.
2856
2857 2015-09-15  Pierre Langlois  <pierre.langlois@arm.com>
2858
2859         * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2860         (decode_adrp): Likewise.
2861         (decode_b): Likewise.
2862         (decode_bcond): Likewise.
2863         (decode_br): Likewise.
2864         (decode_cb): Likewise.
2865         (decode_eret): Likewise.
2866         (decode_movz): Likewise.
2867         (decode_orr_shifted_register_x): Likewise.
2868         (decode_ret): Likewise.
2869         (decode_stp_offset): Likewise.
2870         (decode_stp_offset_wb): Likewise.
2871         (decode_stur): Likewise.
2872         (decode_tb): Likewise.
2873         (aarch64_analyze_prologue): Likewise.
2874         (pass_in_x): Likewise.
2875         (pass_in_v): Likewise.
2876         (pass_on_stack): Likewise.
2877         (aarch64_push_dummy_call): Likewise.
2878         (aarch64_extract_return_value): Likewise.
2879         (aarch64_store_return_value): Likewise.
2880         (aarch64_return_value): Likewise.
2881         (aarch64_record_asimd_load_store): Likewise.
2882         (aarch64_record_load_store): Likewise.
2883         (aarch64_record_data_proc_simd_fp): Likewise.
2884
2885 2015-09-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
2886
2887         * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2888         * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2889         (ppc64_skip_trampoline_code_1): ... here.
2890         (ppc64_skip_trampoline_code): New wrapper function.
2891         * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2892
2893 2015-09-15  Yao Qi  <yao.qi@linaro.org>
2894
2895         * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2896         function.
2897         (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2898         * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2899         if target_can_do_single_step returns 1.
2900         * remote.c (struct vCont_action_support) <s, S>: New fields.
2901         (PACKET_vContSupported): New enum.
2902         (remote_protocol_features): New element for vContSupported.
2903         (remote_query_supported): Append "vContSupported+".
2904         (remote_vcont_probe): Remove support_s and support_S, use
2905         rs->supports_vCont.s and rs->supports_vCont.S instead.  Disable
2906         vCont packet if c and C actions are not supported.
2907         (remote_can_do_single_step): New function.
2908         (init_remote_ops): Install it to to_can_do_single_step.
2909         (_initialize_remote): Call add_packet_config_cmd.
2910         * target.h (struct target_ops) <to_can_do_single_step>: New field.
2911         (target_can_do_single_step): New macro.
2912         * target-delegates.c: Re-generated.
2913
2914 2015-09-15  Yao Qi  <yao.qi@linaro.org>
2915
2916         * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2917         (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2918         * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2919         New function.
2920         (aarch64_siginfo_from_compat_siginfo): New function.
2921         * nat/aarch64-linux.h: Include signal.h.
2922         (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2923         (compat_timer_t, compat_clock_t): Likewise.
2924         (struct compat_timeval): New.
2925         (union compat_sigval): New.
2926         (struct compat_siginfo): New.
2927         (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2928         (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2929         (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2930         (cpt_si_band, cpt_si_fd): Likewise.
2931
2932 2015-09-14  Pedro Alves  <palves@redhat.com>
2933
2934         * infrun.c (current_stop_id): New global.
2935         (get_stop_id, new_stop_id): New functions.
2936         (fetch_inferior_event): Handle normal_stop proceeding the target.
2937         (struct stop_context): New.
2938         (save_stop_context, release_stop_context_cleanup)
2939         (stop_context_changed): New functions.
2940         (normal_stop): Return true if the hook-stop changes the stop
2941         context.
2942         * infrun.h (get_stop_id): Declare.
2943         (normal_stop): Now returns int.  Add documentation.
2944
2945 2015-09-14  Pierre-Marie de Rodat  <derodat@adacore.com>
2946
2947         * ada-lang.c (ada_value_ptr_subscript): Update the heading
2948         comment.  Handle packed arrays.
2949
2950 2015-09-14  Pedro Alves  <palves@redhat.com>
2951
2952         * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2953         mention of maint set/show target-non-stop.
2954
2955 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2956
2957         * NEWS: Announce new remote packets for the exec-events
2958         feature and the exec-events feature and associated commands.
2959
2960 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2961
2962         * remote.c (remote_exec_event_p): New function.
2963         (remote_insert_exec_catchpoint): New function.
2964         (remote_remove_exec_catchpoint): New function.
2965         (init_extended_remote_ops): Initialize extended_remote_ops
2966         members to_insert_exec_catchpoint and
2967         to_remove_exec_catchpoint.
2968
2969 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2970             Luis Machado  <lgustavo@codesourcery.com>
2971
2972         * infrun.c (follow_exec): Use process-style ptid for
2973         exec message.  Call add_inferior_with_spaces and
2974         target_follow_exec.
2975         * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2976         * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2977         * remote.c (remote_pspace_data): New static variable.
2978         (remote_pspace_data_cleanup): New function.
2979         (get_remote_exec_file): New function.
2980         (set_remote_exec_file_1): New function.
2981         (set_remote_exec_file): New function.
2982         (show_remote_exec_file): New function.
2983         (remote_exec_file): Delete static variable.
2984         (anonymous enum) <PACKET_exec_event_feature>: New
2985         enumeration constant.
2986         (remote_protocol_features): Add entry for exec-events feature.
2987         (remote_query_supported): Add client side of qSupported query
2988         for exec-events feature.
2989         (remote_follow_exec): New function.
2990         (remote_parse_stop_reply): Handle 'exec' stop reason.
2991         (extended_remote_run, extended_remote_create_inferior): Call
2992         get_remote_exec_file and set_remote_exec_file_1.
2993         (init_extended_remote_ops) <to_follow_exec>: Initialize new
2994         member.
2995         (_initialize_remote): Call
2996         register_program_space_data_with_cleanup.  Call
2997         add_packet_config_cmd for remote exec-events feature.
2998         Modify call to add_setshow_string_noescape_cmd for exec-file
2999         to use new functions set_remote_exec_file and
3000         show_remote_exec_file.
3001         * target-debug.h, target-delegates.c: Regenerated.
3002         * target.c (target_follow_exec): New function.
3003         * target.h (struct target_ops) <to_follow_exec>: New member.
3004         (target_follow_exec): Declare new function.
3005
3006 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
3007
3008         * aarch64-tdep.c (decode_cb): Move up comment describing the
3009         encoding.
3010         (decode_tb): Fix a typo in comment above the function.  Move up
3011         comment describing the encoding.
3012
3013 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
3014
3015         * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
3016
3017 2015-09-11  Mihail-Marian Nistor  <mihail.nistor@freescale.com>
3018
3019         PR gdb/18947
3020         * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
3021         glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
3022
3023 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
3024
3025         * ada-lang.c (scan_discrim_bound): Factor out arithmetic
3026         operations.
3027
3028 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
3029
3030         * ada-lang.c (ada_search_struct_field): Constify parameters
3031         and/or variables..
3032         (xget_renaming_scope): Likewise.
3033         (ada_is_redundant_range_encoding): Likewise.
3034         (scan_discrim_bound): Likewise.
3035         (to_fixed_range_type): Likewise.
3036
3037 2015-09-10  Yao Qi  <yao.qi@linaro.org>
3038
3039         * breakpoint.c (download_tracepoint_locations): New local
3040         can_download_tracepoint.  Check the result of
3041         target_can_download_tracepoint and save it in
3042         can_download_tracepoint if there are tracepoints to download.
3043         * linux-nat.h (enum tribool): Move it to ...
3044         * common/common-types.h: ... here.
3045
3046 2015-09-09  Pedro Alves  <palves@redhat.com>
3047
3048         * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
3049         * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
3050
3051 2015-09-09  Pedro Alves  <palves@redhat.com>
3052
3053         * continuations.c (add_continuation, restore_thread_cleanup)
3054         (do_all_continuations_ptid, do_all_continuations_thread_callback)
3055         (do_all_continuations_thread, do_all_continuations)
3056         (discard_all_continuations_thread_callback)
3057         (discard_all_continuations_thread, discard_all_continuations)
3058         (add_intermediate_continuation)
3059         (do_all_intermediate_continuations_thread_callback)
3060         (do_all_intermediate_continuations_thread)
3061         (do_all_intermediate_continuations)
3062         (discard_all_intermediate_continuations_thread_callback)
3063         (discard_all_intermediate_continuations_thread)
3064         (discard_all_intermediate_continuations): Delete.
3065         * continuations.h (add_continuation, do_all_continuations)
3066         (do_all_continuations_thread, discard_all_continuations)
3067         (discard_all_continuations_thread, add_intermediate_continuation)
3068         (do_all_intermediate_continuations)
3069         (do_all_intermediate_continuations_thread)
3070         (discard_all_intermediate_continuations)
3071         (discard_all_intermediate_continuations_thread): Delete
3072         declarations.
3073         * event-top.c (stdin_event_handler): Delete references to
3074         continuations.
3075         * gdbthread.h (struct thread_info): Delete continuations and
3076         intermediate_continuations fields.
3077         * inf-loop.c (inferior_event_handler): Remove references to
3078         continuations.
3079         * infrun.c (infrun_thread_stop_requested_callback): Remove
3080         references to continuations.
3081         * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
3082         * thread.c: Don't include "continuations.h".
3083         (clear_thread_inferior_resources): Remove references to
3084         continuations.
3085
3086 2015-09-09  Pedro Alves  <palves@redhat.com>
3087
3088         * infcall.c (struct dummy_frame_context_saver): Delete.
3089         (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
3090         (dummy_frame_context_saver_drop)
3091         (dummy_frame_context_saver_cleanup)
3092         (dummy_frame_context_saver_get_regs)
3093         (dummy_frame_context_saver_setup): Delete.
3094         * infcall.h (dummy_frame_context_saver_drop)
3095         (dummy_frame_context_saver_cleanup)
3096         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
3097         Delete.
3098         (get_return_value): Remove 'ctx_saver' paremeter.  Adjust.
3099         * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
3100         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
3101
3102 2015-09-09  Pedro Alves  <palves@redhat.com>
3103
3104         * breakpoint.c: Include "thread-fsm.h".
3105         (struct until_break_command_continuation_args): Delete.
3106         (struct until_break_fsm): New.
3107         (until_break_fsm_ops): New global.
3108         (new_until_break_fsm, until_break_fsm_should_stop): New functions.
3109         (until_break_command_continuation): Delete.
3110         (until_break_fsm_clean_up): New function.
3111         (until_break_fsm_async_reply_reason): New function.
3112         (until_break_command): Adjust to create an until_break_fsm instead
3113         of a continuation.
3114         (momentary_bkpt_print_it): No longer print MI's async-stop-reason
3115         here.
3116         * infcmd.c (struct until_next_fsm): New.
3117         (until_next_fsm_ops): New global.
3118         (new_until_next_fsm, until_next_fsm_should_stop): New function.
3119         (until_next_continuation): Delete.
3120         (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
3121         functions.
3122         (until_next_command): Adjust to create a new until_next_fsm
3123         instead of a continuation.
3124
3125 2015-09-09  Pedro Alves  <palves@redhat.com>
3126
3127         * infcall.c: Include thread_fsm.h.
3128         (struct call_return_meta_info): New.
3129         (get_call_return_value): New function, factored out from
3130         call_function_by_hand_dummy.
3131         (struct call_thread_fsm): New.
3132         (call_thread_fsm_ops): New global.
3133         (new_call_thread_fsm, call_thread_fsm_should_stop)
3134         (call_thread_fsm_should_notify_stop): New functions.
3135         (run_inferior_call): Add 'sm' parameter.  Associate the FSM with
3136         the thread.
3137         (call_function_by_hand_dummy): Create a new call_thread_fsm
3138         instance, associate it with the thread, and wait for the FSM to
3139         finish.  If finished successfully, fetch the function's result
3140         value out of the FSM.
3141         * infrun.c (fetch_inferior_event): If the FSM says the stop
3142         shouldn't be notified, don't call normal_stop.
3143         (maybe_remove_breakpoints): New function, factored out from ...
3144         (normal_stop): ... here.  Simplify.
3145         * infrun.h (maybe_remove_breakpoints): Declare.
3146         * thread-fsm.c (thread_fsm_should_notify_stop): New function.
3147         (thread-fsm.h) <struct thread_fsm_ops>: New field.
3148         (thread_fsm_should_notify_stop): Declare.
3149
3150 2015-09-09  Pedro Alves  <palves@redhat.com>
3151
3152         * Makefile.in (COMMON_OBS): Add thread-fsm.o.
3153         * breakpoint.c (handle_jit_event): Print debug output.
3154         (bpstat_what): Split event callback handling to ...
3155         (bpstat_run_callbacks): ... this new function.
3156         (momentary_bkpt_print_it): No longer handle bp_finish here.
3157         * breakpoint.h (bpstat_run_callbacks): Declare.
3158         * gdbthread.h (struct thread_info) <step_multi>: Delete field.
3159         <thread_fsm>: New field.
3160         (thread_cancel_execution_command): Declare.
3161         * infcmd.c: Include thread-fsm.h.
3162         (struct step_command_fsm): New.
3163         (step_command_fsm_ops): New global.
3164         (new_step_command_fsm, step_command_fsm_prepare): New functions.
3165         (step_1): Adjust to use step_command_fsm_prepare and
3166         prepare_one_step.
3167         (struct step_1_continuation_args): Delete.
3168         (step_1_continuation): Delete.
3169         (step_command_fsm_should_stop): New function.
3170         (step_once): Delete.
3171         (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
3172         (prepare_one_step): New function, based on step_once.
3173         (until_next_command): Remove step_multi reference.
3174         (struct return_value_info): New.
3175         (print_return_value): Rename to ...
3176         (print_return_value_1): ... this.  New struct return_value_info
3177         parameter.  Adjust.
3178         (print_return_value): Reimplement as wrapper around
3179         print_return_value_1.
3180         (struct finish_command_fsm): New.
3181         (finish_command_continuation): Delete.
3182         (finish_command_fsm_ops): New global.
3183         (new_finish_command_fsm, finish_command_fsm_should_stop): New
3184         functions.
3185         (finish_command_fsm_clean_up, finish_command_fsm_return_value):
3186         New.
3187         (finish_command_continuation_free_arg): Delete.
3188         (finish_command_fsm_async_reply_reason): New.
3189         (finish_backward, finish_forward): Change symbol parameter to a
3190         finish_command_fsm.  Adjust.
3191         (finish_command): Create a finish_command_fsm.  Adjust.
3192         * infrun.c: Include "thread-fsm.h".
3193         (clear_proceed_status_thread): Delete the thread's FSM.
3194         (infrun_thread_stop_requested_callback): Cancel the thread's
3195         execution command.
3196         (clean_up_just_stopped_threads_fsms): New function.
3197         (fetch_inferior_event): Handle the event_thread's should_stop
3198         method saying the command isn't done yet.
3199         (process_event_stop_test): Run breakpoint callbacks here.
3200         (print_stop_event): Rename to ...
3201         (print_stop_location): ... this.
3202         (restore_current_uiout_cleanup): New function.
3203         (print_stop_event): Reimplement.
3204         (normal_stop): No longer notify the end_stepping_range observers
3205         here handle "step N" nor "finish" here.  No longer call
3206         print_stop_event here.
3207         * infrun.h (struct return_value_info): Forward declare.
3208         (print_return_value): Declare.
3209         (print_stop_event): Change prototype.
3210         * thread-fsm.c: New file.
3211         * thread-fsm.h: New file.
3212         * thread.c: Include "thread-fsm.h".
3213         (thread_cancel_execution_command): New function.
3214         (clear_thread_inferior_resources): Call it.
3215         * cli/cli-interp.c (cli_on_normal_stop): New function.
3216         (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
3217         observer.
3218         * mi/mi-interp.c: Include "thread-fsm.h".
3219         (restore_current_uiout_cleanup): Delete.
3220         (mi_on_normal_stop): If the thread has an FSM associated, and it
3221         finished, ask it for the async-reply-reason to print.  Always call
3222         print_stop_event here, regardless of the top-level interpreter.
3223         Check bpstat_what to tell whether an asynchronous breakpoint hit
3224         triggered.
3225         * tui/tui-interp.c (tui_on_normal_stop): New function.
3226         (tui_init): Install tui_on_normal_stop as normal_stop observer.
3227
3228 2015-09-09  Pedro Alves  <palves@redhat.com>
3229
3230         * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
3231         check whether the target can async.
3232         * inf-loop.c (inferior_event_handler): Only call target_async if
3233         the target can async.
3234         * infcall.c: Include top.h and interps.h.
3235         (run_inferior_call): For the interpreter to sync mode while
3236         running the infcall.  Call wait_sync_command_done instead of
3237         wait_for_inferior plus normal_stop.
3238         * infcmd.c (prepare_execution_command): Don't check whether the
3239         target can async when running in the foreground.
3240         (step_1): Delete synchronous case handling.
3241         (step_once): Always install a continuation, even in sync mode.
3242         (until_next_command, finish_forward): Don't check whether the
3243         target can async.
3244         (attach_command_post_wait, notice_new_inferior): Always install a
3245         continuation, even in sync mode.
3246         * infrun.c (mark_infrun_async_event_handler): New function.
3247         (proceed): In sync mode, mark infrun's event source instead of
3248         waiting for events here.
3249         (fetch_inferior_event): If the target can't async, do a blocking
3250         wait.
3251         (prepare_to_wait): In sync mode, mark infrun's event source.
3252         (infrun_async_inferior_event_handler): No longer bail out if the
3253         target can't async.
3254         * infrun.h (mark_infrun_async_event_handler): New declaration.
3255         * linux-nat.c (linux_nat_wait_1): Remove calls to
3256         set_sigint_trap/clear_sigint_trap.
3257         (linux_nat_terminal_inferior): No longer check whether the target
3258         can async.
3259         * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
3260         comment.
3261         (mi_execute_command_input_handler): No longer check whether the
3262         target is async.  Update and simplify comment.
3263         * target.c (default_target_wait): New function.
3264         * target.h (struct target_ops) <to_wait>: Now defaults to
3265         default_target_wait.
3266         (default_target_wait): Declare.
3267         * top.c (wait_sync_command_done): New function, factored out from
3268         ...
3269         (maybe_wait_sync_command_done): ... this.
3270         * top.h (wait_sync_command_done): Declare.
3271         * target-delegates.c: Regenerate.
3272
3273 2015-09-09  Markus Metzger  <markus.t.metzger@intel.com>
3274
3275         * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
3276         * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
3277         Remove include of sys/utsname.h.
3278         (linux_determine_kernel_ptr_bits): Remove.
3279         (linux_determine_kernel_start): New.
3280         (perf_event_is_kernel_addr): Remove tinfo argument.  Update users.
3281         Update check.
3282         (perf_event_skip_bts_record): Remove tinfo argument.  Update users.
3283         (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
3284         initialization.
3285         * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
3286         assignment.
3287
3288 2015-09-07  Pedro Alves  <palves@redhat.com>
3289
3290         * guile/guile-internal.h (as_a_scm_t_subr): New.
3291         * guile/guile.c (misc_guile_functions): Use it.
3292         * guile/scm-arch.c (arch_functions): Use it.
3293         * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
3294         Use it.
3295         * guile/scm-breakpoint.c (breakpoint_functions): Use it.
3296         * guile/scm-cmd.c (command_functions): Use it.
3297         * guile/scm-disasm.c (disasm_functions): Use it.
3298         * guile/scm-exception.c (exception_functions)
3299         (private_exception_functions): Use it.
3300         * guile/scm-frame.c (frame_functions)
3301         * guile/scm-gsmob.c (gsmob_functions): Use it.
3302         * guile/scm-iterator.c (iterator_functions): Use it.
3303         * guile/scm-lazy-string.c (lazy_string_functions): Use it.
3304         * guile/scm-math.c (math_functions): Use it.
3305         * guile/scm-objfile.c (objfile_functions): Use it.
3306         * guile/scm-param.c (parameter_functions): Use it.
3307         * guile/scm-ports.c (port_functions, private_port_functions): Use
3308         it.
3309         * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
3310         * guile/scm-progspace.c (pspace_functions): Use it.
3311         * guile/scm-string.c (string_functions): Use it.
3312         * guile/scm-symbol.c (symbol_functions): Use it.
3313         * guile/scm-symtab.c (symtab_functions): Use it.
3314         * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
3315         it.
3316         * guile/scm-value.c (value_functions): Use it.
3317
3318 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
3319
3320         * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
3321         (tui_next_win): Likewise.
3322         (tui_prev_win): Likewise.
3323         (tui_partial_win_by_name): Likewise.
3324         (tui_init_generic_part): Likewise.
3325         (init_content_element): Likewise.
3326         (tui_del_window): Likewise.
3327         (tui_free_window): Likewise.
3328         (tui_del_data_windows): Likewise.
3329         (tui_free_data_content): Likewise.
3330         * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
3331         * tui/tui-regs.c (tui_show_register_group): Likewise.
3332         * tui/tui-win.c (tui_resize_all): Likewise.
3333         (tui_set_focus): Likewise.
3334         (tui_set_win_height): Likewise.
3335         (make_invisible_and_set_new_height): Likewise.
3336         * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
3337         * tui/tui-wingeneral.c (make_visible): Likewise.
3338
3339 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
3340
3341         * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
3342
3343 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
3344
3345         * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
3346         pointer.
3347         * dbxread.c (dbx_end_psymtab): Likewise.
3348         * gnu-nat.c (gnu_write_inferior): Likewise.
3349         * mdebugread.c (cross_ref): Likewise.
3350         * p-valprint.c (pascal_val_print): Likewise.
3351         * xcoffread.c (xcoff_end_psymtab): Likewise.
3352
3353 2015-09-04  Yao Qi  <yao.qi@linaro.org>
3354
3355         * NEWS: Mention the aarch64 multi-arch debugging support.
3356
3357 2015-09-03  Pierre-Marie de Rodat  <derodat@adacore.com>
3358
3359         * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
3360         type instead of a TYPE_CODE_INT one for the string_char_type
3361         and the ada_primitive_type_char types.
3362
3363 2015-09-03  Yao Qi  <yao.qi@linaro.org>
3364
3365         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
3366         Move code to aarch64_linux_region_ok_for_watchpoint.  Call
3367         aarch64_linux_region_ok_for_watchpoint.
3368         * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
3369         New function.
3370         * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
3371         Declare it.
3372
3373 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
3374
3375         * gdb_obstack.h (obstack_strdup): Declare.
3376         * gdb_obstack.c (obstack_strdup): Define.
3377         * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
3378         * gdbarch.c: Regenerate.
3379         * gdbarch.h: Regenerate.
3380         * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
3381
3382 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
3383
3384         * gdbtypes.c (copy_type_recursive): Update documentation.
3385
3386 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
3387
3388         * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
3389         as zero.
3390
3391 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
3392
3393         * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
3394
3395 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
3396
3397         * solib-svr4.c (solib_event_probe_action): Call
3398         get_probe_argument_count using TRY...CATCH.
3399         (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
3400
3401 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
3402
3403         * probe.h (struct probe_ops) <get_probe_argument_count,
3404         evaluate_probe_argument, enable_probe, disable_probe>: Mention in
3405         the comment that the function can throw an exception.
3406         (get_probe_argument_count): Likewise.
3407         (evaluate_probe_argument): Likewise.
3408         * stap-probe.c (stap_get_opcode): Call error instead of
3409         internal_error.
3410         (stap_get_expected_argument_type): Likewise.  Add argument
3411         'probe'.  Improve error message by mentioning the probe's name.
3412         (stap_parse_probe_arguments): Adjust call to
3413         stap_get_expected_argument_type.
3414         (stap_get_arg): Add comment.  Assert that 'probe->args_parsed' is
3415         not zero.  Call internal_error if GDB requests an argument but the
3416         probe has no arguments.
3417
3418 2015-09-01  Pierre-Marie de Rodat  <derodat@adacore.com>
3419
3420         * ada-lang.c (ada_resolve_function): Do not ask the user what
3421         match to use when in completion mode.
3422
3423 2015-08-31  Andrew Burgess  <andrew.burgess@embecosm.com>
3424
3425         * tui/tui-data.c (tui_win_name): Make local variable const, remove
3426         cast of NULL.
3427
3428 2015-08-31  Max Filippov  <jcmvbkbc@gmail.com>
3429
3430         * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
3431         call_abi using XSHAL_ABI macro.
3432
3433 2015-08-29  Doug Evans  <xdje42@gmail.com>
3434
3435         * symtab.h (struct symbol): Tweak comment.
3436
3437 2015-08-29  Patrick Palka  <patrick@parcs.ath.cx>
3438
3439         * gdbtypes.c (alloc_type_arch): Allocate the type on the given
3440         gdbarch obstack instead of on the heap.  Update commentary
3441         accordingly.
3442
3443 2015-08-28  Joel Brobecker  <brobecker@adacore.com>
3444
3445         GDB 7.10 released.
3446
3447 2015-08-28  Simon Marchi  <simon.marchi@ericsson.com>
3448
3449         * NEWS: Update entry about non-8-bits addressable memory.
3450
3451 2015-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
3452
3453         Revert:
3454         2014-11-06  Doug Evans  <xdje42@gmail.com>
3455         * solib.c (solib_global_lookup): Fetch arch from objfile,
3456         not target_gdbarch.
3457
3458 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3459
3460         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
3461         attempt to relocate a TLS variable offset.
3462
3463 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3464
3465         * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
3466         registered yet.  Set inferior_ptid while calling target_read_memory.
3467
3468 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3469
3470         * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
3471         (GDB_ARCH_IS_TRAP_BRKPT): ... this.  Add __powerpc__ case.
3472         * linux-nat.c (check_stopped_by_breakpoint): Use
3473         GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
3474
3475 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3476
3477         * linux-thread-db.c (thread_db_get_thread_local_address): If the
3478         thread was not yet discovered, use thread_from_lwp instead of
3479         calling thread_db_find_new_threads_1.
3480
3481 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
3482
3483         * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
3484         statements.
3485
3486 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
3487
3488         * NEWS: Document support for non-8-bits addressable memory.
3489
3490 2015-08-27  Pedro Alves  <palves@redhat.com>
3491
3492         * configure.ac: Remove AC_TYPE_SIGNAL call.
3493         * configure, config.in: Regenerate.
3494
3495 2015-08-27  Pedro Alves  <palves@redhat.com>
3496
3497         * cp-support.c (gdb_demangle): Use sighandler_t.  Remove cast.
3498         * extension-priv.h: Include signal.h.
3499         (struct signal_handler) <handler>: Change type to sighandler_t.
3500         * extension.c (install_gdb_sigint_handler): Use sighandler_t.
3501         * inflow.c (sigint_ours, sigquit_ours): Change type to
3502         sighandler_t.
3503         (child_terminal_inferior): Remove casts.
3504         (child_terminal_ours_1, new_tty): Use sighandler_t.  Remove casts.
3505         (osig): Change type to sighandler_t.
3506         * nto-procfs.c (ofunc): Change type to sighandler_t.
3507         (procfs_wait): Remove casts.
3508         * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
3509         * remote-sim.c (gdbsim_wait): Use sighandler_t.
3510         * utils.c (wait_to_die_with_timeout): Use sighandler_t.
3511
3512 2015-08-27  Pedro Alves  <palves@redhat.com>
3513
3514         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
3515         * gnulib/aclocal.m4: Renegerate.
3516         * gnulib/config.in: Renegerate.
3517         * gnulib/configure: Renegerate.
3518         * gnulib/import/Makefile.am: Update.
3519         * gnulib/import/Makefile.in: Regenerate.
3520         * gnulib/import/m4/gnulib-cache.m4: Update.
3521         * gnulib/import/m4/gnulib-comp.m4: Update.
3522         * gnulib/import/m4/signal_h.m4: New file.
3523         * gnulib/import/signal.in.h: New file.
3524
3525 2015-08-27  Pedro Alves  <palves@redhat.com>
3526
3527         * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
3528         (MIN_MEMORY_PACKET_SIZE): New.
3529         (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
3530         (get_memory_packet_size): Adjust.  No longer limit the max packet
3531         size.
3532         (set_memory_packet_size): Adjust, and remove dead code.
3533         (remote_check_symbols): Use xmalloc and a cleanup instead of
3534         alloca.
3535         (remote_packet_size): No longer cap the packet size.
3536         (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
3537
3538 2015-08-26  Luis Machado  <lgustavo@codesourcery.com>
3539
3540         * compile/compile.c (compile_to_object): Mention language in
3541         error message.
3542
3543 2015-08-26  Patrick Palka  <patrick@parcs.ath.cx>
3544
3545         * target.c (target_pre_inferior): Unset attach_flag.
3546
3547 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
3548
3549         * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
3550         * gdbarch.c: Re-generate.
3551
3552 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
3553
3554         * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
3555         function with the XNEW-family equivalent.
3556         * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
3557         * ada-exp.y (write_ambiguous_var): Likewise.
3558         * ada-lang.c (resolve_subexp): Likewise.
3559         (user_select_syms): Likewise.
3560         (assign_aggregate): Likewise.
3561         (ada_evaluate_subexp): Likewise.
3562         (cache_symbol): Likewise.
3563         * addrmap.c (allocate_key): Likewise.
3564         (addrmap_create_mutable): Likewise.
3565         * aix-thread.c (sync_threadlists): Likewise.
3566         * alpha-tdep.c (alpha_push_dummy_call): Likewise.
3567         (alpha_gdbarch_init): Likewise.
3568         * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
3569         * arm-linux-nat.c (arm_linux_add_process): Likewise.
3570         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3571         * arm-tdep.c (push_stack_item): Likewise.
3572         (arm_displaced_step_copy_insn): Likewise.
3573         (arm_gdbarch_init): Likewise.
3574         (_initialize_arm_tdep): Likewise.
3575         * avr-tdep.c (push_stack_item): Likewise.
3576         * ax-general.c (new_agent_expr): Likewise.
3577         * block.c (block_initialize_namespace): Likewise.
3578         * breakpoint.c (alloc_counted_command_line): Likewise.
3579         (update_dprintf_command_list): Likewise.
3580         (parse_breakpoint_sals): Likewise.
3581         (decode_static_tracepoint_spec): Likewise.
3582         (until_break_command): Likewise.
3583         (clear_command): Likewise.
3584         (update_global_location_list): Likewise.
3585         (get_breakpoint_objfile_data) Likewise.
3586         * btrace.c (ftrace_new_function): Likewise.
3587         (btrace_set_insn_history): Likewise.
3588         (btrace_set_call_history): Likewise.
3589         * buildsym.c (add_symbol_to_list): Likewise.
3590         (record_pending_block): Likewise.
3591         (start_subfile): Likewise.
3592         (start_buildsym_compunit): Likewise.
3593         (push_subfile): Likewise.
3594         (end_symtab_get_static_block): Likewise.
3595         (buildsym_init): Likewise.
3596         * cli/cli-cmds.c (source_command): Likewise.
3597         * cli/cli-decode.c (add_cmd): Likewise.
3598         * cli/cli-script.c (build_command_line): Likewise.
3599         (setup_user_args): Likewise.
3600         (realloc_body_list): Likewise.
3601         (process_next_line): Likewise.
3602         (copy_command_lines): Likewise.
3603         * cli/cli-setshow.c (do_set_command): Likewise.
3604         * coff-pe-read.c (read_pe_exported_syms): Likewise.
3605         * coffread.c (coff_locate_sections): Likewise.
3606         (coff_symtab_read): Likewise.
3607         (coff_read_struct_type): Likewise.
3608         * common/cleanups.c (make_my_cleanup2): Likewise.
3609         * common/common-exceptions.c (throw_it): Likewise.
3610         * common/filestuff.c (make_cleanup_close): Likewise.
3611         * common/format.c (parse_format_string): Likewise.
3612         * common/queue.h (DEFINE_QUEUE_P): Likewise.
3613         * compile/compile-object-load.c (munmap_list_add): Likewise.
3614         (compile_object_load): Likewise.
3615         * compile/compile-object-run.c (compile_object_run): Likewise.
3616         * compile/compile.c (append_args): Likewise.
3617         * corefile.c (specify_exec_file_hook): Likewise.
3618         * cp-support.c (make_symbol_overload_list): Likewise.
3619         * cris-tdep.c (push_stack_item): Likewise.
3620         (cris_gdbarch_init): Likewise.
3621         * ctf.c (ctf_trace_file_writer_new): Likewise.
3622         * dbxread.c (init_header_files): Likewise.
3623         (add_new_header_file): Likewise.
3624         (init_bincl_list): Likewise.
3625         (dbx_end_psymtab): Likewise.
3626         (start_psymtab): Likewise.
3627         (dbx_end_psymtab): Likewise.
3628         * dcache.c (dcache_init): Likewise.
3629         * dictionary.c (dict_create_hashed): Likewise.
3630         (dict_create_hashed_expandable): Likewise.
3631         (dict_create_linear): Likewise.
3632         (dict_create_linear_expandable): Likewise.
3633         * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
3634         * dummy-frame.c (register_dummy_frame_dtor): Likewise.
3635         * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
3636         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3637         (decode_frame_entry_1): Likewise.
3638         * dwarf2expr.c (new_dwarf_expr_context): Likewise.
3639         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
3640         * dwarf2read.c (dwarf2_has_info): Likewise.
3641         (create_signatured_type_table_from_index): Likewise.
3642         (dwarf2_read_index): Likewise.
3643         (dw2_get_file_names_reader): Likewise.
3644         (create_all_type_units): Likewise.
3645         (read_cutu_die_from_dwo): Likewise.
3646         (init_tu_and_read_dwo_dies): Likewise.
3647         (init_cutu_and_read_dies): Likewise.
3648         (create_all_comp_units): Likewise.
3649         (queue_comp_unit): Likewise.
3650         (inherit_abstract_dies): Likewise.
3651         (read_call_site_scope): Likewise.
3652         (dwarf2_add_field): Likewise.
3653         (dwarf2_add_typedef): Likewise.
3654         (dwarf2_add_member_fn): Likewise.
3655         (attr_to_dynamic_prop): Likewise.
3656         (abbrev_table_alloc_abbrev): Likewise.
3657         (abbrev_table_read_table): Likewise.
3658         (add_include_dir): Likewise.
3659         (add_file_name): Likewise.
3660         (dwarf_decode_line_header): Likewise.
3661         (dwarf2_const_value_attr): Likewise.
3662         (dwarf_alloc_block): Likewise.
3663         (parse_macro_definition): Likewise.
3664         (set_die_type): Likewise.
3665         (write_psymtabs_to_index): Likewise.
3666         (create_cus_from_index): Likewise.
3667         (dwarf2_create_include_psymtab): Likewise.
3668         (process_psymtab_comp_unit_reader): Likewise.
3669         (build_type_psymtab_dependencies): Likewise.
3670         (read_comp_units_from_section): Likewise.
3671         (compute_compunit_symtab_includes): Likewise.
3672         (create_dwo_unit_in_dwp_v1): Likewise.
3673         (create_dwo_unit_in_dwp_v2): Likewise.
3674         (read_func_scope): Likewise.
3675         (process_structure_scope): Likewise.
3676         (mark_common_block_symbol_computed): Likewise.
3677         (load_partial_dies): Likewise.
3678         (dwarf2_symbol_mark_computed): Likewise.
3679         * elfread.c (elf_symfile_segments): Likewise.
3680         (elf_read_minimal_symbols): Likewise.
3681         * environ.c (make_environ): Likewise.
3682         * eval.c (evaluate_subexp_standard): Likewise.
3683         * event-loop.c (create_file_handler): Likewise.
3684         (create_async_signal_handler): Likewise.
3685         (create_async_event_handler): Likewise.
3686         (create_timer): Likewise.
3687         * exec.c (build_section_table): Likewise.
3688         * fbsd-nat.c (fbsd_remember_child): Likewise.
3689         * fork-child.c (fork_inferior): Likewise.
3690         * frv-tdep.c (new_variant): Likewise.
3691         * gdbarch.sh (gdbarch_alloc): Likewise.
3692         (append_name): Likewise.
3693         * gdbtypes.c (rank_function): Likewise.
3694         (copy_type_recursive): Likewise.
3695         (add_dyn_prop): Likewise.
3696         * gnu-nat.c (make_proc): Likewise.
3697         (make_inf): Likewise.
3698         (gnu_write_inferior): Likewise.
3699         * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3700         (build_std_type_info_type): Likewise.
3701         * guile/scm-param.c (compute_enum_list): Likewise.
3702         * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
3703         * guile/scm-value.c (gdbscm_value_call): Likewise.
3704         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3705         * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3706         (read_unwind_info): Likewise.
3707         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3708         * infcall.c (dummy_frame_context_saver_setup): Likewise.
3709         (call_function_by_hand_dummy): Likewise.
3710         * infcmd.c (step_once): Likewise.
3711         (finish_forward): Likewise.
3712         (attach_command): Likewise.
3713         (notice_new_inferior): Likewise.
3714         * inferior.c (add_inferior_silent): Likewise.
3715         * infrun.c (add_displaced_stepping_state): Likewise.
3716         (save_infcall_control_state): Likewise.
3717         (save_inferior_ptid): Likewise.
3718         (_initialize_infrun): Likewise.
3719         * jit.c (bfd_open_from_target_memory): Likewise.
3720         (jit_gdbarch_data_init): Likewise.
3721         * language.c (add_language): Likewise.
3722         * linespec.c (decode_line_2): Likewise.
3723         * linux-nat.c (add_to_pid_list): Likewise.
3724         (add_initial_lwp): Likewise.
3725         * linux-thread-db.c (add_thread_db_info): Likewise.
3726         (record_thread): Likewise.
3727         (info_auto_load_libthread_db): Likewise.
3728         * m32c-tdep.c (m32c_gdbarch_init): Likewise.
3729         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3730         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3731         * m88k-tdep.c (m88k_analyze_prologue): Likewise.
3732         * macrocmd.c (macro_define_command): Likewise.
3733         * macroexp.c (gather_arguments): Likewise.
3734         * macroscope.c (sal_macro_scope): Likewise.
3735         * macrotab.c (new_macro_table): Likewise.
3736         * mdebugread.c (push_parse_stack): Likewise.
3737         (parse_partial_symbols): Likewise.
3738         (parse_symbol): Likewise.
3739         (psymtab_to_symtab_1): Likewise.
3740         (new_block): Likewise.
3741         (new_psymtab): Likewise.
3742         (mdebug_build_psymtabs): Likewise.
3743         (add_pending): Likewise.
3744         (elfmdebug_build_psymtabs): Likewise.
3745         * mep-tdep.c (mep_gdbarch_init): Likewise.
3746         * mi/mi-main.c (mi_execute_command): Likewise.
3747         * mi/mi-parse.c (mi_parse_argv): Likewise.
3748         * minidebug.c (lzma_open): Likewise.
3749         * minsyms.c (terminate_minimal_symbol_table): Likewise.
3750         * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3751         * mips-tdep.c (mips_gdbarch_init): Likewise.
3752         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3753         * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3754         * mt-tdep.c (mt_registers_info): Likewise.
3755         * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3756         * nat/linux-btrace.c (linux_enable_bts): Likewise.
3757         (linux_enable_pt): Likewise.
3758         * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3759         (linux_xfer_osdata_processgroups): Likewise.
3760         * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3761         * nto-procfs.c (procfs_meminfo): Likewise.
3762         * objc-lang.c (start_msglist): Likewise.
3763         (selectors_info): Likewise.
3764         (classes_info): Likewise.
3765         (find_methods): Likewise.
3766         * objfiles.c (allocate_objfile): Likewise.
3767         (update_section_map): Likewise.
3768         * osabi.c (gdbarch_register_osabi): Likewise.
3769         (gdbarch_register_osabi_sniffer): Likewise.
3770         * parse.c (start_arglist): Likewise.
3771         * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3772         (hwdebug_insert_point): Likewise.
3773         * printcmd.c (display_command): Likewise.
3774         (ui_printf): Likewise.
3775         * procfs.c (create_procinfo): Likewise.
3776         (load_syscalls): Likewise.
3777         (proc_get_LDT_entry): Likewise.
3778         (proc_update_threads): Likewise.
3779         * prologue-value.c (make_pv_area): Likewise.
3780         (pv_area_store): Likewise.
3781         * psymtab.c (extend_psymbol_list): Likewise.
3782         (init_psymbol_list): Likewise.
3783         (allocate_psymtab): Likewise.
3784         * python/py-inferior.c (add_thread_object): Likewise.
3785         * python/py-param.c (compute_enum_values): Likewise.
3786         * python/py-value.c (valpy_call): Likewise.
3787         * python/py-varobj.c (py_varobj_iter_next): Likewise.
3788         * python/python.c (ensure_python_env): Likewise.
3789         * record-btrace.c (record_btrace_start_replaying): Likewise.
3790         * record-full.c (record_full_reg_alloc): Likewise.
3791         (record_full_mem_alloc): Likewise.
3792         (record_full_end_alloc): Likewise.
3793         (record_full_core_xfer_partial): Likewise.
3794         * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3795         * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3796         * remote-notif.c (remote_notif_state_allocate): Likewise.
3797         * remote.c (demand_private_info): Likewise.
3798         (remote_notif_stop_alloc_reply): Likewise.
3799         (remote_enable_btrace): Likewise.
3800         * reverse.c (save_bookmark_command): Likewise.
3801         * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3802         * rx-tdep.c (rx_gdbarch_init): Likewise.
3803         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3804         * ser-go32.c (dos_get_tty_state): Likewise.
3805         (dos_copy_tty_state): Likewise.
3806         * ser-mingw.c (ser_windows_open): Likewise.
3807         (ser_console_wait_handle): Likewise.
3808         (ser_console_get_tty_state): Likewise.
3809         (make_pipe_state): Likewise.
3810         (net_windows_open): Likewise.
3811         * ser-unix.c (hardwire_get_tty_state): Likewise.
3812         (hardwire_copy_tty_state): Likewise.
3813         * solib-aix.c (solib_aix_new_lm_info): Likewise.
3814         * solib-dsbt.c (dsbt_current_sos): Likewise.
3815         (dsbt_relocate_main_executable): Likewise.
3816         * solib-frv.c (frv_current_sos): Likewise.
3817         (frv_relocate_main_executable): Likewise.
3818         * solib-spu.c (spu_bfd_fopen): Likewise.
3819         * solib-svr4.c (lm_info_read): Likewise.
3820         (svr4_copy_library_list): Likewise.
3821         (svr4_default_sos): Likewise.
3822         * source.c (find_source_lines): Likewise.
3823         (line_info): Likewise.
3824         (add_substitute_path_rule): Likewise.
3825         * spu-linux-nat.c (spu_bfd_open): Likewise.
3826         * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3827         * stabsread.c (dbx_lookup_type): Likewise.
3828         (read_type): Likewise.
3829         (read_member_functions): Likewise.
3830         (read_struct_fields): Likewise.
3831         (read_baseclasses): Likewise.
3832         (read_args): Likewise.
3833         (_initialize_stabsread): Likewise.
3834         * stack.c (func_command): Likewise.
3835         * stap-probe.c (handle_stap_probe): Likewise.
3836         * symfile.c (addrs_section_sort): Likewise.
3837         (addr_info_make_relative): Likewise.
3838         (load_section_callback): Likewise.
3839         (add_symbol_file_command): Likewise.
3840         (init_filename_language_table): Likewise.
3841         * symtab.c (create_filename_seen_cache): Likewise.
3842         (sort_search_symbols_remove_dups): Likewise.
3843         (search_symbols): Likewise.
3844         * target.c (make_cleanup_restore_target_terminal): Likewise.
3845         * thread.c (new_thread): Likewise.
3846         (enable_thread_stack_temporaries): Likewise.
3847         (make_cleanup_restore_current_thread): Likewise.
3848         (thread_apply_all_command): Likewise.
3849         * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3850         * top.c (gdb_readline_wrapper): Likewise.
3851         * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3852         * tracepoint.c (trace_find_line_command): Likewise.
3853         (all_tracepoint_actions_and_cleanup): Likewise.
3854         (make_cleanup_restore_current_traceframe): Likewise.
3855         (get_uploaded_tp): Likewise.
3856         (get_uploaded_tsv): Likewise.
3857         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3858         (tui_alloc_win_info): Likewise.
3859         (tui_alloc_content): Likewise.
3860         (tui_add_content_elements): Likewise.
3861         * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3862         (tui_set_disassem_content): Likewise.
3863         * ui-file.c (ui_file_new): Likewise.
3864         (stdio_file_new): Likewise.
3865         (tee_file_new): Likewise.
3866         * utils.c (make_cleanup_restore_integer): Likewise.
3867         (add_internal_problem_command): Likewise.
3868         * v850-tdep.c (v850_gdbarch_init): Likewise.
3869         * valops.c (find_oload_champ): Likewise.
3870         * value.c (allocate_value_lazy): Likewise.
3871         (record_latest_value): Likewise.
3872         (create_internalvar): Likewise.
3873         * varobj.c (install_variable): Likewise.
3874         (new_variable): Likewise.
3875         (new_root_variable): Likewise.
3876         (cppush): Likewise.
3877         (_initialize_varobj): Likewise.
3878         * windows-nat.c (windows_make_so): Likewise.
3879         * x86-nat.c (x86_add_process): Likewise.
3880         * xcoffread.c (arrange_linetable): Likewise.
3881         (allocate_include_entry): Likewise.
3882         (process_linenos): Likewise.
3883         (SYMBOL_DUP): Likewise.
3884         (xcoff_start_psymtab): Likewise.
3885         (xcoff_end_psymtab): Likewise.
3886         * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3887         * xtensa-tdep.c (xtensa_register_type): Likewise.
3888         * gdbarch.c: Regenerate.
3889         * gdbarch.h: Regenerate.
3890
3891 2015-08-25  Don Breazeal  <donb@codesourcery.com>
3892
3893         * infrun.c (follow_exec): Re-order operations for
3894         handling follow-exec-mode "new".
3895         (handle_inferior_event_1): Assign ecs->event_thread
3896         to the current thread.
3897         * remote.c (get_remote_arch_state): Add an assertion.
3898
3899 2015-08-26  Pedro Alves  <palves@redhat.com>
3900
3901         * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3902
3903 2015-08-25  Pedro Alves  <palves@redhat.com>
3904
3905         PR gdb/18804
3906         * defs.h (maybe_quit): Declare.
3907         (QUIT): Now calls maybe_quit.
3908         * event-loop.c (clear_async_signal_handler)
3909         (async_signal_handler_is_marked): New functions.
3910         * event-loop.h (async_signal_handler_is_marked)
3911         (clear_async_signal_handler): New declarations.
3912         * remote.c (remote_check_pending_interrupt): New function.
3913         (interrupt_query): Use make_cleanup_restore_target_terminal.  No
3914         longer check whether the target is async.  If waiting for a stop
3915         reply, and a Ctrl-C as been sent to the target, offer to
3916         disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3917         Otherwise do not disconnect and throw a quit.
3918         (_initialize_remote): Install remote_check_pending_interrupt as
3919         to_check_pending_interrupt.
3920         * target.c (target_check_pending_interrupt): New function.
3921         * target.h (struct target_ops) <to_check_pending_interrupt>: New
3922         field.
3923         (target_check_pending_interrupt): New declaration.
3924         * utils.c (maybe_quit): New function.
3925         * target-delegates.c: Regenerate.
3926
3927 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3928
3929         * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3930         Rename local variable pid to tid, and get lwpid of lwp.  Update
3931         debug output.
3932
3933 2015-08-25  Pierre-Marie de Rodat  <derodat@adacore.com>
3934
3935         * ada-lang.c (ada_read_var_value): Add a var_block argument
3936         and pass it to default_read_var_value.
3937         * block.c (block_static_link): New accessor.
3938         * block.h (block_static_link): Declare it.
3939         * buildsym.c (finish_block_internal): Add a static_link
3940         argument.  If there is a static link, associate it to the new
3941         block.
3942         (finish_block): Add a static link argument and pass it to
3943         finish_block_internal.
3944         (end_symtab_get_static_block): Update calls to finish_block and
3945         to finish_block_internal.
3946         (end_symtab_with_blockvector): Update call to
3947         finish_block_internal.
3948         * buildsym.h: Forward-declare struct dynamic_prop.
3949         (struct context_stack): Add a static_link field.
3950         (finish_block): Add a static link argument.
3951         * c-exp.y: Remove an obsolete comment (evaluation of variables
3952         already start from the selected frame, and now they climb *up*
3953         the call stack) and propagate the block information to the
3954         produced expression.
3955         * d-exp.y: Likewise.
3956         * f-exp.y: Likewise.
3957         * go-exp.y: Likewise.
3958         * jv-exp.y: Likewise.
3959         * m2-exp.y: Likewise.
3960         * p-exp.y: Likewise.
3961         * coffread.c (coff_symtab_read): Update calls to finish_block.
3962         * dbxread.c (process_one_symbol): Likewise.
3963         * xcoffread.c (read_xcoff_symtab): Likewise.
3964         * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3965         "sym" parameter to struct block_symbol, update its uses and pass
3966         its block to calls to read_var_value.
3967         (convert_symbol_sym): Update the calls to convert_one_symbol.
3968         * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3969         call to read_var_value.
3970         * dwarf2loc.c (block_op_get_frame_base): New.
3971         (dwarf2_block_frame_base_locexpr_funcs): Implement the
3972         get_frame_base method.
3973         (dwarf2_block_frame_base_loclist_funcs): Likewise.
3974         (dwarf2locexpr_baton_eval): Add a frame argument and use it
3975         instead of the selected frame in order to evaluate the
3976         expression.
3977         (dwarf2_evaluate_property): Add a frame argument.  Update call
3978         to dwarf2_locexpr_baton_eval to provide a frame in available and
3979         to handle the absence of address stack.
3980         * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3981         * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3982         declaration.
3983         (read_func_scope): Record any available static link description.
3984         Update call to finish_block.
3985         (read_lexical_block_scope): Update call to finish_block.
3986         * findvar.c (follow_static_link): New.
3987         (get_hosting_frame): New.
3988         (default_read_var_value): Add a var_block argument.  Use
3989         get_hosting_frame to handle non-local references.
3990         (read_var_value): Add a var_block argument and pass it to the
3991         LA_READ_VAR_VALUE method.
3992         * gdbtypes.c (resolve_dynamic_range): Update calls to
3993         dwarf2_evaluate_property.
3994         (resolve_dynamic_type_internal): Likewise.
3995         * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3996         read_var_value, passing it the block coming from symbol lookup.
3997         * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3998         read_var_value (TODO).
3999         * infcmd.c (finish_command_continuation): Update call to
4000         read_var_value, passing it the block coming from symbol lookup.
4001         * infrun.c (insert_exception_resume_breakpoint): Likewise.
4002         * language.h (struct language_defn): Add a var_block argument to
4003         the LA_READ_VAR_VALUE method.
4004         * objfiles.c (struct static_link_htab_entry): New.
4005         (static_link_htab_entry_hash): New.
4006         (static_link_htab_entry_eq): New.
4007         (objfile_register_static_link): New.
4008         (objfile_lookup_static_link): New.
4009         (free_objfile): Free the STATIC_LINKS hashed map if needed.
4010         * objfiles.h: Include hashtab.h.
4011         (struct objfile): Add a static_links field.
4012         (objfile_register_static_link): New.
4013         (objfile_lookup_static_link): New.
4014         * printcmd.c (print_variable_and_value): Update call to
4015         read_var_value.
4016         * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
4017         * python/py-frame.c (frapy_read_var): Update call to
4018         read_var_value, passing it the block coming from symbol lookup.
4019         * python/py-framefilter.c (extract_sym): Add a sym_block
4020         parameter and set the pointed value to NULL (TODO).
4021         (enumerate_args): Update call to extract_sym.
4022         (enumerate_locals): Update calls to extract_sym and to
4023         read_var_value.
4024         * python/py-symbol.c (sympy_value): Update call to
4025         read_var_value (TODO).
4026         * stack.c (read_frame_local): Update call to read_var_value.
4027         (read_frame_arg): Likewise.
4028         (return_command): Likewise.
4029         * symtab.h (struct symbol_block_ops): Add a get_frame_base
4030         method.
4031         (struct symbol): Add a block field.
4032         (SYMBOL_BLOCK): New accessor.
4033         * valops.c (value_of_variable): Remove frame/block handling and
4034         pass the block argument to read_var_value, which does this job
4035         now.
4036         (value_struct_elt_for_reference): Update calls to
4037         read_var_value.
4038         (value_of_this): Pass the block found to read_var_value.
4039         * value.h (read_var_value): Add a var_block argument.
4040         (default_read_var_value): Likewise.
4041
4042 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4043
4044         * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
4045         * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
4046         * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
4047
4048 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4049
4050         * Makefile.in (aarch64-liunx.o): New rule.
4051         (HFILES_NO_SRCDIR): Add aarch64-linux.h.
4052         * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
4053         * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
4054         * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
4055         extern.
4056         (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
4057         * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
4058         * nat/aarch64-linux.c: New file.
4059         * nat/aarch64-linux.h: New file.
4060
4061 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4062
4063         * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
4064         lwp_arch_private_info and ptid_of_lwp.
4065
4066 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4067
4068         * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
4069         Move it to nat/aarch64-linux-hw-point.c.
4070         (debug_reg_change_callback): Likewise.
4071         (aarch64_notify_debug_reg_change): :Likewise.
4072         * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
4073         (aarch64_dr_update_callback_param): New.
4074         (debug_reg_change_callback): New function.
4075         (aarch64_notify_debug_reg_change): Likewise.
4076         * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
4077         Remove the declaration.
4078
4079 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4080
4081         * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
4082         Call current_lwp_ptid.
4083
4084 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4085
4086         * aarch64-linux-nat.c (debug_reg_change_callback): Use
4087         debug_printf.
4088
4089 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4090
4091         * aarch64-linux-nat.c (debug_reg_change_callback): Call
4092         ptid_get_pid rather than ptid_get_lwp.
4093
4094 2015-08-24  Pedro Alves  <palves@redhat.com>
4095
4096         * NEWS (New commands): Mention set/show remote
4097         multiprocess-extensions-packet.
4098         * remote.c (remote_query_supported): Only tell the server to use
4099         the multiprocess extensions if the user hasn't force-disabled them
4100         with "set remote multiprocess-extensions-packet off".
4101
4102 2015-08-24  Pedro Alves  <palves@redhat.com>
4103
4104         * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
4105         1029a8112290f6eee9d7878a391c49db42c999bd.
4106         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
4107         Regenerate.
4108         * gnulib/import/Makefile.am: Update.
4109         * gnulib/import/Makefile.in: Update.
4110         * gnulib/import/alloca.in.h: Update.
4111         * gnulib/import/basename-lgpl.c: Update.
4112         * gnulib/import/canonicalize-lgpl.c: Update.
4113         * gnulib/import/config.charset: Update.
4114         * gnulib/import/dirent.in.h: Update.
4115         * gnulib/import/dirfd.c: Update.
4116         * gnulib/import/dirname-lgpl.c: Update.
4117         * gnulib/import/dirname.h: Update.
4118         * gnulib/import/dosname.h: Update.
4119         * gnulib/import/errno.in.h: Update.
4120         * gnulib/import/extra/snippet/arg-nonnull.h: Update.
4121         * gnulib/import/extra/snippet/c++defs.h: Update.
4122         * gnulib/import/extra/snippet/warn-on-use.h: Update.
4123         * gnulib/import/extra/update-copyright: Update.
4124         * gnulib/import/float+.h: Update.
4125         * gnulib/import/float.c: Update.
4126         * gnulib/import/float.in.h: Update.
4127         * gnulib/import/fnmatch.c: Update.
4128         * gnulib/import/fnmatch.in.h: Update.
4129         * gnulib/import/fnmatch_loop.c: Update.
4130         * gnulib/import/fpucw.h: Update.
4131         * gnulib/import/frexp.c: Update.
4132         * gnulib/import/frexpl.c: Update.
4133         * gnulib/import/gettimeofday.c: Update.
4134         * gnulib/import/inttypes.in.h: Update.
4135         * gnulib/import/isnan.c: Update.
4136         * gnulib/import/isnand-nolibm.h: Update.
4137         * gnulib/import/isnand.c: Update.
4138         * gnulib/import/isnanl-nolibm.h: Update.
4139         * gnulib/import/isnanl.c: Update.
4140         * gnulib/import/itold.c: Update.
4141         * gnulib/import/localcharset.c: Update.
4142         * gnulib/import/localcharset.h: Update.
4143         * gnulib/import/lstat.c: Update.
4144         * gnulib/import/m4/00gnulib.m4: Update.
4145         * gnulib/import/m4/absolute-header.m4: Update.
4146         * gnulib/import/m4/alloca.m4: Update.
4147         * gnulib/import/m4/canonicalize.m4: Update.
4148         * gnulib/import/m4/codeset.m4: Update.
4149         * gnulib/import/m4/configmake.m4: Update.
4150         * gnulib/import/m4/dirent_h.m4: Update.
4151         * gnulib/import/m4/dirfd.m4: Update.
4152         * gnulib/import/m4/dirname.m4: Update.
4153         * gnulib/import/m4/double-slash-root.m4: Update.
4154         * gnulib/import/m4/eealloc.m4: Update.
4155         * gnulib/import/m4/errno_h.m4: Update.
4156         * gnulib/import/m4/exponentd.m4: Update.
4157         * gnulib/import/m4/exponentl.m4: Update.
4158         * gnulib/import/m4/extensions.m4: Update.
4159         * gnulib/import/m4/extern-inline.m4: Update.
4160         * gnulib/import/m4/fcntl-o.m4: Update.
4161         * gnulib/import/m4/float_h.m4: Update.
4162         * gnulib/import/m4/fnmatch.m4: Update.
4163         * gnulib/import/m4/fpieee.m4: Update.
4164         * gnulib/import/m4/frexp.m4: Update.
4165         * gnulib/import/m4/frexpl.m4: Update.
4166         * gnulib/import/m4/gettimeofday.m4: Update.
4167         * gnulib/import/m4/glibc21.m4: Update.
4168         * gnulib/import/m4/gnulib-cache.m4: Update.
4169         * gnulib/import/m4/gnulib-common.m4: Update.
4170         * gnulib/import/m4/gnulib-comp.m4: Update.
4171         * gnulib/import/m4/gnulib-tool.m4: Update.
4172         * gnulib/import/m4/include_next.m4: Update.
4173         * gnulib/import/m4/inttypes-pri.m4: Update.
4174         * gnulib/import/m4/inttypes.m4: Update.
4175         * gnulib/import/m4/isnand.m4: Update.
4176         * gnulib/import/m4/isnanl.m4: Update.
4177         * gnulib/import/m4/largefile.m4: Update.
4178         * gnulib/import/m4/localcharset.m4: Update.
4179         * gnulib/import/m4/locale-fr.m4: Update.
4180         * gnulib/import/m4/locale-ja.m4: Update.
4181         * gnulib/import/m4/locale-zh.m4: Update.
4182         * gnulib/import/m4/longlong.m4: Update.
4183         * gnulib/import/m4/lstat.m4: Update.
4184         * gnulib/import/m4/malloc.m4: Update.
4185         * gnulib/import/m4/malloca.m4: Update.
4186         * gnulib/import/m4/math_h.m4: Update.
4187         * gnulib/import/m4/mbrtowc.m4: Update.
4188         * gnulib/import/m4/mbsinit.m4: Update.
4189         * gnulib/import/m4/mbsrtowcs.m4: Update.
4190         * gnulib/import/m4/mbstate_t.m4: Update.
4191         * gnulib/import/m4/memchr.m4: Update.
4192         * gnulib/import/m4/memmem.m4: Update.
4193         * gnulib/import/m4/mmap-anon.m4: Update.
4194         * gnulib/import/m4/multiarch.m4: Update.
4195         * gnulib/import/m4/nocrash.m4: Update.
4196         * gnulib/import/m4/off_t.m4: Update.
4197         * gnulib/import/m4/pathmax.m4: Update.
4198         * gnulib/import/m4/readlink.m4: Update.
4199         * gnulib/import/m4/rename.m4: Update.
4200         * gnulib/import/m4/rmdir.m4: Update.
4201         * gnulib/import/m4/ssize_t.m4: Update.
4202         * gnulib/import/m4/stat.m4: Update.
4203         * gnulib/import/m4/stdbool.m4: Update.
4204         * gnulib/import/m4/stddef_h.m4: Update.
4205         * gnulib/import/m4/stdint.m4: Update.
4206         * gnulib/import/m4/stdio_h.m4: Update.
4207         * gnulib/import/m4/stdlib_h.m4: Update.
4208         * gnulib/import/m4/string_h.m4: Update.
4209         * gnulib/import/m4/strstr.m4: Update.
4210         * gnulib/import/m4/strtok_r.m4: Update.
4211         * gnulib/import/m4/sys_socket_h.m4: Update.
4212         * gnulib/import/m4/sys_stat_h.m4: Update.
4213         * gnulib/import/m4/sys_time_h.m4: Update.
4214         * gnulib/import/m4/sys_types_h.m4: Update.
4215         * gnulib/import/m4/time_h.m4: Update.
4216         * gnulib/import/m4/unistd_h.m4: Update.
4217         * gnulib/import/m4/warn-on-use.m4: Update.
4218         * gnulib/import/m4/wchar_h.m4: Update.
4219         * gnulib/import/m4/wchar_t.m4: Update.
4220         * gnulib/import/m4/wctype_h.m4: Update.
4221         * gnulib/import/m4/wint_t.m4: Update.
4222         * gnulib/import/malloc.c: Update.
4223         * gnulib/import/malloca.c: Update.
4224         * gnulib/import/malloca.h: Update.
4225         * gnulib/import/math.in.h: Update.
4226         * gnulib/import/mbrtowc.c: Update.
4227         * gnulib/import/mbsinit.c: Update.
4228         * gnulib/import/mbsrtowcs-impl.h: Update.
4229         * gnulib/import/mbsrtowcs-state.c: Update.
4230         * gnulib/import/mbsrtowcs.c: Update.
4231         * gnulib/import/memchr.c: Update.
4232         * gnulib/import/memmem.c: Update.
4233         * gnulib/import/pathmax.h: Update.
4234         * gnulib/import/readlink.c: Update.
4235         * gnulib/import/ref-add.sin: Update.
4236         * gnulib/import/ref-del.sin: Update.
4237         * gnulib/import/rename.c: Update.
4238         * gnulib/import/rmdir.c: Update.
4239         * gnulib/import/same-inode.h: Update.
4240         * gnulib/import/stat.c: Update.
4241         * gnulib/import/stdbool.in.h: Update.
4242         * gnulib/import/stddef.in.h: Update.
4243         * gnulib/import/stdint.in.h: Update.
4244         * gnulib/import/stdio.c: Update.
4245         * gnulib/import/stdio.in.h: Update.
4246         * gnulib/import/stdlib.in.h: Update.
4247         * gnulib/import/str-two-way.h: Update.
4248         * gnulib/import/streq.h: Update.
4249         * gnulib/import/string.in.h: Update.
4250         * gnulib/import/stripslash.c: Update.
4251         * gnulib/import/strnlen1.c: Update.
4252         * gnulib/import/strnlen1.h: Update.
4253         * gnulib/import/strstr.c: Update.
4254         * gnulib/import/strtok_r.c: Update.
4255         * gnulib/import/sys_stat.in.h: Update.
4256         * gnulib/import/sys_time.in.h: Update.
4257         * gnulib/import/sys_types.in.h: Update.
4258         * gnulib/import/time.in.h: Update.
4259         * gnulib/import/unistd.in.h: Update.
4260         * gnulib/import/verify.h: Update.
4261         * gnulib/import/wchar.in.h: Update.
4262         * gnulib/import/wctype.in.h: Update.
4263         * gnulib/import/gettimeofday.c: New file.
4264         * gnulib/import/m4/absolute-header.m4: New file.
4265         * gnulib/import/m4/gettimeofday.m4: New file.
4266         * gnulib/import/m4/sys_socket_h.m4: New file.
4267         * gnulib/import/m4/sys_time_h.m4: New file.
4268         * gnulib/import/stdio.c: Delete file.
4269         * gnulib/import/sys_time.in.h: New file.
4270
4271 2015-08-24  Pedro Alves  <palves@redhat.com>
4272
4273         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
4274         * common/gdb_sys_time.h: New file.
4275         * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
4276         * gdb_select.h: Likewise.
4277         * gdb_usleep.c: Likewise.
4278         * maint.c: Likewise.
4279         * mi/mi-main.c: Likewise.
4280         * mi/mi-parse.h: Likewise.
4281         * remote-fileio.c: Likewise.
4282         * remote-m32r-sdi.c: Likewise.
4283         * remote.c: Likewise.
4284         * ser-base.c: Likewise.
4285         * ser-pipe.c: Likewise.
4286         * ser-tcp.c: Likewise.
4287         * ser-unix.c: Likewise.
4288         * symfile.c: Likewise.
4289         * symfile.c: Likewise.  Rename OSIZE to SIZE throughout.
4290         * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
4291         * utils.c: Likewise.
4292
4293 2015-08-24  Pedro Alves  <palves@redhat.com>
4294
4295         * NEWS: Mention removed support for the various ROM monitors.
4296         * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
4297         ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
4298         * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
4299         gdb_target_obs.
4300         (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
4301         gdb_target_obs.
4302         (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
4303         dsrec.o from gdb_target_obs.
4304         (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
4305         from gdb_target_obs.
4306         (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
4307         gdb_target_obs.
4308         (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
4309         dink32-rom.o from gdb_target_obs.
4310         (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
4311         (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
4312         * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
4313         monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
4314
4315 2015-08-21  Pedro Alves  <palves@redhat.com>
4316
4317         * frame.c (null_frame_id): Explicitly zero-initialize.
4318
4319 2015-08-21  Tom Tromey  <tromey@redhat.com>
4320
4321         * dwarf2read.c (struct dwarf2_section_info): Rename field
4322         'asection' to 'section'.
4323         (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
4324         (dwarf2_locate_sections, dwarf2_locate_sections)
4325         (locate_dwz_sections, locate_v1_virtual_dwo_sections)
4326         (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
4327         (dwarf2_locate_v2_dwp_sections): Adjust.
4328
4329 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
4330
4331         * top.h (gdb_in_secondary_prompt_p): Declare.
4332         * top.c (gdb_secondary_prompt_depth): Define.
4333         (gdb_in_secondary_prompt_p): Define.
4334         (gdb_readline_wrapper_cleanup): Decrement
4335         gdb_secondary_prompt_depth.
4336         (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
4337         * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
4338         are in a secondary prompt.
4339
4340 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
4341
4342         * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
4343         emit the newline.
4344
4345 2015-08-21  Gary Benson  <gbenson@redhat.com>
4346
4347         * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
4348
4349 2015-08-21  Gary Benson  <gbenson@redhat.com>
4350
4351         * target.h (struct target_ops) <to_fileio_open>: New argument
4352         warn_if_slow.  Update comment.  All implementations updated.
4353         (target_fileio_open_warn_if_slow): New declaration.
4354         * target.c (target_fileio_open): Renamed as...
4355         (target_fileio_open_1): ...this.  New argument warn_if_slow.
4356         Pass warn_if_slow to implementation.  Update debug printing.
4357         (target_fileio_open): New function.
4358         (target_fileio_open_warn_if_slow): Likewise.
4359         * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
4360         target_fileio_open_warn_if_slow.
4361
4362 2015-08-21  Gary Benson  <gbenson@redhat.com>
4363
4364         * nat/linux-namespaces.c (linux_mntns_access_fs):
4365         Do not overwrite old_chain.
4366
4367 2015-08-20  Max Filippov  <jcmvbkbc@gmail.com>
4368
4369         * arch/xtensa.h: New file.
4370         * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
4371         (ps_get_thread_area): New function.
4372         * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
4373         set_gdbarch_fetch_tls_load_module_address to enable TLS support.
4374         * xtensa-tdep.c (osabi.h): New #include.
4375         (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
4376         xtensa-specific hooks.
4377         * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
4378         member and move the structure to arch/xtensa.h.
4379
4380 2015-08-21  Pedro Alves  <palves@redhat.com>
4381
4382         * remote.c (struct readahead_cache): New.
4383         (struct remote_state) <readahead_cache>: New field.
4384         (remote_open_1): Invalidate the cache.
4385         (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
4386         functions.
4387         (remote_hostio_pwrite): Invalidate the readahead cache.
4388         (remote_hostio_pread): Rename to ...
4389         (remote_hostio_pread_vFile): ... this.
4390         (remote_hostio_pread_from_cache): New function.
4391         (remote_hostio_pread): Reimplement.
4392         (remote_hostio_close): Invalidate the readahead cache.
4393
4394 2015-08-21  Marcin Cieślak <saper@saper.info>  (tiny patch)
4395
4396         PR build/18843
4397         * procfs.c: Include "filestuff.h".
4398
4399 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
4400
4401         * tui/tui-data.h (tui_command_info): Remove fields cur_line and
4402         curch.
4403         * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
4404         cur_line or curch, instead call wmove().
4405         (init_win_info) [CMD_WIN]: Likewise.
4406         * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
4407         instead call getcury().
4408         (tui_redisplay_readline): Don't set cur_line or curch.
4409         (tui_mld_erase_entire_line): Don't read cur_line, instead call
4410         getcury().
4411         (tui_cont_sig): Remove call to wmove.
4412         (tui_getc): Don't read cur_line or curch, instead call getcury()
4413         or getyx().  Don't set curch.
4414         * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
4415         set cur_line or curch.  Always move cursor to (0,0).
4416
4417 2015-08-20  Pedro Alves  <palves@redhat.com>
4418
4419         * infrun.c (print_target_wait_results): Make extern.
4420         * infrun.h (print_target_wait_results): Declare.
4421         * remote.c (set_stop_requested_callback): Delete.
4422         (process_initial_stop_replies): New function.
4423         (remote_start_remote): Use it.
4424         (stop_reply_queue_length): New function.
4425
4426 2015-08-20  Pedro Alves  <palves@redhat.com>
4427
4428         * dwarf2read.c (process_full_comp_unit): To tell whether
4429         start_subfile managed to deduce a language, test for
4430         language_unknown instead of language_c.
4431
4432 2015-08-20  Pierre-Marie de Rodat  <derodat@adacore.com>
4433
4434         * ada-lex.l: Reset the start condition to INITIAL in the rule that
4435         matches attributes.
4436
4437 2015-08-19  Kevin Buettner  <kevinb@redhat.com>
4438
4439         * dwarf2read.c (dwarf2_string_attr): New function.
4440         (lookup_dwo_unit, process_psymtab_comp_unit_reader)
4441         (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
4442         (read_call_site_scope, namespace_name, guess_full_die_structure_name)
4443         (anonymous_struct_prefix, prepare_one_comp_unit): Use
4444         dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
4445
4446 2015-08-18  Doug Evans  <dje@google.com>
4447             Adrian Sendroiu <adrian.sendroiu@freescale.com>
4448
4449         PR mi/18833
4450         * cli/cli-logging.c (pop_output_files): Don't restore redirection
4451         if MI-like.
4452         * mi/mi-out.c: #include "vec.h".
4453         (ui_filep): New type.
4454         (DEV_VEC_P (ui_filep)): New type.
4455         (struct ui_out_data) <buffer, original_buffer>: Delete.
4456         (struct ui_out_data) <streams>: New member.
4457         (mi_ui_out_impl): Add data_destroy field.
4458         (mi_field_string, mi_field_fmt): Update.
4459         (mi_flush, mi_redirect, field_separator): Update.
4460         (mi_open, mi_close): Update.
4461         (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
4462         (mi_out_data_ctor, mi_out_data_dtor): New functions.
4463         (mi_out_new): Call mi_out_data_ctor.
4464
4465 2015-08-18  Sandra Loosemore  <sandra@codesourcery.com>
4466
4467         * remote.c (strprefix): New.
4468         (remote_parse_stop_reply): Use strprefix instead of strncmp
4469         to ensure exact match of keyword.
4470
4471 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
4472
4473         * gdb_bfd.c (debug_bfd_cache): New variable.
4474         (show_bfd_cache_debug): New function.
4475         (gdb_bfd_open): Add debug logging.
4476         (gdb_bfd_ref): Likewise.
4477         (gdb_bfd_unref): Likewise.
4478         (_initialize_gdb_bfd): Add new set/show command.
4479         * NEWS: Mention new command.
4480
4481 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
4482
4483         * gdb_bfd.c (bfd_sharing): New variable.
4484         (show_bfd_sharing): New function.
4485         (gdb_bfd_open): Check bfd_sharing variable.
4486         (_initialize_gdb_bfd): Add new set/show command.
4487         * NEWS: Mention new command.
4488
4489 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
4490
4491         * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
4492         field.
4493         (struct gdb_bfd_cache_search): Likewise.
4494         (eq_bfd): Compare the size, inode, and device id fields.
4495         (gdb_bfd_open): Initialise the size, inode, and device id fields.
4496         (gdb_bfd_ref): Likewise.
4497         (gdb_bfd_unref): Likewise.
4498
4499 2015-08-18  Pedro Alves  <palves@redhat.com>
4500
4501         * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
4502         target implements to_always_non_stop_p, call it.
4503         * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
4504         (x86_linux_create_target): Install it as to_always_non_stop_p
4505         method.
4506
4507 2015-08-17  Doug Evans  <dje@google.com>
4508
4509         * ui-out.c (default_ui_out_impl): Add comment.
4510
4511 2015-08-17  Iain Buclaw  <ibuclaw@gdcproject.org>
4512
4513         * d-exp.y (type_aggregate_p): New function.
4514         (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
4515         (classify_inner_name): Likewise.
4516         * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
4517
4518 2015-08-15  Doug Evans  <xdje42@gmail.com>
4519
4520         * psymtab.c (add_psymbol_to_bcache): Remove "val" arg.  All callers
4521         updated.
4522         (add_psymbol_to_list): Ditto.
4523
4524 2015-08-15  Doug Evans  <xdje42@gmail.com>
4525
4526         * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab.  All callers
4527         updated.  Call end_psymtab_common.
4528         * dwarf2read.c (process_psymtab_comp_unit_reader): Call
4529         end_psymtab_common.
4530         (build_type_psymtabs_reader): Ditto.
4531         * psympriv.h (sort_pst_symbols): Delete.
4532         (end_psymtab_common): Declare.
4533         * psymtab.c (sort_pst_symbols): Make static.
4534         (end_psymtab_common): New function.
4535         * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
4536
4537 2015-08-15  Doug Evans  <xdje42@gmail.com>
4538
4539         * defs.h (LANGUAGE_BITS): Define.
4540         * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
4541         (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
4542         * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
4543         (minimal_symbol_type): Add nr_minsym_types.
4544         (MINSYM_TYPE_BITS): Define.
4545         (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
4546         (domain_enum_tag): Add NR_DOMAINS.
4547         (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
4548         (SYMBOL_ACLASS_BITS): Define from 6 to 5.
4549
4550 2015-08-15  Doug Evans  <xdje42@gmail.com>
4551
4552         * objfiles.h: Whitespace cleanup.
4553         * psympriv.h: Whitespace cleanup.
4554         * psymtab.c: Whitespace/coding convention cleanup.
4555
4556 2015-08-15  Patrick Palka  <patrick@parcs.ath.cx>
4557
4558         * inferior.c (detach_inferior_command): Don't call
4559         any_thread_of_process when pid is 0.
4560         (kill_inferior_command): Likewise.
4561
4562 2015-08-14  Doug Evans  <xdje42@gmail.com>
4563
4564         PR gdb/11833
4565         * NEWS: Document new /s modifier for the disassemble command.
4566         * cli/cli-cmds.c (disassemble_command): Add support for /s.
4567         (_initialize_cli_cmds): Update online docs of disassemble command.
4568         * disasm.c: #include "source.h".
4569         (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
4570         All uses updated.
4571         (dis_line_entry): New struct.
4572         (hash_dis_line_entry, eq_dis_line_entry): New functions.
4573         (allocate_dis_line_table): New functions.
4574         (maybe_add_dis_line_entry, line_has_code_p): New functions.
4575         (dump_insns): New arg end_pc.  All callers updated.
4576         (do_mixed_source_and_assembly_deprecated): Renamed from
4577         do_mixed_source_and_assembly.  All callers updated.
4578         (do_mixed_source_and_assembly): New function.
4579         (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
4580         * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
4581         DISASSEMBLY_SOURCE.  All uses updated.
4582         (DISASSEMBLY_SOURCE): New macro.
4583         * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
4584
4585 2015-08-14  Keith Seitz  <keiths@redhat.com>
4586
4587         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
4588         `typename' to `type_name' to avoid C++ reserved word.
4589
4590 2015-08-14  Keith Seitz  <keiths@redhat.com>
4591
4592         * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
4593         (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
4594         silence ARI errors.
4595
4596 2015-08-14  Iain Buclaw  <ibuclaw@gdcproject.org>
4597
4598         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
4599         xstrprintf instead of malloc and sprintf.
4600         (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
4601         (lex_one_token): Likewise.
4602
4603 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
4604
4605         * solib-svr4.c (read_program_header): Add base_addr argument to
4606         report the runtime address of the segment.
4607         (find_program_interpreter): Update read_program_header call to pass
4608         a NULL pointer for the new argument.
4609         (scan_dyntag): Add ptr_addr argument to report the runtime address
4610         of the tag payload.
4611         (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
4612         read_program_header to get the base address of the dynamic segment.
4613         (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
4614         read_program_header.
4615         (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
4616
4617 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
4618
4619         * MAINTAINERS (Write After Approval): Add Matthew Fortune.
4620
4621 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
4622
4623         * d-exp.y (%union): Add voidval.
4624         (%token): Add UNKNOWN_NAME as a token to represent an unclassified
4625         name in the lexing stage.
4626         (PostfixExpression): Move symbol completion handling in grammar here
4627         from PrimaryExpression.
4628         (PrimaryExpression): Move routines to handle resolving identifier
4629         tokens in the grammar here from push_expression_name.
4630         (IdentifierExp): Remove the handling of alternating '.' and identifier
4631         tokens.
4632         (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
4633         (BasicType): Remove C-style typename rules.
4634         (d_type_from_name, d_module_from_name, push_variable)
4635         (push_fieldnames, push_type_name, push_module_name)
4636         (push_expression_name): Remove.
4637         (lex_one_token): Rename from yylex.  Replace pstate with par_state.
4638         (token_and_value): New type.
4639         (token_fifo, popping, name_obstack): New globals.
4640         (classify_name): New function.
4641         (classify_inner_name): Likewise.
4642         (yylex): Likewise.
4643         (d_parse): Initialize token_fifo, popping and name_obstack.
4644
4645 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
4646
4647         * Makefile.in (SFILES): Add d-namespace.c.
4648         (COMMON_OBS): Add d-namespace.o.
4649         * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
4650         la_lookup_symbol_nonlocal callback function pointer.
4651         * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
4652         (d_lookup_nested_symbol): New declaration.
4653         * d-namespace.c: New file.
4654
4655 2015-08-13  Pedro Alves  <palves@redhat.com>
4656
4657         * python/py-unwind.c (pyuw_sniffer): Install the invalidate
4658         cleanup after the decref cleanup, not before.
4659
4660 2015-08-13  Pierre-Marie de Rodat  <derodat@adacore.com>
4661
4662         * ada-lang.c: Include namespace.h
4663         (aux_add_nonlocal_symbols): Fix a function name in comment.
4664         (ada_add_block_renamings): New.
4665         (add_nonlocal_symbols): Add global renamings handling.
4666         (ada_lookup_symbol_list_worker): Move the symbol lookup part
4667         to...
4668         (ada_add_all_symbols): ... this new function.
4669         (ada_add_block_symbols): Try to match the input name against the
4670         "using directives list", perform a recursive symbol lookup on
4671         the matched declarations.
4672         * block.h (struct block): Move the_namespace to top-level as
4673         namespace_info. Remove the language_specific field.
4674         (BLOCK_NAMESPACE): Update access to the namespace_info field.
4675         * buildsym.h (using_directives): Rename into...
4676         (local_using_directives): ... this.
4677         (global_using_directives): New.
4678         (struct context_stack): Rename the using_directives field into
4679         local_using_directives.
4680         * buildsym.c (finish_block_internal): Deal with the proper
4681         using directives repository (local or global).
4682         (prepare_for_building): Reset local_using_directives. Assert
4683         that there is no pending global using directive.
4684         (reset_symtab_globals): Reset global_using_directives and
4685         local_using_directives.
4686         (end_symtab_get_static_block): Don't ignore symtabs that have
4687         only using directives.
4688         (push_context): Update references to local_using_directives.
4689         (buildsym_init): Do not reset using_directives.
4690         * cp-support.c: Include namespace.h.
4691         * cp-support.h (struct using_direct): Move to namespace.h.
4692         (cp_add_using_directives): Move to namespace.h.
4693         * cp-namespace.c: Include namespace.h
4694         (cp_add_using_directive): Move to namespace.c, rename it to
4695         add_using_directive, add a "using_directives" argument and use
4696         it as the pending using directives repository.  All callers
4697         updated.
4698         * dwarf2read.c (using_directives): New.
4699         (read_import_statement): Call using_directives.
4700         (read_func_scope): Update references to local_using_directives.
4701         (read_lexical_block_scope): Likewise.
4702         (read_namespace): Update the heading comment, call
4703         using_directives.
4704         * namespace.h: New file.
4705         * namespace.c: New file.
4706         * Makefile.in (SFILES): Add namespace.c.
4707         (COMMON_OBS): Add namespace.o
4708
4709 2015-08-12  Joel Brobecker  <brobecker@adacore.com>
4710
4711         * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
4712         compute RETADDR.
4713
4714 2015-08-12  Keith Seitz  <keiths@redhat.com>
4715
4716         * break-catch-throw.c (re_set_exception_catchpoint) Rename
4717         reserved C++ keyword "explicit" to "explicit_loc".
4718         * breakpoint.c (create_overlay_event_breakpoint)
4719         (create_longjmp_master_breakpoint)
4720         (create_std_terminate_master_breakpoint)
4721         (create_exception_master_breakpoint, update_static_tracepoint):
4722         Rename reserved C++ keyword "explicit" to "explicit_loc".
4723         * completer.c (collect_explicit_location_matches)
4724         (explicit_location_completer): Rename reserved C++ keyword
4725         "explicit" to "explicit_loc".
4726         * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
4727         (canonicalize_linespec, create_sals_line_offset)
4728         (convert_linespec_to_sals, convert_explicit_location_to_sals)
4729         (event_location_to_sals, decode_objc): Rename reserved C++ keyword
4730         "explicit" to "explicit_loc".
4731         * location.c (struct event_location) <explicit>: Rename to
4732         "explicit_loc".
4733         (initialize_explicit_location, new_explicit_location)
4734         (explicit_location_to_string_internal, explicit_location_to_linespec):
4735         Rename reserved C++ keyword "explicit" to "explicit_loc".
4736         * location.h (explicit_location_to_string)
4737         (explicit_location_to_linespec, initialize_explicit_location)
4738         (new_explicit_location): Rename reserved C++ keyword "explicit"
4739         to "explicit_loc".
4740         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4741         keyword "explicit" to "explicit_loc".
4742
4743 2015-08-12  Keith Seitz  <keiths@redhat.com>
4744
4745         * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4746         and only call decode_line_1 when it is non-NULL.
4747
4748 2015-08-12  Luis Machado  <lgustavo@codesourcery.com>
4749
4750         * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4751         location address is not meaningful.
4752         (breakpoint_address_is_meaningful): Update comment.
4753
4754 2015-08-11  Keith Seitz  <keiths@redhat.com>
4755
4756         * NEWS: Mention explicit locations.
4757         * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4758         [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4759         (_initialize_breakpoint): Update documentation for
4760         "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4761
4762 2015-08-11  Keith Seitz  <keiths@redhat.com>
4763
4764         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4765         explicit locations, options "--source", "--function",
4766         "--label", and "--line".
4767
4768 2015-08-11  Keith Seitz  <keiths@redhat.com>
4769
4770         * completer.c: Include location.h.
4771         (enum match_type): New enum.
4772         (location_completer): Rename to ...
4773         (linespec_completer): ... this.
4774         (collect_explicit_location_matches, backup_text_ptr)
4775         (explicit_location_completer): New functions.
4776         (location_completer): "New" function; handle linespec
4777         and explicit location completions.
4778         (complete_line_internal): Remove all location completer-specific
4779         handling.
4780         * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4781         (find_toplevel_char): Export.
4782         (linespec_parse_line_offset): Export.
4783         Issue error if STRING is not numerical.
4784         (gdb_get_linespec_parser_quote_characters): New function.
4785         * linespec.h (linespec_parse_line_offset): Declare.
4786         (get_gdb_linespec_parser_quote_characters): Declare.
4787         (is_ada_operator): Declare.
4788         (find_toplevel_char): Declare.
4789         (linespec_lexer_lex_keyword): Declare.
4790         * location.c (explicit_to_event_location): New function.
4791         (explicit_location_lex_one): New function.
4792         (string_to_explicit_location): New function.
4793         (string_to_event_location): Handle explicit locations.
4794         * location.h (explicit_to_event_location): Declare.
4795         (string_to_explicit_location): Declare.
4796
4797 2015-08-11  Keith Seitz  <keiths@redhat.com>
4798
4799         * break-catch-throw.c (re_set_exception_catchpoint): Convert
4800         linespec into explicit location.
4801         * breakpoint.c (create_overlay_breakpoint)
4802         (create_longjmp_master_breakpoint)
4803         (create_std_terminate_master_breakpoint)
4804         (create_exception_master_breakpoint): Convert linespec into explicit
4805         location.
4806         (update_static_tracepoint): Convert linespec into explicit location.
4807         * linespec.c (enum offset_relative_sign, struct line_offset): Move
4808         location.h.
4809         (struct linespec) <expression, expr_pc, source_filename>
4810         <function_name, label_name, line_offset>: Replace with ...
4811         <explicit>: ... this.
4812         <is_linespec>: New member.
4813         (PARSER_EXPLICIT): New accessor macro.
4814         (undefined_label_error): New function.
4815         (source_file_not_found_error): New function.
4816         (linespec_parse_basic): The parser result is now an explicit location.
4817         Use PARSER_EXPLICIT to access it.
4818         Use undefined_label_error.
4819         (canonicalize_linespec): Convert canonical linespec into explicit
4820         location.
4821         Move string representation of location to explicit_location_to_linespec
4822         and use it and explicit_location_to_string to save string
4823         representations of the canonical location.
4824         (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4825         explicit location.  Update all references.
4826         (convert_explicit_location_to_sals): New function.
4827         (parse_linespec): Use PARSER_EXPLICIT to access the parser
4828         result's explicit location.
4829         (linespec_state_constructor): Initialize is_linespec.
4830         Use PARSER_EXPLICIT.
4831         (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4832         result.
4833         (event_location_to_sals): For linespec locations, set is_linespec.
4834         Handle explicit locations.
4835         (decode_objc): 'ls' contains an explicit location now. Update all
4836         references.
4837         (symtabs_from_filename): Use source_file_not_found_error.
4838         * location.c (struct event_location.u) <explicit>: New member.
4839         (initialize_explicit_location): New function.
4840         (initialize_event_location): Initialize explicit locations.
4841         (new_explicit_location, get_explicit_location)
4842         (get_explicit_location_const): New functions.
4843         (explicit_to_string_internal): New function; most of contents moved
4844         from canonicalize_linespec.
4845         (explicit_location_to_string): New function.
4846         (explicit_location_to_linespec): New function.
4847         (copy_event_location, delete_event_location)
4848         (event_location_to_string_const, event_location_empty_p): Handle
4849         explicit locations.
4850         * location.h (enum offset_relative_sign, struct line_offset): Move
4851         here from linespec.h.
4852         (enum event_location_type): Add EXPLICIT_LOCATION.
4853         (struct explicit_location): New structure.
4854         (explicit_location_to_string): Declare.
4855         (explicit_location_to_linespec): Declare.
4856         (new_explicit_location, get_explicit_locationp
4857         (get_explicit_location_const, initialize_explicit_location): Declare.
4858
4859 2015-08-11  Keith Seitz  <keiths@redhat.com>
4860
4861         * break-catch-throw.c (re_set_exception_catchpoint): Convert
4862         linespec for stap probe to probe location.
4863         * breakpoint.c (create_longjmp_master_breakpoint)
4864         (create_exception_master_breakpoint): Likewise.
4865         (break_command_1): Remove local variable `arg_cp'.
4866         Check location type to set appropriate breakpoint ops methods.
4867         (trace_command): Likewise.
4868         * linespec.c (event_location_to_sals): Assert on probe locations.
4869         * location.c (EL_PROBE): Add macro definition.
4870         (new_probe_location, get_probe_location): New functions.
4871         (copy_event_location, delete_event_location, event_location_to_string)
4872         (string_to_event_location, event_location_empty_p): Handle probe
4873         locations.
4874         * location.h (enum event_location_type): Add PROBE_LOCATION.
4875         (new_probe_location, get_probe_location): Declare.
4876         * probe.c (parse_probes): Assert that LOCATION is a probe location.
4877         Convert linespec into probe location.
4878
4879 2015-08-11  Keith Seitz  <keiths@redhat.com>
4880
4881         * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4882         Convert linespec to address location.
4883         * linespec.c (canonicalize_linespec): Do not handle address
4884         locations here.
4885         (convert_address_location_to_sals): New function; contents moved
4886         from ...
4887         (convert_linespc_to_sals): ... here.
4888         (parse_linespec): Remove address locations from linespec grammar.
4889         Remove handling of address locations.
4890         (linespec_lex_to_end): Remove handling of address linespecs.
4891         (event_location_to_sals): Handle ADDRESS_LOCATION.
4892         (linespec_expression_to_pc): Export.
4893         * linespec.h (linespec_expression_to_pc): Add declaration.
4894         * location.c (struct event_location.u) <address>: New member.
4895         (new_address_location, get_address_location): New functions.
4896         (copy_event_location, delete_event_location, event_location_to_string)
4897         (string_to_event_location, event_location_empty_p): Handle address
4898         locations.
4899         * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4900         (new_address_location, get_address_location): Declare.
4901         * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4902         to address location.
4903         * spu-tdep.c (spu_catch_start): Likewise.
4904
4905 2015-08-11  Keith Seitz  <keiths@redhat.com>
4906
4907         * ax-gdb.c: Include location.h.
4908         (agent_command_1) Use linespec location instead of address
4909         string.
4910         * break-catch-throw.c: Include location.h.
4911         (re_set_exception_catchpoint): Use linespec locations instead
4912         of address strings.
4913         * breakpoint.c: Include location.h.
4914         (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4915         (create_std_terminate_master_breakpoint)
4916         (create_exception_master_breakpoint, update_breakpoints_after_exec):
4917         Use linespec location instead of address string.
4918         (print_breakpoint_location):  Use locations and
4919         event_location_to_string.
4920         Print extra_string for pending locations for non-MI streams.
4921         (print_one_breakpoint_location): Use locations and
4922         event_location_to_string.
4923         (init_raw_breakpoint_without_location): Initialize b->location.
4924         (create_thread_event_breakpoint): Use linespec location instead of
4925         address string.
4926         (init_breakpoint_sal): Likewise.
4927         Only save extra_string if it is non-NULL and not the empty string.
4928         Use event_location_to_string instead of `addr_string'.
4929         Constify `p' and `endp'.
4930         Use skip_spaces_const/skip_space_const instead of non-const versions.
4931         Copy the location into the breakpoint.
4932         If LOCATION is NULL, save the breakpoint address as a linespec location
4933         instead of an address string.
4934         (create_breakpoint_sal): Change `addr_string' parameter to a struct
4935         event_location. All uses updated.
4936         (create_breakpoints_sal): Likewise for local variable `addr_string'.
4937         (parse_breakpoint_sals): Use locations instead of address strings.
4938         Remove check for empty linespec with conditional.
4939         Refactor.
4940         (decode_static_tracepoint_spec): Make argument const and update
4941         function.
4942         (create_breakpoint): Change `arg' to a struct event_location and
4943         rename.
4944         Remove `copy_arg' and `addr_start'.
4945         If EXTRA_STRING is empty, set it to NULL.
4946         Don't populate `canonical' for pending breakpoints.
4947         Pass `extra_string' to find_condition_and_thread.
4948         Clear `extra_string' if `rest' was NULL.
4949         Do not error with "garbage after location" if setting a dprintf
4950         breakpoint.
4951         Copy the location into the breakpoint instead of an address string.
4952         (break_command_1): Use string_to_event_location and pass this to
4953         create_breakpoint instead of an address string.
4954         Check against `arg_cp' for a probe linespec.
4955         (dprintf_command): Use string_to_event_location and pass this to
4956         create_breakpoint instead of an address string.
4957         Throw an exception if no format string was specified.
4958         (print_recreate_ranged_breakpoint): Use event_location_to_string
4959         instead of address strings.
4960         (break_range_command, until_break_command)
4961         (init_ada_exception_breakpoint): Use locations instead
4962         of address strings.
4963         (say_where): Print out extra_string for pending locations.
4964         (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4965         the breakpoint.
4966         (base_breakpoint_create_sals_from_location): Use struct event_location
4967         instead of address string.
4968         Remove `addr_start' and `copy_arg' parameters.
4969         (base_breakpoint_decode_location): Use struct event_location instead of
4970         address string.
4971         (bkpt_re_set): Use locations instead of address strings.
4972         Use event_location_empty_p to check for unset location.
4973         (bkpt_print_recreate): Use event_location_to_string instead of
4974         an address string.
4975         Print out extra_string for pending locations.
4976         (bkpt_create_sals_from_location, bkpt_decode_location)
4977         (bkpt_probe_create_sals_from_location): Use struct event_location
4978         instead of address string.
4979         (bkpt_probe_decode_location): Use struct event_location instead of
4980         address string.
4981         (tracepoint_print_recreate): Use event_location_to_string to
4982         recreate the tracepoint.
4983         (tracepoint_create_sals_from_location, tracepoint_decode_location)
4984         (tracepoint_probe_create_sals_from_location)
4985         (tracepoint_probe_decode_location): Use struct event_location
4986         instead of address string.
4987         (dprintf_print_recreate): Use event_location_to_string to recreate
4988         the dprintf.
4989         (dprintf_re_set): Remove check for valid/missing format string.
4990         (strace_marker_create_sals_from_location)
4991         (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4992         (update_static_tracepoint): Use struct event_location instead of
4993         address string.
4994         (location_to_sals): Likewise.
4995         Pass `extra_string' to find_condition_and_thread.
4996         For newly resolved pending breakpoint locations, clear the location's
4997         string representation.
4998         Assert that the breakpoint's condition string is NULL when
4999         condition_not_parsed.
5000         (breakpoint_re_set_default, create_sals_from_location_default)
5001         (decode_location_default, trace_command, ftrace_command)
5002         (strace_command, create_tracepoint_from_upload): Use locations
5003         instead of address strings.
5004         * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
5005         Use struct event_location instead of address string.
5006         Update all uses.
5007         <decode_location>: Likewise.
5008         (struct breakpoint) <addr_string>: Change to struct event_location
5009         and rename `location'.
5010         <addr_string_range_end>: Change to struct event_location and rename
5011         `location_range_end'.
5012         (create_breakpoint): Use struct event_location instead of address
5013         string.
5014         * cli/cli-cmds.c: Include location.h.
5015         (edit_command, list_command): Use locations instead of address strings.
5016         * elfread.c: Include location.h.
5017         (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
5018         * guile/scm-breakpoint.c: Include location.h.
5019         (bpscm_print_breakpoint_smob): Use event_location_to_string.
5020         (gdbscm_register_breakpoint): Use locations instead of address
5021         strings.
5022         * linespec.c: Include location.h.
5023         (struct ls_parser) <stream>: Change to const char *.
5024         (PARSER_STREAM): Update.
5025         (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
5026         keywords must be followed by whitespace.
5027         (canonicalize_linespec): Save a linespec location into `canonical'.
5028         Save a canonical linespec into `canonical'.
5029         (parse_linespec): Change `argptr' to const char * and rename `arg'.
5030         All uses updated.
5031         Update function description.
5032         (linespec_parser_new): Initialize `parser'.
5033         Update initialization of  parsing stream.
5034         (event_location_to_sals): New function.
5035         (decode_line_full): Change `argptr' to a struct event_location and
5036         rename it `location'.
5037         Use locations instead of address strings.
5038         Call event_location_to_sals instead of parse_linespec.
5039         (decode_line_1): Likewise.
5040         (decode_line_with_current_source, decode_line_with_last_displayed)
5041         Use locations instead of address strings.
5042         (decode_objc): Likewise.
5043         Change `argptr' to const char * and rename `arg'.
5044         (destroy_linespec_result): Delete the linespec result's location
5045         instead of freeing the address string.
5046         * linespec.h (struct linespec_result) <addr_string>: Change to
5047         struct event_location and rename to ...
5048         <location>: ... this.
5049         (decode_line_1, decode_line_full): Change `argptr' to struct
5050         event_location.  All callers updated.
5051         * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
5052         (mi_cmd_break_insert_1): Use locations instead of address strings.
5053         Throw an error if there was "garbage" at the end of the specified
5054         linespec.
5055         * probe.c: Include location.h.
5056         (parse_probes): Change `argptr' to struct event_location.
5057         Use event locations instead of address strings.
5058         * probe.h (parse_probes): Change `argptr' to struct event_location.
5059         * python/py-breakpoint.c: Include location.h.
5060         (bppy_get_location): Constify local variable `str'.
5061         Use event_location_to_string.
5062         (bppy_init): Use locations instead of address strings.
5063         * python/py-finishbreakpoint.c: Include location.h.
5064         (bpfinishpy_init): Remove local variable `addr_str'.
5065         Use locations instead of address strings.
5066         * python/python.c: Include location.h.
5067         (gdbpy_decode_line): Use locations instead of address strings.
5068         * remote.c: Include location.h.
5069         (remote_download_tracepoint): Use locations instead of address
5070         strings.
5071         * spu-tdep.c: Include location.h.
5072         (spu_catch_start): Remove local variable `buf'.
5073         Use locations instead of address strings.
5074         * tracepoint.c: Include location.h.
5075         (scope_info): Use locations instead of address strings.
5076         (encode_source_string): Constify parameter `src'.
5077         * tracepoint.h (encode_source_string): Likewise.
5078
5079 2015-08-11  Keith Seitz  <keiths@redhat.com>
5080
5081         * Makefile.in (SFILES): Add location.c.
5082         (HFILES_NO_SRCDIR): Add location.h.
5083         (COMMON_OBS): Add location.o.
5084         * linespec.c (linespec_lex_to_end): New function.
5085         * linespec.h (linespec_lex_to_end): Declare.
5086         * location.c: New file.
5087         * location.h: New file.
5088
5089 2015-08-11  Keith Seitz  <keiths@redhat.com>
5090
5091         * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
5092         Renamed to create_sals_from_location.
5093         <decode_linespec>: Renamed to decode_location.
5094         Update all callers.
5095         * breakpoint.c (create_sals_from_address_default): Renamed to ...
5096         (create_sals_from_location_default): ... this.
5097         (addr_string_to_sals): Renamed to ...
5098         (location_to_sals): ... this.
5099         (decode_linespec_default): Renamed to ...
5100         (decode_location_default): ... this.
5101         (base_breakpoint_create_sals_from_address): Renamed to ...
5102         (base_breakpoint_create_sals_from_location): ... this.
5103         (bkpt_create_sals_from_address): Renamed to ...
5104         (bkpt_create_sals_from_location): ... this.
5105         (bkpt_decode_linespec): Renamed to ...
5106         (bkpt_decode_location): ... this.
5107         (bkpt_probe_create_sals_from_address): Renamed to ...
5108         (bkpt_probe_create_sals_from_location): ... this.
5109         (tracepoint_create_sals_from_address): Renamed to ...
5110         (tracepoint_create_sals_from_location): ... this.
5111         (tracepoint_decode_linespec): Renamed to ...
5112         (tracepoint_decode_location): ... this.
5113         (tracepoint_probe_create_sals_from_address): Renamed to ...
5114         (tracepoint_probe_create_sals_from_location): ... this.
5115         (tracepoint_probe_decode_linespec): Renamed to ...
5116         (tracepoint_probe_decode_location): ... this.
5117         (strace_marker_create_sals_from_address): Renamed to ...
5118         (strace_marker_create_sals_from_location): ... this.
5119         (decode_linespec_default): Renamed to ...
5120         (decode_location_default): ... this.
5121
5122 2015-08-10  Doug Evans  <dje@google.com>
5123             Keith Seitz  <keiths@redhat.com>
5124
5125         PR gdb/17960
5126         * symtab.c (make_file_symbol_completion_list_1): Renamed from
5127         make_file_symbol_completion_list and made static.
5128         (make_file_symbol_completion_list): New function.
5129
5130 2015-08-10  Joel Brobecker  <brobecker@adacore.com>
5131
5132         * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
5133         trailing new-line at end of warning message.
5134         (proceed): Add i18n marker to error messages.
5135
5136 2015-08-07  Pedro Alves  <palves@redhat.com>
5137
5138         * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
5139
5140 2015-08-07  Pedro Alves  <palves@redhat.com>
5141
5142         * s390-linux-tdep.c (is_non_branch_ril)
5143         (s390_displaced_step_copy_insn): New functions.
5144         (s390_displaced_step_fixup): Update comment.
5145         (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
5146         gdbarch_displaced_step_copy_insn hook.
5147
5148 2015-08-07  Pedro Alves  <palves@redhat.com>
5149
5150         * infrun.c (displaced_step_prepare_throw): Return -1 if
5151         gdbarch_displaced_step_copy_insn returns NULL.  Update intro
5152         comment.
5153         * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
5154         (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
5155         in file.
5156         (ppc_displaced_step_copy_insn): New function.
5157         (ppc_displaced_step_fixup): Update comment.
5158         (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
5159         gdbarch_displaced_step_copy_insn hook.
5160         * gdbarch.sh (displaced_step_copy_insn): Document what happens on
5161         NULL return.
5162         * gdbarch.h: Regenerate.
5163
5164 2015-08-07  Pedro Alves  <palves@redhat.com>
5165
5166         * inferior.h (struct inferior) <displaced_stepping_failed>: New
5167         field.
5168         * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
5169         Return false if dispaced stepping failed before.
5170         (resume): Pass the current inferior to
5171         use_displaced_stepping_now_p.  Wrap displaced_step_prepare in
5172         TRY/CATCH.  If we get a MEMORY_ERROR, set the inferior's
5173         displaced_stepping_failed flag, and fall back to an in-line
5174         step-over.
5175
5176 2015-08-07  Pedro Alves  <palves@redhat.com>
5177
5178         * darwin-nat.c (darwin_stop): Rename to ...
5179         (darwin_interrupt): ... this.
5180         (_initialize_darwin_inferior): Adjust.
5181         * gnu-nat.c (gnu_stop): Delete.
5182         (gnu_target): Don't install gnu_stop.
5183         * inf-ptrace.c (inf_ptrace_stop): Rename to ...
5184         (inf_ptrace_interrupt): ... this.
5185         (inf_ptrace_target): Adjust.
5186         * infcmd.c (interrupt_target_1): Use target_interrupt instead of
5187         target_stop.
5188         * linux-nat (linux_nat_stop): Rename to ...
5189         (linux_nat_interrupt): ... this.
5190         (linux_nat_stop): Reimplement.
5191         (linux_nat_add_target): Install linux_nat_interrupt.
5192         * nto-procfs.c (nto_interrupt_twice): Rename to ...
5193         (nto_handle_sigint_twice): ... this.
5194         (nto_interrupt): Rename to ...
5195         (nto_handle_sigint): ... this.  Call target_interrupt instead of
5196         target_stop.
5197         (procfs_wait): Adjust.
5198         (procfs_stop): Rename to ...
5199         (procfs_interrupt): ... this.
5200         (init_procfs_targets): Adjust.
5201         * procfs.c (procfs_stop): Rename to ...
5202         (procfs_interrupt): ... this.
5203         (procfs_target): Adjust.
5204         * remote-m32r-sdi.c (m32r_stop): Rename to ...
5205         (m32r_interrupt): ... this.
5206         (init_m32r_ops): Adjust.
5207         * remote-sim.c (gdbsim_stop_inferior): Rename to ...
5208         (gdbsim_interrupt_inferior): ... this.
5209         (gdbsim_stop): Rename to ...
5210         (gdbsim_interrupt): ... this.
5211         (gdbsim_cntrl_c): Adjust.
5212         (init_gdbsim_ops): Adjust.
5213         * remote.c (sync_remote_interrupt): Adjust comments.
5214         (remote_stop_as): Rename to ...
5215         (remote_interrupt_as): ... this.
5216         (remote_stop): Adjust comment.
5217         (remote_interrupt): New function.
5218         (init_remote_ops): Install remote_interrupt.
5219         * target.c (target_interrupt): New function.
5220         * target.h (struct target_ops) <to_interrupt>: New field.
5221         (target_interrupt): New declaration.
5222         * windows-nat.c (windows_stop): Rename to ...
5223         (windows_interrupt): ... this.
5224         * target-delegates.c: Regenerate.
5225
5226 2015-08-07  Pedro Alves  <palves@redhat.com>
5227
5228         * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
5229         threads" as alternative to "switching back to stepped thread".
5230
5231 2015-08-07  Pedro Alves  <palves@redhat.com>
5232
5233         * NEWS: Mention "maint set/show target-non-stop".
5234         * breakpoint.c (update_global_location_list): Check
5235         target_is_non_stop_p instead of non_stop.
5236         * infcmd.c (attach_command_post_wait, attach_command): Likewise.
5237         * infrun.c (show_can_use_displaced_stepping)
5238         (can_use_displaced_stepping_p, start_step_over_inferior):
5239         Likewise.
5240         (internal_resume_ptid): New function.
5241         (resume): Use it.
5242         (proceed): Check target_is_non_stop_p instead of non_stop.  If in
5243         all-stop mode but the target is always in non-stop mode, start all
5244         the other threads that are implicitly resumed too.
5245         (for_each_just_stopped_thread, fetch_inferior_event)
5246         (adjust_pc_after_break, stop_all_threads): Check
5247         target_is_non_stop_p instead of non_stop.
5248         (handle_inferior_event): Likewise.  Handle detach-fork in all-stop
5249         with the target always in non-stop mode.
5250         (handle_signal_stop) <random signal>: Check target_is_non_stop_p
5251         instead of non_stop.
5252         (switch_back_to_stepped_thread): Check target_is_non_stop_p
5253         instead of non_stop.
5254         (keep_going_stepped_thread): Use internal_resume_ptid.
5255         (stop_waiting): If in all-stop mode, and the target is in non-stop
5256         mode, stop all threads.
5257         (keep_going_pass): Likewise, when starting a new in-line step-over
5258         sequence.
5259         * linux-nat.c (get_pending_status, select_event_lwp)
5260         (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
5261         target_is_non_stop_p instead of non_stop.
5262         (linux_nat_always_non_stop_p): New function.
5263         (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
5264         (linux_nat_add_target): Install linux_nat_always_non_stop_p.
5265         * target-delegates.c: Regenerate.
5266         * target.c (target_is_non_stop_p): New function.
5267         (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
5268         (maint_set_target_non_stop_command)
5269         (maint_show_target_non_stop_command): New functions.
5270         (_initilize_target): Install "maint set/show target-non-stop"
5271         commands.
5272         * target.h (struct target_ops) <to_always_non_stop_p>: New field.
5273         (target_non_stop_enabled): New declaration.
5274         (target_is_non_stop_p): New declaration.
5275
5276 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
5277
5278         * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
5279         has a pending status, return true.
5280         * gdbthread.h: Include target/waitstatus.h.
5281         (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
5282         stop_pc>: New fields.
5283         (struct thread_info) <resumed>: New field.
5284         (set_resumed): Declare.
5285         * infrun.c: Include "event-loop.h".
5286         (infrun_async_inferior_event_token, infrun_is_async): New globals.
5287         (infrun_async): New function.
5288         (clear_step_over_info): Add debug output.
5289         (displaced_step_in_progress_any_inferior): New function.
5290         (displaced_step_fixup): New returns int.
5291         (start_step_over): Handle in-line step-overs too.  Assert the
5292         thread is marked resumed.
5293         (resume_cleanups): Clear the thread's resumed flag.
5294         (resume): Set the thread's resumed flag.  Return early if the
5295         thread has a pending status.  Allow stepping a breakpoint with no
5296         signal.
5297         (proceed): Adjust to check 'resumed' instead of 'executing'.
5298         (clear_proceed_status_thread): If the thread has a pending status,
5299         and that status is a finished step, discard the pending status.
5300         (clear_proceed_status): Don't clear step_over_info here.
5301         (random_pending_event_thread, do_target_wait): New functions.
5302         (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
5303         do_target_wait.
5304         (wait_one): New function.
5305         (THREAD_STOPPED_BY): New macro.
5306         (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5307         (thread_stopped_by_hw_breakpoint): New functions.
5308         (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
5309         functions.
5310         (handle_inferior_event): Also call set_resumed(false) on all
5311         threads implicitly stopped by the event.
5312         (restart_threads, resumed_thread_with_pending_status): New
5313         functions.
5314         (finish_step_over): If we were doing an in-line step-over before,
5315         and no longer are after trying to start a new step-over, restart
5316         all threads.  If we have multiple threads with pending events,
5317         save the current event and go through the event loop again.
5318         (handle_signal_stop): Return early if finish_step_over returns
5319         false.
5320         <random signal>: If we get a signal while stepping over a
5321         breakpoint in-line in non-stop mode, restart all threads.  Clear
5322         step_over_info before delivering the signal.
5323         (keep_going_stepped_thread): Use internal_error instead of
5324         gdb_assert.  Mark the thread as resumed.
5325         (keep_going_pass_signal): Assert the thread isn't already resumed.
5326         If some other thread is doing an in-line step-over, defer the
5327         resume.  If we just started a new in-line step-over, stop all
5328         threads.  Don't clear step_over_info.
5329         (infrun_async_inferior_event_handler): New function.
5330         (_initialize_infrun): Create async event handler with
5331         infrun_async_inferior_event_handler as callback.
5332         (infrun_async): New declaration.
5333         * target.c (target_async): New function.
5334         * target.h (target_async): Declare macro and readd as function
5335         declaration.
5336         * target/waitstatus.h (enum target_stop_reason)
5337         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5338         * thread.c (new_thread): Clear the new waitstatus field.
5339         (set_resumed): New function.
5340
5341 2015-08-07  Pedro Alves  <palves@redhat.com>
5342
5343         * infrun.c (keep_going_stepped_thread): New function, factored out
5344         from ...
5345         (switch_back_to_stepped_thread): ... here.
5346
5347 2015-08-07  Pedro Alves  <palves@redhat.com>
5348
5349         * infrun.c (currently_stepping): Extend intro comment.
5350         * target.h (target_resume): Extend intro comment.
5351
5352 2015-08-07  Pedro Alves  <palves@redhat.com>
5353
5354         * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
5355         of inferior_ptid.  If the stepped thread vanished, return 0
5356         instead of resuming here.  Use reset_ecs.  Print the prev_pc and
5357         the current stop_pc in log message.  Clear trap_expected if the
5358         thread advanced.  Don't pass currently_stepping to
5359         do_target_resume.
5360
5361 2015-08-07  Pedro Alves  <palves@redhat.com>
5362
5363         * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
5364         * infrun.c (struct execution_control_state): Move higher up in the
5365         file.
5366         (reset_ecs): New function.
5367         (start_step_over): Now returns int.  Rewrite to use
5368         keep_going_pass_signal instead of manually starting a displaced step.
5369         (resume): Don't call set_running here.  If displaced stepping
5370         can't start now, clear trap_expected.
5371         (find_thread_needs_step_over): Delete function.
5372         (proceed): Set up finish_thread_state_cleanup.  Call set_running.
5373         If the current thread needs a step over, push it in the step-over
5374         chain.  Don't set insert breakpoints nor call resume directly
5375         here.  Instead rewrite to use start_step_over and
5376         keep_going_pass_signal.
5377         (finish_step_over): New function.
5378         (handle_signal_stop): Call finish_step_over instead of
5379         start_step_over.
5380         (switch_back_to_stepped_thread): If the event thread needs another
5381         step-over do that first.  Use start_step_over.
5382         (keep_going_pass_signal): New function, factored out from ...
5383         (keep_going): ... here.
5384         (_initialize_infrun): Comment moved here.
5385         * thread.c (set_running_thread): New function.
5386         (set_running, finish_thread_state): Use set_running_thread.
5387
5388 2015-08-07  Pedro Alves  <palves@redhat.com>
5389
5390         * gdbthread.h (struct thread_info) <step_over_prev,
5391         step_over_next>: New fields.
5392         (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
5393         (thread_step_over_chain_next, thread_is_in_step_over_chain): New
5394         declarations.
5395         * infrun.c (struct displaced_step_request): Delete.
5396         (struct displaced_step_inferior_state) <step_request_queue>:
5397         Delete field.
5398         (displaced_step_prepare): Assert that trap_expected is set.  Use
5399         thread_step_over_chain_enqueue.  Split starting a new displaced
5400         step to ...
5401         (start_step_over): ... this new function.
5402         (resume): Assert the thread isn't waiting for a step over already.
5403         (proceed): Assert the thread isn't waiting for a step over
5404         already.
5405         (infrun_thread_stop_requested): Adjust to remove threads from the
5406         embedded step-over chain.
5407         (handle_inferior_event) <fork/vfork>: Call start_step_over after
5408         displaced_step_fixup.
5409         (handle_signal_stop): Call start_step_over after
5410         displaced_step_fixup.
5411         * infrun.h (step_over_queue_head): New declaration.
5412         * thread.c (step_over_chain_enqueue, step_over_chain_remove)
5413         (thread_step_over_chain_next, thread_is_in_step_over_chain)
5414         (thread_step_over_chain_enqueue)
5415         (thread_step_over_chain_remove): New functions.
5416         (delete_thread_1): Remove thread from the step-over chain.
5417
5418 2015-08-07  Pedro Alves  <palves@redhat.com>
5419
5420         * infrun.c (thread_still_needs_step_over): Rename to ...
5421         (thread_still_needs_step_over_bp): ... this.
5422         (enum step_over_what): New.
5423         (thread_still_needs_step_over): Reimplement.
5424
5425 2015-08-07  Pedro Alves  <palves@redhat.com>
5426
5427         * remote.c (remote_wait_as): If not waiting for a stop reply,
5428         return TARGET_WAITKIND_NO_RESUMED.  If TARGET_WNOHANG is
5429         requested, don't block waiting forever.
5430
5431 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
5432
5433         * infrun.c (adjust_pc_after_break): Now takes thread_info and
5434         waitstatus pointers instead of an ecs.  Adjust.
5435         (handle_inferior_event): Adjust caller.
5436
5437 2015-08-07  Pedro Alves  <palves@redhat.com>
5438
5439         * infrun.c (handle_inferior_event): If we get
5440         TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
5441         mode, mark all threads of the exiting process as not-executing.
5442         (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
5443         TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
5444         exiting process, if inferior_ptid still points at a process.
5445         * thread.c (struct current_thread_cleanup) <next>: New field.
5446         (current_thread_cleanup_chain): New global.
5447         (restore_current_thread_ptid_changed): New function.
5448         (restore_current_thread_cleanup_dtor): Remove the cleanup from the
5449         current_thread_cleanup_chain list.
5450         (make_cleanup_restore_current_thread): Add the cleanup data to the
5451         current_thread_cleanup_chain list.
5452         (_initialize_thread): Install restore_current_thread_ptid_changed
5453         as thread_ptid_changed observer.
5454
5455 2015-08-07  Joel Brobecker  <brobecker@adacore.com>
5456
5457         * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
5458         data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
5459         smaller than expected.
5460
5461 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
5462
5463         * stack.c (get_frame_language): Moved ...
5464         * frame.c (get_frame_language): ... to here.
5465         * language.h (get_frame_language): Declaration moved to frame.h.
5466         * frame.h: Add language.h include, for language enum.
5467         (get_frame_language): Declaration moved from language.h.
5468         * language.c: Add frame.h include.
5469         * top.c: Add frame.h include.
5470         * symtab.h (struct obj_section): Declare.
5471         (struct cmd_list_element): Declare.
5472
5473 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
5474
5475         * language.c (show_language_command): Find selected frame before
5476         asking for the language of that frame.
5477         (set_language_command): Likewise.
5478         * language.h (get_frame_language): Add frame parameter.
5479         * stack.c (get_frame_language): Add frame parameter, assert
5480         parameter is not NULL, update comment and reindent.
5481         * top.c (check_frame_language_change): Pass the selected frame
5482         into get_frame_language.
5483
5484 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
5485
5486         * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
5487         (pt_btrace_insn_flags): New.
5488         (ftrace_add_pt): Call pt_btrace_insn_flags.
5489         * btrace.h (btrace_insn_flag): New.
5490         (btrace_insn) <flags>: New.
5491         * record-btrace.c (btrace_insn_history): Print insn prefix.
5492         * NEWS: Announce it.
5493
5494 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
5495
5496         * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
5497         * configure: Regenerate.
5498
5499 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
5500
5501         * Makefile.in (LIBICONV): Define.
5502         (CLIBS): Add LIBICONV.
5503         * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
5504         * configure: Regenerate.
5505
5506 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
5507             Pedro Alves  <palves@redhat.com>
5508
5509         * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
5510         (arm_set_abi): Likewise.
5511         * ax-general.c (ax_print): Likewise.
5512         * c-exp.y (exp : string_exp): Likewise.
5513         * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
5514         (do_compile_dwarf_expr_to_c): Likewise.
5515         * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
5516         Likewise.
5517         * dwarf2expr.c (execute_stack_op): Likewise.
5518         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
5519         (disassemble_dwarf_expression): Likewise.
5520         * dwarf2read.c (dwarf2_add_member_fn): Likewise.
5521         (read_array_order): Likewise.
5522         (abbrev_table_read_table): Likewise.
5523         (read_attribute_value): Likewise.
5524         (skip_unknown_opcode): Likewise.
5525         (dwarf_decode_macro_bytes): Likewise.
5526         (dwarf_decode_macros): Likewise.
5527         * eval.c (value_f90_subarray): Likewise.
5528         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5529         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5530         * infrun.c (handle_command): Likewise.
5531         * memory-map.c (memory_map_start_memory): Likewise.
5532         * osabi.c (set_osabi): Likewise.
5533         * parse.c (operator_length_standard): Likewise.
5534         * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
5535         single return point.
5536         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5537         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5538         (gdbpy_lookup_global_symbol): Likewise.
5539         * record-full.c (record_full_restore): Likewise.
5540         * regcache.c (regcache_register_status): Likewise.
5541         (regcache_raw_read): Likewise.
5542         (regcache_cooked_read): Likewise.
5543         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5544         * symtab.c (initialize_ordinary_address_classes): Likewise.
5545         * target-debug.h (target_debug_print_signals): Likewise.
5546         * utils.c (do_restore_current_language): Likewise.
5547
5548 2015-08-06  Clem Dickey  <clemd@acm.org>
5549
5550         PR python/17136
5551         * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
5552
5553 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
5554
5555         * complaints.c (enum complaint_series): Add newlines and remove
5556         out of date comment.
5557         (struct complaints) <series>: Change type to enum
5558         complaint_series and remove out of date comment.
5559         (symfile_complaint_hook): Use equivalent enum value
5560         ISOLATED_MESSAGE instead of 0.
5561
5562 2015-08-06  Pedro Alves  <palves@redhat.com>
5563
5564         * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
5565         returned > 0.
5566
5567 2015-08-06  Pierre Langlois  <pierre.langlois@arm.com>
5568
5569         * common/agent.c (symbol_list) <required>: Remove.
5570
5571 2015-08-06  Pedro Alves  <palves@redhat.com>
5572
5573         * target/waitstatus.h (enum target_stop_reason)
5574         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5575
5576 2015-08-05  Pedro Alves  <palves@redhat.com>
5577             Joel Brobecker  <brobecker@adacore.com>
5578
5579         * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
5580         <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
5581         case where BS->STOP is not set.
5582
5583 2015-08-05  Ulrich Weigand  <uweigand@de.ibm.com>
5584
5585         * nat/gdb_thread_db.h: Add copyright header.
5586         Protect against multiple inclusion.
5587
5588 2015-08-05  Yao Qi  <yao.qi@linaro.org>
5589
5590         * aarch64-linux-nat.c (get_thread_id): Remove.
5591         (debug_reg_change_callback): Call ptid_get_lwp instead of
5592         get_thread_id.
5593         (fetch_gregs_from_thread): Likewise.
5594         (store_gregs_to_thread): Likewise.
5595         (fetch_fpregs_from_thread): Likewise.
5596         (store_fpregs_to_thread): Likewise.
5597         (aarch64_linux_get_debug_reg_capacity): Likewise.
5598         * arm-linux-nat.c (get_thread_id): Remove.
5599         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5600         * xtensa-linux-nat.c (get_thread_id): Remove.
5601         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5602         * arm-linux-nat.c (get_thread_id): Remove.
5603         (GET_THREAD_ID): Remove.
5604         (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
5605         (store_fpregs, fetch_regs, store_regs): Likewise.
5606         (fetch_wmmx_regs, store_wmmx_regs): Likewise.
5607         (fetch_vfp_regs, store_vfp_regs): Likewise.
5608         (arm_linux_read_description): Likewise.
5609         (arm_linux_get_hwbp_cap): Likewise.
5610         * xtensa-linux-nat.c (get_thread_id): Remove.
5611         (GET_THREAD_ID): Remove.
5612         (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
5613         GET_THREAD_ID.
5614
5615 2015-08-04  Ciro Santilli  <ciro.santilli@gmail.com>  (obvious patch)
5616
5617         * python/py-linetable.c: Fix case of Linetable to LineTable
5618         in docstrings and code comments.
5619         * python/py-symtab.c: Same.
5620
5621 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5622
5623         * infcmd.c (signal_command): Call do_cleanups for args_chain.
5624
5625 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5626
5627         PR gdb/18767
5628         * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
5629         use.
5630
5631 2015-08-04  Pedro Alves  <palves@redhat.com>
5632
5633         * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
5634         (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
5635         (td_ta_event_addr_ftype, td_ta_set_event_ftype)
5636         (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
5637         (td_thr_validate_ftype, td_thr_get_info_ftype)
5638         (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
5639         (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
5640         New typedefs.
5641         * linux-thread-db.c (struct thread_db_info): Use new typedefs.
5642         (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
5643         local macros and use them instead of verbose_dlsym and dlsym
5644         calls.
5645
5646 2015-08-03  Sandra Loosemore  <sandra@codesourcery.com>
5647
5648         * nios2-tdep.h: Include opcode/nios2.h here.
5649         (NIOS2_CDX_OPCODE_SIZE): New.
5650         (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
5651         * nios2-tdep.c: Don't include opcode/nios2.h here.
5652         (nios2_fetch_insn): For R2, try reading 2-byte instruction if
5653         4-byte read fails.
5654         (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
5655         (nios2_match_addi, nios2_match_orhi): Likewise.
5656         (nios2_match_stw, nios2_match_ldw): Likewise.
5657         (nios2_match_rdctl): Likewise.
5658         (nios2_match_stwm, nios2_match_ldwm): New.
5659         (nios2_match_branch): Add cases for R2 encodings.
5660         (nios2_match_jmpi, nios2_match_calli): Likewise.
5661         (nios2_match_jmpr, nios2_match_callr): Likewise.
5662         (nios2_match_break, nios2_match_trap): Likewise.
5663         (nios2_in_epilogue_p): Add R2 support.
5664         (nios2_analyze_prologue): Update comments.  Recognize R2 CDX
5665         prologues.
5666         (nios2_breakpoint_from_pc): Handle R2 instructions.
5667         (nios2_get_next_pc): Likewise.  Adjust call to
5668         tdep->syscall_next_pc.
5669         * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
5670         Renamed from nios2_linux_rt_sigreturn_tramp_frame.  Use
5671         instruction field macros instead of literal hex values.
5672         (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
5673         (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
5674         Use size field from OP instead of assuming all instructions
5675         are the same size.
5676         (nios2_linux_init_abi): Register appropriate unwinder for mach.
5677
5678 2015-08-03  Ulrich Weigand  <uweigand@de.ibm.com>
5679
5680         * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
5681         variable warning with some compilers.
5682
5683 2015-08-03  Yao Qi  <yao.qi@linaro.org>
5684
5685         * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
5686         in comment.  Replace "rw" with "type".
5687         (arm_linux_remove_watchpoint): Change type of "rw" to
5688         "enum target_hw_bp_type".
5689
5690 2015-08-02  Pierre-Marie de Rodat  <derodat@adacore.com>
5691
5692         * alpha-mdebug-tdep.c (find_proc_desc): Update call to
5693         lookup_symbol.
5694         * ft32-tdep.c (ft32_skip_prologue): Likewise.
5695         * moxie-tdep.c (moxie_skip_prologue): Likewise.
5696         * mt-tdep.c (mt_skip_prologue): Likewise.
5697         * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5698
5699 2015-08-01  Pierre-Marie de Rodat  <derodat@adacore.com>
5700
5701         * ada-exp.y (write_object_renaming): Replace struct
5702         ada_symbol_info with struct block_symbol.  Update field
5703         references accordingly.
5704         (block_lookup, select_possible_type_sym): Likewise.
5705         (find_primitive_type): Likewise.  Also update call to
5706         ada_lookup_symbol to extract the symbol itself.
5707         (write_var_or_type, write_name_assoc): Likewise.
5708         * ada-lang.h (struct ada_symbol_info): Remove.
5709         (ada_lookup_symbol_list): Replace struct ada_symbol_info with
5710         struct block_symbol.
5711         (ada_lookup_encoded_symbol, user_select_syms): Likewise.
5712         (ada_lookup_symbol): Return struct block_symbol instead of a
5713         mere symbol.
5714         * ada-lang.c (defns_collected): Replace struct ada_symbol_info
5715         with struct block_symbol.
5716         (resolve_subexp, ada_resolve_function, sort_choices,
5717         user_select_syms, is_nonfunction, add_defn_to_vec,
5718         num_defns_collected, defns_collected,
5719         symbols_are_identical_enums, remove_extra_symbols,
5720         remove_irrelevant_renamings, add_lookup_symbol_list_worker,
5721         ada_lookup_symbol_list, ada_iterate_over_symbols,
5722         ada_lookup_encoded_symbol, get_var_value): Likewise.
5723         (ada_lookup_symbol): Return a block_symbol instead of a mere
5724         symbol.  Replace struct ada_symbol_info with struct
5725         block_symbol.
5726         (ada_lookup_symbol_nonlocal): Likewise.
5727         (standard_lookup): Make block passing explicit through
5728         lookup_symbol_in_language.
5729         * ada-tasks.c (get_tcb_types_info): Update the calls to
5730         lookup_symbol_in_language to extract the mere symbol out of the
5731         returned value.
5732         (ada_tasks_inferior_data_sniffer): Likewise.
5733         * ax-gdb.c (gen_static_field): Likewise for the call to
5734         lookup_symbol.
5735         (gen_maybe_namespace_elt): Deal with struct block_symbol from
5736         lookup functions.
5737         (gen_expr): Likewise.
5738         * c-exp.y: Likewise.  Remove uses of block_found.
5739         (lex_one_token, classify_inner_name, c_print_token): Likewise.
5740         (classify_name): Likewise.  Rename the "sym" local variable to
5741         "bsym".
5742         * c-valprint.c (print_unpacked_pointer): Likewise.
5743         * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5744         "sym" parameter from struct symbol * to struct block_symbol.
5745         Use it to remove uses of block_found.  Deal with struct
5746         block_symbol from lookup functions.
5747         (gcc_convert_symbol): Likewise.  Update the call to
5748         convert_symbol_sym.
5749         * compile/compile-object-load.c (compile_object_load): Deal with
5750         struct block_symbol from lookup functions.
5751         * cp-namespace.c (cp_lookup_nested_symbol_1,
5752         cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5753         cp_search_static_and_baseclasses,
5754         cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5755         cp_lookup_symbol_imports_or_template,
5756         cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5757         lookup_namespace_scope, cp_lookup_nonlocal,
5758         find_symbol_in_baseclass): Return struct block_symbol instead of
5759         mere symbols and deal with struct block_symbol from lookup
5760         functions.
5761         * cp-support.c (inspect_type, replace_typedefs,
5762         cp_lookup_rtti_type): Deal with struct block_symbol from
5763         lookup functions.
5764         * cp-support.h (cp_lookup_symbol_nonlocal,
5765         cp_lookup_symbol_from_namespace,
5766         cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
5767         Return struct block_symbol instead of mere symbols.
5768         * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5769         push_module_name):
5770         Deal with struct block_symbol from lookup functions.  Remove
5771         uses of block_found.
5772         * eval.c (evaluate_subexp_standard): Update call to
5773         cp_lookup_symbol_namespace.
5774         * f-exp.y: Deal with struct block_symbol from lookup functions.
5775         Remove uses of block_found.
5776         (yylex): Likewise.
5777         * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5778         lookup_enum, lookup_template_type, check_typedef): Deal with
5779         struct block_symbol from lookup functions.
5780         * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5781         * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5782         (gdbscm_lookup_global_symbol): Likewise.
5783         * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5784         * go-exp.y: Likewise.  Remove uses of block_found.
5785         (package_name_p, classify_packaged_name, classify_name):
5786         Likewise.
5787         * infrun.c (insert_exception_resume_breakpoint): Likewise.
5788         * jv-exp.y (push_variable): Likewise.
5789         * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5790         * language.c (language_bool_type): Likewise.
5791         * language.h (struct language_defn): Update
5792         la_lookup_symbol_nonlocal to return a struct block_symbol rather
5793         than a mere symbol.
5794         * linespec.c (find_label_symbols): Deal with struct block_symbol
5795         from lookup functions.
5796         * m2-exp.y: Likewise.  Remove uses of block_found.
5797         (yylex): Likewise.
5798         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5799         * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5800         * p-exp.y: Likewise.  Remove uses of block_found.
5801         (yylex): Likewise.
5802         * p-valprint.c (pascal_val_print): Likewise.
5803         * parse.c (write_dollar_variable): Likewise.  Remove uses of
5804         block_found.
5805         * parser-defs.h (struct symtoken): Turn the SYM field into a
5806         struct block_symbol.
5807         * printcmd.c (address_info): Deal with struct block_symbol from
5808         lookup functions.
5809         * python/py-frame.c (frapy_read_var): Likewise.
5810         * python/py-symbol.c (gdbpy_lookup_symbol,
5811         gdbpy_lookup_global_symbol): Likewise.
5812         * skip.c (skip_function_command): Likewise.
5813         * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
5814         block_symbol instead of a mere symbol.
5815         * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5816         * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5817         * solib.c (solib_global_lookup): Likewise.
5818         * solist.h (solib_global_lookup): Likewise.
5819         (struct target_so_ops): Update lookup_lib_global_symbol to
5820         return a struct block_symbol rather than a mere symbol.
5821         * source.c (select_source_symtab): Deal with struct block_symbol
5822         from lookup functions.
5823         * stack.c (print_frame_args, iterate_over_block_arg_vars):
5824         Likewise.
5825         * symfile.c (set_initial_language): Likewise.
5826         * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
5827         block_symbol.
5828         (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5829         (struct symbol_cache_slot): Turn the FOUND field into a struct
5830         block_symbol.
5831         (block_found): Remove.
5832         (eq_symbol_entry): Update to deal with struct block_symbol in
5833         cache slots.
5834         (symbol_cache_lookup): Return a struct block_symbol rather than
5835         a mere symbol.
5836         (symbol_cache_mark_found): Add a BLOCK parameter to fill
5837         appropriately the cache slots.  Update callers.
5838         (symbol_cache_dump): Update cache slots handling to the type
5839         change.
5840         (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5841         lookup_symbol_aux, lookup_local_symbol,
5842         lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5843         lookup_symbol_in_objfile_symtabs,
5844         lookup_symbol_in_objfile_from_linkage_name,
5845         lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5846         lookup_symbol_in_static_block, lookup_static_symbol,
5847         lookup_global_symbol):
5848         Return a struct block_symbol rather than a mere symbol.  Deal
5849         with struct block_symbol from other lookup functions.  Remove
5850         uses of block_found.
5851         (lookup_symbol_in_block): Remove uses of block_found.
5852         (struct global_sym_lookup_data): Turn the RESULT field into a
5853         struct block_symbol.
5854         (lookup_symbol_global_iterator_cb): Update references to the
5855         RESULT field.
5856         (search_symbols): Deal with struct block_symbol from lookup
5857         functions.
5858         * symtab.h (struct block_symbol): New structure.
5859         (block_found): Remove.
5860         (lookup_symbol_in_language, lookup_symbol,
5861         basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
5862         lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5863         lookup_global_symbol_from_objfile): Return a struct block_symbol
5864         rather than just a mere symbol.  Update comments to remove
5865         mentions of block_found.
5866         * valops.c (find_function_in_inferior,
5867         value_struct_elt_for_reference, value_maybe_namespace_elt,
5868         value_of_this):  Deal with struct block_symbol from lookup
5869         functions.
5870         * value.c (value_static_field, value_fn_field): Likewise.
5871
5872 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5873
5874         * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5875         instead of integer.
5876
5877 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5878             Pedro Alves  <palves@redhat.com>
5879
5880         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5881         type or value instead of integer.
5882         (aarch64_linux_insert_watchpoint): Likewise.
5883         (aarch64_linux_remove_watchpoint): Likewise.
5884         * ada-lang.c (ada_op_print_tab): Likewise.
5885         * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5886         (amd64_linux_syscall_record_common): Likewise.
5887         * arch-utils.c (target_byte_order_user): Likewise.
5888         (default_byte_order): Likewise.
5889         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5890         (arm_linux_get_hwbp_type): Likewise.
5891         (arm_linux_hw_watchpoint_initialize): Likewise.
5892         (arm_linux_insert_watchpoint): Likewise.
5893         * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5894         (arm_linux_syscall_record): Likewise.
5895         * breakpoint.c (update_watchpoint): Likewise.
5896         (breakpoint_here_p): Likewise.
5897         (bpstat_print): Likewise.
5898         (enable_breakpoint_disp): Likewise.
5899         * c-lang.c (c_op_print_tab): Likewise.
5900         * cli/cli-decode.c (add_info_alias): Likewise.
5901         * d-lang.c (d_op_print_tab): Likewise.
5902         * eval.c (evaluate_subexp_standard): Likewise.
5903         * f-exp.y (dot_ops): Likewise.
5904         (f77_keywords): Likewise.
5905         * f-lang.c (f_op_print_tab): Likewise.
5906         * go-lang.c (go_op_print_tab): Likewise.
5907         * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5908         * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5909         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5910         * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5911         * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5912         (struct scm_from_stringn_data): Likewise.
5913         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5914         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5915         (ia64_linux_remove_watchpoint): Likewise.
5916         (ia64_linux_can_use_hw_breakpoint): Likewise.
5917         * infrun.c (print_stop_event): Likewise.
5918         * jv-lang.c (java_op_print_tab): Likewise.
5919         * linux-nat.c (linux_proc_xfer_partial): Likewise.
5920         * linux-nat.h (struct lwp_info): Likewise.
5921         * linux-thread-db.c (enable_thread_event): Likewise.
5922         * m2-lang.c (m2_op_print_tab): Likewise.
5923         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5924         (mi_cmd_stack_list_variables): Likewise.
5925         * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5926         * mi/mi-out.c (mi_table_begin): Likewise.
5927         (mi_table_header): Likewise.
5928         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5929         (mips_linux_insert_watchpoint): Likewise.
5930         (mips_linux_remove_watchpoint): Likewise.
5931         * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5932         * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5933         (mips_linux_watch_type_to_irw): Likewise.
5934         * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5935         (procfs_insert_hw_watchpoint): Likewise.
5936         (procfs_remove_hw_watchpoint): Likewise.
5937         (procfs_hw_watchpoint): Likewise.
5938         (procfs_can_use_hw_breakpoint): Likewise.
5939         (procfs_remove_hw_watchpoint): Likewise.
5940         (procfs_insert_hw_watchpoint): Likewise.
5941         * p-lang.c (pascal_op_print_tab): Likewise.
5942         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5943         * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5944         * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5945         * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5946         (procfs_insert_watchpoint): Likewise.
5947         (procfs_remove_watchpoint): Likewise.
5948         * psymtab.c (recursively_search_psymtabs): Likewise.
5949         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5950         (m32r_insert_watchpoint): Likewise.
5951         * remote-mips.c (mips_can_use_watchpoint): Likewise.
5952         (mips_insert_watchpoint): Likewise.
5953         (mips_remove_watchpoint): Likewise.
5954         * remote.c (watchpoint_to_Z_packet): Likewise.
5955         (remote_insert_watchpoint): Likewise.
5956         (remote_remove_watchpoint): Likewise.
5957         (remote_check_watch_resources): Likewise.
5958         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5959         (s390_remove_watchpoint): Likewise.
5960         (s390_can_use_hw_breakpoint): Likewise.
5961         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5962         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5963         * target.h (struct target_ops): Likewise.
5964         * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5965         * ui-out.c (struct ui_out_hdr): Likewise.
5966         (append_header_to_list): Likewise.
5967         (get_next_header): Likewise.
5968         (verify_field): Likewise.
5969         (ui_out_begin): Likewise.
5970         (ui_out_field_int): Likewise.
5971         (ui_out_field_fmt_int): Likewise.
5972         (ui_out_field_skip): Likewise.
5973         (ui_out_field_string): Likewise.
5974         (ui_out_field_fmt): Likewise.
5975         * varobj.c (new_variable): Likewise.
5976         * x86-nat.c (x86_insert_watchpoint): Likewise.
5977         (x86_remove_watchpoint): Likewise.
5978         (x86_can_use_hw_breakpoint): Likewise.
5979         * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5980         * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5981         previously anonymous enumeration type..
5982         * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5983         value.
5984         * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5985         (target_debug_print_enum_bptype): New.
5986         * target-delegates.c: Regenerate.
5987
5988 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
5989
5990         * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5991         already says and disallow non-stack memory writes in the prologue.
5992
5993 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
5994
5995         * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5996         reflect how current GCC emits stack overflow checks.  Match
5997         both trap and break instructions for backward compatbility.
5998         Disallow other trap and break instructions in the prologue.
5999
6000 2015-07-30  Pedro Alves  <palves@redhat.com>
6001
6002         PR threads/18600
6003         * linux-nat.c (wait_lwp): Report to the core when thread group
6004         leader exits.
6005
6006 2015-07-30  Pedro Alves  <palves@redhat.com>
6007             Simon Marchi  <simon.marchi@ericsson.com>
6008
6009         PR threads/18600
6010         * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
6011         mark the new thread as resumed.  Remove STOPPING parameter.
6012         (wait_lwp): Adjust call to linux_handle_extended_wait.
6013         (linux_nat_filter_event): Adjust call to
6014         linux_handle_extended_wait.
6015         (resume_stopped_resumed_lwps): Add debug output.
6016
6017 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
6018
6019         * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
6020         isize argument.
6021         * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
6022         * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
6023         gdbarch_fast_tracepoint_valid_at.
6024         * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
6025         * gdbarch.h: Regenerate.
6026         * gdbarch.c: Regenerate.
6027         * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
6028         argument.  Do not set it.
6029         * remote.c (remote_download_tracepoint): Adjust call to
6030         gdbarch_fast_tracepoint_valid_at.  Call gdb_insn_length to get
6031         the instruction length.
6032
6033 2015-07-30  Yao Qi  <yao.qi@linaro.org>
6034
6035         * arm-tdep.h (enum gdb_regnum): Move it to ...
6036         * arch/arm.h: ... here.  New file.
6037         * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
6038
6039 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
6040
6041         * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
6042         Change its type to int *.
6043         (decode_br): Rename link argument to is_blr.  Change its type to
6044         int *.
6045         (decode_cb): Rename op argument to is_cbnz.  Change its type to
6046         int *.
6047         (decode_tb): Rename op argument to is_tbnz.  Change its type to
6048         int *.  Set is_tbnz to either 1 or 0.
6049         (aarch64_analyze_prologue): Change type of is_link to int.  Add
6050         new variables is_cbnz and is_tbnz.  Adjust call to
6051         aarch64_decode_cb and aarch64_decode_tb.
6052
6053 2015-07-29  Simon Marchi  <simon.marchi@ericsson.com>
6054
6055         * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
6056         parameter.
6057         (mips_linux_new_thread): Likewise.
6058         * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
6059
6060 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
6061
6062         * top.c: Include "tui/tui.h".
6063         (undo_terminal_modifications_before_exit): New static function.
6064         (quit_force): Use it.
6065
6066 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
6067
6068         * target.c (terminal_state): Initialize to terminal_is_ours.
6069
6070 2015-07-29  Yao Qi  <yao.qi@linaro.org>
6071
6072         PR record/18691
6073         * dcache.c (dcache_read_memory_partial): Call
6074         raw_memory_xfer_partial.
6075         * target.c (raw_memory_xfer_partial): Make it non-static.
6076         * target.h (raw_memory_xfer_partial): Declare.
6077
6078 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
6079
6080         * c-valprint.c (c_val_print_array): Consider addressable memory
6081         unit size.
6082         (c_val_print_ptr): Likewise.
6083         (c_val_print_int): Likewise.
6084         * findvar.c (read_frame_register_value): Likewise.
6085         * valarith.c (find_size_for_pointer_math): Likewise.
6086         (value_ptrdiff): Likewise.
6087         (value_subscripted_rvalue): Likewise.
6088         * valops.c (read_value_memory): Likewise (and rename variables).
6089         (value_assign): Likewise.
6090         (value_repeat): Likewise.
6091         (value_array): Likewise.
6092         (value_slice): Likewise.
6093         * valprint.c (generic_val_print_ptr): Likewise.
6094         (generic_val_print_enum): Likewise.
6095         (generic_val_print_bool): Likewise.
6096         (generic_val_print_int): Likewise.
6097         (generic_val_print_char): Likewise.
6098         (generic_val_print_float): Likewise.
6099         (generic_val_print_decfloat): Likewise.
6100         (generic_val_print_complex): Likewise.
6101         (val_print_scalar_formatted): Likewise.
6102         (val_print_array_elements): Likewise.
6103         * value.c (set_value_parent): Likewise.
6104         (value_contents_copy_raw): Likewise.
6105         (set_internalvar_component): Likewise.
6106         (value_primitive_field): Likewise.
6107         (value_fetch_lazy): Likewise.
6108         * value.h (read_value_memory): Update comment.
6109
6110 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
6111
6112         * value.c (get_value_arch): New function.
6113         * value.h (get_value_arch): New declaration.
6114
6115 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
6116
6117         * value.c (struct value): Update comments.
6118
6119 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
6120
6121         * gdbtypes.c (type_length_units): New function.
6122         * gdbtypes.h (type_length_units): New declaration.
6123         (struct type) <length>: Update comment.
6124
6125 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6126
6127         * valprint.c (generic_val_print): Factor out complex
6128         printing code to ...
6129         (generic_val_print_complex): ... this new function.
6130
6131 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6132
6133         * valprint.c (generic_val_print): Factor out decfloat
6134         printing code to ...
6135         (generic_val_print_decfloat): ... this new function.
6136
6137 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6138
6139         * valprint.c (generic_val_print): Factor out float
6140         printing code to ...
6141         (generic_val_print_float): ... this new function.
6142
6143 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6144
6145         * valprint.c (generic_val_print): Factor out char
6146         printing code to ...
6147         (generic_val_print_char): ... this new function.
6148
6149 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6150
6151         * valprint.c (generic_val_print): Factor out integer
6152         printing code to ...
6153         (generic_val_print_int): ... this new function.
6154
6155 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6156
6157         * valprint.c (generic_val_print): Factor out bool
6158         printing code to ...
6159         (generic_val_print_bool): ... this new function.
6160
6161 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6162
6163         * valprint.c (generic_val_print): Factor out function/method
6164         printing code to ...
6165         (generic_val_print_func): ... this new function.
6166
6167 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6168
6169         * valprint.c (generic_val_print): Factor out flags
6170         printing code to ...
6171         (generic_val_print_flags): ... this new function.
6172
6173 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6174
6175         * valprint.c (generic_val_print): Factor out enum
6176         printing code to ...
6177         (generic_val_print_enum): ... this new function.
6178
6179 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6180
6181         * valprint.c (generic_val_print): Factor out reference
6182         printing code to ...
6183         (generic_val_print_ref): ... this new function.
6184
6185 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6186
6187         * valprint.c (generic_val_print): Factor out memberptr
6188         printing code to ...
6189         (generic_val_print_memberptr): ... this new function.
6190
6191 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6192
6193         * valprint.c (generic_val_print): Factor out pointer
6194         printing code to ...
6195         (generic_val_print_ptr): ... this new function.
6196
6197 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6198
6199         * valprint.c (generic_val_print): Factor out array
6200         printing code to ...
6201         (generic_val_print_array): ... this new function.
6202
6203 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6204
6205         * valprint.c (generic_val_print): Factor out
6206         print_unpacked_pointer code to ...
6207         (print_unpacked_pointer): ... this new function.
6208
6209 2015-07-27  Patrick Palka  <patrick@parcs.ath.cx>
6210
6211         * event-top.c (handle_sigterm): Don't inspect
6212         target_can_async_p.  Always set the quit flag and always mark
6213         the async signal handler.
6214
6215 2015-07-27  Yao Qi  <yao.qi@linaro.org>
6216
6217         * Makefile.in (REMOTE_EXAMPLES): Remove it.
6218
6219 2015-07-25  Kevin Buettner  <kevinb@redhat.com>
6220
6221         * remote.c (read_ptid): Return null_ptid when no thread id
6222         is found.
6223         (remote_current_thread): Add log warning for malformed
6224         qC reply.
6225         (remote_start_remote): Add log warning when current thread
6226         not found.
6227
6228 2015-07-24  Pedro Alves  <palves@redhat.com>
6229
6230         * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
6231         (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
6232         forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
6233
6234 2015-07-24  Pedro Alves  <palves@redhat.com>
6235
6236         PR gdb/18717
6237         * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
6238         is resumed, and extend the debug log.
6239
6240 2015-07-24  Pedro Alves  <palves@redhat.com>
6241
6242         * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
6243
6244 2015-07-24  Pedro Alves  <palves@redhat.com>
6245
6246         * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
6247         sys/ptrace.h.
6248         * alpha-linux-nat.c: Likewise.
6249         * amd64-linux-nat.c: Likewise.
6250         * arm-linux-nat.c: Likewise.
6251         * hppa-linux-nat.c: Likewise.
6252         * i386-linux-nat.c: Likewise.
6253         * ia64-linux-nat.c: Likewise.
6254         * linux-fork.c: Likewise.
6255         * linux-nat.c: Likewise.
6256         * m32r-linux-nat.c: Likewise.
6257         * m68klinux-nat.c: Likewise.
6258         * mips-linux-nat.c: Likewise.
6259         * nat/linux-btrace.c: Likewise.
6260         * nat/linux-ptrace.c: Likewise.
6261         * nat/linux-ptrace.h
6262         * nat/mips-linux-watch.c: Likewise.
6263         * nat/x86-linux-dregs.c: Likewise.
6264         * ppc-linux-nat.c: Likewise.
6265         * s390-linux-nat.c: Likewise.
6266         * spu-linux-nat.c: Likewise.
6267         * tilegx-linux-nat.c: Likewise.
6268         * x86-linux-nat.c: Likewise.
6269         * xtensa-linux-nat.c: Likewise.
6270
6271 2015-07-24  Pedro Alves  <palves@redhat.com>
6272
6273         * ptrace.m4 (ptrace tests): Test in C++ mode.  Try with 'enum
6274         __ptrace_request as first parameter type instead of int.
6275         (PTRACE_TYPE_ARG1): Define.
6276         * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
6277         that casts first argument to PTRACE_TYPE_ARG1.
6278         * config.in: Regenerate.
6279         * configure: Regenerate.
6280
6281 2015-07-24  Pedro Alves  <palves@redhat.com>
6282
6283         * gdb_ptrace.h: Move ...
6284         * nat/gdb_ptrace.h: ... here.
6285         * inf-ptrace.c: Adjust.
6286
6287 2015-07-24  Pedro Alves  <palves@redhat.com>
6288
6289         * acinclude.m4: Include ptrace.m4.
6290         * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
6291         * ptrace.m4: ... to this new file.
6292
6293 2015-07-23  Doug Evans  <dje@google.com>
6294
6295         * dwarf2read.c (dwarf2_per_cu_data): Add comment.
6296         (load_cu): Handle dummy CUs.
6297         (dw2_do_instantiate_symtab, process_queuef): Ditto.
6298         (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
6299
6300 2015-07-23  Ciro Santilli  <ciro.santilli@gmail.com>  (tiny patch)
6301
6302         * py-linetable.c (ltpy_get_all_source_lines): Adjust function
6303         documentation to say that it returns a list rather than
6304         a FrozenSet.
6305         (linetable_object_methods): Update the docstring of the
6306         "source_line" entry.
6307
6308 2015-07-23  Pierre-Marie de Rodat  <derodat@adacore.com>
6309
6310         * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
6311         type to the recursive call instead of the original (maybe
6312         TYPE_CODE_TYPEDEF) type.
6313
6314 2015-07-23  Yao Qi  <yao.qi@linaro.org>
6315
6316         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
6317         TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
6318         If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
6319
6320 2015-07-21  Yao Qi  <yao.qi@linaro.org>
6321
6322         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
6323         Move it to nat/aarch64-linux-hw-point.c.
6324         (aarch64_linux_child_post_startup_inferior): Update.
6325         * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
6326         New function.
6327         * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
6328         Declare it.
6329
6330 2015-07-21  Markus Metzger  <markus.t.metzger@intel.com>
6331
6332         * common/btrace-common.c (btrace_data_append): Change case label.
6333
6334 2015-07-20  Yao Qi  <yao.qi@linaro.org>
6335
6336         * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
6337         Re-indent the code.
6338         * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
6339         "unsigned long long".
6340
6341 2015-07-18  Kevin Buettner  <kevinb@redhat.com>
6342
6343         * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
6344         to be set for SEC_ALLOC sections too.
6345
6346 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6347
6348         * Makefile.in (HFILES_NO_SRCDIR): Add
6349         nat/aarch64-linux-hw-point.h.
6350         (aarch64-linux-hw-point.o): New rule.
6351         * nat/aarch64-linux-hw-point.h: New file.
6352         * nat/aarch64-linux-hw-point.c: New file.
6353         * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
6354         (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
6355         (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
6356         (AARCH64_HWP_ALIGNMENT): Likewise.
6357         (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
6358         (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
6359         (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
6360         (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
6361         (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
6362         (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
6363         (struct aarch64_debug_reg_state): Likewise.
6364         (struct arch_lwp_info): Likewise.
6365         (aarch64_linux_set_debug_regs): Likewise.
6366         (aarch64_notify_debug_reg_change): Remove static.
6367         (aarch64_align_watchpoint): Likewise.
6368         (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
6369         (aarch64_watchpoint_length): Likewise.
6370         (aarch64_point_encode_ctrl_reg): Likewise
6371         (aarch64_point_is_aligned): Likewise.
6372         (aarch64_dr_state_insert_one_point): Likewise.
6373         (aarch64_dr_state_remove_one_point): Likewise.
6374         (aarch64_handle_breakpoint): Likewise.
6375         (aarch64_handle_aligned_watchpoint): Likewise.
6376         (aarch64_handle_unaligned_watchpoint): Likewise.
6377         (aarch64_handle_watchpoint): Likewise.
6378         * config/aarch64/linux.mh (NAT_FILE): Add
6379         aarch64-linux-hw-point.o.
6380
6381 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6382
6383         * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
6384         state and don't call aarch64_get_debug_reg_state.  All callers
6385         update.
6386         (aarch64_linux_insert_hw_breakpoint): Call
6387         aarch64_get_debug_reg_state earlier.
6388         (aarch64_linux_remove_hw_breakpoint): Likewise.
6389         (aarch64_handle_aligned_watchpoint): Add argument state and
6390         don't call aarch64_get_debug_reg_state.  All callers update.
6391         (aarch64_handle_unaligned_watchpoint): Likewise.
6392         (aarch64_handle_watchpoint): Add argument state.
6393         (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
6394         earlier.
6395         (aarch64_linux_remove_watchpoint): Likewise.
6396
6397 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6398
6399         * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
6400         debug_printf.
6401         (aarch64_handle_unaligned_watchpoint): Likewise.
6402
6403 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6404
6405         * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
6406         argument type's type to 'enum target_hw_bp_type'.
6407         (aarch64_dr_state_remove_one_point): Likewise.
6408         (aarch64_handle_breakpoint): Likewise.
6409         (aarch64_linux_insert_hw_breakpoint): Likewise.
6410         (aarch64_linux_remove_hw_breakpoint): Likewise.
6411         (aarch64_handle_aligned_watchpoint): Likewise.
6412
6413 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6414
6415         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
6416         ptid_get_pid instead of get_thread_id.
6417
6418 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6419
6420         * remote.c (get_current_thread): Initialise ptid to null_ptid.
6421         (add_current_inferior_and_thread): Don't initialise ptid.
6422
6423 2015-07-16  Pierre Langlois  <pierre.langlois@arm.com>
6424
6425         * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
6426         unavailable if invalid.
6427
6428 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6429
6430         Revert the previous 6 commits:
6431         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6432         Move gdb_regex* to common/
6433         Prepare linux_find_memory_regions_full & co. for move
6434         Move linux_find_memory_regions_full & co.
6435         gdbserver build-id attribute generator
6436         Validate symbol file using build-id
6437
6438 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6439             Jan Kratochvil  <jan.kratochvil@redhat.com>
6440
6441         Validate symbol file using build-id.
6442         * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
6443         and 'show validate-build-id'.  Add build-id attribute.
6444         * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
6445         * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
6446         * solib-frv.c (_initialize_frv_solib): Ditto.
6447         * solib-spu.c (set_spu_solib_ops): Ditto.
6448         * solib-svr4.c: Include rsp-low.h.
6449         (NOTE_GNU_BUILD_ID_NAME): New define.
6450         (svr4_validate): New function.
6451         (svr4_copy_library_list): Duplicate field build_id.
6452         (library_list_start_library): Parse 'build-id' attribute.
6453         (svr4_library_attributes): Add 'build-id' attribute.
6454         (_initialize_svr4_solib): Assign validate value.
6455         * solib-target.c (solib.h): Include.
6456         (_initialize_solib_target): Assign validate value.
6457         * solib.c (validate_build_id, show_validate_build_id): New.
6458         (solib_map_sections): Use ops->validate.
6459         (clear_so): Free build_id.
6460         (default_solib_validate): New function.
6461         (_initialize_solib): Add "validate-build-id".
6462         * solib.h (default_solib_validate): New declaration.
6463         * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
6464         (target_so_ops): New field 'validate'.
6465
6466 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6467             Jan Kratochvil  <jan.kratochvil@redhat.com>
6468
6469         gdbserver build-id attribute generator.
6470         * features/library-list-svr4.dtd (library-list-svr4): New
6471         'build-id' attribute.
6472
6473 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6474             Jan Kratochvil  <jan.kratochvil@redhat.com>
6475
6476         Move linux_find_memory_regions_full & co.
6477         * linux-tdep.c (nat/linux-maps.h): Include.
6478         (gdb_regex.h): Remove the include.
6479         (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
6480         (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
6481         (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
6482         (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
6483         * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
6484         and target/target.h.
6485         (struct smaps_vmflags, read_mapping, decode_vmflags)
6486         (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
6487         (linux_find_memory_regions_full): Move from linux-tdep.c.
6488         * nat/linux-maps.h (read_mapping): New declaration.
6489         (linux_find_memory_region_ftype, enum filterflags): Moved from
6490         linux-tdep.c.
6491         (linux_find_memory_regions_full): New declaration.
6492         * target.c (target/target-utils.h): Include.
6493         (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
6494         (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
6495         definitions to target/target-utils.c.
6496         * target.h (target_fileio_read_stralloc): Move it to target/target.h.
6497         * target/target-utils.c (read_alloc, read_stralloc): Move definitions
6498         from target.c.
6499         * target/target-utils.h (read_alloc_pread_ftype): New typedef.
6500         (read_alloc): New declaration.
6501         (read_stralloc_func_ftype): New typedef.
6502         (read_stralloc): New declaration.
6503         * target/target.h (target_fileio_read_stralloc): Move it from target.h.
6504
6505 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6506             Jan Kratochvil  <jan.kratochvil@redhat.com>
6507
6508         Prepare linux_find_memory_regions_full & co. for move.
6509         * linux-tdep.c (linux_find_memory_region_ftype): Comment.
6510         (linux_find_memory_regions_full): Change signature and prepare
6511         for moving to linux-maps.
6512         (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
6513         (linux_find_memory_regions_thunk): New.
6514         (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
6515         (linux_find_memory_regions_gdb): New.
6516         (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
6517         (linux_make_mappings_corefile_notes): Use
6518         linux_find_memory_regions_gdb.
6519         * target.c (read_alloc_pread_ftype): New typedef.
6520         (target_fileio_read_alloc_1_pread): New function.
6521         (read_alloc): Refactor from target_fileio_read_alloc_1.
6522         (read_stralloc_func_ftype): New typedef.
6523         (target_fileio_read_alloc_1): New implementation. Use read_alloc.
6524         (read_stralloc): Refactored from target_fileio_read_stralloc.
6525         (target_fileio_read_stralloc): New implementation, use read_stralloc.
6526
6527 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6528
6529         * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
6530         common/gdb_regex.h.
6531         (COMMON_OBS): Add gdb_regex.o.
6532         (gdb_regex.o): New.
6533         * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
6534         --without-included-regex and USE_INCLUDED_REGEX.
6535         * common/gdb_regex.c: New file from utils.c functions.
6536         * common/gdb_regex.h: Move it here from gdb_regex.h, update include
6537         file wrapping define name.
6538         * configure: Rebuilt.
6539         * configure.ac (gdb_use_included_regex, --without-included-regex)
6540         (USE_INCLUDED_REGEX): Move them to common/common.m4.
6541         * gdb_regex.h: Move it to common/gdb_regex.h.
6542         * utils.c: Remove include gdb_regex.h.
6543         (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
6544         (compile_rx_or_error): Move them to common/gdb_regex.c.
6545
6546 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6547             Jan Kratochvil  <jan.kratochvil@redhat.com>
6548
6549         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6550         * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
6551         common/target-utils.h.
6552         (COMMON_OBS): Add target-utils.o.
6553         (linux-maps.o, target-utils.o): New.
6554         * target/target-utils.c: New file.
6555         * target/target-utils.h: New file.
6556         * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
6557         * config/i386/linux64.mh (NATDEPFILES): Ditto.
6558         * nat/linux-maps.c: New file.
6559         * nat/linux-maps.h: New file.
6560
6561 2015-07-15  Markus Metzger  <markus.t.metzger@intel.com>
6562             Pedro Alves <palves@redhat.com>
6563
6564         * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
6565         (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
6566         (perf_event_read_bts): Change the type of SIZE and READ.
6567         (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
6568         and DATA_OFFSET.  Move DATA_SIZE declaration.  Restrict the buffer size
6569         to UINT_MAX.  Check for overflows when using DATA_HEAD from the perf
6570         mmap page.
6571         (linux_enable_pt): Change the type of PAGES and SIZE.  Restrict the
6572         buffer size to UINT_MAX.
6573         (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
6574         DATA_TAIL.
6575         * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
6576         <last_head>: Change type.
6577         * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
6578         * common/btrace-common.c (btrace_data_append): Change the type of
6579         SIZE.
6580         * btrace.c (parse_xml_raw): Change the type of SIZE.  Change oddness
6581         check.
6582
6583 2015-07-14  Simon Marchi  <simon.marchi@ericsson.com>
6584
6585         * gdbtypes.h (CHECK_TYPEDEF): Remove.
6586         * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
6587         with check_typedef.
6588         * ada-lang.c (decode_constrained_packed_array_type): Likewise.
6589         (ada_array_length): Likewise.
6590         (find_parallel_type_by_descriptive_type): Likewise.
6591         (ada_check_typedef): Likewise.
6592         * arm-tdep.c (arm_return_in_memory): Likewise.
6593         * ax-gdb.c (gen_trace_static_fields): Likewise.
6594         (gen_struct_ref_recursive): Likewise.
6595         * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6596         (variable: block COLONCOLON name): Likewise.
6597         (qualified_name: TYPENAME COLONCOLON name): Likewise.
6598         * c-lang.c (classify_type): Likewise.
6599         * c-typeprint.c (c_print_type): Likewise.
6600         (c_print_typedef): Likewise.
6601         (c_type_print_base): Likewise.
6602         * c-valprint.c (c_val_print): Likewise.
6603         * compile/compile-c-types.c (convert_type): Likewise.
6604         * compile/compile-object-load.c (get_out_value_type): Likewise.
6605         * completer.c (add_struct_fields): Likewise.
6606         (expression_completer): Likewise.
6607         * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
6608         (cp_lookup_nested_symbol_1): Likewise.
6609         (cp_lookup_nested_symbol): Likewise.
6610         * cp-valprint.c (cp_print_value_fields): Likewise.
6611         (cp_print_static_field): Likewise.
6612         * d-valprint.c (d_val_print): Likewise.
6613         * eval.c (evaluate_subexp_standard): Likewise.
6614         (evaluate_subexp_for_sizeof): Likewise.
6615         * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6616         * f-typeprint.c (f_type_print_base): Likewise.
6617         * f-valprint.c (f_val_print): Likewise.
6618         * gdbtypes.c (get_discrete_bounds): Likewise.
6619         (create_array_type_with_stride): Likewise.
6620         (type_name_no_tag_or_error): Likewise.
6621         (lookup_struct_elt_type): Likewise.
6622         (get_unsigned_type_max): Likewise.
6623         (internal_type_vptr_fieldno): Likewise.
6624         (set_type_vptr_fieldno): Likewise.
6625         (internal_type_vptr_basetype): Likewise.
6626         (set_type_vptr_basetype): Likewise.
6627         (get_vptr_fieldno): Likewise.
6628         (is_integral_type): Likewise.
6629         (is_scalar_type): Likewise.
6630         (is_scalar_type_recursive): Likewise.
6631         (distance_to_ancestor): Likewise.
6632         (is_unique_ancestor_worker): Likewise.
6633         (check_types_equal): Likewise.
6634         * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
6635
6636 2015-07-14  Iain Buclaw  <ibuclaw@gdcproject.org>
6637
6638         * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
6639         also test for language_d.
6640         (dwarf2_compute_name): Likewise.
6641         (read_func_scope): Likewise.
6642         (read_structure_type): Likewise.
6643         (new_symbol_full): Likewise.
6644         (determine_prefix): Likewise.
6645         (read_import_statement): Use dot as the separator for language_d.
6646         (typename_concat): Likewise, but don't prefix the D main function.
6647
6648 2015-07-14  Peter Bergner  <bergner@vnet.ibm.com>
6649
6650         * nat/linux-namespaces.c (setns): Rename from this ...
6651         (do_setns): ... to this.  Support calling setns if it exists.
6652         (mnsh_handle_setns): Call do_setns.
6653
6654 2015-07-13  Yao Qi  <yao.qi@linaro.org>
6655
6656         * exec.c (exec_file_attach): Add period at the end of error
6657         message.
6658
6659 2015-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
6660
6661         * tui/tui-win.c (window_name_completer): New function.
6662         (focus_completer): Call window_name_completer.  All old content
6663         moved into window_name_completer.
6664         (winheight_completer): New function.
6665         (_initialize_tui_win): Rename variable.  Add completer to
6666         winheight command.  Update doc string on winheight.
6667
6668 2015-07-12  Sandra Loosemore  <sandra@codesourcery.com>
6669
6670         * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
6671         all nios2 mach variants.
6672
6673 2015-07-10  Kevin Buettner  <kevinb@redhat.com>
6674
6675         * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
6676         of target_read_memory.
6677
6678 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6679
6680         * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
6681         string copy.
6682         (parse_scrolling_args): Likewise.
6683
6684 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6685
6686         * tui/tui-win.c (focus_completer): Don't duplicate the tui window
6687         names in this function.
6688
6689 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6690
6691         * tui/tui-data.h (SRC_NAME): Convert to lower case.
6692         (CMD_NAME): Likewise.
6693         (DATA_NAME): Likewise.
6694         (DISASSEM_NAME): Likewise.
6695         * tui/tui-win.c (tui_set_focus): Window names are now lower case.
6696         (tui_set_win_height): Likewise.
6697         (parse_scrolling_args): Likewise.
6698
6699 2015-07-10  Markus Metzger  <markus.t.metzger@intel.com>
6700
6701         * record-btrace.c (record_btrace_goto_begin)
6702         (record_btrace_goto_end, record_btrace_goto): Move call to
6703         print_stack_frame ...
6704         (record_btrace_set_replay): ... here.  Set stop_pc.
6705         * record-full.c (record_full_goto_entry): Set stop_pc.
6706
6707 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6708
6709         * NEWS: Mention support for tracepoints on aarch64-linux.
6710
6711 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6712
6713         * linux-aarch64-low.c (aarch64_supports_tracepoints): New
6714         function.  Return 1.
6715         (the_low_target): Install it.
6716
6717 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6718
6719         * gdb.trace/backtrace.exp: Set registers for aarch64 target.
6720         * gdb.trace/collection.exp: Likewise.
6721         * gdb.trace/mi-trace-frame-collected.exp: Likewise.
6722         * gdb.trace/mi-trace-unavailable.exp: Likewise.
6723         * gdb.trace/report.exp: Likewise.
6724         * gdb.trace/trace-break.exp: Likewise.
6725         * gdb.trace/unavailable.exp: Likewise.
6726         * gdb.trace/while-dyn.exp: Likewise.
6727
6728 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6729
6730         * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
6731         (aarch64_gen_return_address): New function.
6732         (aarch64_gdbarch_init): Hook it.
6733
6734 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6735
6736         * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
6737         swallow NOT_AVAILABLE_ERROR.
6738         (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
6739         available_p is not set.
6740         (aarch64_stub_frame_unwind_stop_reason): New function.
6741         (aarch64_stub_unwind): Install it.
6742
6743 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6744
6745         * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6746         field.
6747         (aarch64_make_prologue_cache_1): New function, factored out from
6748         aarch64_make_prologue_cache.  Do not allocate cache.  Set
6749         available_p.
6750         (aarch64_make_prologue_cache): Reimplement wrapping
6751         aarch64_make_prologue_cache_1, and swallowing
6752         NOT_AVAILABLE_ERROR.
6753         (aarch64_prologue_frame_unwind_stop_reason): New function.
6754         Return UNWIND_UNAVAILABLE if available_p is not set.
6755         (aarch64_prologue_unwind): Install it.
6756         (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6757         checks into aarch64_prologue_frame_unwind_stop_reason.  Call
6758         frame_id_build_unavailable_stack if available_p is not set.
6759
6760 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6761
6762         * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6763         fields.
6764         (aarch64_scan_prologue): Set prev_pc.
6765         (aarch64_make_prologue_cache): Set func.
6766         (aarch64_make_stub_cache): Set prev_pc.
6767         (aarch64_prologue_this_id): Remove local variables id, pc and
6768         func.  Read prev_pc and func from cache.
6769         (aarch64_stub_this_id): Read prev_pc from cache.
6770
6771 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6772
6773         * aarch64-tdep.c (aarch64_make_stub_cache): Update comment.  New
6774         argument this_cache.  Remove unused local variables reg and
6775         unwound_fp.  Return early if this_cache is already set.  Set
6776         this_cache.
6777         (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6778
6779 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6780
6781         * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6782         New argument this_cache.  Return early if this_cache is already
6783         set.  Set this_cache.
6784         (aarch64_prologue_this_id): Update call to
6785         aarch64_make_prologue_cache.
6786         (aarch64_prologue_prev_register): Likewise.
6787         (aarch64_normal_frame_base): Likewise.
6788
6789 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6790
6791         * c-valprint.c (c_val_print): Factor out memberptr printing code
6792         from c_val_print to ...
6793         (c_val_print_memberptr): ... this new function.
6794
6795 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6796
6797         * c-valprint.c (c_val_print): Factor out int printing code to ...
6798         (c_val_print_int): ... this new function.
6799
6800 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6801
6802         * c-valprint.c (c_val_print): Factor out struct and union
6803         printing code to ...
6804         (c_val_print_struct): ... this new function ...
6805         (c_val_print_union): ... and this new function.
6806
6807 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6808
6809         * c-valprint.c (c_val_print): Factor out pointer printing code
6810         to ...
6811         (c_val_print_ptr): ... this new function.
6812
6813 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6814
6815         * c-valprint.c (c_valprint): Factor our array printing code from
6816         c_val_print to ...
6817         (c_val_print_array): ... this new function.
6818
6819 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6820
6821         * c-valprint.c (c_val_print): Factor out pointer printing code
6822         to ...
6823         (print_unpacked_pointer): ... this new function.
6824
6825 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6826
6827         * c-valprint.c (c_val_print): Remove an assignment to i and move
6828         its declaration.
6829
6830 2015-07-09  Yao Qi  <yao.qi@linaro.org>
6831
6832         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6833         argument ptid.  Update comments.  Caller update.
6834
6835 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
6836
6837         * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6838         mnt packets.
6839
6840 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
6841
6842         * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6843
6844 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
6845
6846         * progspace.c (delete_program_space): Add missing spaces.
6847
6848 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
6849
6850         * inferior.c (delete_inferior_1): Rename to ...
6851         (delete_inferior): ..., remove 'silent' parameter, delete
6852         program space when unused and remove call to prune_program_spaces.
6853         Remove the old, unused, delete_inferior.
6854         (delete_inferior_silent): Remove.
6855         (prune_inferiors): Change call from delete_inferior_1 to
6856         delete_inferior and remove 'silent' parameter. Remove call to
6857         prune_program_spaces.
6858         (remove_inferior_command): Idem.
6859         * inferior.h (delete_inferior_1): Rename to...
6860         (delete_inferior): ..., remove 'silent' parameter and remove the
6861         original delete_inferior.
6862         (delete_inferior_silent): Remove.
6863         * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6864         delete_inferior_1 to delete_inferior and remove 'silent'
6865         parameter.
6866         * progspace.c (prune_program_spaces): Remove.
6867         (pspace_empty_p): Rename to...
6868         (program_space_empty_p): ... and make non-static.
6869         (delete_program_space): New.
6870         * progspace.h (prune_program_spaces): Remove declaration.
6871         (program_space_empty_p): New declaration.
6872         (delete_program_space): New declaration.
6873         * monitor.c (monitor_close): Replace call to
6874         delete_thread_silent and delete_inferior_silent with
6875         discard_all_inferiors.
6876
6877 2015-07-08  Patrick Palka  <patrick@parcs.ath.cx>
6878
6879         * defs.h (deprecated_register_changed_hook): Remove prototype.
6880         * interps.c (clear_iterpreter_hooks): Remove reference to
6881         deprecated_register_changed_hook.
6882         * top.c (deprecated_register_changed_hook): Remove prototype.
6883         * valops.c (value_assign): Remove reference to
6884         deprecated_register_changed_hook.
6885         * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6886         Add comment documenting the function.
6887         (tui_register_changed_observer): Define.
6888         (tui_install_hooks): Remove reference to
6889         deprecated_register_changed_hook.  Set
6890         tui_register_changed_observer.
6891         (tui_remove_hooks): Remove reference to
6892         deprecated_register_changed_hook.  Unset
6893         tui_register_changed_observer.
6894
6895 2015-07-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
6896
6897         PR compile/18484
6898         * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6899
6900 2015-07-08  Robert O'Callahan  <robert@ocallahan.org>
6901
6902         PR exp/18617
6903         * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6904
6905 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6906
6907         * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6908
6909 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6910
6911         * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6912         Use safe_strerror() instead of strerror().
6913
6914 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6915
6916         * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6917         * features/arm-with-m-fpa-layout.c: Regenerated.
6918         * features/arm-with-m-vfp-d16.xml: Likewise.
6919         * features/arm-with-m-vfp-d16.c: Regenerated.
6920         * features/arm-with-m.xml: Likewise.
6921         * features/arm-with-m.c: Regenerated.
6922         * features/arm-with-neon.xml: Likewise.
6923         * features/arm-with-neon.c: Regenerated.
6924         * features/arm-with-vfpv2.xml: Likewise.
6925         * features/arm-with-vfpv2.c: Regenerated.
6926         * features/arm-with-vfpv3.xml: Likewise.
6927         * features/arm-with-vfpv3.c: Regenerated.
6928
6929 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6930
6931         * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6932         arm-linux-nat.c.
6933         * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6934         elf/external.h.
6935         (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6936         if target is 32-bit.
6937         (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6938         if target is 32-bit.
6939         (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6940         if target is 32-bit.
6941         (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6942         if target is 32-bit.
6943         (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6944         (aarch64_linux_read_description): Return the right target
6945         description.
6946         * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6947         * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6948         * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6949         arm-linux-tdep.o.
6950
6951 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6952
6953         * aarch32-linux-nat.c: New file.
6954         * aarch32-linux-nat.h: New file.
6955         * arm-linux-nat.c: Include aarch32-linux-nat.h.
6956         (fetch_regs): Move code to aarch32-linux-nat.c.  Call
6957         aarch32_gp_regcache_supply.
6958         (store_regs): Move code to aarch32-linux-nat.c.  Call
6959         aarch32_gp_regcache_collect.
6960         (fetch_vfp_regs): Move code to aarch32-linux-nat.c.  Call
6961         aarch32_vfp_regcache_supply.
6962         (store_vfp_regs): Move code to aarch32-linux-nat.c.  Call
6963         aarch32_vfp_regcache_collect.
6964         * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6965
6966 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6967
6968         * arm-linux-nat.c (store_fpregister): Remove.
6969         (store_register): Likewise.
6970         (fetch_fpregister): Likewise.
6971         (fetch_register): Likewise.
6972         (arm_linux_store_inferior_registers): Call store_regs and
6973         store_fpregs instead.
6974         (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6975         fetch_regs instead.
6976
6977 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6978
6979         * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6980         and focus commands.
6981
6982 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
6983
6984         * NEWS: Create a new section for the next release branch.
6985         Rename the section of the current branch, now that it has
6986         been cut.
6987
6988 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
6989
6990         GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6991         * version.in: Bump version to 7.10.50.DATE-cvs.
6992
6993 2015-07-06  Luis Machado  <lgustavo@codesourcery.com>
6994
6995         * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6996         breakpoints in a special way.
6997         (remove_breakpoint): Likewise.
6998         (mark_breakpoints_out): Likewise.
6999
7000 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
7001
7002         * doc/gdb.texinfo (TUI): Add comma after @xref.
7003
7004 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
7005
7006         * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
7007         instead of casting the structure type.
7008
7009 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
7010
7011         * valops.c (search_struct_field): Remove OFFSET parameter.
7012         (value_cast_structs): Adjust calls to search_struct_field.
7013         (value_struct_elt): Same.
7014         (find_overload_match): Same.
7015
7016 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
7017
7018         * value.c (value_fetch_lazy): Update comment, change return
7019         value to void.
7020         * value.h (value_fetch_lazy): Change return value to void.
7021
7022 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
7023
7024         * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
7025         (tui_win_name): Make parameter and result const.
7026         * tui/tui-data.h (tui_win_name): Make parameter and result const.
7027
7028 2015-07-06  Patrick Palka  <patrick@parcs.ath.cx>
7029
7030         * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
7031         use printf_unfiltered.
7032         (set_mpx_cmd): Add missing trailing space to command string
7033         literal.
7034         (_initialize_i386_tdep): Give the "mpx" prefix command its
7035         correct name.
7036
7037 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
7038
7039         * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
7040         (enum rx_frame_type): New.
7041         (struct rx_prologue): Add new field `frame_type'.
7042         (rx_analyze_prologue): Add `frame_type' parameter. Cache this
7043         parameter in the prologue struct.  Add code for recording
7044         locations of PC and PSW for fast interrupt and exception frames.
7045         (rx_skip_prologue): Adjust call to rx_analyze_prologue.
7046         (rx_analyze_frame_prologue): Add `frame_type' parameter.
7047         (rx_frame_type): New function.
7048         (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
7049         (rx_frame_this_id): Rename parameter `this_prologue_cache' to
7050         `this_cache'.
7051         (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
7052         `this_cache'.  Add cases for RX_FRAME_TYPE_EXCEPTION and
7053         RX_FRAME_TYPE_FAST_INTERRUPT.
7054         (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
7055         (rx_frame_sniffer, rx_exception_sniffer): New functions.
7056         (rx_frame_unwind): Use rx_frame_sniffer instead of
7057         default_frame_sniffer.
7058         (rx_frame_unwind): New unwinder.
7059         (rx_gdbarch_init): Register new unwinder.
7060
7061 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
7062
7063         * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
7064         (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
7065         (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
7066         and RX_FPSW_REGNUM.
7067         (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
7068
7069 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7070
7071         Fix GCC false warning.
7072         * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
7073
7074 2015-07-02  Yao Qi  <yao.qi@linaro.org>
7075
7076         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
7077         typo in the debugging message.
7078
7079 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
7080
7081         * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
7082         (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
7083         (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
7084         (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
7085         (btrace_maint_clear): New.
7086         (btrace_fetch, btrace_clear): Call btrace_maint_clear.
7087         (pt_print_packet, btrace_maint_decode_pt)
7088         (btrace_maint_update_pt_packets, btrace_maint_update_packets)
7089         (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
7090         (maint_btrace_packet_history_cmd)
7091         (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
7092         (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
7093         (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
7094         (maint_info_btrace_cmd, _initialize_btrace): New.
7095         * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
7096         (btrace_maint_packet_history, btrace_maint_info): New.
7097         (btrace_thread_info) <maint>: New.
7098         * NEWS: Announce it.
7099
7100 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
7101
7102         * btrace.c (btrace_fetch): Append the new trace data.
7103         (btrace_clear): Clear the stored trace data.
7104         * btrace.h (btrace_thread_info) <data>: New.
7105         * common/btrace-common.h (btrace_data_clear)
7106         (btrace_data_append): New.
7107         * common/btrace-common.c (btrace_data_clear)
7108         (btrace_data_append): New.
7109
7110 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
7111
7112         * nat/linux-btrace.c (linux_enable_bts): Check for
7113         PERF_ATTR_SIZE_VER5.
7114         Check for data_offset and data_size fields.  Use them.
7115
7116 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
7117
7118         * NEWS: Announce new commands "record btrace pt" and "record pt".
7119         Announce new options "set|show record btrace pt buffer-size".
7120         * btrace.c: Include "rsp-low.h".
7121         Include "inttypes.h".
7122         (btrace_add_pc): Add forward declaration.
7123         (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
7124         (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
7125         (btrace_compute_ftrace_pt): New.
7126         (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
7127         (check_xml_btrace_version): Update version check.
7128         (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
7129         (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
7130         (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
7131         (btrace_pt_children): New.
7132         (btrace_children): Add support for "pt".
7133         (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
7134         (btrace_conf_children): Add support for "pt".
7135         * btrace.h: Include "intel-pt.h".
7136         (btrace_pt_error): New.
7137         * common/btrace-common.c (btrace_format_string, btrace_data_fini)
7138         (btrace_data_empty): Support BTRACE_FORMAT_PT.
7139         * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
7140         (struct btrace_config_pt): New.
7141         (struct btrace_config)<pt>: New.
7142         (struct btrace_data_pt_config, struct btrace_data_pt): New.
7143         (struct btrace_data)<pt>: New.
7144         * features/btrace-conf.dtd (btrace-conf)<pt>: New.
7145         (pt): New.
7146         * features/btrace.dtd (btrace)<pt>: New.
7147         (pt, pt-config, cpu): New.
7148         * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
7149         (perf_event_pt_event_type, kernel_supports_pt)
7150         (linux_supports_pt): New.
7151         (linux_supports_btrace): Support BTRACE_FORMAT_PT.
7152         (linux_enable_bts): Free tinfo on error.
7153         (linux_enable_pt): New.
7154         (linux_enable_btrace): Support BTRACE_FORMAT_PT.
7155         (linux_disable_pt): New.
7156         (linux_disable_btrace): Support BTRACE_FORMAT_PT.
7157         (linux_fill_btrace_pt_config, linux_read_pt): New.
7158         (linux_read_btrace): Support BTRACE_FORMAT_PT.
7159         * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
7160         (struct btrace_target_info)<pt>: New.
7161         * record-btrace.c (set_record_btrace_pt_cmdlist)
7162         (show_record_btrace_pt_cmdlist): New.
7163         (record_btrace_print_pt_conf): New.
7164         (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
7165         (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
7166         (cmd_record_btrace_pt_start): New.
7167         (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
7168         (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
7169         (_initialize_record_btrace): Add new commands.
7170         * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
7171         (remote_protocol_features): Add "Qbtrace:pt".
7172         Add "Qbtrace-conf:pt:size".
7173         (remote_supports_btrace): Support BTRACE_FORMAT_PT.
7174         (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
7175         (remote_enable_btrace): Support BTRACE_FORMAT_PT.
7176         (_initialize_remote): Add new commands.
7177
7178 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
7179
7180         * configure.ac: check for libipt
7181         * configure: Regenerate.
7182         * config.in: Regenerate.
7183         * Makefile.in (LIBIPT): New.
7184         (CLIBS): Add $LIBIPT.
7185         * NEWS: document new configure options
7186
7187 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7188
7189         * compile/compile-object-load.c (compile_object_load): Replace debug
7190         message "lookup undefined ELF symbol" by 3 more specific messages.
7191
7192 2015-07-01  Kevin Buettner  <kevinb@redhat.com>
7193
7194         * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
7195         (rl78_register_type): Add case for RL78_PSW_REGNUM.
7196         (rl78_gdbarch_init): Initialize rl78_psw_type.
7197
7198 2015-07-01  Patrick Palka  <patrick@parcs.ath.cx>
7199
7200         * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
7201         Update commentary.  Always refresh the registers when frame
7202         information has changed.
7203         * tui/tui-stack.c (tui_show_frame_info): Update commentary.
7204         Change return type to int.  Return 1 if frame information has
7205         changed, 0 otherwise.
7206         (tui_before_prompt): Update commentary.
7207         * tui/tui-stack.h (tui_show_frame_info): Change return type to
7208         int.
7209
7210 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
7211
7212         PR tui/13378
7213         * frame.c (select_frame): Remove reference to
7214         deprecated_selected_frame_level_changed_hook.
7215         * frame.h (deprecated_selected_frame_level_changed_hook): Remove
7216         declaration.
7217         * stack.c (deprecated_selected_frame_level_changed_hook):
7218         Likewise.
7219         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
7220         Rename to ...
7221         (tui_refresh_frame_and_register_information): ... this.  Bail
7222         out if there is no stack.  Don't update register information
7223         unless registers_too_p is true.
7224         (tui_print_frame_info_listing_hook): Rename to ...
7225         (tui_dummy_print_frame_info_listing_hook): ... this.
7226         (tui_before_prompt): New function.
7227         (tui_normal_stop): New function.
7228         (tui_before_prompt_observer): New observer.
7229         (tui_normal_stop_observer): New observer.
7230         (tui_install_hooks): Set
7231         deprecated_print_frame_info_listing_hook to
7232         tui_dummy_print_frame_info_listing_hook.  Register
7233         tui_before_prompt_observer to call tui_before_prompt and
7234         tui_normal_stop_observer to call tui_normal_stop.  Remove
7235         reference to deprecated_selected_frame_level_changed_hook.
7236         (tui_remove_hooks): Detach and unset tui_before_prompt_observer
7237         and tui_normal_stop_observer.  Remove reference to
7238         deprecated_selected_frame_level_changed_hook.
7239
7240 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
7241
7242         PR tui/13378
7243         * tui/tui-stack.c (tui_set_locator_info): Change prototype to
7244         return an int instead of void.  Return whether the locator
7245         window has changed.
7246         (tui_show_frame_info): If the locator info has not changed, then
7247         bail out early to avoid refreshing the windows.
7248
7249 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
7250
7251         * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
7252         LOCATOR_WIN to tui_alloc_content.
7253
7254 2015-06-30  Yao Qi  <yao.qi@linaro.org>
7255
7256         PR tdep/18605
7257         * arm-tdep.c (arm_get_next_pc_raw): Break for media
7258         instructions.
7259
7260 2015-06-29  Kevin Buettner  <kevinb@redhat.com>
7261
7262         * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
7263         (rx_dwarf_reg_to_regnum): New function.
7264         (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum.  Use dwarf2
7265         unwinding.
7266
7267 2015-06-29  Pedro Alves  <palves@redhat.com>
7268
7269         PR threads/18127
7270         * infcall.c (run_inferior_call): On infcall success, if the thread
7271         was marked stopped before, reset it back to stopped.
7272         * infrun.c (resume): Don't suppress the set_running calls when
7273         doing an infcall.
7274         (normal_stop): Only discard the finish_thread_state cleanup if the
7275         infcall succeeded.
7276
7277 2015-06-29  Pierre Langlois  <pierre.langlois@arm.com>
7278
7279         * MAINTAINERS (Write After Approval): Update my email address.
7280
7281 2015-06-26  Keith Seitz  <keiths@redhat.com>
7282             Doug Evans  <dje@google.com>
7283
7284         PR 16253
7285         * block.c (block_lookup_symbol): For non-function blocks,
7286         continue to search for a symbol with an exact domain match
7287         Otherwise, return any previously found "best domain" symbol.
7288         (block_lookup_symbol_primary): Likewise.
7289
7290 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
7291
7292         * NEWS: Mention the new option "history remove-duplicates".
7293         * top.c (history_remove_duplicates): New static variable.
7294         (show_history_remove_duplicates): New static function.
7295         (gdb_add_history): Conditionally remove duplicate history
7296         entries.
7297         (init_main): Add "history remove-duplicates" option.
7298
7299 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
7300
7301         * tui/tui-win.c (focus_completer): New static function.
7302         (_initialize_tui_win): Set the completion function of the
7303         "focus" command to focus_completer.
7304
7305 2015-06-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
7306
7307         * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
7308         and language_asm..
7309         * symtab.c (find_function_start_sal): Likewise.
7310
7311 2015-06-25  Gary Benson  <gbenson@redhat.com>
7312
7313         * solib.c (solib_find_1): Set local variable sysroot to NULL if
7314         it is the empty string after trailing slashes have been stripped.
7315
7316 2015-06-25  Gary Benson  <gbenson@redhat.com>
7317
7318         * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
7319         * infrun.c (follow_exec): Likewise.
7320         * remote.c (remote_filesystem_is_local): Likewise.
7321         * solib.c (solib_find_1): Likewise.
7322
7323 2015-06-24  Keith Seitz  <keiths@redhat.com>
7324
7325         * build-id.c (build_id_to_debug_bfd): Add cleanup to free
7326         return value from lrealpath.
7327
7328 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
7329
7330         * remote-sim.c (gdbsim_open): Move sysroot update to the top.
7331
7332 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
7333
7334         * remote-sim.c: Include gdb_bfd.h.
7335         (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
7336         Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
7337
7338 2015-06-24  Yao Qi  <yao.qi@linaro.org>
7339
7340         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
7341         set_gdbarch_get_siginfo_type.
7342         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
7343         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
7344         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
7345         * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
7346         * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
7347         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7348         * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
7349         * linux-tdep.c (linux_get_siginfo_type): Change it to static.
7350         (linux_init_abi): Call set_gdbarch_get_siginfo_type.
7351         * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
7352
7353 2015-06-24  Gary Benson  <gbenson@redhat.com>
7354
7355         * common/buffer.c (stdint.h): Do not include.
7356         * common/print-utils.c (stdint.h): Likewise.
7357         * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
7358         * compile/compile-c-types.c (gdb_assert.h): Likewise.
7359         * ft32-tdep.c (gdb_assert.h): Likewise.
7360         * guile/scm-utils.c (stdint.h): Likewise.
7361         * i386-linux-tdep.c (stdint.h): Likewise.
7362         * i386-tdep.c (stdint.h): Likewise.
7363         * nat/linux-btrace.c (stdint.h): Likewise.
7364         * nat/linux-btrace.h (stdint.h): Likewise.
7365         * nat/linux-ptrace.c (stdint.h): Likewise.
7366         * nat/mips-linux-watch.h (stdint.h): Likewise.
7367         * ppc-linux-nat.c (stdint.h): Likewise.
7368         * python/python-internal.h (stdint.h): Likewise.
7369         * stub-termcap.c (stdlib.h): Likewise.
7370         * target/target.h (stdint.h): Likewise.
7371         * xtensa-linux-nat.c (stdint.h): Likewise.
7372
7373 2015-06-23  Patrick Palka  <patrick@parcs.ath.cx>
7374
7375         * top.c (init_history): Look at errno after calling strtol to
7376         properly map large GDBHISTSIZE values to infinity.
7377
7378 2015-06-23  Doug Evans  <dje@google.com>
7379
7380         * inferior.h (struct inferior_suspend_state): Delete, unused.
7381         All references deleted.
7382
7383 2015-06-23  Mike Frysinger  <vapier@gentoo.org>
7384
7385         * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
7386         (microblaze_push_dummy_call): Likewise.
7387         (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
7388         and set_gdbarch_push_dummy_call.
7389
7390 2015-06-23  Yao Qi  <yao.qi@linaro.org>
7391
7392         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
7393         Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
7394         (amd64_linux_store_inferior_registers): Likewise.
7395         * arm-linux-nat.c (fetch_fpregister): Likewise.
7396         (fetch_fpregs, store_fpregister): Likewise.
7397         (store_fpregister, store_fpregs): Likewise.
7398         (fetch_register, fetch_regs): Likewise.
7399         (store_register, store_regs): Likewise.
7400         (fetch_vfp_regs, store_vfp_regs): Likewise.
7401         (arm_linux_read_description): Check have_ptrace_getregset is
7402         TRIBOOL_UNKNOWN.  Set have_ptrace_getregset to TRIBOOL_TRUE
7403         or TRIBOOL_FALSE.
7404         * i386-linux-nat.c (fetch_xstateregs): Check
7405         have_ptrace_getregset is not TRIBOOL_TRUE.
7406         (store_xstateregs): Likewise.
7407         * linux-nat.c (have_ptrace_getregset): Change its type to
7408         enum tribool.
7409         * linux-nat.h (tribool): New enum.
7410         * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
7411         Check whether have_ptrace_getregset is TRIBOOL_TRUE.
7412
7413 2015-06-19  Doug Evans  <dje@google.com>
7414
7415         * NEWS: Mention Sun's version of stabs is no longer supported.
7416         * elfread.c (free_elfinfo): Delete.  All uses updated.
7417         (elfstab_offset_sections): Delete.  All uses updated.
7418         * gdb-stabs.h (stab_section_info): Delete.  All uses updated.
7419         * psympriv.h (partial_symtab) <section_offsets>: Delete.
7420         All uses updated.
7421         * psymtab.c (start_psymtab_common): Delete arg section_offsets.
7422         All callers updated.
7423
7424 2015-06-18  Simon Marchi  <simon.marchi@ericsson.com>
7425
7426         * common/rsp-low.c (needs_escaping): New.
7427         (remote_escape_output): Add unit_size parameter. Refactor to
7428         support multi-byte addressable units.  Rename parameters.
7429         * common/rsp-low.h (remote_escape_output): Add unit_size
7430         parameter and rename others. Update doc.
7431         * remote.c (align_for_efficient_write): New.
7432         (remote_write_bytes_aux): Add unit_size parameter and use it.
7433         Rename some variables.  Update doc.
7434         (remote_xfer_partial): Get unit size and use it.
7435         (remote_read_bytes_1): Add unit_size parameter and use it.
7436         Rename some variables. Update doc.
7437         (remote_write_bytes): Same.
7438         (remote_xfer_live_readonly_partial): Same.
7439         (remote_read_bytes): Same.
7440         (remote_flash_write): Update call to remote_write_bytes_aux.
7441         (remote_write_qxfer): Update call to remote_escape_output.
7442         (remote_search_memory): Same.
7443         (remote_hostio_pwrite): Same.
7444
7445 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
7446
7447         * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
7448         locations as inserted.
7449         Update and expand comment about permanent locations.
7450         (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
7451         Move comment to add_location_to_breakpoint.
7452         (update_global_location_list): Don't error out if a permanent
7453         breakpoint is not marked inserted.
7454         Don't error out if a non-permanent breakpoint location is inserted on
7455         top of a permanent breakpoint.
7456
7457 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
7458
7459         * breakpoint.c (make_breakpoint_permanent): Remove unused
7460         function.
7461         * breakpoint.h (make_breakpoint_permanent): Remove declaration.
7462
7463 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
7464
7465         PR gdb/16999
7466         * NEWS: Mention new GDBHISTSIZE behavior.
7467         * top.c (init_history): For null or out-of-range GDBHISTSIZE,
7468         set history size to unlimited.  Ignore non-numeric GDBHISTSIZE.
7469
7470 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
7471
7472         * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
7473         * top.c (init_history): Read from GDBHISTSIZE instead of
7474         HISTSIZE.
7475         (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
7476
7477 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
7478
7479         * top.c (gdb_safe_append_history): Do not call
7480         history_truncate_file if the history is not stifled.
7481
7482 2015-06-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7483
7484         * syscalls/s390-linux.xml: Add syscalls 344 through 354.
7485         * syscalls/s390x-linux.xml: Likewise.
7486
7487 2015-06-16  Michael Eager  <eager@eagercon.com>
7488
7489         * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
7490
7491 2015-06-16  Patrick Palka  <patrick@parcs.ath.cx>
7492
7493         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
7494         target_terminal_ours_for_output() before calling
7495         tui_show_frame_info(), and restore the original terminal
7496         settings afterwards.
7497
7498 2015-06-16  Martin Simmons  <martin@lispworks.com>  (tiny patch)
7499
7500         * arm-linux-nat.c: Include nat/linux-ptrace.h.
7501
7502 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
7503
7504         * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
7505         memory unit size.
7506         (mi_cmd_data_write_memory_bytes): Same.
7507
7508 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
7509
7510         * corefile.c (write_memory): Update doc.
7511         * gdbcore.h (write_memory): Same.
7512
7513 2015-06-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
7514
7515         * linux-tdep.c (enum filterflags): Make it from anonymous enum.
7516         (dump_mapping_p): Use it for parameter filterflags.
7517         (linux_find_memory_regions_full): Use it for variable filterflags.
7518
7519 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
7520             Jan Kratochvil  <jan.kratochvil@redhat.com>
7521
7522         Merge multiple hex conversions.
7523         * monitor.c: Include rsp-low.h.
7524         (fromhex): Remove definition.
7525
7526 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
7527             Jan Kratochvil  <jan.kratochvil@redhat.com>
7528
7529         Move utility functions to common/.
7530         * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
7531         Move defs to common/common-utils.c.
7532         * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
7533         (skip_to_space_const): Move decls to common/common-utils.h.
7534         * common/common-defs.h: Move include of common-types.h before
7535         common-utils.h.
7536         * common/common-utils.c: Include host-defs.h and ctype.h.
7537         (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
7538         from utils.c.
7539         (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
7540         cli/cli-utils.c.
7541         * common/common-utils.h (strtoulst): Move decl from utils.h.
7542         (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
7543         Move from cli/cli-utils.h.
7544         * common/host-defs.h: Include limits.h.
7545         (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
7546         (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
7547         * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
7548         common/common-utils.h.
7549         * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
7550         (strtoulst): Move to common/common-utils.c.
7551         * utils.h (strtoulst): Moved decl to common/common-utils.h.
7552
7553 2015-06-15  Yao Qi  <yao.qi@linaro.org>
7554
7555         * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
7556
7557 2015-06-10  Jon Turney  <jon.turney@dronecode.org.uk>
7558
7559         * build-id.c: Don't include elf-bfd.h.
7560         (build_id_bfd_get): Use bfd_build_id.
7561         (build_id_verify): Ditto.
7562         * build-id.h: Ditto.
7563         (find_separate_debug_file_by_buildid): Ditto.
7564         * python/py-objfile.c: Don't include elf-bfd.h.
7565         (objfpy_get_build_id) Use bfd_build_id.
7566         (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
7567         * coffread.c: Include build-id.h.
7568         (coff_symfile_read): Try find_separate_debug_file_by_buildid.
7569
7570 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7571
7572         * windows-nat.c (do_windows_fetch_inferior_registers)
7573         (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
7574         conditional with __CYGWIN__.
7575
7576 2015-06-13  Andrew Burgess  <andrew.burgess@embecosm.com>
7577
7578         * completer.c: Add arch-utils.h include.
7579         (enum reg_completer_targets): New enum.
7580         (reg_or_group_completer_1): New function containing old
7581         reg_or_group_completer, add and use new parameter to control what
7582         is completed on.  Use get_current_arch rather than architecture of
7583         currently selected frame.
7584         (reg_or_group_completer): Call new reg_or_group_completer_1.
7585         (reggroup_completer): Call new reg_or_group_completer_1.
7586         * completer.h (reggroup_completer): Add declaration.
7587         * tui/tui-regs.c: Add 'completer.h' include.
7588         (tui_reg_next_command): Renamed to...
7589         (tui_reg_next): ...this.  Adjust parameters and return rather than
7590         display new group.
7591         (tui_reg_prev_command): Renamed to...
7592         (tui_reg_prev): ...this.  Adjust parameters and return rather than
7593         display new group.
7594         (tui_reg_float_command): Delete.
7595         (tui_reg_general_command): Delete.
7596         (tui_reg_system_command): Delete.
7597         (tui_reg_command): Rewrite to perform switching of register group.
7598         Add header comment.
7599         (tuireglist): Remove.
7600         (tui_reggroup_completer): New function.
7601         (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
7602         creation of 'tui reg' command.
7603         * NEWS: Add comment about 'tui reg' changes.
7604
7605 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7606
7607         * target.c (target_read): Consider addressable unit size when
7608         reading from a memory object.
7609         (read_memory_robust): Same.
7610         (read_whatever_is_readable): Same.
7611         (target_write_with_progress): Consider addressable unit size
7612         when writing to a memory object.
7613         * target.h (target_read): Update documentation.
7614         (target_write): Add documentation.
7615
7616 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7617
7618         * arch-utils.h (default_addressable_memory_unit_size): New.
7619         * arch-utils.c (default_addressable_memory_unit_size): New.
7620         * gdbarch.sh (addressable_memory_unit_size): New.
7621         * gdbarch.h: Re-generate.
7622         * gdbarch.c: Re-generate.
7623
7624 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7625
7626         * target.c (target_read): Rename variables and use
7627         TARGET_XFER_E_IO.
7628         (target_read_with_progress): Same.
7629         (read_memory_robust): Constify parameters and rename
7630         variables.
7631         (read_whatever_is_readable): Constify parameters,
7632         rename variables, adjust formatting.
7633         * target.h (read_memory_robust): Constify parameters.
7634
7635 2015-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
7636
7637         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
7638         synthetic (non-AltiVec) vector types.
7639         (ppc64_sysv_abi_return_value): Likewise.
7640
7641 2015-06-12  Antoine Tremblay  <antoine.tremblay@ericsson.com>
7642
7643         PR breakpoints/16465
7644         * breakpoint.c (create_breakpoint): Save extra_string for
7645         pending breakpoints.
7646
7647 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7648
7649         * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
7650         and bt_mask to CORE_ADDR.
7651
7652 2015-06-11  Gary Benson <gbenson@redhat.com>
7653
7654         * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
7655         (mnsh_recv_message): Likewise.
7656
7657 2015-06-11  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7658
7659         * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
7660         long long int and plongest instead of %ll.
7661
7662 2015-06-11  Gary Benson <gbenson@redhat.com>
7663
7664         * nat/linux-namespaces.c (gdb_wait.h): New include.
7665         (sys/wait.h): Do not include.
7666
7667 2015-06-10  Simon Marchi  <simon.marchi@ericsson.com>
7668
7669         * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
7670         end_sequence is true.
7671
7672 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7673
7674         Code cleanup.
7675         * solib-target.c (library_list_start_list): Use explicit NULL
7676         comparison.
7677
7678 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7679
7680         * solib-target.c (library_list_start_list): Do not dereference
7681         variable version in its initialization.  Make the VERSION check handle
7682         NULL.
7683         (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
7684
7685 2015-06-10  Gary Benson <gbenson@redhat.com>
7686
7687         * NEWS: Announce support for direct access of executable and
7688         shared library files when attaching to inferiors in containers
7689         on GNU/Linux systems.
7690
7691 2015-06-10  Gary Benson <gbenson@redhat.com>
7692
7693         * remote.c (struct remote_state) <fs_pid>: New field.
7694         (new_remote_state): Initialize the above.
7695         (PACKET_vFile_setfs): New enum value.
7696         (remote_hostio_set_filesystem): New function.
7697         (remote_hostio_open): Call the above.
7698         (remote_hostio_unlink): Likewise.
7699         (remote_hostio_readlink): Likewise.
7700         (_initialize_remote): Register new "set/show remote
7701         hostio-setfs-packet" command.
7702         * NEWS: Announce new vFile:setfs packet.
7703
7704 2015-06-10  Gary Benson <gbenson@redhat.com>
7705
7706         * linux-nat.c (nat/linux-namespaces.h): New include.
7707         (fileio.h): Likewise.
7708         (linux_nat_filesystem_is_local): New function.
7709         (linux_nat_fileio_pid_of): Likewise.
7710         (linux_nat_fileio_open): Likewise.
7711         (linux_nat_fileio_readlink): Likewise.
7712         (linux_nat_fileio_unlink): Likewise.
7713         (linux_nat_add_target): Initialize to_filesystem_is_local,
7714         to_fileio_open, to_fileio_readlink and to_fileio_unlink.
7715         (_initialize_linux_nat): New "set/show debug linux-namespaces"
7716         commands.
7717         * NEWS: Mention new "set/show debug linux-namespaces" commands.
7718
7719 2015-06-10  Gary Benson <gbenson@redhat.com>
7720
7721         * target.h (struct inferior): New forward declaration.
7722         (struct target_ops) <to_filesystem_is_local>: Update comment.
7723         (struct target_ops) <to_fileio_open>: New argument inf.
7724         Update comment.  All implementations updated.
7725         (struct target_ops) <to_fileio_unlink>: Likewise.
7726         (struct target_ops) <to_fileio_readlink>: Likewise.
7727         (target_filesystem_is_local): Update comment.
7728         (target_fileio_open): New argument inf.  Update comment.
7729         (target_fileio_unlink): Likewise.
7730         (target_fileio_readlink): Likewise.
7731         (target_fileio_read_alloc): Likewise.
7732         (target_fileio_read_stralloc): Likewise.
7733         * target.c (target_fileio_open): New argument inf.
7734         Pass inf to implementation.  Update debug printing.
7735         (target_fileio_unlink): Likewise.
7736         (target_fileio_readlink): Likewise.
7737         (target_fileio_read_alloc_1): New argument inf. Pass inf
7738         to target_fileio_open.
7739         (target_fileio_read_alloc): New argument inf. Pass inf to
7740         target_fileio_read_alloc_1.
7741         (target_fileio_read_stralloc): Likewise.
7742         * gdb_bfd.c (inferior.h): New include.
7743         (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7744         argument with new argument "inferior".  Pass inferior to
7745         target_fileio_open.
7746         (gdb_bfd_open): Supply inferior argument to
7747         gdb_bfd_iovec_fileio_open.
7748         * linux-tdep.c (linux_info_proc): Supply inf argument to
7749         relevant target_fileio calls.
7750         (linux_find_memory_regions_full): Likewise.
7751         (linux_fill_prpsinfo): Likewise.
7752         * remote.c (remote_filesystem_is_local): Supply inf
7753         argument to remote_hostio_open.
7754         (remote_file_put): Likewise.
7755         (remote_file_get): Likewise.
7756         (remote_file_delete): Supply inf argument to
7757         remote_hostio_unlink.
7758
7759 2015-06-10  Gary Benson <gbenson@redhat.com>
7760
7761         * inf-child.c (inf_child_fileio_open): Replace comment.
7762         (inf_child_fileio_pwrite): Likewise.
7763         (inf_child_fileio_pread): Likewise.
7764         (inf_child_fileio_fstat): Insert blank line before comment.
7765         (inf_child_fileio_close): Replace comment.
7766         (inf_child_fileio_unlink): Likewise.
7767         (inf_child_fileio_readlink): Likewise.
7768         * remote.c (remote_hostio_open): Likewise.
7769         (remote_hostio_pread): Likewise.
7770         (remote_hostio_pwrite): Likewise.
7771         (remote_hostio_close): Likewise.
7772         (remote_hostio_unlink): Likewise.
7773         (remote_hostio_readlink): Likewise.
7774         (remote_hostio_fstat): Likewise.
7775         (remote_filesystem_is_local): Likewise.
7776         * target.c (target_fileio_open): Likewise.
7777         (target_fileio_pwrite): Likewise.
7778         (target_fileio_pread): Likewise.
7779         (target_fileio_fstat): Insert blank line before comment.
7780         (target_fileio_close): Replace comment.
7781         (target_fileio_unlink): Likewise.
7782         (target_fileio_readlink): Likewise.
7783         (target_fileio_read_alloc): Likewise.
7784         (target_fileio_read_stralloc): Likewise.
7785
7786 2015-06-10  Gary Benson <gbenson@redhat.com>
7787
7788         * linux-thread-db.c (nat/linux-namespaces.h): New include.
7789         (check_pid_namespace_match): Use linux_ns_same rather than
7790         linux_proc_pid_get_ns to spot PID namespace mismatches.
7791         * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7792         * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7793
7794 2015-06-10  Gary Benson <gbenson@redhat.com>
7795
7796         * configure.ac (AC_CHECK_FUNCS): Add setns.
7797         * config.in: Regenerate.
7798         * configure: Likewise.
7799         * nat/linux-namespaces.h: New file.
7800         * nat/linux-namespaces.c: Likewise.
7801         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7802         (linux-namespaces.o): New rule.
7803         * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7804         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7805         * config/arm/linux.mh (NATDEPFILES): Likewise.
7806         * config/i386/linux.mh (NATDEPFILES): Likewise.
7807         * config/i386/linux64.mh (NATDEPFILES): Likewise.
7808         * config/ia64/linux.mh (NATDEPFILES): Likewise.
7809         * config/m32r/linux.mh (NATDEPFILES): Likewise.
7810         * config/m68k/linux.mh (NATDEPFILES): Likewise.
7811         * config/mips/linux.mh (NATDEPFILES): Likewise.
7812         * config/pa/linux.mh (NATDEPFILES): Likewise.
7813         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7814         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7815         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7816         * config/s390/linux.mh (NATDEPFILES): Likewise.
7817         * config/sparc/linux.mh (NATDEPFILES): Likewise.
7818         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7819         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7820         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7821
7822 2015-06-10  Gary Benson <gbenson@redhat.com>
7823
7824         * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7825         * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7826         (make_cleanup_close): Likewise.
7827         * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7828         * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7829         (make_cleanup_close): Likewise.
7830
7831 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7832
7833         * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7834         from SuspendThread().
7835
7836 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7837
7838         * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7839         from OutputDebugString.
7840
7841 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7842                         Mircea Gherzan  <mircea.gherzan@intel.com>
7843
7844         * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7845         MPX_BT_MASK_32): New macros.
7846         (i386_mpx_set_bounds): New function that implements
7847         the command "set-mpx-bound".
7848         (i386_mpx_enabled): Helper function to test MPX availability.
7849         (i386_mpx_bd_base): Helper function to calculate the base directory
7850         address.
7851         (i386_mpx_get_bt_entry): Helper function to access a bound
7852         table entry.
7853         (i386_mpx_print_bounds): Effectively display bound information.
7854         (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7855         "show mpx".
7856         (_initialize_i386_tdep):
7857         Add "bound" to the commands "show mpx" and "set mpx" commands.
7858         (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7859         and "show mpx" commands.
7860         * NEWS: List new commands for MPX support.
7861
7862 2015-06-09  Gary Benson <gbenson@redhat.com>
7863
7864         * common/fileio.h (fileio_to_host_mode): New declaration.
7865         * common/fileio.c (fileio_to_host_mode): New Function.
7866         * inf-child.c (inf_child_fileio_open): Process mode argument
7867         with fileio_to_host_mode.
7868
7869 2015-06-09  Gary Benson <gbenson@redhat.com>
7870
7871         * common/fileio.c (fileio_mode_pack): Fix preprocessor
7872         conditional.
7873
7874 2015-06-05  Gary Benson <gbenson@redhat.com>
7875
7876         * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7877         * remote.c (remote_filesystem_is_local): ...here.
7878
7879 2015-06-04  Yao Qi  <yao.qi@linaro.org>
7880
7881         * gdbarch.c: Regenerate it.
7882
7883 2015-06-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7884
7885         * arch-utils.c (default_infcall_munmap): New.
7886         * arch-utils.h (default_infcall_munmap): New declaration.
7887         * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7888         (munmap_list_free, munmap_listp_free_cleanup): New.
7889         (struct setup_sections_data): Add field munmap_list_headp.
7890         (setup_sections): Call munmap_list_add.
7891         (compile_object_load): New variable munmap_list_head, initialize
7892         setup_sections_data.munmap_list_headp, return munmap_list_head.
7893         * compile/compile-object-load.h (struct munmap_list): New declaration.
7894         (struct compile_module): Add field munmap_list_head.
7895         (munmap_list_free): New declaration.
7896         * compile/compile-object-run.c (struct do_module_cleanup): Add field
7897         munmap_list_head.
7898         (do_module_cleanup): Call munmap_list_free.
7899         (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7900         * gdbarch.c: Regenerate.
7901         * gdbarch.h: Regenerate.
7902         * gdbarch.sh (infcall_munmap): New.
7903         * linux-tdep.c (linux_infcall_munmap): New.
7904         (linux_init_abi): Install it.
7905
7906 2015-06-02  Simon Marchi  <simon.marchi@ericsson.com>
7907
7908         PR gdb/15564
7909         * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7910
7911 2015-06-02  Yao Qi  <yao.qi@linaro.org>
7912
7913         * i386-linux-nat.c: Include linux-nat.h.
7914
7915 2015-06-01  Andreas Schwab  <schwab@linux-m68k.org>
7916             Jan Kratochvil  <jan.kratochvil@redhat.com>
7917
7918         PR symtab/18392
7919         * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7920         assertion.
7921         * dwarf2loc.c (chain_candidate): Likewise.
7922
7923 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7924
7925         * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7926         (store_vfp_regs): Use PTRACE_SETREGSET.
7927
7928 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7929
7930         * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7931         (fetch_fpregs): Likewise.
7932         * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7933         (store_fpregs): Likewise.
7934
7935 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7936
7937         * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7938         (fetch_regs): Likewise.
7939         (store_regs): Use PTRACE_SETREGSET.
7940         (store_register): Likewise.
7941
7942 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7943
7944         * arm-linux-nat.c (arm_linux_read_description): Check whether
7945         kernel supports PTRACE_GETREGSET.
7946
7947 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7948
7949         * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7950         * linux-nat.c: ... here.
7951         * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7952         to ...
7953         * linux-nat.h: ... here.
7954
7955 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7956
7957         * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7958         * i386-linux-nat.c: Likewise.
7959         * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7960         * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7961         (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7962         * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7963         * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7964
7965 2015-05-30  Eli Zaretskii  <eliz@gnu.org>
7966
7967         * go32-nat.c (go32_xfer_memory): Fix the return value to be
7968         compatible to what read_child and write_child return.  This
7969         unbreaks that DJGPP build of GDB which was broken since v7.7.
7970
7971 2015-05-29  Martin Galvan  <martin.galvan@tallertechnologies.com>
7972
7973         * MAINTAINERS (Write After Approval): Add Martin Galvan.
7974
7975 2015-05-29  Roland McGrath  <mcgrathr@google.com>
7976
7977         PR gdb/18464
7978         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7979         rather than internal_error for an unrecognized value.
7980
7981 2015-05-29  Max Filippov  <jcmvbkbc@gmail.com>
7982
7983         * xtensa-tdep.c (xtensa_pseudo_register_read)
7984         (xtensa_pseudo_register_write): Don't alias last pseudo register
7985         to a1.
7986
7987 2015-05-28  Don Breazeal  <donb@codesourcery.com>
7988
7989         * infrun.c (follow_fork_inferior): Ensure the use of
7990         process-style ptids (pid,0,0) in verbose/debug "Detaching"
7991         messages.
7992
7993 2015-05-28  Doug Evans  <dje@google.com>
7994
7995         * dwarf2read.c (record_line_ftype): Remove, duplicate.
7996
7997 2015-05-28  Yao Qi  <yao.qi@linaro.org>
7998
7999         * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
8000         (arm_linux_fetch_inferior_registers): Use
8001         tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
8002         (arm_linux_store_inferior_registers): Likewise.
8003         (arm_linux_read_description): Don't set
8004         arm_linux_has_wmmx_registers.
8005         * arm-tdep.c (arm_gdbarch_init): Set
8006         tdep->have_wmmx_registers according target descriptions.
8007         * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
8008         field.
8009
8010 2015-05-28  Yao Qi  <yao.qi@linaro.org>
8011
8012         * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
8013         (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
8014         instead of arm_linux_vfp_register_count.
8015         (store_vfp_regs): Likewise.
8016         (arm_linux_fetch_inferior_registers): Likewise.
8017         (arm_linux_store_inferior_registers): Likewise.
8018         (arm_linux_read_description): Don't set
8019         arm_linux_vfp_register_count.
8020         * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
8021         Adjust.
8022         * arm-tdep.c (arm_gdbarch_init): Add assert on
8023         vfp_register_count.
8024         * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
8025         field to vfp_register_count.  All users updated.
8026
8027 2015-05-28  Kyle Huey  <me@kylehuey.com>  (tiny patch)
8028
8029         * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
8030         ELFOSABI_GNU binaries.
8031
8032 2015-05-27  Doug Evans  <dje@google.com>
8033
8034         * dwarf2read.c (lnp_state_machine): New typedef.
8035         (lnp_reader_state): New typedef.
8036         (dwarf_record_line_1): Renamed from dwarf_record_line.
8037         All callers updated.
8038         (dwarf_record_line): New function.
8039         (init_lnp_state_machine): New function.
8040         (check_line_address): Replace p_record_line parameter with state.
8041         All callers updated.
8042         (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
8043         Update to record state in lnp_state_machine.
8044
8045 2015-05-27  Doug Evans  <dje@google.com>
8046
8047         * dwarf2read.c (record_line_ftype): New typedef.
8048         (check_line_address): New function.
8049         (dwarf_decode_lines_1): Call it.
8050
8051 2015-05-27  Doug Evans  <dje@google.com>
8052
8053         * NEWS: Mention "set debug dwarf-line".
8054         * dwarf2read.c (dwarf_line_debug): New static global.
8055         (add_include_dir): Add debug dwarf-line support.
8056         (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
8057         (_initialize_dwarf2_read): New parameter "debug dwarf-line".
8058
8059 2015-05-27  Doug Evans  <dje@google.com>
8060
8061         * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
8062         All callers updated.
8063         (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
8064         * cp-support.h (cp_lookup_nested_symbol): Update.
8065
8066 2015-05-27  Doug Evans  <dje@google.com>
8067
8068         PR symtab/18258
8069         * block.c (block_find_symbol): New function.
8070         (block_find_non_opaque_type): Ditto.
8071         (block_find_non_opaque_type_preferred): Ditto.
8072         * block.h (block_symbol_matcher_ftype): New typedef.
8073         (block_find_symbol): Declare.
8074         (block_find_non_opaque_type): Ditto.
8075         (block_find_non_opaque_type_preferred): Ditto.
8076         * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
8077         * psymtab.c (psym_lookup_symbol): Ditto.
8078         * symtab.c (basic_lookup_transparent_type_1): New function.
8079         (basic_lookup_transparent_type): Call it.
8080
8081 2015-05-27  Yao Qi  <yao.qi@linaro.org>
8082
8083         * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
8084         AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
8085
8086 2015-05-27  Yao Qi  <yao.qi@linaro.org>
8087
8088         * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
8089         before operator &&.
8090         (aarch64_record_load_store): Likewise.
8091
8092 2015-05-26  Doug Evans  <dje@google.com>
8093
8094         PR c++/18141, c++/18417.
8095         * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
8096         a typedef.
8097
8098 2015-05-26  Doug Evans  <dje@google.com>
8099
8100         * NEWS: Add entries for command renamings.
8101         * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
8102         All uses updated.
8103         (dwarf_die_debug): Renamed from dwarf2_die_debug.  All uses updated.
8104         (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
8105         All uses updated.
8106         (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
8107         All callers updated.  Fix spelling of DWARF in help text.
8108         (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
8109         All uses updated.
8110         (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
8111         All uses updated.
8112         (set_dwarf_cmd): Renamed from set_dwarf2_cmd.  All callers updated.
8113         (show_dwarf_cmd): Renamed from show_dwarf2_cmd.  All callers updated.
8114         (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
8115         All uses updated.
8116         (show_dwarf_always_disassemble): Renamed from
8117         show_dwarf2_always_disassemble.  All callers updated.
8118         (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
8119         "set/show dwarf".  Rename "set/show dwarf2 max-cache-age" to
8120         "set/show dwarf max-cache-age".  Rename
8121         "set/show dwarf2 always-disassemble" to
8122         "set/show dwarf always-disassemble".  Rename
8123         "set/show debug dwarf2-read" to "set/show debug dwarf-read".  Rename
8124         "set/show debug dwarf2-die" to "set/show debug dwarf-die".
8125
8126 2015-05-26  Doug Evans  <dje@google.com>
8127
8128         PR python/18438
8129         * python/py-lazy-string.c (stpy_convert_to_value): Use
8130         gdbpy_gdb_memory_error not PyExc_MemoryError.
8131         (gdbpy_create_lazy_string_object): Ditto.
8132
8133 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
8134
8135         * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
8136
8137 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
8138
8139         * tui/tui-regs.c (tui_reg_prev_command): New function.
8140         (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
8141         * reggroups.c (reggroup_prev): New function.
8142         * reggroups.h (reggroup_prev): Add declaration.  Update comment.
8143
8144 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
8145             Yao Qi  <yao.qi@linaro.org>
8146
8147         * aarch64-linux-tdep.c: Include linux-record.h and
8148         record-full.h.
8149         (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
8150         (aarch64_syscall): New enum.
8151         (aarch64_canonicalize_syscall): New function.
8152         (aarch64_all_but_pc_registers_record): New function.
8153         (aarch64_linux_syscall_record): New function.
8154         (aarch64_linux_init_abi): Install AArch64 process record
8155         handler.  Update to handle syscall recording.
8156         * aarch64-tdep.c: Include record.h and record-full.h.
8157         (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
8158         (struct aarch64_mem_r): Define.
8159         (aarch64_record_result): New enum.
8160         (struct insn_decode_record): Define.
8161         (insn_decode_record): New typedef.
8162         (aarch64_record_data_proc_reg): New function.
8163         (aarch64_record_data_proc_imm): New function.
8164         (aarch64_record_branch_except_sys): New function.
8165         (aarch64_record_load_store): New function.
8166         (aarch64_record_data_proc_simd_fp): New function.
8167         (aarch64_record_asimd_load_store): New function.
8168         (aarch64_record_decode_insn_handler): New function.
8169         (deallocate_reg_mem): New function.
8170         (aarch64_process_record): New function.
8171         * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
8172         New field.
8173         (aarch64_process_record): New extern declaration.
8174         * configure.tgt: Add linux-record.o to gdb_target_obs.
8175         * linux-record.h (struct linux_record_tdep) <arg7>: New field.
8176
8177 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
8178
8179         * NEWS: Add a note on process record-replay support on aarch64*-linux*
8180         targets.
8181
8182 2015-05-26  Martin Galvan  <martin.galvan@tallertechnologies.com>
8183
8184         * amd64-tdep.c: Replace in_function_epilogue_p with
8185         stack_frame_destroyed_p throughout.
8186         * arch-utils.c: Ditto.
8187         * arch-utils.h: Ditto.
8188         * arm-tdep.c: Ditto.
8189         * breakpoint.c: Ditto.
8190         * gdbarch.sh: Ditto.
8191         * hppa-tdep.c: Ditto.
8192         * i386-tdep.c: Ditto.
8193         * mips-tdep.c: Ditto.
8194         * nios2-tdep.c: Ditto.
8195         * rs6000-tdep.c: Ditto.
8196         * s390-linux-tdep.c: Ditto.
8197         * score-tdep.c: Ditto.
8198         * sh-tdep.c: Ditto.
8199         * sparc-tdep.c: Ditto.
8200         * sparc-tdep.h: Ditto.
8201         * sparc64-tdep.c: Ditto.
8202         * spu-tdep.c: Ditto.
8203         * tic6x-tdep.c: Ditto.
8204         * tilegx-tdep.c: Ditto.
8205         * xstormy16-tdep.c: Ditto.
8206         * gdbarch.c, gdbarch.h: Re-generated.
8207
8208 2015-05-22  Andrew Burgess  <andrew.burgess@embecosm.com>
8209
8210         * NEWS: Mention 'tui enable' and 'tui disable'.
8211         * tui/tui.c (tui_enable_command): New function.
8212         (tui_disable_command): New function.
8213         (_initialize_tui): New function.
8214
8215 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8216
8217         * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
8218
8219 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8220
8221         * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
8222         buf_ptr is freed.
8223
8224 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8225
8226         * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
8227         into ...
8228         (tui_set_layout_for_display_command): ...here, before calling
8229         tui_set_layout.  Only set the layout if gdb has not already
8230         entered the TUI_FAILURE state.
8231
8232 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8233
8234         * tui/tui-layout.c (layout_completer): New function.
8235         (_initialize_tui_layout): Set completer on layout command.
8236
8237 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8238
8239         * tui/tui-layout.c (tui_set_layout): Remove
8240         tui_register_display_type parameter.  Remove all checking of this
8241         parameter, and reindent function.  Update header comment.
8242         (tui_set_layout_for_display_command): Rename to...
8243         (tui_set_layout_by_name): ...this, and don't check for different
8244         register class types, don't pass a tui_register_display_type to
8245         tui_set_layout.  Update header comment.
8246         (layout_names): Remove register set specific names.
8247         * tui/tui-layout.h (tui_set_layout): Remove
8248         tui_register_display_type parameter.
8249         * tui/tui.c (tui_rl_change_windows): Don't pass a
8250         tui_register_display_type to tui_set_layout.
8251         (tui_rl_delete_other_windows): Likewise.
8252         (tui_enable): Likewise.
8253         * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
8254         (TUI_FLOAT_REGS_NAME_LOWER): Remove.
8255         (TUI_GENERAL_REGS_NAME): Remove.
8256         (TUI_GENERAL_REGS_NAME_LOWER): Remove.
8257         (TUI_SPECIAL_REGS_NAME): Remove.
8258         (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
8259         (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
8260         (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
8261         (enum tui_register_display_type): Remove.
8262         (struct tui_layout_def): Remove regs_display_type and
8263         float_regs_display_type fields.
8264         (struct tui_data_info): Remove regs_display_type field.
8265         (tui_layout_command): Use new name for
8266         tui_set_layout_for_display_command.
8267         * tui/tui-data.c (layout_def): Don't initialise removed fields.
8268         (tui_clear_win_detail): Don't initialise removed fields of
8269         win_info.
8270         * tui/tui-regs.c (tui_show_registers): Use new name for
8271         tui_set_layout_for_display_command.
8272         * tui/tui.h (tui_set_layout_for_display_command): Rename
8273         declaration to...
8274         (tui_set_layout_by_name): ...this.
8275         * printcmd.c (display_command): Remove tui related layout call,
8276         and reindent.
8277
8278 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
8279
8280         * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
8281         (handle_inferior_event): New function.
8282
8283 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
8284
8285         * ada-lang.c (to_fixed_array_type): Rename local variable
8286         typename into type_name.
8287
8288 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8289
8290         Fix ASAN crash for gdb.compile/compile.exp.
8291         * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
8292
8293 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8294
8295         * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
8296         (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
8297         * compile/compile-object-load.c (setup_sections, compile_object_load):
8298         Likewise.
8299         * compile/compile.c (compile_to_object): Likewise.
8300
8301 2015-05-16  Doug Evans  <xdje42@gmail.com>
8302
8303         * NEWS: Mention support for unbuffered Guile memory ports.
8304         * scm-ports.c (ioscm_memory_port): Update comments on end, size.
8305         (ioscm_lseek_address): Improve overflow calculation.
8306         (gdbscm_memory_port_fill_input): Add assert.
8307         (gdbscm_memory_port_write): Handle unbuffered ports.
8308         Handle large writes identical to Guile's fport_write.
8309         (gdbscm_memory_port_seek): Fix seeking past end check.
8310         (gdbscm_memory_port_close): Handle closing unbuffered port.
8311         (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
8312         (ioscm_init_memory_port): Handle unbuffered ports.
8313         (ioscm_reinit_memory_port): Ditto.
8314         (ioscm_init_memory_port): Update size calculation.
8315         (gdbscm_open_memory): Support zero sized ports.
8316
8317 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8318
8319         * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
8320         variable compiler warnings.
8321
8322 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8323
8324         * compile/compile-object-load.c (get_out_value_type): Fix returned type.
8325
8326 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8327             Phil Muldoon  <pmuldoon@redhat.com>
8328
8329         * NEWS (Changes since GDB 7.9): Add compile print.
8330         * compile/compile-c-support.c (add_code_header, add_code_footer)
8331         (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
8332         COMPILE_I_PRINT_VALUE_SCOPE.
8333         * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
8334         (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
8335         New.
8336         * compile/compile-object-load.c: Include block.h.
8337         (get_out_value_type): New function.
8338         (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8339         COMPILE_I_PRINT_VALUE_SCOPE.  Set compile_module's OUT_VALUE_ADDR and
8340         OUT_VALUE_TYPE.
8341         * compile/compile-object-load.h (struct compile_module): Add fields
8342         out_value_addr and out_value_type.
8343         * compile/compile-object-run.c: Include valprint.h and compile.h.
8344         (struct do_module_cleanup): Add fields out_value_addr and
8345         out_value_type.
8346         (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8347         COMPILE_I_PRINT_VALUE_SCOPE.
8348         (compile_object_run): Propagate out_value_addr and out_value_type.
8349         Pass OUT_VALUE_ADDR.
8350         * compile/compile.c: Include valprint.h.
8351         (compile_print_value, compile_print_command): New functions.
8352         (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
8353         (_initialize_compile): Update compile code help text.  Install
8354         compile_print_command.
8355         * compile/compile.h (compile_print_value): New prototype.
8356         * defs.h (enum compile_i_scope_types): Add
8357         COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
8358
8359 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8360
8361         * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
8362         Rely on its parameter count.
8363         (compile_object_load): Replace lookup_minimal_symbol_text by
8364         lookup_global_symbol_from_objfile.  Verify FUNC_SYM.  Set it in the
8365         return value.
8366         * compile/compile-object-load.h (struct compile_module): Replace
8367         func_addr by func_sym.
8368         * compile/compile-object-run.c: Include block.h.
8369         (compile_object_run): Reset module variable after it is freed.  Use
8370         FUNC_SYM instead of FUNC_ADDR.  Rely on it.
8371
8372 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8373
8374         * compile/compile-c-support.c (print_one_macro): Use #ifndef.
8375         (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
8376         (c_compute_program): Call generate_register_struct after typedefs.
8377         * compile/compile-loc2c.c (push, pushf_register_address)
8378         (pushf_register): Cast to GCC_UINTPTR.
8379         (do_compile_dwarf_expr_to_c): Use unused attribute.  Add space after
8380         type.  Use GCC_UINTPTR instead of void *.  Remove excessive cast.
8381         (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
8382         * compile/compile.c (_initialize_compile): Enable warnings for
8383         COMPILE_ARGS.
8384
8385 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8386
8387         * cli/cli-script.c (execute_control_command): Update
8388         eval_compile_command caller.
8389         * compile/compile-object-load.c (compile_object_load): Add parameters
8390         scope and scope_data.  Set them.
8391         * compile/compile-object-load.h (struct compile_module): Add fields
8392         scope and scope_data.
8393         (compile_object_load): Add parameters scope and scope_data.
8394         * compile/compile-object-run.c (struct do_module_cleanup): Add fields
8395         scope and scope_data.
8396         (compile_object_run): Propagate the fields scope and scope_data.
8397         * compile/compile.c (compile_file_command, compile_code_command):
8398         Update eval_compile_command callers.
8399         (eval_compile_command): Add parameter scope_data.  Pass it plus scope.
8400         * compile/compile.h (eval_compile_command): Add parameter scope_data.
8401         * defs.h (struct command_line): Add field scope_data.
8402
8403 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8404
8405         * printcmd.c (struct format_data): Move it to valprint.h.
8406         (print_command_parse_format, print_value): New functions from ...
8407         (print_command_1): ... here.  Call them.
8408         * valprint.h (struct format_data): Move it here from printcmd.c.
8409         (print_command_parse_format, print_value): New declarations.
8410
8411 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8412
8413         * compile/compile-object-load.c (compile_object_load): Add
8414         COMPILE_DEBUG message.
8415
8416 2015-05-15  Jerome Guitton  <guitton@adacore.com>
8417
8418         * ada-lang.c (ada_value_ptr_subscript): Use enum position of
8419         index to get element instead of enum value.
8420         (ada_value_slice_from_ptr, ada_value_slice): Use enum position
8421         of index to compute length, but enum values to compute bounds.
8422         (ada_array_length): Use enum position of index instead of enum value.
8423         (pos_atr): Move position computation to...
8424         (ada_evaluate_subexp): Use enum values to compute bounds.
8425         * gdbtypes.c (discrete_position): ...this new function.
8426         * gdbtypes.h (discrete_position): New function declaration.
8427         * valprint.c (val_print_array_elements): Call discrete_position
8428         to handle array indexed by non-contiguous enumeration types.
8429
8430 2015-05-15  Jerome Guitton  <guitton@adacore.com>
8431
8432         * ada-lang.c (find_parallel_type_by_descriptive_type):
8433         Go through typedefs during lookup.
8434         (to_fixed_array_type): Add support for non-bit packed arrays
8435         as variable-length fields.
8436
8437 2015-05-15  Pedro Alves  <palves@redhat.com>
8438             Simon Marchi  <simon.marchi@ericsson.com>
8439
8440         * event-loop.c (gdb_notifier) <next_file_handler,
8441         next_poll_fds_index>: New fields.
8442         (get_next_file_handler_to_handle_and_advance): New function.
8443         (delete_file_handler): If deleting the next file handler to
8444         handle, advance to the next file handler.
8445         (gdb_wait_for_event): Bail early if no event fired.  Poll file
8446         handlers in round-robin fashion.
8447
8448 2015-05-15  Pedro Alves  <palves@redhat.com>
8449
8450         * linux-tdep.c (linux_find_memory_regions_full): Rename local
8451         'private' to 'priv'.
8452
8453 2015-05-15  Pedro Alves  <palves@redhat.com>
8454
8455         * nat/linux-nat.h: Include "target/waitstatus.h".
8456
8457 2015-05-15  Yuanhui Zhang  <asmwarrior@gmail.com>
8458
8459         * python/py-unwind.c (struct reg_info): Move out of ...
8460         (struct cached_frame_info): ... this scope.
8461         (pending_frame_object_type, unwind_info_object_type): Make extern.
8462
8463 2015-05-15  Joel Brobecker  <brobecker@adacore.com>
8464
8465         * ada-lang.c (ada_value_primitive_packed_val): Make sure
8466         accumSize is never negative.
8467
8468 2015-05-14  Patrick Palka  <patrick@parcs.ath.cx>
8469
8470         * tui/tui-command.c: Remove include of <ctype.h>.
8471         (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
8472
8473 2015-05-13  Martin Galvan  <martin.galvan@tallertechnologies.com>
8474
8475         * dwarf2read.c (die_needs_namespace): Return 1 for
8476         DW_TAG_inlined_subroutine.
8477
8478 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8479
8480         * regcache.c (regcache_cpy_no_passthrough): New declaration.
8481         (regcache_cpy_no_passthrough): Make it static, add function comment.
8482         * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
8483         (regcache_cpy_no_passthrough): Remove declaration.
8484
8485 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8486
8487         * gdbthread.h (struct thread_control_state): Update comment for
8488         proceed_to_finish.
8489         * infcall.c (run_inferior_call): Update comment about
8490         proceed_to_finish.
8491         * infcmd.c (get_return_value): Update comment about stop_registers.
8492         (finish_forward): Update comment about proceed_to_finish.
8493         * infrun.c (stop_registers): Remove.
8494         (clear_proceed_status, normal_stop): Remove stop_registers handling.
8495         * infrun.h (stop_registers): Remove.
8496
8497 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8498
8499         * infcall.c (struct dummy_frame_context_saver)
8500         (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
8501         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8502         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8503         New.
8504         (call_function_by_hand_dummy): Move discard_cleanups of
8505         inf_status_cleanup before dummy_frame_push.  Call
8506         dummy_frame_context_saver_setup and prepare context_saver_cleanup.
8507         Use dummy_frame_context_saver_get_regs instead of stop_registers.
8508         * infcall.h (struct dummy_frame_context_saver)
8509         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8510         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8511         New declarations.
8512         * infcmd.c: Include infcall.h.
8513         (get_return_value): Add parameter ctx_saver, use it instead of
8514         stop_registers.
8515         (print_return_value): Add parameter ctx_saver, pass it.
8516         (struct finish_command_continuation_args): Add field ctx_saver.
8517         (finish_command_continuation): Update print_return_value caller.
8518         (finish_command_continuation_free_arg): Free also ctx_saver.
8519         (finish_forward): Call dummy_frame_context_saver_setup.
8520         * inferior.h (struct dummy_frame_context_saver): New declaration.
8521         (get_return_value): Add parameter ctx_saver.
8522         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
8523         get_return_value caller.
8524
8525 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8526
8527         * dummy-frame.c (struct dummy_frame_dtor_list): New.
8528         (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
8529         (remove_dummy_frame): Process dtor_list.
8530         (pop_dummy_frame): Process dtor_list.
8531         (register_dummy_frame_dtor): Maintain dtor_list.
8532         (find_dummy_frame_dtor): Handle dtor_list.
8533         * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
8534         Update comments.
8535
8536 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8537
8538         * compile/compile-object-run.c (do_module_cleanup): Add parameter
8539         registers_valid.
8540         (compile_object_run): Update do_module_cleanup caller.
8541         * dummy-frame.c: Include infcall.h.
8542         (struct dummy_frame): Update dtor comment.
8543         (remove_dummy_frame): Call dtor.
8544         (pop_dummy_frame): Update dtor caller.
8545         * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
8546         registers_valid.
8547
8548 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
8549
8550         GDB 7.9.1 released.
8551
8552 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
8553
8554         * NEWS: Create "Changes in GDB 7.9.1" section.  Move news about
8555         Xmethods now being able to specify a result type to that new
8556         sectioin.
8557
8558 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
8559
8560         * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
8561         first before resizing the window.
8562         * tui/tui.c (tui_enable): Likewise.
8563
8564 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8565
8566         * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
8567         * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
8568         * infcall.c (call_function_by_hand_dummy): Use proper typedef for
8569         dummy_dtor parameter.
8570         * infcall.h: Include dummy-frame.h.
8571         (call_function_by_hand_dummy_dtor_ftype): Remove.
8572         (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
8573         parameter.
8574
8575 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
8576
8577         PR gdb/17820
8578         * top.c (history_size_setshow_var): Change type to signed.
8579         Initialize to -2.  Update documentation.
8580         (set_readline_history_size): Define.
8581         (set_history_size_command): Use it.  Remove logic for handling
8582         out-of-range sizes.
8583         (init_history): Use set_readline_history_size().  Test for a
8584         value of -2 instead of 0 when determining whether to set a
8585         default history size.
8586         (init_main): Decode the argument of the "size" command as a
8587         zuinteger_unlimited.
8588
8589 2015-05-12  Doug Evans  <dje@google.com>
8590
8591         * dwarf2read.c (struct file_entry): Tweak comments.
8592         (get_debug_line_section): Tweak comments.
8593
8594 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8595
8596         * NEWS: Announce fork support in the RSP and support
8597         for fork debugging in extended mode.
8598
8599 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8600
8601         * remote.c (remote_insert_fork_catchpoint): New function.
8602         (remote_remove_fork_catchpoint): New function.
8603         (remote_insert_vfork_catchpoint): New function.
8604         (remote_remove_vfork_catchpoint): New function.
8605         (pending_fork_parent_callback): New function.
8606         (remove_new_fork_child): New function.
8607         (remote_update_thread_list): Call remote_notif_get_pending_events
8608         and remove_new_fork_child.
8609         (extended_remote_kill): Kill fork child when killing the
8610         parent before follow_fork completes.
8611         (init_extended_remote_ops): Initialize target vector with
8612         new fork catchpoint functions.
8613
8614 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8615
8616         * remote.c (remove_vfork_event_p): New function.
8617         (remote_follow_fork): Add vfork event type to event checking.
8618         (remote_parse_stop_reply): New stop reasons "vfork" and
8619         "vforkdone" for RSP 'T' Stop Reply Packet.
8620
8621 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8622
8623         * linux-nat.c (linux_nat_ptrace_options): New function.
8624         (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
8625         Call linux_nat_ptrace_options and use different argument to
8626         linux_enable_event_reporting.
8627         (_initialize_linux_nat): Delete call to
8628         linux_ptrace_set_additional_flags.
8629         * nat/linux-ptrace.c (current_ptrace_options): Rename to
8630         supported_ptrace_options.
8631         (additional_flags): Delete variable.
8632         (linux_check_ptrace_features): Use supported_ptrace_options.
8633         (linux_test_for_tracesysgood, linux_test_for_tracefork):
8634         Likewise, and remove additional_flags check.
8635         (linux_enable_event_reporting): Change 'attached' argument to
8636         'options'.  Use supported_ptrace_options.
8637         (ptrace_supports_feature): Change comment.  Use
8638         supported_ptrace_options.
8639         (linux_ptrace_set_additional_flags): Delete function.
8640         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
8641         Delete function prototype.
8642         * remote.c (remote_fork_event_p): New function.
8643         (remote_detach_pid): New function.
8644         (remote_detach_1): Call remote_detach_pid, don't mourn inferior
8645         if doing detach-on-fork.
8646         (remote_follow_fork): New function.
8647         (remote_parse_stop_reply): Handle new "T" stop reason "fork".
8648         (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
8649         (init_extended_remote_ops): Initialize to_follow_fork.
8650
8651 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8652
8653         * nat/linux-ptrace.c (linux_check_ptrace_features): Change
8654         from static to extern.
8655         * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
8656         * remote.c (anonymous enum): <PACKET_fork_event_feature,
8657         * PACKET_vfork_event_feature>: New enumeration constants.
8658         (remote_protocol_features): Add table entries for new packets.
8659         (remote_query_supported): Add new feature queries to qSupported
8660         packet.
8661
8662 2015-05-12  Gary Benson <gbenson@redhat.com>
8663
8664         * remote.c (remote_add_inferior): Call exec_file_locate_attach
8665         for fake PIDs as well as real ones.
8666         (remote_pid_to_exec_file): Send empty annex if PID is fake.
8667
8668 2015-05-09  Siva Chandra Reddy  <sivachandra@google.com>
8669
8670         * NEWS (Python Scripting): Mention the new gdb.Value methods.
8671         * python/py-value.c (valpy_reference_value): New function.
8672         (valpy_const_value): Likewise.
8673         (value_object_methods): Add new methods.
8674         * value.c (make_cv_value): New function.
8675         * value.h (make_cv_value): Declare.
8676
8677 2015-05-08  Yao Qi  <yao@codesourcery.com>
8678             Sandra Loosemore  <sandra@codesourcery.com>
8679
8680         * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
8681         to 'lh->include_dirs' before accessing to it.
8682         (psymtab_include_file_name): Likewise.
8683         (dwarf_decode_lines_1): Likewise.
8684         (dwarf_decode_lines): Likewise.
8685         (file_file_name): Likewise.
8686
8687 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
8688
8689         * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
8690         (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
8691         (nios2_linux_rt_sigreturn_init): Adjust base address of
8692         register save area.
8693
8694 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
8695
8696         * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
8697         "trap 31" as the breakpoint instruction on all targets.
8698
8699 2015-05-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8700
8701         * infcmd.c (print_return_value): Remove unused declaration.
8702
8703 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8704
8705         * dwarf2read.c (attr_to_dynamic_prop)
8706         <DW_AT_data_member_location>: Use read_type_die isntead of
8707         get_die_type.
8708
8709 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8710
8711         * ada-lang.c (ada_convert_actual): Add handling of formals
8712         passed inside an aligner type.
8713
8714 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8715
8716         * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
8717
8718 2015-05-08  Siva Chandra Reddy  <sivachandra@google.com>
8719
8720         PR python/18291
8721         * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
8722         Print xmethod matcher status.
8723
8724 2015-05-08  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8725
8726         * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
8727         register in the regcache when treating the PSWM register, and vice
8728         versa.
8729
8730 2015-05-07  Gary Benson <gbenson@redhat.com>
8731
8732         * linux-thread-db.c (struct thread_db_info)
8733         <td_ta_map_id2thr_p>: Remove field.
8734         (try_thread_db_load_1): Remove initialization for the above.
8735
8736 2015-05-07  Gary Benson <gbenson@redhat.com>
8737
8738         * linux-thread-db.c (struct thread_db_info)
8739         <td_thr_validate_p>: Remove field.
8740         (try_thread_db_load_1): Remove initialization for the above.
8741
8742 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
8743
8744         * compile/compile-object-load.c (compile_object_load): Support
8745         mst_text_gnu_ifunc.
8746
8747 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
8748
8749         * compile/compile.c (compile_to_object): Make the cmd_string parameter
8750         const.  Use new variables for the const compatibility.
8751         (eval_compile_command): Make the cmd_string parameter const.
8752         * compile/compile.h (eval_compile_command): Make the cmd_string
8753         parameter const.
8754
8755 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
8756
8757         * defs.h (deprecated_init_ui_hook): Delete.  Remove associated
8758         comment.
8759         * top.c (deprecated_init_ui_hook): Delete.
8760         (gdb_init): Remove handling of deprecated_init_ui_hook.
8761         * interps.c (clear_interpreter_hooks): Remove handling of
8762         deprecated_init_ui_hook.
8763         * main.c (captured_main): Update comment.
8764
8765 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
8766
8767         * solib.c (_initialize_solib): Add "info dll" alias creation.
8768         * windows-nat.c (set_windows_aliases): Delete.
8769         (_initialize_windows_nat): Remove deprecated_init_ui_hook
8770         assignment.
8771         * NEWS: Add news entry about "info dll" now being available
8772         on all platforms.
8773
8774 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8775
8776         * ada-lang.c (value_assign_to_component): Reformat and improve
8777         documentation. Remove all trailing spaces.
8778
8779 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8780
8781         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8782         Stop counting inlined frames as soon as an out-of-line function
8783         is found.
8784
8785 2014-05-05  Pierre-Marie de Rodat  <derodat@adacore.com>
8786
8787         * dwarf2read.c (inherit_abstract_dies): Skip
8788         DW_TAG_GNU_call_site dies while inheriting children of an
8789         abstract DIE into a scope.
8790         (read_lexical_block_scope): Inherit abstract DIE's for
8791         lexical scopes.
8792
8793 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8794
8795         * ada-valprint.c (val_print_packed_array_elements): Delete
8796         variable "len".  Add a type-length check when comparing two
8797         consecutive elements of the array.  Use the element's actual
8798         length in call to value_contents_eq.
8799         * ada-lang.c (ada_value_primitive_packed_val): Always return
8800         a value whose type has been resolved.
8801
8802 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8803
8804         * ada-lang.c (ada_value_primitive_packed_val): Recompute
8805         BIT_SIZE and LEN if the size of the resolved type is smaller
8806         than BIT_SIZE * HOST_CHAR_BIT.
8807
8808 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8809
8810         * ada-lang.c (ada_value_primitive_packed_val): Use a more
8811         correct address in call to value_at.  Adjust call to
8812         value_address accordingly.
8813
8814 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8815
8816         * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8817         to print it.
8818
8819 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8820
8821         * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8822         * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8823         pinfo->valaddr.
8824         * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8825         * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8826         (resolve_dynamic_type_internal): Set pinfo.valaddr.
8827         Add handling of addr_stack->valaddr.
8828         (resolve_dynamic_type): Add "valaddr" parameter.
8829         Set pinfo.valaddr field.
8830         * ada-lang.c (ada_discrete_type_high_bound): Update call to
8831         resolve_dynamic_type.
8832         (ada_discrete_type_low_bound): Likewise.
8833         * findvar.c (default_read_var_value): Likewise.
8834         * value.c (value_from_contents_and_address): Likewise.
8835
8836 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8837
8838         * gdbtypes.c (resolve_dynamic_array): Use
8839         create_array_type_with_stride instead of create_array_type.
8840
8841 2015-04-30  DJ Delorie  <dj@redhat.com>
8842
8843         * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8844         rl78_decode_opcode
8845
8846 2015-04-29  Doug Evans  <dje@google.com>
8847
8848         PR python/18285
8849         * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8850         * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8851         EVAL_AVOID_SIDE_EFFECTS for xmethods.
8852         * extension-priv.h (struct extension_language_ops)
8853         <get_xmethod_result_type>: New member.
8854         * extension.c (get_xmethod_result_type): New function.
8855         * extension.h (get_xmethod_result_type): Declare.
8856         * python/py-xmethods.c (get_result_type_method_name): New static
8857         global.
8858         (py_get_result_type_method_name): Ditto.
8859         (gdbpy_get_xmethod_result_type): New function.
8860         (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8861         * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8862         * python/python.c (python_extension_ops): Add
8863         gdbpy_get_xmethod_result_type.
8864         * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8865         * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8866         xmethods.
8867         (value_x_unop): Ditto.
8868         * value.c (result_type_of_xmethod): New function.
8869         * value.h (result_type_of_xmethod): Declare.
8870
8871 2015-04-29  Gary Benson <gbenson@redhat.com>
8872
8873         * solib.c (solib_find_1): Allow fd argument to be NULL.
8874         (exec_file_find): Update comment.
8875         (solib_find): Likewise.
8876         * exec.c (exec_file_locate_attach): Use NULL as fd
8877         argument to exec_file_find to avoid having to close
8878         the opened file.
8879         * infrun.c (follow_exec): Likewise.
8880
8881 2015-04-28  Doug Evans  <dje@google.com>
8882
8883         PR python/18299
8884         * python/lib/gdb/printing.py (register_pretty_printer): Handle
8885         name or __name__ attributes.  Handle gdb module as first argument.
8886
8887 2015-04-28  Doug Evans  <dje@google.com>
8888
8889         PR python/18089
8890         * python/py-prettyprint.c (print_children): Verify result of children
8891         iterator.  Provide better error message.
8892         * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8893         * python/python.c (gdbpy_print_python_errors_p): New function.
8894
8895 2015-04-28  Doug Evans  <dje@google.com>
8896
8897         * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8898
8899 2015-04-28  Sasha Smundak  <asmundak@google.com>
8900
8901         * NEWS: Mention gdb.Type.optimized_out method.
8902         * python/py-type.c (typy_optimized_out):  New function.
8903
8904 2015-04-28  John Baldwin  <jhb@FreeBSD.org>
8905
8906         * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8907
8908 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8909
8910         * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8911         (initialize_utils): Move call of init_page_info() to ...
8912         * top.c (gdb_init): ... here.
8913
8914 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8915
8916         * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8917         (tui_sigwinch_handler): Still update our idea of
8918         the terminal's width and height even when TUI is not active.
8919
8920 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8921
8922         * utils.h (set_screen_width_and_height): Declare.
8923         * utils.c (set_screen_width_and_height): Define.
8924         * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8925
8926 2015-04-28  Gary Benson <gbenson@redhat.com>
8927
8928         * infrun.c (solist.h): New include.
8929         (follow_exec): Use exec_file_find to prefix execd_pathname
8930         with gdb_sysroot.
8931
8932 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8933
8934         * tui/tui-source.c (tui_set_source_content): Avoid calling
8935         strcpy() when offset is 0.
8936
8937 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8938
8939         PR gdb/18155
8940         * tui/tui-data.c (tui_free_window): Don't free the locator
8941         window when passed an SRC_WIN or a DISASSEM_WIN.
8942
8943 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8944
8945         * tui/tui-data.h (struct tui_win_element): Forward-declare.
8946         (tui_win_content): Move declaration.
8947         (struct tui_gen_win_info): Give 'content' field the
8948         type tui_win_content.
8949         * tui/tui-data.c (init_content_element): Remove redundant and
8950         erroneous casts.
8951         (tui_add_content_elements): Remove erroneous cast.
8952         * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8953         casts.
8954         (tui_get_begin_asm_address): Likewise.
8955         * tui/tui-regs.c (tui_show_registers): Likewise.
8956         (tui_show_register_group): Likewise.
8957         (tui_display_registers_from): Likewise.
8958         (tui_check_register_values): Likewise.
8959         * tui/tui-source.c (tui_set_source_content): Likewise.
8960         (tui_set_source_content_nil): Likewise.
8961         (tui_source_is_displayed): Likewise.
8962         * tui/tui-stack.c (tui_show_locator_content): Likewise.
8963         (tui_set_locator_fullname): Likewise.
8964         (tui_set_locator_info): Likewise.
8965         (tui_show_frame_info): Likewise.
8966         * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8967         (tui_show_source_line): Likewise.
8968         (tui_horizontal_source_scroll): Likewise.
8969         (tui_update_breakpoint_info): Likewise.
8970         (tui_set_exec_info_content): Likewise.
8971         (tui_show_exec_info_content): Likewise.
8972         (tui_alloc_source_buffer): Likewise.
8973         (tui_line_is_displayed): Likewise.
8974         (tui_addr_is_displayed): Likewise.
8975
8976 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8977
8978         * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8979         event if PL_FLAG_EXEC is set.
8980         [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8981         [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8982         (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8983         "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8984         Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8985
8986 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8987
8988         * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8989         [TDP_RFPPWAIT] New variable fbsd_pending_children.
8990         [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8991         [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8992         [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8993         [PT_LWPINFO] (fbsd_wait): New function.
8994         [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8995         [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8996         [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8997         [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8998         [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8999         [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
9000         [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
9001         [TDP_RFPPWAIT] (fbsd_post_attach): New function.
9002         (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
9003         "fbsd_wait".
9004         [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
9005         Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
9006         Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
9007         Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
9008         Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
9009         Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
9010         Set "to_post_attach" to "fbsd_post_attach".
9011
9012 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
9013
9014         * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
9015         (fbsd_find_memory_regions): Mark static.
9016         (fbsd_nat_add_target): New function.
9017         * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
9018         fbsd_pid_to_exec_file and fbsd_find_memory_regions.
9019         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
9020         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
9021         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
9022         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
9023
9024 2015-04-27  Gary Benson <gbenson@redhat.com>
9025
9026         * objfiles.c (allocate_objfile): Do not attempt to expand name
9027         if name is a "target:" filename.
9028         * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
9029         to load auto-load scripts for objfiles with "target:" filenames.
9030
9031 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9032
9033         * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
9034         (enum s390_vector_abi_kind): New enum.
9035         (struct gdbarch_tdep)<vector_abi>: New field.
9036         (s390_effective_inner_type): Add parameter min_size.  Stop
9037         unwrapping if the inner type is smaller than min_size.
9038         (s390_function_arg_float): Adjust call to
9039         s390_effective_inner_type.
9040         (s390_function_arg_vector): New function.
9041         (s390_function_arg_integer): Adjust comment.
9042         (struct s390_arg_state)<vr>: New field.
9043         (s390_handle_arg): Add parameter 'is_unnamed'.  Pass vector
9044         arguments according to vector ABI when appropriate.
9045         (s390_push_dummy_call): Initialize the argument state's field
9046         'vr'.  Adjust calls to s390_handle_arg.
9047         (s390_register_return_value): Handle vector return values.
9048         (s390_return_value): Apply the "register" return value convention
9049         to a vector when appropriate.
9050         (s390_gdbarch_init): Initialize tdep->vector_abi.
9051         * NEWS: Announce S390 vector ABI support.
9052
9053 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9054
9055         * s390-linux-tdep.c (s390_return_value_convention): Remove
9056         function.  Inline its logic...
9057         (s390_return_value): ...here.  Instead, move the handling of the
9058         "register" return value convention...
9059         (s390_register_return_value): ...here.  New function.
9060
9061 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9062
9063         * s390-linux-tdep.c
9064         (is_float_singleton): Remove function.  Move the "singleton" part
9065         of the logic...
9066         (s390_effective_inner_type): ...here.  New function.
9067         (is_float_like): Remove function.  Inline its logic...
9068         (s390_function_arg_float): ...here.
9069         (is_pointer_like, is_integer_like, is_struct_like): Remove
9070         functions.  Inline their logic...
9071         (s390_function_arg_integer): ...here.
9072         (s390_function_arg_pass_by_reference): Remove function.
9073         (extend_simple_arg): Remove function.
9074         (alignment_of): Remove function.
9075         (struct s390_arg_state): New structure.
9076         (s390_handle_arg): New function.
9077         (s390_push_dummy_call): Move parameter placement logic to the new
9078         function s390_handle_arg.  Call it for calculating the stack area
9079         sizes first, and again for actually writing the parameters.
9080
9081 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9082
9083         * s390-linux-tdep.c (is_power_of_two): Add comment.  Return
9084           false if the argument is zero.
9085
9086 2015-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
9087
9088         * ada-lang.c (template_to_static_fixed_type): Return input type
9089         when it is already fixed.  Cache the input type itself when not
9090         creating a static fixed copy.  Make it explicit that we never
9091         molestate the input type.
9092         * gdbtypes.c (resolve_dynamic_struct): Reset the
9093         TYPE_TARGET_TYPE field for resolved copies.
9094
9095 2015-04-27  Joel Brobecker  <brobecker@adacore.com>
9096
9097         * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
9098         (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
9099         (template_to_static_fixed_type): Call ada_check_typedef only
9100         when necessary.
9101
9102 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
9103
9104         * cli/cli-dump.c (srec_dump_command): Add internationalization
9105         mark ups.
9106         (ihex_dump_command): Likewise.
9107         (tekhex_dump_command): Likewise.
9108         (binary_dump_command): Likewise.
9109         (binary_append_command): Likewise.
9110
9111 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
9112
9113         * cli/cli-dump.c (verilog_cmdlist): New variable.
9114         (dump_verilog_memory): New function.
9115         (dump_verilog_value): New function.
9116         (verilog_dump_command): New function.
9117         (_initialize_cli_dump): Add new commands to support verilog dump
9118         format.
9119         * NEWS: Add entry for "dump verilog".
9120
9121 2015-04-24  Pierre-Marie de Rodat  <derodat@adacore.com>
9122
9123         * gdbtypes.c (print_gnat_stuff): Do not recurse on the
9124         descriptive type when there is none.
9125
9126 2015-04-23  Patrick Palka  <patrick@parcs.ath.cx>
9127
9128         * tui/tui-win.c (tui_async_resize_screen): Call
9129         rl_resize_terminal().
9130
9131 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
9132
9133         * windows-nat.c (handle_output_debug_string): Don't change
9134         current_event.dwThreadId.
9135         (get_windows_debug_event): Use thread_id, rather than relying on
9136         current_event.dwThreadId being changed.
9137
9138 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
9139
9140         * windows-nat.c (windows_continue): Report an error if
9141         ContinueDebugEvent() fails.
9142
9143 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
9144
9145         * windows-nat.c (windows_resume): Fix misspelling in debug output.
9146
9147 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
9148
9149         * windows-nat.c (get_windows_debug_event): Replace retval with
9150         thread_id throughout.  Update stale comment.
9151
9152 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
9153
9154         * windows-nat.c (get_windows_debug_event): Don't use ternary
9155         conditional operator.
9156
9157 2015-04-21  Pierre Muller  <muller@sourceware.org>
9158
9159         PR pascal/17815
9160         p-exp.y (yylex): Reorganize code to return the matched pattern
9161         for a field of this.
9162
9163 2015-04-21  Gary Benson <gbenson@redhat.com>
9164
9165         * common/fileio.h (fileio_to_host_openflags): New declaration.
9166         * common/fileio.c (fcntl.h): New include.
9167         (fileio_to_host_openflags): New function, factored out from...
9168         * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
9169         Single use updated.
9170
9171 2015-04-21  Kevin Buettner  <kevinb@redhat.com>
9172
9173         * rl78-tdep.c (RL78_SP_ADDR): Define.
9174         (opc_reg_to_gdb_regnum): New static function.
9175         (rl78_analyze_prologue): Recognize instructions forming slightly
9176         more interesting prologues.
9177
9178 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
9179
9180         Revert:
9181         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9182         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9183         TYPE_CODE_REF types so that they are not considered as dynamic
9184         depending on the referenced type.
9185         (resolve_dynamic_type_internal): Likewise.
9186
9187 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
9188
9189         Revert:
9190         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9191         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9192         "top_level" parameter.
9193         (resolve_dynamic_type_internal): Remove the unused "top_level"
9194         parameter.  Update call to is_dynamic_type_internal.
9195         (is_dynamic_type): Update call to is_dynamic_type_internal.
9196         (resolve_dynamic_range): Update call to
9197         resolve_dynamic_type_internal.
9198         (resolve_dynamic_union): Likewise.
9199         (resolve_dynamic_struct): Likewise.
9200         (resolve_dynamic_type): Likewise.
9201
9202 2015-04-19  Gabriel Krisman Bertazi  <gabriel@krisman.be>
9203
9204         * breakpoint.c (update_dprintf_command_list): Remove duplicated
9205         xmalloc.
9206
9207 2015-04-20  Thomas Schwinge  <thomas@codesourcery.com>
9208
9209         * reply_mig_hack.awk: Robustify parsing.
9210
9211         * reply_mig_hack.awk: Don't bother to declare an intermediate
9212         function pointer variable.
9213
9214 2015-04-17  Doug Evans  <dje@google.com>
9215
9216         * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
9217         to "exec_displacement" to avoid confusion with inner use of the name.
9218
9219 2015-04-17  Pedro Alves  <palves@redhat.com>
9220
9221         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
9222         if HW point of TYPE isn't supported.
9223
9224 2015-04-17  Yao Qi  <yao.qi@linaro.org>
9225             Pedro Alves  <palves@redhat.com>
9226
9227         * target.h (target_can_use_hardware_watchpoint): Update comments.
9228         Remove trailing ";".
9229
9230 2015-04-17  Gary Benson <gbenson@redhat.com>
9231
9232         * remote.c (remote_add_inferior): New argument try_open_exec.
9233         If nonzero, attempt to open the inferior's executable file as
9234         the main executable if no main executable is open already.
9235         All callers updated.
9236         * NEWS: Mention that GDB now supports automatic location and
9237         retrieval of executable + files from remote targets.
9238
9239 2015-04-17  Gary Benson <gbenson@redhat.com>
9240
9241         * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
9242         * remote.c (PACKET_qXfer_exec_file): Likewise.
9243         (remote_protocol_features): Register the
9244         "qXfer:exec-file:read" feature.
9245         (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
9246         (remote_pid_to_exec_file): New function.
9247         (init_remote_ops): Initialize to_pid_to_exec_file.
9248         (_initialize_remote): Register new "set/show remote
9249         pid-to-exec-file-packet" command.
9250         * NEWS: Announce new qXfer:exec-file:read packet.
9251
9252 2015-04-17  Gary Benson <gbenson@redhat.com>
9253
9254         * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
9255         New declaration.
9256         * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
9257         New function, factored out from...
9258         * linux-nat.c (linux_child_pid_to_exec_file): ...here.
9259
9260 2015-04-17  Gary Benson <gbenson@redhat.com>
9261
9262         * exec.c (solist.h): New include.
9263         (exec_file_locate_attach): Prefix absolute executable
9264         paths with gdb_sysroot if set.
9265         * NEWS: Mention that executable paths may be prepended
9266         with sysroot.
9267
9268 2015-04-17  Gary Benson <gbenson@redhat.com>
9269
9270         * solist.h (exec_file_find): New declaration.
9271         * solib.c (solib_find_1): New function, factored out from...
9272         (solib_find): ...here.
9273         (exec_file_find): New function.
9274
9275 2015-04-17  Gary Benson <gbenson@redhat.com>
9276
9277         * gdbcore.h (exec_file_locate_attach): New declaration.
9278         * exec.c (exec_file_locate_attach): New function, factored
9279         out from...
9280         * infcmd.c (attach_command_post_wait): ...here.
9281
9282 2015-04-17  Mike Frysinger  <vapier@gentoo.org>
9283
9284         * MAINTAINERS: Add myself for Blackfin/write-after-approval.
9285
9286 2015-04-16  Yao Qi  <yao.qi@linaro.org>
9287
9288         * infrun.c (maybe_software_singlestep): Declare.
9289         (displaced_step_fixup): Call maybe_software_singlestep.
9290
9291 2015-04-15  Doug Evans  <dje@google.com>
9292
9293         * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
9294
9295 2015-04-15  Doug Evans  <dje@google.com>
9296
9297         * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
9298
9299 2015-04-15  Simon Marchi  <simon.marchi@ericsson.com>
9300
9301         * python/lib/gdb/command/unwinders.py: Add parentheses.
9302
9303 2015-04-15  Yao Qi  <yao.qi@linaro.org>
9304
9305         * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
9306
9307 2015-04-15  Yao Qi  <yao.qi@linaro.org>
9308
9309         * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
9310
9311 2015-04-15  Yao Qi  <yao.qi@linaro.org>
9312
9313         * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
9314         dsc->insn_size instead of 4.
9315
9316 2015-04-14  Gary Benson <gbenson@redhat.com>
9317
9318         * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
9319         * minidebug.c (lzma_stat): Likewise.
9320         * solib-spu.c (spu_bfd_iovec_stat): Likewise.
9321         * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
9322
9323 2015-04-13  Stan Shebs  <stanshebs@google.com>
9324
9325         * MAINTAINERS: Update my email address.
9326
9327 2015-04-13  John Baldwin  <jhb@FreeBSD.org>
9328
9329         * amd64-tdep.c (amd64_target_description): New function.
9330         * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
9331         * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
9332         (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9333         x86 extended save area.
9334         (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9335         * amd64bsd-nat.h: Export amd64bsd_xsave_len.
9336         * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
9337         (_initialize_amd64fbsd_nat): Set "to_read_description" to
9338         "amd64fbsd_read_description".
9339         * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
9340         (amd64fbsd_supply_xstateregset): New function.
9341         (amd64fbsd_collect_xstateregset): New function.
9342         Add "amd64fbsd_xstateregset".
9343         (amd64fbsd_iterate_over_regset_sections): New function.
9344         (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
9345         "I386_FBSD_XSAVE_XCR0_OFFSET".
9346         Add "iterate_over_regset_sections" gdbarch method.
9347         Add "core_read_description" gdbarch method.
9348         * i386-tdep.c (i386_target_description): New function.
9349         * i386-tdep.h: Export i386_target_description and tdesc_i386.
9350         * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
9351         (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9352         x86 extended save area.
9353         (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9354         * i386bsd-nat.h: Export i386bsd_xsave_len.
9355         * i386fbsd-nat.c (i386fbsd_read_description): New function.
9356         (_initialize_i386fbsd_nat): Set "to_read_description" to
9357         "i386fbsd_read_description".
9358         * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
9359         (i386fbsd_core_read_description): New function.
9360         (i386fbsd_supply_xstateregset): New function.
9361         (i386fbsd_collect_xstateregset): New function.
9362         Add "i386fbsd_xstateregset".
9363         (i386fbsd_iterate_over_regset_sections): New function.
9364         (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
9365         "I386_FBSD_XSAVE_XCR0_OFFSET".
9366         Add "iterate_over_regset_sections" gdbarch method.
9367         Add "core_read_description" gdbarch method.
9368         * i386fbsd-tdep.h: New file.
9369
9370 2015-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
9371
9372         * NEWS (Changes since GDB 7.9): Add removed -xdb.
9373         * breakpoint.c (command_line_is_silent): Remove xdb_commands
9374         conditional.
9375         (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
9376         and lb.
9377         * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
9378         va.
9379         * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
9380         conditional.
9381         * defs.h (xdb_commands): Remove declaration.
9382         * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
9383         * guile/scm-cmd.c (command_classes): Remove xdb from comment.
9384         * infcmd.c (run_no_args_command, go_command): Remove.
9385         (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
9386         * infrun.c (xdb_handle_command): Remove.
9387         (_initialize_infrun): Remove xdb_commands for lz and z.
9388         * main.c (xdb_commands): Remove variable.
9389         (captured_main): Remove "xdb" from long_options.
9390         (print_gdb_help): Remove --xdb from help.
9391         * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
9392         * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
9393         * stack.c (backtrace_full_command, args_plus_locals_info)
9394         (current_frame_command): Remove.
9395         (_initialize_stack): Remove xdb_commands for t, T and l.
9396         * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
9397         * thread.c (_initialize_thread): Remove xdb_commands condition.
9398         * tui/tui-layout.c (tui_toggle_layout_command)
9399         (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
9400         (_initialize_tui_layout): Remove xdb_commands for td and ts.
9401         * tui/tui-regs.c (tui_scroll_regs_forward_command)
9402         (tui_scroll_regs_backward_command): Remove.
9403         (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
9404         * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
9405         (_initialize_tui_win): Remove xdb_commands for U and w.
9406         * utils.c (pagination_on_command, pagination_off_command): Remove.
9407         (initialize_utils): Remove xdb_commands for am and sm.
9408
9409 2015-04-10  Pedro Alves  <palves@redhat.com>
9410
9411         * infrun.c (displaced_step_fixup): Switch to the event ptid
9412         earlier.  If the thread stopped for a watchpoint and the
9413         target/arch has non-continuable watchpoints, cancel the displaced
9414         step.
9415         (resume): Don't start a displaced step if in-line step-over info
9416         is valid.
9417
9418 2015-04-10  Pedro Alves  <palves@redhat.com>
9419
9420         * infrun.c (displaced_step_in_progress): New function.
9421         (do_target_resume): Advise target to report all signals if
9422         displaced stepping.
9423
9424 2015-04-10  Pedro Alves  <palves@redhat.com>
9425
9426         PR gdb/18216
9427         * infrun.c (process_event_stop_test): Don't assume a step-resume
9428         is set if tp->stepped_breakpoint is true.
9429
9430 2015-04-10  Yao Qi  <yao.qi@linaro.org>
9431
9432         * arm-tdep.c (install_alu_reg): Update comment.
9433         (thumb_copy_alu_reg): Remove local variable rn.  Update
9434         debugging message.  Use r2 instead of r1 in the modified
9435         instruction.
9436
9437 2015-04-10  Pedro Alves  <palves@redhat.com>
9438
9439         PR gdb/13858
9440         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
9441         linux_displaced_step_location as gdbarch_displaced_step_location
9442         hook.
9443         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
9444         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9445         * linux-tdep.c (linux_displaced_step_location): New function,
9446         based on ppc_linux_displaced_step_location.
9447         * linux-tdep.h (linux_displaced_step_location): New declaration.
9448         * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
9449         (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
9450         Delete.
9451         (ppc_linux_init_abi): Install linux_displaced_step_location as
9452         gdbarch_displaced_step_location hook, even without Cell/B.E..
9453         (_initialize_ppc_linux_tdep): Don't install
9454         ppc_linux_inferior_created as inferior_created observer.
9455         * s390-linux-tdep.c (s390_gdbarch_init): Install
9456         linux_displaced_step_location as gdbarch_displaced_step_location
9457         hook.
9458
9459 2015-04-09  Gary Benson <gbenson@redhat.com>
9460
9461         * common/common-remote-fileio.h: Rename to...
9462         * common/fileio.h: ...this.  Update all references.
9463         (remote_fileio_to_fio_error): Rename to...
9464         (host_to_fileio_error): ...this.
9465         (remote_fileio_to_be): Rename to...
9466         (host_to_bigendian): ...this.  Update all callers.
9467         (remote_fileio_to_fio_uint): Rename to...
9468         (host_to_fileio_uint): ...this.  Update all callers.
9469         (remote_fileio_to_fio_time): Rename to...
9470         (host_to_fileio_time): ...this.  Update all callers.
9471         (remote_fileio_to_fio_stat): Rename to...
9472         (host_to_fileio_stat): ...this.
9473         Update all references.
9474         * common/common-remote-fileio.c: Rename to...
9475         * common/fileio.c: ...this.  Update all references.
9476         (remote_fileio_to_fio_error): Rename to...
9477         (host_to_fileio_error): ...this.  Update all callers.
9478         (remote_fileio_mode_to_target): Rename to...
9479         (fileio_mode_pack): ...this.  Update all callers.
9480         (remote_fileio_to_fio_mode): Rename to...
9481         (host_to_fileio_mode): ...this.  Update all callers.
9482         (remote_fileio_to_fio_ulong): Rename to...
9483         (host_to_fileio_ulong): ...this.  Update all callers.
9484         (remote_fileio_to_fio_stat): Rename to...
9485         (host_to_fileio_stat): ...this.  Update all callers.
9486
9487 2015-04-09  Andy Wingo  <wingo@igalia.com>
9488
9489         * guile/scm-frame.c (gdbscm_frame_read_register): New function.
9490         (frame_functions): Bind gdbscm_frame_read_register to
9491         frame-read-register.
9492         * guile/lib/gdb.scm (frame-read-register): Export.
9493
9494 2015-04-09  Gary Benson <gbenson@redhat.com>
9495
9496         * common/common-remote-fileio.h (remote_fileio_to_fio_error):
9497         New declaration.
9498         * common/common-remote-fileio.c (remote_fileio_to_fio_error):
9499         New function, factored out the named functions below.
9500         * inf-child.c (gdb/fileio.h): Remove include.
9501         (common-remote-fileio.h): New include.
9502         (inf_child_errno_to_fileio_error): Remove function.  Update
9503         all callers to use remote_fileio_to_fio_error.
9504         * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
9505
9506 2015-04-09  Andy Wingo  <wingo@igalia.com>
9507
9508         * MAINTAINERS (Write After Approval): Add Andy Wingo.
9509
9510 2015-04-09  H.J. Lu  <hongjiu.lu@intel.com>
9511
9512         * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
9513         Replace $zlibdir with $ZLIBDIR in LDFLAGS.
9514         * configure: Regenerated.
9515
9516 2015-04-09  Pedro Alves  <palves@redhat.com>
9517
9518         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
9519         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
9520         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
9521         * gnulib/import/Makefile.am: Update.
9522         * gnulib/import/Makefile.in: Update.
9523         * gnulib/import/m4/gnulib-cache.m4: Update.
9524         * gnulib/import/m4/gnulib-comp.m4: Update.
9525         * gnulib/import/m4/strtok_r.m4: New file.
9526         * gnulib/import/strtok_r.c: New file.
9527
9528 2015-04-09  Pedro Alves  <palves@redhat.com>
9529
9530         * gnulib/update-gnulib.sh (aclocal version check): Filter out
9531         "called too early to check prototype".
9532
9533 2015-04-08  Sergio Durigan Junior  <sergiodj@redhat.com>
9534
9535         PR python/16699
9536         * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
9537         use a caching mechanism.  Adjust comments and code to reflect
9538         that.  Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
9539         (cmdpy_completer_handle_brkchars): Adjust call to
9540         cmdpy_completer_helper.  Call Py_XDECREF for 'resultobj'.
9541         (cmdpy_completer): Likewise.
9542
9543 2015-04-08  Yao Qi  <yao.qi@linaro.org>
9544
9545         * spu-tdep.c (spu_gdbarch_init): Don't call
9546         set_gdbarch_cannot_step_breakpoint.
9547
9548 2015-04-07  Sergio Durigan Junior  <sergiodj@redhat.com>
9549
9550         * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
9551
9552 2015-04-07  Pedro Alves  <palves@redhat.com>
9553
9554         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
9555         (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
9556         (delete_exited_threads): New declaration.
9557         * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
9558         * linux-nat.c (linux_nat_update_thread_list): New function.
9559         (linux_nat_add_target): Install it.
9560         * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
9561         * thread.c (prune_threads): Use ALL_THREADS_SAFE.
9562         (delete_exited_threads): New function.
9563
9564 2015-04-07  Pedro Alves  <pedro@codesourcery.com>
9565
9566         * infrun.c (resume) <displaced stepping debug output>: Get the
9567         leader thread's regcache, not resume_ptid's.
9568
9569 2015-04-06  Doug Evans  <xdje42@gmail.com>
9570
9571         * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
9572         VAR_DOMAIN.
9573         (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
9574         Include symbol domain in debugging output.
9575
9576 2015-04-06  Pedro Alves  <palves@redhat.com>
9577             Bernd Edlinger  <bernd.edlinger@hotmail.de>
9578
9579         * configure.ac: Remove the mingw32-specific stub-termcap.o
9580         fallback, and instead fallback to the stub termcap on all hosts.
9581         * configure: Regenerate.
9582         * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
9583         symbols.
9584
9585 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9586
9587         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9588         "top_level" parameter.
9589         (resolve_dynamic_type_internal): Remove the unused "top_level"
9590         parameter.  Update call to is_dynamic_type_internal.
9591         (is_dynamic_type): Update call to is_dynamic_type_internal.
9592         (resolve_dynamic_range): Update call to
9593         resolve_dynamic_type_internal.
9594         (resolve_dynamic_union): Likewise.
9595         (resolve_dynamic_struct): Likewise.
9596         (resolve_dynamic_type): Likewise.
9597
9598 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9599
9600         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9601         TYPE_CODE_REF types so that they are not considered as dynamic
9602         depending on the referenced type.
9603         (resolve_dynamic_type_internal): Likewise.
9604
9605 2015-04-02  H.J. Lu  <hongjiu.lu@intel.com>
9606
9607         * Makefile.in (top_srcdir): New.
9608         * configure: Regenerated.
9609
9610 2015-04-02  Gary Benson <gbenson@redhat.com>
9611
9612         * NEWS: Announce the new default sysroot of "target:".
9613
9614 2015-04-02  Gary Benson <gbenson@redhat.com>
9615
9616         * main.c (captured_main): Set gdb_sysroot to "target:"
9617         if not otherwise set.
9618
9619 2015-04-02  Gary Benson <gbenson@redhat.com>
9620
9621         * exec.c (exec_file_attach): Support "target:" filenames.
9622
9623 2015-04-02  Gary Benson <gbenson@redhat.com>
9624
9625         * solib.c (solib_find): Strip "target:" prefix from sysroot
9626         if accessing local files.
9627
9628 2015-04-02  Gary Benson <gbenson@redhat.com>
9629
9630         * symfile.c (symfile_bfd_open): Reorder to remove duplicated
9631         checks and error messages.
9632
9633 2015-04-02  Gary Benson <gbenson@redhat.com>
9634
9635         * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
9636         (remote_filename_p): Remove declaration.
9637         (remote_bfd_open): Likewise.
9638         * remote.c (remote_bfd_iovec_open): Remove function.
9639         (remote_bfd_iovec_close): Likewise.
9640         (remote_bfd_iovec_pread): Likewise.
9641         (remote_bfd_iovec_stat): Likewise.
9642         (remote_filename_p): Likewise.
9643         (remote_bfd_open): Likewise.
9644         * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
9645         * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
9646         (gdb_bfd_open_maybe_remote): Remove function.
9647         (symfile_bfd_open):  Replace remote filename check with
9648         target filename check.
9649         (reread_symbols): Use gdb_bfd_open.
9650         * build-id.c (gdbcore.h): New include.
9651         (build_id_to_debug_bfd): Use gdb_bfd_open.
9652         * infcmd.c (attach_command_post_wait): Remove remote filename
9653         check.
9654         * solib.c (solib_find): Replace remote-specific handling with
9655         target-specific handling.  Update comments where necessary.
9656         (solib_bfd_open): Replace remote-specific handling with
9657         target-specific handling.
9658         (gdb_sysroot_changed): New function.
9659         (_initialize_solib): Call the above when gdb_sysroot changes.
9660         * windows-tdep.c (gdbcore.h): New include.
9661         (windows_xfer_shared_library): Use gdb_bfd_open.
9662
9663 2015-04-02  Gary Benson <gbenson@redhat.com>
9664
9665         * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
9666         (is_target_filename): New declaration.
9667         (gdb_bfd_has_target_filename): Likewise.
9668         (gdb_bfd_open): Update documentation comment.
9669         * gdb_bfd.c (target.h): New include.
9670         (gdb/fileio.h): Likewise.
9671         (is_target_filename): New function.
9672         (gdb_bfd_has_target_filename): Likewise.
9673         (fileio_errno_to_host): Likewise.
9674         (gdb_bfd_iovec_fileio_open): Likewise.
9675         (gdb_bfd_iovec_fileio_pread): Likewise.
9676         (gdb_bfd_iovec_fileio_close): Likewise.
9677         (gdb_bfd_iovec_fileio_fstat): Likewise.
9678         (gdb_bfd_open): Use target fileio to access paths prefixed
9679         with "target:" where necessary.
9680
9681 2015-04-02  Gary Benson <gbenson@redhat.com>
9682
9683         * target.h (struct target_ops) <to_filesystem_is_local>:
9684         New field.
9685         (target_filesystem_is_local): New macro.
9686         * target-delegates.c: Regenerate.
9687         * remote.c (remote_filesystem_is_local): New function.
9688         (init_remote_ops): Initialize to_filesystem_is_local.
9689
9690 2015-04-02  Gary Benson <gbenson@redhat.com>
9691
9692         * target.h (struct target_ops) <to_fileio_fstat>: New field.
9693         (target_fileio_fstat): New declaration.
9694         * target.c (target_fileio_fstat): New function.
9695         * inf-child.c (inf_child_fileio_fstat): Likewise.
9696         (inf_child_target): Initialize to_fileio_fstat.
9697         * remote.c (init_remote_ops): Likewise.
9698
9699 2015-04-01  Sasha Smundak  <asmundak@google.com>
9700
9701         * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
9702         (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
9703         (py-unwind.o): New recipe.
9704         * NEWS: mention Python frame unwinding.
9705         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
9706         gdb/unwinder.py and gdb/command/unwinder.py
9707         * python/lib/gdb/__init__.py (packages): Add frame_unwinders
9708         list.
9709         (execute_unwinders): New function.
9710         * python/lib/gdb/command/unwinders.py: New file.
9711         * python/lib/gdb/unwinder.py: New file.
9712         * python/py-objfile.c (objfile_object): Add frame_unwinders field.
9713         (objfpy_dealloc): Decrement frame_unwinders reference count.
9714         (objfpy_initialize): Create frame_unwinders list.
9715         (objfpy_get_frame_unwinders): New function.
9716         (objfpy_set_frame_unwinders): Ditto.
9717         (objfile_getset): Add frame_unwinders attribute to Objfile.
9718         * python/py-progspace.c (pspace_object): Add frame_unwinders field.
9719         (pspy_dealloc): Decrement frame_unwinders reference count.
9720         (pspy_initialize): Create frame_unwinders list.
9721         (pspy_get_frame_unwinders): New function.
9722         (pspy_set_frame_unwinders): Ditto.
9723         (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
9724         * python/py-unwind.c: New file.
9725         * python/python-internal.h (pspy_get_name_unwinders): New prototype.
9726         (objpy_get_frame_unwinders): New prototype.
9727         (gdbpy_initialize_unwind): New prototype.
9728         * python/python.c (gdbpy_apply_type_printers): Call
9729         gdbpy_initialize_unwind.
9730
9731 2015-04-01  Pedro Alves  <palves@redhat.com>
9732
9733         * infrun.c (resume): Check currently_stepping after clearing
9734         stepped_breakpoint, not before.
9735
9736 2015-04-01  Pedro Alves  <palves@redhat.com>
9737
9738         * infrun.c (print_target_wait_results): Print all the ptid
9739         elements.
9740
9741 2015-04-01  Pedro Alves  <palves@redhat.com>
9742
9743         * infrun.c (keep_going): Also discard cleanups if inserting
9744         breakpoints fails.
9745
9746 2015-04-01  Pedro Alves  <palves@redhat.com>
9747
9748         * infrun.c (wait_for_inferior): Install the
9749         finish_thread_state_cleanup cleanup across the whole function, not
9750         just around handle_inferior_event.
9751
9752 2015-04-01  Pedro Alves  <palves@redhat.com>
9753
9754         * infrun.c (resume) <step past permanent breakpoint>: Use
9755         do_target_resume.
9756
9757 2015-04-01  Pedro Alves  <palves@redhat.com>
9758
9759         * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9760
9761 2015-04-01  Pierre-Marie de Rodat  <derodat@adacore.com>
9762
9763         * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9764
9765 2015-04-01  Pedro Alves  <palves@redhat.com>
9766
9767         * linux-thread-db.c (record_thread): Readd the thread to gdb's
9768         list if it was marked exited.
9769
9770 2015-04-01  H.J. Lu  <hongjiu.lu@intel.com>
9771
9772         * configure: Regenerated.
9773
9774 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
9775             Jan Kratochvil  <jan.kratochvil@redhat.com>
9776             Oleg Nesterov  <oleg@redhat.com>
9777
9778         PR corefiles/16092
9779         * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9780         New enum identifying the various options of the coredump_filter
9781         file.
9782         (struct smaps_vmflags): New struct.
9783         (use_coredump_filter): New variable.
9784         (decode_vmflags): New function.
9785         (mapping_is_anonymous_p): Likewise.
9786         (dump_mapping_p): Likewise.
9787         (linux_find_memory_regions_full): New variables
9788         'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9789         Removed variable 'modified'.  Read /proc/<PID>/smaps file; improve
9790         parsing of its information.  Implement memory mapping filtering
9791         based on its contents.
9792         (show_use_coredump_filter): New function.
9793         (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9794         * NEWS: Mention the possibility of using the
9795         '/proc/PID/coredump_filter' file when generating a corefile.
9796         Mention new command 'set use-coredump-filter'.
9797
9798 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
9799
9800         * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9801         read_memory_unsigned_integer.
9802
9803 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
9804
9805         * Makefile.in (ZLIB): New.
9806         (ZLIBINC): Likewise.
9807         (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9808         (CLIBS): Add $(ZLIB).
9809         * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9810         Add -lz to LIBS.
9811         * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9812         * top.c (print_gdb_configuration): Remove --with-zlib and
9813         --without-zlib.
9814         * config.in: Regenerated.
9815         * configure: Likewise.
9816
9817 2015-03-31  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9818
9819         * NEWS: Mention info os cpus support.
9820         * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9821         (struct osdata_type): Add cpus entry, reorder the entries in
9822         alphabetical order.
9823
9824 2015-03-31  Matthias Klose  <doko@ubuntu.com>
9825
9826         * compile/compile.c (compile_to_object): Allow triplets with or
9827         without vendor set.
9828
9829 2015-03-30  Doug Evans  <dje@google.com>
9830
9831         PR c++/18141
9832         * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9833         klass in VAR_DOMAIN.
9834
9835 2015-03-30  Gary Benson <gbenson@redhat.com>
9836
9837         * remote.c (remote_mourn_1): Remove function.  Update all callers
9838         to use remote_mourn.
9839         (extended_remote_mourn_1): Remove function.  Update all callers
9840         to use extended_remote_mourn.
9841         (extended_remote_attach_1): Remove function.  Update all callers
9842         to use extended_remote_attach.
9843
9844 2015-03-28  James Bowman  <james.bowman@ftdichip.com>
9845
9846         * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9847         (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9848         (ALLDEPFILES): Add ft32-tdep.c.
9849         * configure.tgt: Add FT32 entry.
9850         * ft32-tdep.c: New file, FT32 target-dependent code.
9851         * ft32-tdep.h: New file, FT32 target-dependent code.
9852
9853 2015-03-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
9854
9855         Revert:
9856         2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9857         Code cleanup.
9858         * printcmd.c (print_command_1): Move expr variable scope.
9859
9860 2015-03-27  Joel Brobecker  <brobecker@adacore.com>
9861
9862         * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9863
9864 2015-03-27  Andrzej Kaczmarek  <andrzej.kaczmarek@tieto.com>
9865
9866         * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9867         sections.
9868
9869 2015-03-26  Joel Brobecker  <brobecker@adacore.com>
9870
9871         * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9872         exception raised while parsing the probe arguments.
9873         Force parsing to be done using the C language parser.
9874         * expression.h (parse_expression_with_language): Declare.
9875         * parse.c (parse_expression_with_language): New function.
9876
9877 2015-03-26  Jon Turney  <jon.turney@dronecode.org.uk>
9878
9879         * MAINTAINERS (Write After Approval): Add "Jon Turney".
9880
9881 2015-03-26  Andy Wingo  <wingo@igalia.com>
9882
9883         PR symtab/18148
9884         * dwarf2read.c (struct partial_die_info): Add has_const_value
9885         member.
9886         (add_partial_symbol): Don't punt on symbols that have const_value
9887         attributes.
9888         (read_partial_die): Detect DW_AT_const_value.
9889
9890 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9891
9892         Code cleanup.
9893         * printcmd.c (print_command_1): Move expr variable scope.
9894
9895 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9896
9897         Code cleanup.
9898         * printcmd.c (validate_format): Make the parameter cmdname const.
9899
9900 2015-03-26  Don Breazeal  <donb@codesourcery.com>
9901
9902         * remote.c (_initialize_remote): Update comment.
9903
9904 2015-03-26  Pedro Alves  <palves@redhat.com>
9905             Jon TURNEY  <jon.turney@dronecode.org.uk>
9906
9907         * coffread.c (coff_symfile_read): When constructing the name of an
9908         import stub symbol from import symbol for amd64, only skip the
9909         char after _imp_ if the target is underscored (like i386) and the
9910         char is indeed the target's leading char.
9911
9912 2015-03-25  Pedro Alves  <palves@redhat.com>
9913
9914         * target.h <to_async>: Replace 'callback' and 'context' parameters
9915         with boolean 'enable' parameter.
9916         (target_async): Replace CALLBACK and CONTEXT parameters with
9917         boolean ENABLE parameter.
9918         * inf-loop.c (inferior_event_handler): Adjust.
9919         * linux-nat.c (linux_nat_attach, linux_nat_resume)
9920         (linux_nat_resume): Adjust.
9921         (async_client_callback, async_client_context): Delete.
9922         (handle_target_event): Call inferior_event_handler directly.
9923         (linux_nat_async): Replace 'callback' and 'context' parameters
9924         with boolean 'enable' parameter.  Adjust.  Remove references to
9925         async_client_callback and async_client_context.
9926         (linux_nat_close): Adjust.
9927         * record-btrace.c (record_btrace_async): Replace 'callback' and
9928         'context' parameters with boolean 'enable' parameter.  Adjust.
9929         (record_btrace_resume): Adjust.
9930         * record-full.c (record_full_async): Replace 'callback' and
9931         'context' parameters with boolean 'enable' parameter.  Adjust.
9932         (record_full_resume, record_full_core_resume): Adjust.
9933         * remote.c (struct remote_state) <async_client_callback,
9934         async_client_context>: Delete fields.
9935         (remote_start_remote, extended_remote_attach_1, remote_resume)
9936         (extended_remote_create_inferior): Adjust.
9937         (remote_async_serial_handler): Call inferior_event_handler
9938         directly.
9939         (remote_async): Replace 'callback' and 'context' parameters with
9940         boolean 'enable' parameter.  Adjust.
9941         * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9942         Adjust.
9943         * target-delegates.c: Regenerate.
9944
9945 2015-03-25  Gary Benson <gbenson@redhat.com>
9946             Pedro Alves  <palves@redhat.com>
9947
9948         * target.c (fileio_ft_t): New typedef, define object vector.
9949         (fileio_fhandles): New static variable.
9950         (is_closed_fileio_fh): New macro.
9951         (lowest_closed_fd): New static variable.
9952         (acquire_fileio_fd): New function.
9953         (release_fileio_fd): Likewise.
9954         (fileio_fd_to_fh): New macro.
9955         (target_fileio_open): Wrap the file descriptor on success.
9956         (target_fileio_pwrite): Updated to use wrapped file descriptor.
9957         (target_fileio_pread): Likewise.
9958         (target_fileio_close): Likewise.
9959
9960 2015-03-24  Pedro Alves  <palves@redhat.com>
9961
9962         * thread.c (thread_apply_all_command): Take exited threads into
9963         account.
9964
9965 2015-03-24  Pedro Alves  <palves@redhat.com>
9966
9967         * infrun.c (resume, proceed): Mention
9968         switch_back_to_stepped_thread, not switch_back_to_stepping.
9969
9970 2015-03-24  Pedro Alves  <palves@redhat.com>
9971
9972         * infrun.c (user_visible_resume_ptid): Rewrite going from
9973         most-locked to unlocked instead of the opposite.  Move comment ...
9974         * infrun.h (user_visible_resume_ptid): ... here.
9975
9976 2015-03-24  Pedro Alves  <palves@redhat.com>
9977
9978         * linux-nat.c (linux_nat_resume): Output debug logs before trying
9979         to resume the event lwp.  Use the lwp's ptid instead of the passed
9980         in (maybe wildcard) ptid.
9981         (stop_wait_callback): Tweak debug log output.
9982         (check_stopped_by_breakpoint): Tweak debug log output.  Also dump
9983         TRAP_TRACE.
9984         (linux_nat_filter_event): In debug output, distinguish a
9985         resume_stop SIGSTOP from a delayed SIGSTOP.  Output debug logs
9986         before trying to resume the lwp.
9987
9988 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
9989
9990         * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9991         pointer indirection.
9992         * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9993         (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9994
9995 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
9996
9997         * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9998         Renames DYN_ATTR_DATA_LOCATION.
9999         (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
10000         DYN_ATTR_DATA_LOCATION.
10001         * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
10002         instead of DYN_ATTR_DATA_LOCATION.
10003
10004 2015-03-24  Pedro Alves  <palves@redhat.com>
10005
10006         * breakpoint.c (until_break_command): Adjust call to proceed.
10007         * gdbthread.h (struct thread_control_state) <stepping_command>:
10008         New field.
10009         * infcall.c (run_inferior_call): Adjust call to proceed.
10010         * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
10011         Adjust calls to proceed.
10012         (set_step_frame): Set the current thread's step_start_function
10013         here.
10014         (step_once): Adjust calls to proceed.
10015         (jump_command, signal_command, until_next_command)
10016         (finish_backward, finish_forward, proceed_after_attach_callback)
10017         (attach_command_post_wait): Adjust calls to proceed.
10018         * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
10019         (do_target_resume): New function, factored out from ...
10020         (resume): ... here.  Remove 'step' parameter.  Instead, check
10021         currently_stepping to determine whether the thread should be
10022         single-stepped.
10023         (proceed): Remove 'step' parameter and don't set the thread's
10024         step_start_function here.  Adjust call to 'resume'.
10025         (handle_inferior_event): Adjust calls to 'resume'.
10026         (switch_back_to_stepped_thread): Use do_target_resume instead of
10027         'resume'.
10028         (keep_going): Adjust calls to 'resume'.
10029         * infrun.h (proceed): Remove 'step' parameter.
10030         (resume): Likewise.
10031         * windows-nat.c (do_initial_windows_stuff): Adjust call to
10032         'resume'.
10033         * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
10034
10035 2015-03-24  Pedro Alves  <palves@redhat.com>
10036
10037         * gdbthread.h (struct thread_control_state) <stepping_command>:
10038         New field.
10039         * infcmd.c (step_once): Pass step=1 to clear_proceed_status.  Set
10040         the thread's stepping_command field.
10041         * infrun.c (resume): Check the thread's stepping_command flag to
10042         determine which threads should be resumed.  Rename 'entry_step'
10043         local to user_step.
10044         (clear_proceed_status_thread): Clear 'stepping_command'.
10045         (schedlock_applies): Change parameter type to struct thread_info
10046         pointer.  Adjust.
10047         (find_thread_needs_step_over): Remove 'step' parameter.  Adjust.
10048         (switch_back_to_stepped_thread): Adjust calls to
10049         'schedlock_applies'.
10050         (_initialize_infrun): Adjust "set scheduler-locking step" help.
10051
10052 2015-03-24  Pedro Alves  <palves@redhat.com>
10053
10054         * infrun.c (step_start_function): Delete and ...
10055         * gdbthread.h (struct thread_control_state) <step_start_function>:
10056         ... now a field here.
10057         * infrun.c (clear_proceed_status_thread): Clear the thread's
10058         step_start_function.
10059         (proceed, process_event_stop_test, print_stop_event): Adjust.
10060
10061 2015-03-24  Pedro Alves  <palves@redhat.com>
10062
10063         * infrun.c (proceed): No longer handle negative step.
10064
10065 2015-03-24  Gary Benson  <gbenson@redhat.com>
10066
10067         * nat/x86-linux.h (x86_linux_new_thread): New declaration.
10068         (x86_linux_prepare_to_resume): Likewise.
10069         * x86-linux-nat.c (x86_linux_new_thread):
10070         Moved to nat/x86-linux.c.
10071         (x86_linux_prepare_to_resume): Likewise.
10072         * nat/x86-linux.c (x86_linux_new_thread): New function.
10073         (x86_linux_prepare_to_resume): Likewise.
10074
10075 2015-03-24  Gary Benson  <gbenson@redhat.com>
10076
10077         * nat/x86-linux-dregs.h: New file.
10078         * nat/x86-linux-dregs.c: Likewise.
10079         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
10080         (x86-linux-dregs.o): New rule.
10081         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
10082         * config/i386/linux64.mh (NATDEPFILES): Likewise.
10083         * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
10084         (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10085         (x86_linux_dr_get): Likewise.
10086         (x86_linux_dr_set): Likewise.
10087         (x86_linux_dr_get_addr): Likewise.
10088         (x86_linux_dr_get_control): Likewise.
10089         (x86_linux_dr_get_status): Likewise.
10090         (update_debug_registers_callback): Likewise.
10091         (x86_linux_dr_set_control): Likewise.
10092         (x86_linux_dr_set_addr): Likewise.
10093         (x86_linux_update_debug_registers): Likewise.
10094
10095 2015-03-24  Gary Benson  <gbenson@redhat.com>
10096
10097         * x86-linux-nat.c (x86_linux_update_debug_registers):
10098         New function, factored out from...
10099         (x86_linux_prepare_to_resume): ...this.
10100
10101 2015-03-24  Gary Benson  <gbenson@redhat.com>
10102
10103         * x86-linux-nat.c (x86_linux_dr_get): Update comments.
10104         (x86_linux_dr_set): Likewise.
10105         (x86_linux_dr_get_addr): Likewise.
10106         (x86_linux_dr_get_control): Likewise.
10107         (x86_linux_dr_get_status): Likewise.
10108         (update_debug_registers_callback): Likewise.
10109         (x86_linux_dr_set_control): Likewise.
10110         (x86_linux_dr_set_addr): Likewise.
10111         (x86_linux_prepare_to_resume): Likewise.
10112         (x86_linux_new_thread): Likewise.
10113
10114 2015-03-24  Gary Benson  <gbenson@redhat.com>
10115
10116         * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
10117         (x86_linux_new_thread): Rename argument.
10118
10119 2015-03-24  Gary Benson  <gbenson@redhat.com>
10120
10121         * nat/x86-linux.h: New file.
10122         * nat/x86-linux.c: Likewise.
10123         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
10124         (x86-linux.o): New rule.
10125         * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
10126         * config/i386/linux64.mh (NATDEPFILES): Likewise.
10127         * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
10128         (lwp_set_arch_private_info): New declaration.
10129         (lwp_arch_private_info): Likewise.
10130         * linux-nat.c (lwp_set_arch_private_info): New function.
10131         (lwp_arch_private_info): Likewise.
10132         * x86-linux-nat.c: Include nat/x86-linux.h.
10133         (arch_lwp_info): Removed structure.
10134         (update_debug_registers_callback):
10135         Use lwp_set_debug_registers_changed.
10136         (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10137         and lwp_set_debug_registers_changed.
10138         (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10139
10140 2015-03-24  Gary Benson  <gbenson@redhat.com>
10141
10142         * nat/linux-nat.h (ptid_of_lwp): New declaration.
10143         (lwp_is_stopped): Likewise.
10144         (lwp_stop_reason): Likewise.
10145         * linux-nat.c (ptid_of_lwp): New function.
10146         (lwp_is_stopped): Likewise.
10147         (lwp_is_stopped_by_watchpoint): Likewise.
10148         * x86-linux-nat.c (update_debug_registers_callback):
10149         Use lwp_is_stopped.
10150         (x86_linux_prepare_to_resume): Use ptid_of_lwp and
10151         lwp_stop_reason.
10152
10153 2015-03-24  Gary Benson  <gbenson@redhat.com>
10154
10155         * linux-nat.h (linux_stop_lwp): Move declaration to...
10156         * nat/linux-nat.h (linux_stop_lwp): New declaration.
10157
10158 2015-03-24  Gary Benson  <gbenson@redhat.com>
10159
10160         * linux-nat.h: Include nat/linux-nat.h.
10161         (iterate_over_lwps): Move declaration to nat/linux-nat.h.
10162         * nat/linux-nat.h (struct lwp_info): New forward declaration.
10163         (iterate_over_lwps_ftype): New typedef.
10164         (iterate_over_lwps): New declaration.
10165         * linux-nat.h (iterate_over_lwps): Update comment.  Use
10166         iterate_over_lwps_ftype.  Update callback return value check.
10167
10168 2015-03-24  Gary Benson  <gbenson@redhat.com>
10169
10170         * x86-nat.h (x86_debug_reg_state): Move declaration to...
10171         * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
10172
10173 2015-03-24  Gary Benson  <gbenson@redhat.com>
10174
10175         * nat/linux-nat.h (current_lwp_ptid): New declaration.
10176         * linux-nat.c (current_lwp_ptid): New function.
10177         * x86-linux-nat.c: Include nat/linux-nat.h.
10178         (x86_linux_dr_get_addr): Use current_lwp_ptid.
10179         (x86_linux_dr_get_control): Likewise.
10180         (x86_linux_dr_get_status): Likewise.
10181         (x86_linux_dr_set_control): Likewise.
10182         (x86_linux_dr_set_addr): Likewise.
10183
10184 2015-03-24  Antoine Tremblay  <antoine.tremblay@ericsson.com>
10185
10186         PR breakpoints/16466
10187         * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
10188
10189 2015-03-23  Joel Brobecker  <brobecker@adacore.com>
10190
10191         * ser-mingw.c (ser_windows_setparity): Fix indentation.
10192         * ser-unix.c (hardwire_setparity): Likewise.
10193
10194 2015-03-23  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
10195
10196         * NEWS: Mention set/show serial parity command.
10197         * monitor.c (monitor_open): Call serial_setparity.
10198         * remote.c (remote_open_1): Likewise.
10199         * ser-base.c (ser_base_serparity): New function.
10200         * ser-base.h (ser_base_setparity): Add  declaration.
10201         * ser-go32.c (dos_ops): Set "setparity" field.
10202         * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
10203         state.Parity.
10204         (ser_windows_setparity): New function.
10205         (hardwire_ops): Add ser_windows_setparity.
10206         (tty_ops): Add NULL for setparity field.
10207         (pipe_ops): Add ser_base_setparity.
10208         (tcp_ops): Likewise.
10209         * ser-pipe.c (pipe_ops): Likewise.
10210         * ser-tcp.c (tcp_ops): Likewise.
10211         * ser-unix.c (hardwire_setparity): Add declaration.
10212         (hardwire_raw): Don't reset PARENB flag.
10213         (hardwire_setparity): New function.
10214         (hardwire_ops): Add hardwire_setparity.
10215         * serial.c (serial_setparity): New function.
10216         (serial_parity): New global.
10217         (parity_none, parity_odd, parity_even, parity_enums, parity):
10218         New static globals.
10219         (set_parity): New function.
10220         (_initialize_serial): Add set/show serial parity commands.
10221         * serial.h (GDBPARITY_NONE): Define.
10222         (GDBPARITY_ODD): Define.
10223         (GDBPARITY_EVEN): Define.
10224         (serial_setparity) Add declaration.
10225         (struct serial_ops): Add setparity field.
10226         * target.h (serial_parity): Add declaration.
10227
10228 2015-03-23  Keith Seitz  <keiths@redhat.com>
10229
10230         * linespec.c (linespec_lexer_lex_keyword): Update comment.
10231
10232 2015-03-23  Keith Seitz  <keiths@redhat.com>
10233
10234         * breakpoint.c (parse_breakpoint_sals): Use
10235         linespec_lexer_lex_keyword to ascertain if the user specified
10236         a NULL location.
10237         * linespec.c [IF_KEYWORD_INDEX]: Define.
10238         (linespec_lexer_lex_keyword): Export.
10239         (struct ls_parser) <keyword_ok>: Remove.
10240         A keyword is only a keyword if not followed by another keyword.
10241         (linespec_lexer_lex_one): Remove keyword_ok handling.
10242         Add comment explaining why the parsing stream is not advanced
10243         when a keyword is seen.
10244         (parse_linespec): Remove parser->keyword_ok.
10245         * linespec.h (linespec_lexer_lex_keyword): Add declaration.
10246
10247 2015-03-23  Keith Seitz  <keiths@redhat.com>
10248
10249         PR gdb/18021
10250         * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
10251         if we find a static method with DW_AT_vtable_elem_location.
10252
10253 2015-03-21  Eli Zaretskii  <eliz@gnu.org>
10254
10255         * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
10256         before the second loop, to avoid undefined behavior.  Reported by
10257         Anton Blanchard <anton@samba.org>.
10258
10259 2015-03-20  Keven Boell  <keven.boell@intel.com>
10260
10261         * gdbtypes.c (resolve_dynamic_type_internal): Adapt
10262         data_location usage to linked list.
10263         (resolve_dynamic_type_internal): Adapt data_location to
10264         linked list.
10265         (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
10266         (copy_type_recursive, copy_type): Add copy of linked list.
10267         * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
10268         (struct dynamic_prop_list): New struct.
10269         * dwarf2read.c (set_die_type): Set data_location data.
10270
10271 2015-03-20  Pedro Alves  <palves@redhat.com>
10272
10273         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
10274         inner block and make it const.
10275         * machoread.c (get_archive_prefix_len): Make "lparen" const.
10276
10277 2015-03-20  Pedro Alves  <palves@redhat.com>
10278
10279         * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
10280         * breakpoint.h (set_breakpoint_condition): Update declaration.
10281
10282 2015-03-20  Pedro Alves  <palves@redhat.com>
10283
10284         * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
10285
10286 2015-03-20  Pedro Alves  <palves@redhat.com>
10287
10288         * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
10289
10290 2015-03-20  Pedro Alves  <palves@redhat.com>
10291
10292         * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
10293
10294 2015-03-20  Pedro Alves  <palves@redhat.com>
10295
10296         * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
10297         (nto_init_solib_absolute_prefix): Likewise.
10298
10299 2015-03-20  Pedro Alves  <palves@redhat.com>
10300
10301         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
10302         * spu-tdep.c (spu_gdbarch_init): Make "name" const.
10303
10304 2015-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
10305
10306         * config/djgpp/README: Remove gdb.hp.
10307
10308 2015-03-20  Yao Qi  <yao.qi@linaro.org>
10309
10310         * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
10311         set_gdbarch_cannot_step_breakpoint.
10312
10313 2015-03-19  Pedro Alves  <palves@redhat.com>
10314
10315         * linux-nat.c (linux_resume_one_lwp): Rename to ...
10316         (linux_resume_one_lwp_throw): ... this.  Don't handle ESRCH here,
10317         instead call perror_with_name.
10318         (check_ptrace_stopped_lwp_gone): New function.
10319         (linux_resume_one_lwp): Reimplement as wrapper around
10320         linux_resume_one_lwp_throw that swallows errors if the LWP is
10321         gone.
10322         (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
10323         swallows errors if the LWP is gone.  Use
10324         linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
10325
10326 2015-03-19  Pedro Alves  <palves@redhat.com>
10327
10328         * linux-nat.c (status_callback): Return early if the LWP has no
10329         status pending.
10330
10331 2015-03-19  Pedro Alves  <palves@redhat.com>
10332
10333         * linux-nat.c (select_event_lwp_callback): Update comment to no
10334         longer mention SIGTRAP.
10335
10336 2015-03-18  Tristan Gingold  <gingold@adacore.com>
10337
10338         * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
10339         redirection code to ...
10340         (amd64_windows_frame_decode_insns): ... Here.  Fix in prologue
10341         checks.  Fix SAVE_NONVOL operations.  Add debug code and comments.
10342
10343 2015-03-18  Gary Benson <gbenson@redhat.com>
10344
10345         (remote_protocol_features): Remove the "vFile:fstat" feature.
10346         (remote_hostio_fstat): Probe for "vFile:fstat" support.
10347
10348 2015-03-11  Yao Qi  <yao.qi@linaro.org>
10349
10350         PR tdep/18107
10351         * aarch64-linux-tdep.c: Include xml-syscall.h
10352         (aarch64_linux_get_syscall_number): New function.
10353         (aarch64_linux_init_abi): Call
10354         set_gdbarch_get_syscall_number.
10355         * syscalls/aarch64-linux.xml: New file.
10356
10357 2015-03-17  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
10358
10359         * ser-base.h (ser_base_setstopbits): Change second argument name
10360         from "rate" to "num".
10361
10362 2015-03-17  Gary Benson <gbenson@redhat.com>
10363             Luke Allardyce <lukeallardyce@gmail.com>
10364
10365         PR gdb/18131
10366         * common/common-remote-fileio.h (sys/stat.h): New include.
10367         (stuct stat): Remove forward declaration.
10368
10369 2015-03-16  John Baldwin  <jhb@FreeBSD.org>
10370
10371         * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
10372         before writing core register notes.
10373
10374 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
10375             Pedro Alves  <palves@redhat.com>
10376
10377         * gdb_curses.h (tgetnum): Mark with EXTERN_C.
10378         * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
10379         (tgoto): Wrap with extern "C".
10380
10381 2015-03-16  Pedro Alves  <palves@redhat.com>
10382             Yuanhui Zhang  <asmwarrior@gmail.com>
10383
10384         * stub-termcap.c (tputs): Change prototype.
10385
10386 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
10387             Pedro Alves  <palves@redhat.com>
10388
10389         * windows-nat.c (struct thread_info_struct): Rename to ...
10390         (struct windows_thread_info_struct): ... this.
10391         (thread_info): Rename to ...
10392         (windows_thread_info): ... this.
10393         All users updated.
10394
10395 2015-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10396             Pedro Alves  <palves@redhat.com>
10397
10398         * NEWS: New Removed targets and native configurations.
10399
10400 2015-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
10401
10402         Remove HPUX.
10403         * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
10404         (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
10405         (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
10406         ia64-hpux-tdep.h, solib-ia64-hpux.h.
10407         (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
10408         ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
10409         * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
10410         hppa-hpux-tdep.c.
10411         * config/ia64/hpux.mh: Remove file.
10412         * config/pa/hpux.mh: Remove file.
10413         * configure: Rebuilt.
10414         * configure.ac (dlgetmodinfo, somread.o): Remove.
10415         * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10416         (ia64-*-hpux*): Remove its float format exception.
10417         * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10418         * hppa-hpux-nat.c: Remove file.
10419         * hppa-hpux-tdep.c: Remove file.
10420         * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
10421         Move them here from hppa-tdep.h
10422         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
10423         (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
10424         * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
10425         Move them to hppa-tdep.c.
10426         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
10427         declarations.
10428         * ia64-hpux-nat.c: Remove file.
10429         * ia64-hpux-tdep.c: Remove file.
10430         * ia64-hpux-tdep.h: Remove file.
10431         * inf-ttrace.c: Remove file.
10432         * inf-ttrace.h: Remove file.
10433         * solib-ia64-hpux.c: Remove file.
10434         * solib-ia64-hpux.h: Remove file.
10435         * solib-pa64.c: Remove file.
10436         * solib-pa64.h: Remove file.
10437         * solib-som.c: Remove file.
10438         * solib-som.h: Remove file.
10439         * somread.c: Remove file.
10440
10441 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
10442
10443         * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
10444         * config.in: Regenerate.
10445         * configure: Regenerate.
10446         * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
10447         define.
10448         (fbsd_find_memory_regions): Use kinfo_getvmmap to
10449         enumerate memory regions if present.
10450
10451 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
10452
10453         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
10454         * i386fbsd-tdep.c: Fix style in various gdb_static_assert
10455         expressions.
10456         (i386fbsd_sigtramp_p): Likewise.
10457
10458 2015-03-12  John Baldwin  <jhb@FreeBSD.org>
10459
10460         * MAINTAINERS (Write After Approval): Add John Baldwin.
10461
10462 2015-03-12  Gary Benson <gbenson@redhat.com>
10463
10464         * solib.c (_initialize_solib): Make "set/show sysroot" use
10465         add_setshow_optional_filename_cmd so it can be restored to
10466         empty after being set.
10467
10468 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
10469
10470         * Makefile.in (SFILES): New source break-catch-syscall.c.
10471         (COMMON_OBS): New object break-catch-syscall.o.
10472         * break-catch-syscall.c: New file.
10473         * breakpoint.c: Remove inclusion of "xml-syscall.h".
10474         (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
10475         (struct syscall_catchpoint): Likewise.
10476         (dtor_catch_syscall): Likewise.
10477         (catch_syscall_inferior_data): Likewise.
10478         (struct catch_syscall_inferior_data): Likewise.
10479         (get_catch_syscall_inferior_data): Likewise.
10480         (catch_syscall_inferior_data_cleanup): Likewise.
10481         (insert_catch_syscall): Likewise.
10482         (remove_catch_syscall): Likewise.
10483         (breakpoint_hit_catch_syscall): Likewise.
10484         (print_it_catch_syscall): Likewise.
10485         (print_one_catch_syscall): Likewise.
10486         (print_mention_catch_syscall): Likewise.
10487         (print_recreate_catch_syscall): Likewise.
10488         (catch_syscall_breakpoint_ops): Likewise.
10489         (syscall_catchpoint_p): Likewise.
10490         (create_syscall_event_catchpoint): Likewise.
10491         (catch_syscall_split_args): Likewise.
10492         (catch_syscall_command_1): Likewise.
10493         (is_syscall_catchpoint_enabled): Likewise.
10494         (catch_syscall_enabled): Likewise.
10495         (catching_syscall_number): Likewise.
10496         (catch_syscall_completer): Likewise.
10497         (clear_syscall_counts): Likewise.
10498         (initialize_breakpoint_ops): Move initialization of syscall
10499         catchpoints to break-catch-syscall.c.
10500         (_initialize_breakpoint): Move code related to syscall catchpoints
10501         to break-catch-syscall.c.
10502
10503 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
10504
10505         * breakpoint.c (breakpoint_find_if): New function.
10506         * breakpoint.h (breakpoint_find_if): New prototype.
10507
10508 2015-03-11  Gary Benson <gbenson@redhat.com>
10509
10510         * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
10511         * remote-fileio.c (remote_fileio_to_host_uint): New function.
10512         (remote_fileio_to_host_ulong): Likewise.
10513         (remote_fileio_to_host_mode): Likewise.
10514         (remote_fileio_to_host_time): Likewise.
10515         (remote_fileio_to_host_stat): Likewise.
10516         * remote.c (PACKET_vFile_fstat): New enum value.
10517         (remote_protocol_features): Register the "vFile:fstat" feature.
10518         (remote_hostio_fstat): New function.
10519         (remote_bfd_iovec_stat): Use the above.
10520         (_initialize_remote): Register new "set/show remote
10521         hostio-fstat-packet" command.
10522         * symfile.c (separate_debug_file_exists): Update comment.
10523         * NEWS: Announce new vFile:fstat packet.
10524
10525 2015-03-11  Gary Benson <gbenson@redhat.com>
10526
10527         * common/common-remote-fileio.h: New file.
10528         * common/common-remote-fileio.c: Likewise.
10529         * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10530         (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
10531         (COMMON_OBS): Add common-remote-fileio.o.
10532         (common-remote-fileio.o): New rule.
10533         * remote-fileio.h (common-remote-fileio.h): New include.
10534         * remote-fileio.c (gdb/fileio.h): Do not include.
10535         (remote_fileio_to_be): Moved to common-remote-fileio.h.
10536         (remote_fileio_to_fio_uint): Likewise.
10537         (remote_fileio_to_fio_time): Likewise.
10538         (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
10539         (remote_fileio_to_fio_mode): Likewise.
10540         (remote_fileio_to_fio_ulong): Likewise.
10541         (remote_fileio_to_fio_stat): Likewise.
10542
10543 2015-03-11  Andy Wingo  <wingo@igalia.com>
10544
10545         * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
10546         we were checking the cached type, not the cached dynamic type.
10547
10548 2015-03-11  Andy Wingo  <wingo@igalia.com>
10549
10550         * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
10551         other strings, as these are on the GC'd heap, and will be
10552         collected along with the smob.
10553
10554 2015-03-11  Andy Wingo  <wingo@igalia.com>
10555
10556         * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
10557         (objfile_functions): Bind gdbscm_objfile_progspace to
10558         objfile-progspace.
10559         * guile/lib/gdb.scm: Add objfile-progspace to exports.
10560
10561 2015-03-11  Andy Wingo  <wingo@igalia.com>
10562
10563         * guile/guile.c (_initialize_guile): Disable automatic
10564         finalization, if Guile offers us that possibility.
10565         * guile/guile.c (call_initialize_gdb_module):
10566         * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
10567         finalizers in appropriate places.
10568         * configure.ac (AC_TRY_LIBGUILE): Add a check for
10569         scm_set_automatic_finalization_enabled.
10570         * configure: Regenerated.
10571
10572 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10573
10574         * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
10575         SAL, if possible.
10576
10577 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10578
10579         * s390-linux-nat.c (struct arch_lwp_info): New.
10580         (s390_fix_watch_points): Rename to...
10581         (s390_prepare_to_resume): ...this.  Skip the PER info update
10582         unless the watch points have changed.
10583         (s390_refresh_per_info, s390_new_thread): New functions.
10584         (s390_insert_watchpoint): Call s390_refresh_per_info instead of
10585         s390_fix_watch_points.
10586         (s390_remove_watchpoint): Likewise.
10587         (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
10588         Register s390_prepare_to_resume.
10589
10590 2015-03-09  Pedro Alves  <palves@redhat.com>
10591
10592         Revert:
10593         2015-03-07  Pedro Alves  <palves@redhat.com>
10594         * common/gdb_socket.h: New file.
10595         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
10596         sys/socket.h.
10597         (net_open): Use union gdb_sockaddr_u.
10598
10599 2015-03-07  Pedro Alves  <palves@redhat.com>
10600
10601         * configure.ac (build_warnings): Move -Wmissing-prototypes
10602         -Wdeclaration-after-statement -Wmissing-parameter-type
10603         -Wold-style-declaration -Wold-style-definition to the C-specific
10604         set.
10605         * configure: Regenerate.
10606
10607 2015-03-07  Pedro Alves  <palves@redhat.com>
10608
10609         * common/gdb_socket.h: New file.
10610         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
10611         sys/socket.h.
10612         (net_open): Use union gdb_sockaddr_u.
10613
10614 2015-03-07  Pedro Alves  <palves@redhat.com>
10615
10616         * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
10617         (exceptions_state_mc_action_iter)
10618         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10619         Don't define.
10620         [__cplusplus] (try_scope_depth): New global.
10621         [__cplusplus] (exception_try_scope_entry)
10622         (exception_try_scope_exit, gdb_exception_sliced_copy)
10623         (exception_rethrow): New functions.
10624         (throw_exception): In C++ mode, throw
10625         gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
10626         gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
10627         (throw_it): In C++ mode, use try_scope_depth.
10628         * common/common-exceptions.h [!__cplusplus]
10629         (exceptions_state_mc_action_iter)
10630         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10631         Don't declare.
10632         [__cplusplus] (exception_try_scope_entry)
10633         (exception_try_scope_exit, exception_rethrow): Declare.
10634         [__cplusplus] (struct exception_try_scope): New struct.
10635         [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
10636         C++ exceptions.
10637         (struct gdb_exception_RETURN_MASK_ALL)
10638         (struct gdb_exception_RETURN_MASK_ERROR)
10639         (struct gdb_exception_RETURN_MASK_QUIT): New types.
10640
10641 2015-03-07  Pedro Alves  <palves@redhat.com>
10642
10643         * main.c (handle_command_errors): Remove volatile qualifier from
10644         parameter.
10645
10646 2015-03-07  Pedro Alves  <palves@redhat.com>
10647
10648         * breakpoint.c (save_breakpoints): Adjust to avoid code between
10649         TRY and CATCH.
10650         * gdbtypes.c (safe_parse_type): Remove empty line.
10651         (types_deeply_equal):
10652         * guile/scm-frame.c (gdbscm_frame_name):
10653         * linux-thread-db.c (find_new_threads_once):
10654         * python/py-breakpoint.c (bppy_get_commands):
10655         * record-btrace.c (record_btrace_insert_breakpoint)
10656         (record_btrace_remove_breakpoint, record_btrace_start_replaying)
10657         (record_btrace_start_replaying): Adjust to avoid code between TRY
10658         and CATCH.
10659
10660 2015-03-07  Pedro Alves  <palves@redhat.com>
10661
10662         * common/common-exceptions.c (struct catcher) <exception>: No
10663         longer a pointer to volatile exception.  Now an exception value.
10664         <mask>: Delete field.
10665         (exceptions_state_mc_init): Remove all parameters.  Adjust.
10666         (exceptions_state_mc): No longer pop the catcher here.
10667         (exceptions_state_mc_catch): New function.
10668         (throw_exception): Adjust.
10669         * common/common-exceptions.h (exceptions_state_mc_init): Remove
10670         all parameters.
10671         (exceptions_state_mc_catch): Declare.
10672         (TRY_CATCH): Rename to ...
10673         (TRY): ... this.  Remove EXCEPTION and MASK parameters.
10674         (CATCH, END_CATCH): New.
10675         All callers adjusted.
10676
10677 2015-03-07  Tom Tromey  <tromey@redhat.com>
10678
10679         * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
10680
10681 2015-03-07  Pedro Alves  <palves@redhat.com>
10682
10683         * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10684         (amd64_epilogue_frame_cache): Normal exception handling code.
10685         * break-catch-throw.c (check_status_exception_catchpoint)
10686         (re_set_exception_catchpoint): Ditto.
10687         * cli/cli-interp.c (safe_execute_command):
10688         * cli/cli-script.c (script_from_file): Ditto.
10689         * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
10690         Ditto.
10691         * compile/compile-object-run.c (compile_object_run): Ditto.
10692         * cp-abi.c (baseclass_offset): Ditto.
10693         * cp-valprint.c (cp_print_value): Ditto.
10694         * exceptions.c (catch_exceptions_with_msg):
10695         * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
10696         * frame.c (get_frame_address_in_block_if_available): Ditto.
10697         * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10698         (i386_sigtramp_frame_cache): Ditto.
10699         * infcmd.c (post_create_inferior): Ditto.
10700         * linespec.c (parse_linespec, find_linespec_symbols):
10701         * p-valprint.c (pascal_object_print_value): Ditto.
10702         * parse.c (parse_expression_for_completion): Ditto.
10703         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
10704         * remote.c (remote_get_noisy_reply): Ditto.
10705         * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
10706         * solib-svr4.c (solib_svr4_r_map): Ditto.
10707
10708 2015-03-06  Gary Benson  <gbenson@redhat.com>
10709
10710         * common/common-utils.h (startswith): New inline function.
10711         All places where this logic was used updated to use the above.
10712
10713 2015-03-05  Pedro Alves  <palves@redhat.com>
10714
10715         PR gdb/18002
10716         * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
10717         after reading the breakpoint's shadow memory.
10718
10719 2015-03-05  Mark Kettenis  <kettenis@gnu.org>
10720
10721         * hppabsd-nat.c: Remove file.
10722         * hppaobsd-nat.c: New file.
10723         * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c.  Add
10724         hppaobsd-nat.c.
10725         * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
10726         hppaobsd-nat.o.
10727
10728 2015-03-04  Pedro Alves  <palves@redhat.com>
10729
10730         * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
10731         (target_decr_pc_after_break): Delete declaration.
10732         * target.c (default_target_decr_pc_after_break)
10733         (target_decr_pc_after_break): Delete.
10734         * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
10735         gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
10736         * linux-thread-db.c (check_event): Likewise.
10737         * infrun.c (adjust_pc_after_break): Likewise.
10738         * darwin-nat.c (cancel_breakpoint): Likewise.
10739         * aix-thread.c (aix_thread_wait): Likewise.
10740         * target-delegates.c: Regenerate.
10741
10742 2015-03-04  Pedro Alves  <palves@redhat.com>
10743
10744         * linux-nat.c (save_sigtrap): Check for breakpoints before
10745         checking watchpoints.
10746         (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10747         breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10748         (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10749         a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10750         (linux_nat_stopped_by_sw_breakpoint)
10751         (linux_nat_supports_stopped_by_sw_breakpoint)
10752         (linux_nat_stopped_by_hw_breakpoint)
10753         (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10754         (linux_nat_wait_1): Don't re-increment the PC if relying on
10755         SIGTRAP's siginfo->si_code.
10756         (linux_nat_add_target): Install new target methods.
10757         * linux-thread-db.c (check_event): Don't account for breakpoint PC
10758         offset if the target already adjusted the PC.
10759         * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10760         (GDB_ARCH_TRAP_BRKPT): New.
10761         (TRAP_HWBKPT): Define if not already defined.
10762
10763 2015-03-04  Pedro Alves  <palves@redhat.com>
10764
10765         * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10766         * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10767         Delete field.
10768         <stop_reason>: New field.
10769         (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10770         (packet_set_cmd_state): New function.
10771         (remote_protocol_features): Register the "swbreak" and "hwbreak"
10772         features.
10773         (remote_query_supported): If not disabled with the corresponding
10774         "set remote foo-packet" command, report support for the swbreak
10775         and hwbreak features.
10776         (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10777         field.
10778         <stop_reason>: New field.
10779         (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10780         (remote_wait_as): Adjust.
10781         (remote_stopped_by_sw_breakpoint)
10782         (remote_supports_stopped_by_sw_breakpoint)
10783         (remote_stopped_by_hw_breakpoint)
10784         (remote_supports_stopped_by_hw_breakpoint): New functions.
10785         (remote_stopped_by_watchpoint): New function.
10786         (init_remote_ops): Install them.
10787         (_initialize_remote): Register new "set/show remote
10788         swbreak-feature-packet" and "set/show remote
10789         swbreak-feature-packet" commands.
10790
10791 2015-03-04  Pedro Alves  <palves@redhat.com>
10792
10793         * btrace.h: Include target/waitstatus.h.
10794         (struct btrace_thread_info) <stop_reason>: New field.
10795         * record-btrace.c (record_btrace_step_thread): Use
10796         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10797         (record_btrace_decr_pc_after_break): Delete.
10798         (record_btrace_stopped_by_sw_breakpoint)
10799         (record_btrace_supports_stopped_by_sw_breakpoint)
10800         (record_btrace_stopped_by_hw_breakpoint)
10801         (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10802         (init_record_btrace_ops): Install them.
10803         * record-full.c (record_full_hw_watchpoint): Delete and replace
10804         with ...
10805         (record_full_stop_reason): ... this throughout.
10806         (record_full_exec_insn): Adjust.
10807         (record_full_wait_1): Adjust.  No longer re-increment the PC.
10808         (record_full_wait_1): Adjust.  Use
10809         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10810         (record_full_stopped_by_watchpoint): Adjust.
10811         (record_full_stopped_by_sw_breakpoint)
10812         (record_full_supports_stopped_by_sw_breakpoint)
10813         (record_full_supports_stopped_by_sw_breakpoint)
10814         (record_full_stopped_by_hw_breakpoint)
10815         (record_full_supports_stopped_by_hw_breakpoint): New functions.
10816         (init_record_full_ops, init_record_full_core_ops): Install them.
10817         * record.c (record_check_stopped_by_breakpoint): New function.
10818         * record.h: Include target/waitstatus.h.
10819         (record_check_stopped_by_breakpoint): New declaration.
10820
10821 2015-03-04  Pedro Alves  <palves@redhat.com>
10822
10823         enum lwp_stop_reason -> enum target_stop_reason
10824         * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10825         (linux_nat_stopped_by_watchpoint, status_callback)
10826         (linux_nat_wait_1): Adjust.
10827         * linux-nat.h (enum lwp_stop_reason): Delete.
10828         (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10829         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10830         * target/waitstatus.h (enum target_stop_reason): New.
10831
10832 2015-03-04  Pedro Alves  <palves@redhat.com>
10833
10834         * breakpoint.c (need_moribund_for_location_type): New function.
10835         (bpstat_stop_status): Don't skipping checking moribund locations
10836         of breakpoint types which the target tell caused a stop.
10837         (program_breakpoint_here_p): New function, factored out from ...
10838         (bp_loc_is_permanent): ... this.
10839         (update_global_location_list): Don't create a moribund location if
10840         the target supports reporting stops of the type of the removed
10841         breakpoint.
10842         * breakpoint.h (program_breakpoint_here_p): New declaration.
10843         * infrun.c (adjust_pc_after_break): Return early if the target has
10844         already adjusted the PC.  Add comments.
10845         (handle_signal_stop): If nothing explains a signal, and the target
10846         tells us the stop was caused by a software breakpoint, check if
10847         there's a breakpoint instruction in the memory.  If so, adjust the
10848         PC before presenting the stop to the user.  Otherwise, ignore the
10849         trap.  If nothing explains a signal, and the target tells us the
10850         stop was caused by a hardware breakpoint, ignore the trap.
10851         * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10852         to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10853         to_supports_stopped_by_hw_breakpoint>: New fields.
10854         (target_stopped_by_sw_breakpoint)
10855         (target_supports_stopped_by_sw_breakpoint)
10856         (target_stopped_by_hw_breakpoint)
10857         (target_supports_stopped_by_hw_breakpoint): Define.
10858         * target-delegates.c: Regenerate.
10859
10860 2015-03-04  Pedro Alves  <palves@redhat.com>
10861
10862         * infrun.c (follow_fork_inferior): Use the whole of the
10863         inferior_ptid and pending_follow.related_pid ptids instead of
10864         building ptids from the process components.  Adjust verbose output
10865         to use target_pid_to_str.
10866         * linux-nat.c (linux_child_follow_fork): Use the whole of the
10867         inferior_ptid and pending_follow.related_pid ptids instead of
10868         building ptids from the process components.
10869
10870 2015-03-04  Mark Kettenis  <kettenis@gnu.org>
10871
10872         * inf-ptrace.c [PT_GET_PROCESS_STATE]
10873         (inf_ptrace_insert_fork_catchpoint): New function.
10874         (inf_ptrace_remove_fork_catchpoint): New function.
10875         (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10876
10877 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10878
10879         * s390-linux-tdep.c (s390_register_name): Return empty string
10880         instead of NULL for registers that shouldn't be visible.
10881
10882 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10883
10884         * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10885         XML file for 64-bit targets.
10886
10887 2015-03-03  Simon Marchi  <simon.marchi@ericsson.com>
10888
10889         * target.h (find_default_create_inferior): Remove declaration.
10890         (find_default_attach): Likewise.
10891
10892 2015-03-03  Pedro Alves  <palves@redhat.com>
10893
10894         * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10895         Use ptid_get_pid to get the overall process id when resuming all
10896         threads.
10897
10898 2015-03-03  Pedro Alves  <palves@redhat.com>
10899
10900         * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10901         the lwp field of ptid.  Pass the full ptid to get_thread_regcache.
10902         * inf-ptrace.c (get_ptrace_pid): New function.
10903         (inf_ptrace_resume): Use it.
10904         * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10905         to the lower layer.
10906
10907 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10908
10909         * nat/linux-btrace.c: Include sys/utsname.h.
10910         (linux_determine_kernel_ptr_bits): New.
10911         (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10912         * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10913         ptr_bits.
10914
10915 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10916
10917         * btrace.c (ftrace_update_function): Treat return as tailcall for
10918         "_dl_runtime_resolve".
10919
10920 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10921
10922         * btrace.h (btrace_function) <lbegin, lend>: Remove.
10923         * btrace.c (ftrace_debug): Do not print the line range.
10924         (ftrace_skip_file, ftrace_update_lines): Remove.
10925         (ftrace_new_function): Remove lbegin and lend initialization.
10926         (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10927         * record-btrace.c (btrace_compute_src_line_range): New.
10928         (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10929
10930 2015-03-02  Pedro Alves  <palves@redhat.com>
10931
10932         * infrun.c (follow_exec): Delete all threads of the process except
10933         the event thread.  Extended comments.
10934
10935 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
10936
10937         * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10938
10939 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
10940
10941         * utils.h: Remove <stdbool.h> #include.
10942         (producer_is_gcc): Change return type to "int".
10943         * utils.c (producer_is_gcc): Change return type to int.
10944         Return 1 instead of true, and 0 instead of false.
10945         Adjust function documentation accordingly.
10946
10947 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10948
10949         * s390-linux-nat.c (have_regset_vxrs): New static variable.
10950         (s390_linux_fetch_inferior_registers): Handle vector registers, if
10951         present.
10952         (s390_linux_store_inferior_registers): Likewise.
10953         (s390_get_hwcap): Remove function.  Embed its logic...
10954         (s390_read_description): ...here.  Yield a target description with
10955         vector registers if applicable.
10956         * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10957         "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10958         "features/s390x-tevx-linux64.c".
10959         (struct gdbarch_tdep) <v0_full_regnum>: New field.
10960         (s390_dwarf_regmap): Add vector registers.  Remove bogus entries
10961         for "GNU/Linux-specific registers".
10962         (s390_dwarf_reg_r0l): New enum value.
10963         (s390_dwarf_reg_to_regnum): Support vector registers.
10964         (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10965         of GPR lower halves.
10966         (regnum_is_vxr_full): New function.
10967         (s390_register_name): New function.
10968         (s390_pseudo_register_name): Handle v0-v15, which are composed of
10969         f0-f15 and v0l-v15l.
10970         (s390_pseudo_register_type): Likewise.
10971         (s390_pseudo_register_read): Likewise.
10972         (s390_pseudo_register_write): Likewise.
10973         (s390_value_from_register): Account for the fact that values are
10974         placed left-justified in vector registers.
10975         (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10976         the vector reggroup and omit them from the general reggroup.
10977         (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10978         (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10979         (s390_iterate_over_regset_sections): Add iterations for the two
10980         new vector regsets.
10981         (s390_core_read_description): Yield a target description with
10982         vector registers if applicable.
10983         (s390_gdbarch_init): Handle target descriptions with vector
10984         registers.  Add "register_name" gdbarch method.
10985         (_initialize_s390_tdep): Call new tdesc initialization functions.
10986         * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10987         (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10988         (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10989         (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10990         (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10991         (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10992         (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10993         (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10994         (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10995         (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10996         (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10997         (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10998         (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10999         (S390_NUM_REGS): Adjust value.
11000         (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
11001         (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11002         (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
11003         * NEWS: Announce S/390 vector register support.
11004
11005 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11006
11007         * features/s390-tevx-linux64.xml: New file.
11008         * features/s390-vx-linux64.xml: New file.
11009         * features/s390-vx.xml: New file.
11010         * features/s390x-tevx-linux64.xml: New file.
11011         * features/s390x-vx-linux64.xml: New file.
11012         * features/Makefile (WHICH): Add s390-vx-linux64,
11013         s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
11014         (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
11015         (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
11016         macros.
11017         * features/s390-tevx-linux64.c: New generated file.
11018         * features/s390-vx-linux64.c: Likewise.
11019         * features/s390x-tevx-linux64.c: Likewise.
11020         * features/s390x-vx-linux64.c: Likewise.
11021         * regformats/s390-tevx-linux64.dat: Likewise.
11022         * regformats/s390-vx-linux64.dat: Likewise.
11023         * regformats/s390x-tevx-linux64.dat: Likewise.
11024         * regformats/s390x-vx-linux64.dat: Likewise.
11025
11026 2015-02-28  Doug Evans  <xdje42@gmail.com>
11027
11028         * symtab.h (struct symtab) <next>: Fix comment.
11029
11030 2015-02-27  Simon Marchi  <simon.marchi@ericsson.com>
11031
11032         * python/python.c (python_GdbModuleDef): Rename GdbMethods to
11033         python_GdbMethods.
11034
11035 2015-02-27  Pedro Alves  <palves@redhat.com>
11036
11037         * dtrace-probe.c (dtrace_probe_ops): Make extern.
11038
11039 2015-02-27  Pedro Alves  <palves@redhat.com>
11040
11041         * common/common-exceptions.h (exception_none): Declare.
11042         * common/common-exceptions.c (exception_none): Moved from
11043         exceptions.c.
11044         (exceptions_state_mc_init): Use exception_none.
11045         * exceptions.c (exception_none): Move to
11046         common/common-exceptions.c.
11047         * exceptions.h (exception_none): Move to
11048         common/common-exceptions.h.
11049
11050 2015-02-27  Pedro Alves  <palves@redhat.com>
11051
11052         * main.c (catch_command_errors, catch_command_errors_const):
11053         Remove 'mask' argument.  Adjust.
11054         (captured_main): Adjust callers.
11055
11056 2015-02-27  Pedro Alves  <palves@redhat.com>
11057
11058         * python/python-internal.h: Include "extension-priv.h".
11059
11060 2015-02-27  Pedro Alves  <palves@redhat.com>
11061
11062         * breakpoint.h (enum print_stop_action): Move further up in the
11063         file.
11064
11065 2015-02-27  Pedro Alves  <palves@redhat.com>
11066
11067         * gdbarch.sh: Include regcache.h.
11068         * gdbarch.h: Regenerate.
11069
11070 2015-02-27  Pedro Alves  <palves@redhat.com>
11071
11072         * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
11073         Remove duplicate const.
11074         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
11075         duplicate const.
11076
11077 2015-02-27  Pedro Alves  <palves@redhat.com>
11078
11079         * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
11080         * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
11081         * features/feature_to_c.sh: Tag the generated xml_builtin array
11082         with extern const in C++ mode.
11083
11084 2015-02-27  Tom Tromey  <tromey@redhat.com>
11085
11086         * minidebug.c (struct lzma_stream): Rename to ...
11087         (struct gdb_lzma_stream): ... this.
11088         (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
11089
11090 2015-02-27  Pedro Alves  <palves@redhat.com>
11091
11092         * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
11093         function.
11094         (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
11095         (mi_cmd_stack_list_variables): Use it.
11096
11097 2015-02-27  Pedro Alves  <palves@redhat.com>
11098
11099         * x86-linux-nat.c (u_debugreg_offset): New function.
11100         (x86_linux_dr_get, x86_linux_dr_set): Use it.
11101
11102 2015-02-27  Pedro Alves  <palves@redhat.com>
11103
11104         * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
11105         declaration.
11106         Include break-common.h.
11107
11108 2015-02-27  Tom Tromey  <tromey@redhat.com>
11109             Pedro Alves <palves@redhat.com>
11110
11111         * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
11112         local used to iterate over enums.
11113         * completer.c (signal_completer): Likewise.
11114         * i386-tdep.c (i386_stap_parse_special_token): Likewise.
11115         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
11116         * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
11117         * tui/tui-layout.c (next_layout, prev_layout): Likewise.
11118         * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
11119         (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
11120         * tui-wingeneral.c (tui_refresh_all):  Likewise.
11121
11122 2015-02-27  Pedro Alves  <palves@redhat.com>
11123
11124         * target.h: Include "infrun.h".
11125
11126 2015-02-27  Pedro Alves  <palves@redhat.com>
11127
11128         * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11129
11130 2015-02-27  Pedro Alves  <palves@redhat.com>
11131
11132         * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
11133         (IPA_SYM): Use it.
11134         * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
11135
11136 2015-02-27  Pedro Alves  <palves@redhat.com>
11137
11138         * cli-out.c (_rl_erase_entire_line): Move declaration out of
11139         cli_mld_erase_entire_line, and make it extern "C".
11140         * common/common-defs.h (EXTERN_C): New.
11141         * completer.c (_rl_completion_prefix_display_length)
11142         (_rl_print_completions_horizontally, QSFUNC): Move declarations
11143         out of gdb_display_match_list_1.
11144         (_rl_qsort_string_compare): Move declaration out of
11145         gdb_display_match_list_1, and make it extern "C".
11146         * defs.h (re_comp): Use EXTERN_C.
11147         * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
11148         and make it extern "C".
11149         (monstartup): Move declaration out of maintenance_set_profile_cmd,
11150         and make it extern "C".
11151         (main): Move declaration out of maintenance_set_profile_cmd.
11152         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
11153         EXTERN_C.
11154
11155 2015-02-27  Pedro Alves  <palves@redhat.com>
11156
11157         * python/python.c (GdbMethods): Rename to ...
11158         (python_GdbMethods): ... this and make extern.
11159         (GdbModuleDef): Rename to ...
11160         (python_GdbModuleDef): ... this and make extern.
11161
11162 2015-02-27  Pedro Alves  <palves@redhat.com>
11163
11164         * record-btrace.c (set_record_btrace_cmdlist)
11165         (show_record_btrace_cmdlist): Remove redefinitions.
11166
11167 2015-02-27  Tom Tromey  <tromey@redhat.com>
11168             Pedro Alves  <palves@redhat.com>
11169
11170         * dwarf2-frame.c (enum cfa_how_kind, struct
11171         dwarf2_frame_state_reg_info): Move out of struct
11172         dwarf2_frame_state.
11173         * dwarf2read.c (struct tu_stats): Move out of struct
11174         dwarf2_per_objfile.
11175         (struct file_entry): Move out of struct line_header.
11176         (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
11177         typedef_field_list): Move out of struct field_info.
11178         * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
11179         Move out of struct dynamic_prop.
11180         (union type_owner, union field_location, struct field, struct
11181         range_bounds, union type_specific): Move out of struct main_type.
11182         (struct fn_fieldlist, struct fn_field, struct typedef_field)
11183         (VOFFSET_STATIC): Move out of struct cplus_struct_type.
11184         (struct call_site_target, union call_site_parameter_u, struct
11185         call_site_parameter): Move out of struct call_site.
11186         * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
11187         m32c_prologue.
11188         (enum srcdest_kind): Move out of struct srcdest.
11189         * main.c (enum cmdarg_kind): Move out of struct cmdarg.
11190         * prologue-value.h (enum prologue_value_kind): Move out of struct
11191         prologue_value.
11192         * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
11193         gdbarch_tdep.
11194         * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
11195         out of struct field_info.
11196         * symfile.h (struct other_sections): Move out of struct
11197         section_addr_info.
11198         * symtab.c (struct symbol_cache_slot): Move out struct
11199         block_symbol_cache.
11200         * target-descriptions.c (enum tdesc_type_kind): Move out of
11201         typedef struct tdesc_type.
11202         * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
11203         struct tui_line_or_address.
11204         * value.c (enum internalvar_kind, union internalvar_data): Move
11205         out of struct internalvar.
11206         * xtensa-tdep.h (struct ctype_cache): Move out of struct
11207         gdbarch_tdep.
11208
11209 2015-02-27  Tom Tromey  <tromey@redhat.com>
11210             Pedro Alves  <palves@redhat.com>
11211
11212         Rename symbols whose names are reserved C++ keywords throughout.
11213
11214 2015-02-27  Pedro Alves  <palves@redhat.com>
11215
11216         * Makefile.in (COMPILER): New, get it from autoconf.
11217         (COMPILE.pre, CC_LD): Use COMPILER.
11218         (CXX): Get from autoconf instead.
11219         (CXX_FOR_TARGET): Default to g++ instead of gcc.
11220         * acinclude.m4: Include build-with-cxx.m4.
11221         * build-with-cxx.m4: New file.
11222         * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11223         Disable -Werror by default if building in C++ mode.
11224         (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11225         -Wno-narrowing in C++ mode.  Only enable -Wpointer-sign in C mode.
11226         Run supported-warning-flags tests with the C++ compiler.
11227         Save/restore CXXFLAGS too.
11228         * configure: Regenerate.
11229
11230 2015-02-27  Pedro Alves  <palves@redhat.com>
11231
11232         * libiberty.m4: New file.
11233         * acinclude.m4: Include libiberty.m4.
11234         * configure.ac: Call libiberty_INIT.
11235         * config.in, configure: Regenerate.
11236
11237 2015-02-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11238
11239         * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
11240         31-bit targets, but 64-bit targets as well.
11241         (s390_gnu_triplet_regexp): New function.
11242         (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
11243         64-bit targets as well.  Set the gnu_triplet_regexp gdbarch
11244         method.
11245
11246 2015-02-27  Jon TURNEY  <jon.turney@dronecode.org.uk>  (tiny patch)
11247
11248         * windows-nat.c (CONTEXT_DEBUGGER): Remove.
11249         (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS.  Incorporate flags
11250         from CONTEXT_DEBUGGER.
11251
11252 2015-02-26  Doug Evans  <dje@google.com>
11253
11254         * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
11255         CHECK_TYPEDEF.
11256         (set_type_vptr_fieldno): Ditto.
11257         (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
11258         * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
11259
11260 2015-02-26  Pedro Alves  <palves@redhat.com>
11261
11262         * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
11263         * complaints.c (vcomplaint): Pass argument FMT directly to
11264         printf-like functions instead of complaint->fmt.
11265         * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
11266         * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
11267         * compile/compile-loc2c.c (pushf, unary, binary): Add
11268         ATTRIBUTE_PRINTF.
11269         (do_compile_dwarf_expr_to_c): Pass string literal as format string
11270         to pushf.
11271         (BINARY): Pass string literal as format string to 'binary'.
11272         * compile/compile-object-load.c (link_callbacks_einfo): Add
11273         ATTRIBUTE_PRINTF.
11274         * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
11275
11276 2015-02-26  Pedro Alves  <palves@redhat.com>
11277
11278         * windows-termcap.c: Rename to ...
11279         * stub-termcap.c: ... this.  Adjust header line.
11280         * Makefile.in (SFILES): Refer to stub-termcap.c instead of
11281         windows-termcap.c.
11282         * configure: Regenerate.
11283         * configure.ac: Refer to stub-termcap.o instead of
11284         windows-termcap.o.
11285         * gdb_curses.h: Mention stub-termcap.c instead of
11286         windows-termcap.c.
11287
11288 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
11289
11290         * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
11291         (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
11292
11293 2015-02-26  Antoine Tremblay  <antoine.tremblay@ericsson.com>
11294
11295         * gdb/infcmd.c (print_return_value): use type_to_string to print type.
11296
11297 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
11298
11299         * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
11300         bfd_canonicalize_symtab.
11301
11302 2015-02-25  John Baldwin  <jhb@FreeBSD.org>
11303
11304         * amd64fbsd-nat.c: Include sys/user.h.
11305         (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11306         instead of KERN_PS_STRINGS to locate the signal trampoline.
11307         * i386fbsd-nat.c: Include sys/user.h.
11308         (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11309         instead of KERN_PS_STRINGS to locate the signal trampoline.
11310         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
11311         (amd64fbsd_sigtramp_p): New.
11312         (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
11313         longer set default values.
11314         (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
11315         * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
11316         (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
11317         (i386fbsd_freebsd4_sigtramp_start)
11318         (i386fbsd_freebsd4_sigtramp_middle)
11319         (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
11320         (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
11321         (i386fbsd_sigtramp_p): New.
11322         (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
11323         longer set default values.
11324         (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
11325
11326 2015-02-25  John Baldwin  <jhb@freebsd.org>
11327
11328         * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
11329         get_frame_register instead of frame_unwind_register_unsigned.
11330
11331 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
11332
11333         PR build/18033
11334         * compile/compile-c-support.c (c_compute_program): Change // comment.
11335         * compile/compile-object-load.c (setup_sections): Change // comment.
11336
11337 2015-02-26  Joel Brobecker  <brobecker@adacore.com>
11338
11339         PR build/18033:
11340         * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
11341
11342 2015-02-23  Pedro Alves  <palves@redhat.com>
11343
11344         * remote.c (skip_to_semicolon): New function.
11345         (remote_parse_stop_reply) <T stop reply>: Use it.  Don't
11346         special case the stop reasons that look like hex numbers
11347         upfront.  Instead handle real register numbers after matching
11348         all the known stop reasons.
11349
11350 2015-02-21  Doug Evans  <dje@google.com>
11351
11352         PR c++/17976, symtab/17821
11353         * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
11354         is_in_anonymous.  All callers updated.
11355         (find_symbol_in_baseclass): Ditto.
11356         (cp_lookup_nested_symbol_1): Ditto.  Don't search all static blocks
11357         for symbols in an anonymous namespace.
11358         * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
11359         DW_AT_name directly.
11360         (dwarf2_name): Convert missing namespace name to
11361         CP_ANONYMOUS_NAMESPACE_STR.
11362
11363 2015-02-20  Pedro Alves  <palves@redhat.com>
11364
11365         * linux-nat.c (linux_handle_extended_wait): Call
11366         thread_db_notice_clone whenever a new clone LWP is detected.
11367         (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
11368         functions.
11369         * linux-nat.h (thread_db_attach_lwp): Delete declaration.
11370         (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
11371         (linux_unstop_all_lwps): Declare.
11372         * linux-thread-db.c (struct thread_get_info_inout): Delete.
11373         (thread_get_info_callback): Delete.
11374         (thread_from_lwp): Use td_thr_get_info and record_thread.
11375         (thread_db_attach_lwp): Delete.
11376         (thread_db_notice_clone): New function.
11377         (try_thread_db_load_1): If /proc is mounted and shows the
11378         process'es task list, walk over all LWPs and call thread_from_lwp
11379         instead of relying on td_ta_thr_iter.
11380         (attach_thread): Don't call check_thread_signals here.  Split the
11381         tail part of the function (which adds the thread to the core GDB
11382         thread list) to ...
11383         (record_thread): ... this function.  Call check_thread_signals
11384         here.
11385         (thread_db_wait): Don't call thread_db_find_new_threads_1.  Always
11386         call thread_from_lwp.
11387         (thread_db_update_thread_list): Rename to ...
11388         (thread_db_update_thread_list_org): ... this.
11389         (thread_db_update_thread_list): New function.
11390         (thread_db_find_thread_from_tid): Delete.
11391         (thread_db_get_ada_task_ptid): Simplify.
11392         * nat/linux-procfs.c: Include <sys/stat.h>.
11393         (linux_proc_task_list_dir_exists): New function.
11394         * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
11395
11396 2015-02-20  Pedro Alves  <palves@redhat.com>
11397
11398         * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
11399         main LWP.  Handle the case of waitpid returning 0 if we're already
11400         attached to the LWP.  Don't set the LWP's last_resume_kind to
11401         resume_stop if we already knew about the LWP.
11402         (linux_nat_filter_event): Add debug logs.
11403
11404 2015-02-20  Pedro Alves  <palves@redhat.com>
11405
11406         * target.h (forward_target_decr_pc_after_break): Delete
11407         declaration.
11408
11409 2015-02-20  Pedro Alves  <palves@redhat.com>
11410
11411         PR threads/18006
11412         * linux-thread-db.c (thread_get_info_callback): Return early if
11413         the thread's lwp id is -1.
11414
11415 2015-02-20  Joel Brobecker  <brobecker@adacore.com>
11416
11417         GDB 7.9 released.
11418
11419 2015-02-19  Steve Ellcey  <sellcey@imgtec.com>
11420
11421         * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
11422         (dtrace_get_probes) Change type of variable 'dof'.
11423
11424 2015-02-19  Antoine Tremblay  <antoine.tremblay@ericsson.com>
11425
11426         PR breakpoints/16812
11427         * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
11428         * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
11429         * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
11430
11431 2015-02-19  David Taylor  <dtaylor@emc.com>
11432
11433         * common/ax.def (setv): Fix consumed entry in setv DEFOP.
11434
11435 2015-02-18  Patrick Palka  <patrick@parcs.ath.cx>
11436
11437         * tui/tui-io.c (tui_handle_resize_during_io): Remove this
11438         function.
11439         (tui_putc): Don't call tui_handle_resize_during_io.
11440         (tui_getc): Likewise.
11441         (tui_mld_getc): Likewise.
11442         * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
11443         (tui_sigwinch_token): New static variable.
11444         (tui_initialize_win): Adjust documentation.  Set
11445         tui_sigwinch_token.
11446         (tui_async_resize_screen): New asynchronous callback.
11447         (tui_sigwinch_handler): Adjust documentation.  Asynchronously
11448         invoke tui_async_resize_screen.
11449
11450 2015-02-18  Jose E. Marchesi  <jose.marchesi@oracle.com>
11451
11452         * configure: Regenerated.
11453         * configure.ac: Use GDB_AC_TRANSFORM.
11454         * Makefile.in (aclocal_m4_deps): Added transform.m4.
11455         * acinclude.m4: sinclude transform.m4.
11456         * transform.m4: New file.
11457         (GDB_AC_TRANSFORM): New macro.
11458
11459 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11460
11461         * NEWS: Announce the support for DTrace SDT probes.
11462
11463 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11464
11465         * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
11466         (amd64_dtrace_parse_probe_argument): New function.
11467         (amd64_dtrace_probe_is_enabled): Likewise.
11468         (amd64_dtrace_enable_probe): Likewise.
11469         (amd64_dtrace_disable_probe): Likewise.
11470         (amd64_linux_init_abi): Register the
11471         `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
11472         `gdbarch_dtrace_disable_probe' and
11473         `gdbarch_dtrace_probe_is_enabled' hooks.
11474         (amd64_dtrace_disabled_probe_sequence_1): New constant.
11475         (amd64_dtrace_disabled_probe_sequence_2): Likewise.
11476         (amd64_dtrace_enable_probe_sequence): Likewise.
11477         (amd64_dtrace_disable_probe_sequence): Likewise.
11478
11479 2015-01-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11480
11481         * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
11482         the -probe-dtrace new vpossible value for PROBE_MODIFIER.
11483         * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
11484         handle ELF files.
11485         * Makefile.in (SFILES): dtrace-probe.c added.
11486         * configure: Regenerate.
11487         * dtrace-probe.c: New file.
11488         (SHT_SUNW_dof): New constant.
11489         (dtrace_probe_type): New enum.
11490         (dtrace_probe_arg): New struct.
11491         (dtrace_probe_arg_s): New typedef.
11492         (struct dtrace_probe_enabler): New struct.
11493         (dtrace_probe_enabler_s): New typedef.
11494         (dtrace_probe): New struct.
11495         (dtrace_probe_is_linespec): New function.
11496         (dtrace_dof_sect_type): New enum.
11497         (dtrace_dof_dofh_ident): Likewise.
11498         (dtrace_dof_encoding): Likewise.
11499         (DTRACE_DOF_ENCODE_LSB): Likewise.
11500         (DTRACE_DOF_ENCODE_MSB): Likewise.
11501         (dtrace_dof_hdr): New struct.
11502         (dtrace_dof_sect): Likewise.
11503         (dtrace_dof_provider): Likewise.
11504         (dtrace_dof_probe): Likewise.
11505         (DOF_UINT): New macro.
11506         (DTRACE_DOF_PTR): Likewise.
11507         (DTRACE_DOF_SECT): Likewise.
11508         (dtrace_process_dof_probe): New function.
11509         (dtrace_process_dof): Likewise.
11510         (dtrace_build_arg_exprs): Likewise.
11511         (dtrace_get_arg): Likewise.
11512         (dtrace_get_probes): Likewise.
11513         (dtrace_get_probe_argument_count): Likewise.
11514         (dtrace_can_evaluate_probe_arguments): Likewise.
11515         (dtrace_evaluate_probe_argument): Likewise.
11516         (dtrace_compile_to_ax): Likewise.
11517         (dtrace_probe_destroy): Likewise.
11518         (dtrace_gen_info_probes_table_header): Likewise.
11519         (dtrace_gen_info_probes_table_values): Likewise.
11520         (dtrace_probe_is_enabled): Likewise.
11521         (dtrace_probe_ops): New variable.
11522         (info_probes_dtrace_command): New function.
11523         (_initialize_dtrace_probe): Likewise.
11524         (dtrace_type_name): Likewise.
11525
11526 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11527
11528         * gdbarch.sh (dtrace_parse_probe_argument): New.
11529         (dtrace_probe_is_enabled): Likewise.
11530         (dtrace_enable_probe): Likewise.
11531         (dtrace_disable_probe): Likewise.
11532         * gdbarch.c: Regenerate.
11533         * gdbarch.h: Regenerate.
11534
11535 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11536
11537         * stap-probe.c (stap_probe_ops): Add NULLs in the static
11538         stap_probe_ops for `enable_probe' and `disable_probe'.
11539         * probe.c (enable_probes_command): New function.
11540         (disable_probes_command): Likewise.
11541         (_initialize_probe): Define the cli commands `enable probe' and
11542         `disable probe'.
11543         (parse_probe_linespec): New function.
11544         (info_probes_for_ops): Use parse_probe_linespec.
11545         * probe.h (probe_ops): New hooks `enable_probe' and
11546         `disable_probe'.
11547
11548 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11549
11550         * probe.c (compute_probe_arg): Moved from stap-probe.c
11551         (compile_probe_arg): Likewise.
11552         (probe_funcs): Likewise.
11553         * stap-probe.c (compute_probe_arg): Moved to probe.c.
11554         (compile_probe_arg): Likewise.
11555         (probe_funcs): Likewise.
11556
11557 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11558
11559         * probe.c (print_ui_out_not_applicables): New function.
11560         (exists_probe_with_pops): Likewise.
11561         (info_probes_for_ops): Do not include column headers for probe
11562         types for which no probe has been actually found on any object.
11563         Also invoke `print_ui_out_not_applicables' in order to match the
11564         column rows with the header when probes of several types are
11565         listed.
11566         Print the "Type" column.
11567         * probe.h (probe_ops): Added a new probe operation `type_name'.
11568         * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
11569         (stap_type_name): New function.
11570
11571 2015-02-17  Patrick Palka  <patrick@parcs.ath.cx>
11572
11573         * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
11574         (key_is_command_char): Delete.
11575
11576 2015-02-17  Pedro Alves  <palves@redhat.com>
11577
11578         * tui/tui.c (tui_enable): Resize windows before anything
11579         might show a window.
11580
11581 2015-02-17  Max Ostapenko  <m.ostapenko@partner.samsung.com>
11582
11583         PR gdb/17984
11584         * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
11585         (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
11586         call.
11587         * aarch64-tdep.h (tdesc_aarch64): Declare.
11588
11589 2015-02-12  Mark Wielaard  <mjw@redhat.com>
11590
11591         * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
11592
11593 2015-02-13  Doug Evans  <dje@google.com>
11594
11595         * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
11596         anonymous_namespace to is_in_anonymous for consistency with the rest
11597         of the file.
11598         (cp_lookup_bare_symbol): Fix typo in comment.
11599         (cp_search_static_and_baseclasses): Ditto.
11600         (search_symbol_list): Use vertical space in comment better.
11601         (reset_directive_searched): Ditto. Fix typo.
11602         (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
11603
11604 2015-02-13  Yao Qi  <yao.qi@arm.com>
11605
11606         * MAINTAINERS: Update my email address.
11607
11608 2015-02-12  Doug Evans  <dje@google.com>
11609
11610         * symtab.c (completion_list_add_name): Fix memory leak.
11611
11612 2015-02-12  Doug Evans  <dje@google.com>
11613
11614         * completer.c (complete_line): Remove incorrect comment.
11615
11616 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11617
11618         * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
11619         (py_print_frame): Use RETURN_MASK_ERROR.
11620
11621 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11622
11623         * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
11624         function comment.  Wrap all function that can throw in cleanups.
11625         (gdbpy_apply_frame_filter): Wrap all function that can throw in
11626         cleanups.
11627
11628 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11629
11630         * python/py-framefilter.c (py_print_frame): Substitute goto error.
11631         Remove the error label.
11632
11633 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11634
11635         * python/py-framefilter.c (py_print_frame): Put conditional code paths
11636         with goto first, indent the former else codepath left.  Put variable
11637         'elided' to a new inner block.
11638
11639 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11640
11641         * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
11642
11643 2015-02-11  Pedro Alves  <palves@redhat.com>
11644
11645         * xcoffread.c (within_function): Delete.
11646
11647 2015-02-11  Tom Tromey  <tromey@redhat.com>
11648             Pedro Alves <palves@redhat.com>
11649
11650         * breakpoint.c (base_breakpoint_ops): Delete.
11651         * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
11652         * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
11653         * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
11654         * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
11655         * python/py-arch.c (arch_object_type): Make extern.
11656         * python/py-block.c (block_syms_iterator_object_type): Make extern.
11657         * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
11658         * python/py-cmd.c (cmdpy_object_type): Make extern.
11659         * python/py-continueevent.c (continue_event_object_type)
11660         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
11661         parameter.  Update all callers.
11662         * python/py-evtregistry.c (eventregistry_object_type): Make extern.
11663         * python/py-exitedevent.c (exited_event_object_type): Make extern.
11664         * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
11665         * python/py-function.c (fnpy_object_type): Make extern.
11666         * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
11667         * python/py-infevents.c (call_pre_event_object_type)
11668         (inferior_call_post_event_object_type).
11669         (memory_changed_event_object_type): Make extern.
11670         * python/py-infthread.c (thread_object_type): Make extern.
11671         * python/py-lazy-string.c (lazy_string_object_type): Make extern.
11672         * python/py-linetable.c (linetable_entry_object_type)
11673         (linetable_object_type, ltpy_iterator_object_type): Make extern.
11674         * python/py-newobjfileevent.c (new_objfile_event_object_type)
11675         (clear_objfiles_event_object_type): Make extern.
11676         * python/py-objfile.c (objfile_object_type): Make extern.
11677         * python/py-param.c (parmpy_object_type): Make extern.
11678         * python/py-progspace.c (pspace_object_type): Make extern.
11679         * python/py-signalevent.c (signal_event_object_type): Make extern.
11680         * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
11681         * python/py-type.c (type_object_type, field_object_type)
11682         (type_iterator_object_type): Make extern.
11683         * python/python.c (python_extension_script_ops)
11684         (python_extension_ops): Make extern.
11685         * stap-probe.c (stap_probe_ops): Make extern.
11686
11687 2015-02-11  Pedro Alves  <pedro@codesourcery.com>
11688
11689         * infrun.c (adjust_pc_after_break): Don't adjust the PC just
11690         because the event thread is not the current thread.
11691
11692 2015-02-11  Doug Evans  <xdje42@gmail.com>
11693
11694         * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
11695         been initialized yet, return NULL.
11696
11697 2015-02-11  Doug Evans  <dje@google.com>
11698
11699         * symfile.h (new_symfile_objfile): Delete.
11700         * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
11701         All callers updated.
11702
11703 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
11704
11705         * tui/tui-io.c (tui_handle_resize_during_io): Call
11706         tui_update_gdb_sizes() after resizing the screen.
11707         * tui/tui.c (tui_enable): Resize the terminal before
11708         calling tui_update_gdb_sizes().
11709
11710 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
11711
11712         * tui/tui-io.c (tui_getc): Move cursor to the end of the command
11713         line before printing a newline.
11714
11715 2015-02-11  Mark Wielaard  <mjw@redhat.com>
11716
11717         * utils.c (producer_is_gcc): Return true or false.
11718
11719 2015-02-10  Mark Wielaard  <mjw@redhat.com>
11720
11721         * utils.h (producer_is_gcc): Change return type to bool. Add major
11722         argument.
11723         * utils.c (producer_is_gcc): Likewise.
11724         (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
11725         * dwarf2read.c (check_producer): Likewise.
11726
11727 2015-02-10  Pedro Alves  <palves@redhat.com>
11728
11729         * infrun.c (displaced_step_fixup): Switch to the event thread
11730         before calling gdbarch_displaced_step_fixup.
11731
11732 2015-02-10  Antoine Tremblay <antoine.tremblay@ericsson.com>
11733
11734         * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
11735
11736 2015-02-10  Simon Marchi  <simon.marchi@ericsson.com>
11737
11738         * ada-varobj.c (ada_name_of_child): Constify parent.
11739         (ada_path_expr_of_child): Same.
11740         (ada_value_of_child): Same.
11741         (ada_type_of_child): Same.
11742         * c-varobj.c (c_is_path_expr_parent): Same.
11743         (c_describe_child): Same.
11744         (c_name_of_child): Same.
11745         (c_value_of_child): Same.
11746         (c_type_of_child): Same.
11747         (cplus_number_of_children): Same.
11748         (cplus_describe_child): Constify var.
11749         (cplus_name_of_child): Constify parent.
11750         (cplus_value_of_child): Same.
11751         (cplus_type_of_child): Same.
11752         * jv-varobj.c (java_name_of_child): Same.
11753         (java_value_of_child): Same.
11754         (java_type_of_child): Same.
11755         * varobj.c (value_of_child): Same.
11756         (varobj_default_is_path_expr_parent): Constify var, parent and return
11757         value.
11758         (varobj_get_path_expr): Constify var, modify path_expr through
11759         mutable_var.
11760         (install_new_value): Constify parent.
11761         (value_of_child): Constify parent.
11762         * varobj.h (struct varobj): Constify parent.
11763         (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11764         type_of_child.
11765         (varobj_get_path_expr): Constify var.
11766         (varobj_get_path_expr_parent): Constify var and return value.
11767
11768 2015-02-10  Luis Machado  <lgustavo@codesourcery.com>
11769
11770         * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11771         (arm_prologue_this_id): Move PC and SP limit checks to
11772         arm_prologue_unwind_stop_reason.
11773         (arm_prologue_unwind) <stop_reason> : Set to
11774         arm_prologue_unwind_stop_reason.
11775
11776 2015-02-09  Mark Wielaard  <mjw@redhat.com>
11777
11778         * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11779         DW_LANG_Fortran08 as language_fortran.
11780
11781 2015-02-09  Sergio Durigan Junior  <sergiodj@redhat.com>
11782
11783         PR remote/17946
11784         * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11785         of pointer against char.
11786
11787 2015-02-09  Mark Wielaard  <mjw@redhat.com>
11788
11789         * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11790         (c_type_print_modifier): Likewise.
11791         * dwarf2read.c (read_tag_atomic_type): New function.
11792         (read_type_die_1): Handle DW_TAG_atomic_type.
11793         * gdbtypes.c (make_atomic_type): New function.
11794         (recursive_dump_type): Handle TYPE_ATOMIC.
11795         * gdbtypes.h (enum type_flag_values): Renumber.
11796         (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11797         (TYPE_ATOMIC): New macro.
11798         (make_atomic_type): Declare.
11799
11800 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11801
11802         * btrace.c (ftrace_find_call): Skip gaps.
11803         (ftrace_new_function): Initialize level.
11804         (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11805         (ftrace_new_switch): Update
11806         level computation.
11807         (ftrace_new_gap): New.
11808         (ftrace_update_function): Create new function after gap.
11809         (btrace_compute_ftrace_bts): Create gap on error.
11810         (btrace_stitch_bts): Update parameters.  Clear trace if it
11811         becomes empty.
11812         (btrace_stitch_trace): Update parameters.  Update callers.
11813         (btrace_clear): Reset the number of gaps.
11814         (btrace_insn_get): Return NULL if the iterator points to a gap.
11815         (btrace_insn_number): Return zero if the iterator points to a gap.
11816         (btrace_insn_end): Allow gaps at the end.
11817         (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11818         (btrace_find_insn_by_number): Assert that the found iterator does
11819         not point to a gap.
11820         (btrace_call_next, btrace_call_prev): Assert that the last function
11821         is not a gap.
11822         * btrace.h (btrace_bts_error): New.
11823         (btrace_function): Update comment.
11824         (btrace_function) <insn, insn_offset, number>: Update comment.
11825         (btrace_function) <errcode>: New.
11826         (btrace_thread_info) <ngaps>: New.
11827         (btrace_thread_info) <replay>: Update comment.
11828         (btrace_insn_get): Update comment.
11829         * record-btrace.c (btrace_ui_out_decode_error): New.
11830         (record_btrace_info): Print number of gaps.
11831         (btrace_insn_history, btrace_call_history): Call
11832         btrace_ui_out_decode_error for gaps.
11833         (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11834
11835 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11836
11837         * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11838         * nat/linux-btrace.c: (btrace_this_cpu): New.
11839         (cpu_supports_bts): Call btrace_this_cpu.
11840         (intel_supports_bts): Add cpu parameter.
11841
11842 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11843
11844         * btrace.h (btrace_insn_class): New.
11845         (btrace_insn) <size, iclass>: New.
11846         * btrace.c (ftrace_find_call): Update parameters.  Update users.
11847         Use instruction classification.
11848         (ftrace_new_return): Update parameters.  Update users.
11849         (ftrace_update_function): Update parameters.  Update users.  Use
11850         instruction classification.
11851         (ftrace_update_insns): Update parameters.  Update users.
11852         (ftrace_classify_insn): New.
11853         (btrace_compute_ftrace_bts): Fill in new btrace_insn fields.  Add
11854         TRY_CATCH around call to gdb_insn_length.
11855
11856 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11857
11858         * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11859         Update parameters.  Update users.
11860
11861 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11862
11863         * btrace.c (parse_xml_btrace_conf_bts): Add size.
11864         (btrace_conf_bts_attributes): New.
11865         (btrace_conf_children): Add attributes.
11866         * common/btrace-common.h (btrace_config_bts): New.
11867         (btrace_config)<bts>: New.
11868         (btrace_config): Update comment.
11869         * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11870         Use config.
11871         * features/btrace-conf.dtd: Increment version.  Add size
11872         attribute to bts element.
11873         * record-btrace.c (set_record_btrace_bts_cmdlist,
11874         show_record_btrace_bts_cmdlist): New.
11875         (record_btrace_adjust_size, record_btrace_print_bts_conf,
11876         record_btrace_print_conf, cmd_set_record_btrace_bts,
11877         cmd_show_record_btrace_bts): New.
11878         (record_btrace_info): Call record_btrace_print_conf.
11879         (_initialize_record_btrace): Add commands.
11880         * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11881         (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11882         (btrace_sync_conf): Synchronize bts size.
11883         (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11884         * NEWS: Announce new commands and new packets.
11885
11886 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11887
11888         * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11889         * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11890         (x86_linux_btrace_conf): New.
11891         (x86_linux_create_target): Initialize to_btrace_conf.
11892         * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11893         Check format.  Split into this and ...
11894         (linux_enable_bts): ... this.
11895         (linux_btrace_conf): New.
11896         (perf_event_skip_record): Renamed into ...
11897         (perf_event_skip_bts_record): ... this.  Updated users.
11898         (linux_disable_btrace): Split into this and ...
11899         (linux_disable_bts): ... this.
11900         (linux_read_btrace): Check format.
11901         * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11902         (linux_btrace_conf): New.
11903         (btrace_target_info)<ptid>: Moved.
11904         (btrace_target_info)<conf>: New.
11905         (btrace_target_info): Split into this and ...
11906         (btrace_tinfo_bts): ... this.  Updated users.
11907         * btrace.c (btrace_enable): Update parameters.
11908         (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11909         (btrace_conf_children, btrace_conf_attributes)
11910         (btrace_conf_elements): New.
11911         * btrace.h (btrace_enable): Update parameters.
11912         (btrace_conf, parse_xml_btrace_conf): New.
11913         * common/btrace-common.h (btrace_config): New.
11914         * feature/btrace-conf.dtd: New.
11915         * record-btrace.c (record_btrace_conf): New.
11916         (record_btrace_cmdlist): New.
11917         (record_btrace_enable_warn, record_btrace_open): Pass
11918         &record_btrace_conf.
11919         (record_btrace_info): Print recording format.
11920         (cmd_record_btrace_bts_start): New.
11921         (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11922         (_initialize_record_btrace): Add "record btrace bts" subcommand.
11923         Add "record bts" alias command.
11924         * remote.c (remote_state)<btrace_config>: New.
11925         (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11926         (remote_protocol_features): Add qXfer:btrace-conf:read.
11927         (remote_open_1): Call remote_btrace_reset.
11928         (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11929         (btrace_target_info)<conf>: New.
11930         (btrace_sync_conf, btrace_read_config): New.
11931         (remote_enable_btrace): Update parameters.  Call btrace_sync_conf and
11932         btrace_read_conf.
11933         (remote_btrace_conf): New.
11934         (init_remote_ops): Initialize to_btrace_conf.
11935         (_initialize_remote): Add qXfer:btrace-conf packet.
11936         * target.c (target_enable_btrace): Update parameters.
11937         (target_btrace_conf): New.
11938         * target.h (target_enable_btrace): Update parameters.
11939         (target_btrace_conf): New.
11940         (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11941         (target_ops)<to_enable_btrace>: Update parameters and comment.
11942         (target_ops)<to_btrace_conf>: New.
11943         * target-delegates: Regenerate.
11944         * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11945         (target_debug_print_const_struct_btrace_target_info_p): New.
11946         * NEWS: Announce new command and new packet.
11947
11948 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11949
11950         * nat/linux-btrace.h (perf_event_buffer): New.
11951         (btrace_target_info) <buffer, size, data_head>: Replace with ...
11952         <bts>: ... this.
11953         * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11954         (perf_event_buffer_size, perf_event_buffer_begin)
11955         (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11956         Updated users.
11957         (perf_event_new_data): New.
11958
11959 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11960
11961         * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11962         * record-btrace.c (record_btrace_open): Remove call to
11963         target_supports_btrace.
11964         * remote.c (remote_supports_btrace): Update parameters.
11965         * target.c (target_supports_btrace): Update parameters.
11966         * target.h (to_supports_btrace, target_supports_btrace): Update
11967         parameters.
11968         * target-delegates.c: Regenerate.
11969         * target-debug.h (target_debug_print_enum_btrace_format): New.
11970         * nat/linux-btrace.c
11971         (kernel_supports_btrace): Rename into ...
11972         (kernel_supports_bts): ... this.  Update users.  Update warning text.
11973         (intel_supports_btrace): Rename into ...
11974         (intel_supports_bts): ... this.  Update users.
11975         (cpu_supports_btrace): Rename into ...
11976         (cpu_supports_bts): ... this.  Update users.
11977         (linux_supports_btrace): Update parameters.  Split into this and ...
11978         (linux_supports_bts): ... this.
11979         * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11980
11981 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11982
11983         * Makefile.in (SFILES): Add common/btrace-common.c.
11984         (COMMON_OBS): Add common/btrace-common.o.
11985         (btrace-common.o): Add build rules.
11986         * btrace.c (parse_xml_btrace): Update parameters.
11987         (parse_xml_btrace_block): Set format field.
11988         (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11989         (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11990         (btrace_compute_ftrace): Split into this and...
11991         (btrace_compute_ftrace_bts): ...this.
11992         (btrace_stitch_trace): Split into this and...
11993         (btrace_stitch_bts): ...this.
11994         * btrace.h (parse_xml_btrace): Update parameters.
11995         (make_cleanup_btrace_data): New.
11996         * common/btrace-common.c: New.
11997         * common/btrace-common.h: Include common-defs.h.
11998         (btrace_block_s): Update comment.
11999         (btrace_format): New.
12000         (btrace_format_string): New.
12001         (btrace_data_bts): New.
12002         (btrace_data): New.
12003         (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
12004         * remote.c (remote_read_btrace): Update parameters.
12005         * target.c (target_read_btrace): Update parameters.
12006         * target.h (target_read_btrace): Update parameters.
12007         (target_ops)<to_read_btrace>: Update parameters.
12008         * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
12009         * target-delegates.c: Regenerate.
12010         * target-debug (target_debug_print_struct_btrace_data_p): New.
12011         * nat/linux-btrace.c (linux_read_btrace): Split into this and...
12012         (linux_read_bts): ...this.
12013         * nat/linux-btrace.h (linux_read_btrace): Update parameters.
12014
12015 2015-02-06  Doug Evans  <dje@google.com>
12016
12017         * remote-m32r-sdi.c: Include symfile.h.
12018
12019 2015-02-06  Doug Evans  <dje@google.com>
12020
12021         * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
12022         * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
12023         to here.
12024
12025 2015-02-06  Pedro Alves  <palves@redhat.com>
12026
12027         * linux-thread-db.c (find_new_threads_callback): Add debug output.
12028
12029 2015-02-06  Simon Marchi  <simon.marchi@ericsson.com>
12030
12031         PR gdb/15678
12032         * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
12033         (enable_count_command): Check args for NULL value.
12034
12035 2015-02-05  Doug Evans  <xdje42@gmail.com>
12036
12037         * guile/scm-frame.c: Fix spelling errors in a comment.
12038
12039 2015-02-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
12040
12041         * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
12042         * python/py-value.c (valpy_fetch_lazy): Use it.  Remove cast to the
12043         return type.
12044
12045 2015-02-04  Pedro Alves  <palves@redhat.com>
12046
12047         * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
12048         (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
12049         returns true.
12050         (resume_stopped_resumed_lwps): Don't check whether the thread is
12051         marked as executing.
12052         (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
12053
12054 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
12055
12056         * regset.h (struct regset): Add flags field.
12057         (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
12058         * corelow.c (get_core_register_section): Add warning if the size
12059         exceeds the requested size and the regset does not have the
12060         REGSET_VARIABLE_SIZE flag set.
12061         * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
12062         flag.
12063         * armbsd-tdep.c (armbsd_gregset): Likewise.
12064         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
12065         * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
12066         * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
12067         * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
12068
12069 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
12070
12071         * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
12072         For ".reg-xstate", explicitly specify the requested section size
12073         via X86_XSTATE_SIZE instead of just 0 on input and
12074         X86_XSTATE_MAX_SIZE on output.
12075         * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
12076         Likewise.
12077
12078 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
12079
12080         PR corefiles/17808:
12081         * gdbarch.sh (iterate_over_regset_sections_cb): Document this
12082         function type, particularly its SIZE parameter.
12083         * gdbarch.h: Regenerate.
12084         * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
12085         actual against required size using ">=" instead of "==".
12086         (amd64_collect_fpregset): Likewise.
12087         * i386-tdep.c (i386_supply_gregset): Likewise.
12088         (i386_collect_gregset): Likewise.
12089         (i386_supply_fpregset): Likewise.
12090         (i386_collect_fpregset): Likewise.
12091         * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
12092         (mips_fill_gregset_wrapper): Likewise.
12093         (mips_supply_fpregset_wrapper): Likewise.
12094         (mips_fill_fpregset_wrapper): Likewise.
12095         (mips64_supply_gregset_wrapper): Likewise.
12096         (mips64_fill_gregset_wrapper): Likewise.
12097         (mips64_supply_fpregset_wrapper): Likewise.
12098         (mips64_fill_fpregset_wrapper): Likewise.
12099         * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
12100         (am33_supply_fpregset_method): Likewise.
12101         (am33_collect_gregset_method): Likewise.
12102         (am33_collect_fpregset_method): Likewise.
12103
12104 2015-02-04  Doug Evans  <dje@google.com>
12105             Pedro Alves  <palves@redhat.com>
12106             Eli Zaretskii  <eliz@gnu.org>
12107
12108         PR tui/17810
12109         * tui/tui-command.c (tui_refresh_cmd_win): New function.
12110         * tui/tui-command.c (tui_refresh_cmd_win): Declare.
12111         * tui/tui-file.c: #include tui/tui-command.h.
12112         (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
12113         (tui_file_flush): Refresh command window if stream is gdb_stdout.
12114         * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
12115
12116 2015-02-04  Pedro Alves  <palves@redhat.com>
12117
12118         Fix build breakage.
12119         * event-loop.c (gdb_do_one_event): Add default switch case.
12120
12121 2015-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
12122
12123         Filter out inferior gcc option -fpreprocessed.
12124         * compile/compile.c (filter_args): New function.
12125         (get_args): Use it.
12126
12127 2015-02-03  Pedro Alves  <palves@redhat.com>
12128
12129         * event-loop.c: Don't declare nor define a queue type for
12130         gdb_event_p.
12131         (event_queue): Delete.
12132         (create_event, create_file_event, gdb_event_xfree)
12133         (initialize_event_loop, process_event): Delete.
12134         (gdb_do_one_event): Return as soon as one event is handled.
12135         (handle_file_event): Change prototype.  Used the passed in
12136         file_handler pointer and ready_mask instead of looping over all
12137         file handlers.
12138         (gdb_wait_for_event): Update the poll/select timeouts before
12139         blocking.  Run event handlers directly instead of queueing events.
12140         Return as soon as one event is handled.
12141         (struct async_event_handler_data): Delete.
12142         (invoke_async_event_handler): Delete.
12143         (check_async_event_handlers): Change return type to int.  Run
12144         event handlers directly instead of queueing events.  Return as
12145         soon as one event is handled.
12146         (handle_timer_event): Delete.
12147         (update_wait_timeout): New function, factored out from
12148         poll_timers.
12149         (poll_timers): Reimplement.
12150         * event-loop.h (initialize_event_loop): Delete declaration.
12151         * top.c (gdb_init): Don't call initialize_event_loop.
12152
12153 2015-02-03  Pedro Alves  <palves@redhat.com>
12154
12155         * event-loop.c (clear_async_event_handler): New function.
12156         * event-loop.h (clear_async_event_handler): New declaration.
12157         * record-btrace.c (record_btrace_async): New function.
12158         (init_record_btrace_ops): Install record_btrace_async.
12159         * record-full.c (record_full_async): New function.
12160         (record_full_resume): Don't mark the async event source here.
12161         (init_record_full_ops): Install record_full_async.
12162         (record_full_core_resume): Don't mark the async event source here.
12163         (init_record_full_core_ops): Install record_full_async.
12164         * remote.c (remote_async): Mark and clear the async stop reply
12165         queue event-loop token as appropriate.
12166
12167 2015-02-03  Pedro Alves  <palves@redhat.com>
12168
12169         * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
12170         target_is_async_p instead of target_can_async.
12171         (linux_nat_wait): Use target_is_async_p instead of
12172         target_can_async.  Don't enable async here.
12173         * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
12174         target_is_async_p instead of target_can_async.
12175
12176 2015-02-02  Simon Marchi  <simon.marchi@ericsson.com>
12177
12178         * varobj.h (lang_varobj_ops): Mention which return values need
12179         to be freed.
12180
12181 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
12182
12183         * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
12184
12185 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
12186
12187         PR gdb/17856:
12188         * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
12189         results found in the cache.
12190
12191 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
12192
12193         PR gdb/17854:
12194         * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
12195         when allocating a new one.
12196
12197 2015-02-01  Tom Tromey  <tom@tromey.com>
12198
12199         * MAINTAINERS: Remove myself.
12200
12201 2015-01-31  Doug Evans  <xdje42@gmail.com>
12202
12203         * dwarf2read.c (process_structure_scope): Update setting of
12204         TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
12205         * gdbtypes.c (internal_type_vptr_fieldno): New function.
12206         (set_type_vptr_fieldno): New function.
12207         (internal_type_vptr_basetype): New function.
12208         (set_type_vptr_basetype): New function.
12209         (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
12210         TYPE_VPTR_BASETYPE.
12211         (allocate_cplus_struct_type): Initialize vptr_fieldno.
12212         (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
12213         (print_cplus_stuff): ... moved here.
12214         (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
12215         * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
12216         moved to ...
12217         (struct cplus_struct_type): ... here.  All uses updated.
12218         (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
12219         (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
12220         (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
12221         * stabsread.c (read_tilde_fields): Update setting of
12222         TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
12223
12224 2015-01-31  Doug Evans  <xdje42@gmail.com>
12225
12226         * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
12227         to self_p.
12228         (cp_print_class_member): Rename local domain to self_type.
12229         * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
12230         domain_type to self_type.
12231         (set_die_type) <need_gnat_info>: Handle
12232         TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
12233         * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
12234         TYPE_SPECIFIC_SELF_TYPE.
12235         * gdbtypes.c (internal_type_self_type): New function.
12236         (set_type_self_type): New function.
12237         (smash_to_memberptr_type): Rename parameter domain to self_type.
12238         Update setting of TYPE_SELF_TYPE.
12239         (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
12240         (smash_to_method_type): Rename parameter domain to self_type.
12241         Update setting of TYPE_SELF_TYPE.
12242         (check_stub_method): Call smash_to_method_type.
12243         (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
12244         (copy_type_recursive): Ditto.
12245         * gdbtypes.h (enum type_specific_kind): New value
12246         TYPE_SPECIFIC_SELF_TYPE.
12247         (struct main_type) <type_specific>: New member self_type.
12248         (struct cplus_struct_type) <fn_field.type>: Update comment.
12249         (TYPE_SELF_TYPE): Rewrite.
12250         (internal_type_self_type, set_type_self_type): Declare.
12251         * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
12252         self_type.
12253         (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
12254         * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
12255         TYPE_TARGET_TYPE.
12256         * stabsread.c (read_member_functions): Mark methods with
12257         TYPE_CODE_METHOD, not TYPE_CODE_FUNC.  Update setting of
12258         TYPE_SELF_TYPE.
12259
12260 2015-01-31  Doug Evans  <xdje42@gmail.com>
12261
12262         * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
12263         All uses updated.
12264
12265 2015-01-31  Doug Evans  <xdje42@gmail.com>
12266
12267         * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
12268         or unions.  Return zero if union.
12269         (gnuv3_get_vtable): Call check_typedef.  Assert only passed structs.
12270         (gnuv3_rtti_type): Pass already-check_typedef'd value to
12271         gnuv3_get_vtable.
12272         (compute_vtable_size): Assert only passed structs.
12273         (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
12274
12275 2015-01-31  Doug Evans  <xdje42@gmail.com>
12276
12277         * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
12278         kinds.
12279
12280 2015-01-31  Gary Benson <gbenson@redhat.com>
12281             Doug Evans  <dje@google.com>
12282
12283         PR cli/9007
12284         PR cli/11920
12285         PR cli/15548
12286         * cli/cli-cmds.c (complete_command): Notify user if max-completions
12287         reached.
12288         * common/common-exceptions.h (enum errors)
12289         <MAX_COMPLETIONS_REACHED_ERROR>: New value.
12290         * completer.h (get_max_completions_reached_message): New declaration.
12291         (max_completions): Likewise.
12292         (completion_tracker_t): New typedef.
12293         (new_completion_tracker): New declaration.
12294         (make_cleanup_free_completion_tracker): Likewise.
12295         (maybe_add_completion_enum): New enum.
12296         (maybe_add_completion): New declaration.
12297         (throw_max_completions_reached_error): Likewise.
12298         * completer.c (max_completions): New global variable.
12299         (new_completion_tracker): New function.
12300         (free_completion_tracker): Likewise.
12301         (make_cleanup_free_completion_tracker): Likewise.
12302         (maybe_add_completions): Likewise.
12303         (throw_max_completions_reached_error): Likewise.
12304         (complete_line): Remove duplicates and limit result to max_completions
12305         entries.
12306         (get_max_completions_reached_message): New function.
12307         (gdb_display_match_list): Handle max_completions.
12308         (_initialize_completer): New declaration and function.
12309         * symtab.c: Include completer.h.
12310         (completion_tracker): New static variable.
12311         (completion_list_add_name): Call maybe_add_completion.
12312         (default_make_symbol_completion_list_break_on_1): Renamed from
12313         default_make_symbol_completion_list_break_on.  Maintain
12314         completion_tracker across calls to completion_list_add_name.
12315         (default_make_symbol_completion_list_break_on): New function.
12316         * top.c (init_main): Set rl_completion_display_matches_hook.
12317         * tui/tui-io.c: Include completer.h.
12318         (tui_old_rl_display_matches_hook): New static global.
12319         (tui_rl_display_match_list): Notify user if max-completions reached.
12320         (tui_setup_io): Save/restore rl_completion_display_matches_hook.
12321         * NEWS (New Options): Mention set/show max-completions.
12322
12323 2015-01-31  Gary Benson  <gbenson@redhat.com>
12324
12325         * symtab.c (struct add_name_data) <code>: New field.
12326         Updated comments.
12327         (add_symtab_completions): New function.
12328         (symtab_expansion_callback): Likewise.
12329         (default_make_symbol_completion_list_break_on): Set datum.code.
12330         Move minimal symbol scan before calling expand_symtabs_matching.
12331         Scan known primary symtabs for externs and statics before calling
12332         expand_symtabs_matching.  Pass symtab_expansion_callback as
12333         expansion_notify argument to expand_symtabs_matching.  Do not scan
12334         primary symtabs for externs and statics after calling
12335         expand_symtabs_matching.
12336
12337 2015-01-31  Gary Benson  <gbenson@redhat.com>
12338
12339         * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
12340         (struct quick_symbol_functions) <expand_symtabs_matching>:
12341         New argument expansion_notify.  All uses updated.
12342         (expand_symtabs_matching): New argument expansion_notify.
12343         All uses updated.
12344         * symfile-debug.c (debug_qf_expand_symtabs_matching):
12345         Also print expansion notify.
12346         * symtab.c (expand_symtabs_matching_via_partial): Call
12347         expansion_notify whenever a partial symbol table is expanded.
12348         * dwarf2read.c (dw2_expand_symtabs_matching): Call
12349         expansion_notify whenever a symbol table is instantiated.
12350
12351 2015-01-31  Doug Evans  <xdje42@gmail.com>
12352
12353         * cli-out.c: #include completer.h, readline/readline.h.
12354         (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
12355         (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
12356         (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
12357         * cli-out.h (cli_display_match_list): Declare.
12358         * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
12359         (ELLIPSIS_LEN): Ditto.
12360         (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
12361         (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
12362         (gdb_fnprint, gdb_print_filename): Ditto.
12363         (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
12364         (gdb_display_match_list): Ditto.
12365         * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
12366         (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
12367         (mld_beep_ftype, mld_read_key_ftype): Ditto.
12368         (match_list_displayer): New struct.
12369         (gdb_display_match_list): Declare.
12370         * top.c (init_main): Set rl_completion_display_matches_hook.
12371         * tui/tui-io.c: #include completer.h.
12372         (printable_part, PUTX, print_filename, get_y_or_n): Delete.
12373         (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
12374         (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
12375         (tui_mld_getc, tui_mld_read_key): Ditto.
12376         (tui_rl_display_match_list): Rewrite.
12377         (tui_handle_resize_during_io): New arg for_completion.  All callers
12378         updated.
12379
12380 2015-01-31  Doug Evans  <xdje42@gmail.com>
12381
12382         Add symbol lookup cache.
12383         * NEWS: Document new options and commands.
12384         * symtab.c (symbol_cache_key): New static global.
12385         (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
12386         (SYMBOL_LOOKUP_FAILED): New macro.
12387         (symbol_cache_slot_state): New enum.
12388         (block_symbol_cache): New struct.
12389         (symbol_cache): New struct.
12390         (new_symbol_cache_size, symbol_cache_size): New static globals.
12391         (hash_symbol_entry, eq_symbol_entry): New functions.
12392         (symbol_cache_byte_size, resize_symbol_cache): New functions.
12393         (make_symbol_cache, free_symbol_cache): New functions.
12394         (get_symbol_cache, symbol_cache_cleanup): New function.
12395         (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
12396         (symbol_cache_lookup, symbol_cache_clear_slot): New function.
12397         (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
12398         (symbol_cache_flush, symbol_cache_dump): New functions.
12399         (maintenance_print_symbol_cache): New function.
12400         (maintenance_flush_symbol_cache): New function.
12401         (symbol_cache_stats): New function.
12402         (maintenance_print_symbol_cache_statistics): New function.
12403         (symtab_new_objfile_observer): New function.
12404         (symtab_free_objfile_observer): New function.
12405         (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
12406         (_initialize_symtab): Init symbol_cache_key.  New parameter
12407         maint symbol-cache-size.  New maint commands print symbol-cache,
12408         print symbol-cache-statistics, flush-symbol-cache.
12409         Install new_objfile, free_objfile observers.
12410
12411 2015-01-31  Joel Brobecker  <brobecker@adacore.com>
12412
12413         PR symtab/17855
12414         * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
12415         to end.
12416
12417 2015-01-31  Doug Evans  <xdje42@gmail.com>
12418
12419         * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
12420         * auto-load.c: #include ctype.h.
12421         (struct auto_load_pspace_info): Replace member loaded_scripts with
12422         new members loaded_script_files, loaded_script_texts.
12423         (auto_load_pspace_data_cleanup): Update.
12424         (init_loaded_scripts_info): Update.
12425         (get_auto_load_pspace_data_for_loading): Update.
12426         (maybe_add_script_file): Renamed from maybe_add_script.  All callers
12427         updated.
12428         (maybe_add_script_text): New function.
12429         (clear_section_scripts): Update.
12430         (source_script_file, execute_script_contents): New functions.
12431         (source_section_scripts): Add support for
12432         SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
12433         (print_scripts): New function.
12434         (auto_load_info_scripts): Also print inlined scripts.
12435         (maybe_print_unsupported_script_warning): Renamed from
12436         unsupported_script_warning_print.  All callers updated.
12437         (maybe_print_script_not_found_warning): Renamed from
12438         script_not_found_warning_print.  All callers updated.
12439         * extension-priv.h (struct extension_language_script_ops): New member
12440         objfile_script_executor.
12441         * extension.c (ext_lang_objfile_script_executor): New function.
12442         * extension.h (objfile_script_executor_func): New typedef.
12443         (ext_lang_objfile_script_executor): Declare.
12444         * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
12445         * guile/guile.c (guile_extension_script_ops): Update.
12446         * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
12447         * python/python.c (python_extension_script_ops): Update.
12448         (gdbpy_execute_objfile_script): New function.
12449
12450 2015-01-31  Eli Zaretskii  <eliz@gnu.org>
12451
12452         * tui/tui-io.c (tui_expand_tabs): New function.
12453         (tui_puts, tui_redisplay_readline): Expand TABs into the
12454         appropriate number of spaces.
12455         * tui/tui-regs.c: Include tui-io.h.
12456         (tui_register_format): Call tui_expand_tabs to expand TABs into
12457         the appropriate number of spaces.
12458         * tui/tui-io.h: Add prototype for tui_expand_tabs.
12459
12460 2015-01-30  Doug Evans  <dje@google.com>
12461
12462         * NEWS: "info source" command now display producer string if present.
12463         * source.c (source_info): Print producer string if present.
12464
12465 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12466
12467         * varobj.c (varobj_delete): Fix comment.
12468
12469 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12470
12471         * varobj.c (create_child): Modify comment.
12472
12473 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12474
12475         * ada-varobj.c (ada_number_of_children): Constify struct varobj *
12476         parameter.
12477         (ada_name_of_variable): Same.
12478         (ada_path_expr_of_child): Same.
12479         (ada_value_of_variable): Same.
12480         (ada_value_is_changeable_p): Same.
12481         (ada_value_has_mutated): Same.
12482         * c-varobj.c (varobj_is_anonymous_child): Same.
12483         (c_is_path_expr_parent): Same.
12484         (c_number_of_children): Same.
12485         (c_name_of_variable): Same.
12486         (c_path_expr_of_child): Same.
12487         (get_type): Same.
12488         (c_value_of_variable): Same.
12489         (cplus_number_of_children): Same.
12490         (cplus_name_of_variable): Same.
12491         (cplus_path_expr_of_child): Same.
12492         (cplus_value_of_variable): Same.
12493         * jv-varobj.c (java_number_of_children): Same.
12494         (java_name_of_variable): Same.
12495         (java_path_expr_of_child): Same.
12496         (java_value_of_variable): Same.
12497         * varobj.c (number_of_children): Same.
12498         (name_of_variable): Same.
12499         (is_root_p): Same.
12500         (varobj_ensure_python_env): Same.
12501         (varobj_get_objname): Same.
12502         (varobj_get_expression): Same.
12503         (varobj_get_display_format): Same.
12504         (varobj_get_display_hint): Same.
12505         (varobj_has_more): Same.
12506         (varobj_get_thread_id): Same.
12507         (varobj_get_frozen): Same.
12508         (dynamic_varobj_has_child_method): Same.
12509         (varobj_get_gdb_type): Same.
12510         (is_path_expr_parent): Same.
12511         (varobj_default_is_path_expr_parent): Same.
12512         (varobj_get_language): Same.
12513         (varobj_get_attributes): Same.
12514         (varobj_is_dynamic_p): Same.
12515         (varobj_get_child_range): Same.
12516         (varobj_value_has_mutated): Same.
12517         (varobj_get_value_type): Same.
12518         (number_of_children): Same.
12519         (name_of_variable): Same.
12520         (check_scope): Same.
12521         (varobj_editable_p): Same.
12522         (varobj_value_is_changeable_p): Same.
12523         (varobj_floating_p): Same.
12524         (varobj_default_value_is_changeable_p): Same.
12525
12526 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12527
12528         * varobj.c (varobj_get_path_expr): Set var->path_expr.
12529         * c-varobj.c (c_path_expr_of_child): Set local var instead of
12530         child->path_expr.
12531         (cplus_path_expr_of_child): Same.
12532
12533 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12534
12535         * mi-cmd-var.c (print_varobj): Free varobj_get_expression
12536         result.
12537         (mi_cmd_var_info_expression): Same.
12538         * varobj.c (varobj_get_expression): Mention in the comment that
12539         the result must by freed by the caller.
12540
12541 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12542
12543         * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
12544         varobj_get_type.
12545         (varobj_update_one): Same.
12546         * varobj.c (update_type_if_necessary): Free curr_type_str and
12547         new_type_str.
12548         (varobj_get_type): Specify in comment that the result needs to be
12549         freed by the caller.
12550
12551 2015-01-29  Doug Evans  <dje@google.com>
12552
12553         PR symtab/17890
12554         * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
12555
12556 2015-01-25  Mark Wielaard  <mjw@redhat.com>
12557
12558         * dwarf2read.c (checkproducer): Call producer_is_gcc.
12559         * utils.c (producer_is_gcc_ge_4): Likewise.
12560         (producer_is_gcc): New function.
12561         * utils.h (producer_is_gcc): New declaration.
12562
12563 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12564
12565         * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
12566         kind.
12567         * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
12568         parameter by "addr_stack" parameter.
12569         (resolve_dynamic_range): Replace "addr" parameter by
12570         "stack_addr" parameter.  Update function documentation.
12571         Update code accordingly.
12572         (resolve_dynamic_array, resolve_dynamic_union)
12573         (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
12574         (resolve_dynamic_type): Update code, following the changes made
12575         to resolve_dynamic_type_internal's interface.
12576         * dwarf2loc.h (struct property_addr_info): New.
12577         (dwarf2_evaluate_property): Replace "address" parameter
12578         by "addr_stack" parameter.  Adjust function documentation.
12579         (struct dwarf2_offset_baton): New.
12580         (struct dwarf2_property_baton): Update documentation of
12581         field "referenced_type" to be more general. New field
12582         "offset_info" in union data field.
12583         * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
12584         parameter by "addr_stack" parameter.  Adjust code accordingly.
12585         Add support for PROP_ADDR_OFFSET properties.
12586         * dwarf2read.c (attr_to_dynamic_prop): Add support for
12587         DW_AT_data_member_location attributes as well.  Use case
12588         statements instead of if/else condition.
12589
12590 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12591
12592         * ada-varobj.c (ada_varobj_get_array_number_of_children):
12593         Return zero if PARENT_VALUE is NULL and parent_type's
12594         range type is dynamic.
12595
12596 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12597
12598         * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
12599         nonzero if the type's subtype is dynamic.
12600         (resolve_dynamic_range): Also resolve the range's subtype.
12601
12602 2015-01-29  Alexander Klimov  <alserkli@inbox.ru>  (tiny patch)
12603
12604         Pushed by Joel Brobecker  <brobecker@adacore.com>.
12605         * symfile.c (unmap_overlay_command): Initialize sec to NULL.
12606
12607 2015-01-27  Doug Evans  <dje@google.com>
12608
12609         * NEWS: Mention gdb.Objfile.username.
12610         * python/py-objfile.c (objfpy_get_username): New function.
12611         (objfile_getset): Add "username".
12612
12613 2015-01-24  Mark Wielaard  <mjw@redhat.com>
12614
12615         * stack.c (return_command): Markup warning message with _.
12616
12617 2015-01-24  Doug Evans  <xdje42@gmail.com>
12618
12619         * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
12620
12621 2015-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
12622
12623         Fix 100x slowdown regression on DWZ files.
12624         * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
12625         (struct line_header): Add offset and offset_in_dwz.
12626         (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
12627         (free_line_header_voidp): New declaration.
12628         (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
12629         functions.
12630         (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
12631         (handle_DW_AT_stmt_list): Use line_header_hash.
12632         (free_line_header_voidp): New function.
12633         (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
12634         (dwarf_decode_lines): New parameter decode_mapping, use it.
12635         (dwarf2_free_objfile): Free line_header_hash.
12636
12637 2015-01-23  Simon Marchi  <simon.marchi@ericsson.com>
12638
12639         PR gdb/17416
12640         * valops.c (value_rtti_indirect_type): Catch exception thrown by
12641         value_ind.
12642
12643 2015-01-15  Mark Wielaard  <mjw@redhat.com>
12644
12645         * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
12646         DW_AT_noreturn.
12647         * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
12648         calling_convention an 8 bit bit field.
12649         (TYPE_NO_RETURN): New macro.
12650         * infcmd.c (finish_command): Query if function does not return
12651         normally.
12652         * stack.c (return_command): Likewise.
12653
12654 2015-01-23  Pedro Alves  <palves@redhat.com>
12655
12656         * linux-nat.c (linux_is_async_p): New macro.
12657         (linux_nat_is_async_p):
12658         (linux_nat_terminal_inferior): Check whether the target can async
12659         instead of whether it is already async.
12660         (linux_nat_terminal_ours): Don't check whether the target is
12661         async.
12662         (linux_async_pipe): Use linux_is_async_p.
12663
12664 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12665
12666         * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
12667         '-ascending'.
12668         * thread.c (tp_array_compar_ascending, tp_array_compar): New.
12669         (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
12670         Sort tp_array using tp_array_compar.
12671         (_initialize_thread): Extend thread_apply_all_command help.
12672
12673 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12674
12675         * corelow.c (core_open): Call also thread_command.
12676         * gdbthread.h (thread_command): New prototype moved from ...
12677         * thread.c (thread_command): ... here.
12678         (thread_command): Make it global.
12679
12680 2015-01-22  Pedro Alves  <palves@redhat.com>
12681
12682         * configure.ac [*mingw32*]: Check $curses_found instead of
12683         $prefer_curses.
12684         * configure: Regenerate.
12685         * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
12686         HAVE_NCURSES_NCURSES_H checks.
12687
12688 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
12689
12690         * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
12691         fails with the 1st arg NULL, try again with "unknown".  Don't test
12692         the "cup" capability: it isn't supported by the Windows port of
12693         ncurses, but the Windows console driver is still capable of
12694         supporting TUI.
12695
12696 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12697
12698         * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
12699
12700 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
12701
12702         * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
12703         (ALLDEPFILES): Remove irix5-nat.c.  These two are part of the
12704         reason that "make TAGS" is broken.
12705
12706 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
12707
12708         * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
12709         and check additional store instructions.
12710
12711 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
12712
12713         * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
12714
12715 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
12716
12717         * ppc-linux-tdep.c (ppc_skip_trampoline_code,
12718         ppc_canonicalize_syscall, ppc_linux_syscall_record,
12719         ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
12720         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12721         * rs6000-tdep.c (rs6000_epilogue_frame_cache,
12722         rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
12723         rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
12724         ppc_process_record_op19, ppc_process_record_op31,
12725         ppc_process_record_op59, ppc_process_record_op60,
12726         ppc_process_record_op63): Likewise.
12727
12728 2015-01-20  Joel Brobecker  <brobecker@adacore.com>
12729
12730         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
12731         (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
12732         strerror.
12733
12734 2015-01-20  Wei-cheng Wang  <cole945@gmail.com>
12735
12736         * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
12737         ppc_process_record_op31, ppc_process_record_op59,
12738         ppc_process_record_op60, ppc_process_record_op63,
12739         ppc_process_record): Fix -Wformat warning.
12740         * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12741         Remove unused variables.
12742
12743 2015-01-20  Chen Gang  <gang.chen.5i5j@gmail.com>
12744
12745         * MAINTAINERS (Write After Approval): Add "Chen Gang".
12746
12747 2015-01-19  Eli Zaretskii  <eliz@gnu.org>
12748
12749         * configure.ac [*mingw32*]: Only add windows-termcap.o to
12750         CONFIG_OBS if not building with a curses library.
12751         * configure: Regenerate.
12752
12753         * windows-termcap.c: Include defs.h.  Make the whole body empty if
12754         either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12755         HAVE_NCURSES_NCURSES_H is defined.
12756
12757 2015-01-19  Joel Brobecker  <brobecker@adacore.com>
12758
12759         * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12760         from end of line to start of next line.
12761
12762 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12763
12764         * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12765         Scan PLT stub backward for reverse debugging.
12766         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12767
12768 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12769             Ulrich Weigand  <uweigand@de.ibm.com>
12770
12771         * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12772         gdb_target_obs.
12773         (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12774         record.
12775         (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12776         ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12777         (ppc_linux_init_abi): Set process_record, process_record_signal.
12778         * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12779         ppc_linux_record_tdep to gdbarch_tdep.
12780         (ppc_process_record): New declaration.
12781         * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12782         ppc_process_record_op19, ppc_process_record_op31,
12783         ppc_process_record_op59, ppc_process_record_op60,
12784         ppc_process_record_op63, ppc_process_record): New functions.
12785
12786 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12787
12788         * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12789         rs6000_in_function_epilogue_frame_p and add an argument
12790         for frame_info.
12791         (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12792         rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12793         New functions.
12794         (rs6000_epilogue_frame_unwind): New.
12795         (rs6000_gdbarch_init): Append epilogue unwinder.
12796
12797 2015-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
12798
12799         * nat/linux-personality.c: Replace "#ifndef
12800         HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12801         !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12802         systems.
12803
12804 2015-01-16  Eli Zaretskii  <eliz@gnu.org>
12805
12806         * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12807         functions.
12808         (_initialize_tui_win) <border-kind, border-mode>:
12809         <active-border-mode>: Use tui_set_var_cmd as the "set" function.
12810         (tui_set_tab_width_command): Fix the commentary.
12811
12812         * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12813
12814         * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12815         Doc fix.
12816         (tui_set_tab_width_command): Delete and recreate the source and
12817         the disassembly windows, to show the effect of the changed tab
12818         size immediately.
12819
12820         * tui/tui-data.h (LINE_PREFIX): Make shorter
12821         (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12822         "Thread NNNNN.XXXX" thread ID notation on Windows.
12823
12824 2015-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12825
12826         Fix gcc-5 compilation.
12827         * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12828
12829 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
12830
12831         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12832         (linux-personality.o): New rule.
12833         * common/common-defs.h: Include <stdint.h>.
12834         * config/aarch64/linux.mh (NATDEPFILES): Include
12835         linux-personality.o.
12836         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12837         * config/arm/linux.mh (NATDEPFILES): Likewise.
12838         * config/i386/linux64.mh (NATDEPFILES): Likewise.
12839         * config/i386/linux.mh (NATDEPFILES): Likewise.
12840         * config/ia64/linux.mh (NATDEPFILES): Likewise.
12841         * config/m32r/linux.mh (NATDEPFILES): Likewise.
12842         * config/m68k/linux.mh (NATDEPFILES): Likewise.
12843         * config/mips/linux.mh (NATDEPFILES): Likewise.
12844         * config/pa/linux.mh (NATDEPFILES): Likewise.
12845         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12846         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12847         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12848         * config/s390/linux.mh (NATDEPFILES): Likewise.
12849         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12850         * config/sparc/linux.mh (NATDEPFILES): Likewise.
12851         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12852         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12853         * defs.h: Remove #include <stdint.h> (moved to
12854         common/common-defs.h).
12855         * linux-nat.c: Include nat/linux-personality.h.  Remove #include
12856         <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12857         nat/linux-personality.c).
12858         (linux_nat_create_inferior): Remove code to disable address space
12859         randomization (moved to nat/linux-personality.c).  Create cleanup
12860         to disable address space randomization.
12861         * nat/linux-personality.c: New file.
12862         * nat/linux-personality.h: Likewise.
12863
12864 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
12865
12866         * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12867         common/posix-strerror.c.
12868         (posix-strerror.o): New rule.
12869         (mingw-strerror.o): Likewise.
12870         * common/common-utils.h (safe_strerror): Move prototype to here,
12871         from utils.h.
12872         * common/common.host: New file.
12873         * common/mingw-strerror.c: Likewise.
12874         * common/posix-strerror.c: Likewise.
12875         * configure: Regenerated.
12876         * configure.ac: Source common/common.host.  Add variable
12877         common_host_obs to gdb_host_obs.
12878         * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12879         gdb/common/posix-strerror.c when warning about the use of
12880         strerror.
12881         * mingw-hdep.c (safe_strerror): Remove definition; move it to
12882         common/mingw-strerror.c.
12883         * posix-hdep.c (safe_strerror): Remove definition; move it to
12884         common/posix-hdep.c.
12885         * utils.h (safe_strerror): Remove prototype; move to
12886         common/common-utils.h.
12887
12888 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
12889
12890         GDB 7.8.2 released.
12891
12892 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
12893
12894         * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12895         ___XA type if the array has already been fixed.
12896
12897 2015-01-14  Yao Qi  <yao@codesourcery.com>
12898
12899         * Makefile.in (ppc-linux.o): New rule.
12900         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12901         * configure.ac: AC_CHECK_FUNCS(getauxval).
12902         * config.in: Re-generated.
12903         * configure: Re-generated.
12904         * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12905         Declare.
12906         * nat/ppc-linux.c: New file.
12907         * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12908         Call ppc64_64bit_inferior_p.
12909
12910 2015-01-14  Yao Qi  <yao@codesourcery.com>
12911
12912         * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12913         nat/ppc-linux.h.
12914         (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12915         (PPC_FEATURE_HAS_DFP): Likewise.
12916         (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12917         (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12918         (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12919         Include "nat/ppc-linux.h".
12920         * nat/ppc-linux.h: New file.
12921         * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12922
12923 2015-01-14  Pedro Alves  <palves@redhat.com>
12924
12925         PR gdb/17525
12926         * breakpoint.c: Include "interps.h".
12927         (bpstat_do_actions_1): Also check whether the interpreter is
12928         async.
12929
12930 2015-01-14  Pedro Alves  <palves@redhat.com>
12931
12932         PR cli/17828
12933         * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12934         reinstall if the interpreter is sync.
12935
12936 2015-01-13  Doug Evans  <dje@google.com>
12937
12938         * objfiles.c (objfile_filename): New function.
12939         * objfiles.h (objfile_filename): Declare it.
12940         (objfile_name): Add function comment.
12941         * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12942         bfd file name (which may be realpath'd), and the original name.
12943
12944 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12945
12946         * NEWS: Create a new section for the next release branch.
12947         Rename the section of the current branch, now that it has
12948         been cut.
12949
12950 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12951
12952         GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12953         * version.in: Bump version to 7.9.50.DATE-cvs.
12954
12955 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12956
12957         * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12958         Remove trailing new-line in argument of call to warning.
12959
12960 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12961
12962         * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12963         new-line in argument of call to "warning".
12964
12965 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12966
12967         * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12968         in static block, then try searching for primitive types.
12969
12970 2015-01-12  Patrick Palka  <patrick@parcs.ath.cx>
12971
12972         * top.h (gdb_add_history): Declare.
12973         * top.c (command_count): New variable.
12974         (gdb_add_history): New function.
12975         (gdb_safe_append_history): New static function.
12976         (quit_force): Call it.
12977         (command_line_input): Use gdb_add_history instead of
12978         add_history.
12979         * event-top.c (command_line_handler): Likewise.
12980
12981 2015-01-12  James Clarke  <jrtc27@jrtc27.com>  (tiny patch)
12982
12983         PR gdb/17046
12984         * darwin-nat.c: Replace <machine/setjmp.h> #include by
12985         <setjmp.h> #include.
12986
12987 2015-01-11  Doug Evans  <xdje42@gmail.com>
12988
12989         * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12990
12991 2015-01-11  Doug Evans  <xdje42@gmail.com>
12992
12993         PR gdb/15830
12994         * NEWS: The "maint demangle" command is renamed as "demangle".
12995         * demangle.c: #include cli/cli-utils.h, language.h.
12996         (demangle_command): New function.
12997         (_initialize_demangle): Add new command "demangle".
12998         * maint.c (maintenance_demangle): Stub out.
12999         (_initialize_maint_cmds): Update help text for "maint demangle",
13000         and mark as deprecated.
13001
13002 2015-01-11  Mark Kettenis  <kettenis@gnu.org>
13003
13004         * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
13005         inferior_thread is a function.
13006
13007 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
13008
13009         * Makefile.in (.y.c): Don't munge yacc's #line
13010         directives.
13011
13012 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
13013
13014         * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
13015         to prompt for input.
13016         * tui/tui-hooks.c (tui_query_hook): Remove.
13017         (tui_install_hooks): Don't set deprecated_query_hook.
13018         * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
13019         height calculation.  Always update the command window's cur_line.
13020
13021 2015-01-09  Pedro Alves  <palves@redhat.com>
13022
13023         * breakpoint.c (hardware_breakpoint_inserted_here_p): New
13024         function.
13025         * breakpoint.h (hardware_breakpoint_inserted_here_p): New
13026         declaration.
13027         * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
13028         (linux_resume_one_lwp): Store the thread's PC.  Adjust to clear
13029         stop_reason.
13030         (check_stopped_by_watchpoint): New function.
13031         (save_sigtrap): Reimplement.
13032         (linux_nat_stopped_by_watchpoint): Adjust.
13033         (linux_nat_lp_status_is_event): Delete.
13034         (stop_wait_callback): Only call save_sigtrap after storing the
13035         pending status.
13036         (status_callback): If the thread had been stopped for a breakpoint
13037         that has since been removed, discard the event and resume the LWP.
13038         (count_events_callback, select_event_lwp_callback): Use
13039         lwp_status_pending_p instead of linux_nat_lp_status_is_event.
13040         (cancel_breakpoint): Rename to ...
13041         (check_stopped_by_breakpoint): ... this.  Record whether the LWP
13042         stopped for a software breakpoint or hardware breakpoint.
13043         (select_event_lwp): Only give preference to the stepping LWP in
13044         all-stop mode.  Adjust comments.
13045         (stop_and_resume_callback): Remove references to new_pending_p.
13046         (linux_nat_filter_event): Likewise.  Leave exit events of the
13047         leader thread pending here.  Handle signal short circuiting here.
13048         Only call save_sigtrap after storing the pending waitstatus.
13049         (linux_nat_wait_1): Remove 'retry' label.  Remove references to
13050         new_pending.  Don't handle leaving events the caller is not
13051         interested in pending here, nor handle signal short-circuiting
13052         here.  Also give equal priority to all LWPs that have had events
13053         in non-stop mode.  If reporting a software breakpoint event,
13054         unadjust the LWP's PC.
13055         * linux-nat.h (enum lwp_stop_reason): New.
13056         (struct lwp_info) <stop_pc>: New field.
13057         (struct lwp_info) <stopped_by_watchpoint>: Delete field.
13058         (struct lwp_info) <stop_reason>: New field.
13059         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
13060
13061 2015-01-09  Pedro Alves  <palves@redhat.com>
13062
13063         * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
13064         Set the LWP's 'resumed' flag.
13065
13066 2015-01-09  Pedro Alves  <palves@redhat.com>
13067
13068         * linux-nat.c (linux_resume_one_lwp): New function.
13069         (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
13070         (linux_nat_resume): Use lwp_status_pending_p and
13071         linux_resume_one_lwp.
13072         (linux_handle_syscall_trap): Use linux_resume_one_lwp.
13073         (linux_handle_extended_wait): Use linux_resume_one_lwp.
13074         (status_callback, running_callback): Use lwp_status_pending_p.
13075         (lwp_status_pending_p): New function.
13076         (stop_and_resume_callback): Use lwp_status_pending_p.
13077         (linux_nat_filter_event): Use linux_resume_one_lwp.
13078         (linux_nat_wait_1): Always use status_callback to look for an LWP
13079         with a pending status.  Use linux_resume_one_lwp.
13080         (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
13081         linux_resume_one_lwp.
13082
13083 2015-01-09  Pedro Alves  <palves@redhat.com>
13084
13085         * breakpoint.c (bp_location_inserted_here_p): New function,
13086         factored out from ...
13087         (breakpoint_inserted_here_p): ... here.  Use
13088         ALL_BP_LOCATIONS_AT_ADDR.
13089         (software_breakpoint_inserted_here_p): Use
13090         bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
13091
13092 2014-01-09  Pedro Alves  <palves@redhat.com>
13093
13094         Skip enabling event reporting if the kernel supports
13095         PTRACE_EVENT_CLONE.
13096         * linux-thread-db.c: Include "nat/linux-ptrace.h".
13097         (thread_db_use_events): New function.
13098         (try_thread_db_load_1): Check thread_db_use_events before enabling
13099         event reporting.
13100         (update_thread_state): New function.
13101         (attach_thread): Use it.  Check thread_db_use_events before
13102         enabling event reporting.
13103         (thread_db_detach): Check thread_db_use_events before disabling
13104         event reporting.
13105         (find_new_threads_callback): Check thread_db_use_events before
13106         enabling event reporting.  Update the thread's state if not using
13107         libthread_db events.
13108
13109 2015-01-09  Pedro Alves  <palves@redhat.com>
13110
13111         * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
13112         about to wait for is > 0.
13113         * linux-thread-db.c (find_new_threads_callback): Ignore thread if
13114         the kernel thread ID is -1.
13115
13116 2015-01-09  Pedro Alves  <palves@redhat.com>
13117
13118         * linux-nat.c (attach_proc_task_lwp_callback): New function.
13119         (linux_nat_attach): Use linux_proc_attach_tgid_threads.
13120         (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
13121         ptrace option flags.
13122         * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
13123         field.
13124         * nat/linux-procfs.c: Include <dirent.h>.
13125         (linux_proc_get_int): New parameter "warn".  Handle it.
13126         (linux_proc_get_tgid): Adjust.
13127         (linux_proc_get_tracerpid): Rename to ...
13128         (linux_proc_get_tracerpid_nowarn): ... this.
13129         (linux_proc_pid_get_state): New function, factored out from
13130         (linux_proc_pid_has_state): ... this.  Add new parameter "warn"
13131         and handle it.
13132         (linux_proc_pid_is_gone): New function.
13133         (linux_proc_pid_is_stopped): Adjust.
13134         (linux_proc_pid_is_zombie_maybe_warn)
13135         (linux_proc_pid_is_zombie_nowarn): New functions.
13136         (linux_proc_pid_is_zombie): Use
13137         linux_proc_pid_is_zombie_maybe_warn.
13138         (linux_proc_attach_tgid_threads): New function.
13139         * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
13140         (linux_proc_get_tracerpid): Rename to ...
13141         (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
13142         (linux_proc_pid_is_gone): New declaration.
13143         (linux_proc_pid_is_zombie): Update comment.
13144         (linux_proc_pid_is_zombie_nowarn): New declaration.
13145         (linux_proc_attach_lwp_func): New typedef.
13146         (linux_proc_attach_tgid_threads): New declaration.
13147         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
13148         use nowarn functions.
13149         (linux_ptrace_attach_fail_reason_string): Move here from
13150         gdbserver/linux-low.c and rename.
13151         (ptrace_supports_feature): If the current ptrace options are not
13152         known yet, check them now, instead of asserting.
13153         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
13154         Declare.
13155
13156 2015-01-09  Pedro Alves  <palves@redhat.com>
13157
13158         * linux-thread-db.c (thread_db_find_new_threads_silently)
13159         (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
13160         (find_new_threads_once): Print debug output on gdb_stdlog.
13161
13162 2015-01-09  Chen Gang  <gang.chen.5i5j@gmail.com>
13163             Pedro Alves  <palves@redhat.com>
13164
13165         * compile/compile.c: Include "gdb_wait.h".
13166         (do_rmdir): Check return value, and free 'zap'.
13167
13168 2015-01-08  Pedro Alves  <palves@redhat.com>
13169             Yao Qi  <yao@codesourcery.com>
13170
13171         * dwarf2loc.c (indirect_pieced_value): Don't call
13172         gdb_sign_extend.  Call extract_signed_integer instead.
13173         * utils.c (gdb_sign_extend): Remove.
13174         * utils.h (gdb_sign_extend): Remove declaration.
13175
13176 2015-01-07  Pierre Muller  <muller@sourceware.org>
13177
13178         PR symtab/17811
13179         * stabsread.c (define_symbol): Set language for C++ special symbols.
13180
13181 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
13182
13183         * inflow.c (initial_gdb_ttystate): Tweak comment.
13184
13185 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
13186
13187         * inflow.c (set_initial_gdb_ttystate): Add empty line after
13188         comment documenting function.
13189
13190 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
13191
13192         * terminal.h (set_initial_gdb_ttystate): Declare.
13193         * inflow.c (initial_gdb_ttystate): New static variable.
13194         (set_initial_gdb_ttystate): New setter.
13195         (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
13196         instead of our current terminal state.
13197         * top.c (gdb_init): Call set_initial_gdb_ttystate.
13198
13199 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
13200
13201         * guile/scm-type.c (tyscm_array_1): Add comment.
13202         * python/py-type.c (typy_array_1): Add comment.
13203
13204 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
13205
13206         * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
13207         error if N2 is equal to N1 - 1.
13208
13209 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
13210
13211         * python/py-type.c (typy_array_1): Do not raise negative-length
13212         exception if N2 is equal to N1 - 1.
13213
13214 2015-01-03  Doug Evans  <xdje42@gmail.com>
13215
13216         * c-exp.y: Whitespace cleanup.
13217         (classify_inner_name): Remove extra ;.
13218
13219 2015-01-02  Maciej W. Rozycki  <macro@codesourcery.com>
13220
13221         * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
13222         offset signed.
13223
13224 2015-01-02  Doug Evans  <dje@google.com>
13225
13226         * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
13227
13228 2015-01-02  Doug Evans  <dje@google.com>
13229
13230         * symtab.h (struct symbol): Fix typo in comment.
13231
13232 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
13233
13234         Update year range in copyright notice of all files.
13235
13236 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
13237
13238         * top.c (print_gdb_version): Update copyright year to 2015.
13239
13240 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
13241
13242         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
13243
13244 For older changes see ChangeLog-2014.
13245 \f
13246 Local Variables:
13247 mode: change-log
13248 left-margin: 8
13249 fill-column: 74
13250 version-control: never
13251 coding: utf-8
13252 End: