gdb/linux-record: Fix [gs]etgroups16 syscall
[external/binutils.git] / gdb / ChangeLog
1 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
2
3         * linux-record.c (record_linux_system_call): Fix [gs]etgroups16.
4
5 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
6
7         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add size_time_t.
8         * amd64-linux-tdep.c (amd64_linux_init_abi): Add size_time_t.
9         (amd64_x32_linux_init_abi): Add size_time_t.
10         * arm-linux-tdep.c (arm_linux_init_abi): Add size_time_t.
11         * i386-linux-tdep.c (i386_linux_init_abi): Add size_time_t.
12         * linux-record.c (record_linux_system_call): Add time, waitpid, pipe
13         handling.
14         * linux-record.h (struct linux_record_tdep): Add size_time_t.
15         * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Add size_time_t.
16
17 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
18
19         * linux-record.c (record_linux_msghdr): Fix msg_namelen handling.
20
21 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
22
23         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove
24         size_dirent{,64}, add size_old_dirent.
25         * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_dirent{,64},
26         add size_old_dirent.
27         (amd64_x32_linux_init_abi): Remove size_dirent{,64}, add
28         size_old_dirent.
29         * arm-linux-tdep.c (arm_linux_init_abi): Remove size_dirent{,64},
30         add size_old_dirent.
31         * i386-linux-tdep.c (i386_linux_init_abi): Remove size_dirent{,64},
32         add size_old_dirent.
33         * linux-record.c (record_linux_system_call): Fix handling of readdir
34         and getdents{,64}.
35         * linux-record.h (struct linux_record_tdep): Remove size_dirent{,64},
36         add size_old_dirent.
37         * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove
38         size_dirent{,64}, add size_old_dirent.
39
40 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
41
42         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Fix size_sigaction,
43         size_sigset_t, size_old_sigaction, size_old_sigset_t.
44         * amd64-linux-tdep.c (amd64_linux_init_abi): Fix size_sigaction,
45         size_sigset_t, size_old_sigaction, size_old_sigset_t.
46         (amd64_x32_linux_init_abi): Fix size_sigaction, size_sigset_t,
47         size_old_sigaction, size_old_sigset_t.
48         * arm-linux-tdep.c (arm_linux_init_abi): Fix size_sigaction,
49         size_old_sigaction, size_old_sigset_t.
50         * i386-linux-tdep.c (i386_linux_init_abi): Fix size_sigaction,
51         size_old_sigaction, size_old_sigset_t.
52         * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Fix size_sigaction,
53         size_sigset_t, size_old_sigaction, size_old_sigset_t.
54
55 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
56
57         * arm-linux-tdep.c (arm_linux_init_abi): Fix size_[ug]id.
58         * i386-linux-tdep.c (i386_linux_init_abi): Fix size_[ug]id.
59
60 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
61
62         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove size_siginfo.
63         * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_siginfo.
64         (amd64_x32_linux_init_abi): Remove size_siginfo.
65         * arm-linux-tdep.c (arm_linux_init_abi): Remove size_siginfo.
66         * i386-linux-tdep.c (i386_linux_init_abi): Remove size_siginfo.
67         * linux-record.c (record_linux_system_call): Change size_siginfo
68         to size_siginfo_t.
69         * linux-record.h (struct linux_record_tdep): Remove size_siginfo.
70         * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove size_siginfo.
71
72 2015-10-29  Pedro Alves  <palves@redhat.com>
73
74         * mdebugread.c (add_data_symbol): New function, factored out from
75         ...
76         (parse_symbol): ... here.  Delete 'theclass' local.
77
78 2015-10-29  Simon Marchi  <simon.marchi@polymtl.ca>
79
80         * jit.c (jit_target_read_impl): Add cast.
81
82 2015-10-29  Simon Marchi  <simon.marchi@polymtl.ca>
83
84         * jit.c (jit_reader_load): Add cast.
85
86 2015-10-29  Simon Marchi  <simon.marchi@polymtl.ca>
87
88         * dwarf2read.c (partial_die_full_name): Add cast.
89
90 2015-10-29  Pedro Alves  <palves@redhat.com>
91
92         * common/vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
93
94 2015-10-29  Pedro Alves  <palves@redhat.com>
95
96         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Add cast.
97
98 2015-10-29  Eli Zaretskii  <eliz@gnu.org>
99
100         * utils.c (init_page_info): Disable paging if INSIDE_EMACS is set
101         in the environment.
102
103 2015-10-29  Pedro Alves  <palves@redhat.com>
104
105         * gnu-v2-abi.c (gnuv2_is_destructor_name)
106         (gnuv2_is_constructor_name): Add casts.
107
108 2015-10-29  Pedro Alves  <palves@redhat.com>
109
110         * common/common-exceptions.c (exception_none): Add cast.
111
112 2015-10-29  Pedro Alves  <palves@redhat.com>
113
114         * compile/compile-c-types.c (struct type_map_instance)
115         <gcc_type>: Rename to gcc_type_handle.
116         (insert_type, convert_type): Adjust.
117
118 2015-10-29  Pedro Alves  <palves@redhat.com>
119
120         * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Don't
121         assume that "break" breaks out of a TRY/CATCH.
122         * python/py-framefilter.c (py_print_single_arg): Don't assume
123         "continue" breaks out of a TRY/CATCH.
124         * python/py-value.c (valpy_binop_throw): New function, factored
125         out from ...
126         (valpy_binop): ... this.
127         (valpy_richcompare_throw): New function, factored
128         out from ...
129         (valpy_richcompare): ... this.
130         * solib.c (solib_read_symbols): Don't assume "break" breaks out
131         of a TRY/CATCH.
132         * common/common-exceptions.h [USE_RAW_CXX_TRY]
133         <TRY/CATCH/END_CATCH>: Define as 1-1 wrappers around try/catch.
134
135 2015-10-28  Simon Dardis  <Simon.Dardis@imgtec.com>
136
137         * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Recognise 'or'
138         as move along with [d]addu.
139
140 2015-10-28  Yao Qi  <yao.qi@linaro.org>
141
142         * aarch64-tdep.c (aarch64_software_single_step): Pass 1 to
143         aarch64_decode_insn.
144
145 2015-10-27  Pedro Alves  <palves@redhat.com>
146
147         * common/print-utils.c (host_address_to_string): Rename to ...
148         (host_address_to_string_1): ... this.
149         * common/print-utils.h (host_address_to_string): Reimplement as
150         wrapper around host_address_to_string_1.
151         * utils.c (gdb_print_host_address): Rename to ...
152         (gdb_print_host_address_1): ... this.
153         * utils.h (gdb_print_host_address): Reimplement as wrapper macro
154         around  host_address_to_string_1.
155
156 2015-10-27  Pedro Alves  <palves@redhat.com>
157
158         * alpha-tdep.c (alpha_read_insn): Always pass TARGET_XFER_E_IO to
159         memory_error.  Rename local 'status' to 'res'.
160         * c-lang.c (c_get_string): Always pass TARGET_XFER_E_IO to
161         memory_error.
162         * corefile.c (read_stack, read_code, write_memory): Always pass
163         TARGET_XFER_E_IO to memory_error.
164         * disasm.c (dis_asm_memory_error): Always pass TARGET_XFER_E_IO to
165         memory_error.  Rename parameter 'status' to 'err'.
166         (dump_insns): Rename local 'status' to 'err'.
167         * mips-tdep.c (mips_fetch_instruction): Rename parameter 'statusp'
168         to 'errp'.  Rename local 'status' to 'err'.  Always pass
169         TARGET_XFER_E_IO to memory_error.
170         (mips_breakpoint_from_pc): Rename local 'status' to 'err'.
171         * target.c (target_read_memory, target_read_raw_memory)
172         (target_read_stack, target_read_code, target_write_memory)
173         (target_write_raw_memory): Return -1 on error instead of
174         TARGET_XFER_E_IO.
175         * valprint.c (val_print_string): Rename local 'errcode' to 'err'.
176         Always pass TARGET_XFER_E_IO to memory_error.  Update comment.
177
178 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
179
180         * guile/guile-internal.h (gdbscm_with_guile): Change return
181         types to const char *.
182         * guile/scm-safe-call.c (gdbscm_with_guile): Likewise.
183         (struct c_data) <func>: Likewise.
184         (struct c_data) <result>: Change type to const char *.
185         (scscm_eval_scheme_string): Change return type to
186         const char *.
187         (scscm_source_scheme_script): Likewise.
188         (gdbscm_safe_eval_string): Change type of result variable to
189         const char * and remove cast.
190         (gdbscm_safe_source_script): Likewise.
191         * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker):
192         Change return type to const char *.
193         (gdbscm_disasm_read_memory): Change type of status to
194         const char *.
195
196 2015-10-27  Pedro Alves  <palves@redhat.com>
197
198         * source.c (openp): New local 'last_errno'.  Use it to
199         save/restore errno.
200
201 2015-10-27  Pedro Alves  <palves@redhat.com>
202
203         * psymtab.c (dump_psymtab_addrmap_1): Add casts.
204
205 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
206
207         * ctf.c (SET_ENUM_FIELD): New macro.
208         (ctf_read_status): Use it.
209         (ctf_read_tp): Use it.
210
211 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
212
213         * guile/scm-breakpoint.c (gdbscm_set_breakpoint_stop_x): Add
214         scm_t_dynwind_flags casts.
215         * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
216         * guile/scm-ports.c (gdbscm_open_memory): Likewise.
217         * guile/scm-value.c (gdbscm_value_to_string): Likewise.
218
219 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
220
221         * ax.h (ax_raw_byte): New declaration.
222         * ax-general.c (ax_raw_byte): New function.
223         (ax_simple): Use ax_raw_byte.
224         * ax-gdb.c (gen_printf): Likewise.
225
226 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
227
228         * ada-lang.h (GROW_VECT): Add cast.
229
230 2015-10-26  Doug Evans  <xdje42@gmail.com>
231
232         * symtab.h (struct general_symbol_info> <ada_mangled>: Update comment.
233
234 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
235
236         * target.c (memory_xfer_partial): Change type of buf to gdb_byte
237         pointer.
238         (simple_search_memory): Cast return of memmem.
239
240 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
241
242         * stap-probe.c (handle_stap_probe): Add (const char *) casts.
243
244 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
245
246         * ctf.c (ctf_xfer_partial): Return TARGET_XFER_E_IO instead of
247         -1 on error.
248
249 2015-10-26  Doug Evans  <dje@google.com>
250
251         PR symtab/17391
252         * dwarf2-frame.c (dwarf2_restore_rule): Call dwarf_reg_to_regnum
253         instead of gdbarch_dwarf2_reg_to_regnum.
254         (dwarf2_frame_cache): Ditto.
255         (read_addr_from_reg): Call dwarf_reg_to_regnum_or_error instead of
256         gdbarch_dwarf2_reg_to_regnum.
257         (get_reg_value): Ditto.
258         (dwarf2_fetch_cfa_info): Ditto.
259         (dwarf2_frame_prev_register): Ditto.
260         * dwarf2loc.c: #include "complaints.h".
261         (dwarf_expr_read_addr_from_reg): Call dwarf_reg_to_regnum_or_error
262         instead of gdbarch_dwarf2_reg_to_regnum.
263         (dwarf_expr_get_reg_value): Ditto.
264         (read_pieced_value): Ditto.
265         (write_pieced_value): Ditto.
266         (dwarf2_evaluate_loc_desc_full): Ditto.
267         (dwarf_reg_to_regnum): New function.
268         (throw_bad_regnum_error): New function.
269         (dwarf_reg_to_regnum_or_error): Renamed from
270         dwarf2_reg_to_regnum_or_errorChange to take a ULONGEST regnum.
271         All callers updated.  Call throw_bad_regnum_error.
272         (locexpr_regname): Improve text of bad register number.
273         * dwarf2loc.h (dwarf_reg_to_regnum): Declare.
274         (dwarf_reg_to_regnum_or_error): Update prototype.
275         * dwarf2expr.c: #include "dwarf2loc.h".
276         (dwarf_block_to_sp_offset): Call dwarf_reg_to_regnum instead of
277         gdbarch_dwarf2_reg_to_regnum.
278         * gdbarch.sh (dwarf2_reg_to_regnum): Add comment.
279         * gdbarch.h: Regenerate.
280         * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Remove warning for bad
281         register.
282         * avr-tdep.c (avr_dwarf_reg_to_regnum): Ditto.
283         * cris-tdep.c (cris_dwarf2_reg_to_regnum): Ditto.
284         * bfin-tdep.c (bfin_reg_to_regnum): Fix error checking.
285         * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Improve error checking.
286         Remove warning for bad register.
287         * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Ditto.
288         * i386-tdep.c (i386_svr4_dwarf_reg_to_regnum): Renamed from
289         i386_svr4_reg_to_regnum.  Return -1 for bad registers.
290         (i386_svr4_reg_to_regnum): New function.
291         (i386_gdbarch_init): Update call to set_gdbarch_dwarf2_reg_to_regnum.
292         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Don't assert
293         on bad registers, return -1.
294         * msp430-tdep.c (msp430_dwarf2_reg_to_regnum): Improve error checking.
295         Remove warning for bad register.
296         * nios2-tdep.c: Add static assert for NIOS2_NUM_REGS.
297         (nios2_dwarf_reg_to_regnum): Fix off-by-one error.
298         Remove warning for bad register.  Return -1 for bad register.
299         * rl78-tdep.c (rl78_dwarf_reg_to_regnum): Don't flag an internal error
300         for bad register, return -1.
301         * rx-tdep.c (rx_dwarf_reg_to_regnum): Ditto.
302         * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Fix error result.
303         * mep-tdep.c (mep_debug_reg_to_regnum): Ditto.
304         * mips-tdep.c (mips_stab_reg_to_regnum): Ditto.
305         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
306         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Remove warning
307         for bad regs.
308         * xtensa-tdep.c (xtensa_reg_to_regnum): Remove internal error for
309         bad regs.  Fix error result.
310         * stabsread.c (stab_reg_to_regnum): Watch for negative regno.
311         (reg_value_complaint): Update complaint text.
312         * mdebugread.c (reg_value_complaint): New function.
313         (mdebug_reg_to_regnum): Rewrite to watch for bad reg numbers.
314
315 2015-10-26  Doug Evans  <dje@google.com>
316
317         PR python/18938
318         * cli/cli-cmds (source_script_fron_sctream): New arg file_to_open.
319         All callers updated.
320
321 2015-10-26  Doug Evans  <dje@google.com>
322
323         * psymtab.c (struct dump_psymtab_addrmap_data): Define.
324         (dump_psymtab_addrmap_1, dump_psymtab_addrmap): New functions.
325         (maintenance_print_psymbols): Print address map.
326
327 2015-10-26  Doug Evans  <dje@google.com>
328
329         * nat/linux-nat.h (__SIGRTMIN): Move here from gdbserver/linux-low.c.
330
331 2015-10-26  Doug Evans  <dje@google.com>
332
333         * common/gdb_wait.h (W_STOPCODE): Define, moved here from
334         gdbserver/linux-low.c.
335         (WSETSTOP): Simplify.
336
337 2015-10-26  Doug Evans  <dje@google.com>
338
339         * linux-thread-db.c (find_new_threads_callback): Ditto.
340         (thread_db_pid_to_str): Ditto.
341
342 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
343
344         * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Do not pass a
345         local char array to scm_mode_bits, use a cast instead.
346
347 2015-10-26  Simon Marchi  <simon.marchi@ericsson.com>
348
349         * tui/tui-data.c (tui_alloc_content): Don't check xmalloc
350         result.  Change type of element_block_ptr.  Change allocation to
351         use XNEWVEC.
352
353 2015-10-26  Luis Machado  <lgustavo@codesourcery.com>
354
355         * record-full.c (record_full_message_wrapper_safe): Pass empty string to
356         catch_errors call instead of NULL.
357
358 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
359
360         * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Pass non-const
361         char pointer to scm_mode_bits.
362
363 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
364
365         * symtab.c (default_make_symbol_completion_list_break_on_1): Add
366         cast.
367
368 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
369
370         * guile/scm-ports.c (gdbscm_memory_port_write): Declare new
371         "data" local variable and use it.
372
373 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
374
375         * guile/scm-symbol.c (gdbscm_lookup_global_symbol): Add
376         domain_enum cast.
377         (gdbscm_lookup_symbol): Likewise.
378
379 2015-10-25  Iain Buclaw  <ibuclaw@gdcproject.org>
380
381         * d-exp.y: Remove an obsolete comment and propagate the block
382         information to the produced expression.
383
384 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
385
386         * tui/tui-data.c (tui_add_to_source_windows): Remove void *
387         cast.
388         (tui_add_content_elements): Likewise.
389
390 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
391
392         * cli/cli-setshow.c (do_set_command): Constify p.
393
394 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
395
396         * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Replace
397         (void *) cast with (gdb_byte *).
398
399 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
400
401         * proc-service.c (ps_pdread): Add cast.
402
403 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
404
405         * sparc64-tdep.c (sparc64_store_arguments): Split assignment of
406         valbuf.
407
408 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
409
410         * ia64-tdep.c (ia64_pseudo_register_write): Remove cast.
411         (ia64_push_dummy_call): Remove cast and change type of "to" to
412         array of gdb_byte.
413
414 2015-10-23  Simon Marchi  <simon.marchi@polymtl.ca>
415
416         * linux-btrace.c (linux_enable_pt): Add cast to mmap return.
417
418 2015-10-23  Simon Marchi  <simon.marchi@ericsson.com>
419
420         * observer.h (observer_${event}_notification_stub): Add cast.
421
422 2015-10-23  Yao Qi  <yao.qi@linaro.org>
423
424         * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set
425         dsd.insn_count to zero.
426
427 2015-10-22  Pedro Alves  <palves@redhat.com>
428
429         * infrun.c (stop_after_trap): Delete.
430         (clear_proceed_status, handle_signal_stop, struct
431         infcall_control_state, save_infcall_control_state)
432         (restore_infcall_control_state): Remove references to
433         stop_after_trap.
434
435 2015-10-22  Simon Marchi  <simon.marchi@ericsson.com>
436
437         * python/python.c (_initialize_python): Add cast.
438
439 2015-10-22  Simon Marchi  <simon.marchi@ericsson.com>
440
441         * nto-tdep.c (nto_inferior_data): Add cast.
442
443 2015-10-22  Pedro Alves  <palves@redhat.com>
444
445         * windows-nat.c (do_initial_windows_stuff): Rewrite loop using
446         windows_wait and windows_resume directly instead of
447         wait_for_inferior and resume.
448
449 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
450
451         * xtensa-tdep.h (XTREG): Add casts.
452         (XTREG_END): Likewise.
453
454 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
455
456         * solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
457
458 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
459
460         * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
461
462 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
463
464         * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
465         buf to gdb_byte*.
466         (supply_32bit_reg): Add cast.
467         (mips64_fill_gregset): Likewise.
468
469 2015-10-21  Simon Marchi  <simon.marchi@polymtl.ca>
470
471         PR python/18073
472         * python/py-type.c (typy_get_composite): Allow returning a
473         function type.
474
475 2015-10-21  Keven Boell  <keven.boell@intel.com>
476
477         * dwarf2read.c (set_die_type): Add read of
478         DW_AT_allocated and DW_AT_associated.
479         * f-typeprint.c: New include of typeprint.h
480         (f_print_type): Add check for allocated/associated
481         status of type.
482         (f_type_print_varspec_suffix): Add check for
483         * gdbtypes.c (create_array_type_with_stride):
484         Add check for valid data location of type in
485         case allocated or associated attributes are set.
486         Length of an array should be only calculated if
487         allocated or associated is resolved as true.
488         (is_dynamic_type_internal): Add check for allocated/
489         associated.
490         (resolve_dynamic_array): Evaluate allocated/associated
491         properties.
492         * gdbtypes.h (enum dynamic_prop_node_kind): <DYN_PROP_ALLOCATED>
493         <DYN_PROP_ASSOCIATED>: New enums.
494         (TYPE_ALLOCATED_PROP, TYPE_ASSOCIATED_PROP): New macros.
495         (type_not_allocated): New function.
496         (type_not_associated): New function.
497         * valarith.c (value_subscripted_rvalue): Add check for
498         allocated/associated.
499         * valprint.c: New include of typeprint.h.
500         (valprint_check_validity): Add check for allocated/associated.
501         (value_check_printable): Add check for allocated/
502         associated.
503         * typeprint.h (val_print_not_allocated): New function.
504         (val_print_not_associated): New function.
505         * typeprint.c (val_print_not_allocated): New function.
506         (val_print_not_associated): New function.
507
508 2015-10-21  Antoine Tremblay  <antoine.tremblay@ericsson.com>
509
510         * Makefile.in: Add arm.c/o.
511         * arch/arm.c: New file.
512         * arch/arm.h: (IS_THUMB_ADDR): Move macro from arm-tdep.c.
513         (MAKE_THUMB_ADDR): Likewise.
514         (UNMAKE_THUMB_ADDR): Likewise.
515         * arm-tdep.c (int thumb_insn_size): Move to arm.c.
516         (IS_THUMB_ADDR): Move to arm.h.
517         (MAKE_THUMB_ADDR): Likewise.
518         (UNMAKE_THUMB_ADDR): Likewise.
519         * configure.tgt: Add arm.o to all ARM configs.
520
521 2015-10-21  Yao Qi  <yao.qi@linaro.org>
522
523         * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
524         Remove argument exp_vCont_s.
525         * gdb.base/range-stepping.exp: Callers updated.
526         * gdb.trace/range-stepping.exp: Likewise.
527
528 2015-10-21  Aleksandar Ristovski  <aristovski@qnx.com>
529
530         * gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
531         (nto_sniff_abi_note_section): New function.
532         (nto_elf_osabi_sniffer): Use new function to recognize nto specific
533         binary.
534
535 2015-10-21  Aleksandar Ristovski  <aristovski@qnx.com>
536
537         * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
538         (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
539         * nto-tdep.c (nto_new_inferior_data_reg): New definition.
540         (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
541         New functions.
542         (_initialize_nto_tdep): New forward declaration, new function.
543         * nto-tdep.h (struct nto_inferior_data): New struct.
544         (nto_inferior_data): New function declaration.
545
546 2015-10-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
547
548         * findvar.c (address_from_register): Check REGNUM validity.
549
550 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
551
552         * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
553         (init_procfs_targets): Wire new function.
554
555 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
556
557         * nto-procfs.c (sys/auxv.h): Include.
558         (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
559         * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
560         * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
561
562 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
563
564         * nto-procfs.c (nto_procfs_path): Rename to...
565         (nodestr): ... this, and change type.
566         (nto_node): Use new variable and logic accordingly.
567         (procfs_open_1): Use new variable name. Use local buffer to construct
568         procfrs path.
569         (procfs_pidlist): Use NODESTR to construct procfs path.
570         (procfs_files_info): Use NODESTR to output meaningful text.
571         (do_attach): Construct procfs using NODESTR.
572         (procfs_create_inferior): Compare pointer to NULL.
573
574 2015-10-19  Josh Stone  <jistone@redhat.com>
575
576         * linux-nat.c (linux_handle_syscall_trap): Always update entry/
577         return state, even when not actively catching syscalls at all.
578         (linux_handle_extended_wait): Mark syscall_state like an entry.
579         (wait_lwp): Set syscall_state ignored for other traps.
580         (linux_nat_filter_event): Likewise.
581
582 2015-10-19  Luis Machado  <lgustavo@codesourcery.com>
583
584         * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
585         when handling 'E', 'T', 'S', 'X' and 'W' packets.
586         Do not set rs->waiting_for_stop_reply back to 1.
587
588 2015-10-16  Aleksandar Ristovski  <aristovski@qnx.com>
589
590         * nto-procfs.c (common/filestuff.h): Include.
591         (procfs_can_use_hw_breakpoint): Fix enum name.
592         (procfs_open_1): Fix compiler warning.
593         (procfs_pidlist): Make static.
594         (procfs_meminfo): Make static, fix type name, add missing argument.
595         (procfs_store_registers): Make static.
596         (procfs_thread_info): Remove unused function.
597         (_initialize_procfs): Forward declare.
598
599 2015-10-16  Yao Qi  <yao.qi@arm.com>
600
601         * MAINTAINERS: Update my email address.
602
603 2015-10-15  Yao Qi  <yao.qi@linaro.org>
604
605         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
606         Call gdbarch_breakpoint_from_pc to instruction length.
607         (aarch64_linux_remove_hw_breakpoint): Likewise.
608         * common/common-regcache.h (regcache_register_size): Declare.
609         * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
610         (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
611         the process is 32bit, otherwise set alignment to 4.
612         (aarch64_handle_breakpoint): Update comments.
613         * regcache.c (regcache_register_size): New function.
614
615 2015-10-15  Aleksandar Ristovski  <aristovski@qnx.com>
616
617         * gdbarch.sh (core_regset_section): Remove.
618         * gdbarch.h: Regenerate.
619
620 2015-10-14  Yao Qi  <yao.qi@linaro.org>
621
622         * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
623         out of it.
624         (enum aarch64_memory_operand_type): New.
625
626 2015-10-13  David Edelsohn  <dje.gcc@gmail.com>
627
628         * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
629
630 2015-10-13  Pedro Alves  <palves@redhat.com>
631
632         * ada-lang.c (ada_enum_name): Constify local.
633         * ada-typeprint.c (print_range_bound): Constify locals.
634         * c-varobj.c (c_describe_child): Likewise.
635         * cli/cli-setshow.c (do_set_command): Likewise.
636         * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
637         * dwarf2read.c (find_file_and_directory): Likewise.
638         (anonymous_struct_prefix, dwarf2_name): Likewise.
639         * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
640         * go-lang.c (unpack_mangled_go_symbol): Likewise.
641         * jv-typeprint.c (java_type_print_base): Likewise.
642         * ser-tcp.c (net_open): Likewise.
643         * symfile.c (deduce_language_from_filename): Likewise.
644         * symtab.c (gdb_mangle_name): Likewise.
645         * tui/tui-io.c (tui_redisplay_readline): Likewise.
646
647 2015-10-13  Pedro Alves  <palves@redhat.com>
648
649         * infrun.c (restore_execution_direction): New function.
650         (fetch_inferior_event): Use it instead of
651         make_cleanup_restore_integer.
652         (execution_direction): Change type to enum
653         exec_direction_kind.
654         * infrun.h (execution_direction): Likewise.
655
656 2015-10-13  Pedro Alves  <palves@redhat.com>
657
658         * ada-lang.c (ada_value_primitive_packed_val): Constify
659         locals.  Use value_contents_writeable.  Remove casts.
660
661 2015-10-13  Pedro Alves  <palves@redhat.com>
662
663         * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
664         and alloca calls.
665
666 2015-10-13  Simon Marchi  <simon.marchi@polymtl.ca>
667
668         * lm32-tdep.c (lm32_push_dummy_call): Replace call to
669         write_memory with write_memory_unsigned_integer.
670
671 2015-10-13  Simon Marchi  <simon.marchi@polymtl.ca>
672
673         * solib-dsbt.c (cmp_name): Constify arguments.
674         * solib-frv.c (cmp_name): Likewise.
675         * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
676         * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
677         (bfd_lookup_symbol_from_dyn_symtab): Likewise.
678         (gdb_bfd_lookup_symbol): Likewise.
679         * solib.h (gdb_bfd_lookup_symbol): Likewise.
680         (gdb_bfd_lookup_symbol_from_symtab): Likewise.
681
682 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
683
684         * stack.c (parse_frame_specification): Remove message parameter,
685         replace with fixed string in function body, update function
686         comment.
687         (frame_info): Remove message to parse_frame_specification.
688         (select_frame_command): Likewise.
689
690 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
691
692         * stack.c (parse_frame_specification): Delete.
693         (parse_frame_specification_1): Rename to
694         parse_frame_specification.
695         (frame_info): Use parse_frame_specification.
696         (select_frame_command): Likewise.
697         (return_command): Use select_frame and print_stack_frame rather
698         than frame_command and select_frame_command.
699         (func_command): Use get_current_frame rather than
700         parse_frame_specification.
701
702 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
703
704         * stack.c (func_command): Return early when there is no ARG
705         string.
706
707 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
708
709         * stack.c: Include safe-ctype.h not ctype.h.
710         (parse_frame_specification): Use ISSPACE not isspace.
711         (backtrace_command): Use TOLOWER not tolower.
712
713 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
714
715         * mep-tdep.c (current_me_module): Add cast.
716         (mep_gdbarch_init): Likewise.
717
718 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
719
720         * m32c-tdep.c (m32c_move_reg_t): Replace with...
721         (m32c_write_reg_t): ...this and...
722         (m32c_read_reg_t): ...this.
723         (struct m32c_reg): Update types of read and write.
724         (m32c_raw_read): Change declaration type to m32c_read_reg_t and
725         adjust definition.
726         (m32c_banked_read): Likewise.
727         (m32c_sb_read): Likewise.
728         (m32c_part_read): Likewise.
729         (m32c_cat_read): Likewise.
730         (m32c_r3r2r1r0_read): Likewise.
731         (m32c_raw_write): Change declaration type to m32c_write_reg_t
732         and adjust definition.
733         (m32c_banked_write): Likewise.
734         (m32c_sb_write): Likewise.
735         (m32c_part_write): Likewise.
736         (m32c_cat_write): Likewise.
737         (m32c_r3r2r1r0_write): Likewise.
738
739 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
740
741         * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
742
743 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
744
745         * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
746         gdb_sys_no_syscall instead of -1.
747
748 2015-10-12  Yao Qi  <yao.qi@linaro.org>
749
750         * NEWS: Mention the change.
751
752 2015-10-12  Yao Qi  <yao.qi@linaro.org>
753
754         * arch/aarch64-insn.c (emit_load_store): Rename to ...
755         (aarch64_emit_load_store): ... it.  All callers updated.
756
757 2015-10-12  Yao Qi  <yao.qi@linaro.org>
758
759         * arch/aarch64-insn.c (emit_insn): Rename to ...
760         (aarch64_emit_insn): ... it.  All callers updated.
761
762 2015-10-12  Yao Qi  <yao.qi@linaro.org>
763
764         * aarch64-linux-tdep.c: Include arch-utils.h.
765         (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
766         set_gdbarch_displaced_step_copy_insn,
767         set_gdbarch_displaced_step_fixup,
768         set_gdbarch_displaced_step_free_closure,
769         set_gdbarch_displaced_step_location,
770         and set_gdbarch_displaced_step_hw_singlestep.
771         * aarch64-tdep.c (struct displaced_step_closure): New.
772         (struct aarch64_displaced_step_data): New.
773         (aarch64_displaced_step_b): New function.
774         (aarch64_displaced_step_b_cond): Likewise.
775         (aarch64_register): Likewise.
776         (aarch64_displaced_step_cb): Likewise.
777         (aarch64_displaced_step_tb): Likewise.
778         (aarch64_displaced_step_adr): Likewise.
779         (aarch64_displaced_step_ldr_literal): Likewise.
780         (aarch64_displaced_step_others): Likewise.
781         (aarch64_displaced_step_copy_insn): Likewise.
782         (aarch64_displaced_step_fixup): Likewise.
783         (aarch64_displaced_step_hw_singlestep): Likewise.
784         * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
785         (aarch64_displaced_step_copy_insn): Declare.
786         (aarch64_displaced_step_fixup): Declare.
787         (aarch64_displaced_step_hw_singlestep): Declare.
788         * arch/aarch64-insn.c (emit_insn): Moved from
789         gdbserver/linux-aarch64-low.c.
790         (emit_load_store): Likewise.
791         * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
792         gdbserver/linux-aarch64-low.c.
793         (struct aarch64_register): Likewise.
794         (struct aarch64_memory_operand): Likewise.
795         (ENCODE): Likewise.
796         (can_encode_int32): New macro.
797         (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
798         (emit_tb, emit_nop): Likewise.
799         (emit_insn): Declare.
800         (emit_load_store): Declare.
801
802 2015-10-12  Yao Qi  <yao.qi@linaro.org>
803
804         * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
805         gdbserver/linux-aarch64-low.c.
806         (aarch64_relocate_instruction): Likewise.
807         * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
808         (struct aarch64_insn_data): Moved from
809         gdbserver/linux-aarch64-low.c.
810         (struct aarch64_insn_visitor): Likewise.
811         (aarch64_relocate_instruction): Declare.
812
813 2015-10-12  Pierre-Marie de Rodat  <derodat@adacore.com>
814
815         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
816         EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
817         to the returned value.
818
819 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
820
821         * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
822         is large enough for BIT_SIZE.  Update function comment.
823
824 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
825
826         * ada-lang.c (ada_value_primitive_packed_val): Move
827         src_len variable to local block where used.  Override
828         BIT_SIZE if bigger than size of resolved type.
829
830 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
831
832         * gdbtypes.h (is_scalar_type): Add extern declaration.
833         * gdbtypes.c (is_scalar_type): Make non-static.
834         * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
835         to compute IS_SCALAR instead of doing it ourselves.
836
837 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
838
839         * ada-lang.c (ada_value_primitive_packed_val): Rework handling
840         of case where TYPE is dynamic.
841
842 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
843
844         * ada-lang.c (ada_unpack_from_contents): New function,
845         extracted from ada_value_primitive_packed_val.
846         (ada_value_primitive_packed_val): Replace extracted out code
847         by call to ada_unpack_from_contents.
848
849 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
850
851         * ada-lang.c (ada_value_primitive_packed_val): Reorder local
852         variable declarations.
853
854 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
855
856         * ada-lang.c (ada_value_primitive_packed_val): Change the type
857         of local variables src and unpacked to "gdb_type *" instead of
858         "unsigned char *".
859
860 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
861
862         * ada-lang.c (ada_value_primitive_packed_val): Make the name
863         of various local variables more explicit and consistent.
864         No real code change otherwise.
865
866 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
867
868         * i386-tdep.h (struct gdbarch_tdep): Change type of
869         register_reggroup_p to gdbarch_register_reggroup_p_ftype.
870
871 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
872
873         * cris-tdep.c (struct instruction_environment): Change type of
874         byte_order to enum bfd_endian.
875
876 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
877
878         * arm-linux-tdep.c (arm_canonicalize_syscall): Add
879         enum gdb_syscall casts.
880
881 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
882
883         * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
884         * arm-tdep.c (struct stack_item): Likewise.
885         (push_stack_item): Add gdb_byte* cast.
886         * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
887         (push_stack_item): Add gdb_byte* cast.
888         * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
889         and add cast.
890         * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
891         (push_stack_item): Add gdb_byte* cast.
892         * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
893         add cast.
894         * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
895         gdb_byte*.
896         * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
897         gdb_byte* and remove unnecessary cast.
898         (h8300h_extract_return_value): Likewise.
899         (h8300_store_return_value): Change type of valbuf to gdb_byte*.
900         (h8300h_store_return_value): Likewise.
901         * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
902         gdb_byte* and remove unnecessary cast.
903         * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
904         and add cast.
905         * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
906         gdb_byte* and remove unnecessary cast.
907         (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
908         valbuf.
909         * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
910         (mep_pseudo_cr64_read): Likewise.
911         (mep_pseudo_csr_write): Likewise.
912         (mep_pseudo_cr32_write): Likewise.
913         (mep_pseudo_cr64_write): Likewise.
914         * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
915         gdb_byte* and add cast.
916         * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
917         gdb_byte* and remove unnecessary cast.
918         (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
919         valbuf.
920         * p-valprint.c (print_scalar_formatted): Change type of valaddr to
921         gdb_byte*.
922         * printcmd.c (void): Likewise.
923         * python/py-inferior.c (infpy_read_memory): Change type of buffer to
924         gdb_byte* and add cast.
925         (infpy_write_memory): Likewise.
926         (infpy_search_memory): Likewise.
927         * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
928         and add cast.
929         (regcache_raw_write_unsigned): Likewise.
930         (regcache_cooked_write_signed): Likewise.
931         (regcache_cooked_write_unsigned): Likewise.
932         * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
933         gdb_byte*.
934
935 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
936
937         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
938         * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
939
940 2015-10-09  Eli Zaretskii  <eliz@gnu.org>
941
942         * stack.c (print_stack_frame):
943         * utils.c (printchar): Fix typos in commentary.
944
945 2015-10-08  Iain Buclaw  <ibuclaw@gdcproject.org>
946
947         * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
948         (PostfixExpression): Support `expr.sizeof' expressions.
949         (PrimaryExpression): Support `typeof(expr)' expressions.
950
951 2015-10-08  Maciej W. Rozycki  <macro@imgtec.com>
952
953         * MAINTAINERS: Update my email address.
954
955 2015-10-08  Markus Metzger  <markus.t.metzger@intel.com>
956
957         * record-btrace.c (record_btrace_resume): Fix void return.
958
959 2015-10-07  Yao Qi  <yao.qi@linaro.org>
960
961         * aarch64-tdep.c: Include opcode/aarch64.h.
962         (submask): Move it above.
963         (bit): Likewise.
964         (bits): Likewise.
965         (aarch64_software_single_step): Call aarch64_decode_insn.
966         Decode instruction by aarch64_inst instead of using
967         aarch64_decode_bcond and decode_masked_match.
968
969 2015-10-06  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
970
971         * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
972         only when the file is binary.
973
974 2015-10-02  James Bowman  <james.bowman@ftdichip.com>
975
976         * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
977         subroutine handling.
978
979 2015-10-01  Simon Marchi  <simon.marchi@ericsson.com>
980
981         * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
982
983 2015-09-30  Doug Evans  <dje@google.com>
984
985         * dwarf2read.c (setup_type_unit_groups): Add comment.
986
987 2015-09-30  Pedro Alves  <palves@redhat.com>
988
989         * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
990         * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
991         (x86_linux_create_target): Don't install
992         x86_linux_always_non_stop_p.
993
994 2015-09-30  Don Breazeal  <donb@codesourcery.com>
995
996         * remote.c (remote_parse_stop_reply): Call strprefix instead
997         of strncmp.
998
999 2015-09-30  Simon Marchi  <simon.marchi@ericsson.com>
1000
1001         * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
1002         * gdbarch.h: Regenerate.
1003         * i386-tdep.c (i386_gdbarch_init): Remove cast to
1004         struct gdbarch_tdep_info *.
1005         * mips-tdep.c (mips_gdbarch_init): Likewise.
1006         * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
1007         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
1008         * spu-multiarch.c (spu_gdbarch): Likewise.
1009
1010 2015-09-30  Kevin Buettner  <kevinb@redhat.com>
1011
1012         * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
1013         record a NULL value.
1014
1015 2015-09-29  Kevin Buettner  <kevinb@redhat.com>
1016
1017         * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
1018         and union arguments the same as pointer arguments when determining
1019         size of argument.
1020
1021 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
1022
1023         * ft32-tdep.c: #include "opcode/ft32.h".
1024         Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
1025         (ft32_analyze_prologue): Use FT32_* macros.
1026
1027 2015-09-28  Simon Marchi  <simon.marchi@ericsson.com>
1028
1029         * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
1030         comment.
1031
1032 2015-09-28  Doug Evans  <dje@google.com>
1033
1034         * MAINTAINERS: Add Iain Buclaw as D language maintainer.
1035
1036 2015-09-28  Doug Evans  <dje@google.com>
1037
1038         * common/filestuff.c (make_cleanup_close): Update comment.
1039
1040 2015-09-26  Simon Marchi  <simon.marchi@polymtl.ca>
1041
1042         * btrace.c (parse_xml_btrace_block): Fix cast of
1043         xml_find_attribute's return value.
1044         * memory-map.c (memory_map_start_memory): Likewise.
1045         * solib-svr4.c (library_list_start_library): Likewise.
1046         * solib-target.c (library_list_start_segment): Likewise.
1047         (library_list_start_section): Likewise.
1048         * tracepoint.c (traceframe_info_start_memory): Likewise.
1049
1050 2015-09-26  Iain Buclaw  <ibuclaw@gdcproject.org>
1051
1052         * d-namespace.c (d_lookup_symbol): New arg langdef.
1053         All callers updated.  Support looking up symbol as a primitive type.
1054         (lookup_module_scope): New arg langdef.  All callers updated.
1055         Call d_lookup_symbol directly for simple bare symbols.
1056
1057 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
1058
1059         * macrocmd.c (print_macro_callback): Add cast(s).
1060         * macrotab.c (macro_bcache_str): Likewise.
1061         (new_macro_definition): Likewise.
1062         * main.c (captured_main): Likewise.
1063         * maint.c (print_bfd_section_info): Likewise.
1064         * mdebugread.c (mdebug_build_psymtabs): Likewise.
1065         (basic_type): Likewise.
1066         * memattr.c (mem_region_cmp): Likewise.
1067         * memory-map.c (memory_map_start_memory): Likewise.
1068         (memory_map_end_memory): Likewise.
1069         (memory_map_start_property): Likewise.
1070         (memory_map_end_property): Likewise.
1071         (clear_result): Likewise.
1072         * memrange.c (compare_mem_ranges): Likewise.
1073         * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
1074         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
1075         * mi/mi-console.c (mi_console_file_delete): Likewise.
1076         (mi_console_file_fputs): Likewise.
1077         (mi_console_raw_packet): Likewise.
1078         (mi_console_file_flush): Likewise.
1079         (mi_console_set_raw): Likewise.
1080         * mi/mi-interp.c (mi_interpreter_resume): Likewise.
1081         (mi_new_thread): Likewise.
1082         (mi_thread_exit): Likewise.
1083         (mi_record_changed): Likewise.
1084         (mi_inferior_added): Likewise.
1085         (mi_inferior_appeared): Likewise.
1086         (mi_inferior_exit): Likewise.
1087         (mi_inferior_removed): Likewise.
1088         (mi_interp_data): Likewise.
1089         (mi_on_normal_stop): Likewise.
1090         (mi_traceframe_changed): Likewise.
1091         (mi_tsv_created): Likewise.
1092         (mi_tsv_deleted): Likewise.
1093         (mi_tsv_modified): Likewise.
1094         (mi_breakpoint_created): Likewise.
1095         (mi_breakpoint_deleted): Likewise.
1096         (mi_breakpoint_modified): Likewise.
1097         (mi_output_running_pid): Likewise.
1098         (mi_inferior_count): Likewise.
1099         (mi_solib_loaded): Likewise.
1100         (mi_solib_unloaded): Likewise.
1101         (mi_command_param_changed): Likewise.
1102         (mi_memory_changed): Likewise.
1103         (report_initial_inferior): Likewise.
1104         (mi_ui_out): Likewise.
1105         (mi_set_logging): Likewise.
1106         * mi/mi-main.c (collect_cores): Likewise.
1107         (print_one_inferior): Likewise.
1108         (free_vector_of_ints): Likewise.
1109         (free_splay_tree): Likewise.
1110         (mi_execute_command): Likewise.
1111         * mi/mi-out.c (mi_table_body): Likewise.
1112         (mi_table_end): Likewise.
1113         (mi_table_header): Likewise.
1114         (mi_begin): Likewise.
1115         (mi_end): Likewise.
1116         (mi_field_int): Likewise.
1117         (mi_field_string): Likewise.
1118         (mi_field_fmt): Likewise.
1119         (mi_flush): Likewise.
1120         (mi_redirect): Likewise.
1121         (field_separator): Likewise.
1122         (mi_open): Likewise.
1123         (mi_close): Likewise.
1124         (mi_out_buffered): Likewise.
1125         (mi_out_rewind): Likewise.
1126         (mi_out_put): Likewise.
1127         (mi_version): Likewise.
1128         (mi_out_data_dtor): Likewise.
1129         * mi/mi-parse.c (mi_parse_cleanup): Likewise.
1130         * microblaze-tdep.c (microblaze_frame_cache): Likewise.
1131         * minidebug.c (lzma_open): Likewise.
1132         (lzma_pread): Likewise.
1133         (lzma_close): Likewise.
1134         (lzma_stat): Likewise.
1135         * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1136         * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
1137         (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
1138         * mips-tdep.c (mips_insn16_frame_cache): Likewise.
1139         (mips_micro_frame_cache): Likewise.
1140         (mips_insn32_frame_cache): Likewise.
1141         (mips_stub_frame_cache): Likewise.
1142         (gdb_print_insn_mips): Likewise.
1143         (value_of_mips_user_reg): Likewise.
1144         (mips_gdbarch_init): Likewise.
1145         * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
1146         * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
1147         (mipsnbsd_supply_gregset): Likewise.
1148         * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
1149         (am33_collect_gregset_method): Likewise.
1150         (am33_collect_fpregset_method): Likewise.
1151         * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
1152         * moxie-tdep.c (moxie_frame_cache): Likewise.
1153         * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
1154         (msp430_analyze_frame_prologue): Likewise.
1155         * mt-tdep.c (mt_frame_unwind_cache): Likewise.
1156         * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
1157         (nios2_collect_gregset): Likewise.
1158         * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
1159         (nios2_stub_frame_cache): Likewise.
1160         * objc-lang.c (find_methods): Likewise.
1161         * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1162         (get_objfile_pspace_data): Likewise.
1163         (get_objfile_bfd_data): Likewise.
1164         (objfile_bfd_data_free): Likewise.
1165         (add_to_objfile_sections): Likewise.
1166         (do_free_objfile_cleanup): Likewise.
1167         (resume_section_map_updates_cleanup): Likewise.
1168         * opencl-lang.c (builtin_opencl_type): Likewise.
1169         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1170         * osdata.c (osdata_start_osdata): Likewise.
1171         (osdata_start_item): Likewise.
1172         (osdata_start_column): Likewise.
1173         (osdata_end_column): Likewise.
1174         (clear_parsing_data): Likewise.
1175         (osdata_free_cleanup): Likewise.
1176         * parse.c (type_stack_cleanup): Likewise.
1177         (exp_uses_objfile_iter): Likewise.
1178         * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
1179         (ppc_linux_collect_gregset): Likewise.
1180         (ppu2spu_prev_arch): Likewise.
1181         (ppu2spu_this_id): Likewise.
1182         (ppu2spu_prev_register): Likewise.
1183         (ppu2spu_unwind_register): Likewise.
1184         (ppu2spu_sniffer): Likewise.
1185         (ppu2spu_dealloc_cache): Likewise.
1186         (ppc_linux_init_abi): Likewise.
1187         * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
1188         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1189         * progspace.c (restore_program_space): Likewise.
1190         * psymtab.c (find_pc_sect_psymtab): Likewise.
1191         (compare_psymbols): Likewise.
1192         (psymbol_bcache_full): Likewise.
1193         (allocate_psymtab): Likewise.
1194         (discard_psymtabs_upto): Likewise.
1195         * python/py-block.c (set_block): Likewise.
1196         (del_objfile_blocks): Likewise.
1197         * python/py-breakpoint.c (build_bp_list): Likewise.
1198         * python/py-inferior.c (inferior_to_inferior_object): Likewise.
1199         (build_inferior_list): Likewise.
1200         (py_free_inferior): Likewise.
1201         * python/py-objfile.c (py_free_objfile): Likewise.
1202         (objfile_to_objfile_object): Likewise.
1203         * python/py-prettyprint.c (py_restore_tstate): Likewise.
1204         * python/py-progspace.c (py_free_pspace): Likewise.
1205         (pspace_to_pspace_object): Likewise.
1206         * python/py-symbol.c (set_symbol): Likewise.
1207         (del_objfile_symbols): Likewise.
1208         * python/py-symtab.c (set_sal): Likewise.
1209         (set_symtab): Likewise.
1210         (del_objfile_symtab): Likewise.
1211         (del_objfile_sal): Likewise.
1212         * python/py-type.c (save_objfile_types): Likewise.
1213         (set_type): Likewise.
1214         * python/py-unwind.c (pyuw_prev_register): Likewise.
1215         (pyuw_on_new_gdbarch): Likewise.
1216         * python/py-utils.c (py_decref): Likewise.
1217         (py_xdecref): Likewise.
1218         (gdb_py_generic_dict): Likewise.
1219         * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
1220         (gdbpy_clone_xmethod_worker_data): Likewise.
1221         (gdbpy_get_xmethod_arg_types): Likewise.
1222         (gdbpy_get_xmethod_result_type): Likewise.
1223         (gdbpy_invoke_xmethod): Likewise.
1224         * python/python.c (gdbpy_apply_type_printers): Likewise.
1225         (gdbpy_free_type_printers): Likewise.
1226         * record-btrace.c (record_btrace_disable_callback): Likewise.
1227         (bfcache_hash): Likewise.
1228         (bfcache_eq): Likewise.
1229         (btrace_get_frame_function): Likewise.
1230         (record_btrace_frame_unwind_stop_reason): Likewise.
1231         (record_btrace_frame_this_id): Likewise.
1232         (record_btrace_frame_prev_register): Likewise.
1233         (record_btrace_frame_dealloc_cache): Likewise.
1234         * record-full.c (record_full_message_wrapper): Likewise.
1235         (record_full_save_cleanups): Likewise.
1236         * regcache.c (regcache_descr): Likewise.
1237         (do_regcache_xfree): Likewise.
1238         (do_regcache_invalidate): Likewise.
1239         (do_cooked_read): Likewise.
1240         (regcache_transfer_regset): Likewise.
1241         * reggroups.c (reggroup_add): Likewise.
1242         (reggroup_next): Likewise.
1243         (reggroup_prev): Likewise.
1244         * remote-fileio.c (do_remote_fileio_request): Likewise.
1245         * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
1246         (do_notif_event_xfree): Likewise.
1247         * remote.c (get_remote_arch_state): Likewise.
1248         (remote_pspace_data_cleanup): Likewise.
1249         (get_remote_exec_file): Likewise.
1250         (set_pspace_remote_exec_file): Likewise.
1251         (compare_pnums): Likewise.
1252         (clear_threads_listing_context): Likewise.
1253         (remote_newthread_step): Likewise.
1254         (start_thread): Likewise.
1255         (end_thread): Likewise.
1256         (remove_child_of_pending_fork): Likewise.
1257         (remove_stop_reply_for_inferior): Likewise.
1258         (remove_stop_reply_of_remote_state): Likewise.
1259         (remote_notif_remove_once_on_match): Likewise.
1260         (stop_reply_match_ptid_and_ws): Likewise.
1261         (kill_child_of_pending_fork): Likewise.
1262         (register_remote_g_packet_guess): Likewise.
1263         (remote_read_description_p): Likewise.
1264         (remote_read_description): Likewise.
1265         (free_actions_list_cleanup_wrapper): Likewise.
1266         (remote_async_serial_handler): Likewise.
1267         * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
1268         (rl78_analyze_frame_prologue): Likewise.
1269         * rs6000-tdep.c (ppc_supply_gregset): Likewise.
1270         (ppc_supply_fpregset): Likewise.
1271         (ppc_supply_vsxregset): Likewise.
1272         (ppc_supply_vrregset): Likewise.
1273         (ppc_collect_gregset): Likewise.
1274         (ppc_collect_fpregset): Likewise.
1275         (ppc_collect_vsxregset): Likewise.
1276         (ppc_collect_vrregset): Likewise.
1277         (e500_move_ev_register): Likewise.
1278         (do_regcache_raw_write): Likewise.
1279         (rs6000_frame_cache): Likewise.
1280         (rs6000_epilogue_frame_cache): Likewise.
1281         (rs6000_gdbarch_init): Likewise.
1282         * rx-tdep.c (rx_get_opcode_byte): Likewise.
1283         (rx_analyze_frame_prologue): Likewise.
1284         (rx_frame_type): Likewise.
1285         (rx_frame_sniffer_common): Likewise.
1286         * s390-linux-tdep.c (s390_check_for_saved): Likewise.
1287         (s390_frame_unwind_cache): Likewise.
1288         (s390_stub_frame_unwind_cache): Likewise.
1289         (s390_sigtramp_frame_unwind_cache): Likewise.
1290         * score-tdep.c (score_make_prologue_cache): Likewise.
1291         * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
1292         (sentinel_frame_prev_arch): Likewise.
1293         * ser-base.c (fd_event): Likewise.
1294         (push_event): Likewise.
1295         (ser_base_write): Likewise.
1296         * ser-pipe.c (pipe_close): Likewise.
1297         * serial.c (serial_write): Likewise.
1298         * sh-tdep.c (sh_frame_cache): Likewise.
1299         (sh_stub_this_id): Likewise.
1300         * sh64-tdep.c (sh64_frame_cache): Likewise.
1301         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
1302         (library_list_start_library): Likewise.
1303         (library_list_start_list): Likewise.
1304         (solib_aix_free_library_list): Likewise.
1305         * solib-darwin.c (get_darwin_info): Likewise.
1306         * solib-dsbt.c (get_dsbt_info): Likewise.
1307         * solib-spu.c (append_ocl_sos): Likewise.
1308         * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1309         (get_svr4_info): Likewise.
1310         (library_list_start_library): Likewise.
1311         (svr4_library_list_start_list): Likewise.
1312         (hash_probe_and_action): Likewise.
1313         (equal_probe_and_action): Likewise.
1314         (svr4_update_solib_event_breakpoint): Likewise.
1315         (set_solib_svr4_fetch_link_map_offsets): Likewise.
1316         (svr4_fetch_link_map_offsets): Likewise.
1317         (svr4_have_link_map_offsets): Likewise.
1318         * solib-target.c (library_list_start_segment): Likewise.
1319         (library_list_start_section): Likewise.
1320         (library_list_start_library): Likewise.
1321         (library_list_end_library): Likewise.
1322         (library_list_start_list): Likewise.
1323         (solib_target_free_library_list): Likewise.
1324         * solib.c (solib_ops): Likewise.
1325         (set_solib_ops): Likewise.
1326         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1327         * sparc-tdep.c (sparc_frame_cache): Likewise.
1328         (sparc32_frame_cache): Likewise.
1329         (sparc32_supply_gregset): Likewise.
1330         (sparc32_collect_gregset): Likewise.
1331         (sparc32_supply_fpregset): Likewise.
1332         (sparc32_collect_fpregset): Likewise.
1333         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1334         * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1335         (sparc64_collect_gregset): Likewise.
1336         (sparc64_supply_fpregset): Likewise.
1337         (sparc64_collect_fpregset): Likewise.
1338         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
1339         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
1340         * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
1341         (sparc64obsd_trapframe_cache): Likewise.
1342         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
1343         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
1344         * spu-multiarch.c (spu_gdbarch): Likewise.
1345         * spu-tdep.c (spu_frame_unwind_cache): Likewise.
1346         (spu2ppu_prev_arch): Likewise.
1347         (spu2ppu_this_id): Likewise.
1348         (spu2ppu_prev_register): Likewise.
1349         (spu2ppu_dealloc_cache): Likewise.
1350         (spu_dis_asm_print_address): Likewise.
1351         (gdb_print_insn_spu): Likewise.
1352         (spu_get_overlay_table): Likewise.
1353         * stabsread.c (rs6000_builtin_type): Likewise.
1354         * stack.c (do_print_variable_and_value): Likewise.
1355         * stap-probe.c (get_stap_base_address_1): Likewise.
1356         * symfile-debug.c (debug_qf_has_symbols): Likewise.
1357         (debug_qf_find_last_source_symtab): Likewise.
1358         (debug_qf_forget_cached_source_info): Likewise.
1359         (debug_qf_map_symtabs_matching_filename): Likewise.
1360         (debug_qf_lookup_symbol): Likewise.
1361         (debug_qf_print_stats): Likewise.
1362         (debug_qf_dump): Likewise.
1363         (debug_qf_relocate): Likewise.
1364         (debug_qf_expand_symtabs_for_function): Likewise.
1365         (debug_qf_expand_all_symtabs): Likewise.
1366         (debug_qf_expand_symtabs_with_fullname): Likewise.
1367         (debug_qf_map_matching_symbols): Likewise.
1368         (debug_qf_expand_symtabs_matching): Likewise.
1369         (debug_qf_find_pc_sect_compunit_symtab): Likewise.
1370         (debug_qf_map_symbol_filenames): Likewise.
1371         (debug_sym_get_probes): Likewise.
1372         (debug_sym_new_init): Likewise.
1373         (debug_sym_init): Likewise.
1374         (debug_sym_read): Likewise.
1375         (debug_sym_read_psymbols): Likewise.
1376         (debug_sym_finish): Likewise.
1377         (debug_sym_offsets): Likewise.
1378         (debug_sym_read_linetable): Likewise.
1379         (debug_sym_relocate): Likewise.
1380         (uninstall_symfile_debug_logging): Likewise.
1381         * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
1382         * symfile.c (place_section): Likewise.
1383         (add_section_size_callback): Likewise.
1384         (load_progress): Likewise.
1385         (load_section_callback): Likewise.
1386         (clear_memory_write_data): Likewise.
1387         (allocate_symtab): Likewise.
1388         * symmisc.c (maintenance_expand_file_matcher): Likewise.
1389         * symtab.c (lookup_symtab_callback): Likewise.
1390         (hash_demangled_name_entry): Likewise.
1391         (eq_demangled_name_entry): Likewise.
1392         (get_symbol_cache): Likewise.
1393         (symbol_cache_cleanup): Likewise.
1394         (set_symbol_cache_size): Likewise.
1395         (symbol_cache_flush): Likewise.
1396         (maintenance_print_symbol_cache): Likewise.
1397         (maintenance_print_symbol_cache_statistics): Likewise.
1398         (delete_filename_seen_cache): Likewise.
1399         (output_partial_symbol_filename): Likewise.
1400         (search_symbols_file_matches): Likewise.
1401         (search_symbols_name_matches): Likewise.
1402         (do_free_completion_list): Likewise.
1403         (maybe_add_partial_symtab_filename): Likewise.
1404         (get_main_info): Likewise.
1405         (main_info_cleanup): Likewise.
1406         * target-dcache.c (target_dcache_cleanup): Likewise.
1407         (target_dcache_init_p): Likewise.
1408         (target_dcache_invalidate): Likewise.
1409         (target_dcache_get): Likewise.
1410         (target_dcache_get_or_init): Likewise.
1411         * target-descriptions.c (target_find_description): Likewise.
1412         (tdesc_find_type): Likewise.
1413         (tdesc_data_cleanup): Likewise.
1414         (tdesc_find_arch_register): Likewise.
1415         (tdesc_register_name): Likewise.
1416         (tdesc_register_type): Likewise.
1417         (tdesc_register_reggroup_p): Likewise.
1418         (set_tdesc_pseudo_register_name): Likewise.
1419         (set_tdesc_pseudo_register_type): Likewise.
1420         (set_tdesc_pseudo_register_reggroup_p): Likewise.
1421         (tdesc_use_registers): Likewise.
1422         (free_target_description): Likewise.
1423         * target-memory.c (compare_block_starting_address): Likewise.
1424         (cleanup_request_data): Likewise.
1425         (cleanup_write_requests_vector): Likewise.
1426         * target.c (open_target): Likewise.
1427         (cleanup_restore_target_terminal): Likewise.
1428         (free_memory_read_result_vector): Likewise.
1429         * thread.c (disable_thread_stack_temporaries): Likewise.
1430         (finish_thread_state_cleanup): Likewise.
1431         (do_restore_current_thread_cleanup): Likewise.
1432         (restore_current_thread_cleanup_dtor): Likewise.
1433         (set_thread_refcount): Likewise.
1434         (tp_array_compar): Likewise.
1435         (do_captured_thread_select): Likewise.
1436         * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
1437         (tic6x_stub_this_id): Likewise.
1438         * tilegx-tdep.c (tilegx_frame_cache): Likewise.
1439         * top.c (do_restore_instream_cleanup): Likewise.
1440         (gdb_readline_wrapper_cleanup): Likewise.
1441         (kill_or_detach): Likewise.
1442         (print_inferior_quit_action): Likewise.
1443         * tracefile-tfile.c (match_blocktype): Likewise.
1444         (build_traceframe_info): Likewise.
1445         * tracefile.c (trace_file_writer_xfree): Likewise.
1446         * tracepoint.c (memrange_cmp): Likewise.
1447         (do_collect_symbol): Likewise.
1448         (do_clear_collection_list): Likewise.
1449         (do_restore_current_traceframe_cleanup): Likewise.
1450         (restore_current_traceframe_cleanup_dtor): Likewise.
1451         (free_current_marker): Likewise.
1452         (traceframe_info_start_memory): Likewise.
1453         (traceframe_info_start_tvar): Likewise.
1454         (free_result): Likewise.
1455         * tramp-frame.c (tramp_frame_cache): Likewise.
1456         * tui/tui-file.c (tui_file_delete): Likewise.
1457         (tui_fileopen): Likewise.
1458         (tui_sfileopen): Likewise.
1459         (tui_file_isatty): Likewise.
1460         (tui_file_rewind): Likewise.
1461         (tui_file_put): Likewise.
1462         (tui_file_fputs): Likewise.
1463         (tui_file_get_strbuf): Likewise.
1464         (tui_file_adjust_strbuf): Likewise.
1465         (tui_file_flush): Likewise.
1466         * tui/tui-layout.c (make_command_window): Likewise.
1467         (make_data_window): Likewise.
1468         (show_source_disasm_command): Likewise.
1469         (show_data): Likewise.
1470         (make_source_or_disasm_window): Likewise.
1471         (show_source_or_disasm_and_command): Likewise.
1472         * tui/tui-out.c (tui_field_int): Likewise.
1473         (tui_field_string): Likewise.
1474         (tui_field_fmt): Likewise.
1475         (tui_text): Likewise.
1476         * typeprint.c (hash_typedef_field): Likewise.
1477         (eq_typedef_field): Likewise.
1478         (do_free_typedef_hash): Likewise.
1479         (copy_typedef_hash_element): Likewise.
1480         (do_free_global_table): Likewise.
1481         (find_global_typedef): Likewise.
1482         (find_typedef_in_hash): Likewise.
1483         * ui-file.c (ui_file_write_for_put): Likewise.
1484         (do_ui_file_xstrdup): Likewise.
1485         (mem_file_delete): Likewise.
1486         (mem_file_rewind): Likewise.
1487         (mem_file_put): Likewise.
1488         (mem_file_write): Likewise.
1489         (stdio_file_delete): Likewise.
1490         (stdio_file_flush): Likewise.
1491         (stdio_file_read): Likewise.
1492         (stdio_file_write): Likewise.
1493         (stdio_file_write_async_safe): Likewise.
1494         (stdio_file_fputs): Likewise.
1495         (stdio_file_isatty): Likewise.
1496         (stdio_file_fseek): Likewise.
1497         (tee_file_delete): Likewise.
1498         (tee_file_flush): Likewise.
1499         (tee_file_write): Likewise.
1500         (tee_file_fputs): Likewise.
1501         (tee_file_isatty): Likewise.
1502         * ui-out.c (do_cleanup_table_end): Likewise.
1503         (do_cleanup_end): Likewise.
1504         * user-regs.c (user_reg_add): Likewise.
1505         (user_reg_map_name_to_regnum): Likewise.
1506         (usernum_to_user_reg): Likewise.
1507         (maintenance_print_user_registers): Likewise.
1508         * utils.c (do_bfd_close_cleanup): Likewise.
1509         (do_fclose_cleanup): Likewise.
1510         (do_obstack_free): Likewise.
1511         (do_ui_file_delete): Likewise.
1512         (do_ui_out_redirect_pop): Likewise.
1513         (do_free_section_addr_info): Likewise.
1514         (restore_integer): Likewise.
1515         (do_unpush_target): Likewise.
1516         (do_htab_delete_cleanup): Likewise.
1517         (do_restore_ui_file): Likewise.
1518         (do_value_free): Likewise.
1519         (do_free_so): Likewise.
1520         (free_current_contents): Likewise.
1521         (do_regfree_cleanup): Likewise.
1522         (core_addr_hash): Likewise.
1523         (core_addr_eq): Likewise.
1524         (do_free_char_ptr_vec): Likewise.
1525         * v850-tdep.c (v850_frame_cache): Likewise.
1526         * varobj.c (do_free_variable_cleanup): Likewise.
1527         * vax-tdep.c (vax_supply_gregset): Likewise.
1528         (vax_frame_cache): Likewise.
1529         * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
1530         * xml-support.c (gdb_xml_body_text): Likewise.
1531         (gdb_xml_values_cleanup): Likewise.
1532         (gdb_xml_start_element): Likewise.
1533         (gdb_xml_start_element_wrapper): Likewise.
1534         (gdb_xml_end_element): Likewise.
1535         (gdb_xml_end_element_wrapper): Likewise.
1536         (gdb_xml_cleanup): Likewise.
1537         (gdb_xml_fetch_external_entity): Likewise.
1538         (gdb_xml_parse_attr_enum): Likewise.
1539         (xinclude_start_include): Likewise.
1540         (xinclude_end_include): Likewise.
1541         (xml_xinclude_default): Likewise.
1542         (xml_xinclude_start_doctype): Likewise.
1543         (xml_xinclude_end_doctype): Likewise.
1544         (xml_xinclude_cleanup): Likewise.
1545         (xml_fetch_content_from_file): Likewise.
1546         * xml-syscall.c (free_syscalls_info): Likewise.
1547         (syscall_start_syscall): Likewise.
1548         * xml-tdesc.c (tdesc_end_arch): Likewise.
1549         (tdesc_end_osabi): Likewise.
1550         (tdesc_end_compatible): Likewise.
1551         (tdesc_start_target): Likewise.
1552         (tdesc_start_feature): Likewise.
1553         (tdesc_start_reg): Likewise.
1554         (tdesc_start_union): Likewise.
1555         (tdesc_start_struct): Likewise.
1556         (tdesc_start_flags): Likewise.
1557         (tdesc_start_field): Likewise.
1558         (tdesc_start_vector): Likewise.
1559         (fetch_available_features_from_target): Likewise.
1560         * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
1561         * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
1562         (xtensa_frame_cache): Likewise.
1563         (xtensa_frame_prev_register): Likewise.
1564         (xtensa_extract_return_value): Likewise.
1565
1566 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
1567
1568         * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
1569         (aarch64_make_stub_cache): Likewise.
1570         (value_of_aarch64_user_reg): Likewise.
1571         * ada-lang.c (ada_inferior_data_cleanup): Likewise.
1572         (get_ada_inferior_data): Likewise.
1573         (get_ada_pspace_data): Likewise.
1574         (ada_pspace_data_cleanup): Likewise.
1575         (ada_complete_symbol_matcher): Likewise.
1576         (ada_exc_search_name_matches): Likewise.
1577         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
1578         (get_ada_tasks_inferior_data): Likewise.
1579         * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
1580         (splay_obstack_alloc): Likewise.
1581         (splay_obstack_free): Likewise.
1582         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
1583         (alpha_linux_collect_gregset): Likewise.
1584         (alpha_linux_supply_fpregset): Likewise.
1585         (alpha_linux_collect_fpregset): Likewise.
1586         * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1587         * alpha-tdep.c (alpha_lds): Likewise.
1588         (alpha_sts): Likewise.
1589         (alpha_sigtramp_frame_unwind_cache): Likewise.
1590         (alpha_heuristic_frame_unwind_cache): Likewise.
1591         (alpha_supply_int_regs): Likewise.
1592         (alpha_fill_int_regs): Likewise.
1593         (alpha_supply_fp_regs): Likewise.
1594         (alpha_fill_fp_regs): Likewise.
1595         * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
1596         (alphanbsd_aout_supply_gregset): Likewise.
1597         (alphanbsd_supply_gregset): Likewise.
1598         * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
1599         (amd64_x32_linux_init_abi): Likewise.
1600         * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1601         (amd64_collect_native_gregset): Likewise.
1602         * amd64-tdep.c (amd64_frame_cache): Likewise.
1603         (amd64_sigtramp_frame_cache): Likewise.
1604         (amd64_epilogue_frame_cache): Likewise.
1605         (amd64_supply_fxsave): Likewise.
1606         (amd64_supply_xsave): Likewise.
1607         (amd64_collect_fxsave): Likewise.
1608         (amd64_collect_xsave): Likewise.
1609         * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
1610         * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
1611         * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1612         (arm_linux_collect_gregset): Likewise.
1613         (arm_linux_supply_nwfpe): Likewise.
1614         (arm_linux_collect_nwfpe): Likewise.
1615         (arm_linux_supply_vfp): Likewise.
1616         (arm_linux_collect_vfp): Likewise.
1617         * arm-tdep.c (arm_find_mapping_symbol): Likewise.
1618         (arm_prologue_unwind_stop_reason): Likewise.
1619         (arm_prologue_this_id): Likewise.
1620         (arm_prologue_prev_register): Likewise.
1621         (arm_exidx_data_free): Likewise.
1622         (arm_find_exidx_entry): Likewise.
1623         (arm_stub_this_id): Likewise.
1624         (arm_m_exception_this_id): Likewise.
1625         (arm_m_exception_prev_register): Likewise.
1626         (arm_normal_frame_base): Likewise.
1627         (gdb_print_insn_arm): Likewise.
1628         (arm_objfile_data_free): Likewise.
1629         (arm_record_special_symbol): Likewise.
1630         (value_of_arm_user_reg): Likewise.
1631         * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
1632         (armbsd_supply_gregset): Likewise.
1633         * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
1634         (get_auto_load_pspace_data): Likewise.
1635         (hash_loaded_script_entry): Likewise.
1636         (eq_loaded_script_entry): Likewise.
1637         (clear_section_scripts): Likewise.
1638         (collect_matching_scripts): Likewise.
1639         * auxv.c (auxv_inferior_data_cleanup): Likewise.
1640         (get_auxv_inferior_data): Likewise.
1641         * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1642         * ax-general.c (do_free_agent_expr_cleanup): Likewise.
1643         * bfd-target.c (target_bfd_xfer_partial): Likewise.
1644         (target_bfd_xclose): Likewise.
1645         (target_bfd_get_section_table): Likewise.
1646         * bfin-tdep.c (bfin_frame_cache): Likewise.
1647         * block.c (find_block_in_blockvector): Likewise.
1648         (call_site_for_pc): Likewise.
1649         (block_find_non_opaque_type_preferred): Likewise.
1650         * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
1651         (signal_catchpoint_remove_location): Likewise.
1652         (signal_catchpoint_breakpoint_hit): Likewise.
1653         (signal_catchpoint_print_one): Likewise.
1654         (signal_catchpoint_print_mention): Likewise.
1655         (signal_catchpoint_print_recreate): Likewise.
1656         * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
1657         * breakpoint.c (do_cleanup_counted_command_line): Likewise.
1658         (bp_location_compare_addrs): Likewise.
1659         (get_first_locp_gte_addr): Likewise.
1660         (check_tracepoint_command): Likewise.
1661         (do_map_commands_command): Likewise.
1662         (get_breakpoint_objfile_data): Likewise.
1663         (free_breakpoint_probes): Likewise.
1664         (do_captured_breakpoint_query): Likewise.
1665         (compare_breakpoints): Likewise.
1666         (bp_location_compare): Likewise.
1667         (bpstat_remove_breakpoint_callback): Likewise.
1668         (do_delete_breakpoint_cleanup): Likewise.
1669         * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
1670         (bsd_uthread_set_collect_uthread): Likewise.
1671         (bsd_uthread_activate): Likewise.
1672         (bsd_uthread_fetch_registers): Likewise.
1673         (bsd_uthread_store_registers): Likewise.
1674         * btrace.c (check_xml_btrace_version): Likewise.
1675         (parse_xml_btrace_block): Likewise.
1676         (parse_xml_btrace_pt_config_cpu): Likewise.
1677         (parse_xml_btrace_pt_raw): Likewise.
1678         (parse_xml_btrace_pt): Likewise.
1679         (parse_xml_btrace_conf_bts): Likewise.
1680         (parse_xml_btrace_conf_pt): Likewise.
1681         (do_btrace_data_cleanup): Likewise.
1682         * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
1683         * charset.c (cleanup_iconv): Likewise.
1684         (do_cleanup_iterator): Likewise.
1685         * cli-out.c (cli_uiout_dtor): Likewise.
1686         (cli_table_begin): Likewise.
1687         (cli_table_body): Likewise.
1688         (cli_table_end): Likewise.
1689         (cli_table_header): Likewise.
1690         (cli_begin): Likewise.
1691         (cli_end): Likewise.
1692         (cli_field_int): Likewise.
1693         (cli_field_skip): Likewise.
1694         (cli_field_string): Likewise.
1695         (cli_field_fmt): Likewise.
1696         (cli_spaces): Likewise.
1697         (cli_text): Likewise.
1698         (cli_message): Likewise.
1699         (cli_wrap_hint): Likewise.
1700         (cli_flush): Likewise.
1701         (cli_redirect): Likewise.
1702         (out_field_fmt): Likewise.
1703         (field_separator): Likewise.
1704         (cli_out_set_stream): Likewise.
1705         * cli/cli-cmds.c (compare_symtabs): Likewise.
1706         * cli/cli-dump.c (call_dump_func): Likewise.
1707         (restore_section_callback): Likewise.
1708         * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
1709         (do_restore_user_call_depth): Likewise.
1710         (do_free_command_lines_cleanup): Likewise.
1711         * coff-pe-read.c (get_section_vmas): Likewise.
1712         (pe_as16): Likewise.
1713         (pe_as32): Likewise.
1714         * coffread.c (coff_symfile_read): Likewise.
1715         * common/agent.c (agent_look_up_symbols): Likewise.
1716         * common/filestuff.c (do_close_cleanup): Likewise.
1717         * common/format.c (free_format_pieces_cleanup): Likewise.
1718         * common/vec.c (vec_o_reserve): Likewise.
1719         * compile/compile-c-support.c (print_one_macro): Likewise.
1720         * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
1721         (eq_symbol_error): Likewise.
1722         (del_symbol_error): Likewise.
1723         (error_symbol_once): Likewise.
1724         (gcc_convert_symbol): Likewise.
1725         (gcc_symbol_address): Likewise.
1726         (hash_symname): Likewise.
1727         (eq_symname): Likewise.
1728         * compile/compile-c-types.c (hash_type_map_instance): Likewise.
1729         (eq_type_map_instance): Likewise.
1730         (insert_type): Likewise.
1731         (convert_type): Likewise.
1732         * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
1733         (setup_sections): Likewise.
1734         (link_hash_table_free): Likewise.
1735         (copy_sections): Likewise.
1736         * compile/compile-object-run.c (do_module_cleanup): Likewise.
1737         * compile/compile.c (compile_print_value): Likewise.
1738         (do_rmdir): Likewise.
1739         (cleanup_compile_instance): Likewise.
1740         (cleanup_unlink_file): Likewise.
1741         * completer.c (free_completion_tracker): Likewise.
1742         * corelow.c (add_to_spuid_list): Likewise.
1743         * cp-namespace.c (reset_directive_searched): Likewise.
1744         * cp-support.c (reset_directive_searched): Likewise.
1745         * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
1746         (cris_frame_unwind_cache): Likewise.
1747         * d-lang.c (builtin_d_type): Likewise.
1748         * d-namespace.c (reset_directive_searched): Likewise.
1749         * dbxread.c (dbx_free_symfile_info): Likewise.
1750         (do_free_bincl_list_cleanup): Likewise.
1751         * disasm.c (hash_dis_line_entry): Likewise.
1752         (eq_dis_line_entry): Likewise.
1753         (dis_asm_print_address): Likewise.
1754         (fprintf_disasm): Likewise.
1755         (do_ui_file_delete): Likewise.
1756         * doublest.c (convert_floatformat_to_doublest): Likewise.
1757         * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1758         (dummy_frame_prev_register): Likewise.
1759         (dummy_frame_this_id): Likewise.
1760         * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1761         (cache_eq): Likewise.
1762         (cache_find): Likewise.
1763         (tailcall_frame_this_id): Likewise.
1764         (dwarf2_tailcall_prev_register_first): Likewise.
1765         (tailcall_frame_prev_register): Likewise.
1766         (tailcall_frame_dealloc_cache): Likewise.
1767         (tailcall_frame_prev_arch): Likewise.
1768         * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1769         (dwarf2_frame_set_init_reg): Likewise.
1770         (dwarf2_frame_init_reg): Likewise.
1771         (dwarf2_frame_set_signal_frame_p): Likewise.
1772         (dwarf2_frame_signal_frame_p): Likewise.
1773         (dwarf2_frame_set_adjust_regnum): Likewise.
1774         (dwarf2_frame_adjust_regnum): Likewise.
1775         (clear_pointer_cleanup): Likewise.
1776         (dwarf2_frame_cache): Likewise.
1777         (find_cie): Likewise.
1778         (dwarf2_frame_find_fde): Likewise.
1779         * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1780         (free_dwarf_expr_context_cleanup): Likewise.
1781         * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1782         (locexpr_get_frame_base): Likewise.
1783         (loclist_find_frame_base_location): Likewise.
1784         (loclist_get_frame_base): Likewise.
1785         (dwarf_expr_dwarf_call): Likewise.
1786         (dwarf_expr_get_base_type): Likewise.
1787         (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1788         (dwarf_expr_get_obj_addr): Likewise.
1789         (entry_data_value_coerce_ref): Likewise.
1790         (entry_data_value_copy_closure): Likewise.
1791         (entry_data_value_free_closure): Likewise.
1792         (get_frame_address_in_block_wrapper): Likewise.
1793         (dwarf2_evaluate_property): Likewise.
1794         (dwarf2_compile_property_to_c): Likewise.
1795         (needs_frame_read_addr_from_reg): Likewise.
1796         (needs_frame_get_reg_value): Likewise.
1797         (needs_frame_frame_base): Likewise.
1798         (needs_frame_frame_cfa): Likewise.
1799         (needs_frame_tls_address): Likewise.
1800         (needs_frame_dwarf_call): Likewise.
1801         (needs_dwarf_reg_entry_value): Likewise.
1802         (get_ax_pc): Likewise.
1803         (locexpr_read_variable): Likewise.
1804         (locexpr_read_variable_at_entry): Likewise.
1805         (locexpr_read_needs_frame): Likewise.
1806         (locexpr_describe_location): Likewise.
1807         (locexpr_tracepoint_var_ref): Likewise.
1808         (locexpr_generate_c_location): Likewise.
1809         (loclist_read_variable): Likewise.
1810         (loclist_read_variable_at_entry): Likewise.
1811         (loclist_describe_location): Likewise.
1812         (loclist_tracepoint_var_ref): Likewise.
1813         (loclist_generate_c_location): Likewise.
1814         * dwarf2read.c (line_header_hash_voidp): Likewise.
1815         (line_header_eq_voidp): Likewise.
1816         (dwarf2_has_info): Likewise.
1817         (dwarf2_get_section_info): Likewise.
1818         (locate_dwz_sections): Likewise.
1819         (hash_file_name_entry): Likewise.
1820         (eq_file_name_entry): Likewise.
1821         (delete_file_name_entry): Likewise.
1822         (dw2_setup): Likewise.
1823         (dw2_get_file_names_reader): Likewise.
1824         (dw2_find_pc_sect_compunit_symtab): Likewise.
1825         (hash_signatured_type): Likewise.
1826         (eq_signatured_type): Likewise.
1827         (add_signatured_type_cu_to_table): Likewise.
1828         (create_debug_types_hash_table): Likewise.
1829         (lookup_dwo_signatured_type): Likewise.
1830         (lookup_dwp_signatured_type): Likewise.
1831         (lookup_signatured_type): Likewise.
1832         (hash_type_unit_group): Likewise.
1833         (eq_type_unit_group): Likewise.
1834         (get_type_unit_group): Likewise.
1835         (process_psymtab_comp_unit_reader): Likewise.
1836         (sort_tu_by_abbrev_offset): Likewise.
1837         (process_skeletonless_type_unit): Likewise.
1838         (psymtabs_addrmap_cleanup): Likewise.
1839         (dwarf2_read_symtab): Likewise.
1840         (psymtab_to_symtab_1): Likewise.
1841         (die_hash): Likewise.
1842         (die_eq): Likewise.
1843         (load_full_comp_unit_reader): Likewise.
1844         (reset_die_in_process): Likewise.
1845         (free_cu_line_header): Likewise.
1846         (handle_DW_AT_stmt_list): Likewise.
1847         (hash_dwo_file): Likewise.
1848         (eq_dwo_file): Likewise.
1849         (hash_dwo_unit): Likewise.
1850         (eq_dwo_unit): Likewise.
1851         (create_dwo_cu_reader): Likewise.
1852         (create_dwo_unit_in_dwp_v1): Likewise.
1853         (create_dwo_unit_in_dwp_v2): Likewise.
1854         (lookup_dwo_unit_in_dwp): Likewise.
1855         (dwarf2_locate_dwo_sections): Likewise.
1856         (dwarf2_locate_common_dwp_sections): Likewise.
1857         (dwarf2_locate_v2_dwp_sections): Likewise.
1858         (hash_dwp_loaded_cutus): Likewise.
1859         (eq_dwp_loaded_cutus): Likewise.
1860         (lookup_dwo_cutu): Likewise.
1861         (abbrev_table_free_cleanup): Likewise.
1862         (dwarf2_free_abbrev_table): Likewise.
1863         (find_partial_die_in_comp_unit): Likewise.
1864         (free_line_header_voidp): Likewise.
1865         (follow_die_offset): Likewise.
1866         (follow_die_sig_1): Likewise.
1867         (free_heap_comp_unit): Likewise.
1868         (free_stack_comp_unit): Likewise.
1869         (dwarf2_free_objfile): Likewise.
1870         (per_cu_offset_and_type_hash): Likewise.
1871         (per_cu_offset_and_type_eq): Likewise.
1872         (get_die_type_at_offset): Likewise.
1873         (partial_die_hash): Likewise.
1874         (partial_die_eq): Likewise.
1875         (dwarf2_per_objfile_free): Likewise.
1876         (hash_strtab_entry): Likewise.
1877         (eq_strtab_entry): Likewise.
1878         (add_string): Likewise.
1879         (hash_symtab_entry): Likewise.
1880         (eq_symtab_entry): Likewise.
1881         (delete_symtab_entry): Likewise.
1882         (cleanup_mapped_symtab): Likewise.
1883         (add_indices_to_cpool): Likewise.
1884         (hash_psymtab_cu_index): Likewise.
1885         (eq_psymtab_cu_index): Likewise.
1886         (add_address_entry_worker): Likewise.
1887         (unlink_if_set): Likewise.
1888         (write_one_signatured_type): Likewise.
1889         (save_gdb_index_command): Likewise.
1890         * elfread.c (elf_symtab_read): Likewise.
1891         (elf_gnu_ifunc_cache_hash): Likewise.
1892         (elf_gnu_ifunc_cache_eq): Likewise.
1893         (elf_gnu_ifunc_record_cache): Likewise.
1894         (elf_gnu_ifunc_resolve_by_cache): Likewise.
1895         (elf_get_probes): Likewise.
1896         (probe_key_free): Likewise.
1897         * f-lang.c (builtin_f_type): Likewise.
1898         * frame-base.c (frame_base_append_sniffer): Likewise.
1899         (frame_base_set_default): Likewise.
1900         (frame_base_find_by_frame): Likewise.
1901         * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1902         (frame_unwind_append_unwinder): Likewise.
1903         (frame_unwind_find_by_frame): Likewise.
1904         * frame.c (frame_addr_hash): Likewise.
1905         (frame_addr_hash_eq): Likewise.
1906         (frame_stash_find): Likewise.
1907         (do_frame_register_read): Likewise.
1908         (unwind_to_current_frame): Likewise.
1909         (frame_cleanup_after_sniffer): Likewise.
1910         * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1911         * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1912         * ft32-tdep.c (ft32_frame_cache): Likewise.
1913         * gcore.c (do_bfd_delete_cleanup): Likewise.
1914         (gcore_create_callback): Likewise.
1915         * gdb_bfd.c (hash_bfd): Likewise.
1916         (eq_bfd): Likewise.
1917         (gdb_bfd_open): Likewise.
1918         (free_one_bfd_section): Likewise.
1919         (gdb_bfd_ref): Likewise.
1920         (gdb_bfd_unref): Likewise.
1921         (get_section_descriptor): Likewise.
1922         (gdb_bfd_map_section): Likewise.
1923         (gdb_bfd_crc): Likewise.
1924         (gdb_bfd_mark_parent): Likewise.
1925         (gdb_bfd_record_inclusion): Likewise.
1926         (gdb_bfd_requires_relocations): Likewise.
1927         (print_one_bfd): Likewise.
1928         * gdbtypes.c (type_pair_hash): Likewise.
1929         (type_pair_eq): Likewise.
1930         (builtin_type): Likewise.
1931         (objfile_type): Likewise.
1932         * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1933         (vtable_address_point_offset): Likewise.
1934         (gnuv3_get_vtable): Likewise.
1935         (hash_value_and_voffset): Likewise.
1936         (eq_value_and_voffset): Likewise.
1937         (compare_value_and_voffset): Likewise.
1938         (compute_vtable_size): Likewise.
1939         (gnuv3_get_typeid_type): Likewise.
1940         * go-lang.c (builtin_go_type): Likewise.
1941         * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1942         (bkscm_eq_block_smob): Likewise.
1943         (bkscm_objfile_block_map): Likewise.
1944         (bkscm_del_objfile_blocks): Likewise.
1945         * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1946         * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1947         (gdbscm_disasm_print_address): Likewise.
1948         * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1949         (frscm_eq_frame_smob): Likewise.
1950         (frscm_inferior_frame_map): Likewise.
1951         (frscm_del_inferior_frames): Likewise.
1952         * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1953         * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1954         (ofscm_objfile_smob_from_objfile): Likewise.
1955         * guile/scm-ports.c (ioscm_write): Likewise.
1956         (ioscm_file_port_delete): Likewise.
1957         (ioscm_file_port_rewind): Likewise.
1958         (ioscm_file_port_put): Likewise.
1959         (ioscm_file_port_write): Likewise.
1960         * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1961         (psscm_pspace_smob_from_pspace): Likewise.
1962         * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1963         (scscm_recording_unwind_handler): Likewise.
1964         (gdbscm_with_catch): Likewise.
1965         (scscm_call_0_body): Likewise.
1966         (scscm_call_1_body): Likewise.
1967         (scscm_call_2_body): Likewise.
1968         (scscm_call_3_body): Likewise.
1969         (scscm_call_4_body): Likewise.
1970         (scscm_apply_1_body): Likewise.
1971         (scscm_eval_scheme_string): Likewise.
1972         (gdbscm_safe_eval_string): Likewise.
1973         (scscm_source_scheme_script): Likewise.
1974         (gdbscm_safe_source_script): Likewise.
1975         * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1976         (gdbscm_call_scm_from_stringn): Likewise.
1977         * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1978         (syscm_eq_symbol_smob): Likewise.
1979         (syscm_get_symbol_map): Likewise.
1980         (syscm_del_objfile_symbols): Likewise.
1981         * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1982         (stscm_eq_symtab_smob): Likewise.
1983         (stscm_objfile_symtab_map): Likewise.
1984         (stscm_del_objfile_symtabs): Likewise.
1985         * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1986         (tyscm_eq_type_smob): Likewise.
1987         (tyscm_type_map): Likewise.
1988         (tyscm_copy_type_recursive): Likewise.
1989         (save_objfile_types): Likewise.
1990         * guile/scm-utils.c (extract_arg): Likewise.
1991         * h8300-tdep.c (h8300_frame_cache): Likewise.
1992         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1993         * hppa-tdep.c (compare_unwind_entries): Likewise.
1994         (find_unwind_entry): Likewise.
1995         (hppa_frame_cache): Likewise.
1996         (hppa_stub_frame_unwind_cache): Likewise.
1997         * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1998         * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1999         (hppaobsd_supply_fpregset): Likewise.
2000         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
2001         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
2002         * i386-tdep.c (i386_frame_cache): Likewise.
2003         (i386_epilogue_frame_cache): Likewise.
2004         (i386_sigtramp_frame_cache): Likewise.
2005         (i386_supply_gregset): Likewise.
2006         (i386_collect_gregset): Likewise.
2007         (i386_gdbarch_init): Likewise.
2008         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
2009         (i386obsd_trapframe_cache): Likewise.
2010         * i387-tdep.c (i387_supply_fsave): Likewise.
2011         (i387_collect_fsave): Likewise.
2012         (i387_supply_fxsave): Likewise.
2013         (i387_collect_fxsave): Likewise.
2014         (i387_supply_xsave): Likewise.
2015         (i387_collect_xsave): Likewise.
2016         * ia64-tdep.c (ia64_frame_cache): Likewise.
2017         (ia64_sigtramp_frame_cache): Likewise.
2018         * infcmd.c (attach_command_continuation): Likewise.
2019         (attach_command_continuation_free_args): Likewise.
2020         * inferior.c (restore_inferior): Likewise.
2021         (delete_thread_of_inferior): Likewise.
2022         * inflow.c (inflow_inferior_data_cleanup): Likewise.
2023         (get_inflow_inferior_data): Likewise.
2024         (inflow_inferior_exit): Likewise.
2025         * infrun.c (displaced_step_clear_cleanup): Likewise.
2026         (restore_current_uiout_cleanup): Likewise.
2027         (release_stop_context_cleanup): Likewise.
2028         (do_restore_infcall_suspend_state_cleanup): Likewise.
2029         (do_restore_infcall_control_state_cleanup): Likewise.
2030         (restore_inferior_ptid): Likewise.
2031         * inline-frame.c (block_starting_point_at): Likewise.
2032         * iq2000-tdep.c (iq2000_frame_cache): Likewise.
2033         * jit.c (get_jit_objfile_data): Likewise.
2034         (get_jit_program_space_data): Likewise.
2035         (jit_object_close_impl): Likewise.
2036         (jit_find_objf_with_entry_addr): Likewise.
2037         (jit_breakpoint_deleted): Likewise.
2038         (jit_unwind_reg_set_impl): Likewise.
2039         (jit_unwind_reg_get_impl): Likewise.
2040         (jit_dealloc_cache): Likewise.
2041         (jit_frame_sniffer): Likewise.
2042         (jit_frame_prev_register): Likewise.
2043         (jit_prepend_unwinder): Likewise.
2044         (jit_inferior_exit_hook): Likewise.
2045         (free_objfile_data): Likewise.
2046         * jv-lang.c (jv_per_objfile_free): Likewise.
2047         (get_dynamics_objfile): Likewise.
2048         (get_java_class_symtab): Likewise.
2049         (builtin_java_type): Likewise.
2050         * language.c (language_string_char_type): Likewise.
2051         (language_bool_type): Likewise.
2052         (language_lookup_primitive_type): Likewise.
2053         (language_lookup_primitive_type_as_symbol): Likewise.
2054         * linespec.c (hash_address_entry): Likewise.
2055         (eq_address_entry): Likewise.
2056         (iterate_inline_only): Likewise.
2057         (iterate_name_matcher): Likewise.
2058         (decode_line_2_compare_items): Likewise.
2059         (collect_one_symbol): Likewise.
2060         (compare_symbols): Likewise.
2061         (compare_msymbols): Likewise.
2062         (add_symtabs_to_list): Likewise.
2063         (collect_symbols): Likewise.
2064         (compare_msyms): Likewise.
2065         (add_minsym): Likewise.
2066         (cleanup_linespec_result): Likewise.
2067         * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
2068         * linux-nat.c (delete_lwp_cleanup): Likewise.
2069         (count_events_callback): Likewise.
2070         (select_event_lwp_callback): Likewise.
2071         (resume_stopped_resumed_lwps): Likewise.
2072         * linux-tdep.c (get_linux_gdbarch_data): Likewise.
2073         (invalidate_linux_cache_inf): Likewise.
2074         (get_linux_inferior_data): Likewise.
2075         (linux_find_memory_regions_thunk): Likewise.
2076         (linux_make_mappings_callback): Likewise.
2077         (linux_corefile_thread_callback): Likewise.
2078         (find_mapping_size): Likewise.
2079         * linux-thread-db.c (find_new_threads_callback): Likewise.
2080         * lm32-tdep.c (lm32_frame_cache): Likewise.
2081         * m2-lang.c (builtin_m2_type): Likewise.
2082         * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
2083         * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
2084         (m32r_linux_supply_gregset): Likewise.
2085         (m32r_linux_collect_gregset): Likewise.
2086         * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
2087         * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
2088         * m68k-tdep.c (m68k_frame_cache): Likewise.
2089         * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
2090         (m68kbsd_supply_gregset): Likewise.
2091         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
2092         * m88k-tdep.c (m88k_frame_cache): Likewise.
2093         (m88k_supply_gregset): Likewise.
2094
2095 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
2096
2097         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
2098         to allocation result assignment.
2099         * ada-exp.y (write_object_renaming): Likewise.
2100         (write_ambiguous_var): Likewise.
2101         (ada_nget_field_index): Likewise.
2102         (write_var_or_type): Likewise.
2103         * ada-lang.c (ada_decode_symbol): Likewise.
2104         (ada_value_assign): Likewise.
2105         (value_pointer): Likewise.
2106         (cache_symbol): Likewise.
2107         (add_nonlocal_symbols): Likewise.
2108         (ada_name_for_lookup): Likewise.
2109         (symbol_completion_add): Likewise.
2110         (ada_to_fixed_type_1): Likewise.
2111         (ada_get_next_arg): Likewise.
2112         (defns_collected): Likewise.
2113         * ada-lex.l (processId): Likewise.
2114         (processString): Likewise.
2115         * ada-tasks.c (read_known_tasks_array): Likewise.
2116         (read_known_tasks_list): Likewise.
2117         * ada-typeprint.c (decoded_type_name): Likewise.
2118         * addrmap.c (addrmap_mutable_create_fixed): Likewise.
2119         * amd64-tdep.c (amd64_push_arguments): Likewise.
2120         (amd64_displaced_step_copy_insn): Likewise.
2121         (amd64_classify_insn_at): Likewise.
2122         (amd64_relocate_instruction): Likewise.
2123         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
2124         * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
2125         (initialize_current_architecture): Likewise.
2126         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2127         * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
2128         * arm-tdep.c (arm_exidx_new_objfile): Likewise.
2129         (arm_push_dummy_call): Likewise.
2130         (extend_buffer_earlier): Likewise.
2131         (arm_adjust_breakpoint_address): Likewise.
2132         (arm_skip_stub): Likewise.
2133         * auto-load.c (filename_is_in_pattern): Likewise.
2134         (maybe_add_script_file): Likewise.
2135         (maybe_add_script_text): Likewise.
2136         (auto_load_objfile_script_1): Likewise.
2137         * auxv.c (ld_so_xfer_auxv): Likewise.
2138         * ax-general.c (new_agent_expr): Likewise.
2139         (grow_expr): Likewise.
2140         (ax_reg_mask): Likewise.
2141         * bcache.c (bcache_full): Likewise.
2142         * breakpoint.c (program_breakpoint_here_p): Likewise.
2143         * btrace.c (parse_xml_raw): Likewise.
2144         * build-id.c (build_id_to_debug_bfd): Likewise.
2145         * buildsym.c (end_symtab_with_blockvector): Likewise.
2146         * c-exp.y (string_exp): Likewise.
2147         (qualified_name): Likewise.
2148         (write_destructor_name): Likewise.
2149         (operator_stoken): Likewise.
2150         (parse_number): Likewise.
2151         (scan_macro_expansion): Likewise.
2152         (yylex): Likewise.
2153         (c_print_token): Likewise.
2154         * c-lang.c (c_get_string): Likewise.
2155         (emit_numeric_character): Likewise.
2156         * charset.c (wchar_iterate): Likewise.
2157         * cli/cli-cmds.c (complete_command): Likewise.
2158         (make_command): Likewise.
2159         * cli/cli-dump.c (restore_section_callback): Likewise.
2160         (restore_binary_file): Likewise.
2161         * cli/cli-interp.c (cli_interpreter_exec): Likewise.
2162         * cli/cli-script.c (execute_control_command): Likewise.
2163         * cli/cli-setshow.c (do_set_command): Likewise.
2164         * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
2165         (read_pe_exported_syms): Likewise.
2166         * coffread.c (coff_read_struct_type): Likewise.
2167         (coff_read_enum_type): Likewise.
2168         * common/btrace-common.c (btrace_data_append): Likewise.
2169         * common/buffer.c (buffer_grow): Likewise.
2170         * common/filestuff.c (gdb_fopen_cloexec): Likewise.
2171         * common/format.c (parse_format_string): Likewise.
2172         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
2173         * common/xml-utils.c (xml_escape_text): Likewise.
2174         * compile/compile-object-load.c (copy_sections): Likewise.
2175         (compile_object_load): Likewise.
2176         * compile/compile-object-run.c (compile_object_run): Likewise.
2177         * completer.c (filename_completer): Likewise.
2178         * corefile.c (read_memory_typed_address): Likewise.
2179         (write_memory_unsigned_integer): Likewise.
2180         (write_memory_signed_integer): Likewise.
2181         (complete_set_gnutarget): Likewise.
2182         * corelow.c (get_core_register_section): Likewise.
2183         * cp-name-parser.y (d_grab): Likewise.
2184         (allocate_info): Likewise.
2185         (cp_new_demangle_parse_info): Likewise.
2186         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
2187         (cp_lookup_symbol_in_namespace): Likewise.
2188         (lookup_namespace_scope): Likewise.
2189         (find_symbol_in_baseclass): Likewise.
2190         (cp_lookup_nested_symbol): Likewise.
2191         (cp_lookup_transparent_type_loop): Likewise.
2192         * cp-support.c (copy_string_to_obstack): Likewise.
2193         (make_symbol_overload_list): Likewise.
2194         (make_symbol_overload_list_namespace): Likewise.
2195         (make_symbol_overload_list_adl_namespace): Likewise.
2196         (first_component_command): Likewise.
2197         * cp-valprint.c (cp_print_value): Likewise.
2198         * ctf.c (ctf_xfer_partial): Likewise.
2199         * d-exp.y (StringExp): Likewise.
2200         * d-namespace.c (d_lookup_symbol_in_module): Likewise.
2201         (lookup_module_scope): Likewise.
2202         (find_symbol_in_baseclass): Likewise.
2203         (d_lookup_nested_symbol): Likewise.
2204         * dbxread.c (find_stab_function_addr): Likewise.
2205         (read_dbx_symtab): Likewise.
2206         (dbx_end_psymtab): Likewise.
2207         (cp_set_block_scope): Likewise.
2208         * dcache.c (dcache_alloc): Likewise.
2209         * demangle.c (_initialize_demangler): Likewise.
2210         * dicos-tdep.c (dicos_load_module_p): Likewise.
2211         * dictionary.c (dict_create_hashed_expandable): Likewise.
2212         (dict_create_linear_expandable): Likewise.
2213         (expand_hashtable): Likewise.
2214         (add_symbol_linear_expandable): Likewise.
2215         * dwarf2-frame.c (add_cie): Likewise.
2216         (add_fde): Likewise.
2217         (dwarf2_build_frame_info): Likewise.
2218         * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
2219         (dwarf_expr_fetch_address): Likewise.
2220         (add_piece): Likewise.
2221         (execute_stack_op): Likewise.
2222         * dwarf2loc.c (chain_candidate): Likewise.
2223         (dwarf_entry_parameter_to_value): Likewise.
2224         (read_pieced_value): Likewise.
2225         (write_pieced_value): Likewise.
2226         * dwarf2read.c (dwarf2_read_section): Likewise.
2227         (add_type_unit): Likewise.
2228         (read_comp_units_from_section): Likewise.
2229         (fixup_go_packaging): Likewise.
2230         (dwarf2_compute_name): Likewise.
2231         (dwarf2_physname): Likewise.
2232         (create_dwo_unit_in_dwp_v1): Likewise.
2233         (create_dwo_unit_in_dwp_v2): Likewise.
2234         (read_func_scope): Likewise.
2235         (read_call_site_scope): Likewise.
2236         (dwarf2_attach_fields_to_type): Likewise.
2237         (process_structure_scope): Likewise.
2238         (mark_common_block_symbol_computed): Likewise.
2239         (read_common_block): Likewise.
2240         (abbrev_table_read_table): Likewise.
2241         (guess_partial_die_structure_name): Likewise.
2242         (fixup_partial_die): Likewise.
2243         (add_file_name): Likewise.
2244         (dwarf2_const_value_data): Likewise.
2245         (dwarf2_const_value_attr): Likewise.
2246         (build_error_marker_type): Likewise.
2247         (guess_full_die_structure_name): Likewise.
2248         (anonymous_struct_prefix): Likewise.
2249         (typename_concat): Likewise.
2250         (dwarf2_canonicalize_name): Likewise.
2251         (dwarf2_name): Likewise.
2252         (write_constant_as_bytes): Likewise.
2253         (dwarf2_fetch_constant_bytes): Likewise.
2254         (copy_string): Likewise.
2255         (parse_macro_definition): Likewise.
2256         * elfread.c (elf_symfile_segments): Likewise.
2257         (elf_rel_plt_read): Likewise.
2258         (elf_gnu_ifunc_resolve_by_cache): Likewise.
2259         (elf_gnu_ifunc_resolve_by_got): Likewise.
2260         (elf_read_minimal_symbols): Likewise.
2261         (elf_gnu_ifunc_record_cache): Likewise.
2262         * event-top.c (top_level_prompt): Likewise.
2263         (command_line_handler): Likewise.
2264         * exec.c (resize_section_table): Likewise.
2265         * expprint.c (print_subexp_standard): Likewise.
2266         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2267         * findcmd.c (parse_find_args): Likewise.
2268         * findvar.c (address_from_register): Likewise.
2269         * frame.c (get_prev_frame_always): Likewise.
2270         * gdb_bfd.c (gdb_bfd_ref): Likewise.
2271         (get_section_descriptor): Likewise.
2272         * gdb_obstack.c (obconcat): Likewise.
2273         (obstack_strdup): Likewise.
2274         * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
2275         (create_set_type): Likewise.
2276         (lookup_unsigned_typename): Likewise.
2277         (lookup_signed_typename): Likewise.
2278         (resolve_dynamic_union): Likewise.
2279         (resolve_dynamic_struct): Likewise.
2280         (add_dyn_prop): Likewise.
2281         (copy_dynamic_prop_list): Likewise.
2282         (arch_flags_type): Likewise.
2283         (append_composite_type_field_raw): Likewise.
2284         * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
2285         * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
2286         * go-exp.y (string_exp): Likewise.
2287         * go-lang.c (go_demangle): Likewise.
2288         * guile/guile.c (compute_scheme_string): Likewise.
2289         * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2290         (gdbscm_canonicalize_command_name): Likewise.
2291         * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
2292         (ioscm_init_memory_port): Likewise.
2293         (ioscm_reinit_memory_port): Likewise.
2294         * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
2295         (gdbscm_gc_dup_argv): Likewise.
2296         * h8300-tdep.c (h8300_push_dummy_call): Likewise.
2297         * hppa-tdep.c (internalize_unwinds): Likewise.
2298         (read_unwind_info): Likewise.
2299         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
2300         (windows_core_xfer_shared_libraries): Likewise.
2301         * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
2302         (i386_stap_parse_special_token_triplet): Likewise.
2303         (i386_stap_parse_special_token_three_arg_disp): Likewise.
2304         * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
2305         * inf-child.c (inf_child_fileio_readlink): Likewise.
2306         * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
2307         (inf_ptrace_store_register): Likewise.
2308         * infrun.c (follow_exec): Likewise.
2309         (displaced_step_prepare_throw): Likewise.
2310         (save_stop_context): Likewise.
2311         (save_infcall_suspend_state): Likewise.
2312         * jit.c (jit_read_descriptor): Likewise.
2313         (jit_read_code_entry): Likewise.
2314         (jit_symtab_line_mapping_add_impl): Likewise.
2315         (finalize_symtab): Likewise.
2316         (jit_unwind_reg_get_impl): Likewise.
2317         * jv-exp.y (QualifiedName): Likewise.
2318         * jv-lang.c (get_java_utf8_name): Likewise.
2319         (type_from_class): Likewise.
2320         (java_demangle_type_signature): Likewise.
2321         (java_class_name_from_physname): Likewise.
2322         * jv-typeprint.c (java_type_print_base): Likewise.
2323         * jv-valprint.c (java_value_print): Likewise.
2324         * language.c (add_language): Likewise.
2325         * linespec.c (add_sal_to_sals_basic): Likewise.
2326         (add_sal_to_sals): Likewise.
2327         (decode_objc): Likewise.
2328         (find_linespec_symbols): Likewise.
2329         * linux-fork.c (fork_save_infrun_state): Likewise.
2330         * linux-nat.c (linux_nat_detach): Likewise.
2331         (linux_nat_fileio_readlink): Likewise.
2332         * linux-record.c (record_linux_sockaddr): Likewise.
2333         (record_linux_msghdr): Likewise.
2334         (Do): Likewise.
2335         * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
2336         (linux_collect_regset_section_cb): Likewise.
2337         (linux_get_siginfo_data): Likewise.
2338         * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
2339         (try_thread_db_load_from_dir): Likewise.
2340         (thread_db_load_search): Likewise.
2341         (info_auto_load_libthread_db): Likewise.
2342         * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
2343         (m32c_m16c_pointer_to_address): Likewise.
2344         * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
2345         * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2346         * machoread.c (macho_check_dsym): Likewise.
2347         * macroexp.c (resize_buffer): Likewise.
2348         (gather_arguments): Likewise.
2349         (maybe_expand): Likewise.
2350         * macrotab.c (new_macro_key): Likewise.
2351         (new_source_file): Likewise.
2352         (new_macro_definition): Likewise.
2353         * mdebugread.c (parse_symbol): Likewise.
2354         (parse_type): Likewise.
2355         (parse_partial_symbols): Likewise.
2356         (psymtab_to_symtab_1): Likewise.
2357         * mem-break.c (default_memory_insert_breakpoint): Likewise.
2358         * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
2359         * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
2360         (mi_cmd_data_read_memory_bytes): Likewise.
2361         (mi_cmd_data_write_memory_bytes): Likewise.
2362         (mi_cmd_trace_frame_collected): Likewise.
2363         * mi/mi-parse.c (mi_parse_argv): Likewise.
2364         (mi_parse): Likewise.
2365         * minidebug.c (lzma_open): Likewise.
2366         (lzma_pread): Likewise.
2367         * mips-tdep.c (mips_read_fp_register_single): Likewise.
2368         (mips_print_fp_register): Likewise.
2369         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
2370         * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2371         * mt-tdep.c (mt_register_name): Likewise.
2372         (mt_registers_info): Likewise.
2373         (mt_push_dummy_call): Likewise.
2374         * namespace.c (add_using_directive): Likewise.
2375         * nat/linux-btrace.c (perf_event_read): Likewise.
2376         (linux_enable_bts): Likewise.
2377         * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
2378         * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
2379         * nto-tdep.c (nto_find_and_open_solib): Likewise.
2380         (nto_parse_redirection): Likewise.
2381         * objc-lang.c (objc_demangle): Likewise.
2382         (find_methods): Likewise.
2383         * objfiles.c (get_objfile_bfd_data): Likewise.
2384         (set_objfile_main_name): Likewise.
2385         (allocate_objfile): Likewise.
2386         (objfile_relocate): Likewise.
2387         (update_section_map): Likewise.
2388         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
2389         * p-exp.y (exp): Likewise.
2390         (yylex): Likewise.
2391         * p-valprint.c (pascal_object_print_value): Likewise.
2392         * parse.c (initialize_expout): Likewise.
2393         (mark_completion_tag): Likewise.
2394         (copy_name): Likewise.
2395         (parse_float): Likewise.
2396         (type_stack_reserve): Likewise.
2397         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2398         (ppu2spu_prev_register): Likewise.
2399         * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
2400         * printcmd.c (printf_wide_c_string): Likewise.
2401         (printf_pointer): Likewise.
2402         * probe.c (parse_probes): Likewise.
2403         * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2404         (cmdpy_init): Likewise.
2405         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
2406         * python/py-symtab.c (set_sal): Likewise.
2407         * python/py-unwind.c (pyuw_sniffer): Likewise.
2408         * python/python.c (python_interactive_command): Likewise.
2409         (compute_python_string): Likewise.
2410         * ravenscar-thread.c (get_running_thread_id): Likewise.
2411         * record-full.c (record_full_exec_insn): Likewise.
2412         (record_full_core_open_1): Likewise.
2413         * regcache.c (regcache_raw_read_signed): Likewise.
2414         (regcache_raw_read_unsigned): Likewise.
2415         (regcache_cooked_read_signed): Likewise.
2416         (regcache_cooked_read_unsigned): Likewise.
2417         * remote-fileio.c (remote_fileio_func_open): Likewise.
2418         (remote_fileio_func_rename): Likewise.
2419         (remote_fileio_func_unlink): Likewise.
2420         (remote_fileio_func_stat): Likewise.
2421         (remote_fileio_func_system): Likewise.
2422         * remote-mips.c (mips_xfer_memory): Likewise.
2423         (mips_load_srec): Likewise.
2424         (pmon_end_download): Likewise.
2425         * remote.c (new_remote_state): Likewise.
2426         (map_regcache_remote_table): Likewise.
2427         (remote_register_number_and_offset): Likewise.
2428         (init_remote_state): Likewise.
2429         (get_memory_packet_size): Likewise.
2430         (remote_pass_signals): Likewise.
2431         (remote_program_signals): Likewise.
2432         (remote_start_remote): Likewise.
2433         (remote_check_symbols): Likewise.
2434         (remote_query_supported): Likewise.
2435         (extended_remote_attach): Likewise.
2436         (process_g_packet): Likewise.
2437         (store_registers_using_G): Likewise.
2438         (putpkt_binary): Likewise.
2439         (read_frame): Likewise.
2440         (compare_sections_command): Likewise.
2441         (remote_hostio_pread): Likewise.
2442         (remote_hostio_readlink): Likewise.
2443         (remote_file_put): Likewise.
2444         (remote_file_get): Likewise.
2445         (remote_pid_to_exec_file): Likewise.
2446         (_initialize_remote): Likewise.
2447         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2448         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2449         * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2450         (bfd_uses_spe_extensions): Likewise.
2451         * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
2452         * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
2453         * solib-dsbt.c (decode_loadmap): Likewise.
2454         (fetch_loadmap): Likewise.
2455         (scan_dyntag): Likewise.
2456         (enable_break): Likewise.
2457         (dsbt_relocate_main_executable): Likewise.
2458         * solib-frv.c (fetch_loadmap): Likewise.
2459         (enable_break2): Likewise.
2460         (frv_relocate_main_executable): Likewise.
2461         * solib-spu.c (spu_relocate_main_executable): Likewise.
2462         (spu_bfd_open): Likewise.
2463         * solib-svr4.c (lm_info_read): Likewise.
2464         (read_program_header): Likewise.
2465         (find_program_interpreter): Likewise.
2466         (scan_dyntag): Likewise.
2467         (elf_locate_base): Likewise.
2468         (open_symbol_file_object): Likewise.
2469         (read_program_headers_from_bfd): Likewise.
2470         (svr4_relocate_main_executable): Likewise.
2471         * solib-target.c (solib_target_relocate_section_addresses): Likewise.
2472         * solib.c (solib_find_1): Likewise.
2473         (exec_file_find): Likewise.
2474         (solib_find): Likewise.
2475         * source.c (openp): Likewise.
2476         (print_source_lines_base): Likewise.
2477         (forward_search_command): Likewise.
2478         * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
2479         * spu-tdep.c (spu2ppu_prev_register): Likewise.
2480         (spu_get_overlay_table): Likewise.
2481         * stabsread.c (patch_block_stabs): Likewise.
2482         (define_symbol): Likewise.
2483         (again:): Likewise.
2484         (read_member_functions): Likewise.
2485         (read_one_struct_field): Likewise.
2486         (read_enum_type): Likewise.
2487         (common_block_start): Likewise.
2488         * stack.c (read_frame_arg): Likewise.
2489         (backtrace_command): Likewise.
2490         * stap-probe.c (stap_parse_register_operand): Likewise.
2491         * symfile.c (syms_from_objfile_1): Likewise.
2492         (find_separate_debug_file): Likewise.
2493         (load_command): Likewise.
2494         (load_progress): Likewise.
2495         (load_section_callback): Likewise.
2496         (reread_symbols): Likewise.
2497         (add_filename_language): Likewise.
2498         (allocate_compunit_symtab): Likewise.
2499         (read_target_long_array): Likewise.
2500         (simple_read_overlay_table): Likewise.
2501         * symtab.c (symbol_set_names): Likewise.
2502         (resize_symbol_cache): Likewise.
2503         (rbreak_command): Likewise.
2504         (completion_list_add_name): Likewise.
2505         (completion_list_objc_symbol): Likewise.
2506         (add_filename_to_list): Likewise.
2507         * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
2508         * target-memory.c (target_write_memory_blocks): Likewise.
2509         * target.c (target_read_string): Likewise.
2510         (read_whatever_is_readable): Likewise.
2511         (target_read_alloc_1): Likewise.
2512         (simple_search_memory): Likewise.
2513         (target_fileio_read_alloc_1): Likewise.
2514         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2515         * top.c (command_line_input): Likewise.
2516         * tracefile-tfile.c (tfile_fetch_registers): Likewise.
2517         * tracefile.c (tracefile_fetch_registers): Likewise.
2518         * tracepoint.c (add_memrange): Likewise.
2519         (init_collection_list): Likewise.
2520         (add_aexpr): Likewise.
2521         (trace_dump_actions): Likewise.
2522         (parse_trace_status): Likewise.
2523         (parse_tracepoint_definition): Likewise.
2524         (parse_tsv_definition): Likewise.
2525         (parse_static_tracepoint_marker_definition): Likewise.
2526         * tui/tui-file.c (tui_sfileopen): Likewise.
2527         (tui_file_adjust_strbuf): Likewise.
2528         * tui/tui-io.c (tui_expand_tabs): Likewise.
2529         * tui/tui-source.c (tui_set_source_content): Likewise.
2530         * typeprint.c (find_global_typedef): Likewise.
2531         * ui-file.c (do_ui_file_xstrdup): Likewise.
2532         (ui_file_obsavestring): Likewise.
2533         (mem_file_write): Likewise.
2534         * utils.c (make_hex_string): Likewise.
2535         (get_regcomp_error): Likewise.
2536         (puts_filtered_tabular): Likewise.
2537         (gdb_realpath_keepfile): Likewise.
2538         (ldirname): Likewise.
2539         (gdb_bfd_errmsg): Likewise.
2540         (substitute_path_component): Likewise.
2541         * valops.c (search_struct_method): Likewise.
2542         (find_oload_champ_namespace_loop): Likewise.
2543         * valprint.c (print_decimal_chars): Likewise.
2544         (read_string): Likewise.
2545         (generic_emit_char): Likewise.
2546         * varobj.c (varobj_delete): Likewise.
2547         (varobj_value_get_print_value): Likewise.
2548         * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
2549         * windows-tdep.c (display_one_tib): Likewise.
2550         * xcoffread.c (read_xcoff_symtab): Likewise.
2551         (process_xcoff_symbol): Likewise.
2552         (swap_sym): Likewise.
2553         (scan_xcoff_symtab): Likewise.
2554         (xcoff_initial_scan): Likewise.
2555         * xml-support.c (gdb_xml_end_element): Likewise.
2556         (xml_process_xincludes): Likewise.
2557         (xml_fetch_content_from_file): Likewise.
2558         * xml-syscall.c (xml_list_of_syscalls): Likewise.
2559         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2560
2561 2015-09-23  James Bowman  <james.bowman@ftdichip.com>
2562
2563         * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
2564         instead of builtin_func_ptr.
2565         (ft32_pointer_to_address): New function.
2566         (ft32_address_class_type_flags): New function.
2567         (ft32_address_class_type_flags_to_name): New function.
2568         (ft32_address_class_name_to_type_flags): New function.
2569         (ft32_gdbarch_init): Set tdep->pc_type.  Call
2570         set_gdbarch_pointer_to_address,
2571         set_gdbarch_address_class_type_flags
2572         set_gdbarch_address_class_name_to_type_flags,
2573         and set_gdbarch_address_class_type_flags_to_name.
2574         * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
2575
2576 2015-09-23  Pierre-Marie de Rodat  <derodat@adacore.com>
2577
2578         * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
2579         value is a reference, actually dereference it in order to get
2580         the underlying value.
2581
2582 2015-09-22  Simon Marchi  <simon.marchi@ericsson.com>
2583
2584         * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
2585
2586 2015-09-21  Simon Marchi  <simon.marchi@ericsson.com>
2587
2588         * cli/cli-setshow.c (cmd_show_list): Constify a variable.
2589         * linespec.c (linespec_lexer_lex_string): Same.
2590
2591 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2592
2593         * NEWS: Mention support for fast tracepoints on aarch64-linux.
2594
2595 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2596
2597         * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
2598         variable.  Call aarch64_decode_adr instead of
2599         aarch64_decode_adrp.
2600         * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
2601         (aarch64_decode_adr): New function declaration.
2602         * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
2603         (aarch64_decode_adr): New function, factored out from
2604         aarch64_decode_adrp to decode both adr and adrp instructions.
2605
2606 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2607
2608         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
2609         (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
2610         (aarch64-insn.o): New rule.
2611         * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
2612         (aarch64*-*-linux*): Likewise.
2613         * arch/aarch64-insn.c: New file.
2614         * arch/aarch64-insn.h: New file.
2615         * aarch64-tdep.c: Include arch/aarch64-insn.h.
2616         (aarch64_debug): Move to arch/aarch64-insn.c.  Declare in
2617         arch/aarch64-insn.h.
2618         (decode_add_sub_imm): Rename to ...
2619         (aarch64_decode_add_sub_imm): ... this.
2620         (decode_adrp): Rename to ...
2621         (aarch64_decode_adrp): ... this.  Move to arch/aarch64-insn.c.
2622         Declare in arch/aarch64-insn.h.
2623         (decode_b): Rename to ...
2624         (aarch64_decode_b): ... this.  Move to arch/aarch64-insn.c.
2625         Declare in arch/aarch64-insn.h.
2626         (decode_bcond): Rename to ...
2627         (aarch64_decode_bcond): ... this.  Move to arch/aarch64-insn.c.
2628         Declare in arch/aarch64-insn.h.
2629         (decode_br): Rename to ...
2630         (aarch64_decode_br): ... this.
2631         (decode_cb): Rename to ...
2632         (aarch64_decode_cb): ... this.  Move to arch/aarch64-insn.c.
2633         Declare in arch/aarch64-insn.h.
2634         (decode_eret): Rename to ...
2635         (aarch64_decode_eret): ... this.
2636         (decode_movz): Rename to ...
2637         (aarch64_decode_movz): ... this.
2638         (decode_orr_shifted_register_x): Rename to ...
2639         (aarch64_decode_orr_shifted_register_x): ... this.
2640         (decode_ret): Rename to ...
2641         (aarch64_decode_ret): ... this.
2642         (decode_stp_offset): Rename to ...
2643         (aarch64_decode_stp_offset): ... this.
2644         (decode_stp_offset_wb): Rename to ...
2645         (aarch64_decode_stp_offset_wb): ... this.
2646         (decode_stur): Rename to ...
2647         (aarch64_decode_stur): ... this.
2648         (decode_tb): Rename to ...
2649         (aarch64_decode_tb): ... this.  Move to arch/aarch64-insn.c.
2650         Declare in arch/aarch64-insn.h.
2651         (aarch64_analyze_prologue): Adjust calls to renamed functions.
2652
2653 2015-09-20  Doug Evans  <xdje42@gmail.com>
2654
2655         * dwarf2read.c (add_partial_symbol): Remove outdated comments.
2656
2657 2015-09-20  Doug Evans  <xdje42@gmail.com>
2658
2659         * dwarf2read.c (dwarf2_compute_name): Add FIXME.  Don't use a local
2660         variable name that collides with a parameter.
2661
2662 2015-09-20  Joel Brobecker  <brobecker@adacore.com>
2663
2664         * dwarf2loc.c (locexpr_get_frame_base): Renames
2665         block_op_get_frame_base.
2666         (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
2667         block_op_get_frame_base by reference to locexpr_get_frame_base.
2668         (loclist_get_frame_base): New function, near identical copy of
2669         locexpr_get_frame_base.
2670         (dwarf2_block_frame_base_loclist_funcs): Replace reference to
2671         block_op_get_frame_base by reference to loclist_get_frame_base.
2672
2673 2015-09-19  Doug Evans  <xdje42@gmail.com>
2674
2675         * ravenscar-thread.c (ravenscar_inferior_created): Replace
2676         current_inferior ()->gdbarch with its wrapper target_gdbarch.
2677
2678 2015-09-18  Doug Evans  <xdje42@gmail.com>
2679
2680         * linux-thread-db.c (record_thread): Return the created thread.
2681         (thread_from_lwp): Likewise.
2682         (thread_db_get_thread_local_address): Update.
2683
2684 2015-09-18  Doug Evans  <xdje42@gmail.com>
2685
2686         * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
2687         move only member demangled_name up.  All uses updated.
2688
2689 2015-09-18  Doug Evans  <xdje42@gmail.com>
2690
2691         * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
2692         kind of minimal symbol in the error message.
2693         * objfiles.c (objfile_flavour_name): New function.
2694         * objfiles.h (objfile_flavour_name): Declare.
2695
2696 2015-09-18  Yao Qi  <yao.qi@linaro.org>
2697
2698         * nat/aarch64-linux.c: Include elf/common.h,
2699         nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
2700         (aarch64_ps_get_thread_area): New function.
2701         * nat/aarch64-linux.h: Include gdb_proc_service.h.
2702         (aarch64_ps_get_thread_area): Declare.
2703         * aarch64-linux-nat.c (ps_get_thread_area): Call
2704         aarch64_ps_get_thread_area.
2705
2706 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2707
2708         * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
2709
2710 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2711
2712         * NEWS: Announce new scheduler-locking mode.
2713         * infrun.c (schedlock_replay): New.
2714         (scheduler_enums): Add schedlock_replay.
2715         (scheduler_mode): Change default to schedlock_replay.
2716         (user_visible_resume_ptid): Handle schedlock_replay.
2717         (clear_proceed_status_thread): Stop replaying if resumed thread is
2718         not replaying.
2719         (schedlock_applies): Handle schedlock_replay.
2720         (_initialize_infrun): Document new scheduler-locking mode.
2721         * record-btrace.c (record_btrace_resume): Remove code to stop other
2722         threads when not replaying the resumed thread.
2723
2724 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2725
2726         * record-btrace.c ((record_btrace_will_replay): New.
2727         (init_record_btrace_ops): Initialize to_record_will_replay.
2728         * record-full.c ((record_full_will_replay): New.
2729         (init_record_full_ops): Initialize to_record_will_replay.
2730         * target-delegates.c: Regenerated.
2731         * target.c (target_record_will_replay): New.
2732         * target.h (struct target_ops) <to_record_will_replay>: New.
2733         (target_record_will_replay): New.
2734
2735 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2736
2737         * record-btrace.c (record_btrace_resume): Call
2738         target_record_stop_replaying.
2739         (record_btrace_stop_replaying_all): New.
2740         (init_record_btrace_ops): Initialize to_record_stop_replaying.
2741         * record-full.c (record_full_stop_replaying): New.
2742         (init_record_full_ops ): Initialize to_record_stop_replaying.
2743         * target-delegates.c: Regenerated.
2744         * target.c (target_record_stop_replaying): New.
2745         * target.h (struct target_ops) <to_record_stop_replaying>: New.
2746         (target_record_stop_replaying): New.
2747
2748 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2749
2750         * record-btrace.c (record_btrace_xfer_partial)
2751         (record_btrace_store_registers, record_btrace_prepare_to_store):
2752         Call record_btrace_is_replaying with inferior_ptid instead of
2753         minus_one_ptid.
2754         (record_btrace_store_registers): Change error message.
2755
2756 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2757
2758         * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2759         Update users to pass minus_one_ptid.
2760         * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2761         * record.c (cmd_record_delete): Pass inferior_ptid to
2762         target_record_is_replaying.
2763         * target-delegates.c: Regenerated.
2764         * target.c (target_record_is_replaying): Add ptid argument.
2765         * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2766         argument.
2767         (target_record_is_replaying): Add ptid argument.
2768
2769 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2770
2771         * record-btrace.c (record_btrace_open): Remove non_stop check.
2772         * NEWS: Announce that record btrace supports non-stop mode.
2773
2774 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2775
2776         * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2777         in the TARKET_WAITKIND_NO_HISTORY case.
2778
2779 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2780
2781         * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2782         (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2783
2784 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2785
2786         * record-btrace.c (get_thread_current_frame): New.
2787         (record_btrace_start_replaying): Call get_thread_current_frame.
2788
2789 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2790
2791         * record-btrace.c (record_btrace_resume_thread): A move request
2792         overwrites a previous move request.
2793         (record_btrace_find_resume_thread): Removed.
2794         (record_btrace_resume): Resume all requested threads.
2795
2796 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2797
2798         * record-btrace.c: Include vec.h.
2799         (record_btrace_find_thread_to_move): Removed.
2800         (btrace_step_no_resumed, btrace_step_again)
2801         (record_btrace_stop_replaying_at_end): New.
2802         (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2803         (record_btrace_single_step_forward): Remove calls to
2804         record_btrace_stop_replaying.
2805         (record_btrace_step_thread): Do only one step for BTHR_CONT and
2806         BTHR_RCONT.  Keep threads at the end of their history moving.
2807         (record_btrace_wait): Call record_btrace_step_thread for all threads
2808         until one reports an event.  Call record_btrace_stop_replaying_at_end
2809         for the eventing thread.
2810
2811 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2812
2813         * record-btrace.c (record_btrace_single_step_forward): Return
2814         NO_HISTORY if a step brings us to the end of the execution history.
2815
2816 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2817
2818         * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2819         to ...
2820         (record_btrace_single_step_forward): ... here and
2821         (record_btrace_single_step_backward): ... here.
2822
2823 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2824
2825         * record-btrace.c (btrace_step_spurious)
2826         (record_btrace_single_step_forward)
2827         (record_btrace_single_step_backward): New.
2828         (record_btrace_step_thread): Call record_btrace_single_step_forward
2829         and record_btrace_single_step_backward.
2830
2831 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2832
2833         * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2834         (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2835
2836 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2837
2838         * record-btrace.c (btrace_thread_flag_to_str)
2839         (record_btrace_cancel_resume): New.
2840         (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2841         (record_btrace_resume): Print execution direction.
2842         (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2843         (record_btrace_wait): Call record_btrace_cancel_resume.
2844
2845 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2846
2847         * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2848         * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2849         (record_btrace_find_thread_to_move): Also accept threads that have
2850         BTHR_STOP set.
2851         (btrace_step_stopped_on_request, record_btrace_stop): New.
2852         (record_btrace_step_thread): Support BTHR_STOP.
2853         (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2854         (init_record_btrace_ops): Initialize to_stop.
2855
2856 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2857
2858         * record-btrace.c (record_btrace_wait): Replace non_stop check with
2859         target_is_non_stop_p ().
2860
2861 2015-09-15  Pierre-Marie de Rodat  <derodat@adacore.com>
2862
2863         * ada-typeprint.c (print_array_type): Do not describe arrays as
2864         packed when they embed dynamic elements.
2865
2866 2015-09-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
2867
2868         * symtab.h (address_class): Document that TLS variables
2869         are handled by LOC_UNRESOLVED.
2870         * findvar.c (default_read_var_value): Don't relocate TLS variables.
2871         * printcmd.c (address_info): Don't relocate TLS variables.
2872
2873 2015-09-15  Pierre Langlois  <pierre.langlois@arm.com>
2874
2875         * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2876         (decode_adrp): Likewise.
2877         (decode_b): Likewise.
2878         (decode_bcond): Likewise.
2879         (decode_br): Likewise.
2880         (decode_cb): Likewise.
2881         (decode_eret): Likewise.
2882         (decode_movz): Likewise.
2883         (decode_orr_shifted_register_x): Likewise.
2884         (decode_ret): Likewise.
2885         (decode_stp_offset): Likewise.
2886         (decode_stp_offset_wb): Likewise.
2887         (decode_stur): Likewise.
2888         (decode_tb): Likewise.
2889         (aarch64_analyze_prologue): Likewise.
2890         (pass_in_x): Likewise.
2891         (pass_in_v): Likewise.
2892         (pass_on_stack): Likewise.
2893         (aarch64_push_dummy_call): Likewise.
2894         (aarch64_extract_return_value): Likewise.
2895         (aarch64_store_return_value): Likewise.
2896         (aarch64_return_value): Likewise.
2897         (aarch64_record_asimd_load_store): Likewise.
2898         (aarch64_record_load_store): Likewise.
2899         (aarch64_record_data_proc_simd_fp): Likewise.
2900
2901 2015-09-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
2902
2903         * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2904         * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2905         (ppc64_skip_trampoline_code_1): ... here.
2906         (ppc64_skip_trampoline_code): New wrapper function.
2907         * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2908
2909 2015-09-15  Yao Qi  <yao.qi@linaro.org>
2910
2911         * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2912         function.
2913         (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2914         * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2915         if target_can_do_single_step returns 1.
2916         * remote.c (struct vCont_action_support) <s, S>: New fields.
2917         (PACKET_vContSupported): New enum.
2918         (remote_protocol_features): New element for vContSupported.
2919         (remote_query_supported): Append "vContSupported+".
2920         (remote_vcont_probe): Remove support_s and support_S, use
2921         rs->supports_vCont.s and rs->supports_vCont.S instead.  Disable
2922         vCont packet if c and C actions are not supported.
2923         (remote_can_do_single_step): New function.
2924         (init_remote_ops): Install it to to_can_do_single_step.
2925         (_initialize_remote): Call add_packet_config_cmd.
2926         * target.h (struct target_ops) <to_can_do_single_step>: New field.
2927         (target_can_do_single_step): New macro.
2928         * target-delegates.c: Re-generated.
2929
2930 2015-09-15  Yao Qi  <yao.qi@linaro.org>
2931
2932         * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2933         (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2934         * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2935         New function.
2936         (aarch64_siginfo_from_compat_siginfo): New function.
2937         * nat/aarch64-linux.h: Include signal.h.
2938         (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2939         (compat_timer_t, compat_clock_t): Likewise.
2940         (struct compat_timeval): New.
2941         (union compat_sigval): New.
2942         (struct compat_siginfo): New.
2943         (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2944         (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2945         (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2946         (cpt_si_band, cpt_si_fd): Likewise.
2947
2948 2015-09-14  Pedro Alves  <palves@redhat.com>
2949
2950         * infrun.c (current_stop_id): New global.
2951         (get_stop_id, new_stop_id): New functions.
2952         (fetch_inferior_event): Handle normal_stop proceeding the target.
2953         (struct stop_context): New.
2954         (save_stop_context, release_stop_context_cleanup)
2955         (stop_context_changed): New functions.
2956         (normal_stop): Return true if the hook-stop changes the stop
2957         context.
2958         * infrun.h (get_stop_id): Declare.
2959         (normal_stop): Now returns int.  Add documentation.
2960
2961 2015-09-14  Pierre-Marie de Rodat  <derodat@adacore.com>
2962
2963         * ada-lang.c (ada_value_ptr_subscript): Update the heading
2964         comment.  Handle packed arrays.
2965
2966 2015-09-14  Pedro Alves  <palves@redhat.com>
2967
2968         * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2969         mention of maint set/show target-non-stop.
2970
2971 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2972
2973         * NEWS: Announce new remote packets for the exec-events
2974         feature and the exec-events feature and associated commands.
2975
2976 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2977
2978         * remote.c (remote_exec_event_p): New function.
2979         (remote_insert_exec_catchpoint): New function.
2980         (remote_remove_exec_catchpoint): New function.
2981         (init_extended_remote_ops): Initialize extended_remote_ops
2982         members to_insert_exec_catchpoint and
2983         to_remove_exec_catchpoint.
2984
2985 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2986             Luis Machado  <lgustavo@codesourcery.com>
2987
2988         * infrun.c (follow_exec): Use process-style ptid for
2989         exec message.  Call add_inferior_with_spaces and
2990         target_follow_exec.
2991         * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2992         * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2993         * remote.c (remote_pspace_data): New static variable.
2994         (remote_pspace_data_cleanup): New function.
2995         (get_remote_exec_file): New function.
2996         (set_remote_exec_file_1): New function.
2997         (set_remote_exec_file): New function.
2998         (show_remote_exec_file): New function.
2999         (remote_exec_file): Delete static variable.
3000         (anonymous enum) <PACKET_exec_event_feature>: New
3001         enumeration constant.
3002         (remote_protocol_features): Add entry for exec-events feature.
3003         (remote_query_supported): Add client side of qSupported query
3004         for exec-events feature.
3005         (remote_follow_exec): New function.
3006         (remote_parse_stop_reply): Handle 'exec' stop reason.
3007         (extended_remote_run, extended_remote_create_inferior): Call
3008         get_remote_exec_file and set_remote_exec_file_1.
3009         (init_extended_remote_ops) <to_follow_exec>: Initialize new
3010         member.
3011         (_initialize_remote): Call
3012         register_program_space_data_with_cleanup.  Call
3013         add_packet_config_cmd for remote exec-events feature.
3014         Modify call to add_setshow_string_noescape_cmd for exec-file
3015         to use new functions set_remote_exec_file and
3016         show_remote_exec_file.
3017         * target-debug.h, target-delegates.c: Regenerated.
3018         * target.c (target_follow_exec): New function.
3019         * target.h (struct target_ops) <to_follow_exec>: New member.
3020         (target_follow_exec): Declare new function.
3021
3022 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
3023
3024         * aarch64-tdep.c (decode_cb): Move up comment describing the
3025         encoding.
3026         (decode_tb): Fix a typo in comment above the function.  Move up
3027         comment describing the encoding.
3028
3029 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
3030
3031         * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
3032
3033 2015-09-11  Mihail-Marian Nistor  <mihail.nistor@freescale.com>
3034
3035         PR gdb/18947
3036         * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
3037         glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
3038
3039 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
3040
3041         * ada-lang.c (scan_discrim_bound): Factor out arithmetic
3042         operations.
3043
3044 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
3045
3046         * ada-lang.c (ada_search_struct_field): Constify parameters
3047         and/or variables..
3048         (xget_renaming_scope): Likewise.
3049         (ada_is_redundant_range_encoding): Likewise.
3050         (scan_discrim_bound): Likewise.
3051         (to_fixed_range_type): Likewise.
3052
3053 2015-09-10  Yao Qi  <yao.qi@linaro.org>
3054
3055         * breakpoint.c (download_tracepoint_locations): New local
3056         can_download_tracepoint.  Check the result of
3057         target_can_download_tracepoint and save it in
3058         can_download_tracepoint if there are tracepoints to download.
3059         * linux-nat.h (enum tribool): Move it to ...
3060         * common/common-types.h: ... here.
3061
3062 2015-09-09  Pedro Alves  <palves@redhat.com>
3063
3064         * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
3065         * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
3066
3067 2015-09-09  Pedro Alves  <palves@redhat.com>
3068
3069         * continuations.c (add_continuation, restore_thread_cleanup)
3070         (do_all_continuations_ptid, do_all_continuations_thread_callback)
3071         (do_all_continuations_thread, do_all_continuations)
3072         (discard_all_continuations_thread_callback)
3073         (discard_all_continuations_thread, discard_all_continuations)
3074         (add_intermediate_continuation)
3075         (do_all_intermediate_continuations_thread_callback)
3076         (do_all_intermediate_continuations_thread)
3077         (do_all_intermediate_continuations)
3078         (discard_all_intermediate_continuations_thread_callback)
3079         (discard_all_intermediate_continuations_thread)
3080         (discard_all_intermediate_continuations): Delete.
3081         * continuations.h (add_continuation, do_all_continuations)
3082         (do_all_continuations_thread, discard_all_continuations)
3083         (discard_all_continuations_thread, add_intermediate_continuation)
3084         (do_all_intermediate_continuations)
3085         (do_all_intermediate_continuations_thread)
3086         (discard_all_intermediate_continuations)
3087         (discard_all_intermediate_continuations_thread): Delete
3088         declarations.
3089         * event-top.c (stdin_event_handler): Delete references to
3090         continuations.
3091         * gdbthread.h (struct thread_info): Delete continuations and
3092         intermediate_continuations fields.
3093         * inf-loop.c (inferior_event_handler): Remove references to
3094         continuations.
3095         * infrun.c (infrun_thread_stop_requested_callback): Remove
3096         references to continuations.
3097         * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
3098         * thread.c: Don't include "continuations.h".
3099         (clear_thread_inferior_resources): Remove references to
3100         continuations.
3101
3102 2015-09-09  Pedro Alves  <palves@redhat.com>
3103
3104         * infcall.c (struct dummy_frame_context_saver): Delete.
3105         (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
3106         (dummy_frame_context_saver_drop)
3107         (dummy_frame_context_saver_cleanup)
3108         (dummy_frame_context_saver_get_regs)
3109         (dummy_frame_context_saver_setup): Delete.
3110         * infcall.h (dummy_frame_context_saver_drop)
3111         (dummy_frame_context_saver_cleanup)
3112         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
3113         Delete.
3114         (get_return_value): Remove 'ctx_saver' paremeter.  Adjust.
3115         * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
3116         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
3117
3118 2015-09-09  Pedro Alves  <palves@redhat.com>
3119
3120         * breakpoint.c: Include "thread-fsm.h".
3121         (struct until_break_command_continuation_args): Delete.
3122         (struct until_break_fsm): New.
3123         (until_break_fsm_ops): New global.
3124         (new_until_break_fsm, until_break_fsm_should_stop): New functions.
3125         (until_break_command_continuation): Delete.
3126         (until_break_fsm_clean_up): New function.
3127         (until_break_fsm_async_reply_reason): New function.
3128         (until_break_command): Adjust to create an until_break_fsm instead
3129         of a continuation.
3130         (momentary_bkpt_print_it): No longer print MI's async-stop-reason
3131         here.
3132         * infcmd.c (struct until_next_fsm): New.
3133         (until_next_fsm_ops): New global.
3134         (new_until_next_fsm, until_next_fsm_should_stop): New function.
3135         (until_next_continuation): Delete.
3136         (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
3137         functions.
3138         (until_next_command): Adjust to create a new until_next_fsm
3139         instead of a continuation.
3140
3141 2015-09-09  Pedro Alves  <palves@redhat.com>
3142
3143         * infcall.c: Include thread_fsm.h.
3144         (struct call_return_meta_info): New.
3145         (get_call_return_value): New function, factored out from
3146         call_function_by_hand_dummy.
3147         (struct call_thread_fsm): New.
3148         (call_thread_fsm_ops): New global.
3149         (new_call_thread_fsm, call_thread_fsm_should_stop)
3150         (call_thread_fsm_should_notify_stop): New functions.
3151         (run_inferior_call): Add 'sm' parameter.  Associate the FSM with
3152         the thread.
3153         (call_function_by_hand_dummy): Create a new call_thread_fsm
3154         instance, associate it with the thread, and wait for the FSM to
3155         finish.  If finished successfully, fetch the function's result
3156         value out of the FSM.
3157         * infrun.c (fetch_inferior_event): If the FSM says the stop
3158         shouldn't be notified, don't call normal_stop.
3159         (maybe_remove_breakpoints): New function, factored out from ...
3160         (normal_stop): ... here.  Simplify.
3161         * infrun.h (maybe_remove_breakpoints): Declare.
3162         * thread-fsm.c (thread_fsm_should_notify_stop): New function.
3163         (thread-fsm.h) <struct thread_fsm_ops>: New field.
3164         (thread_fsm_should_notify_stop): Declare.
3165
3166 2015-09-09  Pedro Alves  <palves@redhat.com>
3167
3168         * Makefile.in (COMMON_OBS): Add thread-fsm.o.
3169         * breakpoint.c (handle_jit_event): Print debug output.
3170         (bpstat_what): Split event callback handling to ...
3171         (bpstat_run_callbacks): ... this new function.
3172         (momentary_bkpt_print_it): No longer handle bp_finish here.
3173         * breakpoint.h (bpstat_run_callbacks): Declare.
3174         * gdbthread.h (struct thread_info) <step_multi>: Delete field.
3175         <thread_fsm>: New field.
3176         (thread_cancel_execution_command): Declare.
3177         * infcmd.c: Include thread-fsm.h.
3178         (struct step_command_fsm): New.
3179         (step_command_fsm_ops): New global.
3180         (new_step_command_fsm, step_command_fsm_prepare): New functions.
3181         (step_1): Adjust to use step_command_fsm_prepare and
3182         prepare_one_step.
3183         (struct step_1_continuation_args): Delete.
3184         (step_1_continuation): Delete.
3185         (step_command_fsm_should_stop): New function.
3186         (step_once): Delete.
3187         (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
3188         (prepare_one_step): New function, based on step_once.
3189         (until_next_command): Remove step_multi reference.
3190         (struct return_value_info): New.
3191         (print_return_value): Rename to ...
3192         (print_return_value_1): ... this.  New struct return_value_info
3193         parameter.  Adjust.
3194         (print_return_value): Reimplement as wrapper around
3195         print_return_value_1.
3196         (struct finish_command_fsm): New.
3197         (finish_command_continuation): Delete.
3198         (finish_command_fsm_ops): New global.
3199         (new_finish_command_fsm, finish_command_fsm_should_stop): New
3200         functions.
3201         (finish_command_fsm_clean_up, finish_command_fsm_return_value):
3202         New.
3203         (finish_command_continuation_free_arg): Delete.
3204         (finish_command_fsm_async_reply_reason): New.
3205         (finish_backward, finish_forward): Change symbol parameter to a
3206         finish_command_fsm.  Adjust.
3207         (finish_command): Create a finish_command_fsm.  Adjust.
3208         * infrun.c: Include "thread-fsm.h".
3209         (clear_proceed_status_thread): Delete the thread's FSM.
3210         (infrun_thread_stop_requested_callback): Cancel the thread's
3211         execution command.
3212         (clean_up_just_stopped_threads_fsms): New function.
3213         (fetch_inferior_event): Handle the event_thread's should_stop
3214         method saying the command isn't done yet.
3215         (process_event_stop_test): Run breakpoint callbacks here.
3216         (print_stop_event): Rename to ...
3217         (print_stop_location): ... this.
3218         (restore_current_uiout_cleanup): New function.
3219         (print_stop_event): Reimplement.
3220         (normal_stop): No longer notify the end_stepping_range observers
3221         here handle "step N" nor "finish" here.  No longer call
3222         print_stop_event here.
3223         * infrun.h (struct return_value_info): Forward declare.
3224         (print_return_value): Declare.
3225         (print_stop_event): Change prototype.
3226         * thread-fsm.c: New file.
3227         * thread-fsm.h: New file.
3228         * thread.c: Include "thread-fsm.h".
3229         (thread_cancel_execution_command): New function.
3230         (clear_thread_inferior_resources): Call it.
3231         * cli/cli-interp.c (cli_on_normal_stop): New function.
3232         (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
3233         observer.
3234         * mi/mi-interp.c: Include "thread-fsm.h".
3235         (restore_current_uiout_cleanup): Delete.
3236         (mi_on_normal_stop): If the thread has an FSM associated, and it
3237         finished, ask it for the async-reply-reason to print.  Always call
3238         print_stop_event here, regardless of the top-level interpreter.
3239         Check bpstat_what to tell whether an asynchronous breakpoint hit
3240         triggered.
3241         * tui/tui-interp.c (tui_on_normal_stop): New function.
3242         (tui_init): Install tui_on_normal_stop as normal_stop observer.
3243
3244 2015-09-09  Pedro Alves  <palves@redhat.com>
3245
3246         * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
3247         check whether the target can async.
3248         * inf-loop.c (inferior_event_handler): Only call target_async if
3249         the target can async.
3250         * infcall.c: Include top.h and interps.h.
3251         (run_inferior_call): For the interpreter to sync mode while
3252         running the infcall.  Call wait_sync_command_done instead of
3253         wait_for_inferior plus normal_stop.
3254         * infcmd.c (prepare_execution_command): Don't check whether the
3255         target can async when running in the foreground.
3256         (step_1): Delete synchronous case handling.
3257         (step_once): Always install a continuation, even in sync mode.
3258         (until_next_command, finish_forward): Don't check whether the
3259         target can async.
3260         (attach_command_post_wait, notice_new_inferior): Always install a
3261         continuation, even in sync mode.
3262         * infrun.c (mark_infrun_async_event_handler): New function.
3263         (proceed): In sync mode, mark infrun's event source instead of
3264         waiting for events here.
3265         (fetch_inferior_event): If the target can't async, do a blocking
3266         wait.
3267         (prepare_to_wait): In sync mode, mark infrun's event source.
3268         (infrun_async_inferior_event_handler): No longer bail out if the
3269         target can't async.
3270         * infrun.h (mark_infrun_async_event_handler): New declaration.
3271         * linux-nat.c (linux_nat_wait_1): Remove calls to
3272         set_sigint_trap/clear_sigint_trap.
3273         (linux_nat_terminal_inferior): No longer check whether the target
3274         can async.
3275         * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
3276         comment.
3277         (mi_execute_command_input_handler): No longer check whether the
3278         target is async.  Update and simplify comment.
3279         * target.c (default_target_wait): New function.
3280         * target.h (struct target_ops) <to_wait>: Now defaults to
3281         default_target_wait.
3282         (default_target_wait): Declare.
3283         * top.c (wait_sync_command_done): New function, factored out from
3284         ...
3285         (maybe_wait_sync_command_done): ... this.
3286         * top.h (wait_sync_command_done): Declare.
3287         * target-delegates.c: Regenerate.
3288
3289 2015-09-09  Markus Metzger  <markus.t.metzger@intel.com>
3290
3291         * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
3292         * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
3293         Remove include of sys/utsname.h.
3294         (linux_determine_kernel_ptr_bits): Remove.
3295         (linux_determine_kernel_start): New.
3296         (perf_event_is_kernel_addr): Remove tinfo argument.  Update users.
3297         Update check.
3298         (perf_event_skip_bts_record): Remove tinfo argument.  Update users.
3299         (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
3300         initialization.
3301         * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
3302         assignment.
3303
3304 2015-09-07  Pedro Alves  <palves@redhat.com>
3305
3306         * guile/guile-internal.h (as_a_scm_t_subr): New.
3307         * guile/guile.c (misc_guile_functions): Use it.
3308         * guile/scm-arch.c (arch_functions): Use it.
3309         * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
3310         Use it.
3311         * guile/scm-breakpoint.c (breakpoint_functions): Use it.
3312         * guile/scm-cmd.c (command_functions): Use it.
3313         * guile/scm-disasm.c (disasm_functions): Use it.
3314         * guile/scm-exception.c (exception_functions)
3315         (private_exception_functions): Use it.
3316         * guile/scm-frame.c (frame_functions)
3317         * guile/scm-gsmob.c (gsmob_functions): Use it.
3318         * guile/scm-iterator.c (iterator_functions): Use it.
3319         * guile/scm-lazy-string.c (lazy_string_functions): Use it.
3320         * guile/scm-math.c (math_functions): Use it.
3321         * guile/scm-objfile.c (objfile_functions): Use it.
3322         * guile/scm-param.c (parameter_functions): Use it.
3323         * guile/scm-ports.c (port_functions, private_port_functions): Use
3324         it.
3325         * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
3326         * guile/scm-progspace.c (pspace_functions): Use it.
3327         * guile/scm-string.c (string_functions): Use it.
3328         * guile/scm-symbol.c (symbol_functions): Use it.
3329         * guile/scm-symtab.c (symtab_functions): Use it.
3330         * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
3331         it.
3332         * guile/scm-value.c (value_functions): Use it.
3333
3334 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
3335
3336         * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
3337         (tui_next_win): Likewise.
3338         (tui_prev_win): Likewise.
3339         (tui_partial_win_by_name): Likewise.
3340         (tui_init_generic_part): Likewise.
3341         (init_content_element): Likewise.
3342         (tui_del_window): Likewise.
3343         (tui_free_window): Likewise.
3344         (tui_del_data_windows): Likewise.
3345         (tui_free_data_content): Likewise.
3346         * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
3347         * tui/tui-regs.c (tui_show_register_group): Likewise.
3348         * tui/tui-win.c (tui_resize_all): Likewise.
3349         (tui_set_focus): Likewise.
3350         (tui_set_win_height): Likewise.
3351         (make_invisible_and_set_new_height): Likewise.
3352         * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
3353         * tui/tui-wingeneral.c (make_visible): Likewise.
3354
3355 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
3356
3357         * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
3358
3359 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
3360
3361         * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
3362         pointer.
3363         * dbxread.c (dbx_end_psymtab): Likewise.
3364         * gnu-nat.c (gnu_write_inferior): Likewise.
3365         * mdebugread.c (cross_ref): Likewise.
3366         * p-valprint.c (pascal_val_print): Likewise.
3367         * xcoffread.c (xcoff_end_psymtab): Likewise.
3368
3369 2015-09-04  Yao Qi  <yao.qi@linaro.org>
3370
3371         * NEWS: Mention the aarch64 multi-arch debugging support.
3372
3373 2015-09-03  Pierre-Marie de Rodat  <derodat@adacore.com>
3374
3375         * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
3376         type instead of a TYPE_CODE_INT one for the string_char_type
3377         and the ada_primitive_type_char types.
3378
3379 2015-09-03  Yao Qi  <yao.qi@linaro.org>
3380
3381         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
3382         Move code to aarch64_linux_region_ok_for_watchpoint.  Call
3383         aarch64_linux_region_ok_for_watchpoint.
3384         * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
3385         New function.
3386         * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
3387         Declare it.
3388
3389 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
3390
3391         * gdb_obstack.h (obstack_strdup): Declare.
3392         * gdb_obstack.c (obstack_strdup): Define.
3393         * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
3394         * gdbarch.c: Regenerate.
3395         * gdbarch.h: Regenerate.
3396         * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
3397
3398 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
3399
3400         * gdbtypes.c (copy_type_recursive): Update documentation.
3401
3402 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
3403
3404         * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
3405         as zero.
3406
3407 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
3408
3409         * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
3410
3411 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
3412
3413         * solib-svr4.c (solib_event_probe_action): Call
3414         get_probe_argument_count using TRY...CATCH.
3415         (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
3416
3417 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
3418
3419         * probe.h (struct probe_ops) <get_probe_argument_count,
3420         evaluate_probe_argument, enable_probe, disable_probe>: Mention in
3421         the comment that the function can throw an exception.
3422         (get_probe_argument_count): Likewise.
3423         (evaluate_probe_argument): Likewise.
3424         * stap-probe.c (stap_get_opcode): Call error instead of
3425         internal_error.
3426         (stap_get_expected_argument_type): Likewise.  Add argument
3427         'probe'.  Improve error message by mentioning the probe's name.
3428         (stap_parse_probe_arguments): Adjust call to
3429         stap_get_expected_argument_type.
3430         (stap_get_arg): Add comment.  Assert that 'probe->args_parsed' is
3431         not zero.  Call internal_error if GDB requests an argument but the
3432         probe has no arguments.
3433
3434 2015-09-01  Pierre-Marie de Rodat  <derodat@adacore.com>
3435
3436         * ada-lang.c (ada_resolve_function): Do not ask the user what
3437         match to use when in completion mode.
3438
3439 2015-08-31  Andrew Burgess  <andrew.burgess@embecosm.com>
3440
3441         * tui/tui-data.c (tui_win_name): Make local variable const, remove
3442         cast of NULL.
3443
3444 2015-08-31  Max Filippov  <jcmvbkbc@gmail.com>
3445
3446         * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
3447         call_abi using XSHAL_ABI macro.
3448
3449 2015-08-29  Doug Evans  <xdje42@gmail.com>
3450
3451         * symtab.h (struct symbol): Tweak comment.
3452
3453 2015-08-29  Patrick Palka  <patrick@parcs.ath.cx>
3454
3455         * gdbtypes.c (alloc_type_arch): Allocate the type on the given
3456         gdbarch obstack instead of on the heap.  Update commentary
3457         accordingly.
3458
3459 2015-08-28  Joel Brobecker  <brobecker@adacore.com>
3460
3461         GDB 7.10 released.
3462
3463 2015-08-28  Simon Marchi  <simon.marchi@ericsson.com>
3464
3465         * NEWS: Update entry about non-8-bits addressable memory.
3466
3467 2015-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
3468
3469         Revert:
3470         2014-11-06  Doug Evans  <xdje42@gmail.com>
3471         * solib.c (solib_global_lookup): Fetch arch from objfile,
3472         not target_gdbarch.
3473
3474 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3475
3476         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
3477         attempt to relocate a TLS variable offset.
3478
3479 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3480
3481         * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
3482         registered yet.  Set inferior_ptid while calling target_read_memory.
3483
3484 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3485
3486         * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
3487         (GDB_ARCH_IS_TRAP_BRKPT): ... this.  Add __powerpc__ case.
3488         * linux-nat.c (check_stopped_by_breakpoint): Use
3489         GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
3490
3491 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3492
3493         * linux-thread-db.c (thread_db_get_thread_local_address): If the
3494         thread was not yet discovered, use thread_from_lwp instead of
3495         calling thread_db_find_new_threads_1.
3496
3497 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
3498
3499         * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
3500         statements.
3501
3502 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
3503
3504         * NEWS: Document support for non-8-bits addressable memory.
3505
3506 2015-08-27  Pedro Alves  <palves@redhat.com>
3507
3508         * configure.ac: Remove AC_TYPE_SIGNAL call.
3509         * configure, config.in: Regenerate.
3510
3511 2015-08-27  Pedro Alves  <palves@redhat.com>
3512
3513         * cp-support.c (gdb_demangle): Use sighandler_t.  Remove cast.
3514         * extension-priv.h: Include signal.h.
3515         (struct signal_handler) <handler>: Change type to sighandler_t.
3516         * extension.c (install_gdb_sigint_handler): Use sighandler_t.
3517         * inflow.c (sigint_ours, sigquit_ours): Change type to
3518         sighandler_t.
3519         (child_terminal_inferior): Remove casts.
3520         (child_terminal_ours_1, new_tty): Use sighandler_t.  Remove casts.
3521         (osig): Change type to sighandler_t.
3522         * nto-procfs.c (ofunc): Change type to sighandler_t.
3523         (procfs_wait): Remove casts.
3524         * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
3525         * remote-sim.c (gdbsim_wait): Use sighandler_t.
3526         * utils.c (wait_to_die_with_timeout): Use sighandler_t.
3527
3528 2015-08-27  Pedro Alves  <palves@redhat.com>
3529
3530         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
3531         * gnulib/aclocal.m4: Renegerate.
3532         * gnulib/config.in: Renegerate.
3533         * gnulib/configure: Renegerate.
3534         * gnulib/import/Makefile.am: Update.
3535         * gnulib/import/Makefile.in: Regenerate.
3536         * gnulib/import/m4/gnulib-cache.m4: Update.
3537         * gnulib/import/m4/gnulib-comp.m4: Update.
3538         * gnulib/import/m4/signal_h.m4: New file.
3539         * gnulib/import/signal.in.h: New file.
3540
3541 2015-08-27  Pedro Alves  <palves@redhat.com>
3542
3543         * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
3544         (MIN_MEMORY_PACKET_SIZE): New.
3545         (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
3546         (get_memory_packet_size): Adjust.  No longer limit the max packet
3547         size.
3548         (set_memory_packet_size): Adjust, and remove dead code.
3549         (remote_check_symbols): Use xmalloc and a cleanup instead of
3550         alloca.
3551         (remote_packet_size): No longer cap the packet size.
3552         (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
3553
3554 2015-08-26  Luis Machado  <lgustavo@codesourcery.com>
3555
3556         * compile/compile.c (compile_to_object): Mention language in
3557         error message.
3558
3559 2015-08-26  Patrick Palka  <patrick@parcs.ath.cx>
3560
3561         * target.c (target_pre_inferior): Unset attach_flag.
3562
3563 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
3564
3565         * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
3566         * gdbarch.c: Re-generate.
3567
3568 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
3569
3570         * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
3571         function with the XNEW-family equivalent.
3572         * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
3573         * ada-exp.y (write_ambiguous_var): Likewise.
3574         * ada-lang.c (resolve_subexp): Likewise.
3575         (user_select_syms): Likewise.
3576         (assign_aggregate): Likewise.
3577         (ada_evaluate_subexp): Likewise.
3578         (cache_symbol): Likewise.
3579         * addrmap.c (allocate_key): Likewise.
3580         (addrmap_create_mutable): Likewise.
3581         * aix-thread.c (sync_threadlists): Likewise.
3582         * alpha-tdep.c (alpha_push_dummy_call): Likewise.
3583         (alpha_gdbarch_init): Likewise.
3584         * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
3585         * arm-linux-nat.c (arm_linux_add_process): Likewise.
3586         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3587         * arm-tdep.c (push_stack_item): Likewise.
3588         (arm_displaced_step_copy_insn): Likewise.
3589         (arm_gdbarch_init): Likewise.
3590         (_initialize_arm_tdep): Likewise.
3591         * avr-tdep.c (push_stack_item): Likewise.
3592         * ax-general.c (new_agent_expr): Likewise.
3593         * block.c (block_initialize_namespace): Likewise.
3594         * breakpoint.c (alloc_counted_command_line): Likewise.
3595         (update_dprintf_command_list): Likewise.
3596         (parse_breakpoint_sals): Likewise.
3597         (decode_static_tracepoint_spec): Likewise.
3598         (until_break_command): Likewise.
3599         (clear_command): Likewise.
3600         (update_global_location_list): Likewise.
3601         (get_breakpoint_objfile_data) Likewise.
3602         * btrace.c (ftrace_new_function): Likewise.
3603         (btrace_set_insn_history): Likewise.
3604         (btrace_set_call_history): Likewise.
3605         * buildsym.c (add_symbol_to_list): Likewise.
3606         (record_pending_block): Likewise.
3607         (start_subfile): Likewise.
3608         (start_buildsym_compunit): Likewise.
3609         (push_subfile): Likewise.
3610         (end_symtab_get_static_block): Likewise.
3611         (buildsym_init): Likewise.
3612         * cli/cli-cmds.c (source_command): Likewise.
3613         * cli/cli-decode.c (add_cmd): Likewise.
3614         * cli/cli-script.c (build_command_line): Likewise.
3615         (setup_user_args): Likewise.
3616         (realloc_body_list): Likewise.
3617         (process_next_line): Likewise.
3618         (copy_command_lines): Likewise.
3619         * cli/cli-setshow.c (do_set_command): Likewise.
3620         * coff-pe-read.c (read_pe_exported_syms): Likewise.
3621         * coffread.c (coff_locate_sections): Likewise.
3622         (coff_symtab_read): Likewise.
3623         (coff_read_struct_type): Likewise.
3624         * common/cleanups.c (make_my_cleanup2): Likewise.
3625         * common/common-exceptions.c (throw_it): Likewise.
3626         * common/filestuff.c (make_cleanup_close): Likewise.
3627         * common/format.c (parse_format_string): Likewise.
3628         * common/queue.h (DEFINE_QUEUE_P): Likewise.
3629         * compile/compile-object-load.c (munmap_list_add): Likewise.
3630         (compile_object_load): Likewise.
3631         * compile/compile-object-run.c (compile_object_run): Likewise.
3632         * compile/compile.c (append_args): Likewise.
3633         * corefile.c (specify_exec_file_hook): Likewise.
3634         * cp-support.c (make_symbol_overload_list): Likewise.
3635         * cris-tdep.c (push_stack_item): Likewise.
3636         (cris_gdbarch_init): Likewise.
3637         * ctf.c (ctf_trace_file_writer_new): Likewise.
3638         * dbxread.c (init_header_files): Likewise.
3639         (add_new_header_file): Likewise.
3640         (init_bincl_list): Likewise.
3641         (dbx_end_psymtab): Likewise.
3642         (start_psymtab): Likewise.
3643         (dbx_end_psymtab): Likewise.
3644         * dcache.c (dcache_init): Likewise.
3645         * dictionary.c (dict_create_hashed): Likewise.
3646         (dict_create_hashed_expandable): Likewise.
3647         (dict_create_linear): Likewise.
3648         (dict_create_linear_expandable): Likewise.
3649         * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
3650         * dummy-frame.c (register_dummy_frame_dtor): Likewise.
3651         * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
3652         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3653         (decode_frame_entry_1): Likewise.
3654         * dwarf2expr.c (new_dwarf_expr_context): Likewise.
3655         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
3656         * dwarf2read.c (dwarf2_has_info): Likewise.
3657         (create_signatured_type_table_from_index): Likewise.
3658         (dwarf2_read_index): Likewise.
3659         (dw2_get_file_names_reader): Likewise.
3660         (create_all_type_units): Likewise.
3661         (read_cutu_die_from_dwo): Likewise.
3662         (init_tu_and_read_dwo_dies): Likewise.
3663         (init_cutu_and_read_dies): Likewise.
3664         (create_all_comp_units): Likewise.
3665         (queue_comp_unit): Likewise.
3666         (inherit_abstract_dies): Likewise.
3667         (read_call_site_scope): Likewise.
3668         (dwarf2_add_field): Likewise.
3669         (dwarf2_add_typedef): Likewise.
3670         (dwarf2_add_member_fn): Likewise.
3671         (attr_to_dynamic_prop): Likewise.
3672         (abbrev_table_alloc_abbrev): Likewise.
3673         (abbrev_table_read_table): Likewise.
3674         (add_include_dir): Likewise.
3675         (add_file_name): Likewise.
3676         (dwarf_decode_line_header): Likewise.
3677         (dwarf2_const_value_attr): Likewise.
3678         (dwarf_alloc_block): Likewise.
3679         (parse_macro_definition): Likewise.
3680         (set_die_type): Likewise.
3681         (write_psymtabs_to_index): Likewise.
3682         (create_cus_from_index): Likewise.
3683         (dwarf2_create_include_psymtab): Likewise.
3684         (process_psymtab_comp_unit_reader): Likewise.
3685         (build_type_psymtab_dependencies): Likewise.
3686         (read_comp_units_from_section): Likewise.
3687         (compute_compunit_symtab_includes): Likewise.
3688         (create_dwo_unit_in_dwp_v1): Likewise.
3689         (create_dwo_unit_in_dwp_v2): Likewise.
3690         (read_func_scope): Likewise.
3691         (process_structure_scope): Likewise.
3692         (mark_common_block_symbol_computed): Likewise.
3693         (load_partial_dies): Likewise.
3694         (dwarf2_symbol_mark_computed): Likewise.
3695         * elfread.c (elf_symfile_segments): Likewise.
3696         (elf_read_minimal_symbols): Likewise.
3697         * environ.c (make_environ): Likewise.
3698         * eval.c (evaluate_subexp_standard): Likewise.
3699         * event-loop.c (create_file_handler): Likewise.
3700         (create_async_signal_handler): Likewise.
3701         (create_async_event_handler): Likewise.
3702         (create_timer): Likewise.
3703         * exec.c (build_section_table): Likewise.
3704         * fbsd-nat.c (fbsd_remember_child): Likewise.
3705         * fork-child.c (fork_inferior): Likewise.
3706         * frv-tdep.c (new_variant): Likewise.
3707         * gdbarch.sh (gdbarch_alloc): Likewise.
3708         (append_name): Likewise.
3709         * gdbtypes.c (rank_function): Likewise.
3710         (copy_type_recursive): Likewise.
3711         (add_dyn_prop): Likewise.
3712         * gnu-nat.c (make_proc): Likewise.
3713         (make_inf): Likewise.
3714         (gnu_write_inferior): Likewise.
3715         * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3716         (build_std_type_info_type): Likewise.
3717         * guile/scm-param.c (compute_enum_list): Likewise.
3718         * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
3719         * guile/scm-value.c (gdbscm_value_call): Likewise.
3720         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3721         * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3722         (read_unwind_info): Likewise.
3723         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3724         * infcall.c (dummy_frame_context_saver_setup): Likewise.
3725         (call_function_by_hand_dummy): Likewise.
3726         * infcmd.c (step_once): Likewise.
3727         (finish_forward): Likewise.
3728         (attach_command): Likewise.
3729         (notice_new_inferior): Likewise.
3730         * inferior.c (add_inferior_silent): Likewise.
3731         * infrun.c (add_displaced_stepping_state): Likewise.
3732         (save_infcall_control_state): Likewise.
3733         (save_inferior_ptid): Likewise.
3734         (_initialize_infrun): Likewise.
3735         * jit.c (bfd_open_from_target_memory): Likewise.
3736         (jit_gdbarch_data_init): Likewise.
3737         * language.c (add_language): Likewise.
3738         * linespec.c (decode_line_2): Likewise.
3739         * linux-nat.c (add_to_pid_list): Likewise.
3740         (add_initial_lwp): Likewise.
3741         * linux-thread-db.c (add_thread_db_info): Likewise.
3742         (record_thread): Likewise.
3743         (info_auto_load_libthread_db): Likewise.
3744         * m32c-tdep.c (m32c_gdbarch_init): Likewise.
3745         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3746         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3747         * m88k-tdep.c (m88k_analyze_prologue): Likewise.
3748         * macrocmd.c (macro_define_command): Likewise.
3749         * macroexp.c (gather_arguments): Likewise.
3750         * macroscope.c (sal_macro_scope): Likewise.
3751         * macrotab.c (new_macro_table): Likewise.
3752         * mdebugread.c (push_parse_stack): Likewise.
3753         (parse_partial_symbols): Likewise.
3754         (parse_symbol): Likewise.
3755         (psymtab_to_symtab_1): Likewise.
3756         (new_block): Likewise.
3757         (new_psymtab): Likewise.
3758         (mdebug_build_psymtabs): Likewise.
3759         (add_pending): Likewise.
3760         (elfmdebug_build_psymtabs): Likewise.
3761         * mep-tdep.c (mep_gdbarch_init): Likewise.
3762         * mi/mi-main.c (mi_execute_command): Likewise.
3763         * mi/mi-parse.c (mi_parse_argv): Likewise.
3764         * minidebug.c (lzma_open): Likewise.
3765         * minsyms.c (terminate_minimal_symbol_table): Likewise.
3766         * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3767         * mips-tdep.c (mips_gdbarch_init): Likewise.
3768         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3769         * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3770         * mt-tdep.c (mt_registers_info): Likewise.
3771         * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3772         * nat/linux-btrace.c (linux_enable_bts): Likewise.
3773         (linux_enable_pt): Likewise.
3774         * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3775         (linux_xfer_osdata_processgroups): Likewise.
3776         * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3777         * nto-procfs.c (procfs_meminfo): Likewise.
3778         * objc-lang.c (start_msglist): Likewise.
3779         (selectors_info): Likewise.
3780         (classes_info): Likewise.
3781         (find_methods): Likewise.
3782         * objfiles.c (allocate_objfile): Likewise.
3783         (update_section_map): Likewise.
3784         * osabi.c (gdbarch_register_osabi): Likewise.
3785         (gdbarch_register_osabi_sniffer): Likewise.
3786         * parse.c (start_arglist): Likewise.
3787         * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3788         (hwdebug_insert_point): Likewise.
3789         * printcmd.c (display_command): Likewise.
3790         (ui_printf): Likewise.
3791         * procfs.c (create_procinfo): Likewise.
3792         (load_syscalls): Likewise.
3793         (proc_get_LDT_entry): Likewise.
3794         (proc_update_threads): Likewise.
3795         * prologue-value.c (make_pv_area): Likewise.
3796         (pv_area_store): Likewise.
3797         * psymtab.c (extend_psymbol_list): Likewise.
3798         (init_psymbol_list): Likewise.
3799         (allocate_psymtab): Likewise.
3800         * python/py-inferior.c (add_thread_object): Likewise.
3801         * python/py-param.c (compute_enum_values): Likewise.
3802         * python/py-value.c (valpy_call): Likewise.
3803         * python/py-varobj.c (py_varobj_iter_next): Likewise.
3804         * python/python.c (ensure_python_env): Likewise.
3805         * record-btrace.c (record_btrace_start_replaying): Likewise.
3806         * record-full.c (record_full_reg_alloc): Likewise.
3807         (record_full_mem_alloc): Likewise.
3808         (record_full_end_alloc): Likewise.
3809         (record_full_core_xfer_partial): Likewise.
3810         * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3811         * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3812         * remote-notif.c (remote_notif_state_allocate): Likewise.
3813         * remote.c (demand_private_info): Likewise.
3814         (remote_notif_stop_alloc_reply): Likewise.
3815         (remote_enable_btrace): Likewise.
3816         * reverse.c (save_bookmark_command): Likewise.
3817         * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3818         * rx-tdep.c (rx_gdbarch_init): Likewise.
3819         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3820         * ser-go32.c (dos_get_tty_state): Likewise.
3821         (dos_copy_tty_state): Likewise.
3822         * ser-mingw.c (ser_windows_open): Likewise.
3823         (ser_console_wait_handle): Likewise.
3824         (ser_console_get_tty_state): Likewise.
3825         (make_pipe_state): Likewise.
3826         (net_windows_open): Likewise.
3827         * ser-unix.c (hardwire_get_tty_state): Likewise.
3828         (hardwire_copy_tty_state): Likewise.
3829         * solib-aix.c (solib_aix_new_lm_info): Likewise.
3830         * solib-dsbt.c (dsbt_current_sos): Likewise.
3831         (dsbt_relocate_main_executable): Likewise.
3832         * solib-frv.c (frv_current_sos): Likewise.
3833         (frv_relocate_main_executable): Likewise.
3834         * solib-spu.c (spu_bfd_fopen): Likewise.
3835         * solib-svr4.c (lm_info_read): Likewise.
3836         (svr4_copy_library_list): Likewise.
3837         (svr4_default_sos): Likewise.
3838         * source.c (find_source_lines): Likewise.
3839         (line_info): Likewise.
3840         (add_substitute_path_rule): Likewise.
3841         * spu-linux-nat.c (spu_bfd_open): Likewise.
3842         * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3843         * stabsread.c (dbx_lookup_type): Likewise.
3844         (read_type): Likewise.
3845         (read_member_functions): Likewise.
3846         (read_struct_fields): Likewise.
3847         (read_baseclasses): Likewise.
3848         (read_args): Likewise.
3849         (_initialize_stabsread): Likewise.
3850         * stack.c (func_command): Likewise.
3851         * stap-probe.c (handle_stap_probe): Likewise.
3852         * symfile.c (addrs_section_sort): Likewise.
3853         (addr_info_make_relative): Likewise.
3854         (load_section_callback): Likewise.
3855         (add_symbol_file_command): Likewise.
3856         (init_filename_language_table): Likewise.
3857         * symtab.c (create_filename_seen_cache): Likewise.
3858         (sort_search_symbols_remove_dups): Likewise.
3859         (search_symbols): Likewise.
3860         * target.c (make_cleanup_restore_target_terminal): Likewise.
3861         * thread.c (new_thread): Likewise.
3862         (enable_thread_stack_temporaries): Likewise.
3863         (make_cleanup_restore_current_thread): Likewise.
3864         (thread_apply_all_command): Likewise.
3865         * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3866         * top.c (gdb_readline_wrapper): Likewise.
3867         * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3868         * tracepoint.c (trace_find_line_command): Likewise.
3869         (all_tracepoint_actions_and_cleanup): Likewise.
3870         (make_cleanup_restore_current_traceframe): Likewise.
3871         (get_uploaded_tp): Likewise.
3872         (get_uploaded_tsv): Likewise.
3873         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3874         (tui_alloc_win_info): Likewise.
3875         (tui_alloc_content): Likewise.
3876         (tui_add_content_elements): Likewise.
3877         * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3878         (tui_set_disassem_content): Likewise.
3879         * ui-file.c (ui_file_new): Likewise.
3880         (stdio_file_new): Likewise.
3881         (tee_file_new): Likewise.
3882         * utils.c (make_cleanup_restore_integer): Likewise.
3883         (add_internal_problem_command): Likewise.
3884         * v850-tdep.c (v850_gdbarch_init): Likewise.
3885         * valops.c (find_oload_champ): Likewise.
3886         * value.c (allocate_value_lazy): Likewise.
3887         (record_latest_value): Likewise.
3888         (create_internalvar): Likewise.
3889         * varobj.c (install_variable): Likewise.
3890         (new_variable): Likewise.
3891         (new_root_variable): Likewise.
3892         (cppush): Likewise.
3893         (_initialize_varobj): Likewise.
3894         * windows-nat.c (windows_make_so): Likewise.
3895         * x86-nat.c (x86_add_process): Likewise.
3896         * xcoffread.c (arrange_linetable): Likewise.
3897         (allocate_include_entry): Likewise.
3898         (process_linenos): Likewise.
3899         (SYMBOL_DUP): Likewise.
3900         (xcoff_start_psymtab): Likewise.
3901         (xcoff_end_psymtab): Likewise.
3902         * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3903         * xtensa-tdep.c (xtensa_register_type): Likewise.
3904         * gdbarch.c: Regenerate.
3905         * gdbarch.h: Regenerate.
3906
3907 2015-08-25  Don Breazeal  <donb@codesourcery.com>
3908
3909         * infrun.c (follow_exec): Re-order operations for
3910         handling follow-exec-mode "new".
3911         (handle_inferior_event_1): Assign ecs->event_thread
3912         to the current thread.
3913         * remote.c (get_remote_arch_state): Add an assertion.
3914
3915 2015-08-26  Pedro Alves  <palves@redhat.com>
3916
3917         * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3918
3919 2015-08-25  Pedro Alves  <palves@redhat.com>
3920
3921         PR gdb/18804
3922         * defs.h (maybe_quit): Declare.
3923         (QUIT): Now calls maybe_quit.
3924         * event-loop.c (clear_async_signal_handler)
3925         (async_signal_handler_is_marked): New functions.
3926         * event-loop.h (async_signal_handler_is_marked)
3927         (clear_async_signal_handler): New declarations.
3928         * remote.c (remote_check_pending_interrupt): New function.
3929         (interrupt_query): Use make_cleanup_restore_target_terminal.  No
3930         longer check whether the target is async.  If waiting for a stop
3931         reply, and a Ctrl-C as been sent to the target, offer to
3932         disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3933         Otherwise do not disconnect and throw a quit.
3934         (_initialize_remote): Install remote_check_pending_interrupt as
3935         to_check_pending_interrupt.
3936         * target.c (target_check_pending_interrupt): New function.
3937         * target.h (struct target_ops) <to_check_pending_interrupt>: New
3938         field.
3939         (target_check_pending_interrupt): New declaration.
3940         * utils.c (maybe_quit): New function.
3941         * target-delegates.c: Regenerate.
3942
3943 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3944
3945         * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3946         Rename local variable pid to tid, and get lwpid of lwp.  Update
3947         debug output.
3948
3949 2015-08-25  Pierre-Marie de Rodat  <derodat@adacore.com>
3950
3951         * ada-lang.c (ada_read_var_value): Add a var_block argument
3952         and pass it to default_read_var_value.
3953         * block.c (block_static_link): New accessor.
3954         * block.h (block_static_link): Declare it.
3955         * buildsym.c (finish_block_internal): Add a static_link
3956         argument.  If there is a static link, associate it to the new
3957         block.
3958         (finish_block): Add a static link argument and pass it to
3959         finish_block_internal.
3960         (end_symtab_get_static_block): Update calls to finish_block and
3961         to finish_block_internal.
3962         (end_symtab_with_blockvector): Update call to
3963         finish_block_internal.
3964         * buildsym.h: Forward-declare struct dynamic_prop.
3965         (struct context_stack): Add a static_link field.
3966         (finish_block): Add a static link argument.
3967         * c-exp.y: Remove an obsolete comment (evaluation of variables
3968         already start from the selected frame, and now they climb *up*
3969         the call stack) and propagate the block information to the
3970         produced expression.
3971         * d-exp.y: Likewise.
3972         * f-exp.y: Likewise.
3973         * go-exp.y: Likewise.
3974         * jv-exp.y: Likewise.
3975         * m2-exp.y: Likewise.
3976         * p-exp.y: Likewise.
3977         * coffread.c (coff_symtab_read): Update calls to finish_block.
3978         * dbxread.c (process_one_symbol): Likewise.
3979         * xcoffread.c (read_xcoff_symtab): Likewise.
3980         * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3981         "sym" parameter to struct block_symbol, update its uses and pass
3982         its block to calls to read_var_value.
3983         (convert_symbol_sym): Update the calls to convert_one_symbol.
3984         * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3985         call to read_var_value.
3986         * dwarf2loc.c (block_op_get_frame_base): New.
3987         (dwarf2_block_frame_base_locexpr_funcs): Implement the
3988         get_frame_base method.
3989         (dwarf2_block_frame_base_loclist_funcs): Likewise.
3990         (dwarf2locexpr_baton_eval): Add a frame argument and use it
3991         instead of the selected frame in order to evaluate the
3992         expression.
3993         (dwarf2_evaluate_property): Add a frame argument.  Update call
3994         to dwarf2_locexpr_baton_eval to provide a frame in available and
3995         to handle the absence of address stack.
3996         * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3997         * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3998         declaration.
3999         (read_func_scope): Record any available static link description.
4000         Update call to finish_block.
4001         (read_lexical_block_scope): Update call to finish_block.
4002         * findvar.c (follow_static_link): New.
4003         (get_hosting_frame): New.
4004         (default_read_var_value): Add a var_block argument.  Use
4005         get_hosting_frame to handle non-local references.
4006         (read_var_value): Add a var_block argument and pass it to the
4007         LA_READ_VAR_VALUE method.
4008         * gdbtypes.c (resolve_dynamic_range): Update calls to
4009         dwarf2_evaluate_property.
4010         (resolve_dynamic_type_internal): Likewise.
4011         * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
4012         read_var_value, passing it the block coming from symbol lookup.
4013         * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
4014         read_var_value (TODO).
4015         * infcmd.c (finish_command_continuation): Update call to
4016         read_var_value, passing it the block coming from symbol lookup.
4017         * infrun.c (insert_exception_resume_breakpoint): Likewise.
4018         * language.h (struct language_defn): Add a var_block argument to
4019         the LA_READ_VAR_VALUE method.
4020         * objfiles.c (struct static_link_htab_entry): New.
4021         (static_link_htab_entry_hash): New.
4022         (static_link_htab_entry_eq): New.
4023         (objfile_register_static_link): New.
4024         (objfile_lookup_static_link): New.
4025         (free_objfile): Free the STATIC_LINKS hashed map if needed.
4026         * objfiles.h: Include hashtab.h.
4027         (struct objfile): Add a static_links field.
4028         (objfile_register_static_link): New.
4029         (objfile_lookup_static_link): New.
4030         * printcmd.c (print_variable_and_value): Update call to
4031         read_var_value.
4032         * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
4033         * python/py-frame.c (frapy_read_var): Update call to
4034         read_var_value, passing it the block coming from symbol lookup.
4035         * python/py-framefilter.c (extract_sym): Add a sym_block
4036         parameter and set the pointed value to NULL (TODO).
4037         (enumerate_args): Update call to extract_sym.
4038         (enumerate_locals): Update calls to extract_sym and to
4039         read_var_value.
4040         * python/py-symbol.c (sympy_value): Update call to
4041         read_var_value (TODO).
4042         * stack.c (read_frame_local): Update call to read_var_value.
4043         (read_frame_arg): Likewise.
4044         (return_command): Likewise.
4045         * symtab.h (struct symbol_block_ops): Add a get_frame_base
4046         method.
4047         (struct symbol): Add a block field.
4048         (SYMBOL_BLOCK): New accessor.
4049         * valops.c (value_of_variable): Remove frame/block handling and
4050         pass the block argument to read_var_value, which does this job
4051         now.
4052         (value_struct_elt_for_reference): Update calls to
4053         read_var_value.
4054         (value_of_this): Pass the block found to read_var_value.
4055         * value.h (read_var_value): Add a var_block argument.
4056         (default_read_var_value): Likewise.
4057
4058 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4059
4060         * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
4061         * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
4062         * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
4063
4064 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4065
4066         * Makefile.in (aarch64-liunx.o): New rule.
4067         (HFILES_NO_SRCDIR): Add aarch64-linux.h.
4068         * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
4069         * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
4070         * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
4071         extern.
4072         (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
4073         * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
4074         * nat/aarch64-linux.c: New file.
4075         * nat/aarch64-linux.h: New file.
4076
4077 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4078
4079         * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
4080         lwp_arch_private_info and ptid_of_lwp.
4081
4082 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4083
4084         * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
4085         Move it to nat/aarch64-linux-hw-point.c.
4086         (debug_reg_change_callback): Likewise.
4087         (aarch64_notify_debug_reg_change): :Likewise.
4088         * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
4089         (aarch64_dr_update_callback_param): New.
4090         (debug_reg_change_callback): New function.
4091         (aarch64_notify_debug_reg_change): Likewise.
4092         * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
4093         Remove the declaration.
4094
4095 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4096
4097         * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
4098         Call current_lwp_ptid.
4099
4100 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4101
4102         * aarch64-linux-nat.c (debug_reg_change_callback): Use
4103         debug_printf.
4104
4105 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4106
4107         * aarch64-linux-nat.c (debug_reg_change_callback): Call
4108         ptid_get_pid rather than ptid_get_lwp.
4109
4110 2015-08-24  Pedro Alves  <palves@redhat.com>
4111
4112         * NEWS (New commands): Mention set/show remote
4113         multiprocess-extensions-packet.
4114         * remote.c (remote_query_supported): Only tell the server to use
4115         the multiprocess extensions if the user hasn't force-disabled them
4116         with "set remote multiprocess-extensions-packet off".
4117
4118 2015-08-24  Pedro Alves  <palves@redhat.com>
4119
4120         * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
4121         1029a8112290f6eee9d7878a391c49db42c999bd.
4122         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
4123         Regenerate.
4124         * gnulib/import/Makefile.am: Update.
4125         * gnulib/import/Makefile.in: Update.
4126         * gnulib/import/alloca.in.h: Update.
4127         * gnulib/import/basename-lgpl.c: Update.
4128         * gnulib/import/canonicalize-lgpl.c: Update.
4129         * gnulib/import/config.charset: Update.
4130         * gnulib/import/dirent.in.h: Update.
4131         * gnulib/import/dirfd.c: Update.
4132         * gnulib/import/dirname-lgpl.c: Update.
4133         * gnulib/import/dirname.h: Update.
4134         * gnulib/import/dosname.h: Update.
4135         * gnulib/import/errno.in.h: Update.
4136         * gnulib/import/extra/snippet/arg-nonnull.h: Update.
4137         * gnulib/import/extra/snippet/c++defs.h: Update.
4138         * gnulib/import/extra/snippet/warn-on-use.h: Update.
4139         * gnulib/import/extra/update-copyright: Update.
4140         * gnulib/import/float+.h: Update.
4141         * gnulib/import/float.c: Update.
4142         * gnulib/import/float.in.h: Update.
4143         * gnulib/import/fnmatch.c: Update.
4144         * gnulib/import/fnmatch.in.h: Update.
4145         * gnulib/import/fnmatch_loop.c: Update.
4146         * gnulib/import/fpucw.h: Update.
4147         * gnulib/import/frexp.c: Update.
4148         * gnulib/import/frexpl.c: Update.
4149         * gnulib/import/gettimeofday.c: Update.
4150         * gnulib/import/inttypes.in.h: Update.
4151         * gnulib/import/isnan.c: Update.
4152         * gnulib/import/isnand-nolibm.h: Update.
4153         * gnulib/import/isnand.c: Update.
4154         * gnulib/import/isnanl-nolibm.h: Update.
4155         * gnulib/import/isnanl.c: Update.
4156         * gnulib/import/itold.c: Update.
4157         * gnulib/import/localcharset.c: Update.
4158         * gnulib/import/localcharset.h: Update.
4159         * gnulib/import/lstat.c: Update.
4160         * gnulib/import/m4/00gnulib.m4: Update.
4161         * gnulib/import/m4/absolute-header.m4: Update.
4162         * gnulib/import/m4/alloca.m4: Update.
4163         * gnulib/import/m4/canonicalize.m4: Update.
4164         * gnulib/import/m4/codeset.m4: Update.
4165         * gnulib/import/m4/configmake.m4: Update.
4166         * gnulib/import/m4/dirent_h.m4: Update.
4167         * gnulib/import/m4/dirfd.m4: Update.
4168         * gnulib/import/m4/dirname.m4: Update.
4169         * gnulib/import/m4/double-slash-root.m4: Update.
4170         * gnulib/import/m4/eealloc.m4: Update.
4171         * gnulib/import/m4/errno_h.m4: Update.
4172         * gnulib/import/m4/exponentd.m4: Update.
4173         * gnulib/import/m4/exponentl.m4: Update.
4174         * gnulib/import/m4/extensions.m4: Update.
4175         * gnulib/import/m4/extern-inline.m4: Update.
4176         * gnulib/import/m4/fcntl-o.m4: Update.
4177         * gnulib/import/m4/float_h.m4: Update.
4178         * gnulib/import/m4/fnmatch.m4: Update.
4179         * gnulib/import/m4/fpieee.m4: Update.
4180         * gnulib/import/m4/frexp.m4: Update.
4181         * gnulib/import/m4/frexpl.m4: Update.
4182         * gnulib/import/m4/gettimeofday.m4: Update.
4183         * gnulib/import/m4/glibc21.m4: Update.
4184         * gnulib/import/m4/gnulib-cache.m4: Update.
4185         * gnulib/import/m4/gnulib-common.m4: Update.
4186         * gnulib/import/m4/gnulib-comp.m4: Update.
4187         * gnulib/import/m4/gnulib-tool.m4: Update.
4188         * gnulib/import/m4/include_next.m4: Update.
4189         * gnulib/import/m4/inttypes-pri.m4: Update.
4190         * gnulib/import/m4/inttypes.m4: Update.
4191         * gnulib/import/m4/isnand.m4: Update.
4192         * gnulib/import/m4/isnanl.m4: Update.
4193         * gnulib/import/m4/largefile.m4: Update.
4194         * gnulib/import/m4/localcharset.m4: Update.
4195         * gnulib/import/m4/locale-fr.m4: Update.
4196         * gnulib/import/m4/locale-ja.m4: Update.
4197         * gnulib/import/m4/locale-zh.m4: Update.
4198         * gnulib/import/m4/longlong.m4: Update.
4199         * gnulib/import/m4/lstat.m4: Update.
4200         * gnulib/import/m4/malloc.m4: Update.
4201         * gnulib/import/m4/malloca.m4: Update.
4202         * gnulib/import/m4/math_h.m4: Update.
4203         * gnulib/import/m4/mbrtowc.m4: Update.
4204         * gnulib/import/m4/mbsinit.m4: Update.
4205         * gnulib/import/m4/mbsrtowcs.m4: Update.
4206         * gnulib/import/m4/mbstate_t.m4: Update.
4207         * gnulib/import/m4/memchr.m4: Update.
4208         * gnulib/import/m4/memmem.m4: Update.
4209         * gnulib/import/m4/mmap-anon.m4: Update.
4210         * gnulib/import/m4/multiarch.m4: Update.
4211         * gnulib/import/m4/nocrash.m4: Update.
4212         * gnulib/import/m4/off_t.m4: Update.
4213         * gnulib/import/m4/pathmax.m4: Update.
4214         * gnulib/import/m4/readlink.m4: Update.
4215         * gnulib/import/m4/rename.m4: Update.
4216         * gnulib/import/m4/rmdir.m4: Update.
4217         * gnulib/import/m4/ssize_t.m4: Update.
4218         * gnulib/import/m4/stat.m4: Update.
4219         * gnulib/import/m4/stdbool.m4: Update.
4220         * gnulib/import/m4/stddef_h.m4: Update.
4221         * gnulib/import/m4/stdint.m4: Update.
4222         * gnulib/import/m4/stdio_h.m4: Update.
4223         * gnulib/import/m4/stdlib_h.m4: Update.
4224         * gnulib/import/m4/string_h.m4: Update.
4225         * gnulib/import/m4/strstr.m4: Update.
4226         * gnulib/import/m4/strtok_r.m4: Update.
4227         * gnulib/import/m4/sys_socket_h.m4: Update.
4228         * gnulib/import/m4/sys_stat_h.m4: Update.
4229         * gnulib/import/m4/sys_time_h.m4: Update.
4230         * gnulib/import/m4/sys_types_h.m4: Update.
4231         * gnulib/import/m4/time_h.m4: Update.
4232         * gnulib/import/m4/unistd_h.m4: Update.
4233         * gnulib/import/m4/warn-on-use.m4: Update.
4234         * gnulib/import/m4/wchar_h.m4: Update.
4235         * gnulib/import/m4/wchar_t.m4: Update.
4236         * gnulib/import/m4/wctype_h.m4: Update.
4237         * gnulib/import/m4/wint_t.m4: Update.
4238         * gnulib/import/malloc.c: Update.
4239         * gnulib/import/malloca.c: Update.
4240         * gnulib/import/malloca.h: Update.
4241         * gnulib/import/math.in.h: Update.
4242         * gnulib/import/mbrtowc.c: Update.
4243         * gnulib/import/mbsinit.c: Update.
4244         * gnulib/import/mbsrtowcs-impl.h: Update.
4245         * gnulib/import/mbsrtowcs-state.c: Update.
4246         * gnulib/import/mbsrtowcs.c: Update.
4247         * gnulib/import/memchr.c: Update.
4248         * gnulib/import/memmem.c: Update.
4249         * gnulib/import/pathmax.h: Update.
4250         * gnulib/import/readlink.c: Update.
4251         * gnulib/import/ref-add.sin: Update.
4252         * gnulib/import/ref-del.sin: Update.
4253         * gnulib/import/rename.c: Update.
4254         * gnulib/import/rmdir.c: Update.
4255         * gnulib/import/same-inode.h: Update.
4256         * gnulib/import/stat.c: Update.
4257         * gnulib/import/stdbool.in.h: Update.
4258         * gnulib/import/stddef.in.h: Update.
4259         * gnulib/import/stdint.in.h: Update.
4260         * gnulib/import/stdio.c: Update.
4261         * gnulib/import/stdio.in.h: Update.
4262         * gnulib/import/stdlib.in.h: Update.
4263         * gnulib/import/str-two-way.h: Update.
4264         * gnulib/import/streq.h: Update.
4265         * gnulib/import/string.in.h: Update.
4266         * gnulib/import/stripslash.c: Update.
4267         * gnulib/import/strnlen1.c: Update.
4268         * gnulib/import/strnlen1.h: Update.
4269         * gnulib/import/strstr.c: Update.
4270         * gnulib/import/strtok_r.c: Update.
4271         * gnulib/import/sys_stat.in.h: Update.
4272         * gnulib/import/sys_time.in.h: Update.
4273         * gnulib/import/sys_types.in.h: Update.
4274         * gnulib/import/time.in.h: Update.
4275         * gnulib/import/unistd.in.h: Update.
4276         * gnulib/import/verify.h: Update.
4277         * gnulib/import/wchar.in.h: Update.
4278         * gnulib/import/wctype.in.h: Update.
4279         * gnulib/import/gettimeofday.c: New file.
4280         * gnulib/import/m4/absolute-header.m4: New file.
4281         * gnulib/import/m4/gettimeofday.m4: New file.
4282         * gnulib/import/m4/sys_socket_h.m4: New file.
4283         * gnulib/import/m4/sys_time_h.m4: New file.
4284         * gnulib/import/stdio.c: Delete file.
4285         * gnulib/import/sys_time.in.h: New file.
4286
4287 2015-08-24  Pedro Alves  <palves@redhat.com>
4288
4289         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
4290         * common/gdb_sys_time.h: New file.
4291         * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
4292         * gdb_select.h: Likewise.
4293         * gdb_usleep.c: Likewise.
4294         * maint.c: Likewise.
4295         * mi/mi-main.c: Likewise.
4296         * mi/mi-parse.h: Likewise.
4297         * remote-fileio.c: Likewise.
4298         * remote-m32r-sdi.c: Likewise.
4299         * remote.c: Likewise.
4300         * ser-base.c: Likewise.
4301         * ser-pipe.c: Likewise.
4302         * ser-tcp.c: Likewise.
4303         * ser-unix.c: Likewise.
4304         * symfile.c: Likewise.
4305         * symfile.c: Likewise.  Rename OSIZE to SIZE throughout.
4306         * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
4307         * utils.c: Likewise.
4308
4309 2015-08-24  Pedro Alves  <palves@redhat.com>
4310
4311         * NEWS: Mention removed support for the various ROM monitors.
4312         * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
4313         ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
4314         * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
4315         gdb_target_obs.
4316         (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
4317         gdb_target_obs.
4318         (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
4319         dsrec.o from gdb_target_obs.
4320         (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
4321         from gdb_target_obs.
4322         (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
4323         gdb_target_obs.
4324         (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
4325         dink32-rom.o from gdb_target_obs.
4326         (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
4327         (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
4328         * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
4329         monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
4330
4331 2015-08-21  Pedro Alves  <palves@redhat.com>
4332
4333         * frame.c (null_frame_id): Explicitly zero-initialize.
4334
4335 2015-08-21  Tom Tromey  <tromey@redhat.com>
4336
4337         * dwarf2read.c (struct dwarf2_section_info): Rename field
4338         'asection' to 'section'.
4339         (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
4340         (dwarf2_locate_sections, dwarf2_locate_sections)
4341         (locate_dwz_sections, locate_v1_virtual_dwo_sections)
4342         (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
4343         (dwarf2_locate_v2_dwp_sections): Adjust.
4344
4345 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
4346
4347         * top.h (gdb_in_secondary_prompt_p): Declare.
4348         * top.c (gdb_secondary_prompt_depth): Define.
4349         (gdb_in_secondary_prompt_p): Define.
4350         (gdb_readline_wrapper_cleanup): Decrement
4351         gdb_secondary_prompt_depth.
4352         (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
4353         * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
4354         are in a secondary prompt.
4355
4356 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
4357
4358         * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
4359         emit the newline.
4360
4361 2015-08-21  Gary Benson  <gbenson@redhat.com>
4362
4363         * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
4364
4365 2015-08-21  Gary Benson  <gbenson@redhat.com>
4366
4367         * target.h (struct target_ops) <to_fileio_open>: New argument
4368         warn_if_slow.  Update comment.  All implementations updated.
4369         (target_fileio_open_warn_if_slow): New declaration.
4370         * target.c (target_fileio_open): Renamed as...
4371         (target_fileio_open_1): ...this.  New argument warn_if_slow.
4372         Pass warn_if_slow to implementation.  Update debug printing.
4373         (target_fileio_open): New function.
4374         (target_fileio_open_warn_if_slow): Likewise.
4375         * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
4376         target_fileio_open_warn_if_slow.
4377
4378 2015-08-21  Gary Benson  <gbenson@redhat.com>
4379
4380         * nat/linux-namespaces.c (linux_mntns_access_fs):
4381         Do not overwrite old_chain.
4382
4383 2015-08-20  Max Filippov  <jcmvbkbc@gmail.com>
4384
4385         * arch/xtensa.h: New file.
4386         * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
4387         (ps_get_thread_area): New function.
4388         * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
4389         set_gdbarch_fetch_tls_load_module_address to enable TLS support.
4390         * xtensa-tdep.c (osabi.h): New #include.
4391         (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
4392         xtensa-specific hooks.
4393         * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
4394         member and move the structure to arch/xtensa.h.
4395
4396 2015-08-21  Pedro Alves  <palves@redhat.com>
4397
4398         * remote.c (struct readahead_cache): New.
4399         (struct remote_state) <readahead_cache>: New field.
4400         (remote_open_1): Invalidate the cache.
4401         (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
4402         functions.
4403         (remote_hostio_pwrite): Invalidate the readahead cache.
4404         (remote_hostio_pread): Rename to ...
4405         (remote_hostio_pread_vFile): ... this.
4406         (remote_hostio_pread_from_cache): New function.
4407         (remote_hostio_pread): Reimplement.
4408         (remote_hostio_close): Invalidate the readahead cache.
4409
4410 2015-08-21  Marcin Cieślak <saper@saper.info>  (tiny patch)
4411
4412         PR build/18843
4413         * procfs.c: Include "filestuff.h".
4414
4415 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
4416
4417         * tui/tui-data.h (tui_command_info): Remove fields cur_line and
4418         curch.
4419         * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
4420         cur_line or curch, instead call wmove().
4421         (init_win_info) [CMD_WIN]: Likewise.
4422         * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
4423         instead call getcury().
4424         (tui_redisplay_readline): Don't set cur_line or curch.
4425         (tui_mld_erase_entire_line): Don't read cur_line, instead call
4426         getcury().
4427         (tui_cont_sig): Remove call to wmove.
4428         (tui_getc): Don't read cur_line or curch, instead call getcury()
4429         or getyx().  Don't set curch.
4430         * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
4431         set cur_line or curch.  Always move cursor to (0,0).
4432
4433 2015-08-20  Pedro Alves  <palves@redhat.com>
4434
4435         * infrun.c (print_target_wait_results): Make extern.
4436         * infrun.h (print_target_wait_results): Declare.
4437         * remote.c (set_stop_requested_callback): Delete.
4438         (process_initial_stop_replies): New function.
4439         (remote_start_remote): Use it.
4440         (stop_reply_queue_length): New function.
4441
4442 2015-08-20  Pedro Alves  <palves@redhat.com>
4443
4444         * dwarf2read.c (process_full_comp_unit): To tell whether
4445         start_subfile managed to deduce a language, test for
4446         language_unknown instead of language_c.
4447
4448 2015-08-20  Pierre-Marie de Rodat  <derodat@adacore.com>
4449
4450         * ada-lex.l: Reset the start condition to INITIAL in the rule that
4451         matches attributes.
4452
4453 2015-08-19  Kevin Buettner  <kevinb@redhat.com>
4454
4455         * dwarf2read.c (dwarf2_string_attr): New function.
4456         (lookup_dwo_unit, process_psymtab_comp_unit_reader)
4457         (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
4458         (read_call_site_scope, namespace_name, guess_full_die_structure_name)
4459         (anonymous_struct_prefix, prepare_one_comp_unit): Use
4460         dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
4461
4462 2015-08-18  Doug Evans  <dje@google.com>
4463             Adrian Sendroiu <adrian.sendroiu@freescale.com>
4464
4465         PR mi/18833
4466         * cli/cli-logging.c (pop_output_files): Don't restore redirection
4467         if MI-like.
4468         * mi/mi-out.c: #include "vec.h".
4469         (ui_filep): New type.
4470         (DEV_VEC_P (ui_filep)): New type.
4471         (struct ui_out_data) <buffer, original_buffer>: Delete.
4472         (struct ui_out_data) <streams>: New member.
4473         (mi_ui_out_impl): Add data_destroy field.
4474         (mi_field_string, mi_field_fmt): Update.
4475         (mi_flush, mi_redirect, field_separator): Update.
4476         (mi_open, mi_close): Update.
4477         (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
4478         (mi_out_data_ctor, mi_out_data_dtor): New functions.
4479         (mi_out_new): Call mi_out_data_ctor.
4480
4481 2015-08-18  Sandra Loosemore  <sandra@codesourcery.com>
4482
4483         * remote.c (strprefix): New.
4484         (remote_parse_stop_reply): Use strprefix instead of strncmp
4485         to ensure exact match of keyword.
4486
4487 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
4488
4489         * gdb_bfd.c (debug_bfd_cache): New variable.
4490         (show_bfd_cache_debug): New function.
4491         (gdb_bfd_open): Add debug logging.
4492         (gdb_bfd_ref): Likewise.
4493         (gdb_bfd_unref): Likewise.
4494         (_initialize_gdb_bfd): Add new set/show command.
4495         * NEWS: Mention new command.
4496
4497 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
4498
4499         * gdb_bfd.c (bfd_sharing): New variable.
4500         (show_bfd_sharing): New function.
4501         (gdb_bfd_open): Check bfd_sharing variable.
4502         (_initialize_gdb_bfd): Add new set/show command.
4503         * NEWS: Mention new command.
4504
4505 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
4506
4507         * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
4508         field.
4509         (struct gdb_bfd_cache_search): Likewise.
4510         (eq_bfd): Compare the size, inode, and device id fields.
4511         (gdb_bfd_open): Initialise the size, inode, and device id fields.
4512         (gdb_bfd_ref): Likewise.
4513         (gdb_bfd_unref): Likewise.
4514
4515 2015-08-18  Pedro Alves  <palves@redhat.com>
4516
4517         * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
4518         target implements to_always_non_stop_p, call it.
4519         * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
4520         (x86_linux_create_target): Install it as to_always_non_stop_p
4521         method.
4522
4523 2015-08-17  Doug Evans  <dje@google.com>
4524
4525         * ui-out.c (default_ui_out_impl): Add comment.
4526
4527 2015-08-17  Iain Buclaw  <ibuclaw@gdcproject.org>
4528
4529         * d-exp.y (type_aggregate_p): New function.
4530         (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
4531         (classify_inner_name): Likewise.
4532         * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
4533
4534 2015-08-15  Doug Evans  <xdje42@gmail.com>
4535
4536         * psymtab.c (add_psymbol_to_bcache): Remove "val" arg.  All callers
4537         updated.
4538         (add_psymbol_to_list): Ditto.
4539
4540 2015-08-15  Doug Evans  <xdje42@gmail.com>
4541
4542         * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab.  All callers
4543         updated.  Call end_psymtab_common.
4544         * dwarf2read.c (process_psymtab_comp_unit_reader): Call
4545         end_psymtab_common.
4546         (build_type_psymtabs_reader): Ditto.
4547         * psympriv.h (sort_pst_symbols): Delete.
4548         (end_psymtab_common): Declare.
4549         * psymtab.c (sort_pst_symbols): Make static.
4550         (end_psymtab_common): New function.
4551         * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
4552
4553 2015-08-15  Doug Evans  <xdje42@gmail.com>
4554
4555         * defs.h (LANGUAGE_BITS): Define.
4556         * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
4557         (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
4558         * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
4559         (minimal_symbol_type): Add nr_minsym_types.
4560         (MINSYM_TYPE_BITS): Define.
4561         (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
4562         (domain_enum_tag): Add NR_DOMAINS.
4563         (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
4564         (SYMBOL_ACLASS_BITS): Define from 6 to 5.
4565
4566 2015-08-15  Doug Evans  <xdje42@gmail.com>
4567
4568         * objfiles.h: Whitespace cleanup.
4569         * psympriv.h: Whitespace cleanup.
4570         * psymtab.c: Whitespace/coding convention cleanup.
4571
4572 2015-08-15  Patrick Palka  <patrick@parcs.ath.cx>
4573
4574         * inferior.c (detach_inferior_command): Don't call
4575         any_thread_of_process when pid is 0.
4576         (kill_inferior_command): Likewise.
4577
4578 2015-08-14  Doug Evans  <xdje42@gmail.com>
4579
4580         PR gdb/11833
4581         * NEWS: Document new /s modifier for the disassemble command.
4582         * cli/cli-cmds.c (disassemble_command): Add support for /s.
4583         (_initialize_cli_cmds): Update online docs of disassemble command.
4584         * disasm.c: #include "source.h".
4585         (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
4586         All uses updated.
4587         (dis_line_entry): New struct.
4588         (hash_dis_line_entry, eq_dis_line_entry): New functions.
4589         (allocate_dis_line_table): New functions.
4590         (maybe_add_dis_line_entry, line_has_code_p): New functions.
4591         (dump_insns): New arg end_pc.  All callers updated.
4592         (do_mixed_source_and_assembly_deprecated): Renamed from
4593         do_mixed_source_and_assembly.  All callers updated.
4594         (do_mixed_source_and_assembly): New function.
4595         (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
4596         * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
4597         DISASSEMBLY_SOURCE.  All uses updated.
4598         (DISASSEMBLY_SOURCE): New macro.
4599         * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
4600
4601 2015-08-14  Keith Seitz  <keiths@redhat.com>
4602
4603         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
4604         `typename' to `type_name' to avoid C++ reserved word.
4605
4606 2015-08-14  Keith Seitz  <keiths@redhat.com>
4607
4608         * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
4609         (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
4610         silence ARI errors.
4611
4612 2015-08-14  Iain Buclaw  <ibuclaw@gdcproject.org>
4613
4614         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
4615         xstrprintf instead of malloc and sprintf.
4616         (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
4617         (lex_one_token): Likewise.
4618
4619 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
4620
4621         * solib-svr4.c (read_program_header): Add base_addr argument to
4622         report the runtime address of the segment.
4623         (find_program_interpreter): Update read_program_header call to pass
4624         a NULL pointer for the new argument.
4625         (scan_dyntag): Add ptr_addr argument to report the runtime address
4626         of the tag payload.
4627         (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
4628         read_program_header to get the base address of the dynamic segment.
4629         (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
4630         read_program_header.
4631         (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
4632
4633 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
4634
4635         * MAINTAINERS (Write After Approval): Add Matthew Fortune.
4636
4637 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
4638
4639         * d-exp.y (%union): Add voidval.
4640         (%token): Add UNKNOWN_NAME as a token to represent an unclassified
4641         name in the lexing stage.
4642         (PostfixExpression): Move symbol completion handling in grammar here
4643         from PrimaryExpression.
4644         (PrimaryExpression): Move routines to handle resolving identifier
4645         tokens in the grammar here from push_expression_name.
4646         (IdentifierExp): Remove the handling of alternating '.' and identifier
4647         tokens.
4648         (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
4649         (BasicType): Remove C-style typename rules.
4650         (d_type_from_name, d_module_from_name, push_variable)
4651         (push_fieldnames, push_type_name, push_module_name)
4652         (push_expression_name): Remove.
4653         (lex_one_token): Rename from yylex.  Replace pstate with par_state.
4654         (token_and_value): New type.
4655         (token_fifo, popping, name_obstack): New globals.
4656         (classify_name): New function.
4657         (classify_inner_name): Likewise.
4658         (yylex): Likewise.
4659         (d_parse): Initialize token_fifo, popping and name_obstack.
4660
4661 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
4662
4663         * Makefile.in (SFILES): Add d-namespace.c.
4664         (COMMON_OBS): Add d-namespace.o.
4665         * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
4666         la_lookup_symbol_nonlocal callback function pointer.
4667         * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
4668         (d_lookup_nested_symbol): New declaration.
4669         * d-namespace.c: New file.
4670
4671 2015-08-13  Pedro Alves  <palves@redhat.com>
4672
4673         * python/py-unwind.c (pyuw_sniffer): Install the invalidate
4674         cleanup after the decref cleanup, not before.
4675
4676 2015-08-13  Pierre-Marie de Rodat  <derodat@adacore.com>
4677
4678         * ada-lang.c: Include namespace.h
4679         (aux_add_nonlocal_symbols): Fix a function name in comment.
4680         (ada_add_block_renamings): New.
4681         (add_nonlocal_symbols): Add global renamings handling.
4682         (ada_lookup_symbol_list_worker): Move the symbol lookup part
4683         to...
4684         (ada_add_all_symbols): ... this new function.
4685         (ada_add_block_symbols): Try to match the input name against the
4686         "using directives list", perform a recursive symbol lookup on
4687         the matched declarations.
4688         * block.h (struct block): Move the_namespace to top-level as
4689         namespace_info. Remove the language_specific field.
4690         (BLOCK_NAMESPACE): Update access to the namespace_info field.
4691         * buildsym.h (using_directives): Rename into...
4692         (local_using_directives): ... this.
4693         (global_using_directives): New.
4694         (struct context_stack): Rename the using_directives field into
4695         local_using_directives.
4696         * buildsym.c (finish_block_internal): Deal with the proper
4697         using directives repository (local or global).
4698         (prepare_for_building): Reset local_using_directives. Assert
4699         that there is no pending global using directive.
4700         (reset_symtab_globals): Reset global_using_directives and
4701         local_using_directives.
4702         (end_symtab_get_static_block): Don't ignore symtabs that have
4703         only using directives.
4704         (push_context): Update references to local_using_directives.
4705         (buildsym_init): Do not reset using_directives.
4706         * cp-support.c: Include namespace.h.
4707         * cp-support.h (struct using_direct): Move to namespace.h.
4708         (cp_add_using_directives): Move to namespace.h.
4709         * cp-namespace.c: Include namespace.h
4710         (cp_add_using_directive): Move to namespace.c, rename it to
4711         add_using_directive, add a "using_directives" argument and use
4712         it as the pending using directives repository.  All callers
4713         updated.
4714         * dwarf2read.c (using_directives): New.
4715         (read_import_statement): Call using_directives.
4716         (read_func_scope): Update references to local_using_directives.
4717         (read_lexical_block_scope): Likewise.
4718         (read_namespace): Update the heading comment, call
4719         using_directives.
4720         * namespace.h: New file.
4721         * namespace.c: New file.
4722         * Makefile.in (SFILES): Add namespace.c.
4723         (COMMON_OBS): Add namespace.o
4724
4725 2015-08-12  Joel Brobecker  <brobecker@adacore.com>
4726
4727         * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
4728         compute RETADDR.
4729
4730 2015-08-12  Keith Seitz  <keiths@redhat.com>
4731
4732         * break-catch-throw.c (re_set_exception_catchpoint) Rename
4733         reserved C++ keyword "explicit" to "explicit_loc".
4734         * breakpoint.c (create_overlay_event_breakpoint)
4735         (create_longjmp_master_breakpoint)
4736         (create_std_terminate_master_breakpoint)
4737         (create_exception_master_breakpoint, update_static_tracepoint):
4738         Rename reserved C++ keyword "explicit" to "explicit_loc".
4739         * completer.c (collect_explicit_location_matches)
4740         (explicit_location_completer): Rename reserved C++ keyword
4741         "explicit" to "explicit_loc".
4742         * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
4743         (canonicalize_linespec, create_sals_line_offset)
4744         (convert_linespec_to_sals, convert_explicit_location_to_sals)
4745         (event_location_to_sals, decode_objc): Rename reserved C++ keyword
4746         "explicit" to "explicit_loc".
4747         * location.c (struct event_location) <explicit>: Rename to
4748         "explicit_loc".
4749         (initialize_explicit_location, new_explicit_location)
4750         (explicit_location_to_string_internal, explicit_location_to_linespec):
4751         Rename reserved C++ keyword "explicit" to "explicit_loc".
4752         * location.h (explicit_location_to_string)
4753         (explicit_location_to_linespec, initialize_explicit_location)
4754         (new_explicit_location): Rename reserved C++ keyword "explicit"
4755         to "explicit_loc".
4756         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4757         keyword "explicit" to "explicit_loc".
4758
4759 2015-08-12  Keith Seitz  <keiths@redhat.com>
4760
4761         * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4762         and only call decode_line_1 when it is non-NULL.
4763
4764 2015-08-12  Luis Machado  <lgustavo@codesourcery.com>
4765
4766         * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4767         location address is not meaningful.
4768         (breakpoint_address_is_meaningful): Update comment.
4769
4770 2015-08-11  Keith Seitz  <keiths@redhat.com>
4771
4772         * NEWS: Mention explicit locations.
4773         * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4774         [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4775         (_initialize_breakpoint): Update documentation for
4776         "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4777
4778 2015-08-11  Keith Seitz  <keiths@redhat.com>
4779
4780         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4781         explicit locations, options "--source", "--function",
4782         "--label", and "--line".
4783
4784 2015-08-11  Keith Seitz  <keiths@redhat.com>
4785
4786         * completer.c: Include location.h.
4787         (enum match_type): New enum.
4788         (location_completer): Rename to ...
4789         (linespec_completer): ... this.
4790         (collect_explicit_location_matches, backup_text_ptr)
4791         (explicit_location_completer): New functions.
4792         (location_completer): "New" function; handle linespec
4793         and explicit location completions.
4794         (complete_line_internal): Remove all location completer-specific
4795         handling.
4796         * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4797         (find_toplevel_char): Export.
4798         (linespec_parse_line_offset): Export.
4799         Issue error if STRING is not numerical.
4800         (gdb_get_linespec_parser_quote_characters): New function.
4801         * linespec.h (linespec_parse_line_offset): Declare.
4802         (get_gdb_linespec_parser_quote_characters): Declare.
4803         (is_ada_operator): Declare.
4804         (find_toplevel_char): Declare.
4805         (linespec_lexer_lex_keyword): Declare.
4806         * location.c (explicit_to_event_location): New function.
4807         (explicit_location_lex_one): New function.
4808         (string_to_explicit_location): New function.
4809         (string_to_event_location): Handle explicit locations.
4810         * location.h (explicit_to_event_location): Declare.
4811         (string_to_explicit_location): Declare.
4812
4813 2015-08-11  Keith Seitz  <keiths@redhat.com>
4814
4815         * break-catch-throw.c (re_set_exception_catchpoint): Convert
4816         linespec into explicit location.
4817         * breakpoint.c (create_overlay_breakpoint)
4818         (create_longjmp_master_breakpoint)
4819         (create_std_terminate_master_breakpoint)
4820         (create_exception_master_breakpoint): Convert linespec into explicit
4821         location.
4822         (update_static_tracepoint): Convert linespec into explicit location.
4823         * linespec.c (enum offset_relative_sign, struct line_offset): Move
4824         location.h.
4825         (struct linespec) <expression, expr_pc, source_filename>
4826         <function_name, label_name, line_offset>: Replace with ...
4827         <explicit>: ... this.
4828         <is_linespec>: New member.
4829         (PARSER_EXPLICIT): New accessor macro.
4830         (undefined_label_error): New function.
4831         (source_file_not_found_error): New function.
4832         (linespec_parse_basic): The parser result is now an explicit location.
4833         Use PARSER_EXPLICIT to access it.
4834         Use undefined_label_error.
4835         (canonicalize_linespec): Convert canonical linespec into explicit
4836         location.
4837         Move string representation of location to explicit_location_to_linespec
4838         and use it and explicit_location_to_string to save string
4839         representations of the canonical location.
4840         (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4841         explicit location.  Update all references.
4842         (convert_explicit_location_to_sals): New function.
4843         (parse_linespec): Use PARSER_EXPLICIT to access the parser
4844         result's explicit location.
4845         (linespec_state_constructor): Initialize is_linespec.
4846         Use PARSER_EXPLICIT.
4847         (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4848         result.
4849         (event_location_to_sals): For linespec locations, set is_linespec.
4850         Handle explicit locations.
4851         (decode_objc): 'ls' contains an explicit location now. Update all
4852         references.
4853         (symtabs_from_filename): Use source_file_not_found_error.
4854         * location.c (struct event_location.u) <explicit>: New member.
4855         (initialize_explicit_location): New function.
4856         (initialize_event_location): Initialize explicit locations.
4857         (new_explicit_location, get_explicit_location)
4858         (get_explicit_location_const): New functions.
4859         (explicit_to_string_internal): New function; most of contents moved
4860         from canonicalize_linespec.
4861         (explicit_location_to_string): New function.
4862         (explicit_location_to_linespec): New function.
4863         (copy_event_location, delete_event_location)
4864         (event_location_to_string_const, event_location_empty_p): Handle
4865         explicit locations.
4866         * location.h (enum offset_relative_sign, struct line_offset): Move
4867         here from linespec.h.
4868         (enum event_location_type): Add EXPLICIT_LOCATION.
4869         (struct explicit_location): New structure.
4870         (explicit_location_to_string): Declare.
4871         (explicit_location_to_linespec): Declare.
4872         (new_explicit_location, get_explicit_locationp
4873         (get_explicit_location_const, initialize_explicit_location): Declare.
4874
4875 2015-08-11  Keith Seitz  <keiths@redhat.com>
4876
4877         * break-catch-throw.c (re_set_exception_catchpoint): Convert
4878         linespec for stap probe to probe location.
4879         * breakpoint.c (create_longjmp_master_breakpoint)
4880         (create_exception_master_breakpoint): Likewise.
4881         (break_command_1): Remove local variable `arg_cp'.
4882         Check location type to set appropriate breakpoint ops methods.
4883         (trace_command): Likewise.
4884         * linespec.c (event_location_to_sals): Assert on probe locations.
4885         * location.c (EL_PROBE): Add macro definition.
4886         (new_probe_location, get_probe_location): New functions.
4887         (copy_event_location, delete_event_location, event_location_to_string)
4888         (string_to_event_location, event_location_empty_p): Handle probe
4889         locations.
4890         * location.h (enum event_location_type): Add PROBE_LOCATION.
4891         (new_probe_location, get_probe_location): Declare.
4892         * probe.c (parse_probes): Assert that LOCATION is a probe location.
4893         Convert linespec into probe location.
4894
4895 2015-08-11  Keith Seitz  <keiths@redhat.com>
4896
4897         * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4898         Convert linespec to address location.
4899         * linespec.c (canonicalize_linespec): Do not handle address
4900         locations here.
4901         (convert_address_location_to_sals): New function; contents moved
4902         from ...
4903         (convert_linespc_to_sals): ... here.
4904         (parse_linespec): Remove address locations from linespec grammar.
4905         Remove handling of address locations.
4906         (linespec_lex_to_end): Remove handling of address linespecs.
4907         (event_location_to_sals): Handle ADDRESS_LOCATION.
4908         (linespec_expression_to_pc): Export.
4909         * linespec.h (linespec_expression_to_pc): Add declaration.
4910         * location.c (struct event_location.u) <address>: New member.
4911         (new_address_location, get_address_location): New functions.
4912         (copy_event_location, delete_event_location, event_location_to_string)
4913         (string_to_event_location, event_location_empty_p): Handle address
4914         locations.
4915         * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4916         (new_address_location, get_address_location): Declare.
4917         * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4918         to address location.
4919         * spu-tdep.c (spu_catch_start): Likewise.
4920
4921 2015-08-11  Keith Seitz  <keiths@redhat.com>
4922
4923         * ax-gdb.c: Include location.h.
4924         (agent_command_1) Use linespec location instead of address
4925         string.
4926         * break-catch-throw.c: Include location.h.
4927         (re_set_exception_catchpoint): Use linespec locations instead
4928         of address strings.
4929         * breakpoint.c: Include location.h.
4930         (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4931         (create_std_terminate_master_breakpoint)
4932         (create_exception_master_breakpoint, update_breakpoints_after_exec):
4933         Use linespec location instead of address string.
4934         (print_breakpoint_location):  Use locations and
4935         event_location_to_string.
4936         Print extra_string for pending locations for non-MI streams.
4937         (print_one_breakpoint_location): Use locations and
4938         event_location_to_string.
4939         (init_raw_breakpoint_without_location): Initialize b->location.
4940         (create_thread_event_breakpoint): Use linespec location instead of
4941         address string.
4942         (init_breakpoint_sal): Likewise.
4943         Only save extra_string if it is non-NULL and not the empty string.
4944         Use event_location_to_string instead of `addr_string'.
4945         Constify `p' and `endp'.
4946         Use skip_spaces_const/skip_space_const instead of non-const versions.
4947         Copy the location into the breakpoint.
4948         If LOCATION is NULL, save the breakpoint address as a linespec location
4949         instead of an address string.
4950         (create_breakpoint_sal): Change `addr_string' parameter to a struct
4951         event_location. All uses updated.
4952         (create_breakpoints_sal): Likewise for local variable `addr_string'.
4953         (parse_breakpoint_sals): Use locations instead of address strings.
4954         Remove check for empty linespec with conditional.
4955         Refactor.
4956         (decode_static_tracepoint_spec): Make argument const and update
4957         function.
4958         (create_breakpoint): Change `arg' to a struct event_location and
4959         rename.
4960         Remove `copy_arg' and `addr_start'.
4961         If EXTRA_STRING is empty, set it to NULL.
4962         Don't populate `canonical' for pending breakpoints.
4963         Pass `extra_string' to find_condition_and_thread.
4964         Clear `extra_string' if `rest' was NULL.
4965         Do not error with "garbage after location" if setting a dprintf
4966         breakpoint.
4967         Copy the location into the breakpoint instead of an address string.
4968         (break_command_1): Use string_to_event_location and pass this to
4969         create_breakpoint instead of an address string.
4970         Check against `arg_cp' for a probe linespec.
4971         (dprintf_command): Use string_to_event_location and pass this to
4972         create_breakpoint instead of an address string.
4973         Throw an exception if no format string was specified.
4974         (print_recreate_ranged_breakpoint): Use event_location_to_string
4975         instead of address strings.
4976         (break_range_command, until_break_command)
4977         (init_ada_exception_breakpoint): Use locations instead
4978         of address strings.
4979         (say_where): Print out extra_string for pending locations.
4980         (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4981         the breakpoint.
4982         (base_breakpoint_create_sals_from_location): Use struct event_location
4983         instead of address string.
4984         Remove `addr_start' and `copy_arg' parameters.
4985         (base_breakpoint_decode_location): Use struct event_location instead of
4986         address string.
4987         (bkpt_re_set): Use locations instead of address strings.
4988         Use event_location_empty_p to check for unset location.
4989         (bkpt_print_recreate): Use event_location_to_string instead of
4990         an address string.
4991         Print out extra_string for pending locations.
4992         (bkpt_create_sals_from_location, bkpt_decode_location)
4993         (bkpt_probe_create_sals_from_location): Use struct event_location
4994         instead of address string.
4995         (bkpt_probe_decode_location): Use struct event_location instead of
4996         address string.
4997         (tracepoint_print_recreate): Use event_location_to_string to
4998         recreate the tracepoint.
4999         (tracepoint_create_sals_from_location, tracepoint_decode_location)
5000         (tracepoint_probe_create_sals_from_location)
5001         (tracepoint_probe_decode_location): Use struct event_location
5002         instead of address string.
5003         (dprintf_print_recreate): Use event_location_to_string to recreate
5004         the dprintf.
5005         (dprintf_re_set): Remove check for valid/missing format string.
5006         (strace_marker_create_sals_from_location)
5007         (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
5008         (update_static_tracepoint): Use struct event_location instead of
5009         address string.
5010         (location_to_sals): Likewise.
5011         Pass `extra_string' to find_condition_and_thread.
5012         For newly resolved pending breakpoint locations, clear the location's
5013         string representation.
5014         Assert that the breakpoint's condition string is NULL when
5015         condition_not_parsed.
5016         (breakpoint_re_set_default, create_sals_from_location_default)
5017         (decode_location_default, trace_command, ftrace_command)
5018         (strace_command, create_tracepoint_from_upload): Use locations
5019         instead of address strings.
5020         * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
5021         Use struct event_location instead of address string.
5022         Update all uses.
5023         <decode_location>: Likewise.
5024         (struct breakpoint) <addr_string>: Change to struct event_location
5025         and rename `location'.
5026         <addr_string_range_end>: Change to struct event_location and rename
5027         `location_range_end'.
5028         (create_breakpoint): Use struct event_location instead of address
5029         string.
5030         * cli/cli-cmds.c: Include location.h.
5031         (edit_command, list_command): Use locations instead of address strings.
5032         * elfread.c: Include location.h.
5033         (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
5034         * guile/scm-breakpoint.c: Include location.h.
5035         (bpscm_print_breakpoint_smob): Use event_location_to_string.
5036         (gdbscm_register_breakpoint): Use locations instead of address
5037         strings.
5038         * linespec.c: Include location.h.
5039         (struct ls_parser) <stream>: Change to const char *.
5040         (PARSER_STREAM): Update.
5041         (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
5042         keywords must be followed by whitespace.
5043         (canonicalize_linespec): Save a linespec location into `canonical'.
5044         Save a canonical linespec into `canonical'.
5045         (parse_linespec): Change `argptr' to const char * and rename `arg'.
5046         All uses updated.
5047         Update function description.
5048         (linespec_parser_new): Initialize `parser'.
5049         Update initialization of  parsing stream.
5050         (event_location_to_sals): New function.
5051         (decode_line_full): Change `argptr' to a struct event_location and
5052         rename it `location'.
5053         Use locations instead of address strings.
5054         Call event_location_to_sals instead of parse_linespec.
5055         (decode_line_1): Likewise.
5056         (decode_line_with_current_source, decode_line_with_last_displayed)
5057         Use locations instead of address strings.
5058         (decode_objc): Likewise.
5059         Change `argptr' to const char * and rename `arg'.
5060         (destroy_linespec_result): Delete the linespec result's location
5061         instead of freeing the address string.
5062         * linespec.h (struct linespec_result) <addr_string>: Change to
5063         struct event_location and rename to ...
5064         <location>: ... this.
5065         (decode_line_1, decode_line_full): Change `argptr' to struct
5066         event_location.  All callers updated.
5067         * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
5068         (mi_cmd_break_insert_1): Use locations instead of address strings.
5069         Throw an error if there was "garbage" at the end of the specified
5070         linespec.
5071         * probe.c: Include location.h.
5072         (parse_probes): Change `argptr' to struct event_location.
5073         Use event locations instead of address strings.
5074         * probe.h (parse_probes): Change `argptr' to struct event_location.
5075         * python/py-breakpoint.c: Include location.h.
5076         (bppy_get_location): Constify local variable `str'.
5077         Use event_location_to_string.
5078         (bppy_init): Use locations instead of address strings.
5079         * python/py-finishbreakpoint.c: Include location.h.
5080         (bpfinishpy_init): Remove local variable `addr_str'.
5081         Use locations instead of address strings.
5082         * python/python.c: Include location.h.
5083         (gdbpy_decode_line): Use locations instead of address strings.
5084         * remote.c: Include location.h.
5085         (remote_download_tracepoint): Use locations instead of address
5086         strings.
5087         * spu-tdep.c: Include location.h.
5088         (spu_catch_start): Remove local variable `buf'.
5089         Use locations instead of address strings.
5090         * tracepoint.c: Include location.h.
5091         (scope_info): Use locations instead of address strings.
5092         (encode_source_string): Constify parameter `src'.
5093         * tracepoint.h (encode_source_string): Likewise.
5094
5095 2015-08-11  Keith Seitz  <keiths@redhat.com>
5096
5097         * Makefile.in (SFILES): Add location.c.
5098         (HFILES_NO_SRCDIR): Add location.h.
5099         (COMMON_OBS): Add location.o.
5100         * linespec.c (linespec_lex_to_end): New function.
5101         * linespec.h (linespec_lex_to_end): Declare.
5102         * location.c: New file.
5103         * location.h: New file.
5104
5105 2015-08-11  Keith Seitz  <keiths@redhat.com>
5106
5107         * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
5108         Renamed to create_sals_from_location.
5109         <decode_linespec>: Renamed to decode_location.
5110         Update all callers.
5111         * breakpoint.c (create_sals_from_address_default): Renamed to ...
5112         (create_sals_from_location_default): ... this.
5113         (addr_string_to_sals): Renamed to ...
5114         (location_to_sals): ... this.
5115         (decode_linespec_default): Renamed to ...
5116         (decode_location_default): ... this.
5117         (base_breakpoint_create_sals_from_address): Renamed to ...
5118         (base_breakpoint_create_sals_from_location): ... this.
5119         (bkpt_create_sals_from_address): Renamed to ...
5120         (bkpt_create_sals_from_location): ... this.
5121         (bkpt_decode_linespec): Renamed to ...
5122         (bkpt_decode_location): ... this.
5123         (bkpt_probe_create_sals_from_address): Renamed to ...
5124         (bkpt_probe_create_sals_from_location): ... this.
5125         (tracepoint_create_sals_from_address): Renamed to ...
5126         (tracepoint_create_sals_from_location): ... this.
5127         (tracepoint_decode_linespec): Renamed to ...
5128         (tracepoint_decode_location): ... this.
5129         (tracepoint_probe_create_sals_from_address): Renamed to ...
5130         (tracepoint_probe_create_sals_from_location): ... this.
5131         (tracepoint_probe_decode_linespec): Renamed to ...
5132         (tracepoint_probe_decode_location): ... this.
5133         (strace_marker_create_sals_from_address): Renamed to ...
5134         (strace_marker_create_sals_from_location): ... this.
5135         (decode_linespec_default): Renamed to ...
5136         (decode_location_default): ... this.
5137
5138 2015-08-10  Doug Evans  <dje@google.com>
5139             Keith Seitz  <keiths@redhat.com>
5140
5141         PR gdb/17960
5142         * symtab.c (make_file_symbol_completion_list_1): Renamed from
5143         make_file_symbol_completion_list and made static.
5144         (make_file_symbol_completion_list): New function.
5145
5146 2015-08-10  Joel Brobecker  <brobecker@adacore.com>
5147
5148         * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
5149         trailing new-line at end of warning message.
5150         (proceed): Add i18n marker to error messages.
5151
5152 2015-08-07  Pedro Alves  <palves@redhat.com>
5153
5154         * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
5155
5156 2015-08-07  Pedro Alves  <palves@redhat.com>
5157
5158         * s390-linux-tdep.c (is_non_branch_ril)
5159         (s390_displaced_step_copy_insn): New functions.
5160         (s390_displaced_step_fixup): Update comment.
5161         (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
5162         gdbarch_displaced_step_copy_insn hook.
5163
5164 2015-08-07  Pedro Alves  <palves@redhat.com>
5165
5166         * infrun.c (displaced_step_prepare_throw): Return -1 if
5167         gdbarch_displaced_step_copy_insn returns NULL.  Update intro
5168         comment.
5169         * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
5170         (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
5171         in file.
5172         (ppc_displaced_step_copy_insn): New function.
5173         (ppc_displaced_step_fixup): Update comment.
5174         (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
5175         gdbarch_displaced_step_copy_insn hook.
5176         * gdbarch.sh (displaced_step_copy_insn): Document what happens on
5177         NULL return.
5178         * gdbarch.h: Regenerate.
5179
5180 2015-08-07  Pedro Alves  <palves@redhat.com>
5181
5182         * inferior.h (struct inferior) <displaced_stepping_failed>: New
5183         field.
5184         * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
5185         Return false if dispaced stepping failed before.
5186         (resume): Pass the current inferior to
5187         use_displaced_stepping_now_p.  Wrap displaced_step_prepare in
5188         TRY/CATCH.  If we get a MEMORY_ERROR, set the inferior's
5189         displaced_stepping_failed flag, and fall back to an in-line
5190         step-over.
5191
5192 2015-08-07  Pedro Alves  <palves@redhat.com>
5193
5194         * darwin-nat.c (darwin_stop): Rename to ...
5195         (darwin_interrupt): ... this.
5196         (_initialize_darwin_inferior): Adjust.
5197         * gnu-nat.c (gnu_stop): Delete.
5198         (gnu_target): Don't install gnu_stop.
5199         * inf-ptrace.c (inf_ptrace_stop): Rename to ...
5200         (inf_ptrace_interrupt): ... this.
5201         (inf_ptrace_target): Adjust.
5202         * infcmd.c (interrupt_target_1): Use target_interrupt instead of
5203         target_stop.
5204         * linux-nat (linux_nat_stop): Rename to ...
5205         (linux_nat_interrupt): ... this.
5206         (linux_nat_stop): Reimplement.
5207         (linux_nat_add_target): Install linux_nat_interrupt.
5208         * nto-procfs.c (nto_interrupt_twice): Rename to ...
5209         (nto_handle_sigint_twice): ... this.
5210         (nto_interrupt): Rename to ...
5211         (nto_handle_sigint): ... this.  Call target_interrupt instead of
5212         target_stop.
5213         (procfs_wait): Adjust.
5214         (procfs_stop): Rename to ...
5215         (procfs_interrupt): ... this.
5216         (init_procfs_targets): Adjust.
5217         * procfs.c (procfs_stop): Rename to ...
5218         (procfs_interrupt): ... this.
5219         (procfs_target): Adjust.
5220         * remote-m32r-sdi.c (m32r_stop): Rename to ...
5221         (m32r_interrupt): ... this.
5222         (init_m32r_ops): Adjust.
5223         * remote-sim.c (gdbsim_stop_inferior): Rename to ...
5224         (gdbsim_interrupt_inferior): ... this.
5225         (gdbsim_stop): Rename to ...
5226         (gdbsim_interrupt): ... this.
5227         (gdbsim_cntrl_c): Adjust.
5228         (init_gdbsim_ops): Adjust.
5229         * remote.c (sync_remote_interrupt): Adjust comments.
5230         (remote_stop_as): Rename to ...
5231         (remote_interrupt_as): ... this.
5232         (remote_stop): Adjust comment.
5233         (remote_interrupt): New function.
5234         (init_remote_ops): Install remote_interrupt.
5235         * target.c (target_interrupt): New function.
5236         * target.h (struct target_ops) <to_interrupt>: New field.
5237         (target_interrupt): New declaration.
5238         * windows-nat.c (windows_stop): Rename to ...
5239         (windows_interrupt): ... this.
5240         * target-delegates.c: Regenerate.
5241
5242 2015-08-07  Pedro Alves  <palves@redhat.com>
5243
5244         * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
5245         threads" as alternative to "switching back to stepped thread".
5246
5247 2015-08-07  Pedro Alves  <palves@redhat.com>
5248
5249         * NEWS: Mention "maint set/show target-non-stop".
5250         * breakpoint.c (update_global_location_list): Check
5251         target_is_non_stop_p instead of non_stop.
5252         * infcmd.c (attach_command_post_wait, attach_command): Likewise.
5253         * infrun.c (show_can_use_displaced_stepping)
5254         (can_use_displaced_stepping_p, start_step_over_inferior):
5255         Likewise.
5256         (internal_resume_ptid): New function.
5257         (resume): Use it.
5258         (proceed): Check target_is_non_stop_p instead of non_stop.  If in
5259         all-stop mode but the target is always in non-stop mode, start all
5260         the other threads that are implicitly resumed too.
5261         (for_each_just_stopped_thread, fetch_inferior_event)
5262         (adjust_pc_after_break, stop_all_threads): Check
5263         target_is_non_stop_p instead of non_stop.
5264         (handle_inferior_event): Likewise.  Handle detach-fork in all-stop
5265         with the target always in non-stop mode.
5266         (handle_signal_stop) <random signal>: Check target_is_non_stop_p
5267         instead of non_stop.
5268         (switch_back_to_stepped_thread): Check target_is_non_stop_p
5269         instead of non_stop.
5270         (keep_going_stepped_thread): Use internal_resume_ptid.
5271         (stop_waiting): If in all-stop mode, and the target is in non-stop
5272         mode, stop all threads.
5273         (keep_going_pass): Likewise, when starting a new in-line step-over
5274         sequence.
5275         * linux-nat.c (get_pending_status, select_event_lwp)
5276         (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
5277         target_is_non_stop_p instead of non_stop.
5278         (linux_nat_always_non_stop_p): New function.
5279         (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
5280         (linux_nat_add_target): Install linux_nat_always_non_stop_p.
5281         * target-delegates.c: Regenerate.
5282         * target.c (target_is_non_stop_p): New function.
5283         (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
5284         (maint_set_target_non_stop_command)
5285         (maint_show_target_non_stop_command): New functions.
5286         (_initilize_target): Install "maint set/show target-non-stop"
5287         commands.
5288         * target.h (struct target_ops) <to_always_non_stop_p>: New field.
5289         (target_non_stop_enabled): New declaration.
5290         (target_is_non_stop_p): New declaration.
5291
5292 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
5293
5294         * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
5295         has a pending status, return true.
5296         * gdbthread.h: Include target/waitstatus.h.
5297         (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
5298         stop_pc>: New fields.
5299         (struct thread_info) <resumed>: New field.
5300         (set_resumed): Declare.
5301         * infrun.c: Include "event-loop.h".
5302         (infrun_async_inferior_event_token, infrun_is_async): New globals.
5303         (infrun_async): New function.
5304         (clear_step_over_info): Add debug output.
5305         (displaced_step_in_progress_any_inferior): New function.
5306         (displaced_step_fixup): New returns int.
5307         (start_step_over): Handle in-line step-overs too.  Assert the
5308         thread is marked resumed.
5309         (resume_cleanups): Clear the thread's resumed flag.
5310         (resume): Set the thread's resumed flag.  Return early if the
5311         thread has a pending status.  Allow stepping a breakpoint with no
5312         signal.
5313         (proceed): Adjust to check 'resumed' instead of 'executing'.
5314         (clear_proceed_status_thread): If the thread has a pending status,
5315         and that status is a finished step, discard the pending status.
5316         (clear_proceed_status): Don't clear step_over_info here.
5317         (random_pending_event_thread, do_target_wait): New functions.
5318         (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
5319         do_target_wait.
5320         (wait_one): New function.
5321         (THREAD_STOPPED_BY): New macro.
5322         (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5323         (thread_stopped_by_hw_breakpoint): New functions.
5324         (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
5325         functions.
5326         (handle_inferior_event): Also call set_resumed(false) on all
5327         threads implicitly stopped by the event.
5328         (restart_threads, resumed_thread_with_pending_status): New
5329         functions.
5330         (finish_step_over): If we were doing an in-line step-over before,
5331         and no longer are after trying to start a new step-over, restart
5332         all threads.  If we have multiple threads with pending events,
5333         save the current event and go through the event loop again.
5334         (handle_signal_stop): Return early if finish_step_over returns
5335         false.
5336         <random signal>: If we get a signal while stepping over a
5337         breakpoint in-line in non-stop mode, restart all threads.  Clear
5338         step_over_info before delivering the signal.
5339         (keep_going_stepped_thread): Use internal_error instead of
5340         gdb_assert.  Mark the thread as resumed.
5341         (keep_going_pass_signal): Assert the thread isn't already resumed.
5342         If some other thread is doing an in-line step-over, defer the
5343         resume.  If we just started a new in-line step-over, stop all
5344         threads.  Don't clear step_over_info.
5345         (infrun_async_inferior_event_handler): New function.
5346         (_initialize_infrun): Create async event handler with
5347         infrun_async_inferior_event_handler as callback.
5348         (infrun_async): New declaration.
5349         * target.c (target_async): New function.
5350         * target.h (target_async): Declare macro and readd as function
5351         declaration.
5352         * target/waitstatus.h (enum target_stop_reason)
5353         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5354         * thread.c (new_thread): Clear the new waitstatus field.
5355         (set_resumed): New function.
5356
5357 2015-08-07  Pedro Alves  <palves@redhat.com>
5358
5359         * infrun.c (keep_going_stepped_thread): New function, factored out
5360         from ...
5361         (switch_back_to_stepped_thread): ... here.
5362
5363 2015-08-07  Pedro Alves  <palves@redhat.com>
5364
5365         * infrun.c (currently_stepping): Extend intro comment.
5366         * target.h (target_resume): Extend intro comment.
5367
5368 2015-08-07  Pedro Alves  <palves@redhat.com>
5369
5370         * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
5371         of inferior_ptid.  If the stepped thread vanished, return 0
5372         instead of resuming here.  Use reset_ecs.  Print the prev_pc and
5373         the current stop_pc in log message.  Clear trap_expected if the
5374         thread advanced.  Don't pass currently_stepping to
5375         do_target_resume.
5376
5377 2015-08-07  Pedro Alves  <palves@redhat.com>
5378
5379         * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
5380         * infrun.c (struct execution_control_state): Move higher up in the
5381         file.
5382         (reset_ecs): New function.
5383         (start_step_over): Now returns int.  Rewrite to use
5384         keep_going_pass_signal instead of manually starting a displaced step.
5385         (resume): Don't call set_running here.  If displaced stepping
5386         can't start now, clear trap_expected.
5387         (find_thread_needs_step_over): Delete function.
5388         (proceed): Set up finish_thread_state_cleanup.  Call set_running.
5389         If the current thread needs a step over, push it in the step-over
5390         chain.  Don't set insert breakpoints nor call resume directly
5391         here.  Instead rewrite to use start_step_over and
5392         keep_going_pass_signal.
5393         (finish_step_over): New function.
5394         (handle_signal_stop): Call finish_step_over instead of
5395         start_step_over.
5396         (switch_back_to_stepped_thread): If the event thread needs another
5397         step-over do that first.  Use start_step_over.
5398         (keep_going_pass_signal): New function, factored out from ...
5399         (keep_going): ... here.
5400         (_initialize_infrun): Comment moved here.
5401         * thread.c (set_running_thread): New function.
5402         (set_running, finish_thread_state): Use set_running_thread.
5403
5404 2015-08-07  Pedro Alves  <palves@redhat.com>
5405
5406         * gdbthread.h (struct thread_info) <step_over_prev,
5407         step_over_next>: New fields.
5408         (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
5409         (thread_step_over_chain_next, thread_is_in_step_over_chain): New
5410         declarations.
5411         * infrun.c (struct displaced_step_request): Delete.
5412         (struct displaced_step_inferior_state) <step_request_queue>:
5413         Delete field.
5414         (displaced_step_prepare): Assert that trap_expected is set.  Use
5415         thread_step_over_chain_enqueue.  Split starting a new displaced
5416         step to ...
5417         (start_step_over): ... this new function.
5418         (resume): Assert the thread isn't waiting for a step over already.
5419         (proceed): Assert the thread isn't waiting for a step over
5420         already.
5421         (infrun_thread_stop_requested): Adjust to remove threads from the
5422         embedded step-over chain.
5423         (handle_inferior_event) <fork/vfork>: Call start_step_over after
5424         displaced_step_fixup.
5425         (handle_signal_stop): Call start_step_over after
5426         displaced_step_fixup.
5427         * infrun.h (step_over_queue_head): New declaration.
5428         * thread.c (step_over_chain_enqueue, step_over_chain_remove)
5429         (thread_step_over_chain_next, thread_is_in_step_over_chain)
5430         (thread_step_over_chain_enqueue)
5431         (thread_step_over_chain_remove): New functions.
5432         (delete_thread_1): Remove thread from the step-over chain.
5433
5434 2015-08-07  Pedro Alves  <palves@redhat.com>
5435
5436         * infrun.c (thread_still_needs_step_over): Rename to ...
5437         (thread_still_needs_step_over_bp): ... this.
5438         (enum step_over_what): New.
5439         (thread_still_needs_step_over): Reimplement.
5440
5441 2015-08-07  Pedro Alves  <palves@redhat.com>
5442
5443         * remote.c (remote_wait_as): If not waiting for a stop reply,
5444         return TARGET_WAITKIND_NO_RESUMED.  If TARGET_WNOHANG is
5445         requested, don't block waiting forever.
5446
5447 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
5448
5449         * infrun.c (adjust_pc_after_break): Now takes thread_info and
5450         waitstatus pointers instead of an ecs.  Adjust.
5451         (handle_inferior_event): Adjust caller.
5452
5453 2015-08-07  Pedro Alves  <palves@redhat.com>
5454
5455         * infrun.c (handle_inferior_event): If we get
5456         TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
5457         mode, mark all threads of the exiting process as not-executing.
5458         (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
5459         TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
5460         exiting process, if inferior_ptid still points at a process.
5461         * thread.c (struct current_thread_cleanup) <next>: New field.
5462         (current_thread_cleanup_chain): New global.
5463         (restore_current_thread_ptid_changed): New function.
5464         (restore_current_thread_cleanup_dtor): Remove the cleanup from the
5465         current_thread_cleanup_chain list.
5466         (make_cleanup_restore_current_thread): Add the cleanup data to the
5467         current_thread_cleanup_chain list.
5468         (_initialize_thread): Install restore_current_thread_ptid_changed
5469         as thread_ptid_changed observer.
5470
5471 2015-08-07  Joel Brobecker  <brobecker@adacore.com>
5472
5473         * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
5474         data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
5475         smaller than expected.
5476
5477 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
5478
5479         * stack.c (get_frame_language): Moved ...
5480         * frame.c (get_frame_language): ... to here.
5481         * language.h (get_frame_language): Declaration moved to frame.h.
5482         * frame.h: Add language.h include, for language enum.
5483         (get_frame_language): Declaration moved from language.h.
5484         * language.c: Add frame.h include.
5485         * top.c: Add frame.h include.
5486         * symtab.h (struct obj_section): Declare.
5487         (struct cmd_list_element): Declare.
5488
5489 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
5490
5491         * language.c (show_language_command): Find selected frame before
5492         asking for the language of that frame.
5493         (set_language_command): Likewise.
5494         * language.h (get_frame_language): Add frame parameter.
5495         * stack.c (get_frame_language): Add frame parameter, assert
5496         parameter is not NULL, update comment and reindent.
5497         * top.c (check_frame_language_change): Pass the selected frame
5498         into get_frame_language.
5499
5500 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
5501
5502         * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
5503         (pt_btrace_insn_flags): New.
5504         (ftrace_add_pt): Call pt_btrace_insn_flags.
5505         * btrace.h (btrace_insn_flag): New.
5506         (btrace_insn) <flags>: New.
5507         * record-btrace.c (btrace_insn_history): Print insn prefix.
5508         * NEWS: Announce it.
5509
5510 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
5511
5512         * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
5513         * configure: Regenerate.
5514
5515 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
5516
5517         * Makefile.in (LIBICONV): Define.
5518         (CLIBS): Add LIBICONV.
5519         * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
5520         * configure: Regenerate.
5521
5522 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
5523             Pedro Alves  <palves@redhat.com>
5524
5525         * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
5526         (arm_set_abi): Likewise.
5527         * ax-general.c (ax_print): Likewise.
5528         * c-exp.y (exp : string_exp): Likewise.
5529         * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
5530         (do_compile_dwarf_expr_to_c): Likewise.
5531         * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
5532         Likewise.
5533         * dwarf2expr.c (execute_stack_op): Likewise.
5534         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
5535         (disassemble_dwarf_expression): Likewise.
5536         * dwarf2read.c (dwarf2_add_member_fn): Likewise.
5537         (read_array_order): Likewise.
5538         (abbrev_table_read_table): Likewise.
5539         (read_attribute_value): Likewise.
5540         (skip_unknown_opcode): Likewise.
5541         (dwarf_decode_macro_bytes): Likewise.
5542         (dwarf_decode_macros): Likewise.
5543         * eval.c (value_f90_subarray): Likewise.
5544         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5545         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5546         * infrun.c (handle_command): Likewise.
5547         * memory-map.c (memory_map_start_memory): Likewise.
5548         * osabi.c (set_osabi): Likewise.
5549         * parse.c (operator_length_standard): Likewise.
5550         * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
5551         single return point.
5552         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5553         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5554         (gdbpy_lookup_global_symbol): Likewise.
5555         * record-full.c (record_full_restore): Likewise.
5556         * regcache.c (regcache_register_status): Likewise.
5557         (regcache_raw_read): Likewise.
5558         (regcache_cooked_read): Likewise.
5559         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5560         * symtab.c (initialize_ordinary_address_classes): Likewise.
5561         * target-debug.h (target_debug_print_signals): Likewise.
5562         * utils.c (do_restore_current_language): Likewise.
5563
5564 2015-08-06  Clem Dickey  <clemd@acm.org>
5565
5566         PR python/17136
5567         * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
5568
5569 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
5570
5571         * complaints.c (enum complaint_series): Add newlines and remove
5572         out of date comment.
5573         (struct complaints) <series>: Change type to enum
5574         complaint_series and remove out of date comment.
5575         (symfile_complaint_hook): Use equivalent enum value
5576         ISOLATED_MESSAGE instead of 0.
5577
5578 2015-08-06  Pedro Alves  <palves@redhat.com>
5579
5580         * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
5581         returned > 0.
5582
5583 2015-08-06  Pierre Langlois  <pierre.langlois@arm.com>
5584
5585         * common/agent.c (symbol_list) <required>: Remove.
5586
5587 2015-08-06  Pedro Alves  <palves@redhat.com>
5588
5589         * target/waitstatus.h (enum target_stop_reason)
5590         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5591
5592 2015-08-05  Pedro Alves  <palves@redhat.com>
5593             Joel Brobecker  <brobecker@adacore.com>
5594
5595         * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
5596         <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
5597         case where BS->STOP is not set.
5598
5599 2015-08-05  Ulrich Weigand  <uweigand@de.ibm.com>
5600
5601         * nat/gdb_thread_db.h: Add copyright header.
5602         Protect against multiple inclusion.
5603
5604 2015-08-05  Yao Qi  <yao.qi@linaro.org>
5605
5606         * aarch64-linux-nat.c (get_thread_id): Remove.
5607         (debug_reg_change_callback): Call ptid_get_lwp instead of
5608         get_thread_id.
5609         (fetch_gregs_from_thread): Likewise.
5610         (store_gregs_to_thread): Likewise.
5611         (fetch_fpregs_from_thread): Likewise.
5612         (store_fpregs_to_thread): Likewise.
5613         (aarch64_linux_get_debug_reg_capacity): Likewise.
5614         * arm-linux-nat.c (get_thread_id): Remove.
5615         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5616         * xtensa-linux-nat.c (get_thread_id): Remove.
5617         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5618         * arm-linux-nat.c (get_thread_id): Remove.
5619         (GET_THREAD_ID): Remove.
5620         (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
5621         (store_fpregs, fetch_regs, store_regs): Likewise.
5622         (fetch_wmmx_regs, store_wmmx_regs): Likewise.
5623         (fetch_vfp_regs, store_vfp_regs): Likewise.
5624         (arm_linux_read_description): Likewise.
5625         (arm_linux_get_hwbp_cap): Likewise.
5626         * xtensa-linux-nat.c (get_thread_id): Remove.
5627         (GET_THREAD_ID): Remove.
5628         (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
5629         GET_THREAD_ID.
5630
5631 2015-08-04  Ciro Santilli  <ciro.santilli@gmail.com>  (obvious patch)
5632
5633         * python/py-linetable.c: Fix case of Linetable to LineTable
5634         in docstrings and code comments.
5635         * python/py-symtab.c: Same.
5636
5637 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5638
5639         * infcmd.c (signal_command): Call do_cleanups for args_chain.
5640
5641 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5642
5643         PR gdb/18767
5644         * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
5645         use.
5646
5647 2015-08-04  Pedro Alves  <palves@redhat.com>
5648
5649         * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
5650         (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
5651         (td_ta_event_addr_ftype, td_ta_set_event_ftype)
5652         (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
5653         (td_thr_validate_ftype, td_thr_get_info_ftype)
5654         (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
5655         (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
5656         New typedefs.
5657         * linux-thread-db.c (struct thread_db_info): Use new typedefs.
5658         (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
5659         local macros and use them instead of verbose_dlsym and dlsym
5660         calls.
5661
5662 2015-08-03  Sandra Loosemore  <sandra@codesourcery.com>
5663
5664         * nios2-tdep.h: Include opcode/nios2.h here.
5665         (NIOS2_CDX_OPCODE_SIZE): New.
5666         (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
5667         * nios2-tdep.c: Don't include opcode/nios2.h here.
5668         (nios2_fetch_insn): For R2, try reading 2-byte instruction if
5669         4-byte read fails.
5670         (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
5671         (nios2_match_addi, nios2_match_orhi): Likewise.
5672         (nios2_match_stw, nios2_match_ldw): Likewise.
5673         (nios2_match_rdctl): Likewise.
5674         (nios2_match_stwm, nios2_match_ldwm): New.
5675         (nios2_match_branch): Add cases for R2 encodings.
5676         (nios2_match_jmpi, nios2_match_calli): Likewise.
5677         (nios2_match_jmpr, nios2_match_callr): Likewise.
5678         (nios2_match_break, nios2_match_trap): Likewise.
5679         (nios2_in_epilogue_p): Add R2 support.
5680         (nios2_analyze_prologue): Update comments.  Recognize R2 CDX
5681         prologues.
5682         (nios2_breakpoint_from_pc): Handle R2 instructions.
5683         (nios2_get_next_pc): Likewise.  Adjust call to
5684         tdep->syscall_next_pc.
5685         * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
5686         Renamed from nios2_linux_rt_sigreturn_tramp_frame.  Use
5687         instruction field macros instead of literal hex values.
5688         (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
5689         (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
5690         Use size field from OP instead of assuming all instructions
5691         are the same size.
5692         (nios2_linux_init_abi): Register appropriate unwinder for mach.
5693
5694 2015-08-03  Ulrich Weigand  <uweigand@de.ibm.com>
5695
5696         * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
5697         variable warning with some compilers.
5698
5699 2015-08-03  Yao Qi  <yao.qi@linaro.org>
5700
5701         * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
5702         in comment.  Replace "rw" with "type".
5703         (arm_linux_remove_watchpoint): Change type of "rw" to
5704         "enum target_hw_bp_type".
5705
5706 2015-08-02  Pierre-Marie de Rodat  <derodat@adacore.com>
5707
5708         * alpha-mdebug-tdep.c (find_proc_desc): Update call to
5709         lookup_symbol.
5710         * ft32-tdep.c (ft32_skip_prologue): Likewise.
5711         * moxie-tdep.c (moxie_skip_prologue): Likewise.
5712         * mt-tdep.c (mt_skip_prologue): Likewise.
5713         * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5714
5715 2015-08-01  Pierre-Marie de Rodat  <derodat@adacore.com>
5716
5717         * ada-exp.y (write_object_renaming): Replace struct
5718         ada_symbol_info with struct block_symbol.  Update field
5719         references accordingly.
5720         (block_lookup, select_possible_type_sym): Likewise.
5721         (find_primitive_type): Likewise.  Also update call to
5722         ada_lookup_symbol to extract the symbol itself.
5723         (write_var_or_type, write_name_assoc): Likewise.
5724         * ada-lang.h (struct ada_symbol_info): Remove.
5725         (ada_lookup_symbol_list): Replace struct ada_symbol_info with
5726         struct block_symbol.
5727         (ada_lookup_encoded_symbol, user_select_syms): Likewise.
5728         (ada_lookup_symbol): Return struct block_symbol instead of a
5729         mere symbol.
5730         * ada-lang.c (defns_collected): Replace struct ada_symbol_info
5731         with struct block_symbol.
5732         (resolve_subexp, ada_resolve_function, sort_choices,
5733         user_select_syms, is_nonfunction, add_defn_to_vec,
5734         num_defns_collected, defns_collected,
5735         symbols_are_identical_enums, remove_extra_symbols,
5736         remove_irrelevant_renamings, add_lookup_symbol_list_worker,
5737         ada_lookup_symbol_list, ada_iterate_over_symbols,
5738         ada_lookup_encoded_symbol, get_var_value): Likewise.
5739         (ada_lookup_symbol): Return a block_symbol instead of a mere
5740         symbol.  Replace struct ada_symbol_info with struct
5741         block_symbol.
5742         (ada_lookup_symbol_nonlocal): Likewise.
5743         (standard_lookup): Make block passing explicit through
5744         lookup_symbol_in_language.
5745         * ada-tasks.c (get_tcb_types_info): Update the calls to
5746         lookup_symbol_in_language to extract the mere symbol out of the
5747         returned value.
5748         (ada_tasks_inferior_data_sniffer): Likewise.
5749         * ax-gdb.c (gen_static_field): Likewise for the call to
5750         lookup_symbol.
5751         (gen_maybe_namespace_elt): Deal with struct block_symbol from
5752         lookup functions.
5753         (gen_expr): Likewise.
5754         * c-exp.y: Likewise.  Remove uses of block_found.
5755         (lex_one_token, classify_inner_name, c_print_token): Likewise.
5756         (classify_name): Likewise.  Rename the "sym" local variable to
5757         "bsym".
5758         * c-valprint.c (print_unpacked_pointer): Likewise.
5759         * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5760         "sym" parameter from struct symbol * to struct block_symbol.
5761         Use it to remove uses of block_found.  Deal with struct
5762         block_symbol from lookup functions.
5763         (gcc_convert_symbol): Likewise.  Update the call to
5764         convert_symbol_sym.
5765         * compile/compile-object-load.c (compile_object_load): Deal with
5766         struct block_symbol from lookup functions.
5767         * cp-namespace.c (cp_lookup_nested_symbol_1,
5768         cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5769         cp_search_static_and_baseclasses,
5770         cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5771         cp_lookup_symbol_imports_or_template,
5772         cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5773         lookup_namespace_scope, cp_lookup_nonlocal,
5774         find_symbol_in_baseclass): Return struct block_symbol instead of
5775         mere symbols and deal with struct block_symbol from lookup
5776         functions.
5777         * cp-support.c (inspect_type, replace_typedefs,
5778         cp_lookup_rtti_type): Deal with struct block_symbol from
5779         lookup functions.
5780         * cp-support.h (cp_lookup_symbol_nonlocal,
5781         cp_lookup_symbol_from_namespace,
5782         cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
5783         Return struct block_symbol instead of mere symbols.
5784         * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5785         push_module_name):
5786         Deal with struct block_symbol from lookup functions.  Remove
5787         uses of block_found.
5788         * eval.c (evaluate_subexp_standard): Update call to
5789         cp_lookup_symbol_namespace.
5790         * f-exp.y: Deal with struct block_symbol from lookup functions.
5791         Remove uses of block_found.
5792         (yylex): Likewise.
5793         * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5794         lookup_enum, lookup_template_type, check_typedef): Deal with
5795         struct block_symbol from lookup functions.
5796         * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5797         * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5798         (gdbscm_lookup_global_symbol): Likewise.
5799         * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5800         * go-exp.y: Likewise.  Remove uses of block_found.
5801         (package_name_p, classify_packaged_name, classify_name):
5802         Likewise.
5803         * infrun.c (insert_exception_resume_breakpoint): Likewise.
5804         * jv-exp.y (push_variable): Likewise.
5805         * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5806         * language.c (language_bool_type): Likewise.
5807         * language.h (struct language_defn): Update
5808         la_lookup_symbol_nonlocal to return a struct block_symbol rather
5809         than a mere symbol.
5810         * linespec.c (find_label_symbols): Deal with struct block_symbol
5811         from lookup functions.
5812         * m2-exp.y: Likewise.  Remove uses of block_found.
5813         (yylex): Likewise.
5814         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5815         * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5816         * p-exp.y: Likewise.  Remove uses of block_found.
5817         (yylex): Likewise.
5818         * p-valprint.c (pascal_val_print): Likewise.
5819         * parse.c (write_dollar_variable): Likewise.  Remove uses of
5820         block_found.
5821         * parser-defs.h (struct symtoken): Turn the SYM field into a
5822         struct block_symbol.
5823         * printcmd.c (address_info): Deal with struct block_symbol from
5824         lookup functions.
5825         * python/py-frame.c (frapy_read_var): Likewise.
5826         * python/py-symbol.c (gdbpy_lookup_symbol,
5827         gdbpy_lookup_global_symbol): Likewise.
5828         * skip.c (skip_function_command): Likewise.
5829         * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
5830         block_symbol instead of a mere symbol.
5831         * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5832         * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5833         * solib.c (solib_global_lookup): Likewise.
5834         * solist.h (solib_global_lookup): Likewise.
5835         (struct target_so_ops): Update lookup_lib_global_symbol to
5836         return a struct block_symbol rather than a mere symbol.
5837         * source.c (select_source_symtab): Deal with struct block_symbol
5838         from lookup functions.
5839         * stack.c (print_frame_args, iterate_over_block_arg_vars):
5840         Likewise.
5841         * symfile.c (set_initial_language): Likewise.
5842         * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
5843         block_symbol.
5844         (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5845         (struct symbol_cache_slot): Turn the FOUND field into a struct
5846         block_symbol.
5847         (block_found): Remove.
5848         (eq_symbol_entry): Update to deal with struct block_symbol in
5849         cache slots.
5850         (symbol_cache_lookup): Return a struct block_symbol rather than
5851         a mere symbol.
5852         (symbol_cache_mark_found): Add a BLOCK parameter to fill
5853         appropriately the cache slots.  Update callers.
5854         (symbol_cache_dump): Update cache slots handling to the type
5855         change.
5856         (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5857         lookup_symbol_aux, lookup_local_symbol,
5858         lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5859         lookup_symbol_in_objfile_symtabs,
5860         lookup_symbol_in_objfile_from_linkage_name,
5861         lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5862         lookup_symbol_in_static_block, lookup_static_symbol,
5863         lookup_global_symbol):
5864         Return a struct block_symbol rather than a mere symbol.  Deal
5865         with struct block_symbol from other lookup functions.  Remove
5866         uses of block_found.
5867         (lookup_symbol_in_block): Remove uses of block_found.
5868         (struct global_sym_lookup_data): Turn the RESULT field into a
5869         struct block_symbol.
5870         (lookup_symbol_global_iterator_cb): Update references to the
5871         RESULT field.
5872         (search_symbols): Deal with struct block_symbol from lookup
5873         functions.
5874         * symtab.h (struct block_symbol): New structure.
5875         (block_found): Remove.
5876         (lookup_symbol_in_language, lookup_symbol,
5877         basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
5878         lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5879         lookup_global_symbol_from_objfile): Return a struct block_symbol
5880         rather than just a mere symbol.  Update comments to remove
5881         mentions of block_found.
5882         * valops.c (find_function_in_inferior,
5883         value_struct_elt_for_reference, value_maybe_namespace_elt,
5884         value_of_this):  Deal with struct block_symbol from lookup
5885         functions.
5886         * value.c (value_static_field, value_fn_field): Likewise.
5887
5888 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5889
5890         * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5891         instead of integer.
5892
5893 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5894             Pedro Alves  <palves@redhat.com>
5895
5896         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5897         type or value instead of integer.
5898         (aarch64_linux_insert_watchpoint): Likewise.
5899         (aarch64_linux_remove_watchpoint): Likewise.
5900         * ada-lang.c (ada_op_print_tab): Likewise.
5901         * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5902         (amd64_linux_syscall_record_common): Likewise.
5903         * arch-utils.c (target_byte_order_user): Likewise.
5904         (default_byte_order): Likewise.
5905         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5906         (arm_linux_get_hwbp_type): Likewise.
5907         (arm_linux_hw_watchpoint_initialize): Likewise.
5908         (arm_linux_insert_watchpoint): Likewise.
5909         * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5910         (arm_linux_syscall_record): Likewise.
5911         * breakpoint.c (update_watchpoint): Likewise.
5912         (breakpoint_here_p): Likewise.
5913         (bpstat_print): Likewise.
5914         (enable_breakpoint_disp): Likewise.
5915         * c-lang.c (c_op_print_tab): Likewise.
5916         * cli/cli-decode.c (add_info_alias): Likewise.
5917         * d-lang.c (d_op_print_tab): Likewise.
5918         * eval.c (evaluate_subexp_standard): Likewise.
5919         * f-exp.y (dot_ops): Likewise.
5920         (f77_keywords): Likewise.
5921         * f-lang.c (f_op_print_tab): Likewise.
5922         * go-lang.c (go_op_print_tab): Likewise.
5923         * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5924         * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5925         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5926         * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5927         * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5928         (struct scm_from_stringn_data): Likewise.
5929         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5930         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5931         (ia64_linux_remove_watchpoint): Likewise.
5932         (ia64_linux_can_use_hw_breakpoint): Likewise.
5933         * infrun.c (print_stop_event): Likewise.
5934         * jv-lang.c (java_op_print_tab): Likewise.
5935         * linux-nat.c (linux_proc_xfer_partial): Likewise.
5936         * linux-nat.h (struct lwp_info): Likewise.
5937         * linux-thread-db.c (enable_thread_event): Likewise.
5938         * m2-lang.c (m2_op_print_tab): Likewise.
5939         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5940         (mi_cmd_stack_list_variables): Likewise.
5941         * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5942         * mi/mi-out.c (mi_table_begin): Likewise.
5943         (mi_table_header): Likewise.
5944         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5945         (mips_linux_insert_watchpoint): Likewise.
5946         (mips_linux_remove_watchpoint): Likewise.
5947         * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5948         * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5949         (mips_linux_watch_type_to_irw): Likewise.
5950         * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5951         (procfs_insert_hw_watchpoint): Likewise.
5952         (procfs_remove_hw_watchpoint): Likewise.
5953         (procfs_hw_watchpoint): Likewise.
5954         (procfs_can_use_hw_breakpoint): Likewise.
5955         (procfs_remove_hw_watchpoint): Likewise.
5956         (procfs_insert_hw_watchpoint): Likewise.
5957         * p-lang.c (pascal_op_print_tab): Likewise.
5958         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5959         * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5960         * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5961         * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5962         (procfs_insert_watchpoint): Likewise.
5963         (procfs_remove_watchpoint): Likewise.
5964         * psymtab.c (recursively_search_psymtabs): Likewise.
5965         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5966         (m32r_insert_watchpoint): Likewise.
5967         * remote-mips.c (mips_can_use_watchpoint): Likewise.
5968         (mips_insert_watchpoint): Likewise.
5969         (mips_remove_watchpoint): Likewise.
5970         * remote.c (watchpoint_to_Z_packet): Likewise.
5971         (remote_insert_watchpoint): Likewise.
5972         (remote_remove_watchpoint): Likewise.
5973         (remote_check_watch_resources): Likewise.
5974         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5975         (s390_remove_watchpoint): Likewise.
5976         (s390_can_use_hw_breakpoint): Likewise.
5977         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5978         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5979         * target.h (struct target_ops): Likewise.
5980         * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5981         * ui-out.c (struct ui_out_hdr): Likewise.
5982         (append_header_to_list): Likewise.
5983         (get_next_header): Likewise.
5984         (verify_field): Likewise.
5985         (ui_out_begin): Likewise.
5986         (ui_out_field_int): Likewise.
5987         (ui_out_field_fmt_int): Likewise.
5988         (ui_out_field_skip): Likewise.
5989         (ui_out_field_string): Likewise.
5990         (ui_out_field_fmt): Likewise.
5991         * varobj.c (new_variable): Likewise.
5992         * x86-nat.c (x86_insert_watchpoint): Likewise.
5993         (x86_remove_watchpoint): Likewise.
5994         (x86_can_use_hw_breakpoint): Likewise.
5995         * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5996         * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5997         previously anonymous enumeration type..
5998         * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5999         value.
6000         * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
6001         (target_debug_print_enum_bptype): New.
6002         * target-delegates.c: Regenerate.
6003
6004 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
6005
6006         * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
6007         already says and disallow non-stack memory writes in the prologue.
6008
6009 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
6010
6011         * nios2-tdep.c (nios2_analyze_prologue): Update comments to
6012         reflect how current GCC emits stack overflow checks.  Match
6013         both trap and break instructions for backward compatbility.
6014         Disallow other trap and break instructions in the prologue.
6015
6016 2015-07-30  Pedro Alves  <palves@redhat.com>
6017
6018         PR threads/18600
6019         * linux-nat.c (wait_lwp): Report to the core when thread group
6020         leader exits.
6021
6022 2015-07-30  Pedro Alves  <palves@redhat.com>
6023             Simon Marchi  <simon.marchi@ericsson.com>
6024
6025         PR threads/18600
6026         * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
6027         mark the new thread as resumed.  Remove STOPPING parameter.
6028         (wait_lwp): Adjust call to linux_handle_extended_wait.
6029         (linux_nat_filter_event): Adjust call to
6030         linux_handle_extended_wait.
6031         (resume_stopped_resumed_lwps): Add debug output.
6032
6033 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
6034
6035         * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
6036         isize argument.
6037         * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
6038         * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
6039         gdbarch_fast_tracepoint_valid_at.
6040         * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
6041         * gdbarch.h: Regenerate.
6042         * gdbarch.c: Regenerate.
6043         * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
6044         argument.  Do not set it.
6045         * remote.c (remote_download_tracepoint): Adjust call to
6046         gdbarch_fast_tracepoint_valid_at.  Call gdb_insn_length to get
6047         the instruction length.
6048
6049 2015-07-30  Yao Qi  <yao.qi@linaro.org>
6050
6051         * arm-tdep.h (enum gdb_regnum): Move it to ...
6052         * arch/arm.h: ... here.  New file.
6053         * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
6054
6055 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
6056
6057         * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
6058         Change its type to int *.
6059         (decode_br): Rename link argument to is_blr.  Change its type to
6060         int *.
6061         (decode_cb): Rename op argument to is_cbnz.  Change its type to
6062         int *.
6063         (decode_tb): Rename op argument to is_tbnz.  Change its type to
6064         int *.  Set is_tbnz to either 1 or 0.
6065         (aarch64_analyze_prologue): Change type of is_link to int.  Add
6066         new variables is_cbnz and is_tbnz.  Adjust call to
6067         aarch64_decode_cb and aarch64_decode_tb.
6068
6069 2015-07-29  Simon Marchi  <simon.marchi@ericsson.com>
6070
6071         * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
6072         parameter.
6073         (mips_linux_new_thread): Likewise.
6074         * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
6075
6076 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
6077
6078         * top.c: Include "tui/tui.h".
6079         (undo_terminal_modifications_before_exit): New static function.
6080         (quit_force): Use it.
6081
6082 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
6083
6084         * target.c (terminal_state): Initialize to terminal_is_ours.
6085
6086 2015-07-29  Yao Qi  <yao.qi@linaro.org>
6087
6088         PR record/18691
6089         * dcache.c (dcache_read_memory_partial): Call
6090         raw_memory_xfer_partial.
6091         * target.c (raw_memory_xfer_partial): Make it non-static.
6092         * target.h (raw_memory_xfer_partial): Declare.
6093
6094 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
6095
6096         * c-valprint.c (c_val_print_array): Consider addressable memory
6097         unit size.
6098         (c_val_print_ptr): Likewise.
6099         (c_val_print_int): Likewise.
6100         * findvar.c (read_frame_register_value): Likewise.
6101         * valarith.c (find_size_for_pointer_math): Likewise.
6102         (value_ptrdiff): Likewise.
6103         (value_subscripted_rvalue): Likewise.
6104         * valops.c (read_value_memory): Likewise (and rename variables).
6105         (value_assign): Likewise.
6106         (value_repeat): Likewise.
6107         (value_array): Likewise.
6108         (value_slice): Likewise.
6109         * valprint.c (generic_val_print_ptr): Likewise.
6110         (generic_val_print_enum): Likewise.
6111         (generic_val_print_bool): Likewise.
6112         (generic_val_print_int): Likewise.
6113         (generic_val_print_char): Likewise.
6114         (generic_val_print_float): Likewise.
6115         (generic_val_print_decfloat): Likewise.
6116         (generic_val_print_complex): Likewise.
6117         (val_print_scalar_formatted): Likewise.
6118         (val_print_array_elements): Likewise.
6119         * value.c (set_value_parent): Likewise.
6120         (value_contents_copy_raw): Likewise.
6121         (set_internalvar_component): Likewise.
6122         (value_primitive_field): Likewise.
6123         (value_fetch_lazy): Likewise.
6124         * value.h (read_value_memory): Update comment.
6125
6126 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
6127
6128         * value.c (get_value_arch): New function.
6129         * value.h (get_value_arch): New declaration.
6130
6131 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
6132
6133         * value.c (struct value): Update comments.
6134
6135 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
6136
6137         * gdbtypes.c (type_length_units): New function.
6138         * gdbtypes.h (type_length_units): New declaration.
6139         (struct type) <length>: Update comment.
6140
6141 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6142
6143         * valprint.c (generic_val_print): Factor out complex
6144         printing code to ...
6145         (generic_val_print_complex): ... this new function.
6146
6147 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6148
6149         * valprint.c (generic_val_print): Factor out decfloat
6150         printing code to ...
6151         (generic_val_print_decfloat): ... this new function.
6152
6153 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6154
6155         * valprint.c (generic_val_print): Factor out float
6156         printing code to ...
6157         (generic_val_print_float): ... this new function.
6158
6159 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6160
6161         * valprint.c (generic_val_print): Factor out char
6162         printing code to ...
6163         (generic_val_print_char): ... this new function.
6164
6165 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6166
6167         * valprint.c (generic_val_print): Factor out integer
6168         printing code to ...
6169         (generic_val_print_int): ... this new function.
6170
6171 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6172
6173         * valprint.c (generic_val_print): Factor out bool
6174         printing code to ...
6175         (generic_val_print_bool): ... this new function.
6176
6177 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6178
6179         * valprint.c (generic_val_print): Factor out function/method
6180         printing code to ...
6181         (generic_val_print_func): ... this new function.
6182
6183 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6184
6185         * valprint.c (generic_val_print): Factor out flags
6186         printing code to ...
6187         (generic_val_print_flags): ... this new function.
6188
6189 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6190
6191         * valprint.c (generic_val_print): Factor out enum
6192         printing code to ...
6193         (generic_val_print_enum): ... this new function.
6194
6195 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6196
6197         * valprint.c (generic_val_print): Factor out reference
6198         printing code to ...
6199         (generic_val_print_ref): ... this new function.
6200
6201 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6202
6203         * valprint.c (generic_val_print): Factor out memberptr
6204         printing code to ...
6205         (generic_val_print_memberptr): ... this new function.
6206
6207 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6208
6209         * valprint.c (generic_val_print): Factor out pointer
6210         printing code to ...
6211         (generic_val_print_ptr): ... this new function.
6212
6213 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6214
6215         * valprint.c (generic_val_print): Factor out array
6216         printing code to ...
6217         (generic_val_print_array): ... this new function.
6218
6219 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6220
6221         * valprint.c (generic_val_print): Factor out
6222         print_unpacked_pointer code to ...
6223         (print_unpacked_pointer): ... this new function.
6224
6225 2015-07-27  Patrick Palka  <patrick@parcs.ath.cx>
6226
6227         * event-top.c (handle_sigterm): Don't inspect
6228         target_can_async_p.  Always set the quit flag and always mark
6229         the async signal handler.
6230
6231 2015-07-27  Yao Qi  <yao.qi@linaro.org>
6232
6233         * Makefile.in (REMOTE_EXAMPLES): Remove it.
6234
6235 2015-07-25  Kevin Buettner  <kevinb@redhat.com>
6236
6237         * remote.c (read_ptid): Return null_ptid when no thread id
6238         is found.
6239         (remote_current_thread): Add log warning for malformed
6240         qC reply.
6241         (remote_start_remote): Add log warning when current thread
6242         not found.
6243
6244 2015-07-24  Pedro Alves  <palves@redhat.com>
6245
6246         * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
6247         (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
6248         forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
6249
6250 2015-07-24  Pedro Alves  <palves@redhat.com>
6251
6252         PR gdb/18717
6253         * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
6254         is resumed, and extend the debug log.
6255
6256 2015-07-24  Pedro Alves  <palves@redhat.com>
6257
6258         * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
6259
6260 2015-07-24  Pedro Alves  <palves@redhat.com>
6261
6262         * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
6263         sys/ptrace.h.
6264         * alpha-linux-nat.c: Likewise.
6265         * amd64-linux-nat.c: Likewise.
6266         * arm-linux-nat.c: Likewise.
6267         * hppa-linux-nat.c: Likewise.
6268         * i386-linux-nat.c: Likewise.
6269         * ia64-linux-nat.c: Likewise.
6270         * linux-fork.c: Likewise.
6271         * linux-nat.c: Likewise.
6272         * m32r-linux-nat.c: Likewise.
6273         * m68klinux-nat.c: Likewise.
6274         * mips-linux-nat.c: Likewise.
6275         * nat/linux-btrace.c: Likewise.
6276         * nat/linux-ptrace.c: Likewise.
6277         * nat/linux-ptrace.h
6278         * nat/mips-linux-watch.c: Likewise.
6279         * nat/x86-linux-dregs.c: Likewise.
6280         * ppc-linux-nat.c: Likewise.
6281         * s390-linux-nat.c: Likewise.
6282         * spu-linux-nat.c: Likewise.
6283         * tilegx-linux-nat.c: Likewise.
6284         * x86-linux-nat.c: Likewise.
6285         * xtensa-linux-nat.c: Likewise.
6286
6287 2015-07-24  Pedro Alves  <palves@redhat.com>
6288
6289         * ptrace.m4 (ptrace tests): Test in C++ mode.  Try with 'enum
6290         __ptrace_request as first parameter type instead of int.
6291         (PTRACE_TYPE_ARG1): Define.
6292         * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
6293         that casts first argument to PTRACE_TYPE_ARG1.
6294         * config.in: Regenerate.
6295         * configure: Regenerate.
6296
6297 2015-07-24  Pedro Alves  <palves@redhat.com>
6298
6299         * gdb_ptrace.h: Move ...
6300         * nat/gdb_ptrace.h: ... here.
6301         * inf-ptrace.c: Adjust.
6302
6303 2015-07-24  Pedro Alves  <palves@redhat.com>
6304
6305         * acinclude.m4: Include ptrace.m4.
6306         * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
6307         * ptrace.m4: ... to this new file.
6308
6309 2015-07-23  Doug Evans  <dje@google.com>
6310
6311         * dwarf2read.c (dwarf2_per_cu_data): Add comment.
6312         (load_cu): Handle dummy CUs.
6313         (dw2_do_instantiate_symtab, process_queuef): Ditto.
6314         (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
6315
6316 2015-07-23  Ciro Santilli  <ciro.santilli@gmail.com>  (tiny patch)
6317
6318         * py-linetable.c (ltpy_get_all_source_lines): Adjust function
6319         documentation to say that it returns a list rather than
6320         a FrozenSet.
6321         (linetable_object_methods): Update the docstring of the
6322         "source_line" entry.
6323
6324 2015-07-23  Pierre-Marie de Rodat  <derodat@adacore.com>
6325
6326         * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
6327         type to the recursive call instead of the original (maybe
6328         TYPE_CODE_TYPEDEF) type.
6329
6330 2015-07-23  Yao Qi  <yao.qi@linaro.org>
6331
6332         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
6333         TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
6334         If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
6335
6336 2015-07-21  Yao Qi  <yao.qi@linaro.org>
6337
6338         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
6339         Move it to nat/aarch64-linux-hw-point.c.
6340         (aarch64_linux_child_post_startup_inferior): Update.
6341         * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
6342         New function.
6343         * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
6344         Declare it.
6345
6346 2015-07-21  Markus Metzger  <markus.t.metzger@intel.com>
6347
6348         * common/btrace-common.c (btrace_data_append): Change case label.
6349
6350 2015-07-20  Yao Qi  <yao.qi@linaro.org>
6351
6352         * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
6353         Re-indent the code.
6354         * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
6355         "unsigned long long".
6356
6357 2015-07-18  Kevin Buettner  <kevinb@redhat.com>
6358
6359         * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
6360         to be set for SEC_ALLOC sections too.
6361
6362 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6363
6364         * Makefile.in (HFILES_NO_SRCDIR): Add
6365         nat/aarch64-linux-hw-point.h.
6366         (aarch64-linux-hw-point.o): New rule.
6367         * nat/aarch64-linux-hw-point.h: New file.
6368         * nat/aarch64-linux-hw-point.c: New file.
6369         * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
6370         (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
6371         (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
6372         (AARCH64_HWP_ALIGNMENT): Likewise.
6373         (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
6374         (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
6375         (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
6376         (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
6377         (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
6378         (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
6379         (struct aarch64_debug_reg_state): Likewise.
6380         (struct arch_lwp_info): Likewise.
6381         (aarch64_linux_set_debug_regs): Likewise.
6382         (aarch64_notify_debug_reg_change): Remove static.
6383         (aarch64_align_watchpoint): Likewise.
6384         (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
6385         (aarch64_watchpoint_length): Likewise.
6386         (aarch64_point_encode_ctrl_reg): Likewise
6387         (aarch64_point_is_aligned): Likewise.
6388         (aarch64_dr_state_insert_one_point): Likewise.
6389         (aarch64_dr_state_remove_one_point): Likewise.
6390         (aarch64_handle_breakpoint): Likewise.
6391         (aarch64_handle_aligned_watchpoint): Likewise.
6392         (aarch64_handle_unaligned_watchpoint): Likewise.
6393         (aarch64_handle_watchpoint): Likewise.
6394         * config/aarch64/linux.mh (NAT_FILE): Add
6395         aarch64-linux-hw-point.o.
6396
6397 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6398
6399         * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
6400         state and don't call aarch64_get_debug_reg_state.  All callers
6401         update.
6402         (aarch64_linux_insert_hw_breakpoint): Call
6403         aarch64_get_debug_reg_state earlier.
6404         (aarch64_linux_remove_hw_breakpoint): Likewise.
6405         (aarch64_handle_aligned_watchpoint): Add argument state and
6406         don't call aarch64_get_debug_reg_state.  All callers update.
6407         (aarch64_handle_unaligned_watchpoint): Likewise.
6408         (aarch64_handle_watchpoint): Add argument state.
6409         (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
6410         earlier.
6411         (aarch64_linux_remove_watchpoint): Likewise.
6412
6413 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6414
6415         * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
6416         debug_printf.
6417         (aarch64_handle_unaligned_watchpoint): Likewise.
6418
6419 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6420
6421         * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
6422         argument type's type to 'enum target_hw_bp_type'.
6423         (aarch64_dr_state_remove_one_point): Likewise.
6424         (aarch64_handle_breakpoint): Likewise.
6425         (aarch64_linux_insert_hw_breakpoint): Likewise.
6426         (aarch64_linux_remove_hw_breakpoint): Likewise.
6427         (aarch64_handle_aligned_watchpoint): Likewise.
6428
6429 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6430
6431         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
6432         ptid_get_pid instead of get_thread_id.
6433
6434 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6435
6436         * remote.c (get_current_thread): Initialise ptid to null_ptid.
6437         (add_current_inferior_and_thread): Don't initialise ptid.
6438
6439 2015-07-16  Pierre Langlois  <pierre.langlois@arm.com>
6440
6441         * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
6442         unavailable if invalid.
6443
6444 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6445
6446         Revert the previous 6 commits:
6447         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6448         Move gdb_regex* to common/
6449         Prepare linux_find_memory_regions_full & co. for move
6450         Move linux_find_memory_regions_full & co.
6451         gdbserver build-id attribute generator
6452         Validate symbol file using build-id
6453
6454 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6455             Jan Kratochvil  <jan.kratochvil@redhat.com>
6456
6457         Validate symbol file using build-id.
6458         * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
6459         and 'show validate-build-id'.  Add build-id attribute.
6460         * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
6461         * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
6462         * solib-frv.c (_initialize_frv_solib): Ditto.
6463         * solib-spu.c (set_spu_solib_ops): Ditto.
6464         * solib-svr4.c: Include rsp-low.h.
6465         (NOTE_GNU_BUILD_ID_NAME): New define.
6466         (svr4_validate): New function.
6467         (svr4_copy_library_list): Duplicate field build_id.
6468         (library_list_start_library): Parse 'build-id' attribute.
6469         (svr4_library_attributes): Add 'build-id' attribute.
6470         (_initialize_svr4_solib): Assign validate value.
6471         * solib-target.c (solib.h): Include.
6472         (_initialize_solib_target): Assign validate value.
6473         * solib.c (validate_build_id, show_validate_build_id): New.
6474         (solib_map_sections): Use ops->validate.
6475         (clear_so): Free build_id.
6476         (default_solib_validate): New function.
6477         (_initialize_solib): Add "validate-build-id".
6478         * solib.h (default_solib_validate): New declaration.
6479         * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
6480         (target_so_ops): New field 'validate'.
6481
6482 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6483             Jan Kratochvil  <jan.kratochvil@redhat.com>
6484
6485         gdbserver build-id attribute generator.
6486         * features/library-list-svr4.dtd (library-list-svr4): New
6487         'build-id' attribute.
6488
6489 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6490             Jan Kratochvil  <jan.kratochvil@redhat.com>
6491
6492         Move linux_find_memory_regions_full & co.
6493         * linux-tdep.c (nat/linux-maps.h): Include.
6494         (gdb_regex.h): Remove the include.
6495         (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
6496         (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
6497         (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
6498         (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
6499         * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
6500         and target/target.h.
6501         (struct smaps_vmflags, read_mapping, decode_vmflags)
6502         (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
6503         (linux_find_memory_regions_full): Move from linux-tdep.c.
6504         * nat/linux-maps.h (read_mapping): New declaration.
6505         (linux_find_memory_region_ftype, enum filterflags): Moved from
6506         linux-tdep.c.
6507         (linux_find_memory_regions_full): New declaration.
6508         * target.c (target/target-utils.h): Include.
6509         (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
6510         (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
6511         definitions to target/target-utils.c.
6512         * target.h (target_fileio_read_stralloc): Move it to target/target.h.
6513         * target/target-utils.c (read_alloc, read_stralloc): Move definitions
6514         from target.c.
6515         * target/target-utils.h (read_alloc_pread_ftype): New typedef.
6516         (read_alloc): New declaration.
6517         (read_stralloc_func_ftype): New typedef.
6518         (read_stralloc): New declaration.
6519         * target/target.h (target_fileio_read_stralloc): Move it from target.h.
6520
6521 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6522             Jan Kratochvil  <jan.kratochvil@redhat.com>
6523
6524         Prepare linux_find_memory_regions_full & co. for move.
6525         * linux-tdep.c (linux_find_memory_region_ftype): Comment.
6526         (linux_find_memory_regions_full): Change signature and prepare
6527         for moving to linux-maps.
6528         (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
6529         (linux_find_memory_regions_thunk): New.
6530         (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
6531         (linux_find_memory_regions_gdb): New.
6532         (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
6533         (linux_make_mappings_corefile_notes): Use
6534         linux_find_memory_regions_gdb.
6535         * target.c (read_alloc_pread_ftype): New typedef.
6536         (target_fileio_read_alloc_1_pread): New function.
6537         (read_alloc): Refactor from target_fileio_read_alloc_1.
6538         (read_stralloc_func_ftype): New typedef.
6539         (target_fileio_read_alloc_1): New implementation. Use read_alloc.
6540         (read_stralloc): Refactored from target_fileio_read_stralloc.
6541         (target_fileio_read_stralloc): New implementation, use read_stralloc.
6542
6543 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6544
6545         * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
6546         common/gdb_regex.h.
6547         (COMMON_OBS): Add gdb_regex.o.
6548         (gdb_regex.o): New.
6549         * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
6550         --without-included-regex and USE_INCLUDED_REGEX.
6551         * common/gdb_regex.c: New file from utils.c functions.
6552         * common/gdb_regex.h: Move it here from gdb_regex.h, update include
6553         file wrapping define name.
6554         * configure: Rebuilt.
6555         * configure.ac (gdb_use_included_regex, --without-included-regex)
6556         (USE_INCLUDED_REGEX): Move them to common/common.m4.
6557         * gdb_regex.h: Move it to common/gdb_regex.h.
6558         * utils.c: Remove include gdb_regex.h.
6559         (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
6560         (compile_rx_or_error): Move them to common/gdb_regex.c.
6561
6562 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6563             Jan Kratochvil  <jan.kratochvil@redhat.com>
6564
6565         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6566         * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
6567         common/target-utils.h.
6568         (COMMON_OBS): Add target-utils.o.
6569         (linux-maps.o, target-utils.o): New.
6570         * target/target-utils.c: New file.
6571         * target/target-utils.h: New file.
6572         * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
6573         * config/i386/linux64.mh (NATDEPFILES): Ditto.
6574         * nat/linux-maps.c: New file.
6575         * nat/linux-maps.h: New file.
6576
6577 2015-07-15  Markus Metzger  <markus.t.metzger@intel.com>
6578             Pedro Alves <palves@redhat.com>
6579
6580         * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
6581         (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
6582         (perf_event_read_bts): Change the type of SIZE and READ.
6583         (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
6584         and DATA_OFFSET.  Move DATA_SIZE declaration.  Restrict the buffer size
6585         to UINT_MAX.  Check for overflows when using DATA_HEAD from the perf
6586         mmap page.
6587         (linux_enable_pt): Change the type of PAGES and SIZE.  Restrict the
6588         buffer size to UINT_MAX.
6589         (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
6590         DATA_TAIL.
6591         * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
6592         <last_head>: Change type.
6593         * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
6594         * common/btrace-common.c (btrace_data_append): Change the type of
6595         SIZE.
6596         * btrace.c (parse_xml_raw): Change the type of SIZE.  Change oddness
6597         check.
6598
6599 2015-07-14  Simon Marchi  <simon.marchi@ericsson.com>
6600
6601         * gdbtypes.h (CHECK_TYPEDEF): Remove.
6602         * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
6603         with check_typedef.
6604         * ada-lang.c (decode_constrained_packed_array_type): Likewise.
6605         (ada_array_length): Likewise.
6606         (find_parallel_type_by_descriptive_type): Likewise.
6607         (ada_check_typedef): Likewise.
6608         * arm-tdep.c (arm_return_in_memory): Likewise.
6609         * ax-gdb.c (gen_trace_static_fields): Likewise.
6610         (gen_struct_ref_recursive): Likewise.
6611         * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6612         (variable: block COLONCOLON name): Likewise.
6613         (qualified_name: TYPENAME COLONCOLON name): Likewise.
6614         * c-lang.c (classify_type): Likewise.
6615         * c-typeprint.c (c_print_type): Likewise.
6616         (c_print_typedef): Likewise.
6617         (c_type_print_base): Likewise.
6618         * c-valprint.c (c_val_print): Likewise.
6619         * compile/compile-c-types.c (convert_type): Likewise.
6620         * compile/compile-object-load.c (get_out_value_type): Likewise.
6621         * completer.c (add_struct_fields): Likewise.
6622         (expression_completer): Likewise.
6623         * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
6624         (cp_lookup_nested_symbol_1): Likewise.
6625         (cp_lookup_nested_symbol): Likewise.
6626         * cp-valprint.c (cp_print_value_fields): Likewise.
6627         (cp_print_static_field): Likewise.
6628         * d-valprint.c (d_val_print): Likewise.
6629         * eval.c (evaluate_subexp_standard): Likewise.
6630         (evaluate_subexp_for_sizeof): Likewise.
6631         * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6632         * f-typeprint.c (f_type_print_base): Likewise.
6633         * f-valprint.c (f_val_print): Likewise.
6634         * gdbtypes.c (get_discrete_bounds): Likewise.
6635         (create_array_type_with_stride): Likewise.
6636         (type_name_no_tag_or_error): Likewise.
6637         (lookup_struct_elt_type): Likewise.
6638         (get_unsigned_type_max): Likewise.
6639         (internal_type_vptr_fieldno): Likewise.
6640         (set_type_vptr_fieldno): Likewise.
6641         (internal_type_vptr_basetype): Likewise.
6642         (set_type_vptr_basetype): Likewise.
6643         (get_vptr_fieldno): Likewise.
6644         (is_integral_type): Likewise.
6645         (is_scalar_type): Likewise.
6646         (is_scalar_type_recursive): Likewise.
6647         (distance_to_ancestor): Likewise.
6648         (is_unique_ancestor_worker): Likewise.
6649         (check_types_equal): Likewise.
6650         * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
6651
6652 2015-07-14  Iain Buclaw  <ibuclaw@gdcproject.org>
6653
6654         * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
6655         also test for language_d.
6656         (dwarf2_compute_name): Likewise.
6657         (read_func_scope): Likewise.
6658         (read_structure_type): Likewise.
6659         (new_symbol_full): Likewise.
6660         (determine_prefix): Likewise.
6661         (read_import_statement): Use dot as the separator for language_d.
6662         (typename_concat): Likewise, but don't prefix the D main function.
6663
6664 2015-07-14  Peter Bergner  <bergner@vnet.ibm.com>
6665
6666         * nat/linux-namespaces.c (setns): Rename from this ...
6667         (do_setns): ... to this.  Support calling setns if it exists.
6668         (mnsh_handle_setns): Call do_setns.
6669
6670 2015-07-13  Yao Qi  <yao.qi@linaro.org>
6671
6672         * exec.c (exec_file_attach): Add period at the end of error
6673         message.
6674
6675 2015-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
6676
6677         * tui/tui-win.c (window_name_completer): New function.
6678         (focus_completer): Call window_name_completer.  All old content
6679         moved into window_name_completer.
6680         (winheight_completer): New function.
6681         (_initialize_tui_win): Rename variable.  Add completer to
6682         winheight command.  Update doc string on winheight.
6683
6684 2015-07-12  Sandra Loosemore  <sandra@codesourcery.com>
6685
6686         * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
6687         all nios2 mach variants.
6688
6689 2015-07-10  Kevin Buettner  <kevinb@redhat.com>
6690
6691         * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
6692         of target_read_memory.
6693
6694 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6695
6696         * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
6697         string copy.
6698         (parse_scrolling_args): Likewise.
6699
6700 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6701
6702         * tui/tui-win.c (focus_completer): Don't duplicate the tui window
6703         names in this function.
6704
6705 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6706
6707         * tui/tui-data.h (SRC_NAME): Convert to lower case.
6708         (CMD_NAME): Likewise.
6709         (DATA_NAME): Likewise.
6710         (DISASSEM_NAME): Likewise.
6711         * tui/tui-win.c (tui_set_focus): Window names are now lower case.
6712         (tui_set_win_height): Likewise.
6713         (parse_scrolling_args): Likewise.
6714
6715 2015-07-10  Markus Metzger  <markus.t.metzger@intel.com>
6716
6717         * record-btrace.c (record_btrace_goto_begin)
6718         (record_btrace_goto_end, record_btrace_goto): Move call to
6719         print_stack_frame ...
6720         (record_btrace_set_replay): ... here.  Set stop_pc.
6721         * record-full.c (record_full_goto_entry): Set stop_pc.
6722
6723 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6724
6725         * NEWS: Mention support for tracepoints on aarch64-linux.
6726
6727 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6728
6729         * linux-aarch64-low.c (aarch64_supports_tracepoints): New
6730         function.  Return 1.
6731         (the_low_target): Install it.
6732
6733 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6734
6735         * gdb.trace/backtrace.exp: Set registers for aarch64 target.
6736         * gdb.trace/collection.exp: Likewise.
6737         * gdb.trace/mi-trace-frame-collected.exp: Likewise.
6738         * gdb.trace/mi-trace-unavailable.exp: Likewise.
6739         * gdb.trace/report.exp: Likewise.
6740         * gdb.trace/trace-break.exp: Likewise.
6741         * gdb.trace/unavailable.exp: Likewise.
6742         * gdb.trace/while-dyn.exp: Likewise.
6743
6744 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6745
6746         * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
6747         (aarch64_gen_return_address): New function.
6748         (aarch64_gdbarch_init): Hook it.
6749
6750 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6751
6752         * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
6753         swallow NOT_AVAILABLE_ERROR.
6754         (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
6755         available_p is not set.
6756         (aarch64_stub_frame_unwind_stop_reason): New function.
6757         (aarch64_stub_unwind): Install it.
6758
6759 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6760
6761         * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6762         field.
6763         (aarch64_make_prologue_cache_1): New function, factored out from
6764         aarch64_make_prologue_cache.  Do not allocate cache.  Set
6765         available_p.
6766         (aarch64_make_prologue_cache): Reimplement wrapping
6767         aarch64_make_prologue_cache_1, and swallowing
6768         NOT_AVAILABLE_ERROR.
6769         (aarch64_prologue_frame_unwind_stop_reason): New function.
6770         Return UNWIND_UNAVAILABLE if available_p is not set.
6771         (aarch64_prologue_unwind): Install it.
6772         (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6773         checks into aarch64_prologue_frame_unwind_stop_reason.  Call
6774         frame_id_build_unavailable_stack if available_p is not set.
6775
6776 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6777
6778         * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6779         fields.
6780         (aarch64_scan_prologue): Set prev_pc.
6781         (aarch64_make_prologue_cache): Set func.
6782         (aarch64_make_stub_cache): Set prev_pc.
6783         (aarch64_prologue_this_id): Remove local variables id, pc and
6784         func.  Read prev_pc and func from cache.
6785         (aarch64_stub_this_id): Read prev_pc from cache.
6786
6787 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6788
6789         * aarch64-tdep.c (aarch64_make_stub_cache): Update comment.  New
6790         argument this_cache.  Remove unused local variables reg and
6791         unwound_fp.  Return early if this_cache is already set.  Set
6792         this_cache.
6793         (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6794
6795 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6796
6797         * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6798         New argument this_cache.  Return early if this_cache is already
6799         set.  Set this_cache.
6800         (aarch64_prologue_this_id): Update call to
6801         aarch64_make_prologue_cache.
6802         (aarch64_prologue_prev_register): Likewise.
6803         (aarch64_normal_frame_base): Likewise.
6804
6805 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6806
6807         * c-valprint.c (c_val_print): Factor out memberptr printing code
6808         from c_val_print to ...
6809         (c_val_print_memberptr): ... this new function.
6810
6811 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6812
6813         * c-valprint.c (c_val_print): Factor out int printing code to ...
6814         (c_val_print_int): ... this new function.
6815
6816 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6817
6818         * c-valprint.c (c_val_print): Factor out struct and union
6819         printing code to ...
6820         (c_val_print_struct): ... this new function ...
6821         (c_val_print_union): ... and this new function.
6822
6823 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6824
6825         * c-valprint.c (c_val_print): Factor out pointer printing code
6826         to ...
6827         (c_val_print_ptr): ... this new function.
6828
6829 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6830
6831         * c-valprint.c (c_valprint): Factor our array printing code from
6832         c_val_print to ...
6833         (c_val_print_array): ... this new function.
6834
6835 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6836
6837         * c-valprint.c (c_val_print): Factor out pointer printing code
6838         to ...
6839         (print_unpacked_pointer): ... this new function.
6840
6841 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6842
6843         * c-valprint.c (c_val_print): Remove an assignment to i and move
6844         its declaration.
6845
6846 2015-07-09  Yao Qi  <yao.qi@linaro.org>
6847
6848         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6849         argument ptid.  Update comments.  Caller update.
6850
6851 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
6852
6853         * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6854         mnt packets.
6855
6856 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
6857
6858         * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6859
6860 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
6861
6862         * progspace.c (delete_program_space): Add missing spaces.
6863
6864 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
6865
6866         * inferior.c (delete_inferior_1): Rename to ...
6867         (delete_inferior): ..., remove 'silent' parameter, delete
6868         program space when unused and remove call to prune_program_spaces.
6869         Remove the old, unused, delete_inferior.
6870         (delete_inferior_silent): Remove.
6871         (prune_inferiors): Change call from delete_inferior_1 to
6872         delete_inferior and remove 'silent' parameter. Remove call to
6873         prune_program_spaces.
6874         (remove_inferior_command): Idem.
6875         * inferior.h (delete_inferior_1): Rename to...
6876         (delete_inferior): ..., remove 'silent' parameter and remove the
6877         original delete_inferior.
6878         (delete_inferior_silent): Remove.
6879         * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6880         delete_inferior_1 to delete_inferior and remove 'silent'
6881         parameter.
6882         * progspace.c (prune_program_spaces): Remove.
6883         (pspace_empty_p): Rename to...
6884         (program_space_empty_p): ... and make non-static.
6885         (delete_program_space): New.
6886         * progspace.h (prune_program_spaces): Remove declaration.
6887         (program_space_empty_p): New declaration.
6888         (delete_program_space): New declaration.
6889         * monitor.c (monitor_close): Replace call to
6890         delete_thread_silent and delete_inferior_silent with
6891         discard_all_inferiors.
6892
6893 2015-07-08  Patrick Palka  <patrick@parcs.ath.cx>
6894
6895         * defs.h (deprecated_register_changed_hook): Remove prototype.
6896         * interps.c (clear_iterpreter_hooks): Remove reference to
6897         deprecated_register_changed_hook.
6898         * top.c (deprecated_register_changed_hook): Remove prototype.
6899         * valops.c (value_assign): Remove reference to
6900         deprecated_register_changed_hook.
6901         * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6902         Add comment documenting the function.
6903         (tui_register_changed_observer): Define.
6904         (tui_install_hooks): Remove reference to
6905         deprecated_register_changed_hook.  Set
6906         tui_register_changed_observer.
6907         (tui_remove_hooks): Remove reference to
6908         deprecated_register_changed_hook.  Unset
6909         tui_register_changed_observer.
6910
6911 2015-07-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
6912
6913         PR compile/18484
6914         * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6915
6916 2015-07-08  Robert O'Callahan  <robert@ocallahan.org>
6917
6918         PR exp/18617
6919         * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6920
6921 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6922
6923         * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6924
6925 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6926
6927         * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6928         Use safe_strerror() instead of strerror().
6929
6930 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6931
6932         * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6933         * features/arm-with-m-fpa-layout.c: Regenerated.
6934         * features/arm-with-m-vfp-d16.xml: Likewise.
6935         * features/arm-with-m-vfp-d16.c: Regenerated.
6936         * features/arm-with-m.xml: Likewise.
6937         * features/arm-with-m.c: Regenerated.
6938         * features/arm-with-neon.xml: Likewise.
6939         * features/arm-with-neon.c: Regenerated.
6940         * features/arm-with-vfpv2.xml: Likewise.
6941         * features/arm-with-vfpv2.c: Regenerated.
6942         * features/arm-with-vfpv3.xml: Likewise.
6943         * features/arm-with-vfpv3.c: Regenerated.
6944
6945 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6946
6947         * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6948         arm-linux-nat.c.
6949         * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6950         elf/external.h.
6951         (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6952         if target is 32-bit.
6953         (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6954         if target is 32-bit.
6955         (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6956         if target is 32-bit.
6957         (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6958         if target is 32-bit.
6959         (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6960         (aarch64_linux_read_description): Return the right target
6961         description.
6962         * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6963         * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6964         * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6965         arm-linux-tdep.o.
6966
6967 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6968
6969         * aarch32-linux-nat.c: New file.
6970         * aarch32-linux-nat.h: New file.
6971         * arm-linux-nat.c: Include aarch32-linux-nat.h.
6972         (fetch_regs): Move code to aarch32-linux-nat.c.  Call
6973         aarch32_gp_regcache_supply.
6974         (store_regs): Move code to aarch32-linux-nat.c.  Call
6975         aarch32_gp_regcache_collect.
6976         (fetch_vfp_regs): Move code to aarch32-linux-nat.c.  Call
6977         aarch32_vfp_regcache_supply.
6978         (store_vfp_regs): Move code to aarch32-linux-nat.c.  Call
6979         aarch32_vfp_regcache_collect.
6980         * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6981
6982 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6983
6984         * arm-linux-nat.c (store_fpregister): Remove.
6985         (store_register): Likewise.
6986         (fetch_fpregister): Likewise.
6987         (fetch_register): Likewise.
6988         (arm_linux_store_inferior_registers): Call store_regs and
6989         store_fpregs instead.
6990         (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6991         fetch_regs instead.
6992
6993 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6994
6995         * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6996         and focus commands.
6997
6998 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
6999
7000         * NEWS: Create a new section for the next release branch.
7001         Rename the section of the current branch, now that it has
7002         been cut.
7003
7004 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
7005
7006         GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
7007         * version.in: Bump version to 7.10.50.DATE-cvs.
7008
7009 2015-07-06  Luis Machado  <lgustavo@codesourcery.com>
7010
7011         * breakpoint.c (remove_breakpoint_1): Don't handle permanent
7012         breakpoints in a special way.
7013         (remove_breakpoint): Likewise.
7014         (mark_breakpoints_out): Likewise.
7015
7016 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
7017
7018         * doc/gdb.texinfo (TUI): Add comma after @xref.
7019
7020 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
7021
7022         * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
7023         instead of casting the structure type.
7024
7025 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
7026
7027         * valops.c (search_struct_field): Remove OFFSET parameter.
7028         (value_cast_structs): Adjust calls to search_struct_field.
7029         (value_struct_elt): Same.
7030         (find_overload_match): Same.
7031
7032 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
7033
7034         * value.c (value_fetch_lazy): Update comment, change return
7035         value to void.
7036         * value.h (value_fetch_lazy): Change return value to void.
7037
7038 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
7039
7040         * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
7041         (tui_win_name): Make parameter and result const.
7042         * tui/tui-data.h (tui_win_name): Make parameter and result const.
7043
7044 2015-07-06  Patrick Palka  <patrick@parcs.ath.cx>
7045
7046         * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
7047         use printf_unfiltered.
7048         (set_mpx_cmd): Add missing trailing space to command string
7049         literal.
7050         (_initialize_i386_tdep): Give the "mpx" prefix command its
7051         correct name.
7052
7053 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
7054
7055         * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
7056         (enum rx_frame_type): New.
7057         (struct rx_prologue): Add new field `frame_type'.
7058         (rx_analyze_prologue): Add `frame_type' parameter. Cache this
7059         parameter in the prologue struct.  Add code for recording
7060         locations of PC and PSW for fast interrupt and exception frames.
7061         (rx_skip_prologue): Adjust call to rx_analyze_prologue.
7062         (rx_analyze_frame_prologue): Add `frame_type' parameter.
7063         (rx_frame_type): New function.
7064         (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
7065         (rx_frame_this_id): Rename parameter `this_prologue_cache' to
7066         `this_cache'.
7067         (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
7068         `this_cache'.  Add cases for RX_FRAME_TYPE_EXCEPTION and
7069         RX_FRAME_TYPE_FAST_INTERRUPT.
7070         (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
7071         (rx_frame_sniffer, rx_exception_sniffer): New functions.
7072         (rx_frame_unwind): Use rx_frame_sniffer instead of
7073         default_frame_sniffer.
7074         (rx_frame_unwind): New unwinder.
7075         (rx_gdbarch_init): Register new unwinder.
7076
7077 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
7078
7079         * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
7080         (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
7081         (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
7082         and RX_FPSW_REGNUM.
7083         (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
7084
7085 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7086
7087         Fix GCC false warning.
7088         * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
7089
7090 2015-07-02  Yao Qi  <yao.qi@linaro.org>
7091
7092         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
7093         typo in the debugging message.
7094
7095 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
7096
7097         * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
7098         (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
7099         (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
7100         (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
7101         (btrace_maint_clear): New.
7102         (btrace_fetch, btrace_clear): Call btrace_maint_clear.
7103         (pt_print_packet, btrace_maint_decode_pt)
7104         (btrace_maint_update_pt_packets, btrace_maint_update_packets)
7105         (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
7106         (maint_btrace_packet_history_cmd)
7107         (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
7108         (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
7109         (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
7110         (maint_info_btrace_cmd, _initialize_btrace): New.
7111         * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
7112         (btrace_maint_packet_history, btrace_maint_info): New.
7113         (btrace_thread_info) <maint>: New.
7114         * NEWS: Announce it.
7115
7116 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
7117
7118         * btrace.c (btrace_fetch): Append the new trace data.
7119         (btrace_clear): Clear the stored trace data.
7120         * btrace.h (btrace_thread_info) <data>: New.
7121         * common/btrace-common.h (btrace_data_clear)
7122         (btrace_data_append): New.
7123         * common/btrace-common.c (btrace_data_clear)
7124         (btrace_data_append): New.
7125
7126 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
7127
7128         * nat/linux-btrace.c (linux_enable_bts): Check for
7129         PERF_ATTR_SIZE_VER5.
7130         Check for data_offset and data_size fields.  Use them.
7131
7132 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
7133
7134         * NEWS: Announce new commands "record btrace pt" and "record pt".
7135         Announce new options "set|show record btrace pt buffer-size".
7136         * btrace.c: Include "rsp-low.h".
7137         Include "inttypes.h".
7138         (btrace_add_pc): Add forward declaration.
7139         (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
7140         (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
7141         (btrace_compute_ftrace_pt): New.
7142         (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
7143         (check_xml_btrace_version): Update version check.
7144         (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
7145         (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
7146         (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
7147         (btrace_pt_children): New.
7148         (btrace_children): Add support for "pt".
7149         (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
7150         (btrace_conf_children): Add support for "pt".
7151         * btrace.h: Include "intel-pt.h".
7152         (btrace_pt_error): New.
7153         * common/btrace-common.c (btrace_format_string, btrace_data_fini)
7154         (btrace_data_empty): Support BTRACE_FORMAT_PT.
7155         * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
7156         (struct btrace_config_pt): New.
7157         (struct btrace_config)<pt>: New.
7158         (struct btrace_data_pt_config, struct btrace_data_pt): New.
7159         (struct btrace_data)<pt>: New.
7160         * features/btrace-conf.dtd (btrace-conf)<pt>: New.
7161         (pt): New.
7162         * features/btrace.dtd (btrace)<pt>: New.
7163         (pt, pt-config, cpu): New.
7164         * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
7165         (perf_event_pt_event_type, kernel_supports_pt)
7166         (linux_supports_pt): New.
7167         (linux_supports_btrace): Support BTRACE_FORMAT_PT.
7168         (linux_enable_bts): Free tinfo on error.
7169         (linux_enable_pt): New.
7170         (linux_enable_btrace): Support BTRACE_FORMAT_PT.
7171         (linux_disable_pt): New.
7172         (linux_disable_btrace): Support BTRACE_FORMAT_PT.
7173         (linux_fill_btrace_pt_config, linux_read_pt): New.
7174         (linux_read_btrace): Support BTRACE_FORMAT_PT.
7175         * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
7176         (struct btrace_target_info)<pt>: New.
7177         * record-btrace.c (set_record_btrace_pt_cmdlist)
7178         (show_record_btrace_pt_cmdlist): New.
7179         (record_btrace_print_pt_conf): New.
7180         (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
7181         (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
7182         (cmd_record_btrace_pt_start): New.
7183         (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
7184         (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
7185         (_initialize_record_btrace): Add new commands.
7186         * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
7187         (remote_protocol_features): Add "Qbtrace:pt".
7188         Add "Qbtrace-conf:pt:size".
7189         (remote_supports_btrace): Support BTRACE_FORMAT_PT.
7190         (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
7191         (remote_enable_btrace): Support BTRACE_FORMAT_PT.
7192         (_initialize_remote): Add new commands.
7193
7194 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
7195
7196         * configure.ac: check for libipt
7197         * configure: Regenerate.
7198         * config.in: Regenerate.
7199         * Makefile.in (LIBIPT): New.
7200         (CLIBS): Add $LIBIPT.
7201         * NEWS: document new configure options
7202
7203 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7204
7205         * compile/compile-object-load.c (compile_object_load): Replace debug
7206         message "lookup undefined ELF symbol" by 3 more specific messages.
7207
7208 2015-07-01  Kevin Buettner  <kevinb@redhat.com>
7209
7210         * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
7211         (rl78_register_type): Add case for RL78_PSW_REGNUM.
7212         (rl78_gdbarch_init): Initialize rl78_psw_type.
7213
7214 2015-07-01  Patrick Palka  <patrick@parcs.ath.cx>
7215
7216         * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
7217         Update commentary.  Always refresh the registers when frame
7218         information has changed.
7219         * tui/tui-stack.c (tui_show_frame_info): Update commentary.
7220         Change return type to int.  Return 1 if frame information has
7221         changed, 0 otherwise.
7222         (tui_before_prompt): Update commentary.
7223         * tui/tui-stack.h (tui_show_frame_info): Change return type to
7224         int.
7225
7226 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
7227
7228         PR tui/13378
7229         * frame.c (select_frame): Remove reference to
7230         deprecated_selected_frame_level_changed_hook.
7231         * frame.h (deprecated_selected_frame_level_changed_hook): Remove
7232         declaration.
7233         * stack.c (deprecated_selected_frame_level_changed_hook):
7234         Likewise.
7235         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
7236         Rename to ...
7237         (tui_refresh_frame_and_register_information): ... this.  Bail
7238         out if there is no stack.  Don't update register information
7239         unless registers_too_p is true.
7240         (tui_print_frame_info_listing_hook): Rename to ...
7241         (tui_dummy_print_frame_info_listing_hook): ... this.
7242         (tui_before_prompt): New function.
7243         (tui_normal_stop): New function.
7244         (tui_before_prompt_observer): New observer.
7245         (tui_normal_stop_observer): New observer.
7246         (tui_install_hooks): Set
7247         deprecated_print_frame_info_listing_hook to
7248         tui_dummy_print_frame_info_listing_hook.  Register
7249         tui_before_prompt_observer to call tui_before_prompt and
7250         tui_normal_stop_observer to call tui_normal_stop.  Remove
7251         reference to deprecated_selected_frame_level_changed_hook.
7252         (tui_remove_hooks): Detach and unset tui_before_prompt_observer
7253         and tui_normal_stop_observer.  Remove reference to
7254         deprecated_selected_frame_level_changed_hook.
7255
7256 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
7257
7258         PR tui/13378
7259         * tui/tui-stack.c (tui_set_locator_info): Change prototype to
7260         return an int instead of void.  Return whether the locator
7261         window has changed.
7262         (tui_show_frame_info): If the locator info has not changed, then
7263         bail out early to avoid refreshing the windows.
7264
7265 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
7266
7267         * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
7268         LOCATOR_WIN to tui_alloc_content.
7269
7270 2015-06-30  Yao Qi  <yao.qi@linaro.org>
7271
7272         PR tdep/18605
7273         * arm-tdep.c (arm_get_next_pc_raw): Break for media
7274         instructions.
7275
7276 2015-06-29  Kevin Buettner  <kevinb@redhat.com>
7277
7278         * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
7279         (rx_dwarf_reg_to_regnum): New function.
7280         (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum.  Use dwarf2
7281         unwinding.
7282
7283 2015-06-29  Pedro Alves  <palves@redhat.com>
7284
7285         PR threads/18127
7286         * infcall.c (run_inferior_call): On infcall success, if the thread
7287         was marked stopped before, reset it back to stopped.
7288         * infrun.c (resume): Don't suppress the set_running calls when
7289         doing an infcall.
7290         (normal_stop): Only discard the finish_thread_state cleanup if the
7291         infcall succeeded.
7292
7293 2015-06-29  Pierre Langlois  <pierre.langlois@arm.com>
7294
7295         * MAINTAINERS (Write After Approval): Update my email address.
7296
7297 2015-06-26  Keith Seitz  <keiths@redhat.com>
7298             Doug Evans  <dje@google.com>
7299
7300         PR 16253
7301         * block.c (block_lookup_symbol): For non-function blocks,
7302         continue to search for a symbol with an exact domain match
7303         Otherwise, return any previously found "best domain" symbol.
7304         (block_lookup_symbol_primary): Likewise.
7305
7306 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
7307
7308         * NEWS: Mention the new option "history remove-duplicates".
7309         * top.c (history_remove_duplicates): New static variable.
7310         (show_history_remove_duplicates): New static function.
7311         (gdb_add_history): Conditionally remove duplicate history
7312         entries.
7313         (init_main): Add "history remove-duplicates" option.
7314
7315 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
7316
7317         * tui/tui-win.c (focus_completer): New static function.
7318         (_initialize_tui_win): Set the completion function of the
7319         "focus" command to focus_completer.
7320
7321 2015-06-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
7322
7323         * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
7324         and language_asm..
7325         * symtab.c (find_function_start_sal): Likewise.
7326
7327 2015-06-25  Gary Benson  <gbenson@redhat.com>
7328
7329         * solib.c (solib_find_1): Set local variable sysroot to NULL if
7330         it is the empty string after trailing slashes have been stripped.
7331
7332 2015-06-25  Gary Benson  <gbenson@redhat.com>
7333
7334         * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
7335         * infrun.c (follow_exec): Likewise.
7336         * remote.c (remote_filesystem_is_local): Likewise.
7337         * solib.c (solib_find_1): Likewise.
7338
7339 2015-06-24  Keith Seitz  <keiths@redhat.com>
7340
7341         * build-id.c (build_id_to_debug_bfd): Add cleanup to free
7342         return value from lrealpath.
7343
7344 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
7345
7346         * remote-sim.c (gdbsim_open): Move sysroot update to the top.
7347
7348 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
7349
7350         * remote-sim.c: Include gdb_bfd.h.
7351         (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
7352         Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
7353
7354 2015-06-24  Yao Qi  <yao.qi@linaro.org>
7355
7356         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
7357         set_gdbarch_get_siginfo_type.
7358         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
7359         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
7360         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
7361         * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
7362         * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
7363         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7364         * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
7365         * linux-tdep.c (linux_get_siginfo_type): Change it to static.
7366         (linux_init_abi): Call set_gdbarch_get_siginfo_type.
7367         * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
7368
7369 2015-06-24  Gary Benson  <gbenson@redhat.com>
7370
7371         * common/buffer.c (stdint.h): Do not include.
7372         * common/print-utils.c (stdint.h): Likewise.
7373         * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
7374         * compile/compile-c-types.c (gdb_assert.h): Likewise.
7375         * ft32-tdep.c (gdb_assert.h): Likewise.
7376         * guile/scm-utils.c (stdint.h): Likewise.
7377         * i386-linux-tdep.c (stdint.h): Likewise.
7378         * i386-tdep.c (stdint.h): Likewise.
7379         * nat/linux-btrace.c (stdint.h): Likewise.
7380         * nat/linux-btrace.h (stdint.h): Likewise.
7381         * nat/linux-ptrace.c (stdint.h): Likewise.
7382         * nat/mips-linux-watch.h (stdint.h): Likewise.
7383         * ppc-linux-nat.c (stdint.h): Likewise.
7384         * python/python-internal.h (stdint.h): Likewise.
7385         * stub-termcap.c (stdlib.h): Likewise.
7386         * target/target.h (stdint.h): Likewise.
7387         * xtensa-linux-nat.c (stdint.h): Likewise.
7388
7389 2015-06-23  Patrick Palka  <patrick@parcs.ath.cx>
7390
7391         * top.c (init_history): Look at errno after calling strtol to
7392         properly map large GDBHISTSIZE values to infinity.
7393
7394 2015-06-23  Doug Evans  <dje@google.com>
7395
7396         * inferior.h (struct inferior_suspend_state): Delete, unused.
7397         All references deleted.
7398
7399 2015-06-23  Mike Frysinger  <vapier@gentoo.org>
7400
7401         * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
7402         (microblaze_push_dummy_call): Likewise.
7403         (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
7404         and set_gdbarch_push_dummy_call.
7405
7406 2015-06-23  Yao Qi  <yao.qi@linaro.org>
7407
7408         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
7409         Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
7410         (amd64_linux_store_inferior_registers): Likewise.
7411         * arm-linux-nat.c (fetch_fpregister): Likewise.
7412         (fetch_fpregs, store_fpregister): Likewise.
7413         (store_fpregister, store_fpregs): Likewise.
7414         (fetch_register, fetch_regs): Likewise.
7415         (store_register, store_regs): Likewise.
7416         (fetch_vfp_regs, store_vfp_regs): Likewise.
7417         (arm_linux_read_description): Check have_ptrace_getregset is
7418         TRIBOOL_UNKNOWN.  Set have_ptrace_getregset to TRIBOOL_TRUE
7419         or TRIBOOL_FALSE.
7420         * i386-linux-nat.c (fetch_xstateregs): Check
7421         have_ptrace_getregset is not TRIBOOL_TRUE.
7422         (store_xstateregs): Likewise.
7423         * linux-nat.c (have_ptrace_getregset): Change its type to
7424         enum tribool.
7425         * linux-nat.h (tribool): New enum.
7426         * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
7427         Check whether have_ptrace_getregset is TRIBOOL_TRUE.
7428
7429 2015-06-19  Doug Evans  <dje@google.com>
7430
7431         * NEWS: Mention Sun's version of stabs is no longer supported.
7432         * elfread.c (free_elfinfo): Delete.  All uses updated.
7433         (elfstab_offset_sections): Delete.  All uses updated.
7434         * gdb-stabs.h (stab_section_info): Delete.  All uses updated.
7435         * psympriv.h (partial_symtab) <section_offsets>: Delete.
7436         All uses updated.
7437         * psymtab.c (start_psymtab_common): Delete arg section_offsets.
7438         All callers updated.
7439
7440 2015-06-18  Simon Marchi  <simon.marchi@ericsson.com>
7441
7442         * common/rsp-low.c (needs_escaping): New.
7443         (remote_escape_output): Add unit_size parameter. Refactor to
7444         support multi-byte addressable units.  Rename parameters.
7445         * common/rsp-low.h (remote_escape_output): Add unit_size
7446         parameter and rename others. Update doc.
7447         * remote.c (align_for_efficient_write): New.
7448         (remote_write_bytes_aux): Add unit_size parameter and use it.
7449         Rename some variables.  Update doc.
7450         (remote_xfer_partial): Get unit size and use it.
7451         (remote_read_bytes_1): Add unit_size parameter and use it.
7452         Rename some variables. Update doc.
7453         (remote_write_bytes): Same.
7454         (remote_xfer_live_readonly_partial): Same.
7455         (remote_read_bytes): Same.
7456         (remote_flash_write): Update call to remote_write_bytes_aux.
7457         (remote_write_qxfer): Update call to remote_escape_output.
7458         (remote_search_memory): Same.
7459         (remote_hostio_pwrite): Same.
7460
7461 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
7462
7463         * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
7464         locations as inserted.
7465         Update and expand comment about permanent locations.
7466         (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
7467         Move comment to add_location_to_breakpoint.
7468         (update_global_location_list): Don't error out if a permanent
7469         breakpoint is not marked inserted.
7470         Don't error out if a non-permanent breakpoint location is inserted on
7471         top of a permanent breakpoint.
7472
7473 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
7474
7475         * breakpoint.c (make_breakpoint_permanent): Remove unused
7476         function.
7477         * breakpoint.h (make_breakpoint_permanent): Remove declaration.
7478
7479 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
7480
7481         PR gdb/16999
7482         * NEWS: Mention new GDBHISTSIZE behavior.
7483         * top.c (init_history): For null or out-of-range GDBHISTSIZE,
7484         set history size to unlimited.  Ignore non-numeric GDBHISTSIZE.
7485
7486 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
7487
7488         * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
7489         * top.c (init_history): Read from GDBHISTSIZE instead of
7490         HISTSIZE.
7491         (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
7492
7493 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
7494
7495         * top.c (gdb_safe_append_history): Do not call
7496         history_truncate_file if the history is not stifled.
7497
7498 2015-06-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7499
7500         * syscalls/s390-linux.xml: Add syscalls 344 through 354.
7501         * syscalls/s390x-linux.xml: Likewise.
7502
7503 2015-06-16  Michael Eager  <eager@eagercon.com>
7504
7505         * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
7506
7507 2015-06-16  Patrick Palka  <patrick@parcs.ath.cx>
7508
7509         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
7510         target_terminal_ours_for_output() before calling
7511         tui_show_frame_info(), and restore the original terminal
7512         settings afterwards.
7513
7514 2015-06-16  Martin Simmons  <martin@lispworks.com>  (tiny patch)
7515
7516         * arm-linux-nat.c: Include nat/linux-ptrace.h.
7517
7518 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
7519
7520         * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
7521         memory unit size.
7522         (mi_cmd_data_write_memory_bytes): Same.
7523
7524 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
7525
7526         * corefile.c (write_memory): Update doc.
7527         * gdbcore.h (write_memory): Same.
7528
7529 2015-06-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
7530
7531         * linux-tdep.c (enum filterflags): Make it from anonymous enum.
7532         (dump_mapping_p): Use it for parameter filterflags.
7533         (linux_find_memory_regions_full): Use it for variable filterflags.
7534
7535 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
7536             Jan Kratochvil  <jan.kratochvil@redhat.com>
7537
7538         Merge multiple hex conversions.
7539         * monitor.c: Include rsp-low.h.
7540         (fromhex): Remove definition.
7541
7542 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
7543             Jan Kratochvil  <jan.kratochvil@redhat.com>
7544
7545         Move utility functions to common/.
7546         * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
7547         Move defs to common/common-utils.c.
7548         * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
7549         (skip_to_space_const): Move decls to common/common-utils.h.
7550         * common/common-defs.h: Move include of common-types.h before
7551         common-utils.h.
7552         * common/common-utils.c: Include host-defs.h and ctype.h.
7553         (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
7554         from utils.c.
7555         (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
7556         cli/cli-utils.c.
7557         * common/common-utils.h (strtoulst): Move decl from utils.h.
7558         (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
7559         Move from cli/cli-utils.h.
7560         * common/host-defs.h: Include limits.h.
7561         (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
7562         (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
7563         * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
7564         common/common-utils.h.
7565         * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
7566         (strtoulst): Move to common/common-utils.c.
7567         * utils.h (strtoulst): Moved decl to common/common-utils.h.
7568
7569 2015-06-15  Yao Qi  <yao.qi@linaro.org>
7570
7571         * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
7572
7573 2015-06-10  Jon Turney  <jon.turney@dronecode.org.uk>
7574
7575         * build-id.c: Don't include elf-bfd.h.
7576         (build_id_bfd_get): Use bfd_build_id.
7577         (build_id_verify): Ditto.
7578         * build-id.h: Ditto.
7579         (find_separate_debug_file_by_buildid): Ditto.
7580         * python/py-objfile.c: Don't include elf-bfd.h.
7581         (objfpy_get_build_id) Use bfd_build_id.
7582         (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
7583         * coffread.c: Include build-id.h.
7584         (coff_symfile_read): Try find_separate_debug_file_by_buildid.
7585
7586 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7587
7588         * windows-nat.c (do_windows_fetch_inferior_registers)
7589         (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
7590         conditional with __CYGWIN__.
7591
7592 2015-06-13  Andrew Burgess  <andrew.burgess@embecosm.com>
7593
7594         * completer.c: Add arch-utils.h include.
7595         (enum reg_completer_targets): New enum.
7596         (reg_or_group_completer_1): New function containing old
7597         reg_or_group_completer, add and use new parameter to control what
7598         is completed on.  Use get_current_arch rather than architecture of
7599         currently selected frame.
7600         (reg_or_group_completer): Call new reg_or_group_completer_1.
7601         (reggroup_completer): Call new reg_or_group_completer_1.
7602         * completer.h (reggroup_completer): Add declaration.
7603         * tui/tui-regs.c: Add 'completer.h' include.
7604         (tui_reg_next_command): Renamed to...
7605         (tui_reg_next): ...this.  Adjust parameters and return rather than
7606         display new group.
7607         (tui_reg_prev_command): Renamed to...
7608         (tui_reg_prev): ...this.  Adjust parameters and return rather than
7609         display new group.
7610         (tui_reg_float_command): Delete.
7611         (tui_reg_general_command): Delete.
7612         (tui_reg_system_command): Delete.
7613         (tui_reg_command): Rewrite to perform switching of register group.
7614         Add header comment.
7615         (tuireglist): Remove.
7616         (tui_reggroup_completer): New function.
7617         (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
7618         creation of 'tui reg' command.
7619         * NEWS: Add comment about 'tui reg' changes.
7620
7621 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7622
7623         * target.c (target_read): Consider addressable unit size when
7624         reading from a memory object.
7625         (read_memory_robust): Same.
7626         (read_whatever_is_readable): Same.
7627         (target_write_with_progress): Consider addressable unit size
7628         when writing to a memory object.
7629         * target.h (target_read): Update documentation.
7630         (target_write): Add documentation.
7631
7632 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7633
7634         * arch-utils.h (default_addressable_memory_unit_size): New.
7635         * arch-utils.c (default_addressable_memory_unit_size): New.
7636         * gdbarch.sh (addressable_memory_unit_size): New.
7637         * gdbarch.h: Re-generate.
7638         * gdbarch.c: Re-generate.
7639
7640 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7641
7642         * target.c (target_read): Rename variables and use
7643         TARGET_XFER_E_IO.
7644         (target_read_with_progress): Same.
7645         (read_memory_robust): Constify parameters and rename
7646         variables.
7647         (read_whatever_is_readable): Constify parameters,
7648         rename variables, adjust formatting.
7649         * target.h (read_memory_robust): Constify parameters.
7650
7651 2015-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
7652
7653         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
7654         synthetic (non-AltiVec) vector types.
7655         (ppc64_sysv_abi_return_value): Likewise.
7656
7657 2015-06-12  Antoine Tremblay  <antoine.tremblay@ericsson.com>
7658
7659         PR breakpoints/16465
7660         * breakpoint.c (create_breakpoint): Save extra_string for
7661         pending breakpoints.
7662
7663 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7664
7665         * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
7666         and bt_mask to CORE_ADDR.
7667
7668 2015-06-11  Gary Benson <gbenson@redhat.com>
7669
7670         * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
7671         (mnsh_recv_message): Likewise.
7672
7673 2015-06-11  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7674
7675         * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
7676         long long int and plongest instead of %ll.
7677
7678 2015-06-11  Gary Benson <gbenson@redhat.com>
7679
7680         * nat/linux-namespaces.c (gdb_wait.h): New include.
7681         (sys/wait.h): Do not include.
7682
7683 2015-06-10  Simon Marchi  <simon.marchi@ericsson.com>
7684
7685         * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
7686         end_sequence is true.
7687
7688 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7689
7690         Code cleanup.
7691         * solib-target.c (library_list_start_list): Use explicit NULL
7692         comparison.
7693
7694 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7695
7696         * solib-target.c (library_list_start_list): Do not dereference
7697         variable version in its initialization.  Make the VERSION check handle
7698         NULL.
7699         (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
7700
7701 2015-06-10  Gary Benson <gbenson@redhat.com>
7702
7703         * NEWS: Announce support for direct access of executable and
7704         shared library files when attaching to inferiors in containers
7705         on GNU/Linux systems.
7706
7707 2015-06-10  Gary Benson <gbenson@redhat.com>
7708
7709         * remote.c (struct remote_state) <fs_pid>: New field.
7710         (new_remote_state): Initialize the above.
7711         (PACKET_vFile_setfs): New enum value.
7712         (remote_hostio_set_filesystem): New function.
7713         (remote_hostio_open): Call the above.
7714         (remote_hostio_unlink): Likewise.
7715         (remote_hostio_readlink): Likewise.
7716         (_initialize_remote): Register new "set/show remote
7717         hostio-setfs-packet" command.
7718         * NEWS: Announce new vFile:setfs packet.
7719
7720 2015-06-10  Gary Benson <gbenson@redhat.com>
7721
7722         * linux-nat.c (nat/linux-namespaces.h): New include.
7723         (fileio.h): Likewise.
7724         (linux_nat_filesystem_is_local): New function.
7725         (linux_nat_fileio_pid_of): Likewise.
7726         (linux_nat_fileio_open): Likewise.
7727         (linux_nat_fileio_readlink): Likewise.
7728         (linux_nat_fileio_unlink): Likewise.
7729         (linux_nat_add_target): Initialize to_filesystem_is_local,
7730         to_fileio_open, to_fileio_readlink and to_fileio_unlink.
7731         (_initialize_linux_nat): New "set/show debug linux-namespaces"
7732         commands.
7733         * NEWS: Mention new "set/show debug linux-namespaces" commands.
7734
7735 2015-06-10  Gary Benson <gbenson@redhat.com>
7736
7737         * target.h (struct inferior): New forward declaration.
7738         (struct target_ops) <to_filesystem_is_local>: Update comment.
7739         (struct target_ops) <to_fileio_open>: New argument inf.
7740         Update comment.  All implementations updated.
7741         (struct target_ops) <to_fileio_unlink>: Likewise.
7742         (struct target_ops) <to_fileio_readlink>: Likewise.
7743         (target_filesystem_is_local): Update comment.
7744         (target_fileio_open): New argument inf.  Update comment.
7745         (target_fileio_unlink): Likewise.
7746         (target_fileio_readlink): Likewise.
7747         (target_fileio_read_alloc): Likewise.
7748         (target_fileio_read_stralloc): Likewise.
7749         * target.c (target_fileio_open): New argument inf.
7750         Pass inf to implementation.  Update debug printing.
7751         (target_fileio_unlink): Likewise.
7752         (target_fileio_readlink): Likewise.
7753         (target_fileio_read_alloc_1): New argument inf. Pass inf
7754         to target_fileio_open.
7755         (target_fileio_read_alloc): New argument inf. Pass inf to
7756         target_fileio_read_alloc_1.
7757         (target_fileio_read_stralloc): Likewise.
7758         * gdb_bfd.c (inferior.h): New include.
7759         (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7760         argument with new argument "inferior".  Pass inferior to
7761         target_fileio_open.
7762         (gdb_bfd_open): Supply inferior argument to
7763         gdb_bfd_iovec_fileio_open.
7764         * linux-tdep.c (linux_info_proc): Supply inf argument to
7765         relevant target_fileio calls.
7766         (linux_find_memory_regions_full): Likewise.
7767         (linux_fill_prpsinfo): Likewise.
7768         * remote.c (remote_filesystem_is_local): Supply inf
7769         argument to remote_hostio_open.
7770         (remote_file_put): Likewise.
7771         (remote_file_get): Likewise.
7772         (remote_file_delete): Supply inf argument to
7773         remote_hostio_unlink.
7774
7775 2015-06-10  Gary Benson <gbenson@redhat.com>
7776
7777         * inf-child.c (inf_child_fileio_open): Replace comment.
7778         (inf_child_fileio_pwrite): Likewise.
7779         (inf_child_fileio_pread): Likewise.
7780         (inf_child_fileio_fstat): Insert blank line before comment.
7781         (inf_child_fileio_close): Replace comment.
7782         (inf_child_fileio_unlink): Likewise.
7783         (inf_child_fileio_readlink): Likewise.
7784         * remote.c (remote_hostio_open): Likewise.
7785         (remote_hostio_pread): Likewise.
7786         (remote_hostio_pwrite): Likewise.
7787         (remote_hostio_close): Likewise.
7788         (remote_hostio_unlink): Likewise.
7789         (remote_hostio_readlink): Likewise.
7790         (remote_hostio_fstat): Likewise.
7791         (remote_filesystem_is_local): Likewise.
7792         * target.c (target_fileio_open): Likewise.
7793         (target_fileio_pwrite): Likewise.
7794         (target_fileio_pread): Likewise.
7795         (target_fileio_fstat): Insert blank line before comment.
7796         (target_fileio_close): Replace comment.
7797         (target_fileio_unlink): Likewise.
7798         (target_fileio_readlink): Likewise.
7799         (target_fileio_read_alloc): Likewise.
7800         (target_fileio_read_stralloc): Likewise.
7801
7802 2015-06-10  Gary Benson <gbenson@redhat.com>
7803
7804         * linux-thread-db.c (nat/linux-namespaces.h): New include.
7805         (check_pid_namespace_match): Use linux_ns_same rather than
7806         linux_proc_pid_get_ns to spot PID namespace mismatches.
7807         * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7808         * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7809
7810 2015-06-10  Gary Benson <gbenson@redhat.com>
7811
7812         * configure.ac (AC_CHECK_FUNCS): Add setns.
7813         * config.in: Regenerate.
7814         * configure: Likewise.
7815         * nat/linux-namespaces.h: New file.
7816         * nat/linux-namespaces.c: Likewise.
7817         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7818         (linux-namespaces.o): New rule.
7819         * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7820         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7821         * config/arm/linux.mh (NATDEPFILES): Likewise.
7822         * config/i386/linux.mh (NATDEPFILES): Likewise.
7823         * config/i386/linux64.mh (NATDEPFILES): Likewise.
7824         * config/ia64/linux.mh (NATDEPFILES): Likewise.
7825         * config/m32r/linux.mh (NATDEPFILES): Likewise.
7826         * config/m68k/linux.mh (NATDEPFILES): Likewise.
7827         * config/mips/linux.mh (NATDEPFILES): Likewise.
7828         * config/pa/linux.mh (NATDEPFILES): Likewise.
7829         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7830         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7831         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7832         * config/s390/linux.mh (NATDEPFILES): Likewise.
7833         * config/sparc/linux.mh (NATDEPFILES): Likewise.
7834         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7835         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7836         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7837
7838 2015-06-10  Gary Benson <gbenson@redhat.com>
7839
7840         * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7841         * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7842         (make_cleanup_close): Likewise.
7843         * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7844         * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7845         (make_cleanup_close): Likewise.
7846
7847 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7848
7849         * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7850         from SuspendThread().
7851
7852 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7853
7854         * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7855         from OutputDebugString.
7856
7857 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7858                         Mircea Gherzan  <mircea.gherzan@intel.com>
7859
7860         * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7861         MPX_BT_MASK_32): New macros.
7862         (i386_mpx_set_bounds): New function that implements
7863         the command "set-mpx-bound".
7864         (i386_mpx_enabled): Helper function to test MPX availability.
7865         (i386_mpx_bd_base): Helper function to calculate the base directory
7866         address.
7867         (i386_mpx_get_bt_entry): Helper function to access a bound
7868         table entry.
7869         (i386_mpx_print_bounds): Effectively display bound information.
7870         (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7871         "show mpx".
7872         (_initialize_i386_tdep):
7873         Add "bound" to the commands "show mpx" and "set mpx" commands.
7874         (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7875         and "show mpx" commands.
7876         * NEWS: List new commands for MPX support.
7877
7878 2015-06-09  Gary Benson <gbenson@redhat.com>
7879
7880         * common/fileio.h (fileio_to_host_mode): New declaration.
7881         * common/fileio.c (fileio_to_host_mode): New Function.
7882         * inf-child.c (inf_child_fileio_open): Process mode argument
7883         with fileio_to_host_mode.
7884
7885 2015-06-09  Gary Benson <gbenson@redhat.com>
7886
7887         * common/fileio.c (fileio_mode_pack): Fix preprocessor
7888         conditional.
7889
7890 2015-06-05  Gary Benson <gbenson@redhat.com>
7891
7892         * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7893         * remote.c (remote_filesystem_is_local): ...here.
7894
7895 2015-06-04  Yao Qi  <yao.qi@linaro.org>
7896
7897         * gdbarch.c: Regenerate it.
7898
7899 2015-06-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7900
7901         * arch-utils.c (default_infcall_munmap): New.
7902         * arch-utils.h (default_infcall_munmap): New declaration.
7903         * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7904         (munmap_list_free, munmap_listp_free_cleanup): New.
7905         (struct setup_sections_data): Add field munmap_list_headp.
7906         (setup_sections): Call munmap_list_add.
7907         (compile_object_load): New variable munmap_list_head, initialize
7908         setup_sections_data.munmap_list_headp, return munmap_list_head.
7909         * compile/compile-object-load.h (struct munmap_list): New declaration.
7910         (struct compile_module): Add field munmap_list_head.
7911         (munmap_list_free): New declaration.
7912         * compile/compile-object-run.c (struct do_module_cleanup): Add field
7913         munmap_list_head.
7914         (do_module_cleanup): Call munmap_list_free.
7915         (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7916         * gdbarch.c: Regenerate.
7917         * gdbarch.h: Regenerate.
7918         * gdbarch.sh (infcall_munmap): New.
7919         * linux-tdep.c (linux_infcall_munmap): New.
7920         (linux_init_abi): Install it.
7921
7922 2015-06-02  Simon Marchi  <simon.marchi@ericsson.com>
7923
7924         PR gdb/15564
7925         * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7926
7927 2015-06-02  Yao Qi  <yao.qi@linaro.org>
7928
7929         * i386-linux-nat.c: Include linux-nat.h.
7930
7931 2015-06-01  Andreas Schwab  <schwab@linux-m68k.org>
7932             Jan Kratochvil  <jan.kratochvil@redhat.com>
7933
7934         PR symtab/18392
7935         * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7936         assertion.
7937         * dwarf2loc.c (chain_candidate): Likewise.
7938
7939 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7940
7941         * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7942         (store_vfp_regs): Use PTRACE_SETREGSET.
7943
7944 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7945
7946         * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7947         (fetch_fpregs): Likewise.
7948         * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7949         (store_fpregs): Likewise.
7950
7951 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7952
7953         * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7954         (fetch_regs): Likewise.
7955         (store_regs): Use PTRACE_SETREGSET.
7956         (store_register): Likewise.
7957
7958 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7959
7960         * arm-linux-nat.c (arm_linux_read_description): Check whether
7961         kernel supports PTRACE_GETREGSET.
7962
7963 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7964
7965         * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7966         * linux-nat.c: ... here.
7967         * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7968         to ...
7969         * linux-nat.h: ... here.
7970
7971 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7972
7973         * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7974         * i386-linux-nat.c: Likewise.
7975         * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7976         * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7977         (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7978         * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7979         * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7980
7981 2015-05-30  Eli Zaretskii  <eliz@gnu.org>
7982
7983         * go32-nat.c (go32_xfer_memory): Fix the return value to be
7984         compatible to what read_child and write_child return.  This
7985         unbreaks that DJGPP build of GDB which was broken since v7.7.
7986
7987 2015-05-29  Martin Galvan  <martin.galvan@tallertechnologies.com>
7988
7989         * MAINTAINERS (Write After Approval): Add Martin Galvan.
7990
7991 2015-05-29  Roland McGrath  <mcgrathr@google.com>
7992
7993         PR gdb/18464
7994         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7995         rather than internal_error for an unrecognized value.
7996
7997 2015-05-29  Max Filippov  <jcmvbkbc@gmail.com>
7998
7999         * xtensa-tdep.c (xtensa_pseudo_register_read)
8000         (xtensa_pseudo_register_write): Don't alias last pseudo register
8001         to a1.
8002
8003 2015-05-28  Don Breazeal  <donb@codesourcery.com>
8004
8005         * infrun.c (follow_fork_inferior): Ensure the use of
8006         process-style ptids (pid,0,0) in verbose/debug "Detaching"
8007         messages.
8008
8009 2015-05-28  Doug Evans  <dje@google.com>
8010
8011         * dwarf2read.c (record_line_ftype): Remove, duplicate.
8012
8013 2015-05-28  Yao Qi  <yao.qi@linaro.org>
8014
8015         * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
8016         (arm_linux_fetch_inferior_registers): Use
8017         tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
8018         (arm_linux_store_inferior_registers): Likewise.
8019         (arm_linux_read_description): Don't set
8020         arm_linux_has_wmmx_registers.
8021         * arm-tdep.c (arm_gdbarch_init): Set
8022         tdep->have_wmmx_registers according target descriptions.
8023         * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
8024         field.
8025
8026 2015-05-28  Yao Qi  <yao.qi@linaro.org>
8027
8028         * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
8029         (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
8030         instead of arm_linux_vfp_register_count.
8031         (store_vfp_regs): Likewise.
8032         (arm_linux_fetch_inferior_registers): Likewise.
8033         (arm_linux_store_inferior_registers): Likewise.
8034         (arm_linux_read_description): Don't set
8035         arm_linux_vfp_register_count.
8036         * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
8037         Adjust.
8038         * arm-tdep.c (arm_gdbarch_init): Add assert on
8039         vfp_register_count.
8040         * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
8041         field to vfp_register_count.  All users updated.
8042
8043 2015-05-28  Kyle Huey  <me@kylehuey.com>  (tiny patch)
8044
8045         * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
8046         ELFOSABI_GNU binaries.
8047
8048 2015-05-27  Doug Evans  <dje@google.com>
8049
8050         * dwarf2read.c (lnp_state_machine): New typedef.
8051         (lnp_reader_state): New typedef.
8052         (dwarf_record_line_1): Renamed from dwarf_record_line.
8053         All callers updated.
8054         (dwarf_record_line): New function.
8055         (init_lnp_state_machine): New function.
8056         (check_line_address): Replace p_record_line parameter with state.
8057         All callers updated.
8058         (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
8059         Update to record state in lnp_state_machine.
8060
8061 2015-05-27  Doug Evans  <dje@google.com>
8062
8063         * dwarf2read.c (record_line_ftype): New typedef.
8064         (check_line_address): New function.
8065         (dwarf_decode_lines_1): Call it.
8066
8067 2015-05-27  Doug Evans  <dje@google.com>
8068
8069         * NEWS: Mention "set debug dwarf-line".
8070         * dwarf2read.c (dwarf_line_debug): New static global.
8071         (add_include_dir): Add debug dwarf-line support.
8072         (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
8073         (_initialize_dwarf2_read): New parameter "debug dwarf-line".
8074
8075 2015-05-27  Doug Evans  <dje@google.com>
8076
8077         * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
8078         All callers updated.
8079         (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
8080         * cp-support.h (cp_lookup_nested_symbol): Update.
8081
8082 2015-05-27  Doug Evans  <dje@google.com>
8083
8084         PR symtab/18258
8085         * block.c (block_find_symbol): New function.
8086         (block_find_non_opaque_type): Ditto.
8087         (block_find_non_opaque_type_preferred): Ditto.
8088         * block.h (block_symbol_matcher_ftype): New typedef.
8089         (block_find_symbol): Declare.
8090         (block_find_non_opaque_type): Ditto.
8091         (block_find_non_opaque_type_preferred): Ditto.
8092         * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
8093         * psymtab.c (psym_lookup_symbol): Ditto.
8094         * symtab.c (basic_lookup_transparent_type_1): New function.
8095         (basic_lookup_transparent_type): Call it.
8096
8097 2015-05-27  Yao Qi  <yao.qi@linaro.org>
8098
8099         * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
8100         AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
8101
8102 2015-05-27  Yao Qi  <yao.qi@linaro.org>
8103
8104         * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
8105         before operator &&.
8106         (aarch64_record_load_store): Likewise.
8107
8108 2015-05-26  Doug Evans  <dje@google.com>
8109
8110         PR c++/18141, c++/18417.
8111         * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
8112         a typedef.
8113
8114 2015-05-26  Doug Evans  <dje@google.com>
8115
8116         * NEWS: Add entries for command renamings.
8117         * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
8118         All uses updated.
8119         (dwarf_die_debug): Renamed from dwarf2_die_debug.  All uses updated.
8120         (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
8121         All uses updated.
8122         (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
8123         All callers updated.  Fix spelling of DWARF in help text.
8124         (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
8125         All uses updated.
8126         (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
8127         All uses updated.
8128         (set_dwarf_cmd): Renamed from set_dwarf2_cmd.  All callers updated.
8129         (show_dwarf_cmd): Renamed from show_dwarf2_cmd.  All callers updated.
8130         (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
8131         All uses updated.
8132         (show_dwarf_always_disassemble): Renamed from
8133         show_dwarf2_always_disassemble.  All callers updated.
8134         (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
8135         "set/show dwarf".  Rename "set/show dwarf2 max-cache-age" to
8136         "set/show dwarf max-cache-age".  Rename
8137         "set/show dwarf2 always-disassemble" to
8138         "set/show dwarf always-disassemble".  Rename
8139         "set/show debug dwarf2-read" to "set/show debug dwarf-read".  Rename
8140         "set/show debug dwarf2-die" to "set/show debug dwarf-die".
8141
8142 2015-05-26  Doug Evans  <dje@google.com>
8143
8144         PR python/18438
8145         * python/py-lazy-string.c (stpy_convert_to_value): Use
8146         gdbpy_gdb_memory_error not PyExc_MemoryError.
8147         (gdbpy_create_lazy_string_object): Ditto.
8148
8149 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
8150
8151         * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
8152
8153 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
8154
8155         * tui/tui-regs.c (tui_reg_prev_command): New function.
8156         (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
8157         * reggroups.c (reggroup_prev): New function.
8158         * reggroups.h (reggroup_prev): Add declaration.  Update comment.
8159
8160 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
8161             Yao Qi  <yao.qi@linaro.org>
8162
8163         * aarch64-linux-tdep.c: Include linux-record.h and
8164         record-full.h.
8165         (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
8166         (aarch64_syscall): New enum.
8167         (aarch64_canonicalize_syscall): New function.
8168         (aarch64_all_but_pc_registers_record): New function.
8169         (aarch64_linux_syscall_record): New function.
8170         (aarch64_linux_init_abi): Install AArch64 process record
8171         handler.  Update to handle syscall recording.
8172         * aarch64-tdep.c: Include record.h and record-full.h.
8173         (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
8174         (struct aarch64_mem_r): Define.
8175         (aarch64_record_result): New enum.
8176         (struct insn_decode_record): Define.
8177         (insn_decode_record): New typedef.
8178         (aarch64_record_data_proc_reg): New function.
8179         (aarch64_record_data_proc_imm): New function.
8180         (aarch64_record_branch_except_sys): New function.
8181         (aarch64_record_load_store): New function.
8182         (aarch64_record_data_proc_simd_fp): New function.
8183         (aarch64_record_asimd_load_store): New function.
8184         (aarch64_record_decode_insn_handler): New function.
8185         (deallocate_reg_mem): New function.
8186         (aarch64_process_record): New function.
8187         * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
8188         New field.
8189         (aarch64_process_record): New extern declaration.
8190         * configure.tgt: Add linux-record.o to gdb_target_obs.
8191         * linux-record.h (struct linux_record_tdep) <arg7>: New field.
8192
8193 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
8194
8195         * NEWS: Add a note on process record-replay support on aarch64*-linux*
8196         targets.
8197
8198 2015-05-26  Martin Galvan  <martin.galvan@tallertechnologies.com>
8199
8200         * amd64-tdep.c: Replace in_function_epilogue_p with
8201         stack_frame_destroyed_p throughout.
8202         * arch-utils.c: Ditto.
8203         * arch-utils.h: Ditto.
8204         * arm-tdep.c: Ditto.
8205         * breakpoint.c: Ditto.
8206         * gdbarch.sh: Ditto.
8207         * hppa-tdep.c: Ditto.
8208         * i386-tdep.c: Ditto.
8209         * mips-tdep.c: Ditto.
8210         * nios2-tdep.c: Ditto.
8211         * rs6000-tdep.c: Ditto.
8212         * s390-linux-tdep.c: Ditto.
8213         * score-tdep.c: Ditto.
8214         * sh-tdep.c: Ditto.
8215         * sparc-tdep.c: Ditto.
8216         * sparc-tdep.h: Ditto.
8217         * sparc64-tdep.c: Ditto.
8218         * spu-tdep.c: Ditto.
8219         * tic6x-tdep.c: Ditto.
8220         * tilegx-tdep.c: Ditto.
8221         * xstormy16-tdep.c: Ditto.
8222         * gdbarch.c, gdbarch.h: Re-generated.
8223
8224 2015-05-22  Andrew Burgess  <andrew.burgess@embecosm.com>
8225
8226         * NEWS: Mention 'tui enable' and 'tui disable'.
8227         * tui/tui.c (tui_enable_command): New function.
8228         (tui_disable_command): New function.
8229         (_initialize_tui): New function.
8230
8231 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8232
8233         * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
8234
8235 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8236
8237         * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
8238         buf_ptr is freed.
8239
8240 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8241
8242         * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
8243         into ...
8244         (tui_set_layout_for_display_command): ...here, before calling
8245         tui_set_layout.  Only set the layout if gdb has not already
8246         entered the TUI_FAILURE state.
8247
8248 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8249
8250         * tui/tui-layout.c (layout_completer): New function.
8251         (_initialize_tui_layout): Set completer on layout command.
8252
8253 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8254
8255         * tui/tui-layout.c (tui_set_layout): Remove
8256         tui_register_display_type parameter.  Remove all checking of this
8257         parameter, and reindent function.  Update header comment.
8258         (tui_set_layout_for_display_command): Rename to...
8259         (tui_set_layout_by_name): ...this, and don't check for different
8260         register class types, don't pass a tui_register_display_type to
8261         tui_set_layout.  Update header comment.
8262         (layout_names): Remove register set specific names.
8263         * tui/tui-layout.h (tui_set_layout): Remove
8264         tui_register_display_type parameter.
8265         * tui/tui.c (tui_rl_change_windows): Don't pass a
8266         tui_register_display_type to tui_set_layout.
8267         (tui_rl_delete_other_windows): Likewise.
8268         (tui_enable): Likewise.
8269         * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
8270         (TUI_FLOAT_REGS_NAME_LOWER): Remove.
8271         (TUI_GENERAL_REGS_NAME): Remove.
8272         (TUI_GENERAL_REGS_NAME_LOWER): Remove.
8273         (TUI_SPECIAL_REGS_NAME): Remove.
8274         (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
8275         (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
8276         (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
8277         (enum tui_register_display_type): Remove.
8278         (struct tui_layout_def): Remove regs_display_type and
8279         float_regs_display_type fields.
8280         (struct tui_data_info): Remove regs_display_type field.
8281         (tui_layout_command): Use new name for
8282         tui_set_layout_for_display_command.
8283         * tui/tui-data.c (layout_def): Don't initialise removed fields.
8284         (tui_clear_win_detail): Don't initialise removed fields of
8285         win_info.
8286         * tui/tui-regs.c (tui_show_registers): Use new name for
8287         tui_set_layout_for_display_command.
8288         * tui/tui.h (tui_set_layout_for_display_command): Rename
8289         declaration to...
8290         (tui_set_layout_by_name): ...this.
8291         * printcmd.c (display_command): Remove tui related layout call,
8292         and reindent.
8293
8294 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
8295
8296         * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
8297         (handle_inferior_event): New function.
8298
8299 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
8300
8301         * ada-lang.c (to_fixed_array_type): Rename local variable
8302         typename into type_name.
8303
8304 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8305
8306         Fix ASAN crash for gdb.compile/compile.exp.
8307         * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
8308
8309 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8310
8311         * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
8312         (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
8313         * compile/compile-object-load.c (setup_sections, compile_object_load):
8314         Likewise.
8315         * compile/compile.c (compile_to_object): Likewise.
8316
8317 2015-05-16  Doug Evans  <xdje42@gmail.com>
8318
8319         * NEWS: Mention support for unbuffered Guile memory ports.
8320         * scm-ports.c (ioscm_memory_port): Update comments on end, size.
8321         (ioscm_lseek_address): Improve overflow calculation.
8322         (gdbscm_memory_port_fill_input): Add assert.
8323         (gdbscm_memory_port_write): Handle unbuffered ports.
8324         Handle large writes identical to Guile's fport_write.
8325         (gdbscm_memory_port_seek): Fix seeking past end check.
8326         (gdbscm_memory_port_close): Handle closing unbuffered port.
8327         (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
8328         (ioscm_init_memory_port): Handle unbuffered ports.
8329         (ioscm_reinit_memory_port): Ditto.
8330         (ioscm_init_memory_port): Update size calculation.
8331         (gdbscm_open_memory): Support zero sized ports.
8332
8333 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8334
8335         * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
8336         variable compiler warnings.
8337
8338 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8339
8340         * compile/compile-object-load.c (get_out_value_type): Fix returned type.
8341
8342 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8343             Phil Muldoon  <pmuldoon@redhat.com>
8344
8345         * NEWS (Changes since GDB 7.9): Add compile print.
8346         * compile/compile-c-support.c (add_code_header, add_code_footer)
8347         (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
8348         COMPILE_I_PRINT_VALUE_SCOPE.
8349         * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
8350         (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
8351         New.
8352         * compile/compile-object-load.c: Include block.h.
8353         (get_out_value_type): New function.
8354         (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8355         COMPILE_I_PRINT_VALUE_SCOPE.  Set compile_module's OUT_VALUE_ADDR and
8356         OUT_VALUE_TYPE.
8357         * compile/compile-object-load.h (struct compile_module): Add fields
8358         out_value_addr and out_value_type.
8359         * compile/compile-object-run.c: Include valprint.h and compile.h.
8360         (struct do_module_cleanup): Add fields out_value_addr and
8361         out_value_type.
8362         (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8363         COMPILE_I_PRINT_VALUE_SCOPE.
8364         (compile_object_run): Propagate out_value_addr and out_value_type.
8365         Pass OUT_VALUE_ADDR.
8366         * compile/compile.c: Include valprint.h.
8367         (compile_print_value, compile_print_command): New functions.
8368         (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
8369         (_initialize_compile): Update compile code help text.  Install
8370         compile_print_command.
8371         * compile/compile.h (compile_print_value): New prototype.
8372         * defs.h (enum compile_i_scope_types): Add
8373         COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
8374
8375 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8376
8377         * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
8378         Rely on its parameter count.
8379         (compile_object_load): Replace lookup_minimal_symbol_text by
8380         lookup_global_symbol_from_objfile.  Verify FUNC_SYM.  Set it in the
8381         return value.
8382         * compile/compile-object-load.h (struct compile_module): Replace
8383         func_addr by func_sym.
8384         * compile/compile-object-run.c: Include block.h.
8385         (compile_object_run): Reset module variable after it is freed.  Use
8386         FUNC_SYM instead of FUNC_ADDR.  Rely on it.
8387
8388 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8389
8390         * compile/compile-c-support.c (print_one_macro): Use #ifndef.
8391         (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
8392         (c_compute_program): Call generate_register_struct after typedefs.
8393         * compile/compile-loc2c.c (push, pushf_register_address)
8394         (pushf_register): Cast to GCC_UINTPTR.
8395         (do_compile_dwarf_expr_to_c): Use unused attribute.  Add space after
8396         type.  Use GCC_UINTPTR instead of void *.  Remove excessive cast.
8397         (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
8398         * compile/compile.c (_initialize_compile): Enable warnings for
8399         COMPILE_ARGS.
8400
8401 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8402
8403         * cli/cli-script.c (execute_control_command): Update
8404         eval_compile_command caller.
8405         * compile/compile-object-load.c (compile_object_load): Add parameters
8406         scope and scope_data.  Set them.
8407         * compile/compile-object-load.h (struct compile_module): Add fields
8408         scope and scope_data.
8409         (compile_object_load): Add parameters scope and scope_data.
8410         * compile/compile-object-run.c (struct do_module_cleanup): Add fields
8411         scope and scope_data.
8412         (compile_object_run): Propagate the fields scope and scope_data.
8413         * compile/compile.c (compile_file_command, compile_code_command):
8414         Update eval_compile_command callers.
8415         (eval_compile_command): Add parameter scope_data.  Pass it plus scope.
8416         * compile/compile.h (eval_compile_command): Add parameter scope_data.
8417         * defs.h (struct command_line): Add field scope_data.
8418
8419 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8420
8421         * printcmd.c (struct format_data): Move it to valprint.h.
8422         (print_command_parse_format, print_value): New functions from ...
8423         (print_command_1): ... here.  Call them.
8424         * valprint.h (struct format_data): Move it here from printcmd.c.
8425         (print_command_parse_format, print_value): New declarations.
8426
8427 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8428
8429         * compile/compile-object-load.c (compile_object_load): Add
8430         COMPILE_DEBUG message.
8431
8432 2015-05-15  Jerome Guitton  <guitton@adacore.com>
8433
8434         * ada-lang.c (ada_value_ptr_subscript): Use enum position of
8435         index to get element instead of enum value.
8436         (ada_value_slice_from_ptr, ada_value_slice): Use enum position
8437         of index to compute length, but enum values to compute bounds.
8438         (ada_array_length): Use enum position of index instead of enum value.
8439         (pos_atr): Move position computation to...
8440         (ada_evaluate_subexp): Use enum values to compute bounds.
8441         * gdbtypes.c (discrete_position): ...this new function.
8442         * gdbtypes.h (discrete_position): New function declaration.
8443         * valprint.c (val_print_array_elements): Call discrete_position
8444         to handle array indexed by non-contiguous enumeration types.
8445
8446 2015-05-15  Jerome Guitton  <guitton@adacore.com>
8447
8448         * ada-lang.c (find_parallel_type_by_descriptive_type):
8449         Go through typedefs during lookup.
8450         (to_fixed_array_type): Add support for non-bit packed arrays
8451         as variable-length fields.
8452
8453 2015-05-15  Pedro Alves  <palves@redhat.com>
8454             Simon Marchi  <simon.marchi@ericsson.com>
8455
8456         * event-loop.c (gdb_notifier) <next_file_handler,
8457         next_poll_fds_index>: New fields.
8458         (get_next_file_handler_to_handle_and_advance): New function.
8459         (delete_file_handler): If deleting the next file handler to
8460         handle, advance to the next file handler.
8461         (gdb_wait_for_event): Bail early if no event fired.  Poll file
8462         handlers in round-robin fashion.
8463
8464 2015-05-15  Pedro Alves  <palves@redhat.com>
8465
8466         * linux-tdep.c (linux_find_memory_regions_full): Rename local
8467         'private' to 'priv'.
8468
8469 2015-05-15  Pedro Alves  <palves@redhat.com>
8470
8471         * nat/linux-nat.h: Include "target/waitstatus.h".
8472
8473 2015-05-15  Yuanhui Zhang  <asmwarrior@gmail.com>
8474
8475         * python/py-unwind.c (struct reg_info): Move out of ...
8476         (struct cached_frame_info): ... this scope.
8477         (pending_frame_object_type, unwind_info_object_type): Make extern.
8478
8479 2015-05-15  Joel Brobecker  <brobecker@adacore.com>
8480
8481         * ada-lang.c (ada_value_primitive_packed_val): Make sure
8482         accumSize is never negative.
8483
8484 2015-05-14  Patrick Palka  <patrick@parcs.ath.cx>
8485
8486         * tui/tui-command.c: Remove include of <ctype.h>.
8487         (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
8488
8489 2015-05-13  Martin Galvan  <martin.galvan@tallertechnologies.com>
8490
8491         * dwarf2read.c (die_needs_namespace): Return 1 for
8492         DW_TAG_inlined_subroutine.
8493
8494 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8495
8496         * regcache.c (regcache_cpy_no_passthrough): New declaration.
8497         (regcache_cpy_no_passthrough): Make it static, add function comment.
8498         * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
8499         (regcache_cpy_no_passthrough): Remove declaration.
8500
8501 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8502
8503         * gdbthread.h (struct thread_control_state): Update comment for
8504         proceed_to_finish.
8505         * infcall.c (run_inferior_call): Update comment about
8506         proceed_to_finish.
8507         * infcmd.c (get_return_value): Update comment about stop_registers.
8508         (finish_forward): Update comment about proceed_to_finish.
8509         * infrun.c (stop_registers): Remove.
8510         (clear_proceed_status, normal_stop): Remove stop_registers handling.
8511         * infrun.h (stop_registers): Remove.
8512
8513 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8514
8515         * infcall.c (struct dummy_frame_context_saver)
8516         (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
8517         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8518         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8519         New.
8520         (call_function_by_hand_dummy): Move discard_cleanups of
8521         inf_status_cleanup before dummy_frame_push.  Call
8522         dummy_frame_context_saver_setup and prepare context_saver_cleanup.
8523         Use dummy_frame_context_saver_get_regs instead of stop_registers.
8524         * infcall.h (struct dummy_frame_context_saver)
8525         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8526         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8527         New declarations.
8528         * infcmd.c: Include infcall.h.
8529         (get_return_value): Add parameter ctx_saver, use it instead of
8530         stop_registers.
8531         (print_return_value): Add parameter ctx_saver, pass it.
8532         (struct finish_command_continuation_args): Add field ctx_saver.
8533         (finish_command_continuation): Update print_return_value caller.
8534         (finish_command_continuation_free_arg): Free also ctx_saver.
8535         (finish_forward): Call dummy_frame_context_saver_setup.
8536         * inferior.h (struct dummy_frame_context_saver): New declaration.
8537         (get_return_value): Add parameter ctx_saver.
8538         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
8539         get_return_value caller.
8540
8541 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8542
8543         * dummy-frame.c (struct dummy_frame_dtor_list): New.
8544         (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
8545         (remove_dummy_frame): Process dtor_list.
8546         (pop_dummy_frame): Process dtor_list.
8547         (register_dummy_frame_dtor): Maintain dtor_list.
8548         (find_dummy_frame_dtor): Handle dtor_list.
8549         * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
8550         Update comments.
8551
8552 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8553
8554         * compile/compile-object-run.c (do_module_cleanup): Add parameter
8555         registers_valid.
8556         (compile_object_run): Update do_module_cleanup caller.
8557         * dummy-frame.c: Include infcall.h.
8558         (struct dummy_frame): Update dtor comment.
8559         (remove_dummy_frame): Call dtor.
8560         (pop_dummy_frame): Update dtor caller.
8561         * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
8562         registers_valid.
8563
8564 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
8565
8566         GDB 7.9.1 released.
8567
8568 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
8569
8570         * NEWS: Create "Changes in GDB 7.9.1" section.  Move news about
8571         Xmethods now being able to specify a result type to that new
8572         sectioin.
8573
8574 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
8575
8576         * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
8577         first before resizing the window.
8578         * tui/tui.c (tui_enable): Likewise.
8579
8580 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8581
8582         * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
8583         * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
8584         * infcall.c (call_function_by_hand_dummy): Use proper typedef for
8585         dummy_dtor parameter.
8586         * infcall.h: Include dummy-frame.h.
8587         (call_function_by_hand_dummy_dtor_ftype): Remove.
8588         (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
8589         parameter.
8590
8591 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
8592
8593         PR gdb/17820
8594         * top.c (history_size_setshow_var): Change type to signed.
8595         Initialize to -2.  Update documentation.
8596         (set_readline_history_size): Define.
8597         (set_history_size_command): Use it.  Remove logic for handling
8598         out-of-range sizes.
8599         (init_history): Use set_readline_history_size().  Test for a
8600         value of -2 instead of 0 when determining whether to set a
8601         default history size.
8602         (init_main): Decode the argument of the "size" command as a
8603         zuinteger_unlimited.
8604
8605 2015-05-12  Doug Evans  <dje@google.com>
8606
8607         * dwarf2read.c (struct file_entry): Tweak comments.
8608         (get_debug_line_section): Tweak comments.
8609
8610 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8611
8612         * NEWS: Announce fork support in the RSP and support
8613         for fork debugging in extended mode.
8614
8615 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8616
8617         * remote.c (remote_insert_fork_catchpoint): New function.
8618         (remote_remove_fork_catchpoint): New function.
8619         (remote_insert_vfork_catchpoint): New function.
8620         (remote_remove_vfork_catchpoint): New function.
8621         (pending_fork_parent_callback): New function.
8622         (remove_new_fork_child): New function.
8623         (remote_update_thread_list): Call remote_notif_get_pending_events
8624         and remove_new_fork_child.
8625         (extended_remote_kill): Kill fork child when killing the
8626         parent before follow_fork completes.
8627         (init_extended_remote_ops): Initialize target vector with
8628         new fork catchpoint functions.
8629
8630 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8631
8632         * remote.c (remove_vfork_event_p): New function.
8633         (remote_follow_fork): Add vfork event type to event checking.
8634         (remote_parse_stop_reply): New stop reasons "vfork" and
8635         "vforkdone" for RSP 'T' Stop Reply Packet.
8636
8637 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8638
8639         * linux-nat.c (linux_nat_ptrace_options): New function.
8640         (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
8641         Call linux_nat_ptrace_options and use different argument to
8642         linux_enable_event_reporting.
8643         (_initialize_linux_nat): Delete call to
8644         linux_ptrace_set_additional_flags.
8645         * nat/linux-ptrace.c (current_ptrace_options): Rename to
8646         supported_ptrace_options.
8647         (additional_flags): Delete variable.
8648         (linux_check_ptrace_features): Use supported_ptrace_options.
8649         (linux_test_for_tracesysgood, linux_test_for_tracefork):
8650         Likewise, and remove additional_flags check.
8651         (linux_enable_event_reporting): Change 'attached' argument to
8652         'options'.  Use supported_ptrace_options.
8653         (ptrace_supports_feature): Change comment.  Use
8654         supported_ptrace_options.
8655         (linux_ptrace_set_additional_flags): Delete function.
8656         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
8657         Delete function prototype.
8658         * remote.c (remote_fork_event_p): New function.
8659         (remote_detach_pid): New function.
8660         (remote_detach_1): Call remote_detach_pid, don't mourn inferior
8661         if doing detach-on-fork.
8662         (remote_follow_fork): New function.
8663         (remote_parse_stop_reply): Handle new "T" stop reason "fork".
8664         (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
8665         (init_extended_remote_ops): Initialize to_follow_fork.
8666
8667 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8668
8669         * nat/linux-ptrace.c (linux_check_ptrace_features): Change
8670         from static to extern.
8671         * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
8672         * remote.c (anonymous enum): <PACKET_fork_event_feature,
8673         * PACKET_vfork_event_feature>: New enumeration constants.
8674         (remote_protocol_features): Add table entries for new packets.
8675         (remote_query_supported): Add new feature queries to qSupported
8676         packet.
8677
8678 2015-05-12  Gary Benson <gbenson@redhat.com>
8679
8680         * remote.c (remote_add_inferior): Call exec_file_locate_attach
8681         for fake PIDs as well as real ones.
8682         (remote_pid_to_exec_file): Send empty annex if PID is fake.
8683
8684 2015-05-09  Siva Chandra Reddy  <sivachandra@google.com>
8685
8686         * NEWS (Python Scripting): Mention the new gdb.Value methods.
8687         * python/py-value.c (valpy_reference_value): New function.
8688         (valpy_const_value): Likewise.
8689         (value_object_methods): Add new methods.
8690         * value.c (make_cv_value): New function.
8691         * value.h (make_cv_value): Declare.
8692
8693 2015-05-08  Yao Qi  <yao@codesourcery.com>
8694             Sandra Loosemore  <sandra@codesourcery.com>
8695
8696         * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
8697         to 'lh->include_dirs' before accessing to it.
8698         (psymtab_include_file_name): Likewise.
8699         (dwarf_decode_lines_1): Likewise.
8700         (dwarf_decode_lines): Likewise.
8701         (file_file_name): Likewise.
8702
8703 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
8704
8705         * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
8706         (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
8707         (nios2_linux_rt_sigreturn_init): Adjust base address of
8708         register save area.
8709
8710 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
8711
8712         * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
8713         "trap 31" as the breakpoint instruction on all targets.
8714
8715 2015-05-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8716
8717         * infcmd.c (print_return_value): Remove unused declaration.
8718
8719 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8720
8721         * dwarf2read.c (attr_to_dynamic_prop)
8722         <DW_AT_data_member_location>: Use read_type_die isntead of
8723         get_die_type.
8724
8725 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8726
8727         * ada-lang.c (ada_convert_actual): Add handling of formals
8728         passed inside an aligner type.
8729
8730 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8731
8732         * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
8733
8734 2015-05-08  Siva Chandra Reddy  <sivachandra@google.com>
8735
8736         PR python/18291
8737         * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
8738         Print xmethod matcher status.
8739
8740 2015-05-08  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8741
8742         * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
8743         register in the regcache when treating the PSWM register, and vice
8744         versa.
8745
8746 2015-05-07  Gary Benson <gbenson@redhat.com>
8747
8748         * linux-thread-db.c (struct thread_db_info)
8749         <td_ta_map_id2thr_p>: Remove field.
8750         (try_thread_db_load_1): Remove initialization for the above.
8751
8752 2015-05-07  Gary Benson <gbenson@redhat.com>
8753
8754         * linux-thread-db.c (struct thread_db_info)
8755         <td_thr_validate_p>: Remove field.
8756         (try_thread_db_load_1): Remove initialization for the above.
8757
8758 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
8759
8760         * compile/compile-object-load.c (compile_object_load): Support
8761         mst_text_gnu_ifunc.
8762
8763 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
8764
8765         * compile/compile.c (compile_to_object): Make the cmd_string parameter
8766         const.  Use new variables for the const compatibility.
8767         (eval_compile_command): Make the cmd_string parameter const.
8768         * compile/compile.h (eval_compile_command): Make the cmd_string
8769         parameter const.
8770
8771 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
8772
8773         * defs.h (deprecated_init_ui_hook): Delete.  Remove associated
8774         comment.
8775         * top.c (deprecated_init_ui_hook): Delete.
8776         (gdb_init): Remove handling of deprecated_init_ui_hook.
8777         * interps.c (clear_interpreter_hooks): Remove handling of
8778         deprecated_init_ui_hook.
8779         * main.c (captured_main): Update comment.
8780
8781 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
8782
8783         * solib.c (_initialize_solib): Add "info dll" alias creation.
8784         * windows-nat.c (set_windows_aliases): Delete.
8785         (_initialize_windows_nat): Remove deprecated_init_ui_hook
8786         assignment.
8787         * NEWS: Add news entry about "info dll" now being available
8788         on all platforms.
8789
8790 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8791
8792         * ada-lang.c (value_assign_to_component): Reformat and improve
8793         documentation. Remove all trailing spaces.
8794
8795 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8796
8797         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8798         Stop counting inlined frames as soon as an out-of-line function
8799         is found.
8800
8801 2014-05-05  Pierre-Marie de Rodat  <derodat@adacore.com>
8802
8803         * dwarf2read.c (inherit_abstract_dies): Skip
8804         DW_TAG_GNU_call_site dies while inheriting children of an
8805         abstract DIE into a scope.
8806         (read_lexical_block_scope): Inherit abstract DIE's for
8807         lexical scopes.
8808
8809 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8810
8811         * ada-valprint.c (val_print_packed_array_elements): Delete
8812         variable "len".  Add a type-length check when comparing two
8813         consecutive elements of the array.  Use the element's actual
8814         length in call to value_contents_eq.
8815         * ada-lang.c (ada_value_primitive_packed_val): Always return
8816         a value whose type has been resolved.
8817
8818 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8819
8820         * ada-lang.c (ada_value_primitive_packed_val): Recompute
8821         BIT_SIZE and LEN if the size of the resolved type is smaller
8822         than BIT_SIZE * HOST_CHAR_BIT.
8823
8824 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8825
8826         * ada-lang.c (ada_value_primitive_packed_val): Use a more
8827         correct address in call to value_at.  Adjust call to
8828         value_address accordingly.
8829
8830 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8831
8832         * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8833         to print it.
8834
8835 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8836
8837         * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8838         * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8839         pinfo->valaddr.
8840         * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8841         * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8842         (resolve_dynamic_type_internal): Set pinfo.valaddr.
8843         Add handling of addr_stack->valaddr.
8844         (resolve_dynamic_type): Add "valaddr" parameter.
8845         Set pinfo.valaddr field.
8846         * ada-lang.c (ada_discrete_type_high_bound): Update call to
8847         resolve_dynamic_type.
8848         (ada_discrete_type_low_bound): Likewise.
8849         * findvar.c (default_read_var_value): Likewise.
8850         * value.c (value_from_contents_and_address): Likewise.
8851
8852 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8853
8854         * gdbtypes.c (resolve_dynamic_array): Use
8855         create_array_type_with_stride instead of create_array_type.
8856
8857 2015-04-30  DJ Delorie  <dj@redhat.com>
8858
8859         * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8860         rl78_decode_opcode
8861
8862 2015-04-29  Doug Evans  <dje@google.com>
8863
8864         PR python/18285
8865         * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8866         * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8867         EVAL_AVOID_SIDE_EFFECTS for xmethods.
8868         * extension-priv.h (struct extension_language_ops)
8869         <get_xmethod_result_type>: New member.
8870         * extension.c (get_xmethod_result_type): New function.
8871         * extension.h (get_xmethod_result_type): Declare.
8872         * python/py-xmethods.c (get_result_type_method_name): New static
8873         global.
8874         (py_get_result_type_method_name): Ditto.
8875         (gdbpy_get_xmethod_result_type): New function.
8876         (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8877         * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8878         * python/python.c (python_extension_ops): Add
8879         gdbpy_get_xmethod_result_type.
8880         * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8881         * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8882         xmethods.
8883         (value_x_unop): Ditto.
8884         * value.c (result_type_of_xmethod): New function.
8885         * value.h (result_type_of_xmethod): Declare.
8886
8887 2015-04-29  Gary Benson <gbenson@redhat.com>
8888
8889         * solib.c (solib_find_1): Allow fd argument to be NULL.
8890         (exec_file_find): Update comment.
8891         (solib_find): Likewise.
8892         * exec.c (exec_file_locate_attach): Use NULL as fd
8893         argument to exec_file_find to avoid having to close
8894         the opened file.
8895         * infrun.c (follow_exec): Likewise.
8896
8897 2015-04-28  Doug Evans  <dje@google.com>
8898
8899         PR python/18299
8900         * python/lib/gdb/printing.py (register_pretty_printer): Handle
8901         name or __name__ attributes.  Handle gdb module as first argument.
8902
8903 2015-04-28  Doug Evans  <dje@google.com>
8904
8905         PR python/18089
8906         * python/py-prettyprint.c (print_children): Verify result of children
8907         iterator.  Provide better error message.
8908         * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8909         * python/python.c (gdbpy_print_python_errors_p): New function.
8910
8911 2015-04-28  Doug Evans  <dje@google.com>
8912
8913         * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8914
8915 2015-04-28  Sasha Smundak  <asmundak@google.com>
8916
8917         * NEWS: Mention gdb.Type.optimized_out method.
8918         * python/py-type.c (typy_optimized_out):  New function.
8919
8920 2015-04-28  John Baldwin  <jhb@FreeBSD.org>
8921
8922         * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8923
8924 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8925
8926         * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8927         (initialize_utils): Move call of init_page_info() to ...
8928         * top.c (gdb_init): ... here.
8929
8930 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8931
8932         * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8933         (tui_sigwinch_handler): Still update our idea of
8934         the terminal's width and height even when TUI is not active.
8935
8936 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8937
8938         * utils.h (set_screen_width_and_height): Declare.
8939         * utils.c (set_screen_width_and_height): Define.
8940         * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8941
8942 2015-04-28  Gary Benson <gbenson@redhat.com>
8943
8944         * infrun.c (solist.h): New include.
8945         (follow_exec): Use exec_file_find to prefix execd_pathname
8946         with gdb_sysroot.
8947
8948 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8949
8950         * tui/tui-source.c (tui_set_source_content): Avoid calling
8951         strcpy() when offset is 0.
8952
8953 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8954
8955         PR gdb/18155
8956         * tui/tui-data.c (tui_free_window): Don't free the locator
8957         window when passed an SRC_WIN or a DISASSEM_WIN.
8958
8959 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8960
8961         * tui/tui-data.h (struct tui_win_element): Forward-declare.
8962         (tui_win_content): Move declaration.
8963         (struct tui_gen_win_info): Give 'content' field the
8964         type tui_win_content.
8965         * tui/tui-data.c (init_content_element): Remove redundant and
8966         erroneous casts.
8967         (tui_add_content_elements): Remove erroneous cast.
8968         * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8969         casts.
8970         (tui_get_begin_asm_address): Likewise.
8971         * tui/tui-regs.c (tui_show_registers): Likewise.
8972         (tui_show_register_group): Likewise.
8973         (tui_display_registers_from): Likewise.
8974         (tui_check_register_values): Likewise.
8975         * tui/tui-source.c (tui_set_source_content): Likewise.
8976         (tui_set_source_content_nil): Likewise.
8977         (tui_source_is_displayed): Likewise.
8978         * tui/tui-stack.c (tui_show_locator_content): Likewise.
8979         (tui_set_locator_fullname): Likewise.
8980         (tui_set_locator_info): Likewise.
8981         (tui_show_frame_info): Likewise.
8982         * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8983         (tui_show_source_line): Likewise.
8984         (tui_horizontal_source_scroll): Likewise.
8985         (tui_update_breakpoint_info): Likewise.
8986         (tui_set_exec_info_content): Likewise.
8987         (tui_show_exec_info_content): Likewise.
8988         (tui_alloc_source_buffer): Likewise.
8989         (tui_line_is_displayed): Likewise.
8990         (tui_addr_is_displayed): Likewise.
8991
8992 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8993
8994         * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8995         event if PL_FLAG_EXEC is set.
8996         [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8997         [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8998         (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8999         "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
9000         Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
9001
9002 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
9003
9004         * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
9005         [TDP_RFPPWAIT] New variable fbsd_pending_children.
9006         [TDP_RFPPWAIT] (fbsd_remember_child): New function.
9007         [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
9008         [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
9009         [PT_LWPINFO] (fbsd_wait): New function.
9010         [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
9011         [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
9012         [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
9013         [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
9014         [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
9015         [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
9016         [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
9017         [TDP_RFPPWAIT] (fbsd_post_attach): New function.
9018         (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
9019         "fbsd_wait".
9020         [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
9021         Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
9022         Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
9023         Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
9024         Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
9025         Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
9026         Set "to_post_attach" to "fbsd_post_attach".
9027
9028 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
9029
9030         * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
9031         (fbsd_find_memory_regions): Mark static.
9032         (fbsd_nat_add_target): New function.
9033         * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
9034         fbsd_pid_to_exec_file and fbsd_find_memory_regions.
9035         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
9036         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
9037         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
9038         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
9039
9040 2015-04-27  Gary Benson <gbenson@redhat.com>
9041
9042         * objfiles.c (allocate_objfile): Do not attempt to expand name
9043         if name is a "target:" filename.
9044         * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
9045         to load auto-load scripts for objfiles with "target:" filenames.
9046
9047 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9048
9049         * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
9050         (enum s390_vector_abi_kind): New enum.
9051         (struct gdbarch_tdep)<vector_abi>: New field.
9052         (s390_effective_inner_type): Add parameter min_size.  Stop
9053         unwrapping if the inner type is smaller than min_size.
9054         (s390_function_arg_float): Adjust call to
9055         s390_effective_inner_type.
9056         (s390_function_arg_vector): New function.
9057         (s390_function_arg_integer): Adjust comment.
9058         (struct s390_arg_state)<vr>: New field.
9059         (s390_handle_arg): Add parameter 'is_unnamed'.  Pass vector
9060         arguments according to vector ABI when appropriate.
9061         (s390_push_dummy_call): Initialize the argument state's field
9062         'vr'.  Adjust calls to s390_handle_arg.
9063         (s390_register_return_value): Handle vector return values.
9064         (s390_return_value): Apply the "register" return value convention
9065         to a vector when appropriate.
9066         (s390_gdbarch_init): Initialize tdep->vector_abi.
9067         * NEWS: Announce S390 vector ABI support.
9068
9069 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9070
9071         * s390-linux-tdep.c (s390_return_value_convention): Remove
9072         function.  Inline its logic...
9073         (s390_return_value): ...here.  Instead, move the handling of the
9074         "register" return value convention...
9075         (s390_register_return_value): ...here.  New function.
9076
9077 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9078
9079         * s390-linux-tdep.c
9080         (is_float_singleton): Remove function.  Move the "singleton" part
9081         of the logic...
9082         (s390_effective_inner_type): ...here.  New function.
9083         (is_float_like): Remove function.  Inline its logic...
9084         (s390_function_arg_float): ...here.
9085         (is_pointer_like, is_integer_like, is_struct_like): Remove
9086         functions.  Inline their logic...
9087         (s390_function_arg_integer): ...here.
9088         (s390_function_arg_pass_by_reference): Remove function.
9089         (extend_simple_arg): Remove function.
9090         (alignment_of): Remove function.
9091         (struct s390_arg_state): New structure.
9092         (s390_handle_arg): New function.
9093         (s390_push_dummy_call): Move parameter placement logic to the new
9094         function s390_handle_arg.  Call it for calculating the stack area
9095         sizes first, and again for actually writing the parameters.
9096
9097 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9098
9099         * s390-linux-tdep.c (is_power_of_two): Add comment.  Return
9100           false if the argument is zero.
9101
9102 2015-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
9103
9104         * ada-lang.c (template_to_static_fixed_type): Return input type
9105         when it is already fixed.  Cache the input type itself when not
9106         creating a static fixed copy.  Make it explicit that we never
9107         molestate the input type.
9108         * gdbtypes.c (resolve_dynamic_struct): Reset the
9109         TYPE_TARGET_TYPE field for resolved copies.
9110
9111 2015-04-27  Joel Brobecker  <brobecker@adacore.com>
9112
9113         * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
9114         (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
9115         (template_to_static_fixed_type): Call ada_check_typedef only
9116         when necessary.
9117
9118 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
9119
9120         * cli/cli-dump.c (srec_dump_command): Add internationalization
9121         mark ups.
9122         (ihex_dump_command): Likewise.
9123         (tekhex_dump_command): Likewise.
9124         (binary_dump_command): Likewise.
9125         (binary_append_command): Likewise.
9126
9127 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
9128
9129         * cli/cli-dump.c (verilog_cmdlist): New variable.
9130         (dump_verilog_memory): New function.
9131         (dump_verilog_value): New function.
9132         (verilog_dump_command): New function.
9133         (_initialize_cli_dump): Add new commands to support verilog dump
9134         format.
9135         * NEWS: Add entry for "dump verilog".
9136
9137 2015-04-24  Pierre-Marie de Rodat  <derodat@adacore.com>
9138
9139         * gdbtypes.c (print_gnat_stuff): Do not recurse on the
9140         descriptive type when there is none.
9141
9142 2015-04-23  Patrick Palka  <patrick@parcs.ath.cx>
9143
9144         * tui/tui-win.c (tui_async_resize_screen): Call
9145         rl_resize_terminal().
9146
9147 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
9148
9149         * windows-nat.c (handle_output_debug_string): Don't change
9150         current_event.dwThreadId.
9151         (get_windows_debug_event): Use thread_id, rather than relying on
9152         current_event.dwThreadId being changed.
9153
9154 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
9155
9156         * windows-nat.c (windows_continue): Report an error if
9157         ContinueDebugEvent() fails.
9158
9159 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
9160
9161         * windows-nat.c (windows_resume): Fix misspelling in debug output.
9162
9163 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
9164
9165         * windows-nat.c (get_windows_debug_event): Replace retval with
9166         thread_id throughout.  Update stale comment.
9167
9168 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
9169
9170         * windows-nat.c (get_windows_debug_event): Don't use ternary
9171         conditional operator.
9172
9173 2015-04-21  Pierre Muller  <muller@sourceware.org>
9174
9175         PR pascal/17815
9176         p-exp.y (yylex): Reorganize code to return the matched pattern
9177         for a field of this.
9178
9179 2015-04-21  Gary Benson <gbenson@redhat.com>
9180
9181         * common/fileio.h (fileio_to_host_openflags): New declaration.
9182         * common/fileio.c (fcntl.h): New include.
9183         (fileio_to_host_openflags): New function, factored out from...
9184         * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
9185         Single use updated.
9186
9187 2015-04-21  Kevin Buettner  <kevinb@redhat.com>
9188
9189         * rl78-tdep.c (RL78_SP_ADDR): Define.
9190         (opc_reg_to_gdb_regnum): New static function.
9191         (rl78_analyze_prologue): Recognize instructions forming slightly
9192         more interesting prologues.
9193
9194 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
9195
9196         Revert:
9197         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9198         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9199         TYPE_CODE_REF types so that they are not considered as dynamic
9200         depending on the referenced type.
9201         (resolve_dynamic_type_internal): Likewise.
9202
9203 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
9204
9205         Revert:
9206         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9207         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9208         "top_level" parameter.
9209         (resolve_dynamic_type_internal): Remove the unused "top_level"
9210         parameter.  Update call to is_dynamic_type_internal.
9211         (is_dynamic_type): Update call to is_dynamic_type_internal.
9212         (resolve_dynamic_range): Update call to
9213         resolve_dynamic_type_internal.
9214         (resolve_dynamic_union): Likewise.
9215         (resolve_dynamic_struct): Likewise.
9216         (resolve_dynamic_type): Likewise.
9217
9218 2015-04-19  Gabriel Krisman Bertazi  <gabriel@krisman.be>
9219
9220         * breakpoint.c (update_dprintf_command_list): Remove duplicated
9221         xmalloc.
9222
9223 2015-04-20  Thomas Schwinge  <thomas@codesourcery.com>
9224
9225         * reply_mig_hack.awk: Robustify parsing.
9226
9227         * reply_mig_hack.awk: Don't bother to declare an intermediate
9228         function pointer variable.
9229
9230 2015-04-17  Doug Evans  <dje@google.com>
9231
9232         * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
9233         to "exec_displacement" to avoid confusion with inner use of the name.
9234
9235 2015-04-17  Pedro Alves  <palves@redhat.com>
9236
9237         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
9238         if HW point of TYPE isn't supported.
9239
9240 2015-04-17  Yao Qi  <yao.qi@linaro.org>
9241             Pedro Alves  <palves@redhat.com>
9242
9243         * target.h (target_can_use_hardware_watchpoint): Update comments.
9244         Remove trailing ";".
9245
9246 2015-04-17  Gary Benson <gbenson@redhat.com>
9247
9248         * remote.c (remote_add_inferior): New argument try_open_exec.
9249         If nonzero, attempt to open the inferior's executable file as
9250         the main executable if no main executable is open already.
9251         All callers updated.
9252         * NEWS: Mention that GDB now supports automatic location and
9253         retrieval of executable + files from remote targets.
9254
9255 2015-04-17  Gary Benson <gbenson@redhat.com>
9256
9257         * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
9258         * remote.c (PACKET_qXfer_exec_file): Likewise.
9259         (remote_protocol_features): Register the
9260         "qXfer:exec-file:read" feature.
9261         (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
9262         (remote_pid_to_exec_file): New function.
9263         (init_remote_ops): Initialize to_pid_to_exec_file.
9264         (_initialize_remote): Register new "set/show remote
9265         pid-to-exec-file-packet" command.
9266         * NEWS: Announce new qXfer:exec-file:read packet.
9267
9268 2015-04-17  Gary Benson <gbenson@redhat.com>
9269
9270         * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
9271         New declaration.
9272         * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
9273         New function, factored out from...
9274         * linux-nat.c (linux_child_pid_to_exec_file): ...here.
9275
9276 2015-04-17  Gary Benson <gbenson@redhat.com>
9277
9278         * exec.c (solist.h): New include.
9279         (exec_file_locate_attach): Prefix absolute executable
9280         paths with gdb_sysroot if set.
9281         * NEWS: Mention that executable paths may be prepended
9282         with sysroot.
9283
9284 2015-04-17  Gary Benson <gbenson@redhat.com>
9285
9286         * solist.h (exec_file_find): New declaration.
9287         * solib.c (solib_find_1): New function, factored out from...
9288         (solib_find): ...here.
9289         (exec_file_find): New function.
9290
9291 2015-04-17  Gary Benson <gbenson@redhat.com>
9292
9293         * gdbcore.h (exec_file_locate_attach): New declaration.
9294         * exec.c (exec_file_locate_attach): New function, factored
9295         out from...
9296         * infcmd.c (attach_command_post_wait): ...here.
9297
9298 2015-04-17  Mike Frysinger  <vapier@gentoo.org>
9299
9300         * MAINTAINERS: Add myself for Blackfin/write-after-approval.
9301
9302 2015-04-16  Yao Qi  <yao.qi@linaro.org>
9303
9304         * infrun.c (maybe_software_singlestep): Declare.
9305         (displaced_step_fixup): Call maybe_software_singlestep.
9306
9307 2015-04-15  Doug Evans  <dje@google.com>
9308
9309         * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
9310
9311 2015-04-15  Doug Evans  <dje@google.com>
9312
9313         * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
9314
9315 2015-04-15  Simon Marchi  <simon.marchi@ericsson.com>
9316
9317         * python/lib/gdb/command/unwinders.py: Add parentheses.
9318
9319 2015-04-15  Yao Qi  <yao.qi@linaro.org>
9320
9321         * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
9322
9323 2015-04-15  Yao Qi  <yao.qi@linaro.org>
9324
9325         * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
9326
9327 2015-04-15  Yao Qi  <yao.qi@linaro.org>
9328
9329         * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
9330         dsc->insn_size instead of 4.
9331
9332 2015-04-14  Gary Benson <gbenson@redhat.com>
9333
9334         * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
9335         * minidebug.c (lzma_stat): Likewise.
9336         * solib-spu.c (spu_bfd_iovec_stat): Likewise.
9337         * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
9338
9339 2015-04-13  Stan Shebs  <stanshebs@google.com>
9340
9341         * MAINTAINERS: Update my email address.
9342
9343 2015-04-13  John Baldwin  <jhb@FreeBSD.org>
9344
9345         * amd64-tdep.c (amd64_target_description): New function.
9346         * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
9347         * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
9348         (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9349         x86 extended save area.
9350         (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9351         * amd64bsd-nat.h: Export amd64bsd_xsave_len.
9352         * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
9353         (_initialize_amd64fbsd_nat): Set "to_read_description" to
9354         "amd64fbsd_read_description".
9355         * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
9356         (amd64fbsd_supply_xstateregset): New function.
9357         (amd64fbsd_collect_xstateregset): New function.
9358         Add "amd64fbsd_xstateregset".
9359         (amd64fbsd_iterate_over_regset_sections): New function.
9360         (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
9361         "I386_FBSD_XSAVE_XCR0_OFFSET".
9362         Add "iterate_over_regset_sections" gdbarch method.
9363         Add "core_read_description" gdbarch method.
9364         * i386-tdep.c (i386_target_description): New function.
9365         * i386-tdep.h: Export i386_target_description and tdesc_i386.
9366         * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
9367         (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9368         x86 extended save area.
9369         (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9370         * i386bsd-nat.h: Export i386bsd_xsave_len.
9371         * i386fbsd-nat.c (i386fbsd_read_description): New function.
9372         (_initialize_i386fbsd_nat): Set "to_read_description" to
9373         "i386fbsd_read_description".
9374         * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
9375         (i386fbsd_core_read_description): New function.
9376         (i386fbsd_supply_xstateregset): New function.
9377         (i386fbsd_collect_xstateregset): New function.
9378         Add "i386fbsd_xstateregset".
9379         (i386fbsd_iterate_over_regset_sections): New function.
9380         (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
9381         "I386_FBSD_XSAVE_XCR0_OFFSET".
9382         Add "iterate_over_regset_sections" gdbarch method.
9383         Add "core_read_description" gdbarch method.
9384         * i386fbsd-tdep.h: New file.
9385
9386 2015-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
9387
9388         * NEWS (Changes since GDB 7.9): Add removed -xdb.
9389         * breakpoint.c (command_line_is_silent): Remove xdb_commands
9390         conditional.
9391         (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
9392         and lb.
9393         * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
9394         va.
9395         * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
9396         conditional.
9397         * defs.h (xdb_commands): Remove declaration.
9398         * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
9399         * guile/scm-cmd.c (command_classes): Remove xdb from comment.
9400         * infcmd.c (run_no_args_command, go_command): Remove.
9401         (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
9402         * infrun.c (xdb_handle_command): Remove.
9403         (_initialize_infrun): Remove xdb_commands for lz and z.
9404         * main.c (xdb_commands): Remove variable.
9405         (captured_main): Remove "xdb" from long_options.
9406         (print_gdb_help): Remove --xdb from help.
9407         * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
9408         * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
9409         * stack.c (backtrace_full_command, args_plus_locals_info)
9410         (current_frame_command): Remove.
9411         (_initialize_stack): Remove xdb_commands for t, T and l.
9412         * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
9413         * thread.c (_initialize_thread): Remove xdb_commands condition.
9414         * tui/tui-layout.c (tui_toggle_layout_command)
9415         (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
9416         (_initialize_tui_layout): Remove xdb_commands for td and ts.
9417         * tui/tui-regs.c (tui_scroll_regs_forward_command)
9418         (tui_scroll_regs_backward_command): Remove.
9419         (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
9420         * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
9421         (_initialize_tui_win): Remove xdb_commands for U and w.
9422         * utils.c (pagination_on_command, pagination_off_command): Remove.
9423         (initialize_utils): Remove xdb_commands for am and sm.
9424
9425 2015-04-10  Pedro Alves  <palves@redhat.com>
9426
9427         * infrun.c (displaced_step_fixup): Switch to the event ptid
9428         earlier.  If the thread stopped for a watchpoint and the
9429         target/arch has non-continuable watchpoints, cancel the displaced
9430         step.
9431         (resume): Don't start a displaced step if in-line step-over info
9432         is valid.
9433
9434 2015-04-10  Pedro Alves  <palves@redhat.com>
9435
9436         * infrun.c (displaced_step_in_progress): New function.
9437         (do_target_resume): Advise target to report all signals if
9438         displaced stepping.
9439
9440 2015-04-10  Pedro Alves  <palves@redhat.com>
9441
9442         PR gdb/18216
9443         * infrun.c (process_event_stop_test): Don't assume a step-resume
9444         is set if tp->stepped_breakpoint is true.
9445
9446 2015-04-10  Yao Qi  <yao.qi@linaro.org>
9447
9448         * arm-tdep.c (install_alu_reg): Update comment.
9449         (thumb_copy_alu_reg): Remove local variable rn.  Update
9450         debugging message.  Use r2 instead of r1 in the modified
9451         instruction.
9452
9453 2015-04-10  Pedro Alves  <palves@redhat.com>
9454
9455         PR gdb/13858
9456         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
9457         linux_displaced_step_location as gdbarch_displaced_step_location
9458         hook.
9459         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
9460         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9461         * linux-tdep.c (linux_displaced_step_location): New function,
9462         based on ppc_linux_displaced_step_location.
9463         * linux-tdep.h (linux_displaced_step_location): New declaration.
9464         * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
9465         (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
9466         Delete.
9467         (ppc_linux_init_abi): Install linux_displaced_step_location as
9468         gdbarch_displaced_step_location hook, even without Cell/B.E..
9469         (_initialize_ppc_linux_tdep): Don't install
9470         ppc_linux_inferior_created as inferior_created observer.
9471         * s390-linux-tdep.c (s390_gdbarch_init): Install
9472         linux_displaced_step_location as gdbarch_displaced_step_location
9473         hook.
9474
9475 2015-04-09  Gary Benson <gbenson@redhat.com>
9476
9477         * common/common-remote-fileio.h: Rename to...
9478         * common/fileio.h: ...this.  Update all references.
9479         (remote_fileio_to_fio_error): Rename to...
9480         (host_to_fileio_error): ...this.
9481         (remote_fileio_to_be): Rename to...
9482         (host_to_bigendian): ...this.  Update all callers.
9483         (remote_fileio_to_fio_uint): Rename to...
9484         (host_to_fileio_uint): ...this.  Update all callers.
9485         (remote_fileio_to_fio_time): Rename to...
9486         (host_to_fileio_time): ...this.  Update all callers.
9487         (remote_fileio_to_fio_stat): Rename to...
9488         (host_to_fileio_stat): ...this.
9489         Update all references.
9490         * common/common-remote-fileio.c: Rename to...
9491         * common/fileio.c: ...this.  Update all references.
9492         (remote_fileio_to_fio_error): Rename to...
9493         (host_to_fileio_error): ...this.  Update all callers.
9494         (remote_fileio_mode_to_target): Rename to...
9495         (fileio_mode_pack): ...this.  Update all callers.
9496         (remote_fileio_to_fio_mode): Rename to...
9497         (host_to_fileio_mode): ...this.  Update all callers.
9498         (remote_fileio_to_fio_ulong): Rename to...
9499         (host_to_fileio_ulong): ...this.  Update all callers.
9500         (remote_fileio_to_fio_stat): Rename to...
9501         (host_to_fileio_stat): ...this.  Update all callers.
9502
9503 2015-04-09  Andy Wingo  <wingo@igalia.com>
9504
9505         * guile/scm-frame.c (gdbscm_frame_read_register): New function.
9506         (frame_functions): Bind gdbscm_frame_read_register to
9507         frame-read-register.
9508         * guile/lib/gdb.scm (frame-read-register): Export.
9509
9510 2015-04-09  Gary Benson <gbenson@redhat.com>
9511
9512         * common/common-remote-fileio.h (remote_fileio_to_fio_error):
9513         New declaration.
9514         * common/common-remote-fileio.c (remote_fileio_to_fio_error):
9515         New function, factored out the named functions below.
9516         * inf-child.c (gdb/fileio.h): Remove include.
9517         (common-remote-fileio.h): New include.
9518         (inf_child_errno_to_fileio_error): Remove function.  Update
9519         all callers to use remote_fileio_to_fio_error.
9520         * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
9521
9522 2015-04-09  Andy Wingo  <wingo@igalia.com>
9523
9524         * MAINTAINERS (Write After Approval): Add Andy Wingo.
9525
9526 2015-04-09  H.J. Lu  <hongjiu.lu@intel.com>
9527
9528         * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
9529         Replace $zlibdir with $ZLIBDIR in LDFLAGS.
9530         * configure: Regenerated.
9531
9532 2015-04-09  Pedro Alves  <palves@redhat.com>
9533
9534         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
9535         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
9536         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
9537         * gnulib/import/Makefile.am: Update.
9538         * gnulib/import/Makefile.in: Update.
9539         * gnulib/import/m4/gnulib-cache.m4: Update.
9540         * gnulib/import/m4/gnulib-comp.m4: Update.
9541         * gnulib/import/m4/strtok_r.m4: New file.
9542         * gnulib/import/strtok_r.c: New file.
9543
9544 2015-04-09  Pedro Alves  <palves@redhat.com>
9545
9546         * gnulib/update-gnulib.sh (aclocal version check): Filter out
9547         "called too early to check prototype".
9548
9549 2015-04-08  Sergio Durigan Junior  <sergiodj@redhat.com>
9550
9551         PR python/16699
9552         * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
9553         use a caching mechanism.  Adjust comments and code to reflect
9554         that.  Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
9555         (cmdpy_completer_handle_brkchars): Adjust call to
9556         cmdpy_completer_helper.  Call Py_XDECREF for 'resultobj'.
9557         (cmdpy_completer): Likewise.
9558
9559 2015-04-08  Yao Qi  <yao.qi@linaro.org>
9560
9561         * spu-tdep.c (spu_gdbarch_init): Don't call
9562         set_gdbarch_cannot_step_breakpoint.
9563
9564 2015-04-07  Sergio Durigan Junior  <sergiodj@redhat.com>
9565
9566         * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
9567
9568 2015-04-07  Pedro Alves  <palves@redhat.com>
9569
9570         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
9571         (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
9572         (delete_exited_threads): New declaration.
9573         * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
9574         * linux-nat.c (linux_nat_update_thread_list): New function.
9575         (linux_nat_add_target): Install it.
9576         * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
9577         * thread.c (prune_threads): Use ALL_THREADS_SAFE.
9578         (delete_exited_threads): New function.
9579
9580 2015-04-07  Pedro Alves  <pedro@codesourcery.com>
9581
9582         * infrun.c (resume) <displaced stepping debug output>: Get the
9583         leader thread's regcache, not resume_ptid's.
9584
9585 2015-04-06  Doug Evans  <xdje42@gmail.com>
9586
9587         * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
9588         VAR_DOMAIN.
9589         (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
9590         Include symbol domain in debugging output.
9591
9592 2015-04-06  Pedro Alves  <palves@redhat.com>
9593             Bernd Edlinger  <bernd.edlinger@hotmail.de>
9594
9595         * configure.ac: Remove the mingw32-specific stub-termcap.o
9596         fallback, and instead fallback to the stub termcap on all hosts.
9597         * configure: Regenerate.
9598         * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
9599         symbols.
9600
9601 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9602
9603         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9604         "top_level" parameter.
9605         (resolve_dynamic_type_internal): Remove the unused "top_level"
9606         parameter.  Update call to is_dynamic_type_internal.
9607         (is_dynamic_type): Update call to is_dynamic_type_internal.
9608         (resolve_dynamic_range): Update call to
9609         resolve_dynamic_type_internal.
9610         (resolve_dynamic_union): Likewise.
9611         (resolve_dynamic_struct): Likewise.
9612         (resolve_dynamic_type): Likewise.
9613
9614 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9615
9616         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9617         TYPE_CODE_REF types so that they are not considered as dynamic
9618         depending on the referenced type.
9619         (resolve_dynamic_type_internal): Likewise.
9620
9621 2015-04-02  H.J. Lu  <hongjiu.lu@intel.com>
9622
9623         * Makefile.in (top_srcdir): New.
9624         * configure: Regenerated.
9625
9626 2015-04-02  Gary Benson <gbenson@redhat.com>
9627
9628         * NEWS: Announce the new default sysroot of "target:".
9629
9630 2015-04-02  Gary Benson <gbenson@redhat.com>
9631
9632         * main.c (captured_main): Set gdb_sysroot to "target:"
9633         if not otherwise set.
9634
9635 2015-04-02  Gary Benson <gbenson@redhat.com>
9636
9637         * exec.c (exec_file_attach): Support "target:" filenames.
9638
9639 2015-04-02  Gary Benson <gbenson@redhat.com>
9640
9641         * solib.c (solib_find): Strip "target:" prefix from sysroot
9642         if accessing local files.
9643
9644 2015-04-02  Gary Benson <gbenson@redhat.com>
9645
9646         * symfile.c (symfile_bfd_open): Reorder to remove duplicated
9647         checks and error messages.
9648
9649 2015-04-02  Gary Benson <gbenson@redhat.com>
9650
9651         * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
9652         (remote_filename_p): Remove declaration.
9653         (remote_bfd_open): Likewise.
9654         * remote.c (remote_bfd_iovec_open): Remove function.
9655         (remote_bfd_iovec_close): Likewise.
9656         (remote_bfd_iovec_pread): Likewise.
9657         (remote_bfd_iovec_stat): Likewise.
9658         (remote_filename_p): Likewise.
9659         (remote_bfd_open): Likewise.
9660         * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
9661         * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
9662         (gdb_bfd_open_maybe_remote): Remove function.
9663         (symfile_bfd_open):  Replace remote filename check with
9664         target filename check.
9665         (reread_symbols): Use gdb_bfd_open.
9666         * build-id.c (gdbcore.h): New include.
9667         (build_id_to_debug_bfd): Use gdb_bfd_open.
9668         * infcmd.c (attach_command_post_wait): Remove remote filename
9669         check.
9670         * solib.c (solib_find): Replace remote-specific handling with
9671         target-specific handling.  Update comments where necessary.
9672         (solib_bfd_open): Replace remote-specific handling with
9673         target-specific handling.
9674         (gdb_sysroot_changed): New function.
9675         (_initialize_solib): Call the above when gdb_sysroot changes.
9676         * windows-tdep.c (gdbcore.h): New include.
9677         (windows_xfer_shared_library): Use gdb_bfd_open.
9678
9679 2015-04-02  Gary Benson <gbenson@redhat.com>
9680
9681         * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
9682         (is_target_filename): New declaration.
9683         (gdb_bfd_has_target_filename): Likewise.
9684         (gdb_bfd_open): Update documentation comment.
9685         * gdb_bfd.c (target.h): New include.
9686         (gdb/fileio.h): Likewise.
9687         (is_target_filename): New function.
9688         (gdb_bfd_has_target_filename): Likewise.
9689         (fileio_errno_to_host): Likewise.
9690         (gdb_bfd_iovec_fileio_open): Likewise.
9691         (gdb_bfd_iovec_fileio_pread): Likewise.
9692         (gdb_bfd_iovec_fileio_close): Likewise.
9693         (gdb_bfd_iovec_fileio_fstat): Likewise.
9694         (gdb_bfd_open): Use target fileio to access paths prefixed
9695         with "target:" where necessary.
9696
9697 2015-04-02  Gary Benson <gbenson@redhat.com>
9698
9699         * target.h (struct target_ops) <to_filesystem_is_local>:
9700         New field.
9701         (target_filesystem_is_local): New macro.
9702         * target-delegates.c: Regenerate.
9703         * remote.c (remote_filesystem_is_local): New function.
9704         (init_remote_ops): Initialize to_filesystem_is_local.
9705
9706 2015-04-02  Gary Benson <gbenson@redhat.com>
9707
9708         * target.h (struct target_ops) <to_fileio_fstat>: New field.
9709         (target_fileio_fstat): New declaration.
9710         * target.c (target_fileio_fstat): New function.
9711         * inf-child.c (inf_child_fileio_fstat): Likewise.
9712         (inf_child_target): Initialize to_fileio_fstat.
9713         * remote.c (init_remote_ops): Likewise.
9714
9715 2015-04-01  Sasha Smundak  <asmundak@google.com>
9716
9717         * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
9718         (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
9719         (py-unwind.o): New recipe.
9720         * NEWS: mention Python frame unwinding.
9721         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
9722         gdb/unwinder.py and gdb/command/unwinder.py
9723         * python/lib/gdb/__init__.py (packages): Add frame_unwinders
9724         list.
9725         (execute_unwinders): New function.
9726         * python/lib/gdb/command/unwinders.py: New file.
9727         * python/lib/gdb/unwinder.py: New file.
9728         * python/py-objfile.c (objfile_object): Add frame_unwinders field.
9729         (objfpy_dealloc): Decrement frame_unwinders reference count.
9730         (objfpy_initialize): Create frame_unwinders list.
9731         (objfpy_get_frame_unwinders): New function.
9732         (objfpy_set_frame_unwinders): Ditto.
9733         (objfile_getset): Add frame_unwinders attribute to Objfile.
9734         * python/py-progspace.c (pspace_object): Add frame_unwinders field.
9735         (pspy_dealloc): Decrement frame_unwinders reference count.
9736         (pspy_initialize): Create frame_unwinders list.
9737         (pspy_get_frame_unwinders): New function.
9738         (pspy_set_frame_unwinders): Ditto.
9739         (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
9740         * python/py-unwind.c: New file.
9741         * python/python-internal.h (pspy_get_name_unwinders): New prototype.
9742         (objpy_get_frame_unwinders): New prototype.
9743         (gdbpy_initialize_unwind): New prototype.
9744         * python/python.c (gdbpy_apply_type_printers): Call
9745         gdbpy_initialize_unwind.
9746
9747 2015-04-01  Pedro Alves  <palves@redhat.com>
9748
9749         * infrun.c (resume): Check currently_stepping after clearing
9750         stepped_breakpoint, not before.
9751
9752 2015-04-01  Pedro Alves  <palves@redhat.com>
9753
9754         * infrun.c (print_target_wait_results): Print all the ptid
9755         elements.
9756
9757 2015-04-01  Pedro Alves  <palves@redhat.com>
9758
9759         * infrun.c (keep_going): Also discard cleanups if inserting
9760         breakpoints fails.
9761
9762 2015-04-01  Pedro Alves  <palves@redhat.com>
9763
9764         * infrun.c (wait_for_inferior): Install the
9765         finish_thread_state_cleanup cleanup across the whole function, not
9766         just around handle_inferior_event.
9767
9768 2015-04-01  Pedro Alves  <palves@redhat.com>
9769
9770         * infrun.c (resume) <step past permanent breakpoint>: Use
9771         do_target_resume.
9772
9773 2015-04-01  Pedro Alves  <palves@redhat.com>
9774
9775         * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9776
9777 2015-04-01  Pierre-Marie de Rodat  <derodat@adacore.com>
9778
9779         * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9780
9781 2015-04-01  Pedro Alves  <palves@redhat.com>
9782
9783         * linux-thread-db.c (record_thread): Readd the thread to gdb's
9784         list if it was marked exited.
9785
9786 2015-04-01  H.J. Lu  <hongjiu.lu@intel.com>
9787
9788         * configure: Regenerated.
9789
9790 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
9791             Jan Kratochvil  <jan.kratochvil@redhat.com>
9792             Oleg Nesterov  <oleg@redhat.com>
9793
9794         PR corefiles/16092
9795         * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9796         New enum identifying the various options of the coredump_filter
9797         file.
9798         (struct smaps_vmflags): New struct.
9799         (use_coredump_filter): New variable.
9800         (decode_vmflags): New function.
9801         (mapping_is_anonymous_p): Likewise.
9802         (dump_mapping_p): Likewise.
9803         (linux_find_memory_regions_full): New variables
9804         'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9805         Removed variable 'modified'.  Read /proc/<PID>/smaps file; improve
9806         parsing of its information.  Implement memory mapping filtering
9807         based on its contents.
9808         (show_use_coredump_filter): New function.
9809         (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9810         * NEWS: Mention the possibility of using the
9811         '/proc/PID/coredump_filter' file when generating a corefile.
9812         Mention new command 'set use-coredump-filter'.
9813
9814 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
9815
9816         * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9817         read_memory_unsigned_integer.
9818
9819 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
9820
9821         * Makefile.in (ZLIB): New.
9822         (ZLIBINC): Likewise.
9823         (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9824         (CLIBS): Add $(ZLIB).
9825         * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9826         Add -lz to LIBS.
9827         * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9828         * top.c (print_gdb_configuration): Remove --with-zlib and
9829         --without-zlib.
9830         * config.in: Regenerated.
9831         * configure: Likewise.
9832
9833 2015-03-31  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9834
9835         * NEWS: Mention info os cpus support.
9836         * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9837         (struct osdata_type): Add cpus entry, reorder the entries in
9838         alphabetical order.
9839
9840 2015-03-31  Matthias Klose  <doko@ubuntu.com>
9841
9842         * compile/compile.c (compile_to_object): Allow triplets with or
9843         without vendor set.
9844
9845 2015-03-30  Doug Evans  <dje@google.com>
9846
9847         PR c++/18141
9848         * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9849         klass in VAR_DOMAIN.
9850
9851 2015-03-30  Gary Benson <gbenson@redhat.com>
9852
9853         * remote.c (remote_mourn_1): Remove function.  Update all callers
9854         to use remote_mourn.
9855         (extended_remote_mourn_1): Remove function.  Update all callers
9856         to use extended_remote_mourn.
9857         (extended_remote_attach_1): Remove function.  Update all callers
9858         to use extended_remote_attach.
9859
9860 2015-03-28  James Bowman  <james.bowman@ftdichip.com>
9861
9862         * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9863         (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9864         (ALLDEPFILES): Add ft32-tdep.c.
9865         * configure.tgt: Add FT32 entry.
9866         * ft32-tdep.c: New file, FT32 target-dependent code.
9867         * ft32-tdep.h: New file, FT32 target-dependent code.
9868
9869 2015-03-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
9870
9871         Revert:
9872         2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9873         Code cleanup.
9874         * printcmd.c (print_command_1): Move expr variable scope.
9875
9876 2015-03-27  Joel Brobecker  <brobecker@adacore.com>
9877
9878         * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9879
9880 2015-03-27  Andrzej Kaczmarek  <andrzej.kaczmarek@tieto.com>
9881
9882         * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9883         sections.
9884
9885 2015-03-26  Joel Brobecker  <brobecker@adacore.com>
9886
9887         * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9888         exception raised while parsing the probe arguments.
9889         Force parsing to be done using the C language parser.
9890         * expression.h (parse_expression_with_language): Declare.
9891         * parse.c (parse_expression_with_language): New function.
9892
9893 2015-03-26  Jon Turney  <jon.turney@dronecode.org.uk>
9894
9895         * MAINTAINERS (Write After Approval): Add "Jon Turney".
9896
9897 2015-03-26  Andy Wingo  <wingo@igalia.com>
9898
9899         PR symtab/18148
9900         * dwarf2read.c (struct partial_die_info): Add has_const_value
9901         member.
9902         (add_partial_symbol): Don't punt on symbols that have const_value
9903         attributes.
9904         (read_partial_die): Detect DW_AT_const_value.
9905
9906 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9907
9908         Code cleanup.
9909         * printcmd.c (print_command_1): Move expr variable scope.
9910
9911 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9912
9913         Code cleanup.
9914         * printcmd.c (validate_format): Make the parameter cmdname const.
9915
9916 2015-03-26  Don Breazeal  <donb@codesourcery.com>
9917
9918         * remote.c (_initialize_remote): Update comment.
9919
9920 2015-03-26  Pedro Alves  <palves@redhat.com>
9921             Jon TURNEY  <jon.turney@dronecode.org.uk>
9922
9923         * coffread.c (coff_symfile_read): When constructing the name of an
9924         import stub symbol from import symbol for amd64, only skip the
9925         char after _imp_ if the target is underscored (like i386) and the
9926         char is indeed the target's leading char.
9927
9928 2015-03-25  Pedro Alves  <palves@redhat.com>
9929
9930         * target.h <to_async>: Replace 'callback' and 'context' parameters
9931         with boolean 'enable' parameter.
9932         (target_async): Replace CALLBACK and CONTEXT parameters with
9933         boolean ENABLE parameter.
9934         * inf-loop.c (inferior_event_handler): Adjust.
9935         * linux-nat.c (linux_nat_attach, linux_nat_resume)
9936         (linux_nat_resume): Adjust.
9937         (async_client_callback, async_client_context): Delete.
9938         (handle_target_event): Call inferior_event_handler directly.
9939         (linux_nat_async): Replace 'callback' and 'context' parameters
9940         with boolean 'enable' parameter.  Adjust.  Remove references to
9941         async_client_callback and async_client_context.
9942         (linux_nat_close): Adjust.
9943         * record-btrace.c (record_btrace_async): Replace 'callback' and
9944         'context' parameters with boolean 'enable' parameter.  Adjust.
9945         (record_btrace_resume): Adjust.
9946         * record-full.c (record_full_async): Replace 'callback' and
9947         'context' parameters with boolean 'enable' parameter.  Adjust.
9948         (record_full_resume, record_full_core_resume): Adjust.
9949         * remote.c (struct remote_state) <async_client_callback,
9950         async_client_context>: Delete fields.
9951         (remote_start_remote, extended_remote_attach_1, remote_resume)
9952         (extended_remote_create_inferior): Adjust.
9953         (remote_async_serial_handler): Call inferior_event_handler
9954         directly.
9955         (remote_async): Replace 'callback' and 'context' parameters with
9956         boolean 'enable' parameter.  Adjust.
9957         * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9958         Adjust.
9959         * target-delegates.c: Regenerate.
9960
9961 2015-03-25  Gary Benson <gbenson@redhat.com>
9962             Pedro Alves  <palves@redhat.com>
9963
9964         * target.c (fileio_ft_t): New typedef, define object vector.
9965         (fileio_fhandles): New static variable.
9966         (is_closed_fileio_fh): New macro.
9967         (lowest_closed_fd): New static variable.
9968         (acquire_fileio_fd): New function.
9969         (release_fileio_fd): Likewise.
9970         (fileio_fd_to_fh): New macro.
9971         (target_fileio_open): Wrap the file descriptor on success.
9972         (target_fileio_pwrite): Updated to use wrapped file descriptor.
9973         (target_fileio_pread): Likewise.
9974         (target_fileio_close): Likewise.
9975
9976 2015-03-24  Pedro Alves  <palves@redhat.com>
9977
9978         * thread.c (thread_apply_all_command): Take exited threads into
9979         account.
9980
9981 2015-03-24  Pedro Alves  <palves@redhat.com>
9982
9983         * infrun.c (resume, proceed): Mention
9984         switch_back_to_stepped_thread, not switch_back_to_stepping.
9985
9986 2015-03-24  Pedro Alves  <palves@redhat.com>
9987
9988         * infrun.c (user_visible_resume_ptid): Rewrite going from
9989         most-locked to unlocked instead of the opposite.  Move comment ...
9990         * infrun.h (user_visible_resume_ptid): ... here.
9991
9992 2015-03-24  Pedro Alves  <palves@redhat.com>
9993
9994         * linux-nat.c (linux_nat_resume): Output debug logs before trying
9995         to resume the event lwp.  Use the lwp's ptid instead of the passed
9996         in (maybe wildcard) ptid.
9997         (stop_wait_callback): Tweak debug log output.
9998         (check_stopped_by_breakpoint): Tweak debug log output.  Also dump
9999         TRAP_TRACE.
10000         (linux_nat_filter_event): In debug output, distinguish a
10001         resume_stop SIGSTOP from a delayed SIGSTOP.  Output debug logs
10002         before trying to resume the lwp.
10003
10004 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
10005
10006         * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
10007         pointer indirection.
10008         * gdbtypes.c (get_dyn_prop): Adjust, following change above.
10009         (add_dyn_prop, copy_dynamic_prop_list): Likewise.
10010
10011 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
10012
10013         * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
10014         Renames DYN_ATTR_DATA_LOCATION.
10015         (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
10016         DYN_ATTR_DATA_LOCATION.
10017         * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
10018         instead of DYN_ATTR_DATA_LOCATION.
10019
10020 2015-03-24  Pedro Alves  <palves@redhat.com>
10021
10022         * breakpoint.c (until_break_command): Adjust call to proceed.
10023         * gdbthread.h (struct thread_control_state) <stepping_command>:
10024         New field.
10025         * infcall.c (run_inferior_call): Adjust call to proceed.
10026         * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
10027         Adjust calls to proceed.
10028         (set_step_frame): Set the current thread's step_start_function
10029         here.
10030         (step_once): Adjust calls to proceed.
10031         (jump_command, signal_command, until_next_command)
10032         (finish_backward, finish_forward, proceed_after_attach_callback)
10033         (attach_command_post_wait): Adjust calls to proceed.
10034         * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
10035         (do_target_resume): New function, factored out from ...
10036         (resume): ... here.  Remove 'step' parameter.  Instead, check
10037         currently_stepping to determine whether the thread should be
10038         single-stepped.
10039         (proceed): Remove 'step' parameter and don't set the thread's
10040         step_start_function here.  Adjust call to 'resume'.
10041         (handle_inferior_event): Adjust calls to 'resume'.
10042         (switch_back_to_stepped_thread): Use do_target_resume instead of
10043         'resume'.
10044         (keep_going): Adjust calls to 'resume'.
10045         * infrun.h (proceed): Remove 'step' parameter.
10046         (resume): Likewise.
10047         * windows-nat.c (do_initial_windows_stuff): Adjust call to
10048         'resume'.
10049         * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
10050
10051 2015-03-24  Pedro Alves  <palves@redhat.com>
10052
10053         * gdbthread.h (struct thread_control_state) <stepping_command>:
10054         New field.
10055         * infcmd.c (step_once): Pass step=1 to clear_proceed_status.  Set
10056         the thread's stepping_command field.
10057         * infrun.c (resume): Check the thread's stepping_command flag to
10058         determine which threads should be resumed.  Rename 'entry_step'
10059         local to user_step.
10060         (clear_proceed_status_thread): Clear 'stepping_command'.
10061         (schedlock_applies): Change parameter type to struct thread_info
10062         pointer.  Adjust.
10063         (find_thread_needs_step_over): Remove 'step' parameter.  Adjust.
10064         (switch_back_to_stepped_thread): Adjust calls to
10065         'schedlock_applies'.
10066         (_initialize_infrun): Adjust "set scheduler-locking step" help.
10067
10068 2015-03-24  Pedro Alves  <palves@redhat.com>
10069
10070         * infrun.c (step_start_function): Delete and ...
10071         * gdbthread.h (struct thread_control_state) <step_start_function>:
10072         ... now a field here.
10073         * infrun.c (clear_proceed_status_thread): Clear the thread's
10074         step_start_function.
10075         (proceed, process_event_stop_test, print_stop_event): Adjust.
10076
10077 2015-03-24  Pedro Alves  <palves@redhat.com>
10078
10079         * infrun.c (proceed): No longer handle negative step.
10080
10081 2015-03-24  Gary Benson  <gbenson@redhat.com>
10082
10083         * nat/x86-linux.h (x86_linux_new_thread): New declaration.
10084         (x86_linux_prepare_to_resume): Likewise.
10085         * x86-linux-nat.c (x86_linux_new_thread):
10086         Moved to nat/x86-linux.c.
10087         (x86_linux_prepare_to_resume): Likewise.
10088         * nat/x86-linux.c (x86_linux_new_thread): New function.
10089         (x86_linux_prepare_to_resume): Likewise.
10090
10091 2015-03-24  Gary Benson  <gbenson@redhat.com>
10092
10093         * nat/x86-linux-dregs.h: New file.
10094         * nat/x86-linux-dregs.c: Likewise.
10095         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
10096         (x86-linux-dregs.o): New rule.
10097         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
10098         * config/i386/linux64.mh (NATDEPFILES): Likewise.
10099         * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
10100         (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10101         (x86_linux_dr_get): Likewise.
10102         (x86_linux_dr_set): Likewise.
10103         (x86_linux_dr_get_addr): Likewise.
10104         (x86_linux_dr_get_control): Likewise.
10105         (x86_linux_dr_get_status): Likewise.
10106         (update_debug_registers_callback): Likewise.
10107         (x86_linux_dr_set_control): Likewise.
10108         (x86_linux_dr_set_addr): Likewise.
10109         (x86_linux_update_debug_registers): Likewise.
10110
10111 2015-03-24  Gary Benson  <gbenson@redhat.com>
10112
10113         * x86-linux-nat.c (x86_linux_update_debug_registers):
10114         New function, factored out from...
10115         (x86_linux_prepare_to_resume): ...this.
10116
10117 2015-03-24  Gary Benson  <gbenson@redhat.com>
10118
10119         * x86-linux-nat.c (x86_linux_dr_get): Update comments.
10120         (x86_linux_dr_set): Likewise.
10121         (x86_linux_dr_get_addr): Likewise.
10122         (x86_linux_dr_get_control): Likewise.
10123         (x86_linux_dr_get_status): Likewise.
10124         (update_debug_registers_callback): Likewise.
10125         (x86_linux_dr_set_control): Likewise.
10126         (x86_linux_dr_set_addr): Likewise.
10127         (x86_linux_prepare_to_resume): Likewise.
10128         (x86_linux_new_thread): Likewise.
10129
10130 2015-03-24  Gary Benson  <gbenson@redhat.com>
10131
10132         * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
10133         (x86_linux_new_thread): Rename argument.
10134
10135 2015-03-24  Gary Benson  <gbenson@redhat.com>
10136
10137         * nat/x86-linux.h: New file.
10138         * nat/x86-linux.c: Likewise.
10139         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
10140         (x86-linux.o): New rule.
10141         * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
10142         * config/i386/linux64.mh (NATDEPFILES): Likewise.
10143         * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
10144         (lwp_set_arch_private_info): New declaration.
10145         (lwp_arch_private_info): Likewise.
10146         * linux-nat.c (lwp_set_arch_private_info): New function.
10147         (lwp_arch_private_info): Likewise.
10148         * x86-linux-nat.c: Include nat/x86-linux.h.
10149         (arch_lwp_info): Removed structure.
10150         (update_debug_registers_callback):
10151         Use lwp_set_debug_registers_changed.
10152         (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10153         and lwp_set_debug_registers_changed.
10154         (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10155
10156 2015-03-24  Gary Benson  <gbenson@redhat.com>
10157
10158         * nat/linux-nat.h (ptid_of_lwp): New declaration.
10159         (lwp_is_stopped): Likewise.
10160         (lwp_stop_reason): Likewise.
10161         * linux-nat.c (ptid_of_lwp): New function.
10162         (lwp_is_stopped): Likewise.
10163         (lwp_is_stopped_by_watchpoint): Likewise.
10164         * x86-linux-nat.c (update_debug_registers_callback):
10165         Use lwp_is_stopped.
10166         (x86_linux_prepare_to_resume): Use ptid_of_lwp and
10167         lwp_stop_reason.
10168
10169 2015-03-24  Gary Benson  <gbenson@redhat.com>
10170
10171         * linux-nat.h (linux_stop_lwp): Move declaration to...
10172         * nat/linux-nat.h (linux_stop_lwp): New declaration.
10173
10174 2015-03-24  Gary Benson  <gbenson@redhat.com>
10175
10176         * linux-nat.h: Include nat/linux-nat.h.
10177         (iterate_over_lwps): Move declaration to nat/linux-nat.h.
10178         * nat/linux-nat.h (struct lwp_info): New forward declaration.
10179         (iterate_over_lwps_ftype): New typedef.
10180         (iterate_over_lwps): New declaration.
10181         * linux-nat.h (iterate_over_lwps): Update comment.  Use
10182         iterate_over_lwps_ftype.  Update callback return value check.
10183
10184 2015-03-24  Gary Benson  <gbenson@redhat.com>
10185
10186         * x86-nat.h (x86_debug_reg_state): Move declaration to...
10187         * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
10188
10189 2015-03-24  Gary Benson  <gbenson@redhat.com>
10190
10191         * nat/linux-nat.h (current_lwp_ptid): New declaration.
10192         * linux-nat.c (current_lwp_ptid): New function.
10193         * x86-linux-nat.c: Include nat/linux-nat.h.
10194         (x86_linux_dr_get_addr): Use current_lwp_ptid.
10195         (x86_linux_dr_get_control): Likewise.
10196         (x86_linux_dr_get_status): Likewise.
10197         (x86_linux_dr_set_control): Likewise.
10198         (x86_linux_dr_set_addr): Likewise.
10199
10200 2015-03-24  Antoine Tremblay  <antoine.tremblay@ericsson.com>
10201
10202         PR breakpoints/16466
10203         * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
10204
10205 2015-03-23  Joel Brobecker  <brobecker@adacore.com>
10206
10207         * ser-mingw.c (ser_windows_setparity): Fix indentation.
10208         * ser-unix.c (hardwire_setparity): Likewise.
10209
10210 2015-03-23  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
10211
10212         * NEWS: Mention set/show serial parity command.
10213         * monitor.c (monitor_open): Call serial_setparity.
10214         * remote.c (remote_open_1): Likewise.
10215         * ser-base.c (ser_base_serparity): New function.
10216         * ser-base.h (ser_base_setparity): Add  declaration.
10217         * ser-go32.c (dos_ops): Set "setparity" field.
10218         * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
10219         state.Parity.
10220         (ser_windows_setparity): New function.
10221         (hardwire_ops): Add ser_windows_setparity.
10222         (tty_ops): Add NULL for setparity field.
10223         (pipe_ops): Add ser_base_setparity.
10224         (tcp_ops): Likewise.
10225         * ser-pipe.c (pipe_ops): Likewise.
10226         * ser-tcp.c (tcp_ops): Likewise.
10227         * ser-unix.c (hardwire_setparity): Add declaration.
10228         (hardwire_raw): Don't reset PARENB flag.
10229         (hardwire_setparity): New function.
10230         (hardwire_ops): Add hardwire_setparity.
10231         * serial.c (serial_setparity): New function.
10232         (serial_parity): New global.
10233         (parity_none, parity_odd, parity_even, parity_enums, parity):
10234         New static globals.
10235         (set_parity): New function.
10236         (_initialize_serial): Add set/show serial parity commands.
10237         * serial.h (GDBPARITY_NONE): Define.
10238         (GDBPARITY_ODD): Define.
10239         (GDBPARITY_EVEN): Define.
10240         (serial_setparity) Add declaration.
10241         (struct serial_ops): Add setparity field.
10242         * target.h (serial_parity): Add declaration.
10243
10244 2015-03-23  Keith Seitz  <keiths@redhat.com>
10245
10246         * linespec.c (linespec_lexer_lex_keyword): Update comment.
10247
10248 2015-03-23  Keith Seitz  <keiths@redhat.com>
10249
10250         * breakpoint.c (parse_breakpoint_sals): Use
10251         linespec_lexer_lex_keyword to ascertain if the user specified
10252         a NULL location.
10253         * linespec.c [IF_KEYWORD_INDEX]: Define.
10254         (linespec_lexer_lex_keyword): Export.
10255         (struct ls_parser) <keyword_ok>: Remove.
10256         A keyword is only a keyword if not followed by another keyword.
10257         (linespec_lexer_lex_one): Remove keyword_ok handling.
10258         Add comment explaining why the parsing stream is not advanced
10259         when a keyword is seen.
10260         (parse_linespec): Remove parser->keyword_ok.
10261         * linespec.h (linespec_lexer_lex_keyword): Add declaration.
10262
10263 2015-03-23  Keith Seitz  <keiths@redhat.com>
10264
10265         PR gdb/18021
10266         * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
10267         if we find a static method with DW_AT_vtable_elem_location.
10268
10269 2015-03-21  Eli Zaretskii  <eliz@gnu.org>
10270
10271         * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
10272         before the second loop, to avoid undefined behavior.  Reported by
10273         Anton Blanchard <anton@samba.org>.
10274
10275 2015-03-20  Keven Boell  <keven.boell@intel.com>
10276
10277         * gdbtypes.c (resolve_dynamic_type_internal): Adapt
10278         data_location usage to linked list.
10279         (resolve_dynamic_type_internal): Adapt data_location to
10280         linked list.
10281         (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
10282         (copy_type_recursive, copy_type): Add copy of linked list.
10283         * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
10284         (struct dynamic_prop_list): New struct.
10285         * dwarf2read.c (set_die_type): Set data_location data.
10286
10287 2015-03-20  Pedro Alves  <palves@redhat.com>
10288
10289         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
10290         inner block and make it const.
10291         * machoread.c (get_archive_prefix_len): Make "lparen" const.
10292
10293 2015-03-20  Pedro Alves  <palves@redhat.com>
10294
10295         * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
10296         * breakpoint.h (set_breakpoint_condition): Update declaration.
10297
10298 2015-03-20  Pedro Alves  <palves@redhat.com>
10299
10300         * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
10301
10302 2015-03-20  Pedro Alves  <palves@redhat.com>
10303
10304         * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
10305
10306 2015-03-20  Pedro Alves  <palves@redhat.com>
10307
10308         * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
10309
10310 2015-03-20  Pedro Alves  <palves@redhat.com>
10311
10312         * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
10313         (nto_init_solib_absolute_prefix): Likewise.
10314
10315 2015-03-20  Pedro Alves  <palves@redhat.com>
10316
10317         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
10318         * spu-tdep.c (spu_gdbarch_init): Make "name" const.
10319
10320 2015-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
10321
10322         * config/djgpp/README: Remove gdb.hp.
10323
10324 2015-03-20  Yao Qi  <yao.qi@linaro.org>
10325
10326         * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
10327         set_gdbarch_cannot_step_breakpoint.
10328
10329 2015-03-19  Pedro Alves  <palves@redhat.com>
10330
10331         * linux-nat.c (linux_resume_one_lwp): Rename to ...
10332         (linux_resume_one_lwp_throw): ... this.  Don't handle ESRCH here,
10333         instead call perror_with_name.
10334         (check_ptrace_stopped_lwp_gone): New function.
10335         (linux_resume_one_lwp): Reimplement as wrapper around
10336         linux_resume_one_lwp_throw that swallows errors if the LWP is
10337         gone.
10338         (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
10339         swallows errors if the LWP is gone.  Use
10340         linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
10341
10342 2015-03-19  Pedro Alves  <palves@redhat.com>
10343
10344         * linux-nat.c (status_callback): Return early if the LWP has no
10345         status pending.
10346
10347 2015-03-19  Pedro Alves  <palves@redhat.com>
10348
10349         * linux-nat.c (select_event_lwp_callback): Update comment to no
10350         longer mention SIGTRAP.
10351
10352 2015-03-18  Tristan Gingold  <gingold@adacore.com>
10353
10354         * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
10355         redirection code to ...
10356         (amd64_windows_frame_decode_insns): ... Here.  Fix in prologue
10357         checks.  Fix SAVE_NONVOL operations.  Add debug code and comments.
10358
10359 2015-03-18  Gary Benson <gbenson@redhat.com>
10360
10361         (remote_protocol_features): Remove the "vFile:fstat" feature.
10362         (remote_hostio_fstat): Probe for "vFile:fstat" support.
10363
10364 2015-03-11  Yao Qi  <yao.qi@linaro.org>
10365
10366         PR tdep/18107
10367         * aarch64-linux-tdep.c: Include xml-syscall.h
10368         (aarch64_linux_get_syscall_number): New function.
10369         (aarch64_linux_init_abi): Call
10370         set_gdbarch_get_syscall_number.
10371         * syscalls/aarch64-linux.xml: New file.
10372
10373 2015-03-17  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
10374
10375         * ser-base.h (ser_base_setstopbits): Change second argument name
10376         from "rate" to "num".
10377
10378 2015-03-17  Gary Benson <gbenson@redhat.com>
10379             Luke Allardyce <lukeallardyce@gmail.com>
10380
10381         PR gdb/18131
10382         * common/common-remote-fileio.h (sys/stat.h): New include.
10383         (stuct stat): Remove forward declaration.
10384
10385 2015-03-16  John Baldwin  <jhb@FreeBSD.org>
10386
10387         * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
10388         before writing core register notes.
10389
10390 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
10391             Pedro Alves  <palves@redhat.com>
10392
10393         * gdb_curses.h (tgetnum): Mark with EXTERN_C.
10394         * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
10395         (tgoto): Wrap with extern "C".
10396
10397 2015-03-16  Pedro Alves  <palves@redhat.com>
10398             Yuanhui Zhang  <asmwarrior@gmail.com>
10399
10400         * stub-termcap.c (tputs): Change prototype.
10401
10402 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
10403             Pedro Alves  <palves@redhat.com>
10404
10405         * windows-nat.c (struct thread_info_struct): Rename to ...
10406         (struct windows_thread_info_struct): ... this.
10407         (thread_info): Rename to ...
10408         (windows_thread_info): ... this.
10409         All users updated.
10410
10411 2015-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10412             Pedro Alves  <palves@redhat.com>
10413
10414         * NEWS: New Removed targets and native configurations.
10415
10416 2015-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
10417
10418         Remove HPUX.
10419         * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
10420         (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
10421         (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
10422         ia64-hpux-tdep.h, solib-ia64-hpux.h.
10423         (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
10424         ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
10425         * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
10426         hppa-hpux-tdep.c.
10427         * config/ia64/hpux.mh: Remove file.
10428         * config/pa/hpux.mh: Remove file.
10429         * configure: Rebuilt.
10430         * configure.ac (dlgetmodinfo, somread.o): Remove.
10431         * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10432         (ia64-*-hpux*): Remove its float format exception.
10433         * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10434         * hppa-hpux-nat.c: Remove file.
10435         * hppa-hpux-tdep.c: Remove file.
10436         * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
10437         Move them here from hppa-tdep.h
10438         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
10439         (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
10440         * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
10441         Move them to hppa-tdep.c.
10442         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
10443         declarations.
10444         * ia64-hpux-nat.c: Remove file.
10445         * ia64-hpux-tdep.c: Remove file.
10446         * ia64-hpux-tdep.h: Remove file.
10447         * inf-ttrace.c: Remove file.
10448         * inf-ttrace.h: Remove file.
10449         * solib-ia64-hpux.c: Remove file.
10450         * solib-ia64-hpux.h: Remove file.
10451         * solib-pa64.c: Remove file.
10452         * solib-pa64.h: Remove file.
10453         * solib-som.c: Remove file.
10454         * solib-som.h: Remove file.
10455         * somread.c: Remove file.
10456
10457 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
10458
10459         * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
10460         * config.in: Regenerate.
10461         * configure: Regenerate.
10462         * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
10463         define.
10464         (fbsd_find_memory_regions): Use kinfo_getvmmap to
10465         enumerate memory regions if present.
10466
10467 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
10468
10469         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
10470         * i386fbsd-tdep.c: Fix style in various gdb_static_assert
10471         expressions.
10472         (i386fbsd_sigtramp_p): Likewise.
10473
10474 2015-03-12  John Baldwin  <jhb@FreeBSD.org>
10475
10476         * MAINTAINERS (Write After Approval): Add John Baldwin.
10477
10478 2015-03-12  Gary Benson <gbenson@redhat.com>
10479
10480         * solib.c (_initialize_solib): Make "set/show sysroot" use
10481         add_setshow_optional_filename_cmd so it can be restored to
10482         empty after being set.
10483
10484 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
10485
10486         * Makefile.in (SFILES): New source break-catch-syscall.c.
10487         (COMMON_OBS): New object break-catch-syscall.o.
10488         * break-catch-syscall.c: New file.
10489         * breakpoint.c: Remove inclusion of "xml-syscall.h".
10490         (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
10491         (struct syscall_catchpoint): Likewise.
10492         (dtor_catch_syscall): Likewise.
10493         (catch_syscall_inferior_data): Likewise.
10494         (struct catch_syscall_inferior_data): Likewise.
10495         (get_catch_syscall_inferior_data): Likewise.
10496         (catch_syscall_inferior_data_cleanup): Likewise.
10497         (insert_catch_syscall): Likewise.
10498         (remove_catch_syscall): Likewise.
10499         (breakpoint_hit_catch_syscall): Likewise.
10500         (print_it_catch_syscall): Likewise.
10501         (print_one_catch_syscall): Likewise.
10502         (print_mention_catch_syscall): Likewise.
10503         (print_recreate_catch_syscall): Likewise.
10504         (catch_syscall_breakpoint_ops): Likewise.
10505         (syscall_catchpoint_p): Likewise.
10506         (create_syscall_event_catchpoint): Likewise.
10507         (catch_syscall_split_args): Likewise.
10508         (catch_syscall_command_1): Likewise.
10509         (is_syscall_catchpoint_enabled): Likewise.
10510         (catch_syscall_enabled): Likewise.
10511         (catching_syscall_number): Likewise.
10512         (catch_syscall_completer): Likewise.
10513         (clear_syscall_counts): Likewise.
10514         (initialize_breakpoint_ops): Move initialization of syscall
10515         catchpoints to break-catch-syscall.c.
10516         (_initialize_breakpoint): Move code related to syscall catchpoints
10517         to break-catch-syscall.c.
10518
10519 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
10520
10521         * breakpoint.c (breakpoint_find_if): New function.
10522         * breakpoint.h (breakpoint_find_if): New prototype.
10523
10524 2015-03-11  Gary Benson <gbenson@redhat.com>
10525
10526         * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
10527         * remote-fileio.c (remote_fileio_to_host_uint): New function.
10528         (remote_fileio_to_host_ulong): Likewise.
10529         (remote_fileio_to_host_mode): Likewise.
10530         (remote_fileio_to_host_time): Likewise.
10531         (remote_fileio_to_host_stat): Likewise.
10532         * remote.c (PACKET_vFile_fstat): New enum value.
10533         (remote_protocol_features): Register the "vFile:fstat" feature.
10534         (remote_hostio_fstat): New function.
10535         (remote_bfd_iovec_stat): Use the above.
10536         (_initialize_remote): Register new "set/show remote
10537         hostio-fstat-packet" command.
10538         * symfile.c (separate_debug_file_exists): Update comment.
10539         * NEWS: Announce new vFile:fstat packet.
10540
10541 2015-03-11  Gary Benson <gbenson@redhat.com>
10542
10543         * common/common-remote-fileio.h: New file.
10544         * common/common-remote-fileio.c: Likewise.
10545         * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10546         (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
10547         (COMMON_OBS): Add common-remote-fileio.o.
10548         (common-remote-fileio.o): New rule.
10549         * remote-fileio.h (common-remote-fileio.h): New include.
10550         * remote-fileio.c (gdb/fileio.h): Do not include.
10551         (remote_fileio_to_be): Moved to common-remote-fileio.h.
10552         (remote_fileio_to_fio_uint): Likewise.
10553         (remote_fileio_to_fio_time): Likewise.
10554         (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
10555         (remote_fileio_to_fio_mode): Likewise.
10556         (remote_fileio_to_fio_ulong): Likewise.
10557         (remote_fileio_to_fio_stat): Likewise.
10558
10559 2015-03-11  Andy Wingo  <wingo@igalia.com>
10560
10561         * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
10562         we were checking the cached type, not the cached dynamic type.
10563
10564 2015-03-11  Andy Wingo  <wingo@igalia.com>
10565
10566         * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
10567         other strings, as these are on the GC'd heap, and will be
10568         collected along with the smob.
10569
10570 2015-03-11  Andy Wingo  <wingo@igalia.com>
10571
10572         * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
10573         (objfile_functions): Bind gdbscm_objfile_progspace to
10574         objfile-progspace.
10575         * guile/lib/gdb.scm: Add objfile-progspace to exports.
10576
10577 2015-03-11  Andy Wingo  <wingo@igalia.com>
10578
10579         * guile/guile.c (_initialize_guile): Disable automatic
10580         finalization, if Guile offers us that possibility.
10581         * guile/guile.c (call_initialize_gdb_module):
10582         * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
10583         finalizers in appropriate places.
10584         * configure.ac (AC_TRY_LIBGUILE): Add a check for
10585         scm_set_automatic_finalization_enabled.
10586         * configure: Regenerated.
10587
10588 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10589
10590         * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
10591         SAL, if possible.
10592
10593 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10594
10595         * s390-linux-nat.c (struct arch_lwp_info): New.
10596         (s390_fix_watch_points): Rename to...
10597         (s390_prepare_to_resume): ...this.  Skip the PER info update
10598         unless the watch points have changed.
10599         (s390_refresh_per_info, s390_new_thread): New functions.
10600         (s390_insert_watchpoint): Call s390_refresh_per_info instead of
10601         s390_fix_watch_points.
10602         (s390_remove_watchpoint): Likewise.
10603         (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
10604         Register s390_prepare_to_resume.
10605
10606 2015-03-09  Pedro Alves  <palves@redhat.com>
10607
10608         Revert:
10609         2015-03-07  Pedro Alves  <palves@redhat.com>
10610         * common/gdb_socket.h: New file.
10611         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
10612         sys/socket.h.
10613         (net_open): Use union gdb_sockaddr_u.
10614
10615 2015-03-07  Pedro Alves  <palves@redhat.com>
10616
10617         * configure.ac (build_warnings): Move -Wmissing-prototypes
10618         -Wdeclaration-after-statement -Wmissing-parameter-type
10619         -Wold-style-declaration -Wold-style-definition to the C-specific
10620         set.
10621         * configure: Regenerate.
10622
10623 2015-03-07  Pedro Alves  <palves@redhat.com>
10624
10625         * common/gdb_socket.h: New file.
10626         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
10627         sys/socket.h.
10628         (net_open): Use union gdb_sockaddr_u.
10629
10630 2015-03-07  Pedro Alves  <palves@redhat.com>
10631
10632         * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
10633         (exceptions_state_mc_action_iter)
10634         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10635         Don't define.
10636         [__cplusplus] (try_scope_depth): New global.
10637         [__cplusplus] (exception_try_scope_entry)
10638         (exception_try_scope_exit, gdb_exception_sliced_copy)
10639         (exception_rethrow): New functions.
10640         (throw_exception): In C++ mode, throw
10641         gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
10642         gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
10643         (throw_it): In C++ mode, use try_scope_depth.
10644         * common/common-exceptions.h [!__cplusplus]
10645         (exceptions_state_mc_action_iter)
10646         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10647         Don't declare.
10648         [__cplusplus] (exception_try_scope_entry)
10649         (exception_try_scope_exit, exception_rethrow): Declare.
10650         [__cplusplus] (struct exception_try_scope): New struct.
10651         [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
10652         C++ exceptions.
10653         (struct gdb_exception_RETURN_MASK_ALL)
10654         (struct gdb_exception_RETURN_MASK_ERROR)
10655         (struct gdb_exception_RETURN_MASK_QUIT): New types.
10656
10657 2015-03-07  Pedro Alves  <palves@redhat.com>
10658
10659         * main.c (handle_command_errors): Remove volatile qualifier from
10660         parameter.
10661
10662 2015-03-07  Pedro Alves  <palves@redhat.com>
10663
10664         * breakpoint.c (save_breakpoints): Adjust to avoid code between
10665         TRY and CATCH.
10666         * gdbtypes.c (safe_parse_type): Remove empty line.
10667         (types_deeply_equal):
10668         * guile/scm-frame.c (gdbscm_frame_name):
10669         * linux-thread-db.c (find_new_threads_once):
10670         * python/py-breakpoint.c (bppy_get_commands):
10671         * record-btrace.c (record_btrace_insert_breakpoint)
10672         (record_btrace_remove_breakpoint, record_btrace_start_replaying)
10673         (record_btrace_start_replaying): Adjust to avoid code between TRY
10674         and CATCH.
10675
10676 2015-03-07  Pedro Alves  <palves@redhat.com>
10677
10678         * common/common-exceptions.c (struct catcher) <exception>: No
10679         longer a pointer to volatile exception.  Now an exception value.
10680         <mask>: Delete field.
10681         (exceptions_state_mc_init): Remove all parameters.  Adjust.
10682         (exceptions_state_mc): No longer pop the catcher here.
10683         (exceptions_state_mc_catch): New function.
10684         (throw_exception): Adjust.
10685         * common/common-exceptions.h (exceptions_state_mc_init): Remove
10686         all parameters.
10687         (exceptions_state_mc_catch): Declare.
10688         (TRY_CATCH): Rename to ...
10689         (TRY): ... this.  Remove EXCEPTION and MASK parameters.
10690         (CATCH, END_CATCH): New.
10691         All callers adjusted.
10692
10693 2015-03-07  Tom Tromey  <tromey@redhat.com>
10694
10695         * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
10696
10697 2015-03-07  Pedro Alves  <palves@redhat.com>
10698
10699         * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10700         (amd64_epilogue_frame_cache): Normal exception handling code.
10701         * break-catch-throw.c (check_status_exception_catchpoint)
10702         (re_set_exception_catchpoint): Ditto.
10703         * cli/cli-interp.c (safe_execute_command):
10704         * cli/cli-script.c (script_from_file): Ditto.
10705         * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
10706         Ditto.
10707         * compile/compile-object-run.c (compile_object_run): Ditto.
10708         * cp-abi.c (baseclass_offset): Ditto.
10709         * cp-valprint.c (cp_print_value): Ditto.
10710         * exceptions.c (catch_exceptions_with_msg):
10711         * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
10712         * frame.c (get_frame_address_in_block_if_available): Ditto.
10713         * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10714         (i386_sigtramp_frame_cache): Ditto.
10715         * infcmd.c (post_create_inferior): Ditto.
10716         * linespec.c (parse_linespec, find_linespec_symbols):
10717         * p-valprint.c (pascal_object_print_value): Ditto.
10718         * parse.c (parse_expression_for_completion): Ditto.
10719         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
10720         * remote.c (remote_get_noisy_reply): Ditto.
10721         * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
10722         * solib-svr4.c (solib_svr4_r_map): Ditto.
10723
10724 2015-03-06  Gary Benson  <gbenson@redhat.com>
10725
10726         * common/common-utils.h (startswith): New inline function.
10727         All places where this logic was used updated to use the above.
10728
10729 2015-03-05  Pedro Alves  <palves@redhat.com>
10730
10731         PR gdb/18002
10732         * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
10733         after reading the breakpoint's shadow memory.
10734
10735 2015-03-05  Mark Kettenis  <kettenis@gnu.org>
10736
10737         * hppabsd-nat.c: Remove file.
10738         * hppaobsd-nat.c: New file.
10739         * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c.  Add
10740         hppaobsd-nat.c.
10741         * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
10742         hppaobsd-nat.o.
10743
10744 2015-03-04  Pedro Alves  <palves@redhat.com>
10745
10746         * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
10747         (target_decr_pc_after_break): Delete declaration.
10748         * target.c (default_target_decr_pc_after_break)
10749         (target_decr_pc_after_break): Delete.
10750         * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
10751         gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
10752         * linux-thread-db.c (check_event): Likewise.
10753         * infrun.c (adjust_pc_after_break): Likewise.
10754         * darwin-nat.c (cancel_breakpoint): Likewise.
10755         * aix-thread.c (aix_thread_wait): Likewise.
10756         * target-delegates.c: Regenerate.
10757
10758 2015-03-04  Pedro Alves  <palves@redhat.com>
10759
10760         * linux-nat.c (save_sigtrap): Check for breakpoints before
10761         checking watchpoints.
10762         (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10763         breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10764         (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10765         a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10766         (linux_nat_stopped_by_sw_breakpoint)
10767         (linux_nat_supports_stopped_by_sw_breakpoint)
10768         (linux_nat_stopped_by_hw_breakpoint)
10769         (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10770         (linux_nat_wait_1): Don't re-increment the PC if relying on
10771         SIGTRAP's siginfo->si_code.
10772         (linux_nat_add_target): Install new target methods.
10773         * linux-thread-db.c (check_event): Don't account for breakpoint PC
10774         offset if the target already adjusted the PC.
10775         * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10776         (GDB_ARCH_TRAP_BRKPT): New.
10777         (TRAP_HWBKPT): Define if not already defined.
10778
10779 2015-03-04  Pedro Alves  <palves@redhat.com>
10780
10781         * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10782         * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10783         Delete field.
10784         <stop_reason>: New field.
10785         (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10786         (packet_set_cmd_state): New function.
10787         (remote_protocol_features): Register the "swbreak" and "hwbreak"
10788         features.
10789         (remote_query_supported): If not disabled with the corresponding
10790         "set remote foo-packet" command, report support for the swbreak
10791         and hwbreak features.
10792         (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10793         field.
10794         <stop_reason>: New field.
10795         (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10796         (remote_wait_as): Adjust.
10797         (remote_stopped_by_sw_breakpoint)
10798         (remote_supports_stopped_by_sw_breakpoint)
10799         (remote_stopped_by_hw_breakpoint)
10800         (remote_supports_stopped_by_hw_breakpoint): New functions.
10801         (remote_stopped_by_watchpoint): New function.
10802         (init_remote_ops): Install them.
10803         (_initialize_remote): Register new "set/show remote
10804         swbreak-feature-packet" and "set/show remote
10805         swbreak-feature-packet" commands.
10806
10807 2015-03-04  Pedro Alves  <palves@redhat.com>
10808
10809         * btrace.h: Include target/waitstatus.h.
10810         (struct btrace_thread_info) <stop_reason>: New field.
10811         * record-btrace.c (record_btrace_step_thread): Use
10812         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10813         (record_btrace_decr_pc_after_break): Delete.
10814         (record_btrace_stopped_by_sw_breakpoint)
10815         (record_btrace_supports_stopped_by_sw_breakpoint)
10816         (record_btrace_stopped_by_hw_breakpoint)
10817         (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10818         (init_record_btrace_ops): Install them.
10819         * record-full.c (record_full_hw_watchpoint): Delete and replace
10820         with ...
10821         (record_full_stop_reason): ... this throughout.
10822         (record_full_exec_insn): Adjust.
10823         (record_full_wait_1): Adjust.  No longer re-increment the PC.
10824         (record_full_wait_1): Adjust.  Use
10825         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10826         (record_full_stopped_by_watchpoint): Adjust.
10827         (record_full_stopped_by_sw_breakpoint)
10828         (record_full_supports_stopped_by_sw_breakpoint)
10829         (record_full_supports_stopped_by_sw_breakpoint)
10830         (record_full_stopped_by_hw_breakpoint)
10831         (record_full_supports_stopped_by_hw_breakpoint): New functions.
10832         (init_record_full_ops, init_record_full_core_ops): Install them.
10833         * record.c (record_check_stopped_by_breakpoint): New function.
10834         * record.h: Include target/waitstatus.h.
10835         (record_check_stopped_by_breakpoint): New declaration.
10836
10837 2015-03-04  Pedro Alves  <palves@redhat.com>
10838
10839         enum lwp_stop_reason -> enum target_stop_reason
10840         * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10841         (linux_nat_stopped_by_watchpoint, status_callback)
10842         (linux_nat_wait_1): Adjust.
10843         * linux-nat.h (enum lwp_stop_reason): Delete.
10844         (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10845         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10846         * target/waitstatus.h (enum target_stop_reason): New.
10847
10848 2015-03-04  Pedro Alves  <palves@redhat.com>
10849
10850         * breakpoint.c (need_moribund_for_location_type): New function.
10851         (bpstat_stop_status): Don't skipping checking moribund locations
10852         of breakpoint types which the target tell caused a stop.
10853         (program_breakpoint_here_p): New function, factored out from ...
10854         (bp_loc_is_permanent): ... this.
10855         (update_global_location_list): Don't create a moribund location if
10856         the target supports reporting stops of the type of the removed
10857         breakpoint.
10858         * breakpoint.h (program_breakpoint_here_p): New declaration.
10859         * infrun.c (adjust_pc_after_break): Return early if the target has
10860         already adjusted the PC.  Add comments.
10861         (handle_signal_stop): If nothing explains a signal, and the target
10862         tells us the stop was caused by a software breakpoint, check if
10863         there's a breakpoint instruction in the memory.  If so, adjust the
10864         PC before presenting the stop to the user.  Otherwise, ignore the
10865         trap.  If nothing explains a signal, and the target tells us the
10866         stop was caused by a hardware breakpoint, ignore the trap.
10867         * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10868         to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10869         to_supports_stopped_by_hw_breakpoint>: New fields.
10870         (target_stopped_by_sw_breakpoint)
10871         (target_supports_stopped_by_sw_breakpoint)
10872         (target_stopped_by_hw_breakpoint)
10873         (target_supports_stopped_by_hw_breakpoint): Define.
10874         * target-delegates.c: Regenerate.
10875
10876 2015-03-04  Pedro Alves  <palves@redhat.com>
10877
10878         * infrun.c (follow_fork_inferior): Use the whole of the
10879         inferior_ptid and pending_follow.related_pid ptids instead of
10880         building ptids from the process components.  Adjust verbose output
10881         to use target_pid_to_str.
10882         * linux-nat.c (linux_child_follow_fork): Use the whole of the
10883         inferior_ptid and pending_follow.related_pid ptids instead of
10884         building ptids from the process components.
10885
10886 2015-03-04  Mark Kettenis  <kettenis@gnu.org>
10887
10888         * inf-ptrace.c [PT_GET_PROCESS_STATE]
10889         (inf_ptrace_insert_fork_catchpoint): New function.
10890         (inf_ptrace_remove_fork_catchpoint): New function.
10891         (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10892
10893 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10894
10895         * s390-linux-tdep.c (s390_register_name): Return empty string
10896         instead of NULL for registers that shouldn't be visible.
10897
10898 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10899
10900         * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10901         XML file for 64-bit targets.
10902
10903 2015-03-03  Simon Marchi  <simon.marchi@ericsson.com>
10904
10905         * target.h (find_default_create_inferior): Remove declaration.
10906         (find_default_attach): Likewise.
10907
10908 2015-03-03  Pedro Alves  <palves@redhat.com>
10909
10910         * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10911         Use ptid_get_pid to get the overall process id when resuming all
10912         threads.
10913
10914 2015-03-03  Pedro Alves  <palves@redhat.com>
10915
10916         * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10917         the lwp field of ptid.  Pass the full ptid to get_thread_regcache.
10918         * inf-ptrace.c (get_ptrace_pid): New function.
10919         (inf_ptrace_resume): Use it.
10920         * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10921         to the lower layer.
10922
10923 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10924
10925         * nat/linux-btrace.c: Include sys/utsname.h.
10926         (linux_determine_kernel_ptr_bits): New.
10927         (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10928         * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10929         ptr_bits.
10930
10931 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10932
10933         * btrace.c (ftrace_update_function): Treat return as tailcall for
10934         "_dl_runtime_resolve".
10935
10936 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10937
10938         * btrace.h (btrace_function) <lbegin, lend>: Remove.
10939         * btrace.c (ftrace_debug): Do not print the line range.
10940         (ftrace_skip_file, ftrace_update_lines): Remove.
10941         (ftrace_new_function): Remove lbegin and lend initialization.
10942         (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10943         * record-btrace.c (btrace_compute_src_line_range): New.
10944         (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10945
10946 2015-03-02  Pedro Alves  <palves@redhat.com>
10947
10948         * infrun.c (follow_exec): Delete all threads of the process except
10949         the event thread.  Extended comments.
10950
10951 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
10952
10953         * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10954
10955 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
10956
10957         * utils.h: Remove <stdbool.h> #include.
10958         (producer_is_gcc): Change return type to "int".
10959         * utils.c (producer_is_gcc): Change return type to int.
10960         Return 1 instead of true, and 0 instead of false.
10961         Adjust function documentation accordingly.
10962
10963 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10964
10965         * s390-linux-nat.c (have_regset_vxrs): New static variable.
10966         (s390_linux_fetch_inferior_registers): Handle vector registers, if
10967         present.
10968         (s390_linux_store_inferior_registers): Likewise.
10969         (s390_get_hwcap): Remove function.  Embed its logic...
10970         (s390_read_description): ...here.  Yield a target description with
10971         vector registers if applicable.
10972         * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10973         "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10974         "features/s390x-tevx-linux64.c".
10975         (struct gdbarch_tdep) <v0_full_regnum>: New field.
10976         (s390_dwarf_regmap): Add vector registers.  Remove bogus entries
10977         for "GNU/Linux-specific registers".
10978         (s390_dwarf_reg_r0l): New enum value.
10979         (s390_dwarf_reg_to_regnum): Support vector registers.
10980         (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10981         of GPR lower halves.
10982         (regnum_is_vxr_full): New function.
10983         (s390_register_name): New function.
10984         (s390_pseudo_register_name): Handle v0-v15, which are composed of
10985         f0-f15 and v0l-v15l.
10986         (s390_pseudo_register_type): Likewise.
10987         (s390_pseudo_register_read): Likewise.
10988         (s390_pseudo_register_write): Likewise.
10989         (s390_value_from_register): Account for the fact that values are
10990         placed left-justified in vector registers.
10991         (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10992         the vector reggroup and omit them from the general reggroup.
10993         (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10994         (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10995         (s390_iterate_over_regset_sections): Add iterations for the two
10996         new vector regsets.
10997         (s390_core_read_description): Yield a target description with
10998         vector registers if applicable.
10999         (s390_gdbarch_init): Handle target descriptions with vector
11000         registers.  Add "register_name" gdbarch method.
11001         (_initialize_s390_tdep): Call new tdesc initialization functions.
11002         * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
11003         (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
11004         (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
11005         (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
11006         (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
11007         (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
11008         (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
11009         (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
11010         (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
11011         (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
11012         (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
11013         (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
11014         (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
11015         (S390_NUM_REGS): Adjust value.
11016         (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
11017         (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11018         (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
11019         * NEWS: Announce S/390 vector register support.
11020
11021 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11022
11023         * features/s390-tevx-linux64.xml: New file.
11024         * features/s390-vx-linux64.xml: New file.
11025         * features/s390-vx.xml: New file.
11026         * features/s390x-tevx-linux64.xml: New file.
11027         * features/s390x-vx-linux64.xml: New file.
11028         * features/Makefile (WHICH): Add s390-vx-linux64,
11029         s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
11030         (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
11031         (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
11032         macros.
11033         * features/s390-tevx-linux64.c: New generated file.
11034         * features/s390-vx-linux64.c: Likewise.
11035         * features/s390x-tevx-linux64.c: Likewise.
11036         * features/s390x-vx-linux64.c: Likewise.
11037         * regformats/s390-tevx-linux64.dat: Likewise.
11038         * regformats/s390-vx-linux64.dat: Likewise.
11039         * regformats/s390x-tevx-linux64.dat: Likewise.
11040         * regformats/s390x-vx-linux64.dat: Likewise.
11041
11042 2015-02-28  Doug Evans  <xdje42@gmail.com>
11043
11044         * symtab.h (struct symtab) <next>: Fix comment.
11045
11046 2015-02-27  Simon Marchi  <simon.marchi@ericsson.com>
11047
11048         * python/python.c (python_GdbModuleDef): Rename GdbMethods to
11049         python_GdbMethods.
11050
11051 2015-02-27  Pedro Alves  <palves@redhat.com>
11052
11053         * dtrace-probe.c (dtrace_probe_ops): Make extern.
11054
11055 2015-02-27  Pedro Alves  <palves@redhat.com>
11056
11057         * common/common-exceptions.h (exception_none): Declare.
11058         * common/common-exceptions.c (exception_none): Moved from
11059         exceptions.c.
11060         (exceptions_state_mc_init): Use exception_none.
11061         * exceptions.c (exception_none): Move to
11062         common/common-exceptions.c.
11063         * exceptions.h (exception_none): Move to
11064         common/common-exceptions.h.
11065
11066 2015-02-27  Pedro Alves  <palves@redhat.com>
11067
11068         * main.c (catch_command_errors, catch_command_errors_const):
11069         Remove 'mask' argument.  Adjust.
11070         (captured_main): Adjust callers.
11071
11072 2015-02-27  Pedro Alves  <palves@redhat.com>
11073
11074         * python/python-internal.h: Include "extension-priv.h".
11075
11076 2015-02-27  Pedro Alves  <palves@redhat.com>
11077
11078         * breakpoint.h (enum print_stop_action): Move further up in the
11079         file.
11080
11081 2015-02-27  Pedro Alves  <palves@redhat.com>
11082
11083         * gdbarch.sh: Include regcache.h.
11084         * gdbarch.h: Regenerate.
11085
11086 2015-02-27  Pedro Alves  <palves@redhat.com>
11087
11088         * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
11089         Remove duplicate const.
11090         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
11091         duplicate const.
11092
11093 2015-02-27  Pedro Alves  <palves@redhat.com>
11094
11095         * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
11096         * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
11097         * features/feature_to_c.sh: Tag the generated xml_builtin array
11098         with extern const in C++ mode.
11099
11100 2015-02-27  Tom Tromey  <tromey@redhat.com>
11101
11102         * minidebug.c (struct lzma_stream): Rename to ...
11103         (struct gdb_lzma_stream): ... this.
11104         (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
11105
11106 2015-02-27  Pedro Alves  <palves@redhat.com>
11107
11108         * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
11109         function.
11110         (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
11111         (mi_cmd_stack_list_variables): Use it.
11112
11113 2015-02-27  Pedro Alves  <palves@redhat.com>
11114
11115         * x86-linux-nat.c (u_debugreg_offset): New function.
11116         (x86_linux_dr_get, x86_linux_dr_set): Use it.
11117
11118 2015-02-27  Pedro Alves  <palves@redhat.com>
11119
11120         * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
11121         declaration.
11122         Include break-common.h.
11123
11124 2015-02-27  Tom Tromey  <tromey@redhat.com>
11125             Pedro Alves <palves@redhat.com>
11126
11127         * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
11128         local used to iterate over enums.
11129         * completer.c (signal_completer): Likewise.
11130         * i386-tdep.c (i386_stap_parse_special_token): Likewise.
11131         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
11132         * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
11133         * tui/tui-layout.c (next_layout, prev_layout): Likewise.
11134         * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
11135         (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
11136         * tui-wingeneral.c (tui_refresh_all):  Likewise.
11137
11138 2015-02-27  Pedro Alves  <palves@redhat.com>
11139
11140         * target.h: Include "infrun.h".
11141
11142 2015-02-27  Pedro Alves  <palves@redhat.com>
11143
11144         * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11145
11146 2015-02-27  Pedro Alves  <palves@redhat.com>
11147
11148         * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
11149         (IPA_SYM): Use it.
11150         * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
11151
11152 2015-02-27  Pedro Alves  <palves@redhat.com>
11153
11154         * cli-out.c (_rl_erase_entire_line): Move declaration out of
11155         cli_mld_erase_entire_line, and make it extern "C".
11156         * common/common-defs.h (EXTERN_C): New.
11157         * completer.c (_rl_completion_prefix_display_length)
11158         (_rl_print_completions_horizontally, QSFUNC): Move declarations
11159         out of gdb_display_match_list_1.
11160         (_rl_qsort_string_compare): Move declaration out of
11161         gdb_display_match_list_1, and make it extern "C".
11162         * defs.h (re_comp): Use EXTERN_C.
11163         * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
11164         and make it extern "C".
11165         (monstartup): Move declaration out of maintenance_set_profile_cmd,
11166         and make it extern "C".
11167         (main): Move declaration out of maintenance_set_profile_cmd.
11168         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
11169         EXTERN_C.
11170
11171 2015-02-27  Pedro Alves  <palves@redhat.com>
11172
11173         * python/python.c (GdbMethods): Rename to ...
11174         (python_GdbMethods): ... this and make extern.
11175         (GdbModuleDef): Rename to ...
11176         (python_GdbModuleDef): ... this and make extern.
11177
11178 2015-02-27  Pedro Alves  <palves@redhat.com>
11179
11180         * record-btrace.c (set_record_btrace_cmdlist)
11181         (show_record_btrace_cmdlist): Remove redefinitions.
11182
11183 2015-02-27  Tom Tromey  <tromey@redhat.com>
11184             Pedro Alves  <palves@redhat.com>
11185
11186         * dwarf2-frame.c (enum cfa_how_kind, struct
11187         dwarf2_frame_state_reg_info): Move out of struct
11188         dwarf2_frame_state.
11189         * dwarf2read.c (struct tu_stats): Move out of struct
11190         dwarf2_per_objfile.
11191         (struct file_entry): Move out of struct line_header.
11192         (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
11193         typedef_field_list): Move out of struct field_info.
11194         * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
11195         Move out of struct dynamic_prop.
11196         (union type_owner, union field_location, struct field, struct
11197         range_bounds, union type_specific): Move out of struct main_type.
11198         (struct fn_fieldlist, struct fn_field, struct typedef_field)
11199         (VOFFSET_STATIC): Move out of struct cplus_struct_type.
11200         (struct call_site_target, union call_site_parameter_u, struct
11201         call_site_parameter): Move out of struct call_site.
11202         * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
11203         m32c_prologue.
11204         (enum srcdest_kind): Move out of struct srcdest.
11205         * main.c (enum cmdarg_kind): Move out of struct cmdarg.
11206         * prologue-value.h (enum prologue_value_kind): Move out of struct
11207         prologue_value.
11208         * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
11209         gdbarch_tdep.
11210         * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
11211         out of struct field_info.
11212         * symfile.h (struct other_sections): Move out of struct
11213         section_addr_info.
11214         * symtab.c (struct symbol_cache_slot): Move out struct
11215         block_symbol_cache.
11216         * target-descriptions.c (enum tdesc_type_kind): Move out of
11217         typedef struct tdesc_type.
11218         * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
11219         struct tui_line_or_address.
11220         * value.c (enum internalvar_kind, union internalvar_data): Move
11221         out of struct internalvar.
11222         * xtensa-tdep.h (struct ctype_cache): Move out of struct
11223         gdbarch_tdep.
11224
11225 2015-02-27  Tom Tromey  <tromey@redhat.com>
11226             Pedro Alves  <palves@redhat.com>
11227
11228         Rename symbols whose names are reserved C++ keywords throughout.
11229
11230 2015-02-27  Pedro Alves  <palves@redhat.com>
11231
11232         * Makefile.in (COMPILER): New, get it from autoconf.
11233         (COMPILE.pre, CC_LD): Use COMPILER.
11234         (CXX): Get from autoconf instead.
11235         (CXX_FOR_TARGET): Default to g++ instead of gcc.
11236         * acinclude.m4: Include build-with-cxx.m4.
11237         * build-with-cxx.m4: New file.
11238         * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11239         Disable -Werror by default if building in C++ mode.
11240         (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11241         -Wno-narrowing in C++ mode.  Only enable -Wpointer-sign in C mode.
11242         Run supported-warning-flags tests with the C++ compiler.
11243         Save/restore CXXFLAGS too.
11244         * configure: Regenerate.
11245
11246 2015-02-27  Pedro Alves  <palves@redhat.com>
11247
11248         * libiberty.m4: New file.
11249         * acinclude.m4: Include libiberty.m4.
11250         * configure.ac: Call libiberty_INIT.
11251         * config.in, configure: Regenerate.
11252
11253 2015-02-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11254
11255         * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
11256         31-bit targets, but 64-bit targets as well.
11257         (s390_gnu_triplet_regexp): New function.
11258         (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
11259         64-bit targets as well.  Set the gnu_triplet_regexp gdbarch
11260         method.
11261
11262 2015-02-27  Jon TURNEY  <jon.turney@dronecode.org.uk>  (tiny patch)
11263
11264         * windows-nat.c (CONTEXT_DEBUGGER): Remove.
11265         (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS.  Incorporate flags
11266         from CONTEXT_DEBUGGER.
11267
11268 2015-02-26  Doug Evans  <dje@google.com>
11269
11270         * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
11271         CHECK_TYPEDEF.
11272         (set_type_vptr_fieldno): Ditto.
11273         (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
11274         * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
11275
11276 2015-02-26  Pedro Alves  <palves@redhat.com>
11277
11278         * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
11279         * complaints.c (vcomplaint): Pass argument FMT directly to
11280         printf-like functions instead of complaint->fmt.
11281         * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
11282         * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
11283         * compile/compile-loc2c.c (pushf, unary, binary): Add
11284         ATTRIBUTE_PRINTF.
11285         (do_compile_dwarf_expr_to_c): Pass string literal as format string
11286         to pushf.
11287         (BINARY): Pass string literal as format string to 'binary'.
11288         * compile/compile-object-load.c (link_callbacks_einfo): Add
11289         ATTRIBUTE_PRINTF.
11290         * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
11291
11292 2015-02-26  Pedro Alves  <palves@redhat.com>
11293
11294         * windows-termcap.c: Rename to ...
11295         * stub-termcap.c: ... this.  Adjust header line.
11296         * Makefile.in (SFILES): Refer to stub-termcap.c instead of
11297         windows-termcap.c.
11298         * configure: Regenerate.
11299         * configure.ac: Refer to stub-termcap.o instead of
11300         windows-termcap.o.
11301         * gdb_curses.h: Mention stub-termcap.c instead of
11302         windows-termcap.c.
11303
11304 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
11305
11306         * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
11307         (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
11308
11309 2015-02-26  Antoine Tremblay  <antoine.tremblay@ericsson.com>
11310
11311         * gdb/infcmd.c (print_return_value): use type_to_string to print type.
11312
11313 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
11314
11315         * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
11316         bfd_canonicalize_symtab.
11317
11318 2015-02-25  John Baldwin  <jhb@FreeBSD.org>
11319
11320         * amd64fbsd-nat.c: Include sys/user.h.
11321         (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11322         instead of KERN_PS_STRINGS to locate the signal trampoline.
11323         * i386fbsd-nat.c: Include sys/user.h.
11324         (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11325         instead of KERN_PS_STRINGS to locate the signal trampoline.
11326         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
11327         (amd64fbsd_sigtramp_p): New.
11328         (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
11329         longer set default values.
11330         (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
11331         * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
11332         (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
11333         (i386fbsd_freebsd4_sigtramp_start)
11334         (i386fbsd_freebsd4_sigtramp_middle)
11335         (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
11336         (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
11337         (i386fbsd_sigtramp_p): New.
11338         (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
11339         longer set default values.
11340         (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
11341
11342 2015-02-25  John Baldwin  <jhb@freebsd.org>
11343
11344         * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
11345         get_frame_register instead of frame_unwind_register_unsigned.
11346
11347 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
11348
11349         PR build/18033
11350         * compile/compile-c-support.c (c_compute_program): Change // comment.
11351         * compile/compile-object-load.c (setup_sections): Change // comment.
11352
11353 2015-02-26  Joel Brobecker  <brobecker@adacore.com>
11354
11355         PR build/18033:
11356         * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
11357
11358 2015-02-23  Pedro Alves  <palves@redhat.com>
11359
11360         * remote.c (skip_to_semicolon): New function.
11361         (remote_parse_stop_reply) <T stop reply>: Use it.  Don't
11362         special case the stop reasons that look like hex numbers
11363         upfront.  Instead handle real register numbers after matching
11364         all the known stop reasons.
11365
11366 2015-02-21  Doug Evans  <dje@google.com>
11367
11368         PR c++/17976, symtab/17821
11369         * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
11370         is_in_anonymous.  All callers updated.
11371         (find_symbol_in_baseclass): Ditto.
11372         (cp_lookup_nested_symbol_1): Ditto.  Don't search all static blocks
11373         for symbols in an anonymous namespace.
11374         * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
11375         DW_AT_name directly.
11376         (dwarf2_name): Convert missing namespace name to
11377         CP_ANONYMOUS_NAMESPACE_STR.
11378
11379 2015-02-20  Pedro Alves  <palves@redhat.com>
11380
11381         * linux-nat.c (linux_handle_extended_wait): Call
11382         thread_db_notice_clone whenever a new clone LWP is detected.
11383         (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
11384         functions.
11385         * linux-nat.h (thread_db_attach_lwp): Delete declaration.
11386         (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
11387         (linux_unstop_all_lwps): Declare.
11388         * linux-thread-db.c (struct thread_get_info_inout): Delete.
11389         (thread_get_info_callback): Delete.
11390         (thread_from_lwp): Use td_thr_get_info and record_thread.
11391         (thread_db_attach_lwp): Delete.
11392         (thread_db_notice_clone): New function.
11393         (try_thread_db_load_1): If /proc is mounted and shows the
11394         process'es task list, walk over all LWPs and call thread_from_lwp
11395         instead of relying on td_ta_thr_iter.
11396         (attach_thread): Don't call check_thread_signals here.  Split the
11397         tail part of the function (which adds the thread to the core GDB
11398         thread list) to ...
11399         (record_thread): ... this function.  Call check_thread_signals
11400         here.
11401         (thread_db_wait): Don't call thread_db_find_new_threads_1.  Always
11402         call thread_from_lwp.
11403         (thread_db_update_thread_list): Rename to ...
11404         (thread_db_update_thread_list_org): ... this.
11405         (thread_db_update_thread_list): New function.
11406         (thread_db_find_thread_from_tid): Delete.
11407         (thread_db_get_ada_task_ptid): Simplify.
11408         * nat/linux-procfs.c: Include <sys/stat.h>.
11409         (linux_proc_task_list_dir_exists): New function.
11410         * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
11411
11412 2015-02-20  Pedro Alves  <palves@redhat.com>
11413
11414         * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
11415         main LWP.  Handle the case of waitpid returning 0 if we're already
11416         attached to the LWP.  Don't set the LWP's last_resume_kind to
11417         resume_stop if we already knew about the LWP.
11418         (linux_nat_filter_event): Add debug logs.
11419
11420 2015-02-20  Pedro Alves  <palves@redhat.com>
11421
11422         * target.h (forward_target_decr_pc_after_break): Delete
11423         declaration.
11424
11425 2015-02-20  Pedro Alves  <palves@redhat.com>
11426
11427         PR threads/18006
11428         * linux-thread-db.c (thread_get_info_callback): Return early if
11429         the thread's lwp id is -1.
11430
11431 2015-02-20  Joel Brobecker  <brobecker@adacore.com>
11432
11433         GDB 7.9 released.
11434
11435 2015-02-19  Steve Ellcey  <sellcey@imgtec.com>
11436
11437         * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
11438         (dtrace_get_probes) Change type of variable 'dof'.
11439
11440 2015-02-19  Antoine Tremblay  <antoine.tremblay@ericsson.com>
11441
11442         PR breakpoints/16812
11443         * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
11444         * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
11445         * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
11446
11447 2015-02-19  David Taylor  <dtaylor@emc.com>
11448
11449         * common/ax.def (setv): Fix consumed entry in setv DEFOP.
11450
11451 2015-02-18  Patrick Palka  <patrick@parcs.ath.cx>
11452
11453         * tui/tui-io.c (tui_handle_resize_during_io): Remove this
11454         function.
11455         (tui_putc): Don't call tui_handle_resize_during_io.
11456         (tui_getc): Likewise.
11457         (tui_mld_getc): Likewise.
11458         * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
11459         (tui_sigwinch_token): New static variable.
11460         (tui_initialize_win): Adjust documentation.  Set
11461         tui_sigwinch_token.
11462         (tui_async_resize_screen): New asynchronous callback.
11463         (tui_sigwinch_handler): Adjust documentation.  Asynchronously
11464         invoke tui_async_resize_screen.
11465
11466 2015-02-18  Jose E. Marchesi  <jose.marchesi@oracle.com>
11467
11468         * configure: Regenerated.
11469         * configure.ac: Use GDB_AC_TRANSFORM.
11470         * Makefile.in (aclocal_m4_deps): Added transform.m4.
11471         * acinclude.m4: sinclude transform.m4.
11472         * transform.m4: New file.
11473         (GDB_AC_TRANSFORM): New macro.
11474
11475 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11476
11477         * NEWS: Announce the support for DTrace SDT probes.
11478
11479 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11480
11481         * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
11482         (amd64_dtrace_parse_probe_argument): New function.
11483         (amd64_dtrace_probe_is_enabled): Likewise.
11484         (amd64_dtrace_enable_probe): Likewise.
11485         (amd64_dtrace_disable_probe): Likewise.
11486         (amd64_linux_init_abi): Register the
11487         `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
11488         `gdbarch_dtrace_disable_probe' and
11489         `gdbarch_dtrace_probe_is_enabled' hooks.
11490         (amd64_dtrace_disabled_probe_sequence_1): New constant.
11491         (amd64_dtrace_disabled_probe_sequence_2): Likewise.
11492         (amd64_dtrace_enable_probe_sequence): Likewise.
11493         (amd64_dtrace_disable_probe_sequence): Likewise.
11494
11495 2015-01-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11496
11497         * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
11498         the -probe-dtrace new vpossible value for PROBE_MODIFIER.
11499         * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
11500         handle ELF files.
11501         * Makefile.in (SFILES): dtrace-probe.c added.
11502         * configure: Regenerate.
11503         * dtrace-probe.c: New file.
11504         (SHT_SUNW_dof): New constant.
11505         (dtrace_probe_type): New enum.
11506         (dtrace_probe_arg): New struct.
11507         (dtrace_probe_arg_s): New typedef.
11508         (struct dtrace_probe_enabler): New struct.
11509         (dtrace_probe_enabler_s): New typedef.
11510         (dtrace_probe): New struct.
11511         (dtrace_probe_is_linespec): New function.
11512         (dtrace_dof_sect_type): New enum.
11513         (dtrace_dof_dofh_ident): Likewise.
11514         (dtrace_dof_encoding): Likewise.
11515         (DTRACE_DOF_ENCODE_LSB): Likewise.
11516         (DTRACE_DOF_ENCODE_MSB): Likewise.
11517         (dtrace_dof_hdr): New struct.
11518         (dtrace_dof_sect): Likewise.
11519         (dtrace_dof_provider): Likewise.
11520         (dtrace_dof_probe): Likewise.
11521         (DOF_UINT): New macro.
11522         (DTRACE_DOF_PTR): Likewise.
11523         (DTRACE_DOF_SECT): Likewise.
11524         (dtrace_process_dof_probe): New function.
11525         (dtrace_process_dof): Likewise.
11526         (dtrace_build_arg_exprs): Likewise.
11527         (dtrace_get_arg): Likewise.
11528         (dtrace_get_probes): Likewise.
11529         (dtrace_get_probe_argument_count): Likewise.
11530         (dtrace_can_evaluate_probe_arguments): Likewise.
11531         (dtrace_evaluate_probe_argument): Likewise.
11532         (dtrace_compile_to_ax): Likewise.
11533         (dtrace_probe_destroy): Likewise.
11534         (dtrace_gen_info_probes_table_header): Likewise.
11535         (dtrace_gen_info_probes_table_values): Likewise.
11536         (dtrace_probe_is_enabled): Likewise.
11537         (dtrace_probe_ops): New variable.
11538         (info_probes_dtrace_command): New function.
11539         (_initialize_dtrace_probe): Likewise.
11540         (dtrace_type_name): Likewise.
11541
11542 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11543
11544         * gdbarch.sh (dtrace_parse_probe_argument): New.
11545         (dtrace_probe_is_enabled): Likewise.
11546         (dtrace_enable_probe): Likewise.
11547         (dtrace_disable_probe): Likewise.
11548         * gdbarch.c: Regenerate.
11549         * gdbarch.h: Regenerate.
11550
11551 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11552
11553         * stap-probe.c (stap_probe_ops): Add NULLs in the static
11554         stap_probe_ops for `enable_probe' and `disable_probe'.
11555         * probe.c (enable_probes_command): New function.
11556         (disable_probes_command): Likewise.
11557         (_initialize_probe): Define the cli commands `enable probe' and
11558         `disable probe'.
11559         (parse_probe_linespec): New function.
11560         (info_probes_for_ops): Use parse_probe_linespec.
11561         * probe.h (probe_ops): New hooks `enable_probe' and
11562         `disable_probe'.
11563
11564 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11565
11566         * probe.c (compute_probe_arg): Moved from stap-probe.c
11567         (compile_probe_arg): Likewise.
11568         (probe_funcs): Likewise.
11569         * stap-probe.c (compute_probe_arg): Moved to probe.c.
11570         (compile_probe_arg): Likewise.
11571         (probe_funcs): Likewise.
11572
11573 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11574
11575         * probe.c (print_ui_out_not_applicables): New function.
11576         (exists_probe_with_pops): Likewise.
11577         (info_probes_for_ops): Do not include column headers for probe
11578         types for which no probe has been actually found on any object.
11579         Also invoke `print_ui_out_not_applicables' in order to match the
11580         column rows with the header when probes of several types are
11581         listed.
11582         Print the "Type" column.
11583         * probe.h (probe_ops): Added a new probe operation `type_name'.
11584         * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
11585         (stap_type_name): New function.
11586
11587 2015-02-17  Patrick Palka  <patrick@parcs.ath.cx>
11588
11589         * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
11590         (key_is_command_char): Delete.
11591
11592 2015-02-17  Pedro Alves  <palves@redhat.com>
11593
11594         * tui/tui.c (tui_enable): Resize windows before anything
11595         might show a window.
11596
11597 2015-02-17  Max Ostapenko  <m.ostapenko@partner.samsung.com>
11598
11599         PR gdb/17984
11600         * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
11601         (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
11602         call.
11603         * aarch64-tdep.h (tdesc_aarch64): Declare.
11604
11605 2015-02-12  Mark Wielaard  <mjw@redhat.com>
11606
11607         * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
11608
11609 2015-02-13  Doug Evans  <dje@google.com>
11610
11611         * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
11612         anonymous_namespace to is_in_anonymous for consistency with the rest
11613         of the file.
11614         (cp_lookup_bare_symbol): Fix typo in comment.
11615         (cp_search_static_and_baseclasses): Ditto.
11616         (search_symbol_list): Use vertical space in comment better.
11617         (reset_directive_searched): Ditto. Fix typo.
11618         (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
11619
11620 2015-02-13  Yao Qi  <yao.qi@arm.com>
11621
11622         * MAINTAINERS: Update my email address.
11623
11624 2015-02-12  Doug Evans  <dje@google.com>
11625
11626         * symtab.c (completion_list_add_name): Fix memory leak.
11627
11628 2015-02-12  Doug Evans  <dje@google.com>
11629
11630         * completer.c (complete_line): Remove incorrect comment.
11631
11632 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11633
11634         * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
11635         (py_print_frame): Use RETURN_MASK_ERROR.
11636
11637 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11638
11639         * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
11640         function comment.  Wrap all function that can throw in cleanups.
11641         (gdbpy_apply_frame_filter): Wrap all function that can throw in
11642         cleanups.
11643
11644 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11645
11646         * python/py-framefilter.c (py_print_frame): Substitute goto error.
11647         Remove the error label.
11648
11649 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11650
11651         * python/py-framefilter.c (py_print_frame): Put conditional code paths
11652         with goto first, indent the former else codepath left.  Put variable
11653         'elided' to a new inner block.
11654
11655 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11656
11657         * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
11658
11659 2015-02-11  Pedro Alves  <palves@redhat.com>
11660
11661         * xcoffread.c (within_function): Delete.
11662
11663 2015-02-11  Tom Tromey  <tromey@redhat.com>
11664             Pedro Alves <palves@redhat.com>
11665
11666         * breakpoint.c (base_breakpoint_ops): Delete.
11667         * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
11668         * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
11669         * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
11670         * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
11671         * python/py-arch.c (arch_object_type): Make extern.
11672         * python/py-block.c (block_syms_iterator_object_type): Make extern.
11673         * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
11674         * python/py-cmd.c (cmdpy_object_type): Make extern.
11675         * python/py-continueevent.c (continue_event_object_type)
11676         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
11677         parameter.  Update all callers.
11678         * python/py-evtregistry.c (eventregistry_object_type): Make extern.
11679         * python/py-exitedevent.c (exited_event_object_type): Make extern.
11680         * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
11681         * python/py-function.c (fnpy_object_type): Make extern.
11682         * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
11683         * python/py-infevents.c (call_pre_event_object_type)
11684         (inferior_call_post_event_object_type).
11685         (memory_changed_event_object_type): Make extern.
11686         * python/py-infthread.c (thread_object_type): Make extern.
11687         * python/py-lazy-string.c (lazy_string_object_type): Make extern.
11688         * python/py-linetable.c (linetable_entry_object_type)
11689         (linetable_object_type, ltpy_iterator_object_type): Make extern.
11690         * python/py-newobjfileevent.c (new_objfile_event_object_type)
11691         (clear_objfiles_event_object_type): Make extern.
11692         * python/py-objfile.c (objfile_object_type): Make extern.
11693         * python/py-param.c (parmpy_object_type): Make extern.
11694         * python/py-progspace.c (pspace_object_type): Make extern.
11695         * python/py-signalevent.c (signal_event_object_type): Make extern.
11696         * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
11697         * python/py-type.c (type_object_type, field_object_type)
11698         (type_iterator_object_type): Make extern.
11699         * python/python.c (python_extension_script_ops)
11700         (python_extension_ops): Make extern.
11701         * stap-probe.c (stap_probe_ops): Make extern.
11702
11703 2015-02-11  Pedro Alves  <pedro@codesourcery.com>
11704
11705         * infrun.c (adjust_pc_after_break): Don't adjust the PC just
11706         because the event thread is not the current thread.
11707
11708 2015-02-11  Doug Evans  <xdje42@gmail.com>
11709
11710         * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
11711         been initialized yet, return NULL.
11712
11713 2015-02-11  Doug Evans  <dje@google.com>
11714
11715         * symfile.h (new_symfile_objfile): Delete.
11716         * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
11717         All callers updated.
11718
11719 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
11720
11721         * tui/tui-io.c (tui_handle_resize_during_io): Call
11722         tui_update_gdb_sizes() after resizing the screen.
11723         * tui/tui.c (tui_enable): Resize the terminal before
11724         calling tui_update_gdb_sizes().
11725
11726 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
11727
11728         * tui/tui-io.c (tui_getc): Move cursor to the end of the command
11729         line before printing a newline.
11730
11731 2015-02-11  Mark Wielaard  <mjw@redhat.com>
11732
11733         * utils.c (producer_is_gcc): Return true or false.
11734
11735 2015-02-10  Mark Wielaard  <mjw@redhat.com>
11736
11737         * utils.h (producer_is_gcc): Change return type to bool. Add major
11738         argument.
11739         * utils.c (producer_is_gcc): Likewise.
11740         (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
11741         * dwarf2read.c (check_producer): Likewise.
11742
11743 2015-02-10  Pedro Alves  <palves@redhat.com>
11744
11745         * infrun.c (displaced_step_fixup): Switch to the event thread
11746         before calling gdbarch_displaced_step_fixup.
11747
11748 2015-02-10  Antoine Tremblay <antoine.tremblay@ericsson.com>
11749
11750         * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
11751
11752 2015-02-10  Simon Marchi  <simon.marchi@ericsson.com>
11753
11754         * ada-varobj.c (ada_name_of_child): Constify parent.
11755         (ada_path_expr_of_child): Same.
11756         (ada_value_of_child): Same.
11757         (ada_type_of_child): Same.
11758         * c-varobj.c (c_is_path_expr_parent): Same.
11759         (c_describe_child): Same.
11760         (c_name_of_child): Same.
11761         (c_value_of_child): Same.
11762         (c_type_of_child): Same.
11763         (cplus_number_of_children): Same.
11764         (cplus_describe_child): Constify var.
11765         (cplus_name_of_child): Constify parent.
11766         (cplus_value_of_child): Same.
11767         (cplus_type_of_child): Same.
11768         * jv-varobj.c (java_name_of_child): Same.
11769         (java_value_of_child): Same.
11770         (java_type_of_child): Same.
11771         * varobj.c (value_of_child): Same.
11772         (varobj_default_is_path_expr_parent): Constify var, parent and return
11773         value.
11774         (varobj_get_path_expr): Constify var, modify path_expr through
11775         mutable_var.
11776         (install_new_value): Constify parent.
11777         (value_of_child): Constify parent.
11778         * varobj.h (struct varobj): Constify parent.
11779         (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11780         type_of_child.
11781         (varobj_get_path_expr): Constify var.
11782         (varobj_get_path_expr_parent): Constify var and return value.
11783
11784 2015-02-10  Luis Machado  <lgustavo@codesourcery.com>
11785
11786         * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11787         (arm_prologue_this_id): Move PC and SP limit checks to
11788         arm_prologue_unwind_stop_reason.
11789         (arm_prologue_unwind) <stop_reason> : Set to
11790         arm_prologue_unwind_stop_reason.
11791
11792 2015-02-09  Mark Wielaard  <mjw@redhat.com>
11793
11794         * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11795         DW_LANG_Fortran08 as language_fortran.
11796
11797 2015-02-09  Sergio Durigan Junior  <sergiodj@redhat.com>
11798
11799         PR remote/17946
11800         * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11801         of pointer against char.
11802
11803 2015-02-09  Mark Wielaard  <mjw@redhat.com>
11804
11805         * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11806         (c_type_print_modifier): Likewise.
11807         * dwarf2read.c (read_tag_atomic_type): New function.
11808         (read_type_die_1): Handle DW_TAG_atomic_type.
11809         * gdbtypes.c (make_atomic_type): New function.
11810         (recursive_dump_type): Handle TYPE_ATOMIC.
11811         * gdbtypes.h (enum type_flag_values): Renumber.
11812         (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11813         (TYPE_ATOMIC): New macro.
11814         (make_atomic_type): Declare.
11815
11816 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11817
11818         * btrace.c (ftrace_find_call): Skip gaps.
11819         (ftrace_new_function): Initialize level.
11820         (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11821         (ftrace_new_switch): Update
11822         level computation.
11823         (ftrace_new_gap): New.
11824         (ftrace_update_function): Create new function after gap.
11825         (btrace_compute_ftrace_bts): Create gap on error.
11826         (btrace_stitch_bts): Update parameters.  Clear trace if it
11827         becomes empty.
11828         (btrace_stitch_trace): Update parameters.  Update callers.
11829         (btrace_clear): Reset the number of gaps.
11830         (btrace_insn_get): Return NULL if the iterator points to a gap.
11831         (btrace_insn_number): Return zero if the iterator points to a gap.
11832         (btrace_insn_end): Allow gaps at the end.
11833         (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11834         (btrace_find_insn_by_number): Assert that the found iterator does
11835         not point to a gap.
11836         (btrace_call_next, btrace_call_prev): Assert that the last function
11837         is not a gap.
11838         * btrace.h (btrace_bts_error): New.
11839         (btrace_function): Update comment.
11840         (btrace_function) <insn, insn_offset, number>: Update comment.
11841         (btrace_function) <errcode>: New.
11842         (btrace_thread_info) <ngaps>: New.
11843         (btrace_thread_info) <replay>: Update comment.
11844         (btrace_insn_get): Update comment.
11845         * record-btrace.c (btrace_ui_out_decode_error): New.
11846         (record_btrace_info): Print number of gaps.
11847         (btrace_insn_history, btrace_call_history): Call
11848         btrace_ui_out_decode_error for gaps.
11849         (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11850
11851 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11852
11853         * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11854         * nat/linux-btrace.c: (btrace_this_cpu): New.
11855         (cpu_supports_bts): Call btrace_this_cpu.
11856         (intel_supports_bts): Add cpu parameter.
11857
11858 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11859
11860         * btrace.h (btrace_insn_class): New.
11861         (btrace_insn) <size, iclass>: New.
11862         * btrace.c (ftrace_find_call): Update parameters.  Update users.
11863         Use instruction classification.
11864         (ftrace_new_return): Update parameters.  Update users.
11865         (ftrace_update_function): Update parameters.  Update users.  Use
11866         instruction classification.
11867         (ftrace_update_insns): Update parameters.  Update users.
11868         (ftrace_classify_insn): New.
11869         (btrace_compute_ftrace_bts): Fill in new btrace_insn fields.  Add
11870         TRY_CATCH around call to gdb_insn_length.
11871
11872 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11873
11874         * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11875         Update parameters.  Update users.
11876
11877 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11878
11879         * btrace.c (parse_xml_btrace_conf_bts): Add size.
11880         (btrace_conf_bts_attributes): New.
11881         (btrace_conf_children): Add attributes.
11882         * common/btrace-common.h (btrace_config_bts): New.
11883         (btrace_config)<bts>: New.
11884         (btrace_config): Update comment.
11885         * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11886         Use config.
11887         * features/btrace-conf.dtd: Increment version.  Add size
11888         attribute to bts element.
11889         * record-btrace.c (set_record_btrace_bts_cmdlist,
11890         show_record_btrace_bts_cmdlist): New.
11891         (record_btrace_adjust_size, record_btrace_print_bts_conf,
11892         record_btrace_print_conf, cmd_set_record_btrace_bts,
11893         cmd_show_record_btrace_bts): New.
11894         (record_btrace_info): Call record_btrace_print_conf.
11895         (_initialize_record_btrace): Add commands.
11896         * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11897         (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11898         (btrace_sync_conf): Synchronize bts size.
11899         (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11900         * NEWS: Announce new commands and new packets.
11901
11902 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11903
11904         * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11905         * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11906         (x86_linux_btrace_conf): New.
11907         (x86_linux_create_target): Initialize to_btrace_conf.
11908         * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11909         Check format.  Split into this and ...
11910         (linux_enable_bts): ... this.
11911         (linux_btrace_conf): New.
11912         (perf_event_skip_record): Renamed into ...
11913         (perf_event_skip_bts_record): ... this.  Updated users.
11914         (linux_disable_btrace): Split into this and ...
11915         (linux_disable_bts): ... this.
11916         (linux_read_btrace): Check format.
11917         * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11918         (linux_btrace_conf): New.
11919         (btrace_target_info)<ptid>: Moved.
11920         (btrace_target_info)<conf>: New.
11921         (btrace_target_info): Split into this and ...
11922         (btrace_tinfo_bts): ... this.  Updated users.
11923         * btrace.c (btrace_enable): Update parameters.
11924         (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11925         (btrace_conf_children, btrace_conf_attributes)
11926         (btrace_conf_elements): New.
11927         * btrace.h (btrace_enable): Update parameters.
11928         (btrace_conf, parse_xml_btrace_conf): New.
11929         * common/btrace-common.h (btrace_config): New.
11930         * feature/btrace-conf.dtd: New.
11931         * record-btrace.c (record_btrace_conf): New.
11932         (record_btrace_cmdlist): New.
11933         (record_btrace_enable_warn, record_btrace_open): Pass
11934         &record_btrace_conf.
11935         (record_btrace_info): Print recording format.
11936         (cmd_record_btrace_bts_start): New.
11937         (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11938         (_initialize_record_btrace): Add "record btrace bts" subcommand.
11939         Add "record bts" alias command.
11940         * remote.c (remote_state)<btrace_config>: New.
11941         (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11942         (remote_protocol_features): Add qXfer:btrace-conf:read.
11943         (remote_open_1): Call remote_btrace_reset.
11944         (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11945         (btrace_target_info)<conf>: New.
11946         (btrace_sync_conf, btrace_read_config): New.
11947         (remote_enable_btrace): Update parameters.  Call btrace_sync_conf and
11948         btrace_read_conf.
11949         (remote_btrace_conf): New.
11950         (init_remote_ops): Initialize to_btrace_conf.
11951         (_initialize_remote): Add qXfer:btrace-conf packet.
11952         * target.c (target_enable_btrace): Update parameters.
11953         (target_btrace_conf): New.
11954         * target.h (target_enable_btrace): Update parameters.
11955         (target_btrace_conf): New.
11956         (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11957         (target_ops)<to_enable_btrace>: Update parameters and comment.
11958         (target_ops)<to_btrace_conf>: New.
11959         * target-delegates: Regenerate.
11960         * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11961         (target_debug_print_const_struct_btrace_target_info_p): New.
11962         * NEWS: Announce new command and new packet.
11963
11964 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11965
11966         * nat/linux-btrace.h (perf_event_buffer): New.
11967         (btrace_target_info) <buffer, size, data_head>: Replace with ...
11968         <bts>: ... this.
11969         * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11970         (perf_event_buffer_size, perf_event_buffer_begin)
11971         (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11972         Updated users.
11973         (perf_event_new_data): New.
11974
11975 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11976
11977         * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11978         * record-btrace.c (record_btrace_open): Remove call to
11979         target_supports_btrace.
11980         * remote.c (remote_supports_btrace): Update parameters.
11981         * target.c (target_supports_btrace): Update parameters.
11982         * target.h (to_supports_btrace, target_supports_btrace): Update
11983         parameters.
11984         * target-delegates.c: Regenerate.
11985         * target-debug.h (target_debug_print_enum_btrace_format): New.
11986         * nat/linux-btrace.c
11987         (kernel_supports_btrace): Rename into ...
11988         (kernel_supports_bts): ... this.  Update users.  Update warning text.
11989         (intel_supports_btrace): Rename into ...
11990         (intel_supports_bts): ... this.  Update users.
11991         (cpu_supports_btrace): Rename into ...
11992         (cpu_supports_bts): ... this.  Update users.
11993         (linux_supports_btrace): Update parameters.  Split into this and ...
11994         (linux_supports_bts): ... this.
11995         * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11996
11997 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11998
11999         * Makefile.in (SFILES): Add common/btrace-common.c.
12000         (COMMON_OBS): Add common/btrace-common.o.
12001         (btrace-common.o): Add build rules.
12002         * btrace.c (parse_xml_btrace): Update parameters.
12003         (parse_xml_btrace_block): Set format field.
12004         (btrace_add_pc, btrace_fetch): Use struct btrace_data.
12005         (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
12006         (btrace_compute_ftrace): Split into this and...
12007         (btrace_compute_ftrace_bts): ...this.
12008         (btrace_stitch_trace): Split into this and...
12009         (btrace_stitch_bts): ...this.
12010         * btrace.h (parse_xml_btrace): Update parameters.
12011         (make_cleanup_btrace_data): New.
12012         * common/btrace-common.c: New.
12013         * common/btrace-common.h: Include common-defs.h.
12014         (btrace_block_s): Update comment.
12015         (btrace_format): New.
12016         (btrace_format_string): New.
12017         (btrace_data_bts): New.
12018         (btrace_data): New.
12019         (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
12020         * remote.c (remote_read_btrace): Update parameters.
12021         * target.c (target_read_btrace): Update parameters.
12022         * target.h (target_read_btrace): Update parameters.
12023         (target_ops)<to_read_btrace>: Update parameters.
12024         * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
12025         * target-delegates.c: Regenerate.
12026         * target-debug (target_debug_print_struct_btrace_data_p): New.
12027         * nat/linux-btrace.c (linux_read_btrace): Split into this and...
12028         (linux_read_bts): ...this.
12029         * nat/linux-btrace.h (linux_read_btrace): Update parameters.
12030
12031 2015-02-06  Doug Evans  <dje@google.com>
12032
12033         * remote-m32r-sdi.c: Include symfile.h.
12034
12035 2015-02-06  Doug Evans  <dje@google.com>
12036
12037         * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
12038         * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
12039         to here.
12040
12041 2015-02-06  Pedro Alves  <palves@redhat.com>
12042
12043         * linux-thread-db.c (find_new_threads_callback): Add debug output.
12044
12045 2015-02-06  Simon Marchi  <simon.marchi@ericsson.com>
12046
12047         PR gdb/15678
12048         * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
12049         (enable_count_command): Check args for NULL value.
12050
12051 2015-02-05  Doug Evans  <xdje42@gmail.com>
12052
12053         * guile/scm-frame.c: Fix spelling errors in a comment.
12054
12055 2015-02-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
12056
12057         * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
12058         * python/py-value.c (valpy_fetch_lazy): Use it.  Remove cast to the
12059         return type.
12060
12061 2015-02-04  Pedro Alves  <palves@redhat.com>
12062
12063         * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
12064         (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
12065         returns true.
12066         (resume_stopped_resumed_lwps): Don't check whether the thread is
12067         marked as executing.
12068         (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
12069
12070 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
12071
12072         * regset.h (struct regset): Add flags field.
12073         (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
12074         * corelow.c (get_core_register_section): Add warning if the size
12075         exceeds the requested size and the regset does not have the
12076         REGSET_VARIABLE_SIZE flag set.
12077         * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
12078         flag.
12079         * armbsd-tdep.c (armbsd_gregset): Likewise.
12080         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
12081         * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
12082         * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
12083         * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
12084
12085 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
12086
12087         * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
12088         For ".reg-xstate", explicitly specify the requested section size
12089         via X86_XSTATE_SIZE instead of just 0 on input and
12090         X86_XSTATE_MAX_SIZE on output.
12091         * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
12092         Likewise.
12093
12094 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
12095
12096         PR corefiles/17808:
12097         * gdbarch.sh (iterate_over_regset_sections_cb): Document this
12098         function type, particularly its SIZE parameter.
12099         * gdbarch.h: Regenerate.
12100         * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
12101         actual against required size using ">=" instead of "==".
12102         (amd64_collect_fpregset): Likewise.
12103         * i386-tdep.c (i386_supply_gregset): Likewise.
12104         (i386_collect_gregset): Likewise.
12105         (i386_supply_fpregset): Likewise.
12106         (i386_collect_fpregset): Likewise.
12107         * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
12108         (mips_fill_gregset_wrapper): Likewise.
12109         (mips_supply_fpregset_wrapper): Likewise.
12110         (mips_fill_fpregset_wrapper): Likewise.
12111         (mips64_supply_gregset_wrapper): Likewise.
12112         (mips64_fill_gregset_wrapper): Likewise.
12113         (mips64_supply_fpregset_wrapper): Likewise.
12114         (mips64_fill_fpregset_wrapper): Likewise.
12115         * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
12116         (am33_supply_fpregset_method): Likewise.
12117         (am33_collect_gregset_method): Likewise.
12118         (am33_collect_fpregset_method): Likewise.
12119
12120 2015-02-04  Doug Evans  <dje@google.com>
12121             Pedro Alves  <palves@redhat.com>
12122             Eli Zaretskii  <eliz@gnu.org>
12123
12124         PR tui/17810
12125         * tui/tui-command.c (tui_refresh_cmd_win): New function.
12126         * tui/tui-command.c (tui_refresh_cmd_win): Declare.
12127         * tui/tui-file.c: #include tui/tui-command.h.
12128         (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
12129         (tui_file_flush): Refresh command window if stream is gdb_stdout.
12130         * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
12131
12132 2015-02-04  Pedro Alves  <palves@redhat.com>
12133
12134         Fix build breakage.
12135         * event-loop.c (gdb_do_one_event): Add default switch case.
12136
12137 2015-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
12138
12139         Filter out inferior gcc option -fpreprocessed.
12140         * compile/compile.c (filter_args): New function.
12141         (get_args): Use it.
12142
12143 2015-02-03  Pedro Alves  <palves@redhat.com>
12144
12145         * event-loop.c: Don't declare nor define a queue type for
12146         gdb_event_p.
12147         (event_queue): Delete.
12148         (create_event, create_file_event, gdb_event_xfree)
12149         (initialize_event_loop, process_event): Delete.
12150         (gdb_do_one_event): Return as soon as one event is handled.
12151         (handle_file_event): Change prototype.  Used the passed in
12152         file_handler pointer and ready_mask instead of looping over all
12153         file handlers.
12154         (gdb_wait_for_event): Update the poll/select timeouts before
12155         blocking.  Run event handlers directly instead of queueing events.
12156         Return as soon as one event is handled.
12157         (struct async_event_handler_data): Delete.
12158         (invoke_async_event_handler): Delete.
12159         (check_async_event_handlers): Change return type to int.  Run
12160         event handlers directly instead of queueing events.  Return as
12161         soon as one event is handled.
12162         (handle_timer_event): Delete.
12163         (update_wait_timeout): New function, factored out from
12164         poll_timers.
12165         (poll_timers): Reimplement.
12166         * event-loop.h (initialize_event_loop): Delete declaration.
12167         * top.c (gdb_init): Don't call initialize_event_loop.
12168
12169 2015-02-03  Pedro Alves  <palves@redhat.com>
12170
12171         * event-loop.c (clear_async_event_handler): New function.
12172         * event-loop.h (clear_async_event_handler): New declaration.
12173         * record-btrace.c (record_btrace_async): New function.
12174         (init_record_btrace_ops): Install record_btrace_async.
12175         * record-full.c (record_full_async): New function.
12176         (record_full_resume): Don't mark the async event source here.
12177         (init_record_full_ops): Install record_full_async.
12178         (record_full_core_resume): Don't mark the async event source here.
12179         (init_record_full_core_ops): Install record_full_async.
12180         * remote.c (remote_async): Mark and clear the async stop reply
12181         queue event-loop token as appropriate.
12182
12183 2015-02-03  Pedro Alves  <palves@redhat.com>
12184
12185         * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
12186         target_is_async_p instead of target_can_async.
12187         (linux_nat_wait): Use target_is_async_p instead of
12188         target_can_async.  Don't enable async here.
12189         * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
12190         target_is_async_p instead of target_can_async.
12191
12192 2015-02-02  Simon Marchi  <simon.marchi@ericsson.com>
12193
12194         * varobj.h (lang_varobj_ops): Mention which return values need
12195         to be freed.
12196
12197 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
12198
12199         * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
12200
12201 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
12202
12203         PR gdb/17856:
12204         * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
12205         results found in the cache.
12206
12207 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
12208
12209         PR gdb/17854:
12210         * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
12211         when allocating a new one.
12212
12213 2015-02-01  Tom Tromey  <tom@tromey.com>
12214
12215         * MAINTAINERS: Remove myself.
12216
12217 2015-01-31  Doug Evans  <xdje42@gmail.com>
12218
12219         * dwarf2read.c (process_structure_scope): Update setting of
12220         TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
12221         * gdbtypes.c (internal_type_vptr_fieldno): New function.
12222         (set_type_vptr_fieldno): New function.
12223         (internal_type_vptr_basetype): New function.
12224         (set_type_vptr_basetype): New function.
12225         (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
12226         TYPE_VPTR_BASETYPE.
12227         (allocate_cplus_struct_type): Initialize vptr_fieldno.
12228         (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
12229         (print_cplus_stuff): ... moved here.
12230         (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
12231         * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
12232         moved to ...
12233         (struct cplus_struct_type): ... here.  All uses updated.
12234         (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
12235         (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
12236         (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
12237         * stabsread.c (read_tilde_fields): Update setting of
12238         TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
12239
12240 2015-01-31  Doug Evans  <xdje42@gmail.com>
12241
12242         * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
12243         to self_p.
12244         (cp_print_class_member): Rename local domain to self_type.
12245         * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
12246         domain_type to self_type.
12247         (set_die_type) <need_gnat_info>: Handle
12248         TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
12249         * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
12250         TYPE_SPECIFIC_SELF_TYPE.
12251         * gdbtypes.c (internal_type_self_type): New function.
12252         (set_type_self_type): New function.
12253         (smash_to_memberptr_type): Rename parameter domain to self_type.
12254         Update setting of TYPE_SELF_TYPE.
12255         (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
12256         (smash_to_method_type): Rename parameter domain to self_type.
12257         Update setting of TYPE_SELF_TYPE.
12258         (check_stub_method): Call smash_to_method_type.
12259         (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
12260         (copy_type_recursive): Ditto.
12261         * gdbtypes.h (enum type_specific_kind): New value
12262         TYPE_SPECIFIC_SELF_TYPE.
12263         (struct main_type) <type_specific>: New member self_type.
12264         (struct cplus_struct_type) <fn_field.type>: Update comment.
12265         (TYPE_SELF_TYPE): Rewrite.
12266         (internal_type_self_type, set_type_self_type): Declare.
12267         * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
12268         self_type.
12269         (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
12270         * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
12271         TYPE_TARGET_TYPE.
12272         * stabsread.c (read_member_functions): Mark methods with
12273         TYPE_CODE_METHOD, not TYPE_CODE_FUNC.  Update setting of
12274         TYPE_SELF_TYPE.
12275
12276 2015-01-31  Doug Evans  <xdje42@gmail.com>
12277
12278         * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
12279         All uses updated.
12280
12281 2015-01-31  Doug Evans  <xdje42@gmail.com>
12282
12283         * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
12284         or unions.  Return zero if union.
12285         (gnuv3_get_vtable): Call check_typedef.  Assert only passed structs.
12286         (gnuv3_rtti_type): Pass already-check_typedef'd value to
12287         gnuv3_get_vtable.
12288         (compute_vtable_size): Assert only passed structs.
12289         (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
12290
12291 2015-01-31  Doug Evans  <xdje42@gmail.com>
12292
12293         * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
12294         kinds.
12295
12296 2015-01-31  Gary Benson <gbenson@redhat.com>
12297             Doug Evans  <dje@google.com>
12298
12299         PR cli/9007
12300         PR cli/11920
12301         PR cli/15548
12302         * cli/cli-cmds.c (complete_command): Notify user if max-completions
12303         reached.
12304         * common/common-exceptions.h (enum errors)
12305         <MAX_COMPLETIONS_REACHED_ERROR>: New value.
12306         * completer.h (get_max_completions_reached_message): New declaration.
12307         (max_completions): Likewise.
12308         (completion_tracker_t): New typedef.
12309         (new_completion_tracker): New declaration.
12310         (make_cleanup_free_completion_tracker): Likewise.
12311         (maybe_add_completion_enum): New enum.
12312         (maybe_add_completion): New declaration.
12313         (throw_max_completions_reached_error): Likewise.
12314         * completer.c (max_completions): New global variable.
12315         (new_completion_tracker): New function.
12316         (free_completion_tracker): Likewise.
12317         (make_cleanup_free_completion_tracker): Likewise.
12318         (maybe_add_completions): Likewise.
12319         (throw_max_completions_reached_error): Likewise.
12320         (complete_line): Remove duplicates and limit result to max_completions
12321         entries.
12322         (get_max_completions_reached_message): New function.
12323         (gdb_display_match_list): Handle max_completions.
12324         (_initialize_completer): New declaration and function.
12325         * symtab.c: Include completer.h.
12326         (completion_tracker): New static variable.
12327         (completion_list_add_name): Call maybe_add_completion.
12328         (default_make_symbol_completion_list_break_on_1): Renamed from
12329         default_make_symbol_completion_list_break_on.  Maintain
12330         completion_tracker across calls to completion_list_add_name.
12331         (default_make_symbol_completion_list_break_on): New function.
12332         * top.c (init_main): Set rl_completion_display_matches_hook.
12333         * tui/tui-io.c: Include completer.h.
12334         (tui_old_rl_display_matches_hook): New static global.
12335         (tui_rl_display_match_list): Notify user if max-completions reached.
12336         (tui_setup_io): Save/restore rl_completion_display_matches_hook.
12337         * NEWS (New Options): Mention set/show max-completions.
12338
12339 2015-01-31  Gary Benson  <gbenson@redhat.com>
12340
12341         * symtab.c (struct add_name_data) <code>: New field.
12342         Updated comments.
12343         (add_symtab_completions): New function.
12344         (symtab_expansion_callback): Likewise.
12345         (default_make_symbol_completion_list_break_on): Set datum.code.
12346         Move minimal symbol scan before calling expand_symtabs_matching.
12347         Scan known primary symtabs for externs and statics before calling
12348         expand_symtabs_matching.  Pass symtab_expansion_callback as
12349         expansion_notify argument to expand_symtabs_matching.  Do not scan
12350         primary symtabs for externs and statics after calling
12351         expand_symtabs_matching.
12352
12353 2015-01-31  Gary Benson  <gbenson@redhat.com>
12354
12355         * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
12356         (struct quick_symbol_functions) <expand_symtabs_matching>:
12357         New argument expansion_notify.  All uses updated.
12358         (expand_symtabs_matching): New argument expansion_notify.
12359         All uses updated.
12360         * symfile-debug.c (debug_qf_expand_symtabs_matching):
12361         Also print expansion notify.
12362         * symtab.c (expand_symtabs_matching_via_partial): Call
12363         expansion_notify whenever a partial symbol table is expanded.
12364         * dwarf2read.c (dw2_expand_symtabs_matching): Call
12365         expansion_notify whenever a symbol table is instantiated.
12366
12367 2015-01-31  Doug Evans  <xdje42@gmail.com>
12368
12369         * cli-out.c: #include completer.h, readline/readline.h.
12370         (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
12371         (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
12372         (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
12373         * cli-out.h (cli_display_match_list): Declare.
12374         * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
12375         (ELLIPSIS_LEN): Ditto.
12376         (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
12377         (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
12378         (gdb_fnprint, gdb_print_filename): Ditto.
12379         (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
12380         (gdb_display_match_list): Ditto.
12381         * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
12382         (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
12383         (mld_beep_ftype, mld_read_key_ftype): Ditto.
12384         (match_list_displayer): New struct.
12385         (gdb_display_match_list): Declare.
12386         * top.c (init_main): Set rl_completion_display_matches_hook.
12387         * tui/tui-io.c: #include completer.h.
12388         (printable_part, PUTX, print_filename, get_y_or_n): Delete.
12389         (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
12390         (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
12391         (tui_mld_getc, tui_mld_read_key): Ditto.
12392         (tui_rl_display_match_list): Rewrite.
12393         (tui_handle_resize_during_io): New arg for_completion.  All callers
12394         updated.
12395
12396 2015-01-31  Doug Evans  <xdje42@gmail.com>
12397
12398         Add symbol lookup cache.
12399         * NEWS: Document new options and commands.
12400         * symtab.c (symbol_cache_key): New static global.
12401         (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
12402         (SYMBOL_LOOKUP_FAILED): New macro.
12403         (symbol_cache_slot_state): New enum.
12404         (block_symbol_cache): New struct.
12405         (symbol_cache): New struct.
12406         (new_symbol_cache_size, symbol_cache_size): New static globals.
12407         (hash_symbol_entry, eq_symbol_entry): New functions.
12408         (symbol_cache_byte_size, resize_symbol_cache): New functions.
12409         (make_symbol_cache, free_symbol_cache): New functions.
12410         (get_symbol_cache, symbol_cache_cleanup): New function.
12411         (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
12412         (symbol_cache_lookup, symbol_cache_clear_slot): New function.
12413         (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
12414         (symbol_cache_flush, symbol_cache_dump): New functions.
12415         (maintenance_print_symbol_cache): New function.
12416         (maintenance_flush_symbol_cache): New function.
12417         (symbol_cache_stats): New function.
12418         (maintenance_print_symbol_cache_statistics): New function.
12419         (symtab_new_objfile_observer): New function.
12420         (symtab_free_objfile_observer): New function.
12421         (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
12422         (_initialize_symtab): Init symbol_cache_key.  New parameter
12423         maint symbol-cache-size.  New maint commands print symbol-cache,
12424         print symbol-cache-statistics, flush-symbol-cache.
12425         Install new_objfile, free_objfile observers.
12426
12427 2015-01-31  Joel Brobecker  <brobecker@adacore.com>
12428
12429         PR symtab/17855
12430         * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
12431         to end.
12432
12433 2015-01-31  Doug Evans  <xdje42@gmail.com>
12434
12435         * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
12436         * auto-load.c: #include ctype.h.
12437         (struct auto_load_pspace_info): Replace member loaded_scripts with
12438         new members loaded_script_files, loaded_script_texts.
12439         (auto_load_pspace_data_cleanup): Update.
12440         (init_loaded_scripts_info): Update.
12441         (get_auto_load_pspace_data_for_loading): Update.
12442         (maybe_add_script_file): Renamed from maybe_add_script.  All callers
12443         updated.
12444         (maybe_add_script_text): New function.
12445         (clear_section_scripts): Update.
12446         (source_script_file, execute_script_contents): New functions.
12447         (source_section_scripts): Add support for
12448         SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
12449         (print_scripts): New function.
12450         (auto_load_info_scripts): Also print inlined scripts.
12451         (maybe_print_unsupported_script_warning): Renamed from
12452         unsupported_script_warning_print.  All callers updated.
12453         (maybe_print_script_not_found_warning): Renamed from
12454         script_not_found_warning_print.  All callers updated.
12455         * extension-priv.h (struct extension_language_script_ops): New member
12456         objfile_script_executor.
12457         * extension.c (ext_lang_objfile_script_executor): New function.
12458         * extension.h (objfile_script_executor_func): New typedef.
12459         (ext_lang_objfile_script_executor): Declare.
12460         * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
12461         * guile/guile.c (guile_extension_script_ops): Update.
12462         * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
12463         * python/python.c (python_extension_script_ops): Update.
12464         (gdbpy_execute_objfile_script): New function.
12465
12466 2015-01-31  Eli Zaretskii  <eliz@gnu.org>
12467
12468         * tui/tui-io.c (tui_expand_tabs): New function.
12469         (tui_puts, tui_redisplay_readline): Expand TABs into the
12470         appropriate number of spaces.
12471         * tui/tui-regs.c: Include tui-io.h.
12472         (tui_register_format): Call tui_expand_tabs to expand TABs into
12473         the appropriate number of spaces.
12474         * tui/tui-io.h: Add prototype for tui_expand_tabs.
12475
12476 2015-01-30  Doug Evans  <dje@google.com>
12477
12478         * NEWS: "info source" command now display producer string if present.
12479         * source.c (source_info): Print producer string if present.
12480
12481 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12482
12483         * varobj.c (varobj_delete): Fix comment.
12484
12485 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12486
12487         * varobj.c (create_child): Modify comment.
12488
12489 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12490
12491         * ada-varobj.c (ada_number_of_children): Constify struct varobj *
12492         parameter.
12493         (ada_name_of_variable): Same.
12494         (ada_path_expr_of_child): Same.
12495         (ada_value_of_variable): Same.
12496         (ada_value_is_changeable_p): Same.
12497         (ada_value_has_mutated): Same.
12498         * c-varobj.c (varobj_is_anonymous_child): Same.
12499         (c_is_path_expr_parent): Same.
12500         (c_number_of_children): Same.
12501         (c_name_of_variable): Same.
12502         (c_path_expr_of_child): Same.
12503         (get_type): Same.
12504         (c_value_of_variable): Same.
12505         (cplus_number_of_children): Same.
12506         (cplus_name_of_variable): Same.
12507         (cplus_path_expr_of_child): Same.
12508         (cplus_value_of_variable): Same.
12509         * jv-varobj.c (java_number_of_children): Same.
12510         (java_name_of_variable): Same.
12511         (java_path_expr_of_child): Same.
12512         (java_value_of_variable): Same.
12513         * varobj.c (number_of_children): Same.
12514         (name_of_variable): Same.
12515         (is_root_p): Same.
12516         (varobj_ensure_python_env): Same.
12517         (varobj_get_objname): Same.
12518         (varobj_get_expression): Same.
12519         (varobj_get_display_format): Same.
12520         (varobj_get_display_hint): Same.
12521         (varobj_has_more): Same.
12522         (varobj_get_thread_id): Same.
12523         (varobj_get_frozen): Same.
12524         (dynamic_varobj_has_child_method): Same.
12525         (varobj_get_gdb_type): Same.
12526         (is_path_expr_parent): Same.
12527         (varobj_default_is_path_expr_parent): Same.
12528         (varobj_get_language): Same.
12529         (varobj_get_attributes): Same.
12530         (varobj_is_dynamic_p): Same.
12531         (varobj_get_child_range): Same.
12532         (varobj_value_has_mutated): Same.
12533         (varobj_get_value_type): Same.
12534         (number_of_children): Same.
12535         (name_of_variable): Same.
12536         (check_scope): Same.
12537         (varobj_editable_p): Same.
12538         (varobj_value_is_changeable_p): Same.
12539         (varobj_floating_p): Same.
12540         (varobj_default_value_is_changeable_p): Same.
12541
12542 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12543
12544         * varobj.c (varobj_get_path_expr): Set var->path_expr.
12545         * c-varobj.c (c_path_expr_of_child): Set local var instead of
12546         child->path_expr.
12547         (cplus_path_expr_of_child): Same.
12548
12549 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12550
12551         * mi-cmd-var.c (print_varobj): Free varobj_get_expression
12552         result.
12553         (mi_cmd_var_info_expression): Same.
12554         * varobj.c (varobj_get_expression): Mention in the comment that
12555         the result must by freed by the caller.
12556
12557 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12558
12559         * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
12560         varobj_get_type.
12561         (varobj_update_one): Same.
12562         * varobj.c (update_type_if_necessary): Free curr_type_str and
12563         new_type_str.
12564         (varobj_get_type): Specify in comment that the result needs to be
12565         freed by the caller.
12566
12567 2015-01-29  Doug Evans  <dje@google.com>
12568
12569         PR symtab/17890
12570         * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
12571
12572 2015-01-25  Mark Wielaard  <mjw@redhat.com>
12573
12574         * dwarf2read.c (checkproducer): Call producer_is_gcc.
12575         * utils.c (producer_is_gcc_ge_4): Likewise.
12576         (producer_is_gcc): New function.
12577         * utils.h (producer_is_gcc): New declaration.
12578
12579 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12580
12581         * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
12582         kind.
12583         * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
12584         parameter by "addr_stack" parameter.
12585         (resolve_dynamic_range): Replace "addr" parameter by
12586         "stack_addr" parameter.  Update function documentation.
12587         Update code accordingly.
12588         (resolve_dynamic_array, resolve_dynamic_union)
12589         (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
12590         (resolve_dynamic_type): Update code, following the changes made
12591         to resolve_dynamic_type_internal's interface.
12592         * dwarf2loc.h (struct property_addr_info): New.
12593         (dwarf2_evaluate_property): Replace "address" parameter
12594         by "addr_stack" parameter.  Adjust function documentation.
12595         (struct dwarf2_offset_baton): New.
12596         (struct dwarf2_property_baton): Update documentation of
12597         field "referenced_type" to be more general. New field
12598         "offset_info" in union data field.
12599         * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
12600         parameter by "addr_stack" parameter.  Adjust code accordingly.
12601         Add support for PROP_ADDR_OFFSET properties.
12602         * dwarf2read.c (attr_to_dynamic_prop): Add support for
12603         DW_AT_data_member_location attributes as well.  Use case
12604         statements instead of if/else condition.
12605
12606 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12607
12608         * ada-varobj.c (ada_varobj_get_array_number_of_children):
12609         Return zero if PARENT_VALUE is NULL and parent_type's
12610         range type is dynamic.
12611
12612 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12613
12614         * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
12615         nonzero if the type's subtype is dynamic.
12616         (resolve_dynamic_range): Also resolve the range's subtype.
12617
12618 2015-01-29  Alexander Klimov  <alserkli@inbox.ru>  (tiny patch)
12619
12620         Pushed by Joel Brobecker  <brobecker@adacore.com>.
12621         * symfile.c (unmap_overlay_command): Initialize sec to NULL.
12622
12623 2015-01-27  Doug Evans  <dje@google.com>
12624
12625         * NEWS: Mention gdb.Objfile.username.
12626         * python/py-objfile.c (objfpy_get_username): New function.
12627         (objfile_getset): Add "username".
12628
12629 2015-01-24  Mark Wielaard  <mjw@redhat.com>
12630
12631         * stack.c (return_command): Markup warning message with _.
12632
12633 2015-01-24  Doug Evans  <xdje42@gmail.com>
12634
12635         * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
12636
12637 2015-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
12638
12639         Fix 100x slowdown regression on DWZ files.
12640         * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
12641         (struct line_header): Add offset and offset_in_dwz.
12642         (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
12643         (free_line_header_voidp): New declaration.
12644         (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
12645         functions.
12646         (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
12647         (handle_DW_AT_stmt_list): Use line_header_hash.
12648         (free_line_header_voidp): New function.
12649         (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
12650         (dwarf_decode_lines): New parameter decode_mapping, use it.
12651         (dwarf2_free_objfile): Free line_header_hash.
12652
12653 2015-01-23  Simon Marchi  <simon.marchi@ericsson.com>
12654
12655         PR gdb/17416
12656         * valops.c (value_rtti_indirect_type): Catch exception thrown by
12657         value_ind.
12658
12659 2015-01-15  Mark Wielaard  <mjw@redhat.com>
12660
12661         * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
12662         DW_AT_noreturn.
12663         * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
12664         calling_convention an 8 bit bit field.
12665         (TYPE_NO_RETURN): New macro.
12666         * infcmd.c (finish_command): Query if function does not return
12667         normally.
12668         * stack.c (return_command): Likewise.
12669
12670 2015-01-23  Pedro Alves  <palves@redhat.com>
12671
12672         * linux-nat.c (linux_is_async_p): New macro.
12673         (linux_nat_is_async_p):
12674         (linux_nat_terminal_inferior): Check whether the target can async
12675         instead of whether it is already async.
12676         (linux_nat_terminal_ours): Don't check whether the target is
12677         async.
12678         (linux_async_pipe): Use linux_is_async_p.
12679
12680 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12681
12682         * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
12683         '-ascending'.
12684         * thread.c (tp_array_compar_ascending, tp_array_compar): New.
12685         (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
12686         Sort tp_array using tp_array_compar.
12687         (_initialize_thread): Extend thread_apply_all_command help.
12688
12689 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12690
12691         * corelow.c (core_open): Call also thread_command.
12692         * gdbthread.h (thread_command): New prototype moved from ...
12693         * thread.c (thread_command): ... here.
12694         (thread_command): Make it global.
12695
12696 2015-01-22  Pedro Alves  <palves@redhat.com>
12697
12698         * configure.ac [*mingw32*]: Check $curses_found instead of
12699         $prefer_curses.
12700         * configure: Regenerate.
12701         * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
12702         HAVE_NCURSES_NCURSES_H checks.
12703
12704 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
12705
12706         * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
12707         fails with the 1st arg NULL, try again with "unknown".  Don't test
12708         the "cup" capability: it isn't supported by the Windows port of
12709         ncurses, but the Windows console driver is still capable of
12710         supporting TUI.
12711
12712 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12713
12714         * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
12715
12716 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
12717
12718         * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
12719         (ALLDEPFILES): Remove irix5-nat.c.  These two are part of the
12720         reason that "make TAGS" is broken.
12721
12722 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
12723
12724         * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
12725         and check additional store instructions.
12726
12727 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
12728
12729         * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
12730
12731 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
12732
12733         * ppc-linux-tdep.c (ppc_skip_trampoline_code,
12734         ppc_canonicalize_syscall, ppc_linux_syscall_record,
12735         ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
12736         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12737         * rs6000-tdep.c (rs6000_epilogue_frame_cache,
12738         rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
12739         rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
12740         ppc_process_record_op19, ppc_process_record_op31,
12741         ppc_process_record_op59, ppc_process_record_op60,
12742         ppc_process_record_op63): Likewise.
12743
12744 2015-01-20  Joel Brobecker  <brobecker@adacore.com>
12745
12746         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
12747         (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
12748         strerror.
12749
12750 2015-01-20  Wei-cheng Wang  <cole945@gmail.com>
12751
12752         * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
12753         ppc_process_record_op31, ppc_process_record_op59,
12754         ppc_process_record_op60, ppc_process_record_op63,
12755         ppc_process_record): Fix -Wformat warning.
12756         * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12757         Remove unused variables.
12758
12759 2015-01-20  Chen Gang  <gang.chen.5i5j@gmail.com>
12760
12761         * MAINTAINERS (Write After Approval): Add "Chen Gang".
12762
12763 2015-01-19  Eli Zaretskii  <eliz@gnu.org>
12764
12765         * configure.ac [*mingw32*]: Only add windows-termcap.o to
12766         CONFIG_OBS if not building with a curses library.
12767         * configure: Regenerate.
12768
12769         * windows-termcap.c: Include defs.h.  Make the whole body empty if
12770         either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12771         HAVE_NCURSES_NCURSES_H is defined.
12772
12773 2015-01-19  Joel Brobecker  <brobecker@adacore.com>
12774
12775         * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12776         from end of line to start of next line.
12777
12778 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12779
12780         * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12781         Scan PLT stub backward for reverse debugging.
12782         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12783
12784 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12785             Ulrich Weigand  <uweigand@de.ibm.com>
12786
12787         * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12788         gdb_target_obs.
12789         (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12790         record.
12791         (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12792         ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12793         (ppc_linux_init_abi): Set process_record, process_record_signal.
12794         * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12795         ppc_linux_record_tdep to gdbarch_tdep.
12796         (ppc_process_record): New declaration.
12797         * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12798         ppc_process_record_op19, ppc_process_record_op31,
12799         ppc_process_record_op59, ppc_process_record_op60,
12800         ppc_process_record_op63, ppc_process_record): New functions.
12801
12802 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12803
12804         * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12805         rs6000_in_function_epilogue_frame_p and add an argument
12806         for frame_info.
12807         (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12808         rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12809         New functions.
12810         (rs6000_epilogue_frame_unwind): New.
12811         (rs6000_gdbarch_init): Append epilogue unwinder.
12812
12813 2015-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
12814
12815         * nat/linux-personality.c: Replace "#ifndef
12816         HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12817         !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12818         systems.
12819
12820 2015-01-16  Eli Zaretskii  <eliz@gnu.org>
12821
12822         * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12823         functions.
12824         (_initialize_tui_win) <border-kind, border-mode>:
12825         <active-border-mode>: Use tui_set_var_cmd as the "set" function.
12826         (tui_set_tab_width_command): Fix the commentary.
12827
12828         * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12829
12830         * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12831         Doc fix.
12832         (tui_set_tab_width_command): Delete and recreate the source and
12833         the disassembly windows, to show the effect of the changed tab
12834         size immediately.
12835
12836         * tui/tui-data.h (LINE_PREFIX): Make shorter
12837         (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12838         "Thread NNNNN.XXXX" thread ID notation on Windows.
12839
12840 2015-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12841
12842         Fix gcc-5 compilation.
12843         * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12844
12845 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
12846
12847         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12848         (linux-personality.o): New rule.
12849         * common/common-defs.h: Include <stdint.h>.
12850         * config/aarch64/linux.mh (NATDEPFILES): Include
12851         linux-personality.o.
12852         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12853         * config/arm/linux.mh (NATDEPFILES): Likewise.
12854         * config/i386/linux64.mh (NATDEPFILES): Likewise.
12855         * config/i386/linux.mh (NATDEPFILES): Likewise.
12856         * config/ia64/linux.mh (NATDEPFILES): Likewise.
12857         * config/m32r/linux.mh (NATDEPFILES): Likewise.
12858         * config/m68k/linux.mh (NATDEPFILES): Likewise.
12859         * config/mips/linux.mh (NATDEPFILES): Likewise.
12860         * config/pa/linux.mh (NATDEPFILES): Likewise.
12861         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12862         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12863         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12864         * config/s390/linux.mh (NATDEPFILES): Likewise.
12865         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12866         * config/sparc/linux.mh (NATDEPFILES): Likewise.
12867         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12868         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12869         * defs.h: Remove #include <stdint.h> (moved to
12870         common/common-defs.h).
12871         * linux-nat.c: Include nat/linux-personality.h.  Remove #include
12872         <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12873         nat/linux-personality.c).
12874         (linux_nat_create_inferior): Remove code to disable address space
12875         randomization (moved to nat/linux-personality.c).  Create cleanup
12876         to disable address space randomization.
12877         * nat/linux-personality.c: New file.
12878         * nat/linux-personality.h: Likewise.
12879
12880 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
12881
12882         * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12883         common/posix-strerror.c.
12884         (posix-strerror.o): New rule.
12885         (mingw-strerror.o): Likewise.
12886         * common/common-utils.h (safe_strerror): Move prototype to here,
12887         from utils.h.
12888         * common/common.host: New file.
12889         * common/mingw-strerror.c: Likewise.
12890         * common/posix-strerror.c: Likewise.
12891         * configure: Regenerated.
12892         * configure.ac: Source common/common.host.  Add variable
12893         common_host_obs to gdb_host_obs.
12894         * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12895         gdb/common/posix-strerror.c when warning about the use of
12896         strerror.
12897         * mingw-hdep.c (safe_strerror): Remove definition; move it to
12898         common/mingw-strerror.c.
12899         * posix-hdep.c (safe_strerror): Remove definition; move it to
12900         common/posix-hdep.c.
12901         * utils.h (safe_strerror): Remove prototype; move to
12902         common/common-utils.h.
12903
12904 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
12905
12906         GDB 7.8.2 released.
12907
12908 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
12909
12910         * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12911         ___XA type if the array has already been fixed.
12912
12913 2015-01-14  Yao Qi  <yao@codesourcery.com>
12914
12915         * Makefile.in (ppc-linux.o): New rule.
12916         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12917         * configure.ac: AC_CHECK_FUNCS(getauxval).
12918         * config.in: Re-generated.
12919         * configure: Re-generated.
12920         * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12921         Declare.
12922         * nat/ppc-linux.c: New file.
12923         * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12924         Call ppc64_64bit_inferior_p.
12925
12926 2015-01-14  Yao Qi  <yao@codesourcery.com>
12927
12928         * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12929         nat/ppc-linux.h.
12930         (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12931         (PPC_FEATURE_HAS_DFP): Likewise.
12932         (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12933         (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12934         (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12935         Include "nat/ppc-linux.h".
12936         * nat/ppc-linux.h: New file.
12937         * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12938
12939 2015-01-14  Pedro Alves  <palves@redhat.com>
12940
12941         PR gdb/17525
12942         * breakpoint.c: Include "interps.h".
12943         (bpstat_do_actions_1): Also check whether the interpreter is
12944         async.
12945
12946 2015-01-14  Pedro Alves  <palves@redhat.com>
12947
12948         PR cli/17828
12949         * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12950         reinstall if the interpreter is sync.
12951
12952 2015-01-13  Doug Evans  <dje@google.com>
12953
12954         * objfiles.c (objfile_filename): New function.
12955         * objfiles.h (objfile_filename): Declare it.
12956         (objfile_name): Add function comment.
12957         * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12958         bfd file name (which may be realpath'd), and the original name.
12959
12960 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12961
12962         * NEWS: Create a new section for the next release branch.
12963         Rename the section of the current branch, now that it has
12964         been cut.
12965
12966 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12967
12968         GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12969         * version.in: Bump version to 7.9.50.DATE-cvs.
12970
12971 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12972
12973         * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12974         Remove trailing new-line in argument of call to warning.
12975
12976 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12977
12978         * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12979         new-line in argument of call to "warning".
12980
12981 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12982
12983         * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12984         in static block, then try searching for primitive types.
12985
12986 2015-01-12  Patrick Palka  <patrick@parcs.ath.cx>
12987
12988         * top.h (gdb_add_history): Declare.
12989         * top.c (command_count): New variable.
12990         (gdb_add_history): New function.
12991         (gdb_safe_append_history): New static function.
12992         (quit_force): Call it.
12993         (command_line_input): Use gdb_add_history instead of
12994         add_history.
12995         * event-top.c (command_line_handler): Likewise.
12996
12997 2015-01-12  James Clarke  <jrtc27@jrtc27.com>  (tiny patch)
12998
12999         PR gdb/17046
13000         * darwin-nat.c: Replace <machine/setjmp.h> #include by
13001         <setjmp.h> #include.
13002
13003 2015-01-11  Doug Evans  <xdje42@gmail.com>
13004
13005         * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
13006
13007 2015-01-11  Doug Evans  <xdje42@gmail.com>
13008
13009         PR gdb/15830
13010         * NEWS: The "maint demangle" command is renamed as "demangle".
13011         * demangle.c: #include cli/cli-utils.h, language.h.
13012         (demangle_command): New function.
13013         (_initialize_demangle): Add new command "demangle".
13014         * maint.c (maintenance_demangle): Stub out.
13015         (_initialize_maint_cmds): Update help text for "maint demangle",
13016         and mark as deprecated.
13017
13018 2015-01-11  Mark Kettenis  <kettenis@gnu.org>
13019
13020         * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
13021         inferior_thread is a function.
13022
13023 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
13024
13025         * Makefile.in (.y.c): Don't munge yacc's #line
13026         directives.
13027
13028 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
13029
13030         * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
13031         to prompt for input.
13032         * tui/tui-hooks.c (tui_query_hook): Remove.
13033         (tui_install_hooks): Don't set deprecated_query_hook.
13034         * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
13035         height calculation.  Always update the command window's cur_line.
13036
13037 2015-01-09  Pedro Alves  <palves@redhat.com>
13038
13039         * breakpoint.c (hardware_breakpoint_inserted_here_p): New
13040         function.
13041         * breakpoint.h (hardware_breakpoint_inserted_here_p): New
13042         declaration.
13043         * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
13044         (linux_resume_one_lwp): Store the thread's PC.  Adjust to clear
13045         stop_reason.
13046         (check_stopped_by_watchpoint): New function.
13047         (save_sigtrap): Reimplement.
13048         (linux_nat_stopped_by_watchpoint): Adjust.
13049         (linux_nat_lp_status_is_event): Delete.
13050         (stop_wait_callback): Only call save_sigtrap after storing the
13051         pending status.
13052         (status_callback): If the thread had been stopped for a breakpoint
13053         that has since been removed, discard the event and resume the LWP.
13054         (count_events_callback, select_event_lwp_callback): Use
13055         lwp_status_pending_p instead of linux_nat_lp_status_is_event.
13056         (cancel_breakpoint): Rename to ...
13057         (check_stopped_by_breakpoint): ... this.  Record whether the LWP
13058         stopped for a software breakpoint or hardware breakpoint.
13059         (select_event_lwp): Only give preference to the stepping LWP in
13060         all-stop mode.  Adjust comments.
13061         (stop_and_resume_callback): Remove references to new_pending_p.
13062         (linux_nat_filter_event): Likewise.  Leave exit events of the
13063         leader thread pending here.  Handle signal short circuiting here.
13064         Only call save_sigtrap after storing the pending waitstatus.
13065         (linux_nat_wait_1): Remove 'retry' label.  Remove references to
13066         new_pending.  Don't handle leaving events the caller is not
13067         interested in pending here, nor handle signal short-circuiting
13068         here.  Also give equal priority to all LWPs that have had events
13069         in non-stop mode.  If reporting a software breakpoint event,
13070         unadjust the LWP's PC.
13071         * linux-nat.h (enum lwp_stop_reason): New.
13072         (struct lwp_info) <stop_pc>: New field.
13073         (struct lwp_info) <stopped_by_watchpoint>: Delete field.
13074         (struct lwp_info) <stop_reason>: New field.
13075         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
13076
13077 2015-01-09  Pedro Alves  <palves@redhat.com>
13078
13079         * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
13080         Set the LWP's 'resumed' flag.
13081
13082 2015-01-09  Pedro Alves  <palves@redhat.com>
13083
13084         * linux-nat.c (linux_resume_one_lwp): New function.
13085         (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
13086         (linux_nat_resume): Use lwp_status_pending_p and
13087         linux_resume_one_lwp.
13088         (linux_handle_syscall_trap): Use linux_resume_one_lwp.
13089         (linux_handle_extended_wait): Use linux_resume_one_lwp.
13090         (status_callback, running_callback): Use lwp_status_pending_p.
13091         (lwp_status_pending_p): New function.
13092         (stop_and_resume_callback): Use lwp_status_pending_p.
13093         (linux_nat_filter_event): Use linux_resume_one_lwp.
13094         (linux_nat_wait_1): Always use status_callback to look for an LWP
13095         with a pending status.  Use linux_resume_one_lwp.
13096         (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
13097         linux_resume_one_lwp.
13098
13099 2015-01-09  Pedro Alves  <palves@redhat.com>
13100
13101         * breakpoint.c (bp_location_inserted_here_p): New function,
13102         factored out from ...
13103         (breakpoint_inserted_here_p): ... here.  Use
13104         ALL_BP_LOCATIONS_AT_ADDR.
13105         (software_breakpoint_inserted_here_p): Use
13106         bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
13107
13108 2014-01-09  Pedro Alves  <palves@redhat.com>
13109
13110         Skip enabling event reporting if the kernel supports
13111         PTRACE_EVENT_CLONE.
13112         * linux-thread-db.c: Include "nat/linux-ptrace.h".
13113         (thread_db_use_events): New function.
13114         (try_thread_db_load_1): Check thread_db_use_events before enabling
13115         event reporting.
13116         (update_thread_state): New function.
13117         (attach_thread): Use it.  Check thread_db_use_events before
13118         enabling event reporting.
13119         (thread_db_detach): Check thread_db_use_events before disabling
13120         event reporting.
13121         (find_new_threads_callback): Check thread_db_use_events before
13122         enabling event reporting.  Update the thread's state if not using
13123         libthread_db events.
13124
13125 2015-01-09  Pedro Alves  <palves@redhat.com>
13126
13127         * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
13128         about to wait for is > 0.
13129         * linux-thread-db.c (find_new_threads_callback): Ignore thread if
13130         the kernel thread ID is -1.
13131
13132 2015-01-09  Pedro Alves  <palves@redhat.com>
13133
13134         * linux-nat.c (attach_proc_task_lwp_callback): New function.
13135         (linux_nat_attach): Use linux_proc_attach_tgid_threads.
13136         (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
13137         ptrace option flags.
13138         * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
13139         field.
13140         * nat/linux-procfs.c: Include <dirent.h>.
13141         (linux_proc_get_int): New parameter "warn".  Handle it.
13142         (linux_proc_get_tgid): Adjust.
13143         (linux_proc_get_tracerpid): Rename to ...
13144         (linux_proc_get_tracerpid_nowarn): ... this.
13145         (linux_proc_pid_get_state): New function, factored out from
13146         (linux_proc_pid_has_state): ... this.  Add new parameter "warn"
13147         and handle it.
13148         (linux_proc_pid_is_gone): New function.
13149         (linux_proc_pid_is_stopped): Adjust.
13150         (linux_proc_pid_is_zombie_maybe_warn)
13151         (linux_proc_pid_is_zombie_nowarn): New functions.
13152         (linux_proc_pid_is_zombie): Use
13153         linux_proc_pid_is_zombie_maybe_warn.
13154         (linux_proc_attach_tgid_threads): New function.
13155         * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
13156         (linux_proc_get_tracerpid): Rename to ...
13157         (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
13158         (linux_proc_pid_is_gone): New declaration.
13159         (linux_proc_pid_is_zombie): Update comment.
13160         (linux_proc_pid_is_zombie_nowarn): New declaration.
13161         (linux_proc_attach_lwp_func): New typedef.
13162         (linux_proc_attach_tgid_threads): New declaration.
13163         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
13164         use nowarn functions.
13165         (linux_ptrace_attach_fail_reason_string): Move here from
13166         gdbserver/linux-low.c and rename.
13167         (ptrace_supports_feature): If the current ptrace options are not
13168         known yet, check them now, instead of asserting.
13169         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
13170         Declare.
13171
13172 2015-01-09  Pedro Alves  <palves@redhat.com>
13173
13174         * linux-thread-db.c (thread_db_find_new_threads_silently)
13175         (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
13176         (find_new_threads_once): Print debug output on gdb_stdlog.
13177
13178 2015-01-09  Chen Gang  <gang.chen.5i5j@gmail.com>
13179             Pedro Alves  <palves@redhat.com>
13180
13181         * compile/compile.c: Include "gdb_wait.h".
13182         (do_rmdir): Check return value, and free 'zap'.
13183
13184 2015-01-08  Pedro Alves  <palves@redhat.com>
13185             Yao Qi  <yao@codesourcery.com>
13186
13187         * dwarf2loc.c (indirect_pieced_value): Don't call
13188         gdb_sign_extend.  Call extract_signed_integer instead.
13189         * utils.c (gdb_sign_extend): Remove.
13190         * utils.h (gdb_sign_extend): Remove declaration.
13191
13192 2015-01-07  Pierre Muller  <muller@sourceware.org>
13193
13194         PR symtab/17811
13195         * stabsread.c (define_symbol): Set language for C++ special symbols.
13196
13197 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
13198
13199         * inflow.c (initial_gdb_ttystate): Tweak comment.
13200
13201 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
13202
13203         * inflow.c (set_initial_gdb_ttystate): Add empty line after
13204         comment documenting function.
13205
13206 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
13207
13208         * terminal.h (set_initial_gdb_ttystate): Declare.
13209         * inflow.c (initial_gdb_ttystate): New static variable.
13210         (set_initial_gdb_ttystate): New setter.
13211         (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
13212         instead of our current terminal state.
13213         * top.c (gdb_init): Call set_initial_gdb_ttystate.
13214
13215 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
13216
13217         * guile/scm-type.c (tyscm_array_1): Add comment.
13218         * python/py-type.c (typy_array_1): Add comment.
13219
13220 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
13221
13222         * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
13223         error if N2 is equal to N1 - 1.
13224
13225 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
13226
13227         * python/py-type.c (typy_array_1): Do not raise negative-length
13228         exception if N2 is equal to N1 - 1.
13229
13230 2015-01-03  Doug Evans  <xdje42@gmail.com>
13231
13232         * c-exp.y: Whitespace cleanup.
13233         (classify_inner_name): Remove extra ;.
13234
13235 2015-01-02  Maciej W. Rozycki  <macro@codesourcery.com>
13236
13237         * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
13238         offset signed.
13239
13240 2015-01-02  Doug Evans  <dje@google.com>
13241
13242         * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
13243
13244 2015-01-02  Doug Evans  <dje@google.com>
13245
13246         * symtab.h (struct symbol): Fix typo in comment.
13247
13248 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
13249
13250         Update year range in copyright notice of all files.
13251
13252 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
13253
13254         * top.c (print_gdb_version): Update copyright year to 2015.
13255
13256 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
13257
13258         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
13259
13260 For older changes see ChangeLog-2014.
13261 \f
13262 Local Variables:
13263 mode: change-log
13264 left-margin: 8
13265 fill-column: 74
13266 version-control: never
13267 coding: utf-8
13268 End: