gdb/s390-linux: Step over MVCLE+JO (and similiar) as a unit.
[external/binutils.git] / gdb / ChangeLog
1 2015-11-04  Marcin Kościelnicki  <koriakin@0x04.net>
2
3         PR/18376
4         * gdb/s390-linux-tdep.c (s390_is_partial_instruction): New function.
5         (s390_software_single_step): New function.
6         (s390_displaced_step_hw_singlestep): New function.
7         (s390_gdbarch_init): Fill gdbarch slots with the above.
8
9 2015-11-04  Marcin Kościelnicki  <koriakin@0x04.net>
10
11         PR/18376
12         * gdb/configure.tgt: Add linux-record.o to s390*-linux.
13         * gdb/s390-linux-tdep.c: #include "linux-record.h", "record-full.h"
14         (s390_linux_record_tdep): New static global variable.
15         (s390x_linux_record_tdep): New static global variable.
16         (s390_all_but_pc_registers_record): New function.
17         (s390_canonicalize_syscall): New function.
18         (s390_linux_syscall_record): New function.
19         (s390_linux_record_signal): New function.
20         (s390_record_calc_disp_common): New function.
21         (s390_record_calc_disp): New function.
22         (s390_record_calc_disp_vsce): New function.
23         (s390_record_calc_rl): New function.
24         (s390_record_gpr_g): New function.
25         (s390_record_gpr_h): New function.
26         (s390_record_vr): New function.
27         (s390_process_record): New function.
28         (s390_init_linux_record_tdep): New function.
29         (s390_gdbarch_init): Fill record function slots.
30
31 2015-11-04  Marcin Kościelnicki  <koriakin@0x04.net>
32
33         * record-full.c (record_full_exec_insn): Use xmalloc for temporary
34         memory storage.
35
36 2015-11-04  Markus Metzger  <markus.t.metzger@intel.com>
37
38         * record.c (get_insn_history_modifiers): Set DISASSEMBLY_SOURCE
39         instead of DISASSEMBLY_SOURCE_DEPRECATED.  Also accept /s.
40         (_initialize_record): Document the /s modifier.
41         * NEWS: Announce record instruction-history's new /s modifier.
42
43 2015-11-04  Markus Metzger  <markus.t.metzger@intel.com>
44
45         * record-btrace.c (struct btrace_line_range): New.
46         (btrace_mk_line_range, btrace_line_range_add)
47         (btrace_line_range_is_empty, btrace_line_range_contains_range)
48         (btrace_find_line_range, btrace_print_lines): New.
49         (btrace_insn_history): Add source interleaving algorithm.
50
51 2015-11-04  Markus Metzger  <markus.t.metzger@intel.com>
52
53         * disasm.h (DISASSEMBLY_SPECULATION): New.
54         (struct disasm_insn): New.
55         (gdb_pretty_print_insn): New.
56         * disasm.c (gdb_pretty_print_insn): Replace parameter PC with INSN.
57         Update users.  Print instruction number and indicate speculative
58         execution, if requested.
59
60 2015-11-04  Markus Metzger  <markus.t.metzger@intel.com>
61
62         * disasm.c (dump_insns): Split into this and ...
63         (gdb_pretty_print_insn): ... this.
64
65 2015-11-03  Simon Marchi  <simon.marchi@polymtl.ca>
66
67         * xtensa-linux-nat.c (supply_gregset_reg): Make static.
68         (xtensa_linux_fetch_inferior_registers): Likewise.
69         (xtensa_linux_store_inferior_registers): Likewise.
70
71 2015-11-03  Simon Marchi  <simon.marchi@polymtl.ca>
72
73         * arm-linux-nat.c (arm_linux_read_description): Add cast.
74
75 2015-11-03  Simon Marchi  <simon.marchi@polymtl.ca>
76
77         * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint): Change
78         type of rw to enum target_hw_bp_type.
79         (ppc_linux_remove_mask_watchpoint): Likewise.
80         * target.c (target_insert_mask_watchpoint): Likewise.
81         (target_remove_mask_watchpoint): Likewise.
82         * target.h (target_insert_mask_watchpoint): Likewise.
83         (target_remove_mask_watchpoint): Likewise.
84         (struct target_ops) <to_insert_mask_watchpoint>: Likewise.
85         (struct target_ops) <to_remove_mask_watchpoint>: Likewise.
86         * target-delegates.c: Regenerate.
87
88 2015-11-03  Simon Marchi  <simon.marchi@polymtl.ca>
89
90         * remote-sim.c (check_for_duplicate_sim_descriptor): Add casts.
91         (get_sim_inferior_data): Likewise.
92         (sim_inferior_data_cleanup): Likewise.
93         (gdbsim_close_inferior): Likewise.
94         (gdbsim_resume_inferior): Likewise.
95         (gdbsim_wait): Likewise.
96         (simulator_command): Likewise.
97         (sim_command_completer): Likewise.
98
99 2015-11-03  Marcin Kościelnicki  <koriakin@0x04.net>
100
101         * MAINTAINERS (Write After Approval): Add Marcin Kościelnicki.
102
103 2015-10-30  Pedro Alves  <palves@redhat.com>
104
105         * breakpoint.c (breakpoint_in_range_p)
106         (breakpoint_location_address_range_overlap): New functions.
107         * breakpoint.h (breakpoint_in_range_p): New declaration.
108         * infrun.c (displaced_step_prepare_throw): If there's a breakpoint
109         in the scratch pad range, don't displaced step.
110
111 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
112
113         * amd64-linux-tdep.c (amd64_x32_linux_init_abi): Fix size_msghdr,
114         size_stack_t, size_size_t, size_iovec.
115
116 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
117
118         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Fix size_termios.
119         * amd64-linux-tdep.c (amd64_linux_init_abi): Fix size_termios.
120         (amd64_x32_linux_init_abi): Fix size_termios.
121
122 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
123
124         * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Fix TASK_COMM_LEN.
125
126 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
127
128         * linux-record.c (record_linux_system_call): Fix old_select.
129
130 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
131
132         * linux-record.c (record_linux_system_call): Fix newstatat.
133
134 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
135
136         * linux-record.c (record_linux_system_call): Fix [gs]etgroups16.
137
138 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
139
140         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add size_time_t.
141         * amd64-linux-tdep.c (amd64_linux_init_abi): Add size_time_t.
142         (amd64_x32_linux_init_abi): Add size_time_t.
143         * arm-linux-tdep.c (arm_linux_init_abi): Add size_time_t.
144         * i386-linux-tdep.c (i386_linux_init_abi): Add size_time_t.
145         * linux-record.c (record_linux_system_call): Add time, waitpid, pipe
146         handling.
147         * linux-record.h (struct linux_record_tdep): Add size_time_t.
148         * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Add size_time_t.
149
150 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
151
152         * linux-record.c (record_linux_msghdr): Fix msg_namelen handling.
153
154 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
155
156         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove
157         size_dirent{,64}, add size_old_dirent.
158         * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_dirent{,64},
159         add size_old_dirent.
160         (amd64_x32_linux_init_abi): Remove size_dirent{,64}, add
161         size_old_dirent.
162         * arm-linux-tdep.c (arm_linux_init_abi): Remove size_dirent{,64},
163         add size_old_dirent.
164         * i386-linux-tdep.c (i386_linux_init_abi): Remove size_dirent{,64},
165         add size_old_dirent.
166         * linux-record.c (record_linux_system_call): Fix handling of readdir
167         and getdents{,64}.
168         * linux-record.h (struct linux_record_tdep): Remove size_dirent{,64},
169         add size_old_dirent.
170         * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove
171         size_dirent{,64}, add size_old_dirent.
172
173 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
174
175         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Fix size_sigaction,
176         size_sigset_t, size_old_sigaction, size_old_sigset_t.
177         * amd64-linux-tdep.c (amd64_linux_init_abi): Fix size_sigaction,
178         size_sigset_t, size_old_sigaction, size_old_sigset_t.
179         (amd64_x32_linux_init_abi): Fix size_sigaction, size_sigset_t,
180         size_old_sigaction, size_old_sigset_t.
181         * arm-linux-tdep.c (arm_linux_init_abi): Fix size_sigaction,
182         size_old_sigaction, size_old_sigset_t.
183         * i386-linux-tdep.c (i386_linux_init_abi): Fix size_sigaction,
184         size_old_sigaction, size_old_sigset_t.
185         * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Fix size_sigaction,
186         size_sigset_t, size_old_sigaction, size_old_sigset_t.
187
188 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
189
190         * arm-linux-tdep.c (arm_linux_init_abi): Fix size_[ug]id.
191         * i386-linux-tdep.c (i386_linux_init_abi): Fix size_[ug]id.
192
193 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
194
195         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove size_siginfo.
196         * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_siginfo.
197         (amd64_x32_linux_init_abi): Remove size_siginfo.
198         * arm-linux-tdep.c (arm_linux_init_abi): Remove size_siginfo.
199         * i386-linux-tdep.c (i386_linux_init_abi): Remove size_siginfo.
200         * linux-record.c (record_linux_system_call): Change size_siginfo
201         to size_siginfo_t.
202         * linux-record.h (struct linux_record_tdep): Remove size_siginfo.
203         * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove size_siginfo.
204
205 2015-10-29  Pedro Alves  <palves@redhat.com>
206
207         * mdebugread.c (add_data_symbol): New function, factored out from
208         ...
209         (parse_symbol): ... here.  Delete 'theclass' local.
210
211 2015-10-29  Simon Marchi  <simon.marchi@polymtl.ca>
212
213         * jit.c (jit_target_read_impl): Add cast.
214
215 2015-10-29  Simon Marchi  <simon.marchi@polymtl.ca>
216
217         * jit.c (jit_reader_load): Add cast.
218
219 2015-10-29  Simon Marchi  <simon.marchi@polymtl.ca>
220
221         * dwarf2read.c (partial_die_full_name): Add cast.
222
223 2015-10-29  Pedro Alves  <palves@redhat.com>
224
225         * common/vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
226
227 2015-10-29  Pedro Alves  <palves@redhat.com>
228
229         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Add cast.
230
231 2015-10-29  Eli Zaretskii  <eliz@gnu.org>
232
233         * utils.c (init_page_info): Disable paging if INSIDE_EMACS is set
234         in the environment.
235
236 2015-10-29  Pedro Alves  <palves@redhat.com>
237
238         * gnu-v2-abi.c (gnuv2_is_destructor_name)
239         (gnuv2_is_constructor_name): Add casts.
240
241 2015-10-29  Pedro Alves  <palves@redhat.com>
242
243         * common/common-exceptions.c (exception_none): Add cast.
244
245 2015-10-29  Pedro Alves  <palves@redhat.com>
246
247         * compile/compile-c-types.c (struct type_map_instance)
248         <gcc_type>: Rename to gcc_type_handle.
249         (insert_type, convert_type): Adjust.
250
251 2015-10-29  Pedro Alves  <palves@redhat.com>
252
253         * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Don't
254         assume that "break" breaks out of a TRY/CATCH.
255         * python/py-framefilter.c (py_print_single_arg): Don't assume
256         "continue" breaks out of a TRY/CATCH.
257         * python/py-value.c (valpy_binop_throw): New function, factored
258         out from ...
259         (valpy_binop): ... this.
260         (valpy_richcompare_throw): New function, factored
261         out from ...
262         (valpy_richcompare): ... this.
263         * solib.c (solib_read_symbols): Don't assume "break" breaks out
264         of a TRY/CATCH.
265         * common/common-exceptions.h [USE_RAW_CXX_TRY]
266         <TRY/CATCH/END_CATCH>: Define as 1-1 wrappers around try/catch.
267
268 2015-10-28  Simon Dardis  <Simon.Dardis@imgtec.com>
269
270         * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Recognise 'or'
271         as move along with [d]addu.
272
273 2015-10-28  Yao Qi  <yao.qi@linaro.org>
274
275         * aarch64-tdep.c (aarch64_software_single_step): Pass 1 to
276         aarch64_decode_insn.
277
278 2015-10-27  Pedro Alves  <palves@redhat.com>
279
280         * common/print-utils.c (host_address_to_string): Rename to ...
281         (host_address_to_string_1): ... this.
282         * common/print-utils.h (host_address_to_string): Reimplement as
283         wrapper around host_address_to_string_1.
284         * utils.c (gdb_print_host_address): Rename to ...
285         (gdb_print_host_address_1): ... this.
286         * utils.h (gdb_print_host_address): Reimplement as wrapper macro
287         around  host_address_to_string_1.
288
289 2015-10-27  Pedro Alves  <palves@redhat.com>
290
291         * alpha-tdep.c (alpha_read_insn): Always pass TARGET_XFER_E_IO to
292         memory_error.  Rename local 'status' to 'res'.
293         * c-lang.c (c_get_string): Always pass TARGET_XFER_E_IO to
294         memory_error.
295         * corefile.c (read_stack, read_code, write_memory): Always pass
296         TARGET_XFER_E_IO to memory_error.
297         * disasm.c (dis_asm_memory_error): Always pass TARGET_XFER_E_IO to
298         memory_error.  Rename parameter 'status' to 'err'.
299         (dump_insns): Rename local 'status' to 'err'.
300         * mips-tdep.c (mips_fetch_instruction): Rename parameter 'statusp'
301         to 'errp'.  Rename local 'status' to 'err'.  Always pass
302         TARGET_XFER_E_IO to memory_error.
303         (mips_breakpoint_from_pc): Rename local 'status' to 'err'.
304         * target.c (target_read_memory, target_read_raw_memory)
305         (target_read_stack, target_read_code, target_write_memory)
306         (target_write_raw_memory): Return -1 on error instead of
307         TARGET_XFER_E_IO.
308         * valprint.c (val_print_string): Rename local 'errcode' to 'err'.
309         Always pass TARGET_XFER_E_IO to memory_error.  Update comment.
310
311 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
312
313         * guile/guile-internal.h (gdbscm_with_guile): Change return
314         types to const char *.
315         * guile/scm-safe-call.c (gdbscm_with_guile): Likewise.
316         (struct c_data) <func>: Likewise.
317         (struct c_data) <result>: Change type to const char *.
318         (scscm_eval_scheme_string): Change return type to
319         const char *.
320         (scscm_source_scheme_script): Likewise.
321         (gdbscm_safe_eval_string): Change type of result variable to
322         const char * and remove cast.
323         (gdbscm_safe_source_script): Likewise.
324         * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker):
325         Change return type to const char *.
326         (gdbscm_disasm_read_memory): Change type of status to
327         const char *.
328
329 2015-10-27  Pedro Alves  <palves@redhat.com>
330
331         * source.c (openp): New local 'last_errno'.  Use it to
332         save/restore errno.
333
334 2015-10-27  Pedro Alves  <palves@redhat.com>
335
336         * psymtab.c (dump_psymtab_addrmap_1): Add casts.
337
338 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
339
340         * ctf.c (SET_ENUM_FIELD): New macro.
341         (ctf_read_status): Use it.
342         (ctf_read_tp): Use it.
343
344 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
345
346         * guile/scm-breakpoint.c (gdbscm_set_breakpoint_stop_x): Add
347         scm_t_dynwind_flags casts.
348         * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
349         * guile/scm-ports.c (gdbscm_open_memory): Likewise.
350         * guile/scm-value.c (gdbscm_value_to_string): Likewise.
351
352 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
353
354         * ax.h (ax_raw_byte): New declaration.
355         * ax-general.c (ax_raw_byte): New function.
356         (ax_simple): Use ax_raw_byte.
357         * ax-gdb.c (gen_printf): Likewise.
358
359 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
360
361         * ada-lang.h (GROW_VECT): Add cast.
362
363 2015-10-26  Doug Evans  <xdje42@gmail.com>
364
365         * symtab.h (struct general_symbol_info> <ada_mangled>: Update comment.
366
367 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
368
369         * target.c (memory_xfer_partial): Change type of buf to gdb_byte
370         pointer.
371         (simple_search_memory): Cast return of memmem.
372
373 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
374
375         * stap-probe.c (handle_stap_probe): Add (const char *) casts.
376
377 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
378
379         * ctf.c (ctf_xfer_partial): Return TARGET_XFER_E_IO instead of
380         -1 on error.
381
382 2015-10-26  Doug Evans  <dje@google.com>
383
384         PR symtab/17391
385         * dwarf2-frame.c (dwarf2_restore_rule): Call dwarf_reg_to_regnum
386         instead of gdbarch_dwarf2_reg_to_regnum.
387         (dwarf2_frame_cache): Ditto.
388         (read_addr_from_reg): Call dwarf_reg_to_regnum_or_error instead of
389         gdbarch_dwarf2_reg_to_regnum.
390         (get_reg_value): Ditto.
391         (dwarf2_fetch_cfa_info): Ditto.
392         (dwarf2_frame_prev_register): Ditto.
393         * dwarf2loc.c: #include "complaints.h".
394         (dwarf_expr_read_addr_from_reg): Call dwarf_reg_to_regnum_or_error
395         instead of gdbarch_dwarf2_reg_to_regnum.
396         (dwarf_expr_get_reg_value): Ditto.
397         (read_pieced_value): Ditto.
398         (write_pieced_value): Ditto.
399         (dwarf2_evaluate_loc_desc_full): Ditto.
400         (dwarf_reg_to_regnum): New function.
401         (throw_bad_regnum_error): New function.
402         (dwarf_reg_to_regnum_or_error): Renamed from
403         dwarf2_reg_to_regnum_or_errorChange to take a ULONGEST regnum.
404         All callers updated.  Call throw_bad_regnum_error.
405         (locexpr_regname): Improve text of bad register number.
406         * dwarf2loc.h (dwarf_reg_to_regnum): Declare.
407         (dwarf_reg_to_regnum_or_error): Update prototype.
408         * dwarf2expr.c: #include "dwarf2loc.h".
409         (dwarf_block_to_sp_offset): Call dwarf_reg_to_regnum instead of
410         gdbarch_dwarf2_reg_to_regnum.
411         * gdbarch.sh (dwarf2_reg_to_regnum): Add comment.
412         * gdbarch.h: Regenerate.
413         * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Remove warning for bad
414         register.
415         * avr-tdep.c (avr_dwarf_reg_to_regnum): Ditto.
416         * cris-tdep.c (cris_dwarf2_reg_to_regnum): Ditto.
417         * bfin-tdep.c (bfin_reg_to_regnum): Fix error checking.
418         * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Improve error checking.
419         Remove warning for bad register.
420         * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Ditto.
421         * i386-tdep.c (i386_svr4_dwarf_reg_to_regnum): Renamed from
422         i386_svr4_reg_to_regnum.  Return -1 for bad registers.
423         (i386_svr4_reg_to_regnum): New function.
424         (i386_gdbarch_init): Update call to set_gdbarch_dwarf2_reg_to_regnum.
425         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Don't assert
426         on bad registers, return -1.
427         * msp430-tdep.c (msp430_dwarf2_reg_to_regnum): Improve error checking.
428         Remove warning for bad register.
429         * nios2-tdep.c: Add static assert for NIOS2_NUM_REGS.
430         (nios2_dwarf_reg_to_regnum): Fix off-by-one error.
431         Remove warning for bad register.  Return -1 for bad register.
432         * rl78-tdep.c (rl78_dwarf_reg_to_regnum): Don't flag an internal error
433         for bad register, return -1.
434         * rx-tdep.c (rx_dwarf_reg_to_regnum): Ditto.
435         * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Fix error result.
436         * mep-tdep.c (mep_debug_reg_to_regnum): Ditto.
437         * mips-tdep.c (mips_stab_reg_to_regnum): Ditto.
438         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
439         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Remove warning
440         for bad regs.
441         * xtensa-tdep.c (xtensa_reg_to_regnum): Remove internal error for
442         bad regs.  Fix error result.
443         * stabsread.c (stab_reg_to_regnum): Watch for negative regno.
444         (reg_value_complaint): Update complaint text.
445         * mdebugread.c (reg_value_complaint): New function.
446         (mdebug_reg_to_regnum): Rewrite to watch for bad reg numbers.
447
448 2015-10-26  Doug Evans  <dje@google.com>
449
450         PR python/18938
451         * cli/cli-cmds (source_script_fron_sctream): New arg file_to_open.
452         All callers updated.
453
454 2015-10-26  Doug Evans  <dje@google.com>
455
456         * psymtab.c (struct dump_psymtab_addrmap_data): Define.
457         (dump_psymtab_addrmap_1, dump_psymtab_addrmap): New functions.
458         (maintenance_print_psymbols): Print address map.
459
460 2015-10-26  Doug Evans  <dje@google.com>
461
462         * nat/linux-nat.h (__SIGRTMIN): Move here from gdbserver/linux-low.c.
463
464 2015-10-26  Doug Evans  <dje@google.com>
465
466         * common/gdb_wait.h (W_STOPCODE): Define, moved here from
467         gdbserver/linux-low.c.
468         (WSETSTOP): Simplify.
469
470 2015-10-26  Doug Evans  <dje@google.com>
471
472         * linux-thread-db.c (find_new_threads_callback): Ditto.
473         (thread_db_pid_to_str): Ditto.
474
475 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
476
477         * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Do not pass a
478         local char array to scm_mode_bits, use a cast instead.
479
480 2015-10-26  Simon Marchi  <simon.marchi@ericsson.com>
481
482         * tui/tui-data.c (tui_alloc_content): Don't check xmalloc
483         result.  Change type of element_block_ptr.  Change allocation to
484         use XNEWVEC.
485
486 2015-10-26  Luis Machado  <lgustavo@codesourcery.com>
487
488         * record-full.c (record_full_message_wrapper_safe): Pass empty string to
489         catch_errors call instead of NULL.
490
491 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
492
493         * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Pass non-const
494         char pointer to scm_mode_bits.
495
496 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
497
498         * symtab.c (default_make_symbol_completion_list_break_on_1): Add
499         cast.
500
501 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
502
503         * guile/scm-ports.c (gdbscm_memory_port_write): Declare new
504         "data" local variable and use it.
505
506 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
507
508         * guile/scm-symbol.c (gdbscm_lookup_global_symbol): Add
509         domain_enum cast.
510         (gdbscm_lookup_symbol): Likewise.
511
512 2015-10-25  Iain Buclaw  <ibuclaw@gdcproject.org>
513
514         * d-exp.y: Remove an obsolete comment and propagate the block
515         information to the produced expression.
516
517 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
518
519         * tui/tui-data.c (tui_add_to_source_windows): Remove void *
520         cast.
521         (tui_add_content_elements): Likewise.
522
523 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
524
525         * cli/cli-setshow.c (do_set_command): Constify p.
526
527 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
528
529         * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Replace
530         (void *) cast with (gdb_byte *).
531
532 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
533
534         * proc-service.c (ps_pdread): Add cast.
535
536 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
537
538         * sparc64-tdep.c (sparc64_store_arguments): Split assignment of
539         valbuf.
540
541 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
542
543         * ia64-tdep.c (ia64_pseudo_register_write): Remove cast.
544         (ia64_push_dummy_call): Remove cast and change type of "to" to
545         array of gdb_byte.
546
547 2015-10-23  Simon Marchi  <simon.marchi@polymtl.ca>
548
549         * linux-btrace.c (linux_enable_pt): Add cast to mmap return.
550
551 2015-10-23  Simon Marchi  <simon.marchi@ericsson.com>
552
553         * observer.h (observer_${event}_notification_stub): Add cast.
554
555 2015-10-23  Yao Qi  <yao.qi@linaro.org>
556
557         * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set
558         dsd.insn_count to zero.
559
560 2015-10-22  Pedro Alves  <palves@redhat.com>
561
562         * infrun.c (stop_after_trap): Delete.
563         (clear_proceed_status, handle_signal_stop, struct
564         infcall_control_state, save_infcall_control_state)
565         (restore_infcall_control_state): Remove references to
566         stop_after_trap.
567
568 2015-10-22  Simon Marchi  <simon.marchi@ericsson.com>
569
570         * python/python.c (_initialize_python): Add cast.
571
572 2015-10-22  Simon Marchi  <simon.marchi@ericsson.com>
573
574         * nto-tdep.c (nto_inferior_data): Add cast.
575
576 2015-10-22  Pedro Alves  <palves@redhat.com>
577
578         * windows-nat.c (do_initial_windows_stuff): Rewrite loop using
579         windows_wait and windows_resume directly instead of
580         wait_for_inferior and resume.
581
582 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
583
584         * xtensa-tdep.h (XTREG): Add casts.
585         (XTREG_END): Likewise.
586
587 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
588
589         * solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
590
591 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
592
593         * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
594
595 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
596
597         * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
598         buf to gdb_byte*.
599         (supply_32bit_reg): Add cast.
600         (mips64_fill_gregset): Likewise.
601
602 2015-10-21  Simon Marchi  <simon.marchi@polymtl.ca>
603
604         PR python/18073
605         * python/py-type.c (typy_get_composite): Allow returning a
606         function type.
607
608 2015-10-21  Keven Boell  <keven.boell@intel.com>
609
610         * dwarf2read.c (set_die_type): Add read of
611         DW_AT_allocated and DW_AT_associated.
612         * f-typeprint.c: New include of typeprint.h
613         (f_print_type): Add check for allocated/associated
614         status of type.
615         (f_type_print_varspec_suffix): Add check for
616         * gdbtypes.c (create_array_type_with_stride):
617         Add check for valid data location of type in
618         case allocated or associated attributes are set.
619         Length of an array should be only calculated if
620         allocated or associated is resolved as true.
621         (is_dynamic_type_internal): Add check for allocated/
622         associated.
623         (resolve_dynamic_array): Evaluate allocated/associated
624         properties.
625         * gdbtypes.h (enum dynamic_prop_node_kind): <DYN_PROP_ALLOCATED>
626         <DYN_PROP_ASSOCIATED>: New enums.
627         (TYPE_ALLOCATED_PROP, TYPE_ASSOCIATED_PROP): New macros.
628         (type_not_allocated): New function.
629         (type_not_associated): New function.
630         * valarith.c (value_subscripted_rvalue): Add check for
631         allocated/associated.
632         * valprint.c: New include of typeprint.h.
633         (valprint_check_validity): Add check for allocated/associated.
634         (value_check_printable): Add check for allocated/
635         associated.
636         * typeprint.h (val_print_not_allocated): New function.
637         (val_print_not_associated): New function.
638         * typeprint.c (val_print_not_allocated): New function.
639         (val_print_not_associated): New function.
640
641 2015-10-21  Antoine Tremblay  <antoine.tremblay@ericsson.com>
642
643         * Makefile.in: Add arm.c/o.
644         * arch/arm.c: New file.
645         * arch/arm.h: (IS_THUMB_ADDR): Move macro from arm-tdep.c.
646         (MAKE_THUMB_ADDR): Likewise.
647         (UNMAKE_THUMB_ADDR): Likewise.
648         * arm-tdep.c (int thumb_insn_size): Move to arm.c.
649         (IS_THUMB_ADDR): Move to arm.h.
650         (MAKE_THUMB_ADDR): Likewise.
651         (UNMAKE_THUMB_ADDR): Likewise.
652         * configure.tgt: Add arm.o to all ARM configs.
653
654 2015-10-21  Yao Qi  <yao.qi@linaro.org>
655
656         * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
657         Remove argument exp_vCont_s.
658         * gdb.base/range-stepping.exp: Callers updated.
659         * gdb.trace/range-stepping.exp: Likewise.
660
661 2015-10-21  Aleksandar Ristovski  <aristovski@qnx.com>
662
663         * gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
664         (nto_sniff_abi_note_section): New function.
665         (nto_elf_osabi_sniffer): Use new function to recognize nto specific
666         binary.
667
668 2015-10-21  Aleksandar Ristovski  <aristovski@qnx.com>
669
670         * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
671         (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
672         * nto-tdep.c (nto_new_inferior_data_reg): New definition.
673         (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
674         New functions.
675         (_initialize_nto_tdep): New forward declaration, new function.
676         * nto-tdep.h (struct nto_inferior_data): New struct.
677         (nto_inferior_data): New function declaration.
678
679 2015-10-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
680
681         * findvar.c (address_from_register): Check REGNUM validity.
682
683 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
684
685         * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
686         (init_procfs_targets): Wire new function.
687
688 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
689
690         * nto-procfs.c (sys/auxv.h): Include.
691         (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
692         * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
693         * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
694
695 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
696
697         * nto-procfs.c (nto_procfs_path): Rename to...
698         (nodestr): ... this, and change type.
699         (nto_node): Use new variable and logic accordingly.
700         (procfs_open_1): Use new variable name. Use local buffer to construct
701         procfrs path.
702         (procfs_pidlist): Use NODESTR to construct procfs path.
703         (procfs_files_info): Use NODESTR to output meaningful text.
704         (do_attach): Construct procfs using NODESTR.
705         (procfs_create_inferior): Compare pointer to NULL.
706
707 2015-10-19  Josh Stone  <jistone@redhat.com>
708
709         * linux-nat.c (linux_handle_syscall_trap): Always update entry/
710         return state, even when not actively catching syscalls at all.
711         (linux_handle_extended_wait): Mark syscall_state like an entry.
712         (wait_lwp): Set syscall_state ignored for other traps.
713         (linux_nat_filter_event): Likewise.
714
715 2015-10-19  Luis Machado  <lgustavo@codesourcery.com>
716
717         * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
718         when handling 'E', 'T', 'S', 'X' and 'W' packets.
719         Do not set rs->waiting_for_stop_reply back to 1.
720
721 2015-10-16  Aleksandar Ristovski  <aristovski@qnx.com>
722
723         * nto-procfs.c (common/filestuff.h): Include.
724         (procfs_can_use_hw_breakpoint): Fix enum name.
725         (procfs_open_1): Fix compiler warning.
726         (procfs_pidlist): Make static.
727         (procfs_meminfo): Make static, fix type name, add missing argument.
728         (procfs_store_registers): Make static.
729         (procfs_thread_info): Remove unused function.
730         (_initialize_procfs): Forward declare.
731
732 2015-10-16  Yao Qi  <yao.qi@arm.com>
733
734         * MAINTAINERS: Update my email address.
735
736 2015-10-15  Yao Qi  <yao.qi@linaro.org>
737
738         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
739         Call gdbarch_breakpoint_from_pc to instruction length.
740         (aarch64_linux_remove_hw_breakpoint): Likewise.
741         * common/common-regcache.h (regcache_register_size): Declare.
742         * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
743         (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
744         the process is 32bit, otherwise set alignment to 4.
745         (aarch64_handle_breakpoint): Update comments.
746         * regcache.c (regcache_register_size): New function.
747
748 2015-10-15  Aleksandar Ristovski  <aristovski@qnx.com>
749
750         * gdbarch.sh (core_regset_section): Remove.
751         * gdbarch.h: Regenerate.
752
753 2015-10-14  Yao Qi  <yao.qi@linaro.org>
754
755         * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
756         out of it.
757         (enum aarch64_memory_operand_type): New.
758
759 2015-10-13  David Edelsohn  <dje.gcc@gmail.com>
760
761         * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
762
763 2015-10-13  Pedro Alves  <palves@redhat.com>
764
765         * ada-lang.c (ada_enum_name): Constify local.
766         * ada-typeprint.c (print_range_bound): Constify locals.
767         * c-varobj.c (c_describe_child): Likewise.
768         * cli/cli-setshow.c (do_set_command): Likewise.
769         * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
770         * dwarf2read.c (find_file_and_directory): Likewise.
771         (anonymous_struct_prefix, dwarf2_name): Likewise.
772         * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
773         * go-lang.c (unpack_mangled_go_symbol): Likewise.
774         * jv-typeprint.c (java_type_print_base): Likewise.
775         * ser-tcp.c (net_open): Likewise.
776         * symfile.c (deduce_language_from_filename): Likewise.
777         * symtab.c (gdb_mangle_name): Likewise.
778         * tui/tui-io.c (tui_redisplay_readline): Likewise.
779
780 2015-10-13  Pedro Alves  <palves@redhat.com>
781
782         * infrun.c (restore_execution_direction): New function.
783         (fetch_inferior_event): Use it instead of
784         make_cleanup_restore_integer.
785         (execution_direction): Change type to enum
786         exec_direction_kind.
787         * infrun.h (execution_direction): Likewise.
788
789 2015-10-13  Pedro Alves  <palves@redhat.com>
790
791         * ada-lang.c (ada_value_primitive_packed_val): Constify
792         locals.  Use value_contents_writeable.  Remove casts.
793
794 2015-10-13  Pedro Alves  <palves@redhat.com>
795
796         * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
797         and alloca calls.
798
799 2015-10-13  Simon Marchi  <simon.marchi@polymtl.ca>
800
801         * lm32-tdep.c (lm32_push_dummy_call): Replace call to
802         write_memory with write_memory_unsigned_integer.
803
804 2015-10-13  Simon Marchi  <simon.marchi@polymtl.ca>
805
806         * solib-dsbt.c (cmp_name): Constify arguments.
807         * solib-frv.c (cmp_name): Likewise.
808         * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
809         * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
810         (bfd_lookup_symbol_from_dyn_symtab): Likewise.
811         (gdb_bfd_lookup_symbol): Likewise.
812         * solib.h (gdb_bfd_lookup_symbol): Likewise.
813         (gdb_bfd_lookup_symbol_from_symtab): Likewise.
814
815 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
816
817         * stack.c (parse_frame_specification): Remove message parameter,
818         replace with fixed string in function body, update function
819         comment.
820         (frame_info): Remove message to parse_frame_specification.
821         (select_frame_command): Likewise.
822
823 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
824
825         * stack.c (parse_frame_specification): Delete.
826         (parse_frame_specification_1): Rename to
827         parse_frame_specification.
828         (frame_info): Use parse_frame_specification.
829         (select_frame_command): Likewise.
830         (return_command): Use select_frame and print_stack_frame rather
831         than frame_command and select_frame_command.
832         (func_command): Use get_current_frame rather than
833         parse_frame_specification.
834
835 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
836
837         * stack.c (func_command): Return early when there is no ARG
838         string.
839
840 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
841
842         * stack.c: Include safe-ctype.h not ctype.h.
843         (parse_frame_specification): Use ISSPACE not isspace.
844         (backtrace_command): Use TOLOWER not tolower.
845
846 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
847
848         * mep-tdep.c (current_me_module): Add cast.
849         (mep_gdbarch_init): Likewise.
850
851 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
852
853         * m32c-tdep.c (m32c_move_reg_t): Replace with...
854         (m32c_write_reg_t): ...this and...
855         (m32c_read_reg_t): ...this.
856         (struct m32c_reg): Update types of read and write.
857         (m32c_raw_read): Change declaration type to m32c_read_reg_t and
858         adjust definition.
859         (m32c_banked_read): Likewise.
860         (m32c_sb_read): Likewise.
861         (m32c_part_read): Likewise.
862         (m32c_cat_read): Likewise.
863         (m32c_r3r2r1r0_read): Likewise.
864         (m32c_raw_write): Change declaration type to m32c_write_reg_t
865         and adjust definition.
866         (m32c_banked_write): Likewise.
867         (m32c_sb_write): Likewise.
868         (m32c_part_write): Likewise.
869         (m32c_cat_write): Likewise.
870         (m32c_r3r2r1r0_write): Likewise.
871
872 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
873
874         * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
875
876 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
877
878         * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
879         gdb_sys_no_syscall instead of -1.
880
881 2015-10-12  Yao Qi  <yao.qi@linaro.org>
882
883         * NEWS: Mention the change.
884
885 2015-10-12  Yao Qi  <yao.qi@linaro.org>
886
887         * arch/aarch64-insn.c (emit_load_store): Rename to ...
888         (aarch64_emit_load_store): ... it.  All callers updated.
889
890 2015-10-12  Yao Qi  <yao.qi@linaro.org>
891
892         * arch/aarch64-insn.c (emit_insn): Rename to ...
893         (aarch64_emit_insn): ... it.  All callers updated.
894
895 2015-10-12  Yao Qi  <yao.qi@linaro.org>
896
897         * aarch64-linux-tdep.c: Include arch-utils.h.
898         (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
899         set_gdbarch_displaced_step_copy_insn,
900         set_gdbarch_displaced_step_fixup,
901         set_gdbarch_displaced_step_free_closure,
902         set_gdbarch_displaced_step_location,
903         and set_gdbarch_displaced_step_hw_singlestep.
904         * aarch64-tdep.c (struct displaced_step_closure): New.
905         (struct aarch64_displaced_step_data): New.
906         (aarch64_displaced_step_b): New function.
907         (aarch64_displaced_step_b_cond): Likewise.
908         (aarch64_register): Likewise.
909         (aarch64_displaced_step_cb): Likewise.
910         (aarch64_displaced_step_tb): Likewise.
911         (aarch64_displaced_step_adr): Likewise.
912         (aarch64_displaced_step_ldr_literal): Likewise.
913         (aarch64_displaced_step_others): Likewise.
914         (aarch64_displaced_step_copy_insn): Likewise.
915         (aarch64_displaced_step_fixup): Likewise.
916         (aarch64_displaced_step_hw_singlestep): Likewise.
917         * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
918         (aarch64_displaced_step_copy_insn): Declare.
919         (aarch64_displaced_step_fixup): Declare.
920         (aarch64_displaced_step_hw_singlestep): Declare.
921         * arch/aarch64-insn.c (emit_insn): Moved from
922         gdbserver/linux-aarch64-low.c.
923         (emit_load_store): Likewise.
924         * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
925         gdbserver/linux-aarch64-low.c.
926         (struct aarch64_register): Likewise.
927         (struct aarch64_memory_operand): Likewise.
928         (ENCODE): Likewise.
929         (can_encode_int32): New macro.
930         (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
931         (emit_tb, emit_nop): Likewise.
932         (emit_insn): Declare.
933         (emit_load_store): Declare.
934
935 2015-10-12  Yao Qi  <yao.qi@linaro.org>
936
937         * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
938         gdbserver/linux-aarch64-low.c.
939         (aarch64_relocate_instruction): Likewise.
940         * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
941         (struct aarch64_insn_data): Moved from
942         gdbserver/linux-aarch64-low.c.
943         (struct aarch64_insn_visitor): Likewise.
944         (aarch64_relocate_instruction): Declare.
945
946 2015-10-12  Pierre-Marie de Rodat  <derodat@adacore.com>
947
948         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
949         EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
950         to the returned value.
951
952 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
953
954         * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
955         is large enough for BIT_SIZE.  Update function comment.
956
957 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
958
959         * ada-lang.c (ada_value_primitive_packed_val): Move
960         src_len variable to local block where used.  Override
961         BIT_SIZE if bigger than size of resolved type.
962
963 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
964
965         * gdbtypes.h (is_scalar_type): Add extern declaration.
966         * gdbtypes.c (is_scalar_type): Make non-static.
967         * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
968         to compute IS_SCALAR instead of doing it ourselves.
969
970 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
971
972         * ada-lang.c (ada_value_primitive_packed_val): Rework handling
973         of case where TYPE is dynamic.
974
975 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
976
977         * ada-lang.c (ada_unpack_from_contents): New function,
978         extracted from ada_value_primitive_packed_val.
979         (ada_value_primitive_packed_val): Replace extracted out code
980         by call to ada_unpack_from_contents.
981
982 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
983
984         * ada-lang.c (ada_value_primitive_packed_val): Reorder local
985         variable declarations.
986
987 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
988
989         * ada-lang.c (ada_value_primitive_packed_val): Change the type
990         of local variables src and unpacked to "gdb_type *" instead of
991         "unsigned char *".
992
993 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
994
995         * ada-lang.c (ada_value_primitive_packed_val): Make the name
996         of various local variables more explicit and consistent.
997         No real code change otherwise.
998
999 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
1000
1001         * i386-tdep.h (struct gdbarch_tdep): Change type of
1002         register_reggroup_p to gdbarch_register_reggroup_p_ftype.
1003
1004 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
1005
1006         * cris-tdep.c (struct instruction_environment): Change type of
1007         byte_order to enum bfd_endian.
1008
1009 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
1010
1011         * arm-linux-tdep.c (arm_canonicalize_syscall): Add
1012         enum gdb_syscall casts.
1013
1014 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
1015
1016         * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
1017         * arm-tdep.c (struct stack_item): Likewise.
1018         (push_stack_item): Add gdb_byte* cast.
1019         * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
1020         (push_stack_item): Add gdb_byte* cast.
1021         * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
1022         and add cast.
1023         * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
1024         (push_stack_item): Add gdb_byte* cast.
1025         * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
1026         add cast.
1027         * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
1028         gdb_byte*.
1029         * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
1030         gdb_byte* and remove unnecessary cast.
1031         (h8300h_extract_return_value): Likewise.
1032         (h8300_store_return_value): Change type of valbuf to gdb_byte*.
1033         (h8300h_store_return_value): Likewise.
1034         * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
1035         gdb_byte* and remove unnecessary cast.
1036         * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
1037         and add cast.
1038         * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
1039         gdb_byte* and remove unnecessary cast.
1040         (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
1041         valbuf.
1042         * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
1043         (mep_pseudo_cr64_read): Likewise.
1044         (mep_pseudo_csr_write): Likewise.
1045         (mep_pseudo_cr32_write): Likewise.
1046         (mep_pseudo_cr64_write): Likewise.
1047         * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
1048         gdb_byte* and add cast.
1049         * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
1050         gdb_byte* and remove unnecessary cast.
1051         (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
1052         valbuf.
1053         * p-valprint.c (print_scalar_formatted): Change type of valaddr to
1054         gdb_byte*.
1055         * printcmd.c (void): Likewise.
1056         * python/py-inferior.c (infpy_read_memory): Change type of buffer to
1057         gdb_byte* and add cast.
1058         (infpy_write_memory): Likewise.
1059         (infpy_search_memory): Likewise.
1060         * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
1061         and add cast.
1062         (regcache_raw_write_unsigned): Likewise.
1063         (regcache_cooked_write_signed): Likewise.
1064         (regcache_cooked_write_unsigned): Likewise.
1065         * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
1066         gdb_byte*.
1067
1068 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
1069
1070         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
1071         * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
1072
1073 2015-10-09  Eli Zaretskii  <eliz@gnu.org>
1074
1075         * stack.c (print_stack_frame):
1076         * utils.c (printchar): Fix typos in commentary.
1077
1078 2015-10-08  Iain Buclaw  <ibuclaw@gdcproject.org>
1079
1080         * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
1081         (PostfixExpression): Support `expr.sizeof' expressions.
1082         (PrimaryExpression): Support `typeof(expr)' expressions.
1083
1084 2015-10-08  Maciej W. Rozycki  <macro@imgtec.com>
1085
1086         * MAINTAINERS: Update my email address.
1087
1088 2015-10-08  Markus Metzger  <markus.t.metzger@intel.com>
1089
1090         * record-btrace.c (record_btrace_resume): Fix void return.
1091
1092 2015-10-07  Yao Qi  <yao.qi@linaro.org>
1093
1094         * aarch64-tdep.c: Include opcode/aarch64.h.
1095         (submask): Move it above.
1096         (bit): Likewise.
1097         (bits): Likewise.
1098         (aarch64_software_single_step): Call aarch64_decode_insn.
1099         Decode instruction by aarch64_inst instead of using
1100         aarch64_decode_bcond and decode_masked_match.
1101
1102 2015-10-06  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
1103
1104         * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
1105         only when the file is binary.
1106
1107 2015-10-02  James Bowman  <james.bowman@ftdichip.com>
1108
1109         * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
1110         subroutine handling.
1111
1112 2015-10-01  Simon Marchi  <simon.marchi@ericsson.com>
1113
1114         * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
1115
1116 2015-09-30  Doug Evans  <dje@google.com>
1117
1118         * dwarf2read.c (setup_type_unit_groups): Add comment.
1119
1120 2015-09-30  Pedro Alves  <palves@redhat.com>
1121
1122         * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
1123         * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
1124         (x86_linux_create_target): Don't install
1125         x86_linux_always_non_stop_p.
1126
1127 2015-09-30  Don Breazeal  <donb@codesourcery.com>
1128
1129         * remote.c (remote_parse_stop_reply): Call strprefix instead
1130         of strncmp.
1131
1132 2015-09-30  Simon Marchi  <simon.marchi@ericsson.com>
1133
1134         * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
1135         * gdbarch.h: Regenerate.
1136         * i386-tdep.c (i386_gdbarch_init): Remove cast to
1137         struct gdbarch_tdep_info *.
1138         * mips-tdep.c (mips_gdbarch_init): Likewise.
1139         * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
1140         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
1141         * spu-multiarch.c (spu_gdbarch): Likewise.
1142
1143 2015-09-30  Kevin Buettner  <kevinb@redhat.com>
1144
1145         * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
1146         record a NULL value.
1147
1148 2015-09-29  Kevin Buettner  <kevinb@redhat.com>
1149
1150         * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
1151         and union arguments the same as pointer arguments when determining
1152         size of argument.
1153
1154 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
1155
1156         * ft32-tdep.c: #include "opcode/ft32.h".
1157         Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
1158         (ft32_analyze_prologue): Use FT32_* macros.
1159
1160 2015-09-28  Simon Marchi  <simon.marchi@ericsson.com>
1161
1162         * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
1163         comment.
1164
1165 2015-09-28  Doug Evans  <dje@google.com>
1166
1167         * MAINTAINERS: Add Iain Buclaw as D language maintainer.
1168
1169 2015-09-28  Doug Evans  <dje@google.com>
1170
1171         * common/filestuff.c (make_cleanup_close): Update comment.
1172
1173 2015-09-26  Simon Marchi  <simon.marchi@polymtl.ca>
1174
1175         * btrace.c (parse_xml_btrace_block): Fix cast of
1176         xml_find_attribute's return value.
1177         * memory-map.c (memory_map_start_memory): Likewise.
1178         * solib-svr4.c (library_list_start_library): Likewise.
1179         * solib-target.c (library_list_start_segment): Likewise.
1180         (library_list_start_section): Likewise.
1181         * tracepoint.c (traceframe_info_start_memory): Likewise.
1182
1183 2015-09-26  Iain Buclaw  <ibuclaw@gdcproject.org>
1184
1185         * d-namespace.c (d_lookup_symbol): New arg langdef.
1186         All callers updated.  Support looking up symbol as a primitive type.
1187         (lookup_module_scope): New arg langdef.  All callers updated.
1188         Call d_lookup_symbol directly for simple bare symbols.
1189
1190 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
1191
1192         * macrocmd.c (print_macro_callback): Add cast(s).
1193         * macrotab.c (macro_bcache_str): Likewise.
1194         (new_macro_definition): Likewise.
1195         * main.c (captured_main): Likewise.
1196         * maint.c (print_bfd_section_info): Likewise.
1197         * mdebugread.c (mdebug_build_psymtabs): Likewise.
1198         (basic_type): Likewise.
1199         * memattr.c (mem_region_cmp): Likewise.
1200         * memory-map.c (memory_map_start_memory): Likewise.
1201         (memory_map_end_memory): Likewise.
1202         (memory_map_start_property): Likewise.
1203         (memory_map_end_property): Likewise.
1204         (clear_result): Likewise.
1205         * memrange.c (compare_mem_ranges): Likewise.
1206         * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
1207         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
1208         * mi/mi-console.c (mi_console_file_delete): Likewise.
1209         (mi_console_file_fputs): Likewise.
1210         (mi_console_raw_packet): Likewise.
1211         (mi_console_file_flush): Likewise.
1212         (mi_console_set_raw): Likewise.
1213         * mi/mi-interp.c (mi_interpreter_resume): Likewise.
1214         (mi_new_thread): Likewise.
1215         (mi_thread_exit): Likewise.
1216         (mi_record_changed): Likewise.
1217         (mi_inferior_added): Likewise.
1218         (mi_inferior_appeared): Likewise.
1219         (mi_inferior_exit): Likewise.
1220         (mi_inferior_removed): Likewise.
1221         (mi_interp_data): Likewise.
1222         (mi_on_normal_stop): Likewise.
1223         (mi_traceframe_changed): Likewise.
1224         (mi_tsv_created): Likewise.
1225         (mi_tsv_deleted): Likewise.
1226         (mi_tsv_modified): Likewise.
1227         (mi_breakpoint_created): Likewise.
1228         (mi_breakpoint_deleted): Likewise.
1229         (mi_breakpoint_modified): Likewise.
1230         (mi_output_running_pid): Likewise.
1231         (mi_inferior_count): Likewise.
1232         (mi_solib_loaded): Likewise.
1233         (mi_solib_unloaded): Likewise.
1234         (mi_command_param_changed): Likewise.
1235         (mi_memory_changed): Likewise.
1236         (report_initial_inferior): Likewise.
1237         (mi_ui_out): Likewise.
1238         (mi_set_logging): Likewise.
1239         * mi/mi-main.c (collect_cores): Likewise.
1240         (print_one_inferior): Likewise.
1241         (free_vector_of_ints): Likewise.
1242         (free_splay_tree): Likewise.
1243         (mi_execute_command): Likewise.
1244         * mi/mi-out.c (mi_table_body): Likewise.
1245         (mi_table_end): Likewise.
1246         (mi_table_header): Likewise.
1247         (mi_begin): Likewise.
1248         (mi_end): Likewise.
1249         (mi_field_int): Likewise.
1250         (mi_field_string): Likewise.
1251         (mi_field_fmt): Likewise.
1252         (mi_flush): Likewise.
1253         (mi_redirect): Likewise.
1254         (field_separator): Likewise.
1255         (mi_open): Likewise.
1256         (mi_close): Likewise.
1257         (mi_out_buffered): Likewise.
1258         (mi_out_rewind): Likewise.
1259         (mi_out_put): Likewise.
1260         (mi_version): Likewise.
1261         (mi_out_data_dtor): Likewise.
1262         * mi/mi-parse.c (mi_parse_cleanup): Likewise.
1263         * microblaze-tdep.c (microblaze_frame_cache): Likewise.
1264         * minidebug.c (lzma_open): Likewise.
1265         (lzma_pread): Likewise.
1266         (lzma_close): Likewise.
1267         (lzma_stat): Likewise.
1268         * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1269         * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
1270         (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
1271         * mips-tdep.c (mips_insn16_frame_cache): Likewise.
1272         (mips_micro_frame_cache): Likewise.
1273         (mips_insn32_frame_cache): Likewise.
1274         (mips_stub_frame_cache): Likewise.
1275         (gdb_print_insn_mips): Likewise.
1276         (value_of_mips_user_reg): Likewise.
1277         (mips_gdbarch_init): Likewise.
1278         * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
1279         * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
1280         (mipsnbsd_supply_gregset): Likewise.
1281         * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
1282         (am33_collect_gregset_method): Likewise.
1283         (am33_collect_fpregset_method): Likewise.
1284         * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
1285         * moxie-tdep.c (moxie_frame_cache): Likewise.
1286         * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
1287         (msp430_analyze_frame_prologue): Likewise.
1288         * mt-tdep.c (mt_frame_unwind_cache): Likewise.
1289         * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
1290         (nios2_collect_gregset): Likewise.
1291         * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
1292         (nios2_stub_frame_cache): Likewise.
1293         * objc-lang.c (find_methods): Likewise.
1294         * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1295         (get_objfile_pspace_data): Likewise.
1296         (get_objfile_bfd_data): Likewise.
1297         (objfile_bfd_data_free): Likewise.
1298         (add_to_objfile_sections): Likewise.
1299         (do_free_objfile_cleanup): Likewise.
1300         (resume_section_map_updates_cleanup): Likewise.
1301         * opencl-lang.c (builtin_opencl_type): Likewise.
1302         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1303         * osdata.c (osdata_start_osdata): Likewise.
1304         (osdata_start_item): Likewise.
1305         (osdata_start_column): Likewise.
1306         (osdata_end_column): Likewise.
1307         (clear_parsing_data): Likewise.
1308         (osdata_free_cleanup): Likewise.
1309         * parse.c (type_stack_cleanup): Likewise.
1310         (exp_uses_objfile_iter): Likewise.
1311         * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
1312         (ppc_linux_collect_gregset): Likewise.
1313         (ppu2spu_prev_arch): Likewise.
1314         (ppu2spu_this_id): Likewise.
1315         (ppu2spu_prev_register): Likewise.
1316         (ppu2spu_unwind_register): Likewise.
1317         (ppu2spu_sniffer): Likewise.
1318         (ppu2spu_dealloc_cache): Likewise.
1319         (ppc_linux_init_abi): Likewise.
1320         * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
1321         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1322         * progspace.c (restore_program_space): Likewise.
1323         * psymtab.c (find_pc_sect_psymtab): Likewise.
1324         (compare_psymbols): Likewise.
1325         (psymbol_bcache_full): Likewise.
1326         (allocate_psymtab): Likewise.
1327         (discard_psymtabs_upto): Likewise.
1328         * python/py-block.c (set_block): Likewise.
1329         (del_objfile_blocks): Likewise.
1330         * python/py-breakpoint.c (build_bp_list): Likewise.
1331         * python/py-inferior.c (inferior_to_inferior_object): Likewise.
1332         (build_inferior_list): Likewise.
1333         (py_free_inferior): Likewise.
1334         * python/py-objfile.c (py_free_objfile): Likewise.
1335         (objfile_to_objfile_object): Likewise.
1336         * python/py-prettyprint.c (py_restore_tstate): Likewise.
1337         * python/py-progspace.c (py_free_pspace): Likewise.
1338         (pspace_to_pspace_object): Likewise.
1339         * python/py-symbol.c (set_symbol): Likewise.
1340         (del_objfile_symbols): Likewise.
1341         * python/py-symtab.c (set_sal): Likewise.
1342         (set_symtab): Likewise.
1343         (del_objfile_symtab): Likewise.
1344         (del_objfile_sal): Likewise.
1345         * python/py-type.c (save_objfile_types): Likewise.
1346         (set_type): Likewise.
1347         * python/py-unwind.c (pyuw_prev_register): Likewise.
1348         (pyuw_on_new_gdbarch): Likewise.
1349         * python/py-utils.c (py_decref): Likewise.
1350         (py_xdecref): Likewise.
1351         (gdb_py_generic_dict): Likewise.
1352         * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
1353         (gdbpy_clone_xmethod_worker_data): Likewise.
1354         (gdbpy_get_xmethod_arg_types): Likewise.
1355         (gdbpy_get_xmethod_result_type): Likewise.
1356         (gdbpy_invoke_xmethod): Likewise.
1357         * python/python.c (gdbpy_apply_type_printers): Likewise.
1358         (gdbpy_free_type_printers): Likewise.
1359         * record-btrace.c (record_btrace_disable_callback): Likewise.
1360         (bfcache_hash): Likewise.
1361         (bfcache_eq): Likewise.
1362         (btrace_get_frame_function): Likewise.
1363         (record_btrace_frame_unwind_stop_reason): Likewise.
1364         (record_btrace_frame_this_id): Likewise.
1365         (record_btrace_frame_prev_register): Likewise.
1366         (record_btrace_frame_dealloc_cache): Likewise.
1367         * record-full.c (record_full_message_wrapper): Likewise.
1368         (record_full_save_cleanups): Likewise.
1369         * regcache.c (regcache_descr): Likewise.
1370         (do_regcache_xfree): Likewise.
1371         (do_regcache_invalidate): Likewise.
1372         (do_cooked_read): Likewise.
1373         (regcache_transfer_regset): Likewise.
1374         * reggroups.c (reggroup_add): Likewise.
1375         (reggroup_next): Likewise.
1376         (reggroup_prev): Likewise.
1377         * remote-fileio.c (do_remote_fileio_request): Likewise.
1378         * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
1379         (do_notif_event_xfree): Likewise.
1380         * remote.c (get_remote_arch_state): Likewise.
1381         (remote_pspace_data_cleanup): Likewise.
1382         (get_remote_exec_file): Likewise.
1383         (set_pspace_remote_exec_file): Likewise.
1384         (compare_pnums): Likewise.
1385         (clear_threads_listing_context): Likewise.
1386         (remote_newthread_step): Likewise.
1387         (start_thread): Likewise.
1388         (end_thread): Likewise.
1389         (remove_child_of_pending_fork): Likewise.
1390         (remove_stop_reply_for_inferior): Likewise.
1391         (remove_stop_reply_of_remote_state): Likewise.
1392         (remote_notif_remove_once_on_match): Likewise.
1393         (stop_reply_match_ptid_and_ws): Likewise.
1394         (kill_child_of_pending_fork): Likewise.
1395         (register_remote_g_packet_guess): Likewise.
1396         (remote_read_description_p): Likewise.
1397         (remote_read_description): Likewise.
1398         (free_actions_list_cleanup_wrapper): Likewise.
1399         (remote_async_serial_handler): Likewise.
1400         * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
1401         (rl78_analyze_frame_prologue): Likewise.
1402         * rs6000-tdep.c (ppc_supply_gregset): Likewise.
1403         (ppc_supply_fpregset): Likewise.
1404         (ppc_supply_vsxregset): Likewise.
1405         (ppc_supply_vrregset): Likewise.
1406         (ppc_collect_gregset): Likewise.
1407         (ppc_collect_fpregset): Likewise.
1408         (ppc_collect_vsxregset): Likewise.
1409         (ppc_collect_vrregset): Likewise.
1410         (e500_move_ev_register): Likewise.
1411         (do_regcache_raw_write): Likewise.
1412         (rs6000_frame_cache): Likewise.
1413         (rs6000_epilogue_frame_cache): Likewise.
1414         (rs6000_gdbarch_init): Likewise.
1415         * rx-tdep.c (rx_get_opcode_byte): Likewise.
1416         (rx_analyze_frame_prologue): Likewise.
1417         (rx_frame_type): Likewise.
1418         (rx_frame_sniffer_common): Likewise.
1419         * s390-linux-tdep.c (s390_check_for_saved): Likewise.
1420         (s390_frame_unwind_cache): Likewise.
1421         (s390_stub_frame_unwind_cache): Likewise.
1422         (s390_sigtramp_frame_unwind_cache): Likewise.
1423         * score-tdep.c (score_make_prologue_cache): Likewise.
1424         * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
1425         (sentinel_frame_prev_arch): Likewise.
1426         * ser-base.c (fd_event): Likewise.
1427         (push_event): Likewise.
1428         (ser_base_write): Likewise.
1429         * ser-pipe.c (pipe_close): Likewise.
1430         * serial.c (serial_write): Likewise.
1431         * sh-tdep.c (sh_frame_cache): Likewise.
1432         (sh_stub_this_id): Likewise.
1433         * sh64-tdep.c (sh64_frame_cache): Likewise.
1434         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
1435         (library_list_start_library): Likewise.
1436         (library_list_start_list): Likewise.
1437         (solib_aix_free_library_list): Likewise.
1438         * solib-darwin.c (get_darwin_info): Likewise.
1439         * solib-dsbt.c (get_dsbt_info): Likewise.
1440         * solib-spu.c (append_ocl_sos): Likewise.
1441         * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1442         (get_svr4_info): Likewise.
1443         (library_list_start_library): Likewise.
1444         (svr4_library_list_start_list): Likewise.
1445         (hash_probe_and_action): Likewise.
1446         (equal_probe_and_action): Likewise.
1447         (svr4_update_solib_event_breakpoint): Likewise.
1448         (set_solib_svr4_fetch_link_map_offsets): Likewise.
1449         (svr4_fetch_link_map_offsets): Likewise.
1450         (svr4_have_link_map_offsets): Likewise.
1451         * solib-target.c (library_list_start_segment): Likewise.
1452         (library_list_start_section): Likewise.
1453         (library_list_start_library): Likewise.
1454         (library_list_end_library): Likewise.
1455         (library_list_start_list): Likewise.
1456         (solib_target_free_library_list): Likewise.
1457         * solib.c (solib_ops): Likewise.
1458         (set_solib_ops): Likewise.
1459         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1460         * sparc-tdep.c (sparc_frame_cache): Likewise.
1461         (sparc32_frame_cache): Likewise.
1462         (sparc32_supply_gregset): Likewise.
1463         (sparc32_collect_gregset): Likewise.
1464         (sparc32_supply_fpregset): Likewise.
1465         (sparc32_collect_fpregset): Likewise.
1466         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1467         * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1468         (sparc64_collect_gregset): Likewise.
1469         (sparc64_supply_fpregset): Likewise.
1470         (sparc64_collect_fpregset): Likewise.
1471         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
1472         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
1473         * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
1474         (sparc64obsd_trapframe_cache): Likewise.
1475         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
1476         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
1477         * spu-multiarch.c (spu_gdbarch): Likewise.
1478         * spu-tdep.c (spu_frame_unwind_cache): Likewise.
1479         (spu2ppu_prev_arch): Likewise.
1480         (spu2ppu_this_id): Likewise.
1481         (spu2ppu_prev_register): Likewise.
1482         (spu2ppu_dealloc_cache): Likewise.
1483         (spu_dis_asm_print_address): Likewise.
1484         (gdb_print_insn_spu): Likewise.
1485         (spu_get_overlay_table): Likewise.
1486         * stabsread.c (rs6000_builtin_type): Likewise.
1487         * stack.c (do_print_variable_and_value): Likewise.
1488         * stap-probe.c (get_stap_base_address_1): Likewise.
1489         * symfile-debug.c (debug_qf_has_symbols): Likewise.
1490         (debug_qf_find_last_source_symtab): Likewise.
1491         (debug_qf_forget_cached_source_info): Likewise.
1492         (debug_qf_map_symtabs_matching_filename): Likewise.
1493         (debug_qf_lookup_symbol): Likewise.
1494         (debug_qf_print_stats): Likewise.
1495         (debug_qf_dump): Likewise.
1496         (debug_qf_relocate): Likewise.
1497         (debug_qf_expand_symtabs_for_function): Likewise.
1498         (debug_qf_expand_all_symtabs): Likewise.
1499         (debug_qf_expand_symtabs_with_fullname): Likewise.
1500         (debug_qf_map_matching_symbols): Likewise.
1501         (debug_qf_expand_symtabs_matching): Likewise.
1502         (debug_qf_find_pc_sect_compunit_symtab): Likewise.
1503         (debug_qf_map_symbol_filenames): Likewise.
1504         (debug_sym_get_probes): Likewise.
1505         (debug_sym_new_init): Likewise.
1506         (debug_sym_init): Likewise.
1507         (debug_sym_read): Likewise.
1508         (debug_sym_read_psymbols): Likewise.
1509         (debug_sym_finish): Likewise.
1510         (debug_sym_offsets): Likewise.
1511         (debug_sym_read_linetable): Likewise.
1512         (debug_sym_relocate): Likewise.
1513         (uninstall_symfile_debug_logging): Likewise.
1514         * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
1515         * symfile.c (place_section): Likewise.
1516         (add_section_size_callback): Likewise.
1517         (load_progress): Likewise.
1518         (load_section_callback): Likewise.
1519         (clear_memory_write_data): Likewise.
1520         (allocate_symtab): Likewise.
1521         * symmisc.c (maintenance_expand_file_matcher): Likewise.
1522         * symtab.c (lookup_symtab_callback): Likewise.
1523         (hash_demangled_name_entry): Likewise.
1524         (eq_demangled_name_entry): Likewise.
1525         (get_symbol_cache): Likewise.
1526         (symbol_cache_cleanup): Likewise.
1527         (set_symbol_cache_size): Likewise.
1528         (symbol_cache_flush): Likewise.
1529         (maintenance_print_symbol_cache): Likewise.
1530         (maintenance_print_symbol_cache_statistics): Likewise.
1531         (delete_filename_seen_cache): Likewise.
1532         (output_partial_symbol_filename): Likewise.
1533         (search_symbols_file_matches): Likewise.
1534         (search_symbols_name_matches): Likewise.
1535         (do_free_completion_list): Likewise.
1536         (maybe_add_partial_symtab_filename): Likewise.
1537         (get_main_info): Likewise.
1538         (main_info_cleanup): Likewise.
1539         * target-dcache.c (target_dcache_cleanup): Likewise.
1540         (target_dcache_init_p): Likewise.
1541         (target_dcache_invalidate): Likewise.
1542         (target_dcache_get): Likewise.
1543         (target_dcache_get_or_init): Likewise.
1544         * target-descriptions.c (target_find_description): Likewise.
1545         (tdesc_find_type): Likewise.
1546         (tdesc_data_cleanup): Likewise.
1547         (tdesc_find_arch_register): Likewise.
1548         (tdesc_register_name): Likewise.
1549         (tdesc_register_type): Likewise.
1550         (tdesc_register_reggroup_p): Likewise.
1551         (set_tdesc_pseudo_register_name): Likewise.
1552         (set_tdesc_pseudo_register_type): Likewise.
1553         (set_tdesc_pseudo_register_reggroup_p): Likewise.
1554         (tdesc_use_registers): Likewise.
1555         (free_target_description): Likewise.
1556         * target-memory.c (compare_block_starting_address): Likewise.
1557         (cleanup_request_data): Likewise.
1558         (cleanup_write_requests_vector): Likewise.
1559         * target.c (open_target): Likewise.
1560         (cleanup_restore_target_terminal): Likewise.
1561         (free_memory_read_result_vector): Likewise.
1562         * thread.c (disable_thread_stack_temporaries): Likewise.
1563         (finish_thread_state_cleanup): Likewise.
1564         (do_restore_current_thread_cleanup): Likewise.
1565         (restore_current_thread_cleanup_dtor): Likewise.
1566         (set_thread_refcount): Likewise.
1567         (tp_array_compar): Likewise.
1568         (do_captured_thread_select): Likewise.
1569         * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
1570         (tic6x_stub_this_id): Likewise.
1571         * tilegx-tdep.c (tilegx_frame_cache): Likewise.
1572         * top.c (do_restore_instream_cleanup): Likewise.
1573         (gdb_readline_wrapper_cleanup): Likewise.
1574         (kill_or_detach): Likewise.
1575         (print_inferior_quit_action): Likewise.
1576         * tracefile-tfile.c (match_blocktype): Likewise.
1577         (build_traceframe_info): Likewise.
1578         * tracefile.c (trace_file_writer_xfree): Likewise.
1579         * tracepoint.c (memrange_cmp): Likewise.
1580         (do_collect_symbol): Likewise.
1581         (do_clear_collection_list): Likewise.
1582         (do_restore_current_traceframe_cleanup): Likewise.
1583         (restore_current_traceframe_cleanup_dtor): Likewise.
1584         (free_current_marker): Likewise.
1585         (traceframe_info_start_memory): Likewise.
1586         (traceframe_info_start_tvar): Likewise.
1587         (free_result): Likewise.
1588         * tramp-frame.c (tramp_frame_cache): Likewise.
1589         * tui/tui-file.c (tui_file_delete): Likewise.
1590         (tui_fileopen): Likewise.
1591         (tui_sfileopen): Likewise.
1592         (tui_file_isatty): Likewise.
1593         (tui_file_rewind): Likewise.
1594         (tui_file_put): Likewise.
1595         (tui_file_fputs): Likewise.
1596         (tui_file_get_strbuf): Likewise.
1597         (tui_file_adjust_strbuf): Likewise.
1598         (tui_file_flush): Likewise.
1599         * tui/tui-layout.c (make_command_window): Likewise.
1600         (make_data_window): Likewise.
1601         (show_source_disasm_command): Likewise.
1602         (show_data): Likewise.
1603         (make_source_or_disasm_window): Likewise.
1604         (show_source_or_disasm_and_command): Likewise.
1605         * tui/tui-out.c (tui_field_int): Likewise.
1606         (tui_field_string): Likewise.
1607         (tui_field_fmt): Likewise.
1608         (tui_text): Likewise.
1609         * typeprint.c (hash_typedef_field): Likewise.
1610         (eq_typedef_field): Likewise.
1611         (do_free_typedef_hash): Likewise.
1612         (copy_typedef_hash_element): Likewise.
1613         (do_free_global_table): Likewise.
1614         (find_global_typedef): Likewise.
1615         (find_typedef_in_hash): Likewise.
1616         * ui-file.c (ui_file_write_for_put): Likewise.
1617         (do_ui_file_xstrdup): Likewise.
1618         (mem_file_delete): Likewise.
1619         (mem_file_rewind): Likewise.
1620         (mem_file_put): Likewise.
1621         (mem_file_write): Likewise.
1622         (stdio_file_delete): Likewise.
1623         (stdio_file_flush): Likewise.
1624         (stdio_file_read): Likewise.
1625         (stdio_file_write): Likewise.
1626         (stdio_file_write_async_safe): Likewise.
1627         (stdio_file_fputs): Likewise.
1628         (stdio_file_isatty): Likewise.
1629         (stdio_file_fseek): Likewise.
1630         (tee_file_delete): Likewise.
1631         (tee_file_flush): Likewise.
1632         (tee_file_write): Likewise.
1633         (tee_file_fputs): Likewise.
1634         (tee_file_isatty): Likewise.
1635         * ui-out.c (do_cleanup_table_end): Likewise.
1636         (do_cleanup_end): Likewise.
1637         * user-regs.c (user_reg_add): Likewise.
1638         (user_reg_map_name_to_regnum): Likewise.
1639         (usernum_to_user_reg): Likewise.
1640         (maintenance_print_user_registers): Likewise.
1641         * utils.c (do_bfd_close_cleanup): Likewise.
1642         (do_fclose_cleanup): Likewise.
1643         (do_obstack_free): Likewise.
1644         (do_ui_file_delete): Likewise.
1645         (do_ui_out_redirect_pop): Likewise.
1646         (do_free_section_addr_info): Likewise.
1647         (restore_integer): Likewise.
1648         (do_unpush_target): Likewise.
1649         (do_htab_delete_cleanup): Likewise.
1650         (do_restore_ui_file): Likewise.
1651         (do_value_free): Likewise.
1652         (do_free_so): Likewise.
1653         (free_current_contents): Likewise.
1654         (do_regfree_cleanup): Likewise.
1655         (core_addr_hash): Likewise.
1656         (core_addr_eq): Likewise.
1657         (do_free_char_ptr_vec): Likewise.
1658         * v850-tdep.c (v850_frame_cache): Likewise.
1659         * varobj.c (do_free_variable_cleanup): Likewise.
1660         * vax-tdep.c (vax_supply_gregset): Likewise.
1661         (vax_frame_cache): Likewise.
1662         * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
1663         * xml-support.c (gdb_xml_body_text): Likewise.
1664         (gdb_xml_values_cleanup): Likewise.
1665         (gdb_xml_start_element): Likewise.
1666         (gdb_xml_start_element_wrapper): Likewise.
1667         (gdb_xml_end_element): Likewise.
1668         (gdb_xml_end_element_wrapper): Likewise.
1669         (gdb_xml_cleanup): Likewise.
1670         (gdb_xml_fetch_external_entity): Likewise.
1671         (gdb_xml_parse_attr_enum): Likewise.
1672         (xinclude_start_include): Likewise.
1673         (xinclude_end_include): Likewise.
1674         (xml_xinclude_default): Likewise.
1675         (xml_xinclude_start_doctype): Likewise.
1676         (xml_xinclude_end_doctype): Likewise.
1677         (xml_xinclude_cleanup): Likewise.
1678         (xml_fetch_content_from_file): Likewise.
1679         * xml-syscall.c (free_syscalls_info): Likewise.
1680         (syscall_start_syscall): Likewise.
1681         * xml-tdesc.c (tdesc_end_arch): Likewise.
1682         (tdesc_end_osabi): Likewise.
1683         (tdesc_end_compatible): Likewise.
1684         (tdesc_start_target): Likewise.
1685         (tdesc_start_feature): Likewise.
1686         (tdesc_start_reg): Likewise.
1687         (tdesc_start_union): Likewise.
1688         (tdesc_start_struct): Likewise.
1689         (tdesc_start_flags): Likewise.
1690         (tdesc_start_field): Likewise.
1691         (tdesc_start_vector): Likewise.
1692         (fetch_available_features_from_target): Likewise.
1693         * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
1694         * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
1695         (xtensa_frame_cache): Likewise.
1696         (xtensa_frame_prev_register): Likewise.
1697         (xtensa_extract_return_value): Likewise.
1698
1699 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
1700
1701         * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
1702         (aarch64_make_stub_cache): Likewise.
1703         (value_of_aarch64_user_reg): Likewise.
1704         * ada-lang.c (ada_inferior_data_cleanup): Likewise.
1705         (get_ada_inferior_data): Likewise.
1706         (get_ada_pspace_data): Likewise.
1707         (ada_pspace_data_cleanup): Likewise.
1708         (ada_complete_symbol_matcher): Likewise.
1709         (ada_exc_search_name_matches): Likewise.
1710         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
1711         (get_ada_tasks_inferior_data): Likewise.
1712         * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
1713         (splay_obstack_alloc): Likewise.
1714         (splay_obstack_free): Likewise.
1715         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
1716         (alpha_linux_collect_gregset): Likewise.
1717         (alpha_linux_supply_fpregset): Likewise.
1718         (alpha_linux_collect_fpregset): Likewise.
1719         * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1720         * alpha-tdep.c (alpha_lds): Likewise.
1721         (alpha_sts): Likewise.
1722         (alpha_sigtramp_frame_unwind_cache): Likewise.
1723         (alpha_heuristic_frame_unwind_cache): Likewise.
1724         (alpha_supply_int_regs): Likewise.
1725         (alpha_fill_int_regs): Likewise.
1726         (alpha_supply_fp_regs): Likewise.
1727         (alpha_fill_fp_regs): Likewise.
1728         * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
1729         (alphanbsd_aout_supply_gregset): Likewise.
1730         (alphanbsd_supply_gregset): Likewise.
1731         * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
1732         (amd64_x32_linux_init_abi): Likewise.
1733         * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1734         (amd64_collect_native_gregset): Likewise.
1735         * amd64-tdep.c (amd64_frame_cache): Likewise.
1736         (amd64_sigtramp_frame_cache): Likewise.
1737         (amd64_epilogue_frame_cache): Likewise.
1738         (amd64_supply_fxsave): Likewise.
1739         (amd64_supply_xsave): Likewise.
1740         (amd64_collect_fxsave): Likewise.
1741         (amd64_collect_xsave): Likewise.
1742         * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
1743         * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
1744         * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1745         (arm_linux_collect_gregset): Likewise.
1746         (arm_linux_supply_nwfpe): Likewise.
1747         (arm_linux_collect_nwfpe): Likewise.
1748         (arm_linux_supply_vfp): Likewise.
1749         (arm_linux_collect_vfp): Likewise.
1750         * arm-tdep.c (arm_find_mapping_symbol): Likewise.
1751         (arm_prologue_unwind_stop_reason): Likewise.
1752         (arm_prologue_this_id): Likewise.
1753         (arm_prologue_prev_register): Likewise.
1754         (arm_exidx_data_free): Likewise.
1755         (arm_find_exidx_entry): Likewise.
1756         (arm_stub_this_id): Likewise.
1757         (arm_m_exception_this_id): Likewise.
1758         (arm_m_exception_prev_register): Likewise.
1759         (arm_normal_frame_base): Likewise.
1760         (gdb_print_insn_arm): Likewise.
1761         (arm_objfile_data_free): Likewise.
1762         (arm_record_special_symbol): Likewise.
1763         (value_of_arm_user_reg): Likewise.
1764         * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
1765         (armbsd_supply_gregset): Likewise.
1766         * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
1767         (get_auto_load_pspace_data): Likewise.
1768         (hash_loaded_script_entry): Likewise.
1769         (eq_loaded_script_entry): Likewise.
1770         (clear_section_scripts): Likewise.
1771         (collect_matching_scripts): Likewise.
1772         * auxv.c (auxv_inferior_data_cleanup): Likewise.
1773         (get_auxv_inferior_data): Likewise.
1774         * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1775         * ax-general.c (do_free_agent_expr_cleanup): Likewise.
1776         * bfd-target.c (target_bfd_xfer_partial): Likewise.
1777         (target_bfd_xclose): Likewise.
1778         (target_bfd_get_section_table): Likewise.
1779         * bfin-tdep.c (bfin_frame_cache): Likewise.
1780         * block.c (find_block_in_blockvector): Likewise.
1781         (call_site_for_pc): Likewise.
1782         (block_find_non_opaque_type_preferred): Likewise.
1783         * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
1784         (signal_catchpoint_remove_location): Likewise.
1785         (signal_catchpoint_breakpoint_hit): Likewise.
1786         (signal_catchpoint_print_one): Likewise.
1787         (signal_catchpoint_print_mention): Likewise.
1788         (signal_catchpoint_print_recreate): Likewise.
1789         * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
1790         * breakpoint.c (do_cleanup_counted_command_line): Likewise.
1791         (bp_location_compare_addrs): Likewise.
1792         (get_first_locp_gte_addr): Likewise.
1793         (check_tracepoint_command): Likewise.
1794         (do_map_commands_command): Likewise.
1795         (get_breakpoint_objfile_data): Likewise.
1796         (free_breakpoint_probes): Likewise.
1797         (do_captured_breakpoint_query): Likewise.
1798         (compare_breakpoints): Likewise.
1799         (bp_location_compare): Likewise.
1800         (bpstat_remove_breakpoint_callback): Likewise.
1801         (do_delete_breakpoint_cleanup): Likewise.
1802         * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
1803         (bsd_uthread_set_collect_uthread): Likewise.
1804         (bsd_uthread_activate): Likewise.
1805         (bsd_uthread_fetch_registers): Likewise.
1806         (bsd_uthread_store_registers): Likewise.
1807         * btrace.c (check_xml_btrace_version): Likewise.
1808         (parse_xml_btrace_block): Likewise.
1809         (parse_xml_btrace_pt_config_cpu): Likewise.
1810         (parse_xml_btrace_pt_raw): Likewise.
1811         (parse_xml_btrace_pt): Likewise.
1812         (parse_xml_btrace_conf_bts): Likewise.
1813         (parse_xml_btrace_conf_pt): Likewise.
1814         (do_btrace_data_cleanup): Likewise.
1815         * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
1816         * charset.c (cleanup_iconv): Likewise.
1817         (do_cleanup_iterator): Likewise.
1818         * cli-out.c (cli_uiout_dtor): Likewise.
1819         (cli_table_begin): Likewise.
1820         (cli_table_body): Likewise.
1821         (cli_table_end): Likewise.
1822         (cli_table_header): Likewise.
1823         (cli_begin): Likewise.
1824         (cli_end): Likewise.
1825         (cli_field_int): Likewise.
1826         (cli_field_skip): Likewise.
1827         (cli_field_string): Likewise.
1828         (cli_field_fmt): Likewise.
1829         (cli_spaces): Likewise.
1830         (cli_text): Likewise.
1831         (cli_message): Likewise.
1832         (cli_wrap_hint): Likewise.
1833         (cli_flush): Likewise.
1834         (cli_redirect): Likewise.
1835         (out_field_fmt): Likewise.
1836         (field_separator): Likewise.
1837         (cli_out_set_stream): Likewise.
1838         * cli/cli-cmds.c (compare_symtabs): Likewise.
1839         * cli/cli-dump.c (call_dump_func): Likewise.
1840         (restore_section_callback): Likewise.
1841         * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
1842         (do_restore_user_call_depth): Likewise.
1843         (do_free_command_lines_cleanup): Likewise.
1844         * coff-pe-read.c (get_section_vmas): Likewise.
1845         (pe_as16): Likewise.
1846         (pe_as32): Likewise.
1847         * coffread.c (coff_symfile_read): Likewise.
1848         * common/agent.c (agent_look_up_symbols): Likewise.
1849         * common/filestuff.c (do_close_cleanup): Likewise.
1850         * common/format.c (free_format_pieces_cleanup): Likewise.
1851         * common/vec.c (vec_o_reserve): Likewise.
1852         * compile/compile-c-support.c (print_one_macro): Likewise.
1853         * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
1854         (eq_symbol_error): Likewise.
1855         (del_symbol_error): Likewise.
1856         (error_symbol_once): Likewise.
1857         (gcc_convert_symbol): Likewise.
1858         (gcc_symbol_address): Likewise.
1859         (hash_symname): Likewise.
1860         (eq_symname): Likewise.
1861         * compile/compile-c-types.c (hash_type_map_instance): Likewise.
1862         (eq_type_map_instance): Likewise.
1863         (insert_type): Likewise.
1864         (convert_type): Likewise.
1865         * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
1866         (setup_sections): Likewise.
1867         (link_hash_table_free): Likewise.
1868         (copy_sections): Likewise.
1869         * compile/compile-object-run.c (do_module_cleanup): Likewise.
1870         * compile/compile.c (compile_print_value): Likewise.
1871         (do_rmdir): Likewise.
1872         (cleanup_compile_instance): Likewise.
1873         (cleanup_unlink_file): Likewise.
1874         * completer.c (free_completion_tracker): Likewise.
1875         * corelow.c (add_to_spuid_list): Likewise.
1876         * cp-namespace.c (reset_directive_searched): Likewise.
1877         * cp-support.c (reset_directive_searched): Likewise.
1878         * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
1879         (cris_frame_unwind_cache): Likewise.
1880         * d-lang.c (builtin_d_type): Likewise.
1881         * d-namespace.c (reset_directive_searched): Likewise.
1882         * dbxread.c (dbx_free_symfile_info): Likewise.
1883         (do_free_bincl_list_cleanup): Likewise.
1884         * disasm.c (hash_dis_line_entry): Likewise.
1885         (eq_dis_line_entry): Likewise.
1886         (dis_asm_print_address): Likewise.
1887         (fprintf_disasm): Likewise.
1888         (do_ui_file_delete): Likewise.
1889         * doublest.c (convert_floatformat_to_doublest): Likewise.
1890         * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1891         (dummy_frame_prev_register): Likewise.
1892         (dummy_frame_this_id): Likewise.
1893         * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1894         (cache_eq): Likewise.
1895         (cache_find): Likewise.
1896         (tailcall_frame_this_id): Likewise.
1897         (dwarf2_tailcall_prev_register_first): Likewise.
1898         (tailcall_frame_prev_register): Likewise.
1899         (tailcall_frame_dealloc_cache): Likewise.
1900         (tailcall_frame_prev_arch): Likewise.
1901         * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1902         (dwarf2_frame_set_init_reg): Likewise.
1903         (dwarf2_frame_init_reg): Likewise.
1904         (dwarf2_frame_set_signal_frame_p): Likewise.
1905         (dwarf2_frame_signal_frame_p): Likewise.
1906         (dwarf2_frame_set_adjust_regnum): Likewise.
1907         (dwarf2_frame_adjust_regnum): Likewise.
1908         (clear_pointer_cleanup): Likewise.
1909         (dwarf2_frame_cache): Likewise.
1910         (find_cie): Likewise.
1911         (dwarf2_frame_find_fde): Likewise.
1912         * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1913         (free_dwarf_expr_context_cleanup): Likewise.
1914         * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1915         (locexpr_get_frame_base): Likewise.
1916         (loclist_find_frame_base_location): Likewise.
1917         (loclist_get_frame_base): Likewise.
1918         (dwarf_expr_dwarf_call): Likewise.
1919         (dwarf_expr_get_base_type): Likewise.
1920         (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1921         (dwarf_expr_get_obj_addr): Likewise.
1922         (entry_data_value_coerce_ref): Likewise.
1923         (entry_data_value_copy_closure): Likewise.
1924         (entry_data_value_free_closure): Likewise.
1925         (get_frame_address_in_block_wrapper): Likewise.
1926         (dwarf2_evaluate_property): Likewise.
1927         (dwarf2_compile_property_to_c): Likewise.
1928         (needs_frame_read_addr_from_reg): Likewise.
1929         (needs_frame_get_reg_value): Likewise.
1930         (needs_frame_frame_base): Likewise.
1931         (needs_frame_frame_cfa): Likewise.
1932         (needs_frame_tls_address): Likewise.
1933         (needs_frame_dwarf_call): Likewise.
1934         (needs_dwarf_reg_entry_value): Likewise.
1935         (get_ax_pc): Likewise.
1936         (locexpr_read_variable): Likewise.
1937         (locexpr_read_variable_at_entry): Likewise.
1938         (locexpr_read_needs_frame): Likewise.
1939         (locexpr_describe_location): Likewise.
1940         (locexpr_tracepoint_var_ref): Likewise.
1941         (locexpr_generate_c_location): Likewise.
1942         (loclist_read_variable): Likewise.
1943         (loclist_read_variable_at_entry): Likewise.
1944         (loclist_describe_location): Likewise.
1945         (loclist_tracepoint_var_ref): Likewise.
1946         (loclist_generate_c_location): Likewise.
1947         * dwarf2read.c (line_header_hash_voidp): Likewise.
1948         (line_header_eq_voidp): Likewise.
1949         (dwarf2_has_info): Likewise.
1950         (dwarf2_get_section_info): Likewise.
1951         (locate_dwz_sections): Likewise.
1952         (hash_file_name_entry): Likewise.
1953         (eq_file_name_entry): Likewise.
1954         (delete_file_name_entry): Likewise.
1955         (dw2_setup): Likewise.
1956         (dw2_get_file_names_reader): Likewise.
1957         (dw2_find_pc_sect_compunit_symtab): Likewise.
1958         (hash_signatured_type): Likewise.
1959         (eq_signatured_type): Likewise.
1960         (add_signatured_type_cu_to_table): Likewise.
1961         (create_debug_types_hash_table): Likewise.
1962         (lookup_dwo_signatured_type): Likewise.
1963         (lookup_dwp_signatured_type): Likewise.
1964         (lookup_signatured_type): Likewise.
1965         (hash_type_unit_group): Likewise.
1966         (eq_type_unit_group): Likewise.
1967         (get_type_unit_group): Likewise.
1968         (process_psymtab_comp_unit_reader): Likewise.
1969         (sort_tu_by_abbrev_offset): Likewise.
1970         (process_skeletonless_type_unit): Likewise.
1971         (psymtabs_addrmap_cleanup): Likewise.
1972         (dwarf2_read_symtab): Likewise.
1973         (psymtab_to_symtab_1): Likewise.
1974         (die_hash): Likewise.
1975         (die_eq): Likewise.
1976         (load_full_comp_unit_reader): Likewise.
1977         (reset_die_in_process): Likewise.
1978         (free_cu_line_header): Likewise.
1979         (handle_DW_AT_stmt_list): Likewise.
1980         (hash_dwo_file): Likewise.
1981         (eq_dwo_file): Likewise.
1982         (hash_dwo_unit): Likewise.
1983         (eq_dwo_unit): Likewise.
1984         (create_dwo_cu_reader): Likewise.
1985         (create_dwo_unit_in_dwp_v1): Likewise.
1986         (create_dwo_unit_in_dwp_v2): Likewise.
1987         (lookup_dwo_unit_in_dwp): Likewise.
1988         (dwarf2_locate_dwo_sections): Likewise.
1989         (dwarf2_locate_common_dwp_sections): Likewise.
1990         (dwarf2_locate_v2_dwp_sections): Likewise.
1991         (hash_dwp_loaded_cutus): Likewise.
1992         (eq_dwp_loaded_cutus): Likewise.
1993         (lookup_dwo_cutu): Likewise.
1994         (abbrev_table_free_cleanup): Likewise.
1995         (dwarf2_free_abbrev_table): Likewise.
1996         (find_partial_die_in_comp_unit): Likewise.
1997         (free_line_header_voidp): Likewise.
1998         (follow_die_offset): Likewise.
1999         (follow_die_sig_1): Likewise.
2000         (free_heap_comp_unit): Likewise.
2001         (free_stack_comp_unit): Likewise.
2002         (dwarf2_free_objfile): Likewise.
2003         (per_cu_offset_and_type_hash): Likewise.
2004         (per_cu_offset_and_type_eq): Likewise.
2005         (get_die_type_at_offset): Likewise.
2006         (partial_die_hash): Likewise.
2007         (partial_die_eq): Likewise.
2008         (dwarf2_per_objfile_free): Likewise.
2009         (hash_strtab_entry): Likewise.
2010         (eq_strtab_entry): Likewise.
2011         (add_string): Likewise.
2012         (hash_symtab_entry): Likewise.
2013         (eq_symtab_entry): Likewise.
2014         (delete_symtab_entry): Likewise.
2015         (cleanup_mapped_symtab): Likewise.
2016         (add_indices_to_cpool): Likewise.
2017         (hash_psymtab_cu_index): Likewise.
2018         (eq_psymtab_cu_index): Likewise.
2019         (add_address_entry_worker): Likewise.
2020         (unlink_if_set): Likewise.
2021         (write_one_signatured_type): Likewise.
2022         (save_gdb_index_command): Likewise.
2023         * elfread.c (elf_symtab_read): Likewise.
2024         (elf_gnu_ifunc_cache_hash): Likewise.
2025         (elf_gnu_ifunc_cache_eq): Likewise.
2026         (elf_gnu_ifunc_record_cache): Likewise.
2027         (elf_gnu_ifunc_resolve_by_cache): Likewise.
2028         (elf_get_probes): Likewise.
2029         (probe_key_free): Likewise.
2030         * f-lang.c (builtin_f_type): Likewise.
2031         * frame-base.c (frame_base_append_sniffer): Likewise.
2032         (frame_base_set_default): Likewise.
2033         (frame_base_find_by_frame): Likewise.
2034         * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
2035         (frame_unwind_append_unwinder): Likewise.
2036         (frame_unwind_find_by_frame): Likewise.
2037         * frame.c (frame_addr_hash): Likewise.
2038         (frame_addr_hash_eq): Likewise.
2039         (frame_stash_find): Likewise.
2040         (do_frame_register_read): Likewise.
2041         (unwind_to_current_frame): Likewise.
2042         (frame_cleanup_after_sniffer): Likewise.
2043         * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
2044         * frv-tdep.c (frv_frame_unwind_cache): Likewise.
2045         * ft32-tdep.c (ft32_frame_cache): Likewise.
2046         * gcore.c (do_bfd_delete_cleanup): Likewise.
2047         (gcore_create_callback): Likewise.
2048         * gdb_bfd.c (hash_bfd): Likewise.
2049         (eq_bfd): Likewise.
2050         (gdb_bfd_open): Likewise.
2051         (free_one_bfd_section): Likewise.
2052         (gdb_bfd_ref): Likewise.
2053         (gdb_bfd_unref): Likewise.
2054         (get_section_descriptor): Likewise.
2055         (gdb_bfd_map_section): Likewise.
2056         (gdb_bfd_crc): Likewise.
2057         (gdb_bfd_mark_parent): Likewise.
2058         (gdb_bfd_record_inclusion): Likewise.
2059         (gdb_bfd_requires_relocations): Likewise.
2060         (print_one_bfd): Likewise.
2061         * gdbtypes.c (type_pair_hash): Likewise.
2062         (type_pair_eq): Likewise.
2063         (builtin_type): Likewise.
2064         (objfile_type): Likewise.
2065         * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
2066         (vtable_address_point_offset): Likewise.
2067         (gnuv3_get_vtable): Likewise.
2068         (hash_value_and_voffset): Likewise.
2069         (eq_value_and_voffset): Likewise.
2070         (compare_value_and_voffset): Likewise.
2071         (compute_vtable_size): Likewise.
2072         (gnuv3_get_typeid_type): Likewise.
2073         * go-lang.c (builtin_go_type): Likewise.
2074         * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
2075         (bkscm_eq_block_smob): Likewise.
2076         (bkscm_objfile_block_map): Likewise.
2077         (bkscm_del_objfile_blocks): Likewise.
2078         * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
2079         * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
2080         (gdbscm_disasm_print_address): Likewise.
2081         * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
2082         (frscm_eq_frame_smob): Likewise.
2083         (frscm_inferior_frame_map): Likewise.
2084         (frscm_del_inferior_frames): Likewise.
2085         * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
2086         * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
2087         (ofscm_objfile_smob_from_objfile): Likewise.
2088         * guile/scm-ports.c (ioscm_write): Likewise.
2089         (ioscm_file_port_delete): Likewise.
2090         (ioscm_file_port_rewind): Likewise.
2091         (ioscm_file_port_put): Likewise.
2092         (ioscm_file_port_write): Likewise.
2093         * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
2094         (psscm_pspace_smob_from_pspace): Likewise.
2095         * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
2096         (scscm_recording_unwind_handler): Likewise.
2097         (gdbscm_with_catch): Likewise.
2098         (scscm_call_0_body): Likewise.
2099         (scscm_call_1_body): Likewise.
2100         (scscm_call_2_body): Likewise.
2101         (scscm_call_3_body): Likewise.
2102         (scscm_call_4_body): Likewise.
2103         (scscm_apply_1_body): Likewise.
2104         (scscm_eval_scheme_string): Likewise.
2105         (gdbscm_safe_eval_string): Likewise.
2106         (scscm_source_scheme_script): Likewise.
2107         (gdbscm_safe_source_script): Likewise.
2108         * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
2109         (gdbscm_call_scm_from_stringn): Likewise.
2110         * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
2111         (syscm_eq_symbol_smob): Likewise.
2112         (syscm_get_symbol_map): Likewise.
2113         (syscm_del_objfile_symbols): Likewise.
2114         * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
2115         (stscm_eq_symtab_smob): Likewise.
2116         (stscm_objfile_symtab_map): Likewise.
2117         (stscm_del_objfile_symtabs): Likewise.
2118         * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
2119         (tyscm_eq_type_smob): Likewise.
2120         (tyscm_type_map): Likewise.
2121         (tyscm_copy_type_recursive): Likewise.
2122         (save_objfile_types): Likewise.
2123         * guile/scm-utils.c (extract_arg): Likewise.
2124         * h8300-tdep.c (h8300_frame_cache): Likewise.
2125         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
2126         * hppa-tdep.c (compare_unwind_entries): Likewise.
2127         (find_unwind_entry): Likewise.
2128         (hppa_frame_cache): Likewise.
2129         (hppa_stub_frame_unwind_cache): Likewise.
2130         * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
2131         * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
2132         (hppaobsd_supply_fpregset): Likewise.
2133         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
2134         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
2135         * i386-tdep.c (i386_frame_cache): Likewise.
2136         (i386_epilogue_frame_cache): Likewise.
2137         (i386_sigtramp_frame_cache): Likewise.
2138         (i386_supply_gregset): Likewise.
2139         (i386_collect_gregset): Likewise.
2140         (i386_gdbarch_init): Likewise.
2141         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
2142         (i386obsd_trapframe_cache): Likewise.
2143         * i387-tdep.c (i387_supply_fsave): Likewise.
2144         (i387_collect_fsave): Likewise.
2145         (i387_supply_fxsave): Likewise.
2146         (i387_collect_fxsave): Likewise.
2147         (i387_supply_xsave): Likewise.
2148         (i387_collect_xsave): Likewise.
2149         * ia64-tdep.c (ia64_frame_cache): Likewise.
2150         (ia64_sigtramp_frame_cache): Likewise.
2151         * infcmd.c (attach_command_continuation): Likewise.
2152         (attach_command_continuation_free_args): Likewise.
2153         * inferior.c (restore_inferior): Likewise.
2154         (delete_thread_of_inferior): Likewise.
2155         * inflow.c (inflow_inferior_data_cleanup): Likewise.
2156         (get_inflow_inferior_data): Likewise.
2157         (inflow_inferior_exit): Likewise.
2158         * infrun.c (displaced_step_clear_cleanup): Likewise.
2159         (restore_current_uiout_cleanup): Likewise.
2160         (release_stop_context_cleanup): Likewise.
2161         (do_restore_infcall_suspend_state_cleanup): Likewise.
2162         (do_restore_infcall_control_state_cleanup): Likewise.
2163         (restore_inferior_ptid): Likewise.
2164         * inline-frame.c (block_starting_point_at): Likewise.
2165         * iq2000-tdep.c (iq2000_frame_cache): Likewise.
2166         * jit.c (get_jit_objfile_data): Likewise.
2167         (get_jit_program_space_data): Likewise.
2168         (jit_object_close_impl): Likewise.
2169         (jit_find_objf_with_entry_addr): Likewise.
2170         (jit_breakpoint_deleted): Likewise.
2171         (jit_unwind_reg_set_impl): Likewise.
2172         (jit_unwind_reg_get_impl): Likewise.
2173         (jit_dealloc_cache): Likewise.
2174         (jit_frame_sniffer): Likewise.
2175         (jit_frame_prev_register): Likewise.
2176         (jit_prepend_unwinder): Likewise.
2177         (jit_inferior_exit_hook): Likewise.
2178         (free_objfile_data): Likewise.
2179         * jv-lang.c (jv_per_objfile_free): Likewise.
2180         (get_dynamics_objfile): Likewise.
2181         (get_java_class_symtab): Likewise.
2182         (builtin_java_type): Likewise.
2183         * language.c (language_string_char_type): Likewise.
2184         (language_bool_type): Likewise.
2185         (language_lookup_primitive_type): Likewise.
2186         (language_lookup_primitive_type_as_symbol): Likewise.
2187         * linespec.c (hash_address_entry): Likewise.
2188         (eq_address_entry): Likewise.
2189         (iterate_inline_only): Likewise.
2190         (iterate_name_matcher): Likewise.
2191         (decode_line_2_compare_items): Likewise.
2192         (collect_one_symbol): Likewise.
2193         (compare_symbols): Likewise.
2194         (compare_msymbols): Likewise.
2195         (add_symtabs_to_list): Likewise.
2196         (collect_symbols): Likewise.
2197         (compare_msyms): Likewise.
2198         (add_minsym): Likewise.
2199         (cleanup_linespec_result): Likewise.
2200         * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
2201         * linux-nat.c (delete_lwp_cleanup): Likewise.
2202         (count_events_callback): Likewise.
2203         (select_event_lwp_callback): Likewise.
2204         (resume_stopped_resumed_lwps): Likewise.
2205         * linux-tdep.c (get_linux_gdbarch_data): Likewise.
2206         (invalidate_linux_cache_inf): Likewise.
2207         (get_linux_inferior_data): Likewise.
2208         (linux_find_memory_regions_thunk): Likewise.
2209         (linux_make_mappings_callback): Likewise.
2210         (linux_corefile_thread_callback): Likewise.
2211         (find_mapping_size): Likewise.
2212         * linux-thread-db.c (find_new_threads_callback): Likewise.
2213         * lm32-tdep.c (lm32_frame_cache): Likewise.
2214         * m2-lang.c (builtin_m2_type): Likewise.
2215         * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
2216         * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
2217         (m32r_linux_supply_gregset): Likewise.
2218         (m32r_linux_collect_gregset): Likewise.
2219         * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
2220         * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
2221         * m68k-tdep.c (m68k_frame_cache): Likewise.
2222         * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
2223         (m68kbsd_supply_gregset): Likewise.
2224         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
2225         * m88k-tdep.c (m88k_frame_cache): Likewise.
2226         (m88k_supply_gregset): Likewise.
2227
2228 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
2229
2230         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
2231         to allocation result assignment.
2232         * ada-exp.y (write_object_renaming): Likewise.
2233         (write_ambiguous_var): Likewise.
2234         (ada_nget_field_index): Likewise.
2235         (write_var_or_type): Likewise.
2236         * ada-lang.c (ada_decode_symbol): Likewise.
2237         (ada_value_assign): Likewise.
2238         (value_pointer): Likewise.
2239         (cache_symbol): Likewise.
2240         (add_nonlocal_symbols): Likewise.
2241         (ada_name_for_lookup): Likewise.
2242         (symbol_completion_add): Likewise.
2243         (ada_to_fixed_type_1): Likewise.
2244         (ada_get_next_arg): Likewise.
2245         (defns_collected): Likewise.
2246         * ada-lex.l (processId): Likewise.
2247         (processString): Likewise.
2248         * ada-tasks.c (read_known_tasks_array): Likewise.
2249         (read_known_tasks_list): Likewise.
2250         * ada-typeprint.c (decoded_type_name): Likewise.
2251         * addrmap.c (addrmap_mutable_create_fixed): Likewise.
2252         * amd64-tdep.c (amd64_push_arguments): Likewise.
2253         (amd64_displaced_step_copy_insn): Likewise.
2254         (amd64_classify_insn_at): Likewise.
2255         (amd64_relocate_instruction): Likewise.
2256         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
2257         * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
2258         (initialize_current_architecture): Likewise.
2259         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2260         * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
2261         * arm-tdep.c (arm_exidx_new_objfile): Likewise.
2262         (arm_push_dummy_call): Likewise.
2263         (extend_buffer_earlier): Likewise.
2264         (arm_adjust_breakpoint_address): Likewise.
2265         (arm_skip_stub): Likewise.
2266         * auto-load.c (filename_is_in_pattern): Likewise.
2267         (maybe_add_script_file): Likewise.
2268         (maybe_add_script_text): Likewise.
2269         (auto_load_objfile_script_1): Likewise.
2270         * auxv.c (ld_so_xfer_auxv): Likewise.
2271         * ax-general.c (new_agent_expr): Likewise.
2272         (grow_expr): Likewise.
2273         (ax_reg_mask): Likewise.
2274         * bcache.c (bcache_full): Likewise.
2275         * breakpoint.c (program_breakpoint_here_p): Likewise.
2276         * btrace.c (parse_xml_raw): Likewise.
2277         * build-id.c (build_id_to_debug_bfd): Likewise.
2278         * buildsym.c (end_symtab_with_blockvector): Likewise.
2279         * c-exp.y (string_exp): Likewise.
2280         (qualified_name): Likewise.
2281         (write_destructor_name): Likewise.
2282         (operator_stoken): Likewise.
2283         (parse_number): Likewise.
2284         (scan_macro_expansion): Likewise.
2285         (yylex): Likewise.
2286         (c_print_token): Likewise.
2287         * c-lang.c (c_get_string): Likewise.
2288         (emit_numeric_character): Likewise.
2289         * charset.c (wchar_iterate): Likewise.
2290         * cli/cli-cmds.c (complete_command): Likewise.
2291         (make_command): Likewise.
2292         * cli/cli-dump.c (restore_section_callback): Likewise.
2293         (restore_binary_file): Likewise.
2294         * cli/cli-interp.c (cli_interpreter_exec): Likewise.
2295         * cli/cli-script.c (execute_control_command): Likewise.
2296         * cli/cli-setshow.c (do_set_command): Likewise.
2297         * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
2298         (read_pe_exported_syms): Likewise.
2299         * coffread.c (coff_read_struct_type): Likewise.
2300         (coff_read_enum_type): Likewise.
2301         * common/btrace-common.c (btrace_data_append): Likewise.
2302         * common/buffer.c (buffer_grow): Likewise.
2303         * common/filestuff.c (gdb_fopen_cloexec): Likewise.
2304         * common/format.c (parse_format_string): Likewise.
2305         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
2306         * common/xml-utils.c (xml_escape_text): Likewise.
2307         * compile/compile-object-load.c (copy_sections): Likewise.
2308         (compile_object_load): Likewise.
2309         * compile/compile-object-run.c (compile_object_run): Likewise.
2310         * completer.c (filename_completer): Likewise.
2311         * corefile.c (read_memory_typed_address): Likewise.
2312         (write_memory_unsigned_integer): Likewise.
2313         (write_memory_signed_integer): Likewise.
2314         (complete_set_gnutarget): Likewise.
2315         * corelow.c (get_core_register_section): Likewise.
2316         * cp-name-parser.y (d_grab): Likewise.
2317         (allocate_info): Likewise.
2318         (cp_new_demangle_parse_info): Likewise.
2319         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
2320         (cp_lookup_symbol_in_namespace): Likewise.
2321         (lookup_namespace_scope): Likewise.
2322         (find_symbol_in_baseclass): Likewise.
2323         (cp_lookup_nested_symbol): Likewise.
2324         (cp_lookup_transparent_type_loop): Likewise.
2325         * cp-support.c (copy_string_to_obstack): Likewise.
2326         (make_symbol_overload_list): Likewise.
2327         (make_symbol_overload_list_namespace): Likewise.
2328         (make_symbol_overload_list_adl_namespace): Likewise.
2329         (first_component_command): Likewise.
2330         * cp-valprint.c (cp_print_value): Likewise.
2331         * ctf.c (ctf_xfer_partial): Likewise.
2332         * d-exp.y (StringExp): Likewise.
2333         * d-namespace.c (d_lookup_symbol_in_module): Likewise.
2334         (lookup_module_scope): Likewise.
2335         (find_symbol_in_baseclass): Likewise.
2336         (d_lookup_nested_symbol): Likewise.
2337         * dbxread.c (find_stab_function_addr): Likewise.
2338         (read_dbx_symtab): Likewise.
2339         (dbx_end_psymtab): Likewise.
2340         (cp_set_block_scope): Likewise.
2341         * dcache.c (dcache_alloc): Likewise.
2342         * demangle.c (_initialize_demangler): Likewise.
2343         * dicos-tdep.c (dicos_load_module_p): Likewise.
2344         * dictionary.c (dict_create_hashed_expandable): Likewise.
2345         (dict_create_linear_expandable): Likewise.
2346         (expand_hashtable): Likewise.
2347         (add_symbol_linear_expandable): Likewise.
2348         * dwarf2-frame.c (add_cie): Likewise.
2349         (add_fde): Likewise.
2350         (dwarf2_build_frame_info): Likewise.
2351         * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
2352         (dwarf_expr_fetch_address): Likewise.
2353         (add_piece): Likewise.
2354         (execute_stack_op): Likewise.
2355         * dwarf2loc.c (chain_candidate): Likewise.
2356         (dwarf_entry_parameter_to_value): Likewise.
2357         (read_pieced_value): Likewise.
2358         (write_pieced_value): Likewise.
2359         * dwarf2read.c (dwarf2_read_section): Likewise.
2360         (add_type_unit): Likewise.
2361         (read_comp_units_from_section): Likewise.
2362         (fixup_go_packaging): Likewise.
2363         (dwarf2_compute_name): Likewise.
2364         (dwarf2_physname): Likewise.
2365         (create_dwo_unit_in_dwp_v1): Likewise.
2366         (create_dwo_unit_in_dwp_v2): Likewise.
2367         (read_func_scope): Likewise.
2368         (read_call_site_scope): Likewise.
2369         (dwarf2_attach_fields_to_type): Likewise.
2370         (process_structure_scope): Likewise.
2371         (mark_common_block_symbol_computed): Likewise.
2372         (read_common_block): Likewise.
2373         (abbrev_table_read_table): Likewise.
2374         (guess_partial_die_structure_name): Likewise.
2375         (fixup_partial_die): Likewise.
2376         (add_file_name): Likewise.
2377         (dwarf2_const_value_data): Likewise.
2378         (dwarf2_const_value_attr): Likewise.
2379         (build_error_marker_type): Likewise.
2380         (guess_full_die_structure_name): Likewise.
2381         (anonymous_struct_prefix): Likewise.
2382         (typename_concat): Likewise.
2383         (dwarf2_canonicalize_name): Likewise.
2384         (dwarf2_name): Likewise.
2385         (write_constant_as_bytes): Likewise.
2386         (dwarf2_fetch_constant_bytes): Likewise.
2387         (copy_string): Likewise.
2388         (parse_macro_definition): Likewise.
2389         * elfread.c (elf_symfile_segments): Likewise.
2390         (elf_rel_plt_read): Likewise.
2391         (elf_gnu_ifunc_resolve_by_cache): Likewise.
2392         (elf_gnu_ifunc_resolve_by_got): Likewise.
2393         (elf_read_minimal_symbols): Likewise.
2394         (elf_gnu_ifunc_record_cache): Likewise.
2395         * event-top.c (top_level_prompt): Likewise.
2396         (command_line_handler): Likewise.
2397         * exec.c (resize_section_table): Likewise.
2398         * expprint.c (print_subexp_standard): Likewise.
2399         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2400         * findcmd.c (parse_find_args): Likewise.
2401         * findvar.c (address_from_register): Likewise.
2402         * frame.c (get_prev_frame_always): Likewise.
2403         * gdb_bfd.c (gdb_bfd_ref): Likewise.
2404         (get_section_descriptor): Likewise.
2405         * gdb_obstack.c (obconcat): Likewise.
2406         (obstack_strdup): Likewise.
2407         * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
2408         (create_set_type): Likewise.
2409         (lookup_unsigned_typename): Likewise.
2410         (lookup_signed_typename): Likewise.
2411         (resolve_dynamic_union): Likewise.
2412         (resolve_dynamic_struct): Likewise.
2413         (add_dyn_prop): Likewise.
2414         (copy_dynamic_prop_list): Likewise.
2415         (arch_flags_type): Likewise.
2416         (append_composite_type_field_raw): Likewise.
2417         * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
2418         * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
2419         * go-exp.y (string_exp): Likewise.
2420         * go-lang.c (go_demangle): Likewise.
2421         * guile/guile.c (compute_scheme_string): Likewise.
2422         * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2423         (gdbscm_canonicalize_command_name): Likewise.
2424         * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
2425         (ioscm_init_memory_port): Likewise.
2426         (ioscm_reinit_memory_port): Likewise.
2427         * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
2428         (gdbscm_gc_dup_argv): Likewise.
2429         * h8300-tdep.c (h8300_push_dummy_call): Likewise.
2430         * hppa-tdep.c (internalize_unwinds): Likewise.
2431         (read_unwind_info): Likewise.
2432         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
2433         (windows_core_xfer_shared_libraries): Likewise.
2434         * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
2435         (i386_stap_parse_special_token_triplet): Likewise.
2436         (i386_stap_parse_special_token_three_arg_disp): Likewise.
2437         * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
2438         * inf-child.c (inf_child_fileio_readlink): Likewise.
2439         * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
2440         (inf_ptrace_store_register): Likewise.
2441         * infrun.c (follow_exec): Likewise.
2442         (displaced_step_prepare_throw): Likewise.
2443         (save_stop_context): Likewise.
2444         (save_infcall_suspend_state): Likewise.
2445         * jit.c (jit_read_descriptor): Likewise.
2446         (jit_read_code_entry): Likewise.
2447         (jit_symtab_line_mapping_add_impl): Likewise.
2448         (finalize_symtab): Likewise.
2449         (jit_unwind_reg_get_impl): Likewise.
2450         * jv-exp.y (QualifiedName): Likewise.
2451         * jv-lang.c (get_java_utf8_name): Likewise.
2452         (type_from_class): Likewise.
2453         (java_demangle_type_signature): Likewise.
2454         (java_class_name_from_physname): Likewise.
2455         * jv-typeprint.c (java_type_print_base): Likewise.
2456         * jv-valprint.c (java_value_print): Likewise.
2457         * language.c (add_language): Likewise.
2458         * linespec.c (add_sal_to_sals_basic): Likewise.
2459         (add_sal_to_sals): Likewise.
2460         (decode_objc): Likewise.
2461         (find_linespec_symbols): Likewise.
2462         * linux-fork.c (fork_save_infrun_state): Likewise.
2463         * linux-nat.c (linux_nat_detach): Likewise.
2464         (linux_nat_fileio_readlink): Likewise.
2465         * linux-record.c (record_linux_sockaddr): Likewise.
2466         (record_linux_msghdr): Likewise.
2467         (Do): Likewise.
2468         * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
2469         (linux_collect_regset_section_cb): Likewise.
2470         (linux_get_siginfo_data): Likewise.
2471         * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
2472         (try_thread_db_load_from_dir): Likewise.
2473         (thread_db_load_search): Likewise.
2474         (info_auto_load_libthread_db): Likewise.
2475         * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
2476         (m32c_m16c_pointer_to_address): Likewise.
2477         * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
2478         * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2479         * machoread.c (macho_check_dsym): Likewise.
2480         * macroexp.c (resize_buffer): Likewise.
2481         (gather_arguments): Likewise.
2482         (maybe_expand): Likewise.
2483         * macrotab.c (new_macro_key): Likewise.
2484         (new_source_file): Likewise.
2485         (new_macro_definition): Likewise.
2486         * mdebugread.c (parse_symbol): Likewise.
2487         (parse_type): Likewise.
2488         (parse_partial_symbols): Likewise.
2489         (psymtab_to_symtab_1): Likewise.
2490         * mem-break.c (default_memory_insert_breakpoint): Likewise.
2491         * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
2492         * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
2493         (mi_cmd_data_read_memory_bytes): Likewise.
2494         (mi_cmd_data_write_memory_bytes): Likewise.
2495         (mi_cmd_trace_frame_collected): Likewise.
2496         * mi/mi-parse.c (mi_parse_argv): Likewise.
2497         (mi_parse): Likewise.
2498         * minidebug.c (lzma_open): Likewise.
2499         (lzma_pread): Likewise.
2500         * mips-tdep.c (mips_read_fp_register_single): Likewise.
2501         (mips_print_fp_register): Likewise.
2502         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
2503         * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2504         * mt-tdep.c (mt_register_name): Likewise.
2505         (mt_registers_info): Likewise.
2506         (mt_push_dummy_call): Likewise.
2507         * namespace.c (add_using_directive): Likewise.
2508         * nat/linux-btrace.c (perf_event_read): Likewise.
2509         (linux_enable_bts): Likewise.
2510         * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
2511         * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
2512         * nto-tdep.c (nto_find_and_open_solib): Likewise.
2513         (nto_parse_redirection): Likewise.
2514         * objc-lang.c (objc_demangle): Likewise.
2515         (find_methods): Likewise.
2516         * objfiles.c (get_objfile_bfd_data): Likewise.
2517         (set_objfile_main_name): Likewise.
2518         (allocate_objfile): Likewise.
2519         (objfile_relocate): Likewise.
2520         (update_section_map): Likewise.
2521         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
2522         * p-exp.y (exp): Likewise.
2523         (yylex): Likewise.
2524         * p-valprint.c (pascal_object_print_value): Likewise.
2525         * parse.c (initialize_expout): Likewise.
2526         (mark_completion_tag): Likewise.
2527         (copy_name): Likewise.
2528         (parse_float): Likewise.
2529         (type_stack_reserve): Likewise.
2530         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2531         (ppu2spu_prev_register): Likewise.
2532         * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
2533         * printcmd.c (printf_wide_c_string): Likewise.
2534         (printf_pointer): Likewise.
2535         * probe.c (parse_probes): Likewise.
2536         * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2537         (cmdpy_init): Likewise.
2538         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
2539         * python/py-symtab.c (set_sal): Likewise.
2540         * python/py-unwind.c (pyuw_sniffer): Likewise.
2541         * python/python.c (python_interactive_command): Likewise.
2542         (compute_python_string): Likewise.
2543         * ravenscar-thread.c (get_running_thread_id): Likewise.
2544         * record-full.c (record_full_exec_insn): Likewise.
2545         (record_full_core_open_1): Likewise.
2546         * regcache.c (regcache_raw_read_signed): Likewise.
2547         (regcache_raw_read_unsigned): Likewise.
2548         (regcache_cooked_read_signed): Likewise.
2549         (regcache_cooked_read_unsigned): Likewise.
2550         * remote-fileio.c (remote_fileio_func_open): Likewise.
2551         (remote_fileio_func_rename): Likewise.
2552         (remote_fileio_func_unlink): Likewise.
2553         (remote_fileio_func_stat): Likewise.
2554         (remote_fileio_func_system): Likewise.
2555         * remote-mips.c (mips_xfer_memory): Likewise.
2556         (mips_load_srec): Likewise.
2557         (pmon_end_download): Likewise.
2558         * remote.c (new_remote_state): Likewise.
2559         (map_regcache_remote_table): Likewise.
2560         (remote_register_number_and_offset): Likewise.
2561         (init_remote_state): Likewise.
2562         (get_memory_packet_size): Likewise.
2563         (remote_pass_signals): Likewise.
2564         (remote_program_signals): Likewise.
2565         (remote_start_remote): Likewise.
2566         (remote_check_symbols): Likewise.
2567         (remote_query_supported): Likewise.
2568         (extended_remote_attach): Likewise.
2569         (process_g_packet): Likewise.
2570         (store_registers_using_G): Likewise.
2571         (putpkt_binary): Likewise.
2572         (read_frame): Likewise.
2573         (compare_sections_command): Likewise.
2574         (remote_hostio_pread): Likewise.
2575         (remote_hostio_readlink): Likewise.
2576         (remote_file_put): Likewise.
2577         (remote_file_get): Likewise.
2578         (remote_pid_to_exec_file): Likewise.
2579         (_initialize_remote): Likewise.
2580         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2581         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2582         * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2583         (bfd_uses_spe_extensions): Likewise.
2584         * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
2585         * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
2586         * solib-dsbt.c (decode_loadmap): Likewise.
2587         (fetch_loadmap): Likewise.
2588         (scan_dyntag): Likewise.
2589         (enable_break): Likewise.
2590         (dsbt_relocate_main_executable): Likewise.
2591         * solib-frv.c (fetch_loadmap): Likewise.
2592         (enable_break2): Likewise.
2593         (frv_relocate_main_executable): Likewise.
2594         * solib-spu.c (spu_relocate_main_executable): Likewise.
2595         (spu_bfd_open): Likewise.
2596         * solib-svr4.c (lm_info_read): Likewise.
2597         (read_program_header): Likewise.
2598         (find_program_interpreter): Likewise.
2599         (scan_dyntag): Likewise.
2600         (elf_locate_base): Likewise.
2601         (open_symbol_file_object): Likewise.
2602         (read_program_headers_from_bfd): Likewise.
2603         (svr4_relocate_main_executable): Likewise.
2604         * solib-target.c (solib_target_relocate_section_addresses): Likewise.
2605         * solib.c (solib_find_1): Likewise.
2606         (exec_file_find): Likewise.
2607         (solib_find): Likewise.
2608         * source.c (openp): Likewise.
2609         (print_source_lines_base): Likewise.
2610         (forward_search_command): Likewise.
2611         * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
2612         * spu-tdep.c (spu2ppu_prev_register): Likewise.
2613         (spu_get_overlay_table): Likewise.
2614         * stabsread.c (patch_block_stabs): Likewise.
2615         (define_symbol): Likewise.
2616         (again:): Likewise.
2617         (read_member_functions): Likewise.
2618         (read_one_struct_field): Likewise.
2619         (read_enum_type): Likewise.
2620         (common_block_start): Likewise.
2621         * stack.c (read_frame_arg): Likewise.
2622         (backtrace_command): Likewise.
2623         * stap-probe.c (stap_parse_register_operand): Likewise.
2624         * symfile.c (syms_from_objfile_1): Likewise.
2625         (find_separate_debug_file): Likewise.
2626         (load_command): Likewise.
2627         (load_progress): Likewise.
2628         (load_section_callback): Likewise.
2629         (reread_symbols): Likewise.
2630         (add_filename_language): Likewise.
2631         (allocate_compunit_symtab): Likewise.
2632         (read_target_long_array): Likewise.
2633         (simple_read_overlay_table): Likewise.
2634         * symtab.c (symbol_set_names): Likewise.
2635         (resize_symbol_cache): Likewise.
2636         (rbreak_command): Likewise.
2637         (completion_list_add_name): Likewise.
2638         (completion_list_objc_symbol): Likewise.
2639         (add_filename_to_list): Likewise.
2640         * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
2641         * target-memory.c (target_write_memory_blocks): Likewise.
2642         * target.c (target_read_string): Likewise.
2643         (read_whatever_is_readable): Likewise.
2644         (target_read_alloc_1): Likewise.
2645         (simple_search_memory): Likewise.
2646         (target_fileio_read_alloc_1): Likewise.
2647         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2648         * top.c (command_line_input): Likewise.
2649         * tracefile-tfile.c (tfile_fetch_registers): Likewise.
2650         * tracefile.c (tracefile_fetch_registers): Likewise.
2651         * tracepoint.c (add_memrange): Likewise.
2652         (init_collection_list): Likewise.
2653         (add_aexpr): Likewise.
2654         (trace_dump_actions): Likewise.
2655         (parse_trace_status): Likewise.
2656         (parse_tracepoint_definition): Likewise.
2657         (parse_tsv_definition): Likewise.
2658         (parse_static_tracepoint_marker_definition): Likewise.
2659         * tui/tui-file.c (tui_sfileopen): Likewise.
2660         (tui_file_adjust_strbuf): Likewise.
2661         * tui/tui-io.c (tui_expand_tabs): Likewise.
2662         * tui/tui-source.c (tui_set_source_content): Likewise.
2663         * typeprint.c (find_global_typedef): Likewise.
2664         * ui-file.c (do_ui_file_xstrdup): Likewise.
2665         (ui_file_obsavestring): Likewise.
2666         (mem_file_write): Likewise.
2667         * utils.c (make_hex_string): Likewise.
2668         (get_regcomp_error): Likewise.
2669         (puts_filtered_tabular): Likewise.
2670         (gdb_realpath_keepfile): Likewise.
2671         (ldirname): Likewise.
2672         (gdb_bfd_errmsg): Likewise.
2673         (substitute_path_component): Likewise.
2674         * valops.c (search_struct_method): Likewise.
2675         (find_oload_champ_namespace_loop): Likewise.
2676         * valprint.c (print_decimal_chars): Likewise.
2677         (read_string): Likewise.
2678         (generic_emit_char): Likewise.
2679         * varobj.c (varobj_delete): Likewise.
2680         (varobj_value_get_print_value): Likewise.
2681         * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
2682         * windows-tdep.c (display_one_tib): Likewise.
2683         * xcoffread.c (read_xcoff_symtab): Likewise.
2684         (process_xcoff_symbol): Likewise.
2685         (swap_sym): Likewise.
2686         (scan_xcoff_symtab): Likewise.
2687         (xcoff_initial_scan): Likewise.
2688         * xml-support.c (gdb_xml_end_element): Likewise.
2689         (xml_process_xincludes): Likewise.
2690         (xml_fetch_content_from_file): Likewise.
2691         * xml-syscall.c (xml_list_of_syscalls): Likewise.
2692         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2693
2694 2015-09-23  James Bowman  <james.bowman@ftdichip.com>
2695
2696         * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
2697         instead of builtin_func_ptr.
2698         (ft32_pointer_to_address): New function.
2699         (ft32_address_class_type_flags): New function.
2700         (ft32_address_class_type_flags_to_name): New function.
2701         (ft32_address_class_name_to_type_flags): New function.
2702         (ft32_gdbarch_init): Set tdep->pc_type.  Call
2703         set_gdbarch_pointer_to_address,
2704         set_gdbarch_address_class_type_flags
2705         set_gdbarch_address_class_name_to_type_flags,
2706         and set_gdbarch_address_class_type_flags_to_name.
2707         * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
2708
2709 2015-09-23  Pierre-Marie de Rodat  <derodat@adacore.com>
2710
2711         * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
2712         value is a reference, actually dereference it in order to get
2713         the underlying value.
2714
2715 2015-09-22  Simon Marchi  <simon.marchi@ericsson.com>
2716
2717         * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
2718
2719 2015-09-21  Simon Marchi  <simon.marchi@ericsson.com>
2720
2721         * cli/cli-setshow.c (cmd_show_list): Constify a variable.
2722         * linespec.c (linespec_lexer_lex_string): Same.
2723
2724 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2725
2726         * NEWS: Mention support for fast tracepoints on aarch64-linux.
2727
2728 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2729
2730         * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
2731         variable.  Call aarch64_decode_adr instead of
2732         aarch64_decode_adrp.
2733         * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
2734         (aarch64_decode_adr): New function declaration.
2735         * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
2736         (aarch64_decode_adr): New function, factored out from
2737         aarch64_decode_adrp to decode both adr and adrp instructions.
2738
2739 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2740
2741         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
2742         (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
2743         (aarch64-insn.o): New rule.
2744         * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
2745         (aarch64*-*-linux*): Likewise.
2746         * arch/aarch64-insn.c: New file.
2747         * arch/aarch64-insn.h: New file.
2748         * aarch64-tdep.c: Include arch/aarch64-insn.h.
2749         (aarch64_debug): Move to arch/aarch64-insn.c.  Declare in
2750         arch/aarch64-insn.h.
2751         (decode_add_sub_imm): Rename to ...
2752         (aarch64_decode_add_sub_imm): ... this.
2753         (decode_adrp): Rename to ...
2754         (aarch64_decode_adrp): ... this.  Move to arch/aarch64-insn.c.
2755         Declare in arch/aarch64-insn.h.
2756         (decode_b): Rename to ...
2757         (aarch64_decode_b): ... this.  Move to arch/aarch64-insn.c.
2758         Declare in arch/aarch64-insn.h.
2759         (decode_bcond): Rename to ...
2760         (aarch64_decode_bcond): ... this.  Move to arch/aarch64-insn.c.
2761         Declare in arch/aarch64-insn.h.
2762         (decode_br): Rename to ...
2763         (aarch64_decode_br): ... this.
2764         (decode_cb): Rename to ...
2765         (aarch64_decode_cb): ... this.  Move to arch/aarch64-insn.c.
2766         Declare in arch/aarch64-insn.h.
2767         (decode_eret): Rename to ...
2768         (aarch64_decode_eret): ... this.
2769         (decode_movz): Rename to ...
2770         (aarch64_decode_movz): ... this.
2771         (decode_orr_shifted_register_x): Rename to ...
2772         (aarch64_decode_orr_shifted_register_x): ... this.
2773         (decode_ret): Rename to ...
2774         (aarch64_decode_ret): ... this.
2775         (decode_stp_offset): Rename to ...
2776         (aarch64_decode_stp_offset): ... this.
2777         (decode_stp_offset_wb): Rename to ...
2778         (aarch64_decode_stp_offset_wb): ... this.
2779         (decode_stur): Rename to ...
2780         (aarch64_decode_stur): ... this.
2781         (decode_tb): Rename to ...
2782         (aarch64_decode_tb): ... this.  Move to arch/aarch64-insn.c.
2783         Declare in arch/aarch64-insn.h.
2784         (aarch64_analyze_prologue): Adjust calls to renamed functions.
2785
2786 2015-09-20  Doug Evans  <xdje42@gmail.com>
2787
2788         * dwarf2read.c (add_partial_symbol): Remove outdated comments.
2789
2790 2015-09-20  Doug Evans  <xdje42@gmail.com>
2791
2792         * dwarf2read.c (dwarf2_compute_name): Add FIXME.  Don't use a local
2793         variable name that collides with a parameter.
2794
2795 2015-09-20  Joel Brobecker  <brobecker@adacore.com>
2796
2797         * dwarf2loc.c (locexpr_get_frame_base): Renames
2798         block_op_get_frame_base.
2799         (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
2800         block_op_get_frame_base by reference to locexpr_get_frame_base.
2801         (loclist_get_frame_base): New function, near identical copy of
2802         locexpr_get_frame_base.
2803         (dwarf2_block_frame_base_loclist_funcs): Replace reference to
2804         block_op_get_frame_base by reference to loclist_get_frame_base.
2805
2806 2015-09-19  Doug Evans  <xdje42@gmail.com>
2807
2808         * ravenscar-thread.c (ravenscar_inferior_created): Replace
2809         current_inferior ()->gdbarch with its wrapper target_gdbarch.
2810
2811 2015-09-18  Doug Evans  <xdje42@gmail.com>
2812
2813         * linux-thread-db.c (record_thread): Return the created thread.
2814         (thread_from_lwp): Likewise.
2815         (thread_db_get_thread_local_address): Update.
2816
2817 2015-09-18  Doug Evans  <xdje42@gmail.com>
2818
2819         * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
2820         move only member demangled_name up.  All uses updated.
2821
2822 2015-09-18  Doug Evans  <xdje42@gmail.com>
2823
2824         * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
2825         kind of minimal symbol in the error message.
2826         * objfiles.c (objfile_flavour_name): New function.
2827         * objfiles.h (objfile_flavour_name): Declare.
2828
2829 2015-09-18  Yao Qi  <yao.qi@linaro.org>
2830
2831         * nat/aarch64-linux.c: Include elf/common.h,
2832         nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
2833         (aarch64_ps_get_thread_area): New function.
2834         * nat/aarch64-linux.h: Include gdb_proc_service.h.
2835         (aarch64_ps_get_thread_area): Declare.
2836         * aarch64-linux-nat.c (ps_get_thread_area): Call
2837         aarch64_ps_get_thread_area.
2838
2839 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2840
2841         * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
2842
2843 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2844
2845         * NEWS: Announce new scheduler-locking mode.
2846         * infrun.c (schedlock_replay): New.
2847         (scheduler_enums): Add schedlock_replay.
2848         (scheduler_mode): Change default to schedlock_replay.
2849         (user_visible_resume_ptid): Handle schedlock_replay.
2850         (clear_proceed_status_thread): Stop replaying if resumed thread is
2851         not replaying.
2852         (schedlock_applies): Handle schedlock_replay.
2853         (_initialize_infrun): Document new scheduler-locking mode.
2854         * record-btrace.c (record_btrace_resume): Remove code to stop other
2855         threads when not replaying the resumed thread.
2856
2857 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2858
2859         * record-btrace.c ((record_btrace_will_replay): New.
2860         (init_record_btrace_ops): Initialize to_record_will_replay.
2861         * record-full.c ((record_full_will_replay): New.
2862         (init_record_full_ops): Initialize to_record_will_replay.
2863         * target-delegates.c: Regenerated.
2864         * target.c (target_record_will_replay): New.
2865         * target.h (struct target_ops) <to_record_will_replay>: New.
2866         (target_record_will_replay): New.
2867
2868 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2869
2870         * record-btrace.c (record_btrace_resume): Call
2871         target_record_stop_replaying.
2872         (record_btrace_stop_replaying_all): New.
2873         (init_record_btrace_ops): Initialize to_record_stop_replaying.
2874         * record-full.c (record_full_stop_replaying): New.
2875         (init_record_full_ops ): Initialize to_record_stop_replaying.
2876         * target-delegates.c: Regenerated.
2877         * target.c (target_record_stop_replaying): New.
2878         * target.h (struct target_ops) <to_record_stop_replaying>: New.
2879         (target_record_stop_replaying): New.
2880
2881 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2882
2883         * record-btrace.c (record_btrace_xfer_partial)
2884         (record_btrace_store_registers, record_btrace_prepare_to_store):
2885         Call record_btrace_is_replaying with inferior_ptid instead of
2886         minus_one_ptid.
2887         (record_btrace_store_registers): Change error message.
2888
2889 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2890
2891         * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2892         Update users to pass minus_one_ptid.
2893         * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2894         * record.c (cmd_record_delete): Pass inferior_ptid to
2895         target_record_is_replaying.
2896         * target-delegates.c: Regenerated.
2897         * target.c (target_record_is_replaying): Add ptid argument.
2898         * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2899         argument.
2900         (target_record_is_replaying): Add ptid argument.
2901
2902 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2903
2904         * record-btrace.c (record_btrace_open): Remove non_stop check.
2905         * NEWS: Announce that record btrace supports non-stop mode.
2906
2907 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2908
2909         * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2910         in the TARKET_WAITKIND_NO_HISTORY case.
2911
2912 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2913
2914         * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2915         (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2916
2917 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2918
2919         * record-btrace.c (get_thread_current_frame): New.
2920         (record_btrace_start_replaying): Call get_thread_current_frame.
2921
2922 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2923
2924         * record-btrace.c (record_btrace_resume_thread): A move request
2925         overwrites a previous move request.
2926         (record_btrace_find_resume_thread): Removed.
2927         (record_btrace_resume): Resume all requested threads.
2928
2929 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2930
2931         * record-btrace.c: Include vec.h.
2932         (record_btrace_find_thread_to_move): Removed.
2933         (btrace_step_no_resumed, btrace_step_again)
2934         (record_btrace_stop_replaying_at_end): New.
2935         (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2936         (record_btrace_single_step_forward): Remove calls to
2937         record_btrace_stop_replaying.
2938         (record_btrace_step_thread): Do only one step for BTHR_CONT and
2939         BTHR_RCONT.  Keep threads at the end of their history moving.
2940         (record_btrace_wait): Call record_btrace_step_thread for all threads
2941         until one reports an event.  Call record_btrace_stop_replaying_at_end
2942         for the eventing thread.
2943
2944 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2945
2946         * record-btrace.c (record_btrace_single_step_forward): Return
2947         NO_HISTORY if a step brings us to the end of the execution history.
2948
2949 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2950
2951         * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2952         to ...
2953         (record_btrace_single_step_forward): ... here and
2954         (record_btrace_single_step_backward): ... here.
2955
2956 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2957
2958         * record-btrace.c (btrace_step_spurious)
2959         (record_btrace_single_step_forward)
2960         (record_btrace_single_step_backward): New.
2961         (record_btrace_step_thread): Call record_btrace_single_step_forward
2962         and record_btrace_single_step_backward.
2963
2964 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2965
2966         * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2967         (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2968
2969 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2970
2971         * record-btrace.c (btrace_thread_flag_to_str)
2972         (record_btrace_cancel_resume): New.
2973         (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2974         (record_btrace_resume): Print execution direction.
2975         (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2976         (record_btrace_wait): Call record_btrace_cancel_resume.
2977
2978 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2979
2980         * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2981         * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2982         (record_btrace_find_thread_to_move): Also accept threads that have
2983         BTHR_STOP set.
2984         (btrace_step_stopped_on_request, record_btrace_stop): New.
2985         (record_btrace_step_thread): Support BTHR_STOP.
2986         (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2987         (init_record_btrace_ops): Initialize to_stop.
2988
2989 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2990
2991         * record-btrace.c (record_btrace_wait): Replace non_stop check with
2992         target_is_non_stop_p ().
2993
2994 2015-09-15  Pierre-Marie de Rodat  <derodat@adacore.com>
2995
2996         * ada-typeprint.c (print_array_type): Do not describe arrays as
2997         packed when they embed dynamic elements.
2998
2999 2015-09-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
3000
3001         * symtab.h (address_class): Document that TLS variables
3002         are handled by LOC_UNRESOLVED.
3003         * findvar.c (default_read_var_value): Don't relocate TLS variables.
3004         * printcmd.c (address_info): Don't relocate TLS variables.
3005
3006 2015-09-15  Pierre Langlois  <pierre.langlois@arm.com>
3007
3008         * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
3009         (decode_adrp): Likewise.
3010         (decode_b): Likewise.
3011         (decode_bcond): Likewise.
3012         (decode_br): Likewise.
3013         (decode_cb): Likewise.
3014         (decode_eret): Likewise.
3015         (decode_movz): Likewise.
3016         (decode_orr_shifted_register_x): Likewise.
3017         (decode_ret): Likewise.
3018         (decode_stp_offset): Likewise.
3019         (decode_stp_offset_wb): Likewise.
3020         (decode_stur): Likewise.
3021         (decode_tb): Likewise.
3022         (aarch64_analyze_prologue): Likewise.
3023         (pass_in_x): Likewise.
3024         (pass_in_v): Likewise.
3025         (pass_on_stack): Likewise.
3026         (aarch64_push_dummy_call): Likewise.
3027         (aarch64_extract_return_value): Likewise.
3028         (aarch64_store_return_value): Likewise.
3029         (aarch64_return_value): Likewise.
3030         (aarch64_record_asimd_load_store): Likewise.
3031         (aarch64_record_load_store): Likewise.
3032         (aarch64_record_data_proc_simd_fp): Likewise.
3033
3034 2015-09-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
3035
3036         * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
3037         * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
3038         (ppc64_skip_trampoline_code_1): ... here.
3039         (ppc64_skip_trampoline_code): New wrapper function.
3040         * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
3041
3042 2015-09-15  Yao Qi  <yao.qi@linaro.org>
3043
3044         * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
3045         function.
3046         (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
3047         * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
3048         if target_can_do_single_step returns 1.
3049         * remote.c (struct vCont_action_support) <s, S>: New fields.
3050         (PACKET_vContSupported): New enum.
3051         (remote_protocol_features): New element for vContSupported.
3052         (remote_query_supported): Append "vContSupported+".
3053         (remote_vcont_probe): Remove support_s and support_S, use
3054         rs->supports_vCont.s and rs->supports_vCont.S instead.  Disable
3055         vCont packet if c and C actions are not supported.
3056         (remote_can_do_single_step): New function.
3057         (init_remote_ops): Install it to to_can_do_single_step.
3058         (_initialize_remote): Call add_packet_config_cmd.
3059         * target.h (struct target_ops) <to_can_do_single_step>: New field.
3060         (target_can_do_single_step): New macro.
3061         * target-delegates.c: Re-generated.
3062
3063 2015-09-15  Yao Qi  <yao.qi@linaro.org>
3064
3065         * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
3066         (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
3067         * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
3068         New function.
3069         (aarch64_siginfo_from_compat_siginfo): New function.
3070         * nat/aarch64-linux.h: Include signal.h.
3071         (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
3072         (compat_timer_t, compat_clock_t): Likewise.
3073         (struct compat_timeval): New.
3074         (union compat_sigval): New.
3075         (struct compat_siginfo): New.
3076         (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
3077         (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
3078         (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
3079         (cpt_si_band, cpt_si_fd): Likewise.
3080
3081 2015-09-14  Pedro Alves  <palves@redhat.com>
3082
3083         * infrun.c (current_stop_id): New global.
3084         (get_stop_id, new_stop_id): New functions.
3085         (fetch_inferior_event): Handle normal_stop proceeding the target.
3086         (struct stop_context): New.
3087         (save_stop_context, release_stop_context_cleanup)
3088         (stop_context_changed): New functions.
3089         (normal_stop): Return true if the hook-stop changes the stop
3090         context.
3091         * infrun.h (get_stop_id): Declare.
3092         (normal_stop): Now returns int.  Add documentation.
3093
3094 2015-09-14  Pierre-Marie de Rodat  <derodat@adacore.com>
3095
3096         * ada-lang.c (ada_value_ptr_subscript): Update the heading
3097         comment.  Handle packed arrays.
3098
3099 2015-09-14  Pedro Alves  <palves@redhat.com>
3100
3101         * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
3102         mention of maint set/show target-non-stop.
3103
3104 2015-09-11  Don Breazeal  <donb@codesourcery.com>
3105
3106         * NEWS: Announce new remote packets for the exec-events
3107         feature and the exec-events feature and associated commands.
3108
3109 2015-09-11  Don Breazeal  <donb@codesourcery.com>
3110
3111         * remote.c (remote_exec_event_p): New function.
3112         (remote_insert_exec_catchpoint): New function.
3113         (remote_remove_exec_catchpoint): New function.
3114         (init_extended_remote_ops): Initialize extended_remote_ops
3115         members to_insert_exec_catchpoint and
3116         to_remove_exec_catchpoint.
3117
3118 2015-09-11  Don Breazeal  <donb@codesourcery.com>
3119             Luis Machado  <lgustavo@codesourcery.com>
3120
3121         * infrun.c (follow_exec): Use process-style ptid for
3122         exec message.  Call add_inferior_with_spaces and
3123         target_follow_exec.
3124         * nat/linux-ptrace.c (linux_supports_traceexec): New function.
3125         * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
3126         * remote.c (remote_pspace_data): New static variable.
3127         (remote_pspace_data_cleanup): New function.
3128         (get_remote_exec_file): New function.
3129         (set_remote_exec_file_1): New function.
3130         (set_remote_exec_file): New function.
3131         (show_remote_exec_file): New function.
3132         (remote_exec_file): Delete static variable.
3133         (anonymous enum) <PACKET_exec_event_feature>: New
3134         enumeration constant.
3135         (remote_protocol_features): Add entry for exec-events feature.
3136         (remote_query_supported): Add client side of qSupported query
3137         for exec-events feature.
3138         (remote_follow_exec): New function.
3139         (remote_parse_stop_reply): Handle 'exec' stop reason.
3140         (extended_remote_run, extended_remote_create_inferior): Call
3141         get_remote_exec_file and set_remote_exec_file_1.
3142         (init_extended_remote_ops) <to_follow_exec>: Initialize new
3143         member.
3144         (_initialize_remote): Call
3145         register_program_space_data_with_cleanup.  Call
3146         add_packet_config_cmd for remote exec-events feature.
3147         Modify call to add_setshow_string_noescape_cmd for exec-file
3148         to use new functions set_remote_exec_file and
3149         show_remote_exec_file.
3150         * target-debug.h, target-delegates.c: Regenerated.
3151         * target.c (target_follow_exec): New function.
3152         * target.h (struct target_ops) <to_follow_exec>: New member.
3153         (target_follow_exec): Declare new function.
3154
3155 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
3156
3157         * aarch64-tdep.c (decode_cb): Move up comment describing the
3158         encoding.
3159         (decode_tb): Fix a typo in comment above the function.  Move up
3160         comment describing the encoding.
3161
3162 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
3163
3164         * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
3165
3166 2015-09-11  Mihail-Marian Nistor  <mihail.nistor@freescale.com>
3167
3168         PR gdb/18947
3169         * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
3170         glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
3171
3172 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
3173
3174         * ada-lang.c (scan_discrim_bound): Factor out arithmetic
3175         operations.
3176
3177 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
3178
3179         * ada-lang.c (ada_search_struct_field): Constify parameters
3180         and/or variables..
3181         (xget_renaming_scope): Likewise.
3182         (ada_is_redundant_range_encoding): Likewise.
3183         (scan_discrim_bound): Likewise.
3184         (to_fixed_range_type): Likewise.
3185
3186 2015-09-10  Yao Qi  <yao.qi@linaro.org>
3187
3188         * breakpoint.c (download_tracepoint_locations): New local
3189         can_download_tracepoint.  Check the result of
3190         target_can_download_tracepoint and save it in
3191         can_download_tracepoint if there are tracepoints to download.
3192         * linux-nat.h (enum tribool): Move it to ...
3193         * common/common-types.h: ... here.
3194
3195 2015-09-09  Pedro Alves  <palves@redhat.com>
3196
3197         * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
3198         * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
3199
3200 2015-09-09  Pedro Alves  <palves@redhat.com>
3201
3202         * continuations.c (add_continuation, restore_thread_cleanup)
3203         (do_all_continuations_ptid, do_all_continuations_thread_callback)
3204         (do_all_continuations_thread, do_all_continuations)
3205         (discard_all_continuations_thread_callback)
3206         (discard_all_continuations_thread, discard_all_continuations)
3207         (add_intermediate_continuation)
3208         (do_all_intermediate_continuations_thread_callback)
3209         (do_all_intermediate_continuations_thread)
3210         (do_all_intermediate_continuations)
3211         (discard_all_intermediate_continuations_thread_callback)
3212         (discard_all_intermediate_continuations_thread)
3213         (discard_all_intermediate_continuations): Delete.
3214         * continuations.h (add_continuation, do_all_continuations)
3215         (do_all_continuations_thread, discard_all_continuations)
3216         (discard_all_continuations_thread, add_intermediate_continuation)
3217         (do_all_intermediate_continuations)
3218         (do_all_intermediate_continuations_thread)
3219         (discard_all_intermediate_continuations)
3220         (discard_all_intermediate_continuations_thread): Delete
3221         declarations.
3222         * event-top.c (stdin_event_handler): Delete references to
3223         continuations.
3224         * gdbthread.h (struct thread_info): Delete continuations and
3225         intermediate_continuations fields.
3226         * inf-loop.c (inferior_event_handler): Remove references to
3227         continuations.
3228         * infrun.c (infrun_thread_stop_requested_callback): Remove
3229         references to continuations.
3230         * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
3231         * thread.c: Don't include "continuations.h".
3232         (clear_thread_inferior_resources): Remove references to
3233         continuations.
3234
3235 2015-09-09  Pedro Alves  <palves@redhat.com>
3236
3237         * infcall.c (struct dummy_frame_context_saver): Delete.
3238         (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
3239         (dummy_frame_context_saver_drop)
3240         (dummy_frame_context_saver_cleanup)
3241         (dummy_frame_context_saver_get_regs)
3242         (dummy_frame_context_saver_setup): Delete.
3243         * infcall.h (dummy_frame_context_saver_drop)
3244         (dummy_frame_context_saver_cleanup)
3245         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
3246         Delete.
3247         (get_return_value): Remove 'ctx_saver' paremeter.  Adjust.
3248         * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
3249         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
3250
3251 2015-09-09  Pedro Alves  <palves@redhat.com>
3252
3253         * breakpoint.c: Include "thread-fsm.h".
3254         (struct until_break_command_continuation_args): Delete.
3255         (struct until_break_fsm): New.
3256         (until_break_fsm_ops): New global.
3257         (new_until_break_fsm, until_break_fsm_should_stop): New functions.
3258         (until_break_command_continuation): Delete.
3259         (until_break_fsm_clean_up): New function.
3260         (until_break_fsm_async_reply_reason): New function.
3261         (until_break_command): Adjust to create an until_break_fsm instead
3262         of a continuation.
3263         (momentary_bkpt_print_it): No longer print MI's async-stop-reason
3264         here.
3265         * infcmd.c (struct until_next_fsm): New.
3266         (until_next_fsm_ops): New global.
3267         (new_until_next_fsm, until_next_fsm_should_stop): New function.
3268         (until_next_continuation): Delete.
3269         (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
3270         functions.
3271         (until_next_command): Adjust to create a new until_next_fsm
3272         instead of a continuation.
3273
3274 2015-09-09  Pedro Alves  <palves@redhat.com>
3275
3276         * infcall.c: Include thread_fsm.h.
3277         (struct call_return_meta_info): New.
3278         (get_call_return_value): New function, factored out from
3279         call_function_by_hand_dummy.
3280         (struct call_thread_fsm): New.
3281         (call_thread_fsm_ops): New global.
3282         (new_call_thread_fsm, call_thread_fsm_should_stop)
3283         (call_thread_fsm_should_notify_stop): New functions.
3284         (run_inferior_call): Add 'sm' parameter.  Associate the FSM with
3285         the thread.
3286         (call_function_by_hand_dummy): Create a new call_thread_fsm
3287         instance, associate it with the thread, and wait for the FSM to
3288         finish.  If finished successfully, fetch the function's result
3289         value out of the FSM.
3290         * infrun.c (fetch_inferior_event): If the FSM says the stop
3291         shouldn't be notified, don't call normal_stop.
3292         (maybe_remove_breakpoints): New function, factored out from ...
3293         (normal_stop): ... here.  Simplify.
3294         * infrun.h (maybe_remove_breakpoints): Declare.
3295         * thread-fsm.c (thread_fsm_should_notify_stop): New function.
3296         (thread-fsm.h) <struct thread_fsm_ops>: New field.
3297         (thread_fsm_should_notify_stop): Declare.
3298
3299 2015-09-09  Pedro Alves  <palves@redhat.com>
3300
3301         * Makefile.in (COMMON_OBS): Add thread-fsm.o.
3302         * breakpoint.c (handle_jit_event): Print debug output.
3303         (bpstat_what): Split event callback handling to ...
3304         (bpstat_run_callbacks): ... this new function.
3305         (momentary_bkpt_print_it): No longer handle bp_finish here.
3306         * breakpoint.h (bpstat_run_callbacks): Declare.
3307         * gdbthread.h (struct thread_info) <step_multi>: Delete field.
3308         <thread_fsm>: New field.
3309         (thread_cancel_execution_command): Declare.
3310         * infcmd.c: Include thread-fsm.h.
3311         (struct step_command_fsm): New.
3312         (step_command_fsm_ops): New global.
3313         (new_step_command_fsm, step_command_fsm_prepare): New functions.
3314         (step_1): Adjust to use step_command_fsm_prepare and
3315         prepare_one_step.
3316         (struct step_1_continuation_args): Delete.
3317         (step_1_continuation): Delete.
3318         (step_command_fsm_should_stop): New function.
3319         (step_once): Delete.
3320         (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
3321         (prepare_one_step): New function, based on step_once.
3322         (until_next_command): Remove step_multi reference.
3323         (struct return_value_info): New.
3324         (print_return_value): Rename to ...
3325         (print_return_value_1): ... this.  New struct return_value_info
3326         parameter.  Adjust.
3327         (print_return_value): Reimplement as wrapper around
3328         print_return_value_1.
3329         (struct finish_command_fsm): New.
3330         (finish_command_continuation): Delete.
3331         (finish_command_fsm_ops): New global.
3332         (new_finish_command_fsm, finish_command_fsm_should_stop): New
3333         functions.
3334         (finish_command_fsm_clean_up, finish_command_fsm_return_value):
3335         New.
3336         (finish_command_continuation_free_arg): Delete.
3337         (finish_command_fsm_async_reply_reason): New.
3338         (finish_backward, finish_forward): Change symbol parameter to a
3339         finish_command_fsm.  Adjust.
3340         (finish_command): Create a finish_command_fsm.  Adjust.
3341         * infrun.c: Include "thread-fsm.h".
3342         (clear_proceed_status_thread): Delete the thread's FSM.
3343         (infrun_thread_stop_requested_callback): Cancel the thread's
3344         execution command.
3345         (clean_up_just_stopped_threads_fsms): New function.
3346         (fetch_inferior_event): Handle the event_thread's should_stop
3347         method saying the command isn't done yet.
3348         (process_event_stop_test): Run breakpoint callbacks here.
3349         (print_stop_event): Rename to ...
3350         (print_stop_location): ... this.
3351         (restore_current_uiout_cleanup): New function.
3352         (print_stop_event): Reimplement.
3353         (normal_stop): No longer notify the end_stepping_range observers
3354         here handle "step N" nor "finish" here.  No longer call
3355         print_stop_event here.
3356         * infrun.h (struct return_value_info): Forward declare.
3357         (print_return_value): Declare.
3358         (print_stop_event): Change prototype.
3359         * thread-fsm.c: New file.
3360         * thread-fsm.h: New file.
3361         * thread.c: Include "thread-fsm.h".
3362         (thread_cancel_execution_command): New function.
3363         (clear_thread_inferior_resources): Call it.
3364         * cli/cli-interp.c (cli_on_normal_stop): New function.
3365         (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
3366         observer.
3367         * mi/mi-interp.c: Include "thread-fsm.h".
3368         (restore_current_uiout_cleanup): Delete.
3369         (mi_on_normal_stop): If the thread has an FSM associated, and it
3370         finished, ask it for the async-reply-reason to print.  Always call
3371         print_stop_event here, regardless of the top-level interpreter.
3372         Check bpstat_what to tell whether an asynchronous breakpoint hit
3373         triggered.
3374         * tui/tui-interp.c (tui_on_normal_stop): New function.
3375         (tui_init): Install tui_on_normal_stop as normal_stop observer.
3376
3377 2015-09-09  Pedro Alves  <palves@redhat.com>
3378
3379         * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
3380         check whether the target can async.
3381         * inf-loop.c (inferior_event_handler): Only call target_async if
3382         the target can async.
3383         * infcall.c: Include top.h and interps.h.
3384         (run_inferior_call): For the interpreter to sync mode while
3385         running the infcall.  Call wait_sync_command_done instead of
3386         wait_for_inferior plus normal_stop.
3387         * infcmd.c (prepare_execution_command): Don't check whether the
3388         target can async when running in the foreground.
3389         (step_1): Delete synchronous case handling.
3390         (step_once): Always install a continuation, even in sync mode.
3391         (until_next_command, finish_forward): Don't check whether the
3392         target can async.
3393         (attach_command_post_wait, notice_new_inferior): Always install a
3394         continuation, even in sync mode.
3395         * infrun.c (mark_infrun_async_event_handler): New function.
3396         (proceed): In sync mode, mark infrun's event source instead of
3397         waiting for events here.
3398         (fetch_inferior_event): If the target can't async, do a blocking
3399         wait.
3400         (prepare_to_wait): In sync mode, mark infrun's event source.
3401         (infrun_async_inferior_event_handler): No longer bail out if the
3402         target can't async.
3403         * infrun.h (mark_infrun_async_event_handler): New declaration.
3404         * linux-nat.c (linux_nat_wait_1): Remove calls to
3405         set_sigint_trap/clear_sigint_trap.
3406         (linux_nat_terminal_inferior): No longer check whether the target
3407         can async.
3408         * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
3409         comment.
3410         (mi_execute_command_input_handler): No longer check whether the
3411         target is async.  Update and simplify comment.
3412         * target.c (default_target_wait): New function.
3413         * target.h (struct target_ops) <to_wait>: Now defaults to
3414         default_target_wait.
3415         (default_target_wait): Declare.
3416         * top.c (wait_sync_command_done): New function, factored out from
3417         ...
3418         (maybe_wait_sync_command_done): ... this.
3419         * top.h (wait_sync_command_done): Declare.
3420         * target-delegates.c: Regenerate.
3421
3422 2015-09-09  Markus Metzger  <markus.t.metzger@intel.com>
3423
3424         * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
3425         * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
3426         Remove include of sys/utsname.h.
3427         (linux_determine_kernel_ptr_bits): Remove.
3428         (linux_determine_kernel_start): New.
3429         (perf_event_is_kernel_addr): Remove tinfo argument.  Update users.
3430         Update check.
3431         (perf_event_skip_bts_record): Remove tinfo argument.  Update users.
3432         (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
3433         initialization.
3434         * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
3435         assignment.
3436
3437 2015-09-07  Pedro Alves  <palves@redhat.com>
3438
3439         * guile/guile-internal.h (as_a_scm_t_subr): New.
3440         * guile/guile.c (misc_guile_functions): Use it.
3441         * guile/scm-arch.c (arch_functions): Use it.
3442         * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
3443         Use it.
3444         * guile/scm-breakpoint.c (breakpoint_functions): Use it.
3445         * guile/scm-cmd.c (command_functions): Use it.
3446         * guile/scm-disasm.c (disasm_functions): Use it.
3447         * guile/scm-exception.c (exception_functions)
3448         (private_exception_functions): Use it.
3449         * guile/scm-frame.c (frame_functions)
3450         * guile/scm-gsmob.c (gsmob_functions): Use it.
3451         * guile/scm-iterator.c (iterator_functions): Use it.
3452         * guile/scm-lazy-string.c (lazy_string_functions): Use it.
3453         * guile/scm-math.c (math_functions): Use it.
3454         * guile/scm-objfile.c (objfile_functions): Use it.
3455         * guile/scm-param.c (parameter_functions): Use it.
3456         * guile/scm-ports.c (port_functions, private_port_functions): Use
3457         it.
3458         * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
3459         * guile/scm-progspace.c (pspace_functions): Use it.
3460         * guile/scm-string.c (string_functions): Use it.
3461         * guile/scm-symbol.c (symbol_functions): Use it.
3462         * guile/scm-symtab.c (symtab_functions): Use it.
3463         * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
3464         it.
3465         * guile/scm-value.c (value_functions): Use it.
3466
3467 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
3468
3469         * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
3470         (tui_next_win): Likewise.
3471         (tui_prev_win): Likewise.
3472         (tui_partial_win_by_name): Likewise.
3473         (tui_init_generic_part): Likewise.
3474         (init_content_element): Likewise.
3475         (tui_del_window): Likewise.
3476         (tui_free_window): Likewise.
3477         (tui_del_data_windows): Likewise.
3478         (tui_free_data_content): Likewise.
3479         * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
3480         * tui/tui-regs.c (tui_show_register_group): Likewise.
3481         * tui/tui-win.c (tui_resize_all): Likewise.
3482         (tui_set_focus): Likewise.
3483         (tui_set_win_height): Likewise.
3484         (make_invisible_and_set_new_height): Likewise.
3485         * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
3486         * tui/tui-wingeneral.c (make_visible): Likewise.
3487
3488 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
3489
3490         * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
3491
3492 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
3493
3494         * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
3495         pointer.
3496         * dbxread.c (dbx_end_psymtab): Likewise.
3497         * gnu-nat.c (gnu_write_inferior): Likewise.
3498         * mdebugread.c (cross_ref): Likewise.
3499         * p-valprint.c (pascal_val_print): Likewise.
3500         * xcoffread.c (xcoff_end_psymtab): Likewise.
3501
3502 2015-09-04  Yao Qi  <yao.qi@linaro.org>
3503
3504         * NEWS: Mention the aarch64 multi-arch debugging support.
3505
3506 2015-09-03  Pierre-Marie de Rodat  <derodat@adacore.com>
3507
3508         * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
3509         type instead of a TYPE_CODE_INT one for the string_char_type
3510         and the ada_primitive_type_char types.
3511
3512 2015-09-03  Yao Qi  <yao.qi@linaro.org>
3513
3514         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
3515         Move code to aarch64_linux_region_ok_for_watchpoint.  Call
3516         aarch64_linux_region_ok_for_watchpoint.
3517         * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
3518         New function.
3519         * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
3520         Declare it.
3521
3522 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
3523
3524         * gdb_obstack.h (obstack_strdup): Declare.
3525         * gdb_obstack.c (obstack_strdup): Define.
3526         * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
3527         * gdbarch.c: Regenerate.
3528         * gdbarch.h: Regenerate.
3529         * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
3530
3531 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
3532
3533         * gdbtypes.c (copy_type_recursive): Update documentation.
3534
3535 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
3536
3537         * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
3538         as zero.
3539
3540 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
3541
3542         * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
3543
3544 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
3545
3546         * solib-svr4.c (solib_event_probe_action): Call
3547         get_probe_argument_count using TRY...CATCH.
3548         (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
3549
3550 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
3551
3552         * probe.h (struct probe_ops) <get_probe_argument_count,
3553         evaluate_probe_argument, enable_probe, disable_probe>: Mention in
3554         the comment that the function can throw an exception.
3555         (get_probe_argument_count): Likewise.
3556         (evaluate_probe_argument): Likewise.
3557         * stap-probe.c (stap_get_opcode): Call error instead of
3558         internal_error.
3559         (stap_get_expected_argument_type): Likewise.  Add argument
3560         'probe'.  Improve error message by mentioning the probe's name.
3561         (stap_parse_probe_arguments): Adjust call to
3562         stap_get_expected_argument_type.
3563         (stap_get_arg): Add comment.  Assert that 'probe->args_parsed' is
3564         not zero.  Call internal_error if GDB requests an argument but the
3565         probe has no arguments.
3566
3567 2015-09-01  Pierre-Marie de Rodat  <derodat@adacore.com>
3568
3569         * ada-lang.c (ada_resolve_function): Do not ask the user what
3570         match to use when in completion mode.
3571
3572 2015-08-31  Andrew Burgess  <andrew.burgess@embecosm.com>
3573
3574         * tui/tui-data.c (tui_win_name): Make local variable const, remove
3575         cast of NULL.
3576
3577 2015-08-31  Max Filippov  <jcmvbkbc@gmail.com>
3578
3579         * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
3580         call_abi using XSHAL_ABI macro.
3581
3582 2015-08-29  Doug Evans  <xdje42@gmail.com>
3583
3584         * symtab.h (struct symbol): Tweak comment.
3585
3586 2015-08-29  Patrick Palka  <patrick@parcs.ath.cx>
3587
3588         * gdbtypes.c (alloc_type_arch): Allocate the type on the given
3589         gdbarch obstack instead of on the heap.  Update commentary
3590         accordingly.
3591
3592 2015-08-28  Joel Brobecker  <brobecker@adacore.com>
3593
3594         GDB 7.10 released.
3595
3596 2015-08-28  Simon Marchi  <simon.marchi@ericsson.com>
3597
3598         * NEWS: Update entry about non-8-bits addressable memory.
3599
3600 2015-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
3601
3602         Revert:
3603         2014-11-06  Doug Evans  <xdje42@gmail.com>
3604         * solib.c (solib_global_lookup): Fetch arch from objfile,
3605         not target_gdbarch.
3606
3607 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3608
3609         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
3610         attempt to relocate a TLS variable offset.
3611
3612 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3613
3614         * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
3615         registered yet.  Set inferior_ptid while calling target_read_memory.
3616
3617 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3618
3619         * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
3620         (GDB_ARCH_IS_TRAP_BRKPT): ... this.  Add __powerpc__ case.
3621         * linux-nat.c (check_stopped_by_breakpoint): Use
3622         GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
3623
3624 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3625
3626         * linux-thread-db.c (thread_db_get_thread_local_address): If the
3627         thread was not yet discovered, use thread_from_lwp instead of
3628         calling thread_db_find_new_threads_1.
3629
3630 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
3631
3632         * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
3633         statements.
3634
3635 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
3636
3637         * NEWS: Document support for non-8-bits addressable memory.
3638
3639 2015-08-27  Pedro Alves  <palves@redhat.com>
3640
3641         * configure.ac: Remove AC_TYPE_SIGNAL call.
3642         * configure, config.in: Regenerate.
3643
3644 2015-08-27  Pedro Alves  <palves@redhat.com>
3645
3646         * cp-support.c (gdb_demangle): Use sighandler_t.  Remove cast.
3647         * extension-priv.h: Include signal.h.
3648         (struct signal_handler) <handler>: Change type to sighandler_t.
3649         * extension.c (install_gdb_sigint_handler): Use sighandler_t.
3650         * inflow.c (sigint_ours, sigquit_ours): Change type to
3651         sighandler_t.
3652         (child_terminal_inferior): Remove casts.
3653         (child_terminal_ours_1, new_tty): Use sighandler_t.  Remove casts.
3654         (osig): Change type to sighandler_t.
3655         * nto-procfs.c (ofunc): Change type to sighandler_t.
3656         (procfs_wait): Remove casts.
3657         * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
3658         * remote-sim.c (gdbsim_wait): Use sighandler_t.
3659         * utils.c (wait_to_die_with_timeout): Use sighandler_t.
3660
3661 2015-08-27  Pedro Alves  <palves@redhat.com>
3662
3663         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
3664         * gnulib/aclocal.m4: Renegerate.
3665         * gnulib/config.in: Renegerate.
3666         * gnulib/configure: Renegerate.
3667         * gnulib/import/Makefile.am: Update.
3668         * gnulib/import/Makefile.in: Regenerate.
3669         * gnulib/import/m4/gnulib-cache.m4: Update.
3670         * gnulib/import/m4/gnulib-comp.m4: Update.
3671         * gnulib/import/m4/signal_h.m4: New file.
3672         * gnulib/import/signal.in.h: New file.
3673
3674 2015-08-27  Pedro Alves  <palves@redhat.com>
3675
3676         * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
3677         (MIN_MEMORY_PACKET_SIZE): New.
3678         (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
3679         (get_memory_packet_size): Adjust.  No longer limit the max packet
3680         size.
3681         (set_memory_packet_size): Adjust, and remove dead code.
3682         (remote_check_symbols): Use xmalloc and a cleanup instead of
3683         alloca.
3684         (remote_packet_size): No longer cap the packet size.
3685         (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
3686
3687 2015-08-26  Luis Machado  <lgustavo@codesourcery.com>
3688
3689         * compile/compile.c (compile_to_object): Mention language in
3690         error message.
3691
3692 2015-08-26  Patrick Palka  <patrick@parcs.ath.cx>
3693
3694         * target.c (target_pre_inferior): Unset attach_flag.
3695
3696 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
3697
3698         * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
3699         * gdbarch.c: Re-generate.
3700
3701 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
3702
3703         * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
3704         function with the XNEW-family equivalent.
3705         * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
3706         * ada-exp.y (write_ambiguous_var): Likewise.
3707         * ada-lang.c (resolve_subexp): Likewise.
3708         (user_select_syms): Likewise.
3709         (assign_aggregate): Likewise.
3710         (ada_evaluate_subexp): Likewise.
3711         (cache_symbol): Likewise.
3712         * addrmap.c (allocate_key): Likewise.
3713         (addrmap_create_mutable): Likewise.
3714         * aix-thread.c (sync_threadlists): Likewise.
3715         * alpha-tdep.c (alpha_push_dummy_call): Likewise.
3716         (alpha_gdbarch_init): Likewise.
3717         * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
3718         * arm-linux-nat.c (arm_linux_add_process): Likewise.
3719         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3720         * arm-tdep.c (push_stack_item): Likewise.
3721         (arm_displaced_step_copy_insn): Likewise.
3722         (arm_gdbarch_init): Likewise.
3723         (_initialize_arm_tdep): Likewise.
3724         * avr-tdep.c (push_stack_item): Likewise.
3725         * ax-general.c (new_agent_expr): Likewise.
3726         * block.c (block_initialize_namespace): Likewise.
3727         * breakpoint.c (alloc_counted_command_line): Likewise.
3728         (update_dprintf_command_list): Likewise.
3729         (parse_breakpoint_sals): Likewise.
3730         (decode_static_tracepoint_spec): Likewise.
3731         (until_break_command): Likewise.
3732         (clear_command): Likewise.
3733         (update_global_location_list): Likewise.
3734         (get_breakpoint_objfile_data) Likewise.
3735         * btrace.c (ftrace_new_function): Likewise.
3736         (btrace_set_insn_history): Likewise.
3737         (btrace_set_call_history): Likewise.
3738         * buildsym.c (add_symbol_to_list): Likewise.
3739         (record_pending_block): Likewise.
3740         (start_subfile): Likewise.
3741         (start_buildsym_compunit): Likewise.
3742         (push_subfile): Likewise.
3743         (end_symtab_get_static_block): Likewise.
3744         (buildsym_init): Likewise.
3745         * cli/cli-cmds.c (source_command): Likewise.
3746         * cli/cli-decode.c (add_cmd): Likewise.
3747         * cli/cli-script.c (build_command_line): Likewise.
3748         (setup_user_args): Likewise.
3749         (realloc_body_list): Likewise.
3750         (process_next_line): Likewise.
3751         (copy_command_lines): Likewise.
3752         * cli/cli-setshow.c (do_set_command): Likewise.
3753         * coff-pe-read.c (read_pe_exported_syms): Likewise.
3754         * coffread.c (coff_locate_sections): Likewise.
3755         (coff_symtab_read): Likewise.
3756         (coff_read_struct_type): Likewise.
3757         * common/cleanups.c (make_my_cleanup2): Likewise.
3758         * common/common-exceptions.c (throw_it): Likewise.
3759         * common/filestuff.c (make_cleanup_close): Likewise.
3760         * common/format.c (parse_format_string): Likewise.
3761         * common/queue.h (DEFINE_QUEUE_P): Likewise.
3762         * compile/compile-object-load.c (munmap_list_add): Likewise.
3763         (compile_object_load): Likewise.
3764         * compile/compile-object-run.c (compile_object_run): Likewise.
3765         * compile/compile.c (append_args): Likewise.
3766         * corefile.c (specify_exec_file_hook): Likewise.
3767         * cp-support.c (make_symbol_overload_list): Likewise.
3768         * cris-tdep.c (push_stack_item): Likewise.
3769         (cris_gdbarch_init): Likewise.
3770         * ctf.c (ctf_trace_file_writer_new): Likewise.
3771         * dbxread.c (init_header_files): Likewise.
3772         (add_new_header_file): Likewise.
3773         (init_bincl_list): Likewise.
3774         (dbx_end_psymtab): Likewise.
3775         (start_psymtab): Likewise.
3776         (dbx_end_psymtab): Likewise.
3777         * dcache.c (dcache_init): Likewise.
3778         * dictionary.c (dict_create_hashed): Likewise.
3779         (dict_create_hashed_expandable): Likewise.
3780         (dict_create_linear): Likewise.
3781         (dict_create_linear_expandable): Likewise.
3782         * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
3783         * dummy-frame.c (register_dummy_frame_dtor): Likewise.
3784         * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
3785         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3786         (decode_frame_entry_1): Likewise.
3787         * dwarf2expr.c (new_dwarf_expr_context): Likewise.
3788         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
3789         * dwarf2read.c (dwarf2_has_info): Likewise.
3790         (create_signatured_type_table_from_index): Likewise.
3791         (dwarf2_read_index): Likewise.
3792         (dw2_get_file_names_reader): Likewise.
3793         (create_all_type_units): Likewise.
3794         (read_cutu_die_from_dwo): Likewise.
3795         (init_tu_and_read_dwo_dies): Likewise.
3796         (init_cutu_and_read_dies): Likewise.
3797         (create_all_comp_units): Likewise.
3798         (queue_comp_unit): Likewise.
3799         (inherit_abstract_dies): Likewise.
3800         (read_call_site_scope): Likewise.
3801         (dwarf2_add_field): Likewise.
3802         (dwarf2_add_typedef): Likewise.
3803         (dwarf2_add_member_fn): Likewise.
3804         (attr_to_dynamic_prop): Likewise.
3805         (abbrev_table_alloc_abbrev): Likewise.
3806         (abbrev_table_read_table): Likewise.
3807         (add_include_dir): Likewise.
3808         (add_file_name): Likewise.
3809         (dwarf_decode_line_header): Likewise.
3810         (dwarf2_const_value_attr): Likewise.
3811         (dwarf_alloc_block): Likewise.
3812         (parse_macro_definition): Likewise.
3813         (set_die_type): Likewise.
3814         (write_psymtabs_to_index): Likewise.
3815         (create_cus_from_index): Likewise.
3816         (dwarf2_create_include_psymtab): Likewise.
3817         (process_psymtab_comp_unit_reader): Likewise.
3818         (build_type_psymtab_dependencies): Likewise.
3819         (read_comp_units_from_section): Likewise.
3820         (compute_compunit_symtab_includes): Likewise.
3821         (create_dwo_unit_in_dwp_v1): Likewise.
3822         (create_dwo_unit_in_dwp_v2): Likewise.
3823         (read_func_scope): Likewise.
3824         (process_structure_scope): Likewise.
3825         (mark_common_block_symbol_computed): Likewise.
3826         (load_partial_dies): Likewise.
3827         (dwarf2_symbol_mark_computed): Likewise.
3828         * elfread.c (elf_symfile_segments): Likewise.
3829         (elf_read_minimal_symbols): Likewise.
3830         * environ.c (make_environ): Likewise.
3831         * eval.c (evaluate_subexp_standard): Likewise.
3832         * event-loop.c (create_file_handler): Likewise.
3833         (create_async_signal_handler): Likewise.
3834         (create_async_event_handler): Likewise.
3835         (create_timer): Likewise.
3836         * exec.c (build_section_table): Likewise.
3837         * fbsd-nat.c (fbsd_remember_child): Likewise.
3838         * fork-child.c (fork_inferior): Likewise.
3839         * frv-tdep.c (new_variant): Likewise.
3840         * gdbarch.sh (gdbarch_alloc): Likewise.
3841         (append_name): Likewise.
3842         * gdbtypes.c (rank_function): Likewise.
3843         (copy_type_recursive): Likewise.
3844         (add_dyn_prop): Likewise.
3845         * gnu-nat.c (make_proc): Likewise.
3846         (make_inf): Likewise.
3847         (gnu_write_inferior): Likewise.
3848         * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3849         (build_std_type_info_type): Likewise.
3850         * guile/scm-param.c (compute_enum_list): Likewise.
3851         * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
3852         * guile/scm-value.c (gdbscm_value_call): Likewise.
3853         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3854         * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3855         (read_unwind_info): Likewise.
3856         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3857         * infcall.c (dummy_frame_context_saver_setup): Likewise.
3858         (call_function_by_hand_dummy): Likewise.
3859         * infcmd.c (step_once): Likewise.
3860         (finish_forward): Likewise.
3861         (attach_command): Likewise.
3862         (notice_new_inferior): Likewise.
3863         * inferior.c (add_inferior_silent): Likewise.
3864         * infrun.c (add_displaced_stepping_state): Likewise.
3865         (save_infcall_control_state): Likewise.
3866         (save_inferior_ptid): Likewise.
3867         (_initialize_infrun): Likewise.
3868         * jit.c (bfd_open_from_target_memory): Likewise.
3869         (jit_gdbarch_data_init): Likewise.
3870         * language.c (add_language): Likewise.
3871         * linespec.c (decode_line_2): Likewise.
3872         * linux-nat.c (add_to_pid_list): Likewise.
3873         (add_initial_lwp): Likewise.
3874         * linux-thread-db.c (add_thread_db_info): Likewise.
3875         (record_thread): Likewise.
3876         (info_auto_load_libthread_db): Likewise.
3877         * m32c-tdep.c (m32c_gdbarch_init): Likewise.
3878         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3879         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3880         * m88k-tdep.c (m88k_analyze_prologue): Likewise.
3881         * macrocmd.c (macro_define_command): Likewise.
3882         * macroexp.c (gather_arguments): Likewise.
3883         * macroscope.c (sal_macro_scope): Likewise.
3884         * macrotab.c (new_macro_table): Likewise.
3885         * mdebugread.c (push_parse_stack): Likewise.
3886         (parse_partial_symbols): Likewise.
3887         (parse_symbol): Likewise.
3888         (psymtab_to_symtab_1): Likewise.
3889         (new_block): Likewise.
3890         (new_psymtab): Likewise.
3891         (mdebug_build_psymtabs): Likewise.
3892         (add_pending): Likewise.
3893         (elfmdebug_build_psymtabs): Likewise.
3894         * mep-tdep.c (mep_gdbarch_init): Likewise.
3895         * mi/mi-main.c (mi_execute_command): Likewise.
3896         * mi/mi-parse.c (mi_parse_argv): Likewise.
3897         * minidebug.c (lzma_open): Likewise.
3898         * minsyms.c (terminate_minimal_symbol_table): Likewise.
3899         * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3900         * mips-tdep.c (mips_gdbarch_init): Likewise.
3901         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3902         * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3903         * mt-tdep.c (mt_registers_info): Likewise.
3904         * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3905         * nat/linux-btrace.c (linux_enable_bts): Likewise.
3906         (linux_enable_pt): Likewise.
3907         * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3908         (linux_xfer_osdata_processgroups): Likewise.
3909         * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3910         * nto-procfs.c (procfs_meminfo): Likewise.
3911         * objc-lang.c (start_msglist): Likewise.
3912         (selectors_info): Likewise.
3913         (classes_info): Likewise.
3914         (find_methods): Likewise.
3915         * objfiles.c (allocate_objfile): Likewise.
3916         (update_section_map): Likewise.
3917         * osabi.c (gdbarch_register_osabi): Likewise.
3918         (gdbarch_register_osabi_sniffer): Likewise.
3919         * parse.c (start_arglist): Likewise.
3920         * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3921         (hwdebug_insert_point): Likewise.
3922         * printcmd.c (display_command): Likewise.
3923         (ui_printf): Likewise.
3924         * procfs.c (create_procinfo): Likewise.
3925         (load_syscalls): Likewise.
3926         (proc_get_LDT_entry): Likewise.
3927         (proc_update_threads): Likewise.
3928         * prologue-value.c (make_pv_area): Likewise.
3929         (pv_area_store): Likewise.
3930         * psymtab.c (extend_psymbol_list): Likewise.
3931         (init_psymbol_list): Likewise.
3932         (allocate_psymtab): Likewise.
3933         * python/py-inferior.c (add_thread_object): Likewise.
3934         * python/py-param.c (compute_enum_values): Likewise.
3935         * python/py-value.c (valpy_call): Likewise.
3936         * python/py-varobj.c (py_varobj_iter_next): Likewise.
3937         * python/python.c (ensure_python_env): Likewise.
3938         * record-btrace.c (record_btrace_start_replaying): Likewise.
3939         * record-full.c (record_full_reg_alloc): Likewise.
3940         (record_full_mem_alloc): Likewise.
3941         (record_full_end_alloc): Likewise.
3942         (record_full_core_xfer_partial): Likewise.
3943         * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3944         * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3945         * remote-notif.c (remote_notif_state_allocate): Likewise.
3946         * remote.c (demand_private_info): Likewise.
3947         (remote_notif_stop_alloc_reply): Likewise.
3948         (remote_enable_btrace): Likewise.
3949         * reverse.c (save_bookmark_command): Likewise.
3950         * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3951         * rx-tdep.c (rx_gdbarch_init): Likewise.
3952         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3953         * ser-go32.c (dos_get_tty_state): Likewise.
3954         (dos_copy_tty_state): Likewise.
3955         * ser-mingw.c (ser_windows_open): Likewise.
3956         (ser_console_wait_handle): Likewise.
3957         (ser_console_get_tty_state): Likewise.
3958         (make_pipe_state): Likewise.
3959         (net_windows_open): Likewise.
3960         * ser-unix.c (hardwire_get_tty_state): Likewise.
3961         (hardwire_copy_tty_state): Likewise.
3962         * solib-aix.c (solib_aix_new_lm_info): Likewise.
3963         * solib-dsbt.c (dsbt_current_sos): Likewise.
3964         (dsbt_relocate_main_executable): Likewise.
3965         * solib-frv.c (frv_current_sos): Likewise.
3966         (frv_relocate_main_executable): Likewise.
3967         * solib-spu.c (spu_bfd_fopen): Likewise.
3968         * solib-svr4.c (lm_info_read): Likewise.
3969         (svr4_copy_library_list): Likewise.
3970         (svr4_default_sos): Likewise.
3971         * source.c (find_source_lines): Likewise.
3972         (line_info): Likewise.
3973         (add_substitute_path_rule): Likewise.
3974         * spu-linux-nat.c (spu_bfd_open): Likewise.
3975         * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3976         * stabsread.c (dbx_lookup_type): Likewise.
3977         (read_type): Likewise.
3978         (read_member_functions): Likewise.
3979         (read_struct_fields): Likewise.
3980         (read_baseclasses): Likewise.
3981         (read_args): Likewise.
3982         (_initialize_stabsread): Likewise.
3983         * stack.c (func_command): Likewise.
3984         * stap-probe.c (handle_stap_probe): Likewise.
3985         * symfile.c (addrs_section_sort): Likewise.
3986         (addr_info_make_relative): Likewise.
3987         (load_section_callback): Likewise.
3988         (add_symbol_file_command): Likewise.
3989         (init_filename_language_table): Likewise.
3990         * symtab.c (create_filename_seen_cache): Likewise.
3991         (sort_search_symbols_remove_dups): Likewise.
3992         (search_symbols): Likewise.
3993         * target.c (make_cleanup_restore_target_terminal): Likewise.
3994         * thread.c (new_thread): Likewise.
3995         (enable_thread_stack_temporaries): Likewise.
3996         (make_cleanup_restore_current_thread): Likewise.
3997         (thread_apply_all_command): Likewise.
3998         * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3999         * top.c (gdb_readline_wrapper): Likewise.
4000         * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
4001         * tracepoint.c (trace_find_line_command): Likewise.
4002         (all_tracepoint_actions_and_cleanup): Likewise.
4003         (make_cleanup_restore_current_traceframe): Likewise.
4004         (get_uploaded_tp): Likewise.
4005         (get_uploaded_tsv): Likewise.
4006         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
4007         (tui_alloc_win_info): Likewise.
4008         (tui_alloc_content): Likewise.
4009         (tui_add_content_elements): Likewise.
4010         * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
4011         (tui_set_disassem_content): Likewise.
4012         * ui-file.c (ui_file_new): Likewise.
4013         (stdio_file_new): Likewise.
4014         (tee_file_new): Likewise.
4015         * utils.c (make_cleanup_restore_integer): Likewise.
4016         (add_internal_problem_command): Likewise.
4017         * v850-tdep.c (v850_gdbarch_init): Likewise.
4018         * valops.c (find_oload_champ): Likewise.
4019         * value.c (allocate_value_lazy): Likewise.
4020         (record_latest_value): Likewise.
4021         (create_internalvar): Likewise.
4022         * varobj.c (install_variable): Likewise.
4023         (new_variable): Likewise.
4024         (new_root_variable): Likewise.
4025         (cppush): Likewise.
4026         (_initialize_varobj): Likewise.
4027         * windows-nat.c (windows_make_so): Likewise.
4028         * x86-nat.c (x86_add_process): Likewise.
4029         * xcoffread.c (arrange_linetable): Likewise.
4030         (allocate_include_entry): Likewise.
4031         (process_linenos): Likewise.
4032         (SYMBOL_DUP): Likewise.
4033         (xcoff_start_psymtab): Likewise.
4034         (xcoff_end_psymtab): Likewise.
4035         * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
4036         * xtensa-tdep.c (xtensa_register_type): Likewise.
4037         * gdbarch.c: Regenerate.
4038         * gdbarch.h: Regenerate.
4039
4040 2015-08-25  Don Breazeal  <donb@codesourcery.com>
4041
4042         * infrun.c (follow_exec): Re-order operations for
4043         handling follow-exec-mode "new".
4044         (handle_inferior_event_1): Assign ecs->event_thread
4045         to the current thread.
4046         * remote.c (get_remote_arch_state): Add an assertion.
4047
4048 2015-08-26  Pedro Alves  <palves@redhat.com>
4049
4050         * MAINTAINERS: Add Markus Metzger as btrace maintainer.
4051
4052 2015-08-25  Pedro Alves  <palves@redhat.com>
4053
4054         PR gdb/18804
4055         * defs.h (maybe_quit): Declare.
4056         (QUIT): Now calls maybe_quit.
4057         * event-loop.c (clear_async_signal_handler)
4058         (async_signal_handler_is_marked): New functions.
4059         * event-loop.h (async_signal_handler_is_marked)
4060         (clear_async_signal_handler): New declarations.
4061         * remote.c (remote_check_pending_interrupt): New function.
4062         (interrupt_query): Use make_cleanup_restore_target_terminal.  No
4063         longer check whether the target is async.  If waiting for a stop
4064         reply, and a Ctrl-C as been sent to the target, offer to
4065         disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
4066         Otherwise do not disconnect and throw a quit.
4067         (_initialize_remote): Install remote_check_pending_interrupt as
4068         to_check_pending_interrupt.
4069         * target.c (target_check_pending_interrupt): New function.
4070         * target.h (struct target_ops) <to_check_pending_interrupt>: New
4071         field.
4072         (target_check_pending_interrupt): New declaration.
4073         * utils.c (maybe_quit): New function.
4074         * target-delegates.c: Regenerate.
4075
4076 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4077
4078         * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
4079         Rename local variable pid to tid, and get lwpid of lwp.  Update
4080         debug output.
4081
4082 2015-08-25  Pierre-Marie de Rodat  <derodat@adacore.com>
4083
4084         * ada-lang.c (ada_read_var_value): Add a var_block argument
4085         and pass it to default_read_var_value.
4086         * block.c (block_static_link): New accessor.
4087         * block.h (block_static_link): Declare it.
4088         * buildsym.c (finish_block_internal): Add a static_link
4089         argument.  If there is a static link, associate it to the new
4090         block.
4091         (finish_block): Add a static link argument and pass it to
4092         finish_block_internal.
4093         (end_symtab_get_static_block): Update calls to finish_block and
4094         to finish_block_internal.
4095         (end_symtab_with_blockvector): Update call to
4096         finish_block_internal.
4097         * buildsym.h: Forward-declare struct dynamic_prop.
4098         (struct context_stack): Add a static_link field.
4099         (finish_block): Add a static link argument.
4100         * c-exp.y: Remove an obsolete comment (evaluation of variables
4101         already start from the selected frame, and now they climb *up*
4102         the call stack) and propagate the block information to the
4103         produced expression.
4104         * d-exp.y: Likewise.
4105         * f-exp.y: Likewise.
4106         * go-exp.y: Likewise.
4107         * jv-exp.y: Likewise.
4108         * m2-exp.y: Likewise.
4109         * p-exp.y: Likewise.
4110         * coffread.c (coff_symtab_read): Update calls to finish_block.
4111         * dbxread.c (process_one_symbol): Likewise.
4112         * xcoffread.c (read_xcoff_symtab): Likewise.
4113         * compile/compile-c-symbols.c (convert_one_symbol): Promote the
4114         "sym" parameter to struct block_symbol, update its uses and pass
4115         its block to calls to read_var_value.
4116         (convert_symbol_sym): Update the calls to convert_one_symbol.
4117         * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
4118         call to read_var_value.
4119         * dwarf2loc.c (block_op_get_frame_base): New.
4120         (dwarf2_block_frame_base_locexpr_funcs): Implement the
4121         get_frame_base method.
4122         (dwarf2_block_frame_base_loclist_funcs): Likewise.
4123         (dwarf2locexpr_baton_eval): Add a frame argument and use it
4124         instead of the selected frame in order to evaluate the
4125         expression.
4126         (dwarf2_evaluate_property): Add a frame argument.  Update call
4127         to dwarf2_locexpr_baton_eval to provide a frame in available and
4128         to handle the absence of address stack.
4129         * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
4130         * dwarf2read.c (attr_to_dynamic_prop): Add a forward
4131         declaration.
4132         (read_func_scope): Record any available static link description.
4133         Update call to finish_block.
4134         (read_lexical_block_scope): Update call to finish_block.
4135         * findvar.c (follow_static_link): New.
4136         (get_hosting_frame): New.
4137         (default_read_var_value): Add a var_block argument.  Use
4138         get_hosting_frame to handle non-local references.
4139         (read_var_value): Add a var_block argument and pass it to the
4140         LA_READ_VAR_VALUE method.
4141         * gdbtypes.c (resolve_dynamic_range): Update calls to
4142         dwarf2_evaluate_property.
4143         (resolve_dynamic_type_internal): Likewise.
4144         * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
4145         read_var_value, passing it the block coming from symbol lookup.
4146         * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
4147         read_var_value (TODO).
4148         * infcmd.c (finish_command_continuation): Update call to
4149         read_var_value, passing it the block coming from symbol lookup.
4150         * infrun.c (insert_exception_resume_breakpoint): Likewise.
4151         * language.h (struct language_defn): Add a var_block argument to
4152         the LA_READ_VAR_VALUE method.
4153         * objfiles.c (struct static_link_htab_entry): New.
4154         (static_link_htab_entry_hash): New.
4155         (static_link_htab_entry_eq): New.
4156         (objfile_register_static_link): New.
4157         (objfile_lookup_static_link): New.
4158         (free_objfile): Free the STATIC_LINKS hashed map if needed.
4159         * objfiles.h: Include hashtab.h.
4160         (struct objfile): Add a static_links field.
4161         (objfile_register_static_link): New.
4162         (objfile_lookup_static_link): New.
4163         * printcmd.c (print_variable_and_value): Update call to
4164         read_var_value.
4165         * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
4166         * python/py-frame.c (frapy_read_var): Update call to
4167         read_var_value, passing it the block coming from symbol lookup.
4168         * python/py-framefilter.c (extract_sym): Add a sym_block
4169         parameter and set the pointed value to NULL (TODO).
4170         (enumerate_args): Update call to extract_sym.
4171         (enumerate_locals): Update calls to extract_sym and to
4172         read_var_value.
4173         * python/py-symbol.c (sympy_value): Update call to
4174         read_var_value (TODO).
4175         * stack.c (read_frame_local): Update call to read_var_value.
4176         (read_frame_arg): Likewise.
4177         (return_command): Likewise.
4178         * symtab.h (struct symbol_block_ops): Add a get_frame_base
4179         method.
4180         (struct symbol): Add a block field.
4181         (SYMBOL_BLOCK): New accessor.
4182         * valops.c (value_of_variable): Remove frame/block handling and
4183         pass the block argument to read_var_value, which does this job
4184         now.
4185         (value_struct_elt_for_reference): Update calls to
4186         read_var_value.
4187         (value_of_this): Pass the block found to read_var_value.
4188         * value.h (read_var_value): Add a var_block argument.
4189         (default_read_var_value): Likewise.
4190
4191 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4192
4193         * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
4194         * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
4195         * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
4196
4197 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4198
4199         * Makefile.in (aarch64-liunx.o): New rule.
4200         (HFILES_NO_SRCDIR): Add aarch64-linux.h.
4201         * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
4202         * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
4203         * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
4204         extern.
4205         (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
4206         * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
4207         * nat/aarch64-linux.c: New file.
4208         * nat/aarch64-linux.h: New file.
4209
4210 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4211
4212         * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
4213         lwp_arch_private_info and ptid_of_lwp.
4214
4215 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4216
4217         * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
4218         Move it to nat/aarch64-linux-hw-point.c.
4219         (debug_reg_change_callback): Likewise.
4220         (aarch64_notify_debug_reg_change): :Likewise.
4221         * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
4222         (aarch64_dr_update_callback_param): New.
4223         (debug_reg_change_callback): New function.
4224         (aarch64_notify_debug_reg_change): Likewise.
4225         * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
4226         Remove the declaration.
4227
4228 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4229
4230         * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
4231         Call current_lwp_ptid.
4232
4233 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4234
4235         * aarch64-linux-nat.c (debug_reg_change_callback): Use
4236         debug_printf.
4237
4238 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4239
4240         * aarch64-linux-nat.c (debug_reg_change_callback): Call
4241         ptid_get_pid rather than ptid_get_lwp.
4242
4243 2015-08-24  Pedro Alves  <palves@redhat.com>
4244
4245         * NEWS (New commands): Mention set/show remote
4246         multiprocess-extensions-packet.
4247         * remote.c (remote_query_supported): Only tell the server to use
4248         the multiprocess extensions if the user hasn't force-disabled them
4249         with "set remote multiprocess-extensions-packet off".
4250
4251 2015-08-24  Pedro Alves  <palves@redhat.com>
4252
4253         * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
4254         1029a8112290f6eee9d7878a391c49db42c999bd.
4255         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
4256         Regenerate.
4257         * gnulib/import/Makefile.am: Update.
4258         * gnulib/import/Makefile.in: Update.
4259         * gnulib/import/alloca.in.h: Update.
4260         * gnulib/import/basename-lgpl.c: Update.
4261         * gnulib/import/canonicalize-lgpl.c: Update.
4262         * gnulib/import/config.charset: Update.
4263         * gnulib/import/dirent.in.h: Update.
4264         * gnulib/import/dirfd.c: Update.
4265         * gnulib/import/dirname-lgpl.c: Update.
4266         * gnulib/import/dirname.h: Update.
4267         * gnulib/import/dosname.h: Update.
4268         * gnulib/import/errno.in.h: Update.
4269         * gnulib/import/extra/snippet/arg-nonnull.h: Update.
4270         * gnulib/import/extra/snippet/c++defs.h: Update.
4271         * gnulib/import/extra/snippet/warn-on-use.h: Update.
4272         * gnulib/import/extra/update-copyright: Update.
4273         * gnulib/import/float+.h: Update.
4274         * gnulib/import/float.c: Update.
4275         * gnulib/import/float.in.h: Update.
4276         * gnulib/import/fnmatch.c: Update.
4277         * gnulib/import/fnmatch.in.h: Update.
4278         * gnulib/import/fnmatch_loop.c: Update.
4279         * gnulib/import/fpucw.h: Update.
4280         * gnulib/import/frexp.c: Update.
4281         * gnulib/import/frexpl.c: Update.
4282         * gnulib/import/gettimeofday.c: Update.
4283         * gnulib/import/inttypes.in.h: Update.
4284         * gnulib/import/isnan.c: Update.
4285         * gnulib/import/isnand-nolibm.h: Update.
4286         * gnulib/import/isnand.c: Update.
4287         * gnulib/import/isnanl-nolibm.h: Update.
4288         * gnulib/import/isnanl.c: Update.
4289         * gnulib/import/itold.c: Update.
4290         * gnulib/import/localcharset.c: Update.
4291         * gnulib/import/localcharset.h: Update.
4292         * gnulib/import/lstat.c: Update.
4293         * gnulib/import/m4/00gnulib.m4: Update.
4294         * gnulib/import/m4/absolute-header.m4: Update.
4295         * gnulib/import/m4/alloca.m4: Update.
4296         * gnulib/import/m4/canonicalize.m4: Update.
4297         * gnulib/import/m4/codeset.m4: Update.
4298         * gnulib/import/m4/configmake.m4: Update.
4299         * gnulib/import/m4/dirent_h.m4: Update.
4300         * gnulib/import/m4/dirfd.m4: Update.
4301         * gnulib/import/m4/dirname.m4: Update.
4302         * gnulib/import/m4/double-slash-root.m4: Update.
4303         * gnulib/import/m4/eealloc.m4: Update.
4304         * gnulib/import/m4/errno_h.m4: Update.
4305         * gnulib/import/m4/exponentd.m4: Update.
4306         * gnulib/import/m4/exponentl.m4: Update.
4307         * gnulib/import/m4/extensions.m4: Update.
4308         * gnulib/import/m4/extern-inline.m4: Update.
4309         * gnulib/import/m4/fcntl-o.m4: Update.
4310         * gnulib/import/m4/float_h.m4: Update.
4311         * gnulib/import/m4/fnmatch.m4: Update.
4312         * gnulib/import/m4/fpieee.m4: Update.
4313         * gnulib/import/m4/frexp.m4: Update.
4314         * gnulib/import/m4/frexpl.m4: Update.
4315         * gnulib/import/m4/gettimeofday.m4: Update.
4316         * gnulib/import/m4/glibc21.m4: Update.
4317         * gnulib/import/m4/gnulib-cache.m4: Update.
4318         * gnulib/import/m4/gnulib-common.m4: Update.
4319         * gnulib/import/m4/gnulib-comp.m4: Update.
4320         * gnulib/import/m4/gnulib-tool.m4: Update.
4321         * gnulib/import/m4/include_next.m4: Update.
4322         * gnulib/import/m4/inttypes-pri.m4: Update.
4323         * gnulib/import/m4/inttypes.m4: Update.
4324         * gnulib/import/m4/isnand.m4: Update.
4325         * gnulib/import/m4/isnanl.m4: Update.
4326         * gnulib/import/m4/largefile.m4: Update.
4327         * gnulib/import/m4/localcharset.m4: Update.
4328         * gnulib/import/m4/locale-fr.m4: Update.
4329         * gnulib/import/m4/locale-ja.m4: Update.
4330         * gnulib/import/m4/locale-zh.m4: Update.
4331         * gnulib/import/m4/longlong.m4: Update.
4332         * gnulib/import/m4/lstat.m4: Update.
4333         * gnulib/import/m4/malloc.m4: Update.
4334         * gnulib/import/m4/malloca.m4: Update.
4335         * gnulib/import/m4/math_h.m4: Update.
4336         * gnulib/import/m4/mbrtowc.m4: Update.
4337         * gnulib/import/m4/mbsinit.m4: Update.
4338         * gnulib/import/m4/mbsrtowcs.m4: Update.
4339         * gnulib/import/m4/mbstate_t.m4: Update.
4340         * gnulib/import/m4/memchr.m4: Update.
4341         * gnulib/import/m4/memmem.m4: Update.
4342         * gnulib/import/m4/mmap-anon.m4: Update.
4343         * gnulib/import/m4/multiarch.m4: Update.
4344         * gnulib/import/m4/nocrash.m4: Update.
4345         * gnulib/import/m4/off_t.m4: Update.
4346         * gnulib/import/m4/pathmax.m4: Update.
4347         * gnulib/import/m4/readlink.m4: Update.
4348         * gnulib/import/m4/rename.m4: Update.
4349         * gnulib/import/m4/rmdir.m4: Update.
4350         * gnulib/import/m4/ssize_t.m4: Update.
4351         * gnulib/import/m4/stat.m4: Update.
4352         * gnulib/import/m4/stdbool.m4: Update.
4353         * gnulib/import/m4/stddef_h.m4: Update.
4354         * gnulib/import/m4/stdint.m4: Update.
4355         * gnulib/import/m4/stdio_h.m4: Update.
4356         * gnulib/import/m4/stdlib_h.m4: Update.
4357         * gnulib/import/m4/string_h.m4: Update.
4358         * gnulib/import/m4/strstr.m4: Update.
4359         * gnulib/import/m4/strtok_r.m4: Update.
4360         * gnulib/import/m4/sys_socket_h.m4: Update.
4361         * gnulib/import/m4/sys_stat_h.m4: Update.
4362         * gnulib/import/m4/sys_time_h.m4: Update.
4363         * gnulib/import/m4/sys_types_h.m4: Update.
4364         * gnulib/import/m4/time_h.m4: Update.
4365         * gnulib/import/m4/unistd_h.m4: Update.
4366         * gnulib/import/m4/warn-on-use.m4: Update.
4367         * gnulib/import/m4/wchar_h.m4: Update.
4368         * gnulib/import/m4/wchar_t.m4: Update.
4369         * gnulib/import/m4/wctype_h.m4: Update.
4370         * gnulib/import/m4/wint_t.m4: Update.
4371         * gnulib/import/malloc.c: Update.
4372         * gnulib/import/malloca.c: Update.
4373         * gnulib/import/malloca.h: Update.
4374         * gnulib/import/math.in.h: Update.
4375         * gnulib/import/mbrtowc.c: Update.
4376         * gnulib/import/mbsinit.c: Update.
4377         * gnulib/import/mbsrtowcs-impl.h: Update.
4378         * gnulib/import/mbsrtowcs-state.c: Update.
4379         * gnulib/import/mbsrtowcs.c: Update.
4380         * gnulib/import/memchr.c: Update.
4381         * gnulib/import/memmem.c: Update.
4382         * gnulib/import/pathmax.h: Update.
4383         * gnulib/import/readlink.c: Update.
4384         * gnulib/import/ref-add.sin: Update.
4385         * gnulib/import/ref-del.sin: Update.
4386         * gnulib/import/rename.c: Update.
4387         * gnulib/import/rmdir.c: Update.
4388         * gnulib/import/same-inode.h: Update.
4389         * gnulib/import/stat.c: Update.
4390         * gnulib/import/stdbool.in.h: Update.
4391         * gnulib/import/stddef.in.h: Update.
4392         * gnulib/import/stdint.in.h: Update.
4393         * gnulib/import/stdio.c: Update.
4394         * gnulib/import/stdio.in.h: Update.
4395         * gnulib/import/stdlib.in.h: Update.
4396         * gnulib/import/str-two-way.h: Update.
4397         * gnulib/import/streq.h: Update.
4398         * gnulib/import/string.in.h: Update.
4399         * gnulib/import/stripslash.c: Update.
4400         * gnulib/import/strnlen1.c: Update.
4401         * gnulib/import/strnlen1.h: Update.
4402         * gnulib/import/strstr.c: Update.
4403         * gnulib/import/strtok_r.c: Update.
4404         * gnulib/import/sys_stat.in.h: Update.
4405         * gnulib/import/sys_time.in.h: Update.
4406         * gnulib/import/sys_types.in.h: Update.
4407         * gnulib/import/time.in.h: Update.
4408         * gnulib/import/unistd.in.h: Update.
4409         * gnulib/import/verify.h: Update.
4410         * gnulib/import/wchar.in.h: Update.
4411         * gnulib/import/wctype.in.h: Update.
4412         * gnulib/import/gettimeofday.c: New file.
4413         * gnulib/import/m4/absolute-header.m4: New file.
4414         * gnulib/import/m4/gettimeofday.m4: New file.
4415         * gnulib/import/m4/sys_socket_h.m4: New file.
4416         * gnulib/import/m4/sys_time_h.m4: New file.
4417         * gnulib/import/stdio.c: Delete file.
4418         * gnulib/import/sys_time.in.h: New file.
4419
4420 2015-08-24  Pedro Alves  <palves@redhat.com>
4421
4422         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
4423         * common/gdb_sys_time.h: New file.
4424         * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
4425         * gdb_select.h: Likewise.
4426         * gdb_usleep.c: Likewise.
4427         * maint.c: Likewise.
4428         * mi/mi-main.c: Likewise.
4429         * mi/mi-parse.h: Likewise.
4430         * remote-fileio.c: Likewise.
4431         * remote-m32r-sdi.c: Likewise.
4432         * remote.c: Likewise.
4433         * ser-base.c: Likewise.
4434         * ser-pipe.c: Likewise.
4435         * ser-tcp.c: Likewise.
4436         * ser-unix.c: Likewise.
4437         * symfile.c: Likewise.
4438         * symfile.c: Likewise.  Rename OSIZE to SIZE throughout.
4439         * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
4440         * utils.c: Likewise.
4441
4442 2015-08-24  Pedro Alves  <palves@redhat.com>
4443
4444         * NEWS: Mention removed support for the various ROM monitors.
4445         * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
4446         ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
4447         * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
4448         gdb_target_obs.
4449         (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
4450         gdb_target_obs.
4451         (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
4452         dsrec.o from gdb_target_obs.
4453         (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
4454         from gdb_target_obs.
4455         (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
4456         gdb_target_obs.
4457         (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
4458         dink32-rom.o from gdb_target_obs.
4459         (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
4460         (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
4461         * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
4462         monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
4463
4464 2015-08-21  Pedro Alves  <palves@redhat.com>
4465
4466         * frame.c (null_frame_id): Explicitly zero-initialize.
4467
4468 2015-08-21  Tom Tromey  <tromey@redhat.com>
4469
4470         * dwarf2read.c (struct dwarf2_section_info): Rename field
4471         'asection' to 'section'.
4472         (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
4473         (dwarf2_locate_sections, dwarf2_locate_sections)
4474         (locate_dwz_sections, locate_v1_virtual_dwo_sections)
4475         (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
4476         (dwarf2_locate_v2_dwp_sections): Adjust.
4477
4478 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
4479
4480         * top.h (gdb_in_secondary_prompt_p): Declare.
4481         * top.c (gdb_secondary_prompt_depth): Define.
4482         (gdb_in_secondary_prompt_p): Define.
4483         (gdb_readline_wrapper_cleanup): Decrement
4484         gdb_secondary_prompt_depth.
4485         (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
4486         * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
4487         are in a secondary prompt.
4488
4489 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
4490
4491         * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
4492         emit the newline.
4493
4494 2015-08-21  Gary Benson  <gbenson@redhat.com>
4495
4496         * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
4497
4498 2015-08-21  Gary Benson  <gbenson@redhat.com>
4499
4500         * target.h (struct target_ops) <to_fileio_open>: New argument
4501         warn_if_slow.  Update comment.  All implementations updated.
4502         (target_fileio_open_warn_if_slow): New declaration.
4503         * target.c (target_fileio_open): Renamed as...
4504         (target_fileio_open_1): ...this.  New argument warn_if_slow.
4505         Pass warn_if_slow to implementation.  Update debug printing.
4506         (target_fileio_open): New function.
4507         (target_fileio_open_warn_if_slow): Likewise.
4508         * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
4509         target_fileio_open_warn_if_slow.
4510
4511 2015-08-21  Gary Benson  <gbenson@redhat.com>
4512
4513         * nat/linux-namespaces.c (linux_mntns_access_fs):
4514         Do not overwrite old_chain.
4515
4516 2015-08-20  Max Filippov  <jcmvbkbc@gmail.com>
4517
4518         * arch/xtensa.h: New file.
4519         * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
4520         (ps_get_thread_area): New function.
4521         * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
4522         set_gdbarch_fetch_tls_load_module_address to enable TLS support.
4523         * xtensa-tdep.c (osabi.h): New #include.
4524         (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
4525         xtensa-specific hooks.
4526         * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
4527         member and move the structure to arch/xtensa.h.
4528
4529 2015-08-21  Pedro Alves  <palves@redhat.com>
4530
4531         * remote.c (struct readahead_cache): New.
4532         (struct remote_state) <readahead_cache>: New field.
4533         (remote_open_1): Invalidate the cache.
4534         (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
4535         functions.
4536         (remote_hostio_pwrite): Invalidate the readahead cache.
4537         (remote_hostio_pread): Rename to ...
4538         (remote_hostio_pread_vFile): ... this.
4539         (remote_hostio_pread_from_cache): New function.
4540         (remote_hostio_pread): Reimplement.
4541         (remote_hostio_close): Invalidate the readahead cache.
4542
4543 2015-08-21  Marcin Cieślak <saper@saper.info>  (tiny patch)
4544
4545         PR build/18843
4546         * procfs.c: Include "filestuff.h".
4547
4548 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
4549
4550         * tui/tui-data.h (tui_command_info): Remove fields cur_line and
4551         curch.
4552         * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
4553         cur_line or curch, instead call wmove().
4554         (init_win_info) [CMD_WIN]: Likewise.
4555         * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
4556         instead call getcury().
4557         (tui_redisplay_readline): Don't set cur_line or curch.
4558         (tui_mld_erase_entire_line): Don't read cur_line, instead call
4559         getcury().
4560         (tui_cont_sig): Remove call to wmove.
4561         (tui_getc): Don't read cur_line or curch, instead call getcury()
4562         or getyx().  Don't set curch.
4563         * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
4564         set cur_line or curch.  Always move cursor to (0,0).
4565
4566 2015-08-20  Pedro Alves  <palves@redhat.com>
4567
4568         * infrun.c (print_target_wait_results): Make extern.
4569         * infrun.h (print_target_wait_results): Declare.
4570         * remote.c (set_stop_requested_callback): Delete.
4571         (process_initial_stop_replies): New function.
4572         (remote_start_remote): Use it.
4573         (stop_reply_queue_length): New function.
4574
4575 2015-08-20  Pedro Alves  <palves@redhat.com>
4576
4577         * dwarf2read.c (process_full_comp_unit): To tell whether
4578         start_subfile managed to deduce a language, test for
4579         language_unknown instead of language_c.
4580
4581 2015-08-20  Pierre-Marie de Rodat  <derodat@adacore.com>
4582
4583         * ada-lex.l: Reset the start condition to INITIAL in the rule that
4584         matches attributes.
4585
4586 2015-08-19  Kevin Buettner  <kevinb@redhat.com>
4587
4588         * dwarf2read.c (dwarf2_string_attr): New function.
4589         (lookup_dwo_unit, process_psymtab_comp_unit_reader)
4590         (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
4591         (read_call_site_scope, namespace_name, guess_full_die_structure_name)
4592         (anonymous_struct_prefix, prepare_one_comp_unit): Use
4593         dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
4594
4595 2015-08-18  Doug Evans  <dje@google.com>
4596             Adrian Sendroiu <adrian.sendroiu@freescale.com>
4597
4598         PR mi/18833
4599         * cli/cli-logging.c (pop_output_files): Don't restore redirection
4600         if MI-like.
4601         * mi/mi-out.c: #include "vec.h".
4602         (ui_filep): New type.
4603         (DEV_VEC_P (ui_filep)): New type.
4604         (struct ui_out_data) <buffer, original_buffer>: Delete.
4605         (struct ui_out_data) <streams>: New member.
4606         (mi_ui_out_impl): Add data_destroy field.
4607         (mi_field_string, mi_field_fmt): Update.
4608         (mi_flush, mi_redirect, field_separator): Update.
4609         (mi_open, mi_close): Update.
4610         (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
4611         (mi_out_data_ctor, mi_out_data_dtor): New functions.
4612         (mi_out_new): Call mi_out_data_ctor.
4613
4614 2015-08-18  Sandra Loosemore  <sandra@codesourcery.com>
4615
4616         * remote.c (strprefix): New.
4617         (remote_parse_stop_reply): Use strprefix instead of strncmp
4618         to ensure exact match of keyword.
4619
4620 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
4621
4622         * gdb_bfd.c (debug_bfd_cache): New variable.
4623         (show_bfd_cache_debug): New function.
4624         (gdb_bfd_open): Add debug logging.
4625         (gdb_bfd_ref): Likewise.
4626         (gdb_bfd_unref): Likewise.
4627         (_initialize_gdb_bfd): Add new set/show command.
4628         * NEWS: Mention new command.
4629
4630 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
4631
4632         * gdb_bfd.c (bfd_sharing): New variable.
4633         (show_bfd_sharing): New function.
4634         (gdb_bfd_open): Check bfd_sharing variable.
4635         (_initialize_gdb_bfd): Add new set/show command.
4636         * NEWS: Mention new command.
4637
4638 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
4639
4640         * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
4641         field.
4642         (struct gdb_bfd_cache_search): Likewise.
4643         (eq_bfd): Compare the size, inode, and device id fields.
4644         (gdb_bfd_open): Initialise the size, inode, and device id fields.
4645         (gdb_bfd_ref): Likewise.
4646         (gdb_bfd_unref): Likewise.
4647
4648 2015-08-18  Pedro Alves  <palves@redhat.com>
4649
4650         * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
4651         target implements to_always_non_stop_p, call it.
4652         * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
4653         (x86_linux_create_target): Install it as to_always_non_stop_p
4654         method.
4655
4656 2015-08-17  Doug Evans  <dje@google.com>
4657
4658         * ui-out.c (default_ui_out_impl): Add comment.
4659
4660 2015-08-17  Iain Buclaw  <ibuclaw@gdcproject.org>
4661
4662         * d-exp.y (type_aggregate_p): New function.
4663         (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
4664         (classify_inner_name): Likewise.
4665         * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
4666
4667 2015-08-15  Doug Evans  <xdje42@gmail.com>
4668
4669         * psymtab.c (add_psymbol_to_bcache): Remove "val" arg.  All callers
4670         updated.
4671         (add_psymbol_to_list): Ditto.
4672
4673 2015-08-15  Doug Evans  <xdje42@gmail.com>
4674
4675         * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab.  All callers
4676         updated.  Call end_psymtab_common.
4677         * dwarf2read.c (process_psymtab_comp_unit_reader): Call
4678         end_psymtab_common.
4679         (build_type_psymtabs_reader): Ditto.
4680         * psympriv.h (sort_pst_symbols): Delete.
4681         (end_psymtab_common): Declare.
4682         * psymtab.c (sort_pst_symbols): Make static.
4683         (end_psymtab_common): New function.
4684         * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
4685
4686 2015-08-15  Doug Evans  <xdje42@gmail.com>
4687
4688         * defs.h (LANGUAGE_BITS): Define.
4689         * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
4690         (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
4691         * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
4692         (minimal_symbol_type): Add nr_minsym_types.
4693         (MINSYM_TYPE_BITS): Define.
4694         (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
4695         (domain_enum_tag): Add NR_DOMAINS.
4696         (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
4697         (SYMBOL_ACLASS_BITS): Define from 6 to 5.
4698
4699 2015-08-15  Doug Evans  <xdje42@gmail.com>
4700
4701         * objfiles.h: Whitespace cleanup.
4702         * psympriv.h: Whitespace cleanup.
4703         * psymtab.c: Whitespace/coding convention cleanup.
4704
4705 2015-08-15  Patrick Palka  <patrick@parcs.ath.cx>
4706
4707         * inferior.c (detach_inferior_command): Don't call
4708         any_thread_of_process when pid is 0.
4709         (kill_inferior_command): Likewise.
4710
4711 2015-08-14  Doug Evans  <xdje42@gmail.com>
4712
4713         PR gdb/11833
4714         * NEWS: Document new /s modifier for the disassemble command.
4715         * cli/cli-cmds.c (disassemble_command): Add support for /s.
4716         (_initialize_cli_cmds): Update online docs of disassemble command.
4717         * disasm.c: #include "source.h".
4718         (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
4719         All uses updated.
4720         (dis_line_entry): New struct.
4721         (hash_dis_line_entry, eq_dis_line_entry): New functions.
4722         (allocate_dis_line_table): New functions.
4723         (maybe_add_dis_line_entry, line_has_code_p): New functions.
4724         (dump_insns): New arg end_pc.  All callers updated.
4725         (do_mixed_source_and_assembly_deprecated): Renamed from
4726         do_mixed_source_and_assembly.  All callers updated.
4727         (do_mixed_source_and_assembly): New function.
4728         (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
4729         * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
4730         DISASSEMBLY_SOURCE.  All uses updated.
4731         (DISASSEMBLY_SOURCE): New macro.
4732         * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
4733
4734 2015-08-14  Keith Seitz  <keiths@redhat.com>
4735
4736         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
4737         `typename' to `type_name' to avoid C++ reserved word.
4738
4739 2015-08-14  Keith Seitz  <keiths@redhat.com>
4740
4741         * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
4742         (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
4743         silence ARI errors.
4744
4745 2015-08-14  Iain Buclaw  <ibuclaw@gdcproject.org>
4746
4747         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
4748         xstrprintf instead of malloc and sprintf.
4749         (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
4750         (lex_one_token): Likewise.
4751
4752 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
4753
4754         * solib-svr4.c (read_program_header): Add base_addr argument to
4755         report the runtime address of the segment.
4756         (find_program_interpreter): Update read_program_header call to pass
4757         a NULL pointer for the new argument.
4758         (scan_dyntag): Add ptr_addr argument to report the runtime address
4759         of the tag payload.
4760         (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
4761         read_program_header to get the base address of the dynamic segment.
4762         (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
4763         read_program_header.
4764         (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
4765
4766 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
4767
4768         * MAINTAINERS (Write After Approval): Add Matthew Fortune.
4769
4770 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
4771
4772         * d-exp.y (%union): Add voidval.
4773         (%token): Add UNKNOWN_NAME as a token to represent an unclassified
4774         name in the lexing stage.
4775         (PostfixExpression): Move symbol completion handling in grammar here
4776         from PrimaryExpression.
4777         (PrimaryExpression): Move routines to handle resolving identifier
4778         tokens in the grammar here from push_expression_name.
4779         (IdentifierExp): Remove the handling of alternating '.' and identifier
4780         tokens.
4781         (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
4782         (BasicType): Remove C-style typename rules.
4783         (d_type_from_name, d_module_from_name, push_variable)
4784         (push_fieldnames, push_type_name, push_module_name)
4785         (push_expression_name): Remove.
4786         (lex_one_token): Rename from yylex.  Replace pstate with par_state.
4787         (token_and_value): New type.
4788         (token_fifo, popping, name_obstack): New globals.
4789         (classify_name): New function.
4790         (classify_inner_name): Likewise.
4791         (yylex): Likewise.
4792         (d_parse): Initialize token_fifo, popping and name_obstack.
4793
4794 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
4795
4796         * Makefile.in (SFILES): Add d-namespace.c.
4797         (COMMON_OBS): Add d-namespace.o.
4798         * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
4799         la_lookup_symbol_nonlocal callback function pointer.
4800         * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
4801         (d_lookup_nested_symbol): New declaration.
4802         * d-namespace.c: New file.
4803
4804 2015-08-13  Pedro Alves  <palves@redhat.com>
4805
4806         * python/py-unwind.c (pyuw_sniffer): Install the invalidate
4807         cleanup after the decref cleanup, not before.
4808
4809 2015-08-13  Pierre-Marie de Rodat  <derodat@adacore.com>
4810
4811         * ada-lang.c: Include namespace.h
4812         (aux_add_nonlocal_symbols): Fix a function name in comment.
4813         (ada_add_block_renamings): New.
4814         (add_nonlocal_symbols): Add global renamings handling.
4815         (ada_lookup_symbol_list_worker): Move the symbol lookup part
4816         to...
4817         (ada_add_all_symbols): ... this new function.
4818         (ada_add_block_symbols): Try to match the input name against the
4819         "using directives list", perform a recursive symbol lookup on
4820         the matched declarations.
4821         * block.h (struct block): Move the_namespace to top-level as
4822         namespace_info. Remove the language_specific field.
4823         (BLOCK_NAMESPACE): Update access to the namespace_info field.
4824         * buildsym.h (using_directives): Rename into...
4825         (local_using_directives): ... this.
4826         (global_using_directives): New.
4827         (struct context_stack): Rename the using_directives field into
4828         local_using_directives.
4829         * buildsym.c (finish_block_internal): Deal with the proper
4830         using directives repository (local or global).
4831         (prepare_for_building): Reset local_using_directives. Assert
4832         that there is no pending global using directive.
4833         (reset_symtab_globals): Reset global_using_directives and
4834         local_using_directives.
4835         (end_symtab_get_static_block): Don't ignore symtabs that have
4836         only using directives.
4837         (push_context): Update references to local_using_directives.
4838         (buildsym_init): Do not reset using_directives.
4839         * cp-support.c: Include namespace.h.
4840         * cp-support.h (struct using_direct): Move to namespace.h.
4841         (cp_add_using_directives): Move to namespace.h.
4842         * cp-namespace.c: Include namespace.h
4843         (cp_add_using_directive): Move to namespace.c, rename it to
4844         add_using_directive, add a "using_directives" argument and use
4845         it as the pending using directives repository.  All callers
4846         updated.
4847         * dwarf2read.c (using_directives): New.
4848         (read_import_statement): Call using_directives.
4849         (read_func_scope): Update references to local_using_directives.
4850         (read_lexical_block_scope): Likewise.
4851         (read_namespace): Update the heading comment, call
4852         using_directives.
4853         * namespace.h: New file.
4854         * namespace.c: New file.
4855         * Makefile.in (SFILES): Add namespace.c.
4856         (COMMON_OBS): Add namespace.o
4857
4858 2015-08-12  Joel Brobecker  <brobecker@adacore.com>
4859
4860         * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
4861         compute RETADDR.
4862
4863 2015-08-12  Keith Seitz  <keiths@redhat.com>
4864
4865         * break-catch-throw.c (re_set_exception_catchpoint) Rename
4866         reserved C++ keyword "explicit" to "explicit_loc".
4867         * breakpoint.c (create_overlay_event_breakpoint)
4868         (create_longjmp_master_breakpoint)
4869         (create_std_terminate_master_breakpoint)
4870         (create_exception_master_breakpoint, update_static_tracepoint):
4871         Rename reserved C++ keyword "explicit" to "explicit_loc".
4872         * completer.c (collect_explicit_location_matches)
4873         (explicit_location_completer): Rename reserved C++ keyword
4874         "explicit" to "explicit_loc".
4875         * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
4876         (canonicalize_linespec, create_sals_line_offset)
4877         (convert_linespec_to_sals, convert_explicit_location_to_sals)
4878         (event_location_to_sals, decode_objc): Rename reserved C++ keyword
4879         "explicit" to "explicit_loc".
4880         * location.c (struct event_location) <explicit>: Rename to
4881         "explicit_loc".
4882         (initialize_explicit_location, new_explicit_location)
4883         (explicit_location_to_string_internal, explicit_location_to_linespec):
4884         Rename reserved C++ keyword "explicit" to "explicit_loc".
4885         * location.h (explicit_location_to_string)
4886         (explicit_location_to_linespec, initialize_explicit_location)
4887         (new_explicit_location): Rename reserved C++ keyword "explicit"
4888         to "explicit_loc".
4889         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4890         keyword "explicit" to "explicit_loc".
4891
4892 2015-08-12  Keith Seitz  <keiths@redhat.com>
4893
4894         * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4895         and only call decode_line_1 when it is non-NULL.
4896
4897 2015-08-12  Luis Machado  <lgustavo@codesourcery.com>
4898
4899         * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4900         location address is not meaningful.
4901         (breakpoint_address_is_meaningful): Update comment.
4902
4903 2015-08-11  Keith Seitz  <keiths@redhat.com>
4904
4905         * NEWS: Mention explicit locations.
4906         * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4907         [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4908         (_initialize_breakpoint): Update documentation for
4909         "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4910
4911 2015-08-11  Keith Seitz  <keiths@redhat.com>
4912
4913         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4914         explicit locations, options "--source", "--function",
4915         "--label", and "--line".
4916
4917 2015-08-11  Keith Seitz  <keiths@redhat.com>
4918
4919         * completer.c: Include location.h.
4920         (enum match_type): New enum.
4921         (location_completer): Rename to ...
4922         (linespec_completer): ... this.
4923         (collect_explicit_location_matches, backup_text_ptr)
4924         (explicit_location_completer): New functions.
4925         (location_completer): "New" function; handle linespec
4926         and explicit location completions.
4927         (complete_line_internal): Remove all location completer-specific
4928         handling.
4929         * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4930         (find_toplevel_char): Export.
4931         (linespec_parse_line_offset): Export.
4932         Issue error if STRING is not numerical.
4933         (gdb_get_linespec_parser_quote_characters): New function.
4934         * linespec.h (linespec_parse_line_offset): Declare.
4935         (get_gdb_linespec_parser_quote_characters): Declare.
4936         (is_ada_operator): Declare.
4937         (find_toplevel_char): Declare.
4938         (linespec_lexer_lex_keyword): Declare.
4939         * location.c (explicit_to_event_location): New function.
4940         (explicit_location_lex_one): New function.
4941         (string_to_explicit_location): New function.
4942         (string_to_event_location): Handle explicit locations.
4943         * location.h (explicit_to_event_location): Declare.
4944         (string_to_explicit_location): Declare.
4945
4946 2015-08-11  Keith Seitz  <keiths@redhat.com>
4947
4948         * break-catch-throw.c (re_set_exception_catchpoint): Convert
4949         linespec into explicit location.
4950         * breakpoint.c (create_overlay_breakpoint)
4951         (create_longjmp_master_breakpoint)
4952         (create_std_terminate_master_breakpoint)
4953         (create_exception_master_breakpoint): Convert linespec into explicit
4954         location.
4955         (update_static_tracepoint): Convert linespec into explicit location.
4956         * linespec.c (enum offset_relative_sign, struct line_offset): Move
4957         location.h.
4958         (struct linespec) <expression, expr_pc, source_filename>
4959         <function_name, label_name, line_offset>: Replace with ...
4960         <explicit>: ... this.
4961         <is_linespec>: New member.
4962         (PARSER_EXPLICIT): New accessor macro.
4963         (undefined_label_error): New function.
4964         (source_file_not_found_error): New function.
4965         (linespec_parse_basic): The parser result is now an explicit location.
4966         Use PARSER_EXPLICIT to access it.
4967         Use undefined_label_error.
4968         (canonicalize_linespec): Convert canonical linespec into explicit
4969         location.
4970         Move string representation of location to explicit_location_to_linespec
4971         and use it and explicit_location_to_string to save string
4972         representations of the canonical location.
4973         (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4974         explicit location.  Update all references.
4975         (convert_explicit_location_to_sals): New function.
4976         (parse_linespec): Use PARSER_EXPLICIT to access the parser
4977         result's explicit location.
4978         (linespec_state_constructor): Initialize is_linespec.
4979         Use PARSER_EXPLICIT.
4980         (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4981         result.
4982         (event_location_to_sals): For linespec locations, set is_linespec.
4983         Handle explicit locations.
4984         (decode_objc): 'ls' contains an explicit location now. Update all
4985         references.
4986         (symtabs_from_filename): Use source_file_not_found_error.
4987         * location.c (struct event_location.u) <explicit>: New member.
4988         (initialize_explicit_location): New function.
4989         (initialize_event_location): Initialize explicit locations.
4990         (new_explicit_location, get_explicit_location)
4991         (get_explicit_location_const): New functions.
4992         (explicit_to_string_internal): New function; most of contents moved
4993         from canonicalize_linespec.
4994         (explicit_location_to_string): New function.
4995         (explicit_location_to_linespec): New function.
4996         (copy_event_location, delete_event_location)
4997         (event_location_to_string_const, event_location_empty_p): Handle
4998         explicit locations.
4999         * location.h (enum offset_relative_sign, struct line_offset): Move
5000         here from linespec.h.
5001         (enum event_location_type): Add EXPLICIT_LOCATION.
5002         (struct explicit_location): New structure.
5003         (explicit_location_to_string): Declare.
5004         (explicit_location_to_linespec): Declare.
5005         (new_explicit_location, get_explicit_locationp
5006         (get_explicit_location_const, initialize_explicit_location): Declare.
5007
5008 2015-08-11  Keith Seitz  <keiths@redhat.com>
5009
5010         * break-catch-throw.c (re_set_exception_catchpoint): Convert
5011         linespec for stap probe to probe location.
5012         * breakpoint.c (create_longjmp_master_breakpoint)
5013         (create_exception_master_breakpoint): Likewise.
5014         (break_command_1): Remove local variable `arg_cp'.
5015         Check location type to set appropriate breakpoint ops methods.
5016         (trace_command): Likewise.
5017         * linespec.c (event_location_to_sals): Assert on probe locations.
5018         * location.c (EL_PROBE): Add macro definition.
5019         (new_probe_location, get_probe_location): New functions.
5020         (copy_event_location, delete_event_location, event_location_to_string)
5021         (string_to_event_location, event_location_empty_p): Handle probe
5022         locations.
5023         * location.h (enum event_location_type): Add PROBE_LOCATION.
5024         (new_probe_location, get_probe_location): Declare.
5025         * probe.c (parse_probes): Assert that LOCATION is a probe location.
5026         Convert linespec into probe location.
5027
5028 2015-08-11  Keith Seitz  <keiths@redhat.com>
5029
5030         * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
5031         Convert linespec to address location.
5032         * linespec.c (canonicalize_linespec): Do not handle address
5033         locations here.
5034         (convert_address_location_to_sals): New function; contents moved
5035         from ...
5036         (convert_linespc_to_sals): ... here.
5037         (parse_linespec): Remove address locations from linespec grammar.
5038         Remove handling of address locations.
5039         (linespec_lex_to_end): Remove handling of address linespecs.
5040         (event_location_to_sals): Handle ADDRESS_LOCATION.
5041         (linespec_expression_to_pc): Export.
5042         * linespec.h (linespec_expression_to_pc): Add declaration.
5043         * location.c (struct event_location.u) <address>: New member.
5044         (new_address_location, get_address_location): New functions.
5045         (copy_event_location, delete_event_location, event_location_to_string)
5046         (string_to_event_location, event_location_empty_p): Handle address
5047         locations.
5048         * location.h (enum event_location_type): Add ADDRESS_LOCATION.
5049         (new_address_location, get_address_location): Declare.
5050         * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
5051         to address location.
5052         * spu-tdep.c (spu_catch_start): Likewise.
5053
5054 2015-08-11  Keith Seitz  <keiths@redhat.com>
5055
5056         * ax-gdb.c: Include location.h.
5057         (agent_command_1) Use linespec location instead of address
5058         string.
5059         * break-catch-throw.c: Include location.h.
5060         (re_set_exception_catchpoint): Use linespec locations instead
5061         of address strings.
5062         * breakpoint.c: Include location.h.
5063         (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
5064         (create_std_terminate_master_breakpoint)
5065         (create_exception_master_breakpoint, update_breakpoints_after_exec):
5066         Use linespec location instead of address string.
5067         (print_breakpoint_location):  Use locations and
5068         event_location_to_string.
5069         Print extra_string for pending locations for non-MI streams.
5070         (print_one_breakpoint_location): Use locations and
5071         event_location_to_string.
5072         (init_raw_breakpoint_without_location): Initialize b->location.
5073         (create_thread_event_breakpoint): Use linespec location instead of
5074         address string.
5075         (init_breakpoint_sal): Likewise.
5076         Only save extra_string if it is non-NULL and not the empty string.
5077         Use event_location_to_string instead of `addr_string'.
5078         Constify `p' and `endp'.
5079         Use skip_spaces_const/skip_space_const instead of non-const versions.
5080         Copy the location into the breakpoint.
5081         If LOCATION is NULL, save the breakpoint address as a linespec location
5082         instead of an address string.
5083         (create_breakpoint_sal): Change `addr_string' parameter to a struct
5084         event_location. All uses updated.
5085         (create_breakpoints_sal): Likewise for local variable `addr_string'.
5086         (parse_breakpoint_sals): Use locations instead of address strings.
5087         Remove check for empty linespec with conditional.
5088         Refactor.
5089         (decode_static_tracepoint_spec): Make argument const and update
5090         function.
5091         (create_breakpoint): Change `arg' to a struct event_location and
5092         rename.
5093         Remove `copy_arg' and `addr_start'.
5094         If EXTRA_STRING is empty, set it to NULL.
5095         Don't populate `canonical' for pending breakpoints.
5096         Pass `extra_string' to find_condition_and_thread.
5097         Clear `extra_string' if `rest' was NULL.
5098         Do not error with "garbage after location" if setting a dprintf
5099         breakpoint.
5100         Copy the location into the breakpoint instead of an address string.
5101         (break_command_1): Use string_to_event_location and pass this to
5102         create_breakpoint instead of an address string.
5103         Check against `arg_cp' for a probe linespec.
5104         (dprintf_command): Use string_to_event_location and pass this to
5105         create_breakpoint instead of an address string.
5106         Throw an exception if no format string was specified.
5107         (print_recreate_ranged_breakpoint): Use event_location_to_string
5108         instead of address strings.
5109         (break_range_command, until_break_command)
5110         (init_ada_exception_breakpoint): Use locations instead
5111         of address strings.
5112         (say_where): Print out extra_string for pending locations.
5113         (base_breakpoint_dtor): Delete `location' and `location_range_end' of
5114         the breakpoint.
5115         (base_breakpoint_create_sals_from_location): Use struct event_location
5116         instead of address string.
5117         Remove `addr_start' and `copy_arg' parameters.
5118         (base_breakpoint_decode_location): Use struct event_location instead of
5119         address string.
5120         (bkpt_re_set): Use locations instead of address strings.
5121         Use event_location_empty_p to check for unset location.
5122         (bkpt_print_recreate): Use event_location_to_string instead of
5123         an address string.
5124         Print out extra_string for pending locations.
5125         (bkpt_create_sals_from_location, bkpt_decode_location)
5126         (bkpt_probe_create_sals_from_location): Use struct event_location
5127         instead of address string.
5128         (bkpt_probe_decode_location): Use struct event_location instead of
5129         address string.
5130         (tracepoint_print_recreate): Use event_location_to_string to
5131         recreate the tracepoint.
5132         (tracepoint_create_sals_from_location, tracepoint_decode_location)
5133         (tracepoint_probe_create_sals_from_location)
5134         (tracepoint_probe_decode_location): Use struct event_location
5135         instead of address string.
5136         (dprintf_print_recreate): Use event_location_to_string to recreate
5137         the dprintf.
5138         (dprintf_re_set): Remove check for valid/missing format string.
5139         (strace_marker_create_sals_from_location)
5140         (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
5141         (update_static_tracepoint): Use struct event_location instead of
5142         address string.
5143         (location_to_sals): Likewise.
5144         Pass `extra_string' to find_condition_and_thread.
5145         For newly resolved pending breakpoint locations, clear the location's
5146         string representation.
5147         Assert that the breakpoint's condition string is NULL when
5148         condition_not_parsed.
5149         (breakpoint_re_set_default, create_sals_from_location_default)
5150         (decode_location_default, trace_command, ftrace_command)
5151         (strace_command, create_tracepoint_from_upload): Use locations
5152         instead of address strings.
5153         * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
5154         Use struct event_location instead of address string.
5155         Update all uses.
5156         <decode_location>: Likewise.
5157         (struct breakpoint) <addr_string>: Change to struct event_location
5158         and rename `location'.
5159         <addr_string_range_end>: Change to struct event_location and rename
5160         `location_range_end'.
5161         (create_breakpoint): Use struct event_location instead of address
5162         string.
5163         * cli/cli-cmds.c: Include location.h.
5164         (edit_command, list_command): Use locations instead of address strings.
5165         * elfread.c: Include location.h.
5166         (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
5167         * guile/scm-breakpoint.c: Include location.h.
5168         (bpscm_print_breakpoint_smob): Use event_location_to_string.
5169         (gdbscm_register_breakpoint): Use locations instead of address
5170         strings.
5171         * linespec.c: Include location.h.
5172         (struct ls_parser) <stream>: Change to const char *.
5173         (PARSER_STREAM): Update.
5174         (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
5175         keywords must be followed by whitespace.
5176         (canonicalize_linespec): Save a linespec location into `canonical'.
5177         Save a canonical linespec into `canonical'.
5178         (parse_linespec): Change `argptr' to const char * and rename `arg'.
5179         All uses updated.
5180         Update function description.
5181         (linespec_parser_new): Initialize `parser'.
5182         Update initialization of  parsing stream.
5183         (event_location_to_sals): New function.
5184         (decode_line_full): Change `argptr' to a struct event_location and
5185         rename it `location'.
5186         Use locations instead of address strings.
5187         Call event_location_to_sals instead of parse_linespec.
5188         (decode_line_1): Likewise.
5189         (decode_line_with_current_source, decode_line_with_last_displayed)
5190         Use locations instead of address strings.
5191         (decode_objc): Likewise.
5192         Change `argptr' to const char * and rename `arg'.
5193         (destroy_linespec_result): Delete the linespec result's location
5194         instead of freeing the address string.
5195         * linespec.h (struct linespec_result) <addr_string>: Change to
5196         struct event_location and rename to ...
5197         <location>: ... this.
5198         (decode_line_1, decode_line_full): Change `argptr' to struct
5199         event_location.  All callers updated.
5200         * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
5201         (mi_cmd_break_insert_1): Use locations instead of address strings.
5202         Throw an error if there was "garbage" at the end of the specified
5203         linespec.
5204         * probe.c: Include location.h.
5205         (parse_probes): Change `argptr' to struct event_location.
5206         Use event locations instead of address strings.
5207         * probe.h (parse_probes): Change `argptr' to struct event_location.
5208         * python/py-breakpoint.c: Include location.h.
5209         (bppy_get_location): Constify local variable `str'.
5210         Use event_location_to_string.
5211         (bppy_init): Use locations instead of address strings.
5212         * python/py-finishbreakpoint.c: Include location.h.
5213         (bpfinishpy_init): Remove local variable `addr_str'.
5214         Use locations instead of address strings.
5215         * python/python.c: Include location.h.
5216         (gdbpy_decode_line): Use locations instead of address strings.
5217         * remote.c: Include location.h.
5218         (remote_download_tracepoint): Use locations instead of address
5219         strings.
5220         * spu-tdep.c: Include location.h.
5221         (spu_catch_start): Remove local variable `buf'.
5222         Use locations instead of address strings.
5223         * tracepoint.c: Include location.h.
5224         (scope_info): Use locations instead of address strings.
5225         (encode_source_string): Constify parameter `src'.
5226         * tracepoint.h (encode_source_string): Likewise.
5227
5228 2015-08-11  Keith Seitz  <keiths@redhat.com>
5229
5230         * Makefile.in (SFILES): Add location.c.
5231         (HFILES_NO_SRCDIR): Add location.h.
5232         (COMMON_OBS): Add location.o.
5233         * linespec.c (linespec_lex_to_end): New function.
5234         * linespec.h (linespec_lex_to_end): Declare.
5235         * location.c: New file.
5236         * location.h: New file.
5237
5238 2015-08-11  Keith Seitz  <keiths@redhat.com>
5239
5240         * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
5241         Renamed to create_sals_from_location.
5242         <decode_linespec>: Renamed to decode_location.
5243         Update all callers.
5244         * breakpoint.c (create_sals_from_address_default): Renamed to ...
5245         (create_sals_from_location_default): ... this.
5246         (addr_string_to_sals): Renamed to ...
5247         (location_to_sals): ... this.
5248         (decode_linespec_default): Renamed to ...
5249         (decode_location_default): ... this.
5250         (base_breakpoint_create_sals_from_address): Renamed to ...
5251         (base_breakpoint_create_sals_from_location): ... this.
5252         (bkpt_create_sals_from_address): Renamed to ...
5253         (bkpt_create_sals_from_location): ... this.
5254         (bkpt_decode_linespec): Renamed to ...
5255         (bkpt_decode_location): ... this.
5256         (bkpt_probe_create_sals_from_address): Renamed to ...
5257         (bkpt_probe_create_sals_from_location): ... this.
5258         (tracepoint_create_sals_from_address): Renamed to ...
5259         (tracepoint_create_sals_from_location): ... this.
5260         (tracepoint_decode_linespec): Renamed to ...
5261         (tracepoint_decode_location): ... this.
5262         (tracepoint_probe_create_sals_from_address): Renamed to ...
5263         (tracepoint_probe_create_sals_from_location): ... this.
5264         (tracepoint_probe_decode_linespec): Renamed to ...
5265         (tracepoint_probe_decode_location): ... this.
5266         (strace_marker_create_sals_from_address): Renamed to ...
5267         (strace_marker_create_sals_from_location): ... this.
5268         (decode_linespec_default): Renamed to ...
5269         (decode_location_default): ... this.
5270
5271 2015-08-10  Doug Evans  <dje@google.com>
5272             Keith Seitz  <keiths@redhat.com>
5273
5274         PR gdb/17960
5275         * symtab.c (make_file_symbol_completion_list_1): Renamed from
5276         make_file_symbol_completion_list and made static.
5277         (make_file_symbol_completion_list): New function.
5278
5279 2015-08-10  Joel Brobecker  <brobecker@adacore.com>
5280
5281         * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
5282         trailing new-line at end of warning message.
5283         (proceed): Add i18n marker to error messages.
5284
5285 2015-08-07  Pedro Alves  <palves@redhat.com>
5286
5287         * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
5288
5289 2015-08-07  Pedro Alves  <palves@redhat.com>
5290
5291         * s390-linux-tdep.c (is_non_branch_ril)
5292         (s390_displaced_step_copy_insn): New functions.
5293         (s390_displaced_step_fixup): Update comment.
5294         (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
5295         gdbarch_displaced_step_copy_insn hook.
5296
5297 2015-08-07  Pedro Alves  <palves@redhat.com>
5298
5299         * infrun.c (displaced_step_prepare_throw): Return -1 if
5300         gdbarch_displaced_step_copy_insn returns NULL.  Update intro
5301         comment.
5302         * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
5303         (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
5304         in file.
5305         (ppc_displaced_step_copy_insn): New function.
5306         (ppc_displaced_step_fixup): Update comment.
5307         (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
5308         gdbarch_displaced_step_copy_insn hook.
5309         * gdbarch.sh (displaced_step_copy_insn): Document what happens on
5310         NULL return.
5311         * gdbarch.h: Regenerate.
5312
5313 2015-08-07  Pedro Alves  <palves@redhat.com>
5314
5315         * inferior.h (struct inferior) <displaced_stepping_failed>: New
5316         field.
5317         * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
5318         Return false if dispaced stepping failed before.
5319         (resume): Pass the current inferior to
5320         use_displaced_stepping_now_p.  Wrap displaced_step_prepare in
5321         TRY/CATCH.  If we get a MEMORY_ERROR, set the inferior's
5322         displaced_stepping_failed flag, and fall back to an in-line
5323         step-over.
5324
5325 2015-08-07  Pedro Alves  <palves@redhat.com>
5326
5327         * darwin-nat.c (darwin_stop): Rename to ...
5328         (darwin_interrupt): ... this.
5329         (_initialize_darwin_inferior): Adjust.
5330         * gnu-nat.c (gnu_stop): Delete.
5331         (gnu_target): Don't install gnu_stop.
5332         * inf-ptrace.c (inf_ptrace_stop): Rename to ...
5333         (inf_ptrace_interrupt): ... this.
5334         (inf_ptrace_target): Adjust.
5335         * infcmd.c (interrupt_target_1): Use target_interrupt instead of
5336         target_stop.
5337         * linux-nat (linux_nat_stop): Rename to ...
5338         (linux_nat_interrupt): ... this.
5339         (linux_nat_stop): Reimplement.
5340         (linux_nat_add_target): Install linux_nat_interrupt.
5341         * nto-procfs.c (nto_interrupt_twice): Rename to ...
5342         (nto_handle_sigint_twice): ... this.
5343         (nto_interrupt): Rename to ...
5344         (nto_handle_sigint): ... this.  Call target_interrupt instead of
5345         target_stop.
5346         (procfs_wait): Adjust.
5347         (procfs_stop): Rename to ...
5348         (procfs_interrupt): ... this.
5349         (init_procfs_targets): Adjust.
5350         * procfs.c (procfs_stop): Rename to ...
5351         (procfs_interrupt): ... this.
5352         (procfs_target): Adjust.
5353         * remote-m32r-sdi.c (m32r_stop): Rename to ...
5354         (m32r_interrupt): ... this.
5355         (init_m32r_ops): Adjust.
5356         * remote-sim.c (gdbsim_stop_inferior): Rename to ...
5357         (gdbsim_interrupt_inferior): ... this.
5358         (gdbsim_stop): Rename to ...
5359         (gdbsim_interrupt): ... this.
5360         (gdbsim_cntrl_c): Adjust.
5361         (init_gdbsim_ops): Adjust.
5362         * remote.c (sync_remote_interrupt): Adjust comments.
5363         (remote_stop_as): Rename to ...
5364         (remote_interrupt_as): ... this.
5365         (remote_stop): Adjust comment.
5366         (remote_interrupt): New function.
5367         (init_remote_ops): Install remote_interrupt.
5368         * target.c (target_interrupt): New function.
5369         * target.h (struct target_ops) <to_interrupt>: New field.
5370         (target_interrupt): New declaration.
5371         * windows-nat.c (windows_stop): Rename to ...
5372         (windows_interrupt): ... this.
5373         * target-delegates.c: Regenerate.
5374
5375 2015-08-07  Pedro Alves  <palves@redhat.com>
5376
5377         * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
5378         threads" as alternative to "switching back to stepped thread".
5379
5380 2015-08-07  Pedro Alves  <palves@redhat.com>
5381
5382         * NEWS: Mention "maint set/show target-non-stop".
5383         * breakpoint.c (update_global_location_list): Check
5384         target_is_non_stop_p instead of non_stop.
5385         * infcmd.c (attach_command_post_wait, attach_command): Likewise.
5386         * infrun.c (show_can_use_displaced_stepping)
5387         (can_use_displaced_stepping_p, start_step_over_inferior):
5388         Likewise.
5389         (internal_resume_ptid): New function.
5390         (resume): Use it.
5391         (proceed): Check target_is_non_stop_p instead of non_stop.  If in
5392         all-stop mode but the target is always in non-stop mode, start all
5393         the other threads that are implicitly resumed too.
5394         (for_each_just_stopped_thread, fetch_inferior_event)
5395         (adjust_pc_after_break, stop_all_threads): Check
5396         target_is_non_stop_p instead of non_stop.
5397         (handle_inferior_event): Likewise.  Handle detach-fork in all-stop
5398         with the target always in non-stop mode.
5399         (handle_signal_stop) <random signal>: Check target_is_non_stop_p
5400         instead of non_stop.
5401         (switch_back_to_stepped_thread): Check target_is_non_stop_p
5402         instead of non_stop.
5403         (keep_going_stepped_thread): Use internal_resume_ptid.
5404         (stop_waiting): If in all-stop mode, and the target is in non-stop
5405         mode, stop all threads.
5406         (keep_going_pass): Likewise, when starting a new in-line step-over
5407         sequence.
5408         * linux-nat.c (get_pending_status, select_event_lwp)
5409         (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
5410         target_is_non_stop_p instead of non_stop.
5411         (linux_nat_always_non_stop_p): New function.
5412         (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
5413         (linux_nat_add_target): Install linux_nat_always_non_stop_p.
5414         * target-delegates.c: Regenerate.
5415         * target.c (target_is_non_stop_p): New function.
5416         (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
5417         (maint_set_target_non_stop_command)
5418         (maint_show_target_non_stop_command): New functions.
5419         (_initilize_target): Install "maint set/show target-non-stop"
5420         commands.
5421         * target.h (struct target_ops) <to_always_non_stop_p>: New field.
5422         (target_non_stop_enabled): New declaration.
5423         (target_is_non_stop_p): New declaration.
5424
5425 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
5426
5427         * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
5428         has a pending status, return true.
5429         * gdbthread.h: Include target/waitstatus.h.
5430         (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
5431         stop_pc>: New fields.
5432         (struct thread_info) <resumed>: New field.
5433         (set_resumed): Declare.
5434         * infrun.c: Include "event-loop.h".
5435         (infrun_async_inferior_event_token, infrun_is_async): New globals.
5436         (infrun_async): New function.
5437         (clear_step_over_info): Add debug output.
5438         (displaced_step_in_progress_any_inferior): New function.
5439         (displaced_step_fixup): New returns int.
5440         (start_step_over): Handle in-line step-overs too.  Assert the
5441         thread is marked resumed.
5442         (resume_cleanups): Clear the thread's resumed flag.
5443         (resume): Set the thread's resumed flag.  Return early if the
5444         thread has a pending status.  Allow stepping a breakpoint with no
5445         signal.
5446         (proceed): Adjust to check 'resumed' instead of 'executing'.
5447         (clear_proceed_status_thread): If the thread has a pending status,
5448         and that status is a finished step, discard the pending status.
5449         (clear_proceed_status): Don't clear step_over_info here.
5450         (random_pending_event_thread, do_target_wait): New functions.
5451         (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
5452         do_target_wait.
5453         (wait_one): New function.
5454         (THREAD_STOPPED_BY): New macro.
5455         (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5456         (thread_stopped_by_hw_breakpoint): New functions.
5457         (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
5458         functions.
5459         (handle_inferior_event): Also call set_resumed(false) on all
5460         threads implicitly stopped by the event.
5461         (restart_threads, resumed_thread_with_pending_status): New
5462         functions.
5463         (finish_step_over): If we were doing an in-line step-over before,
5464         and no longer are after trying to start a new step-over, restart
5465         all threads.  If we have multiple threads with pending events,
5466         save the current event and go through the event loop again.
5467         (handle_signal_stop): Return early if finish_step_over returns
5468         false.
5469         <random signal>: If we get a signal while stepping over a
5470         breakpoint in-line in non-stop mode, restart all threads.  Clear
5471         step_over_info before delivering the signal.
5472         (keep_going_stepped_thread): Use internal_error instead of
5473         gdb_assert.  Mark the thread as resumed.
5474         (keep_going_pass_signal): Assert the thread isn't already resumed.
5475         If some other thread is doing an in-line step-over, defer the
5476         resume.  If we just started a new in-line step-over, stop all
5477         threads.  Don't clear step_over_info.
5478         (infrun_async_inferior_event_handler): New function.
5479         (_initialize_infrun): Create async event handler with
5480         infrun_async_inferior_event_handler as callback.
5481         (infrun_async): New declaration.
5482         * target.c (target_async): New function.
5483         * target.h (target_async): Declare macro and readd as function
5484         declaration.
5485         * target/waitstatus.h (enum target_stop_reason)
5486         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5487         * thread.c (new_thread): Clear the new waitstatus field.
5488         (set_resumed): New function.
5489
5490 2015-08-07  Pedro Alves  <palves@redhat.com>
5491
5492         * infrun.c (keep_going_stepped_thread): New function, factored out
5493         from ...
5494         (switch_back_to_stepped_thread): ... here.
5495
5496 2015-08-07  Pedro Alves  <palves@redhat.com>
5497
5498         * infrun.c (currently_stepping): Extend intro comment.
5499         * target.h (target_resume): Extend intro comment.
5500
5501 2015-08-07  Pedro Alves  <palves@redhat.com>
5502
5503         * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
5504         of inferior_ptid.  If the stepped thread vanished, return 0
5505         instead of resuming here.  Use reset_ecs.  Print the prev_pc and
5506         the current stop_pc in log message.  Clear trap_expected if the
5507         thread advanced.  Don't pass currently_stepping to
5508         do_target_resume.
5509
5510 2015-08-07  Pedro Alves  <palves@redhat.com>
5511
5512         * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
5513         * infrun.c (struct execution_control_state): Move higher up in the
5514         file.
5515         (reset_ecs): New function.
5516         (start_step_over): Now returns int.  Rewrite to use
5517         keep_going_pass_signal instead of manually starting a displaced step.
5518         (resume): Don't call set_running here.  If displaced stepping
5519         can't start now, clear trap_expected.
5520         (find_thread_needs_step_over): Delete function.
5521         (proceed): Set up finish_thread_state_cleanup.  Call set_running.
5522         If the current thread needs a step over, push it in the step-over
5523         chain.  Don't set insert breakpoints nor call resume directly
5524         here.  Instead rewrite to use start_step_over and
5525         keep_going_pass_signal.
5526         (finish_step_over): New function.
5527         (handle_signal_stop): Call finish_step_over instead of
5528         start_step_over.
5529         (switch_back_to_stepped_thread): If the event thread needs another
5530         step-over do that first.  Use start_step_over.
5531         (keep_going_pass_signal): New function, factored out from ...
5532         (keep_going): ... here.
5533         (_initialize_infrun): Comment moved here.
5534         * thread.c (set_running_thread): New function.
5535         (set_running, finish_thread_state): Use set_running_thread.
5536
5537 2015-08-07  Pedro Alves  <palves@redhat.com>
5538
5539         * gdbthread.h (struct thread_info) <step_over_prev,
5540         step_over_next>: New fields.
5541         (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
5542         (thread_step_over_chain_next, thread_is_in_step_over_chain): New
5543         declarations.
5544         * infrun.c (struct displaced_step_request): Delete.
5545         (struct displaced_step_inferior_state) <step_request_queue>:
5546         Delete field.
5547         (displaced_step_prepare): Assert that trap_expected is set.  Use
5548         thread_step_over_chain_enqueue.  Split starting a new displaced
5549         step to ...
5550         (start_step_over): ... this new function.
5551         (resume): Assert the thread isn't waiting for a step over already.
5552         (proceed): Assert the thread isn't waiting for a step over
5553         already.
5554         (infrun_thread_stop_requested): Adjust to remove threads from the
5555         embedded step-over chain.
5556         (handle_inferior_event) <fork/vfork>: Call start_step_over after
5557         displaced_step_fixup.
5558         (handle_signal_stop): Call start_step_over after
5559         displaced_step_fixup.
5560         * infrun.h (step_over_queue_head): New declaration.
5561         * thread.c (step_over_chain_enqueue, step_over_chain_remove)
5562         (thread_step_over_chain_next, thread_is_in_step_over_chain)
5563         (thread_step_over_chain_enqueue)
5564         (thread_step_over_chain_remove): New functions.
5565         (delete_thread_1): Remove thread from the step-over chain.
5566
5567 2015-08-07  Pedro Alves  <palves@redhat.com>
5568
5569         * infrun.c (thread_still_needs_step_over): Rename to ...
5570         (thread_still_needs_step_over_bp): ... this.
5571         (enum step_over_what): New.
5572         (thread_still_needs_step_over): Reimplement.
5573
5574 2015-08-07  Pedro Alves  <palves@redhat.com>
5575
5576         * remote.c (remote_wait_as): If not waiting for a stop reply,
5577         return TARGET_WAITKIND_NO_RESUMED.  If TARGET_WNOHANG is
5578         requested, don't block waiting forever.
5579
5580 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
5581
5582         * infrun.c (adjust_pc_after_break): Now takes thread_info and
5583         waitstatus pointers instead of an ecs.  Adjust.
5584         (handle_inferior_event): Adjust caller.
5585
5586 2015-08-07  Pedro Alves  <palves@redhat.com>
5587
5588         * infrun.c (handle_inferior_event): If we get
5589         TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
5590         mode, mark all threads of the exiting process as not-executing.
5591         (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
5592         TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
5593         exiting process, if inferior_ptid still points at a process.
5594         * thread.c (struct current_thread_cleanup) <next>: New field.
5595         (current_thread_cleanup_chain): New global.
5596         (restore_current_thread_ptid_changed): New function.
5597         (restore_current_thread_cleanup_dtor): Remove the cleanup from the
5598         current_thread_cleanup_chain list.
5599         (make_cleanup_restore_current_thread): Add the cleanup data to the
5600         current_thread_cleanup_chain list.
5601         (_initialize_thread): Install restore_current_thread_ptid_changed
5602         as thread_ptid_changed observer.
5603
5604 2015-08-07  Joel Brobecker  <brobecker@adacore.com>
5605
5606         * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
5607         data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
5608         smaller than expected.
5609
5610 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
5611
5612         * stack.c (get_frame_language): Moved ...
5613         * frame.c (get_frame_language): ... to here.
5614         * language.h (get_frame_language): Declaration moved to frame.h.
5615         * frame.h: Add language.h include, for language enum.
5616         (get_frame_language): Declaration moved from language.h.
5617         * language.c: Add frame.h include.
5618         * top.c: Add frame.h include.
5619         * symtab.h (struct obj_section): Declare.
5620         (struct cmd_list_element): Declare.
5621
5622 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
5623
5624         * language.c (show_language_command): Find selected frame before
5625         asking for the language of that frame.
5626         (set_language_command): Likewise.
5627         * language.h (get_frame_language): Add frame parameter.
5628         * stack.c (get_frame_language): Add frame parameter, assert
5629         parameter is not NULL, update comment and reindent.
5630         * top.c (check_frame_language_change): Pass the selected frame
5631         into get_frame_language.
5632
5633 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
5634
5635         * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
5636         (pt_btrace_insn_flags): New.
5637         (ftrace_add_pt): Call pt_btrace_insn_flags.
5638         * btrace.h (btrace_insn_flag): New.
5639         (btrace_insn) <flags>: New.
5640         * record-btrace.c (btrace_insn_history): Print insn prefix.
5641         * NEWS: Announce it.
5642
5643 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
5644
5645         * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
5646         * configure: Regenerate.
5647
5648 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
5649
5650         * Makefile.in (LIBICONV): Define.
5651         (CLIBS): Add LIBICONV.
5652         * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
5653         * configure: Regenerate.
5654
5655 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
5656             Pedro Alves  <palves@redhat.com>
5657
5658         * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
5659         (arm_set_abi): Likewise.
5660         * ax-general.c (ax_print): Likewise.
5661         * c-exp.y (exp : string_exp): Likewise.
5662         * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
5663         (do_compile_dwarf_expr_to_c): Likewise.
5664         * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
5665         Likewise.
5666         * dwarf2expr.c (execute_stack_op): Likewise.
5667         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
5668         (disassemble_dwarf_expression): Likewise.
5669         * dwarf2read.c (dwarf2_add_member_fn): Likewise.
5670         (read_array_order): Likewise.
5671         (abbrev_table_read_table): Likewise.
5672         (read_attribute_value): Likewise.
5673         (skip_unknown_opcode): Likewise.
5674         (dwarf_decode_macro_bytes): Likewise.
5675         (dwarf_decode_macros): Likewise.
5676         * eval.c (value_f90_subarray): Likewise.
5677         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5678         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5679         * infrun.c (handle_command): Likewise.
5680         * memory-map.c (memory_map_start_memory): Likewise.
5681         * osabi.c (set_osabi): Likewise.
5682         * parse.c (operator_length_standard): Likewise.
5683         * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
5684         single return point.
5685         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5686         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5687         (gdbpy_lookup_global_symbol): Likewise.
5688         * record-full.c (record_full_restore): Likewise.
5689         * regcache.c (regcache_register_status): Likewise.
5690         (regcache_raw_read): Likewise.
5691         (regcache_cooked_read): Likewise.
5692         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5693         * symtab.c (initialize_ordinary_address_classes): Likewise.
5694         * target-debug.h (target_debug_print_signals): Likewise.
5695         * utils.c (do_restore_current_language): Likewise.
5696
5697 2015-08-06  Clem Dickey  <clemd@acm.org>
5698
5699         PR python/17136
5700         * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
5701
5702 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
5703
5704         * complaints.c (enum complaint_series): Add newlines and remove
5705         out of date comment.
5706         (struct complaints) <series>: Change type to enum
5707         complaint_series and remove out of date comment.
5708         (symfile_complaint_hook): Use equivalent enum value
5709         ISOLATED_MESSAGE instead of 0.
5710
5711 2015-08-06  Pedro Alves  <palves@redhat.com>
5712
5713         * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
5714         returned > 0.
5715
5716 2015-08-06  Pierre Langlois  <pierre.langlois@arm.com>
5717
5718         * common/agent.c (symbol_list) <required>: Remove.
5719
5720 2015-08-06  Pedro Alves  <palves@redhat.com>
5721
5722         * target/waitstatus.h (enum target_stop_reason)
5723         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5724
5725 2015-08-05  Pedro Alves  <palves@redhat.com>
5726             Joel Brobecker  <brobecker@adacore.com>
5727
5728         * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
5729         <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
5730         case where BS->STOP is not set.
5731
5732 2015-08-05  Ulrich Weigand  <uweigand@de.ibm.com>
5733
5734         * nat/gdb_thread_db.h: Add copyright header.
5735         Protect against multiple inclusion.
5736
5737 2015-08-05  Yao Qi  <yao.qi@linaro.org>
5738
5739         * aarch64-linux-nat.c (get_thread_id): Remove.
5740         (debug_reg_change_callback): Call ptid_get_lwp instead of
5741         get_thread_id.
5742         (fetch_gregs_from_thread): Likewise.
5743         (store_gregs_to_thread): Likewise.
5744         (fetch_fpregs_from_thread): Likewise.
5745         (store_fpregs_to_thread): Likewise.
5746         (aarch64_linux_get_debug_reg_capacity): Likewise.
5747         * arm-linux-nat.c (get_thread_id): Remove.
5748         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5749         * xtensa-linux-nat.c (get_thread_id): Remove.
5750         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5751         * arm-linux-nat.c (get_thread_id): Remove.
5752         (GET_THREAD_ID): Remove.
5753         (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
5754         (store_fpregs, fetch_regs, store_regs): Likewise.
5755         (fetch_wmmx_regs, store_wmmx_regs): Likewise.
5756         (fetch_vfp_regs, store_vfp_regs): Likewise.
5757         (arm_linux_read_description): Likewise.
5758         (arm_linux_get_hwbp_cap): Likewise.
5759         * xtensa-linux-nat.c (get_thread_id): Remove.
5760         (GET_THREAD_ID): Remove.
5761         (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
5762         GET_THREAD_ID.
5763
5764 2015-08-04  Ciro Santilli  <ciro.santilli@gmail.com>  (obvious patch)
5765
5766         * python/py-linetable.c: Fix case of Linetable to LineTable
5767         in docstrings and code comments.
5768         * python/py-symtab.c: Same.
5769
5770 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5771
5772         * infcmd.c (signal_command): Call do_cleanups for args_chain.
5773
5774 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5775
5776         PR gdb/18767
5777         * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
5778         use.
5779
5780 2015-08-04  Pedro Alves  <palves@redhat.com>
5781
5782         * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
5783         (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
5784         (td_ta_event_addr_ftype, td_ta_set_event_ftype)
5785         (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
5786         (td_thr_validate_ftype, td_thr_get_info_ftype)
5787         (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
5788         (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
5789         New typedefs.
5790         * linux-thread-db.c (struct thread_db_info): Use new typedefs.
5791         (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
5792         local macros and use them instead of verbose_dlsym and dlsym
5793         calls.
5794
5795 2015-08-03  Sandra Loosemore  <sandra@codesourcery.com>
5796
5797         * nios2-tdep.h: Include opcode/nios2.h here.
5798         (NIOS2_CDX_OPCODE_SIZE): New.
5799         (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
5800         * nios2-tdep.c: Don't include opcode/nios2.h here.
5801         (nios2_fetch_insn): For R2, try reading 2-byte instruction if
5802         4-byte read fails.
5803         (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
5804         (nios2_match_addi, nios2_match_orhi): Likewise.
5805         (nios2_match_stw, nios2_match_ldw): Likewise.
5806         (nios2_match_rdctl): Likewise.
5807         (nios2_match_stwm, nios2_match_ldwm): New.
5808         (nios2_match_branch): Add cases for R2 encodings.
5809         (nios2_match_jmpi, nios2_match_calli): Likewise.
5810         (nios2_match_jmpr, nios2_match_callr): Likewise.
5811         (nios2_match_break, nios2_match_trap): Likewise.
5812         (nios2_in_epilogue_p): Add R2 support.
5813         (nios2_analyze_prologue): Update comments.  Recognize R2 CDX
5814         prologues.
5815         (nios2_breakpoint_from_pc): Handle R2 instructions.
5816         (nios2_get_next_pc): Likewise.  Adjust call to
5817         tdep->syscall_next_pc.
5818         * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
5819         Renamed from nios2_linux_rt_sigreturn_tramp_frame.  Use
5820         instruction field macros instead of literal hex values.
5821         (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
5822         (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
5823         Use size field from OP instead of assuming all instructions
5824         are the same size.
5825         (nios2_linux_init_abi): Register appropriate unwinder for mach.
5826
5827 2015-08-03  Ulrich Weigand  <uweigand@de.ibm.com>
5828
5829         * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
5830         variable warning with some compilers.
5831
5832 2015-08-03  Yao Qi  <yao.qi@linaro.org>
5833
5834         * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
5835         in comment.  Replace "rw" with "type".
5836         (arm_linux_remove_watchpoint): Change type of "rw" to
5837         "enum target_hw_bp_type".
5838
5839 2015-08-02  Pierre-Marie de Rodat  <derodat@adacore.com>
5840
5841         * alpha-mdebug-tdep.c (find_proc_desc): Update call to
5842         lookup_symbol.
5843         * ft32-tdep.c (ft32_skip_prologue): Likewise.
5844         * moxie-tdep.c (moxie_skip_prologue): Likewise.
5845         * mt-tdep.c (mt_skip_prologue): Likewise.
5846         * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5847
5848 2015-08-01  Pierre-Marie de Rodat  <derodat@adacore.com>
5849
5850         * ada-exp.y (write_object_renaming): Replace struct
5851         ada_symbol_info with struct block_symbol.  Update field
5852         references accordingly.
5853         (block_lookup, select_possible_type_sym): Likewise.
5854         (find_primitive_type): Likewise.  Also update call to
5855         ada_lookup_symbol to extract the symbol itself.
5856         (write_var_or_type, write_name_assoc): Likewise.
5857         * ada-lang.h (struct ada_symbol_info): Remove.
5858         (ada_lookup_symbol_list): Replace struct ada_symbol_info with
5859         struct block_symbol.
5860         (ada_lookup_encoded_symbol, user_select_syms): Likewise.
5861         (ada_lookup_symbol): Return struct block_symbol instead of a
5862         mere symbol.
5863         * ada-lang.c (defns_collected): Replace struct ada_symbol_info
5864         with struct block_symbol.
5865         (resolve_subexp, ada_resolve_function, sort_choices,
5866         user_select_syms, is_nonfunction, add_defn_to_vec,
5867         num_defns_collected, defns_collected,
5868         symbols_are_identical_enums, remove_extra_symbols,
5869         remove_irrelevant_renamings, add_lookup_symbol_list_worker,
5870         ada_lookup_symbol_list, ada_iterate_over_symbols,
5871         ada_lookup_encoded_symbol, get_var_value): Likewise.
5872         (ada_lookup_symbol): Return a block_symbol instead of a mere
5873         symbol.  Replace struct ada_symbol_info with struct
5874         block_symbol.
5875         (ada_lookup_symbol_nonlocal): Likewise.
5876         (standard_lookup): Make block passing explicit through
5877         lookup_symbol_in_language.
5878         * ada-tasks.c (get_tcb_types_info): Update the calls to
5879         lookup_symbol_in_language to extract the mere symbol out of the
5880         returned value.
5881         (ada_tasks_inferior_data_sniffer): Likewise.
5882         * ax-gdb.c (gen_static_field): Likewise for the call to
5883         lookup_symbol.
5884         (gen_maybe_namespace_elt): Deal with struct block_symbol from
5885         lookup functions.
5886         (gen_expr): Likewise.
5887         * c-exp.y: Likewise.  Remove uses of block_found.
5888         (lex_one_token, classify_inner_name, c_print_token): Likewise.
5889         (classify_name): Likewise.  Rename the "sym" local variable to
5890         "bsym".
5891         * c-valprint.c (print_unpacked_pointer): Likewise.
5892         * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5893         "sym" parameter from struct symbol * to struct block_symbol.
5894         Use it to remove uses of block_found.  Deal with struct
5895         block_symbol from lookup functions.
5896         (gcc_convert_symbol): Likewise.  Update the call to
5897         convert_symbol_sym.
5898         * compile/compile-object-load.c (compile_object_load): Deal with
5899         struct block_symbol from lookup functions.
5900         * cp-namespace.c (cp_lookup_nested_symbol_1,
5901         cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5902         cp_search_static_and_baseclasses,
5903         cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5904         cp_lookup_symbol_imports_or_template,
5905         cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5906         lookup_namespace_scope, cp_lookup_nonlocal,
5907         find_symbol_in_baseclass): Return struct block_symbol instead of
5908         mere symbols and deal with struct block_symbol from lookup
5909         functions.
5910         * cp-support.c (inspect_type, replace_typedefs,
5911         cp_lookup_rtti_type): Deal with struct block_symbol from
5912         lookup functions.
5913         * cp-support.h (cp_lookup_symbol_nonlocal,
5914         cp_lookup_symbol_from_namespace,
5915         cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
5916         Return struct block_symbol instead of mere symbols.
5917         * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5918         push_module_name):
5919         Deal with struct block_symbol from lookup functions.  Remove
5920         uses of block_found.
5921         * eval.c (evaluate_subexp_standard): Update call to
5922         cp_lookup_symbol_namespace.
5923         * f-exp.y: Deal with struct block_symbol from lookup functions.
5924         Remove uses of block_found.
5925         (yylex): Likewise.
5926         * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5927         lookup_enum, lookup_template_type, check_typedef): Deal with
5928         struct block_symbol from lookup functions.
5929         * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5930         * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5931         (gdbscm_lookup_global_symbol): Likewise.
5932         * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5933         * go-exp.y: Likewise.  Remove uses of block_found.
5934         (package_name_p, classify_packaged_name, classify_name):
5935         Likewise.
5936         * infrun.c (insert_exception_resume_breakpoint): Likewise.
5937         * jv-exp.y (push_variable): Likewise.
5938         * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5939         * language.c (language_bool_type): Likewise.
5940         * language.h (struct language_defn): Update
5941         la_lookup_symbol_nonlocal to return a struct block_symbol rather
5942         than a mere symbol.
5943         * linespec.c (find_label_symbols): Deal with struct block_symbol
5944         from lookup functions.
5945         * m2-exp.y: Likewise.  Remove uses of block_found.
5946         (yylex): Likewise.
5947         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5948         * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5949         * p-exp.y: Likewise.  Remove uses of block_found.
5950         (yylex): Likewise.
5951         * p-valprint.c (pascal_val_print): Likewise.
5952         * parse.c (write_dollar_variable): Likewise.  Remove uses of
5953         block_found.
5954         * parser-defs.h (struct symtoken): Turn the SYM field into a
5955         struct block_symbol.
5956         * printcmd.c (address_info): Deal with struct block_symbol from
5957         lookup functions.
5958         * python/py-frame.c (frapy_read_var): Likewise.
5959         * python/py-symbol.c (gdbpy_lookup_symbol,
5960         gdbpy_lookup_global_symbol): Likewise.
5961         * skip.c (skip_function_command): Likewise.
5962         * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
5963         block_symbol instead of a mere symbol.
5964         * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5965         * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5966         * solib.c (solib_global_lookup): Likewise.
5967         * solist.h (solib_global_lookup): Likewise.
5968         (struct target_so_ops): Update lookup_lib_global_symbol to
5969         return a struct block_symbol rather than a mere symbol.
5970         * source.c (select_source_symtab): Deal with struct block_symbol
5971         from lookup functions.
5972         * stack.c (print_frame_args, iterate_over_block_arg_vars):
5973         Likewise.
5974         * symfile.c (set_initial_language): Likewise.
5975         * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
5976         block_symbol.
5977         (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5978         (struct symbol_cache_slot): Turn the FOUND field into a struct
5979         block_symbol.
5980         (block_found): Remove.
5981         (eq_symbol_entry): Update to deal with struct block_symbol in
5982         cache slots.
5983         (symbol_cache_lookup): Return a struct block_symbol rather than
5984         a mere symbol.
5985         (symbol_cache_mark_found): Add a BLOCK parameter to fill
5986         appropriately the cache slots.  Update callers.
5987         (symbol_cache_dump): Update cache slots handling to the type
5988         change.
5989         (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5990         lookup_symbol_aux, lookup_local_symbol,
5991         lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5992         lookup_symbol_in_objfile_symtabs,
5993         lookup_symbol_in_objfile_from_linkage_name,
5994         lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5995         lookup_symbol_in_static_block, lookup_static_symbol,
5996         lookup_global_symbol):
5997         Return a struct block_symbol rather than a mere symbol.  Deal
5998         with struct block_symbol from other lookup functions.  Remove
5999         uses of block_found.
6000         (lookup_symbol_in_block): Remove uses of block_found.
6001         (struct global_sym_lookup_data): Turn the RESULT field into a
6002         struct block_symbol.
6003         (lookup_symbol_global_iterator_cb): Update references to the
6004         RESULT field.
6005         (search_symbols): Deal with struct block_symbol from lookup
6006         functions.
6007         * symtab.h (struct block_symbol): New structure.
6008         (block_found): Remove.
6009         (lookup_symbol_in_language, lookup_symbol,
6010         basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
6011         lookup_static_symbol, lookup_global_symbol, lookup_language_this,
6012         lookup_global_symbol_from_objfile): Return a struct block_symbol
6013         rather than just a mere symbol.  Update comments to remove
6014         mentions of block_found.
6015         * valops.c (find_function_in_inferior,
6016         value_struct_elt_for_reference, value_maybe_namespace_elt,
6017         value_of_this):  Deal with struct block_symbol from lookup
6018         functions.
6019         * value.c (value_static_field, value_fn_field): Likewise.
6020
6021 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
6022
6023         * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
6024         instead of integer.
6025
6026 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
6027             Pedro Alves  <palves@redhat.com>
6028
6029         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
6030         type or value instead of integer.
6031         (aarch64_linux_insert_watchpoint): Likewise.
6032         (aarch64_linux_remove_watchpoint): Likewise.
6033         * ada-lang.c (ada_op_print_tab): Likewise.
6034         * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
6035         (amd64_linux_syscall_record_common): Likewise.
6036         * arch-utils.c (target_byte_order_user): Likewise.
6037         (default_byte_order): Likewise.
6038         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
6039         (arm_linux_get_hwbp_type): Likewise.
6040         (arm_linux_hw_watchpoint_initialize): Likewise.
6041         (arm_linux_insert_watchpoint): Likewise.
6042         * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
6043         (arm_linux_syscall_record): Likewise.
6044         * breakpoint.c (update_watchpoint): Likewise.
6045         (breakpoint_here_p): Likewise.
6046         (bpstat_print): Likewise.
6047         (enable_breakpoint_disp): Likewise.
6048         * c-lang.c (c_op_print_tab): Likewise.
6049         * cli/cli-decode.c (add_info_alias): Likewise.
6050         * d-lang.c (d_op_print_tab): Likewise.
6051         * eval.c (evaluate_subexp_standard): Likewise.
6052         * f-exp.y (dot_ops): Likewise.
6053         (f77_keywords): Likewise.
6054         * f-lang.c (f_op_print_tab): Likewise.
6055         * go-lang.c (go_op_print_tab): Likewise.
6056         * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
6057         * guile/scm-cmd.c (gdbscm_make_command): Likewise.
6058         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
6059         * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
6060         * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
6061         (struct scm_from_stringn_data): Likewise.
6062         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
6063         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
6064         (ia64_linux_remove_watchpoint): Likewise.
6065         (ia64_linux_can_use_hw_breakpoint): Likewise.
6066         * infrun.c (print_stop_event): Likewise.
6067         * jv-lang.c (java_op_print_tab): Likewise.
6068         * linux-nat.c (linux_proc_xfer_partial): Likewise.
6069         * linux-nat.h (struct lwp_info): Likewise.
6070         * linux-thread-db.c (enable_thread_event): Likewise.
6071         * m2-lang.c (m2_op_print_tab): Likewise.
6072         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
6073         (mi_cmd_stack_list_variables): Likewise.
6074         * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
6075         * mi/mi-out.c (mi_table_begin): Likewise.
6076         (mi_table_header): Likewise.
6077         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
6078         (mips_linux_insert_watchpoint): Likewise.
6079         (mips_linux_remove_watchpoint): Likewise.
6080         * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
6081         * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
6082         (mips_linux_watch_type_to_irw): Likewise.
6083         * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
6084         (procfs_insert_hw_watchpoint): Likewise.
6085         (procfs_remove_hw_watchpoint): Likewise.
6086         (procfs_hw_watchpoint): Likewise.
6087         (procfs_can_use_hw_breakpoint): Likewise.
6088         (procfs_remove_hw_watchpoint): Likewise.
6089         (procfs_insert_hw_watchpoint): Likewise.
6090         * p-lang.c (pascal_op_print_tab): Likewise.
6091         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
6092         * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
6093         * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
6094         * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
6095         (procfs_insert_watchpoint): Likewise.
6096         (procfs_remove_watchpoint): Likewise.
6097         * psymtab.c (recursively_search_psymtabs): Likewise.
6098         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
6099         (m32r_insert_watchpoint): Likewise.
6100         * remote-mips.c (mips_can_use_watchpoint): Likewise.
6101         (mips_insert_watchpoint): Likewise.
6102         (mips_remove_watchpoint): Likewise.
6103         * remote.c (watchpoint_to_Z_packet): Likewise.
6104         (remote_insert_watchpoint): Likewise.
6105         (remote_remove_watchpoint): Likewise.
6106         (remote_check_watch_resources): Likewise.
6107         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
6108         (s390_remove_watchpoint): Likewise.
6109         (s390_can_use_hw_breakpoint): Likewise.
6110         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6111         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
6112         * target.h (struct target_ops): Likewise.
6113         * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
6114         * ui-out.c (struct ui_out_hdr): Likewise.
6115         (append_header_to_list): Likewise.
6116         (get_next_header): Likewise.
6117         (verify_field): Likewise.
6118         (ui_out_begin): Likewise.
6119         (ui_out_field_int): Likewise.
6120         (ui_out_field_fmt_int): Likewise.
6121         (ui_out_field_skip): Likewise.
6122         (ui_out_field_string): Likewise.
6123         (ui_out_field_fmt): Likewise.
6124         * varobj.c (new_variable): Likewise.
6125         * x86-nat.c (x86_insert_watchpoint): Likewise.
6126         (x86_remove_watchpoint): Likewise.
6127         (x86_can_use_hw_breakpoint): Likewise.
6128         * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
6129         * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
6130         previously anonymous enumeration type..
6131         * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
6132         value.
6133         * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
6134         (target_debug_print_enum_bptype): New.
6135         * target-delegates.c: Regenerate.
6136
6137 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
6138
6139         * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
6140         already says and disallow non-stack memory writes in the prologue.
6141
6142 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
6143
6144         * nios2-tdep.c (nios2_analyze_prologue): Update comments to
6145         reflect how current GCC emits stack overflow checks.  Match
6146         both trap and break instructions for backward compatbility.
6147         Disallow other trap and break instructions in the prologue.
6148
6149 2015-07-30  Pedro Alves  <palves@redhat.com>
6150
6151         PR threads/18600
6152         * linux-nat.c (wait_lwp): Report to the core when thread group
6153         leader exits.
6154
6155 2015-07-30  Pedro Alves  <palves@redhat.com>
6156             Simon Marchi  <simon.marchi@ericsson.com>
6157
6158         PR threads/18600
6159         * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
6160         mark the new thread as resumed.  Remove STOPPING parameter.
6161         (wait_lwp): Adjust call to linux_handle_extended_wait.
6162         (linux_nat_filter_event): Adjust call to
6163         linux_handle_extended_wait.
6164         (resume_stopped_resumed_lwps): Add debug output.
6165
6166 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
6167
6168         * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
6169         isize argument.
6170         * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
6171         * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
6172         gdbarch_fast_tracepoint_valid_at.
6173         * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
6174         * gdbarch.h: Regenerate.
6175         * gdbarch.c: Regenerate.
6176         * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
6177         argument.  Do not set it.
6178         * remote.c (remote_download_tracepoint): Adjust call to
6179         gdbarch_fast_tracepoint_valid_at.  Call gdb_insn_length to get
6180         the instruction length.
6181
6182 2015-07-30  Yao Qi  <yao.qi@linaro.org>
6183
6184         * arm-tdep.h (enum gdb_regnum): Move it to ...
6185         * arch/arm.h: ... here.  New file.
6186         * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
6187
6188 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
6189
6190         * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
6191         Change its type to int *.
6192         (decode_br): Rename link argument to is_blr.  Change its type to
6193         int *.
6194         (decode_cb): Rename op argument to is_cbnz.  Change its type to
6195         int *.
6196         (decode_tb): Rename op argument to is_tbnz.  Change its type to
6197         int *.  Set is_tbnz to either 1 or 0.
6198         (aarch64_analyze_prologue): Change type of is_link to int.  Add
6199         new variables is_cbnz and is_tbnz.  Adjust call to
6200         aarch64_decode_cb and aarch64_decode_tb.
6201
6202 2015-07-29  Simon Marchi  <simon.marchi@ericsson.com>
6203
6204         * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
6205         parameter.
6206         (mips_linux_new_thread): Likewise.
6207         * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
6208
6209 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
6210
6211         * top.c: Include "tui/tui.h".
6212         (undo_terminal_modifications_before_exit): New static function.
6213         (quit_force): Use it.
6214
6215 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
6216
6217         * target.c (terminal_state): Initialize to terminal_is_ours.
6218
6219 2015-07-29  Yao Qi  <yao.qi@linaro.org>
6220
6221         PR record/18691
6222         * dcache.c (dcache_read_memory_partial): Call
6223         raw_memory_xfer_partial.
6224         * target.c (raw_memory_xfer_partial): Make it non-static.
6225         * target.h (raw_memory_xfer_partial): Declare.
6226
6227 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
6228
6229         * c-valprint.c (c_val_print_array): Consider addressable memory
6230         unit size.
6231         (c_val_print_ptr): Likewise.
6232         (c_val_print_int): Likewise.
6233         * findvar.c (read_frame_register_value): Likewise.
6234         * valarith.c (find_size_for_pointer_math): Likewise.
6235         (value_ptrdiff): Likewise.
6236         (value_subscripted_rvalue): Likewise.
6237         * valops.c (read_value_memory): Likewise (and rename variables).
6238         (value_assign): Likewise.
6239         (value_repeat): Likewise.
6240         (value_array): Likewise.
6241         (value_slice): Likewise.
6242         * valprint.c (generic_val_print_ptr): Likewise.
6243         (generic_val_print_enum): Likewise.
6244         (generic_val_print_bool): Likewise.
6245         (generic_val_print_int): Likewise.
6246         (generic_val_print_char): Likewise.
6247         (generic_val_print_float): Likewise.
6248         (generic_val_print_decfloat): Likewise.
6249         (generic_val_print_complex): Likewise.
6250         (val_print_scalar_formatted): Likewise.
6251         (val_print_array_elements): Likewise.
6252         * value.c (set_value_parent): Likewise.
6253         (value_contents_copy_raw): Likewise.
6254         (set_internalvar_component): Likewise.
6255         (value_primitive_field): Likewise.
6256         (value_fetch_lazy): Likewise.
6257         * value.h (read_value_memory): Update comment.
6258
6259 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
6260
6261         * value.c (get_value_arch): New function.
6262         * value.h (get_value_arch): New declaration.
6263
6264 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
6265
6266         * value.c (struct value): Update comments.
6267
6268 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
6269
6270         * gdbtypes.c (type_length_units): New function.
6271         * gdbtypes.h (type_length_units): New declaration.
6272         (struct type) <length>: Update comment.
6273
6274 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6275
6276         * valprint.c (generic_val_print): Factor out complex
6277         printing code to ...
6278         (generic_val_print_complex): ... this new function.
6279
6280 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6281
6282         * valprint.c (generic_val_print): Factor out decfloat
6283         printing code to ...
6284         (generic_val_print_decfloat): ... this new function.
6285
6286 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6287
6288         * valprint.c (generic_val_print): Factor out float
6289         printing code to ...
6290         (generic_val_print_float): ... this new function.
6291
6292 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6293
6294         * valprint.c (generic_val_print): Factor out char
6295         printing code to ...
6296         (generic_val_print_char): ... this new function.
6297
6298 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6299
6300         * valprint.c (generic_val_print): Factor out integer
6301         printing code to ...
6302         (generic_val_print_int): ... this new function.
6303
6304 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6305
6306         * valprint.c (generic_val_print): Factor out bool
6307         printing code to ...
6308         (generic_val_print_bool): ... this new function.
6309
6310 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6311
6312         * valprint.c (generic_val_print): Factor out function/method
6313         printing code to ...
6314         (generic_val_print_func): ... this new function.
6315
6316 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6317
6318         * valprint.c (generic_val_print): Factor out flags
6319         printing code to ...
6320         (generic_val_print_flags): ... this new function.
6321
6322 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6323
6324         * valprint.c (generic_val_print): Factor out enum
6325         printing code to ...
6326         (generic_val_print_enum): ... this new function.
6327
6328 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6329
6330         * valprint.c (generic_val_print): Factor out reference
6331         printing code to ...
6332         (generic_val_print_ref): ... this new function.
6333
6334 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6335
6336         * valprint.c (generic_val_print): Factor out memberptr
6337         printing code to ...
6338         (generic_val_print_memberptr): ... this new function.
6339
6340 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6341
6342         * valprint.c (generic_val_print): Factor out pointer
6343         printing code to ...
6344         (generic_val_print_ptr): ... this new function.
6345
6346 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6347
6348         * valprint.c (generic_val_print): Factor out array
6349         printing code to ...
6350         (generic_val_print_array): ... this new function.
6351
6352 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6353
6354         * valprint.c (generic_val_print): Factor out
6355         print_unpacked_pointer code to ...
6356         (print_unpacked_pointer): ... this new function.
6357
6358 2015-07-27  Patrick Palka  <patrick@parcs.ath.cx>
6359
6360         * event-top.c (handle_sigterm): Don't inspect
6361         target_can_async_p.  Always set the quit flag and always mark
6362         the async signal handler.
6363
6364 2015-07-27  Yao Qi  <yao.qi@linaro.org>
6365
6366         * Makefile.in (REMOTE_EXAMPLES): Remove it.
6367
6368 2015-07-25  Kevin Buettner  <kevinb@redhat.com>
6369
6370         * remote.c (read_ptid): Return null_ptid when no thread id
6371         is found.
6372         (remote_current_thread): Add log warning for malformed
6373         qC reply.
6374         (remote_start_remote): Add log warning when current thread
6375         not found.
6376
6377 2015-07-24  Pedro Alves  <palves@redhat.com>
6378
6379         * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
6380         (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
6381         forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
6382
6383 2015-07-24  Pedro Alves  <palves@redhat.com>
6384
6385         PR gdb/18717
6386         * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
6387         is resumed, and extend the debug log.
6388
6389 2015-07-24  Pedro Alves  <palves@redhat.com>
6390
6391         * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
6392
6393 2015-07-24  Pedro Alves  <palves@redhat.com>
6394
6395         * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
6396         sys/ptrace.h.
6397         * alpha-linux-nat.c: Likewise.
6398         * amd64-linux-nat.c: Likewise.
6399         * arm-linux-nat.c: Likewise.
6400         * hppa-linux-nat.c: Likewise.
6401         * i386-linux-nat.c: Likewise.
6402         * ia64-linux-nat.c: Likewise.
6403         * linux-fork.c: Likewise.
6404         * linux-nat.c: Likewise.
6405         * m32r-linux-nat.c: Likewise.
6406         * m68klinux-nat.c: Likewise.
6407         * mips-linux-nat.c: Likewise.
6408         * nat/linux-btrace.c: Likewise.
6409         * nat/linux-ptrace.c: Likewise.
6410         * nat/linux-ptrace.h
6411         * nat/mips-linux-watch.c: Likewise.
6412         * nat/x86-linux-dregs.c: Likewise.
6413         * ppc-linux-nat.c: Likewise.
6414         * s390-linux-nat.c: Likewise.
6415         * spu-linux-nat.c: Likewise.
6416         * tilegx-linux-nat.c: Likewise.
6417         * x86-linux-nat.c: Likewise.
6418         * xtensa-linux-nat.c: Likewise.
6419
6420 2015-07-24  Pedro Alves  <palves@redhat.com>
6421
6422         * ptrace.m4 (ptrace tests): Test in C++ mode.  Try with 'enum
6423         __ptrace_request as first parameter type instead of int.
6424         (PTRACE_TYPE_ARG1): Define.
6425         * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
6426         that casts first argument to PTRACE_TYPE_ARG1.
6427         * config.in: Regenerate.
6428         * configure: Regenerate.
6429
6430 2015-07-24  Pedro Alves  <palves@redhat.com>
6431
6432         * gdb_ptrace.h: Move ...
6433         * nat/gdb_ptrace.h: ... here.
6434         * inf-ptrace.c: Adjust.
6435
6436 2015-07-24  Pedro Alves  <palves@redhat.com>
6437
6438         * acinclude.m4: Include ptrace.m4.
6439         * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
6440         * ptrace.m4: ... to this new file.
6441
6442 2015-07-23  Doug Evans  <dje@google.com>
6443
6444         * dwarf2read.c (dwarf2_per_cu_data): Add comment.
6445         (load_cu): Handle dummy CUs.
6446         (dw2_do_instantiate_symtab, process_queuef): Ditto.
6447         (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
6448
6449 2015-07-23  Ciro Santilli  <ciro.santilli@gmail.com>  (tiny patch)
6450
6451         * py-linetable.c (ltpy_get_all_source_lines): Adjust function
6452         documentation to say that it returns a list rather than
6453         a FrozenSet.
6454         (linetable_object_methods): Update the docstring of the
6455         "source_line" entry.
6456
6457 2015-07-23  Pierre-Marie de Rodat  <derodat@adacore.com>
6458
6459         * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
6460         type to the recursive call instead of the original (maybe
6461         TYPE_CODE_TYPEDEF) type.
6462
6463 2015-07-23  Yao Qi  <yao.qi@linaro.org>
6464
6465         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
6466         TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
6467         If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
6468
6469 2015-07-21  Yao Qi  <yao.qi@linaro.org>
6470
6471         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
6472         Move it to nat/aarch64-linux-hw-point.c.
6473         (aarch64_linux_child_post_startup_inferior): Update.
6474         * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
6475         New function.
6476         * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
6477         Declare it.
6478
6479 2015-07-21  Markus Metzger  <markus.t.metzger@intel.com>
6480
6481         * common/btrace-common.c (btrace_data_append): Change case label.
6482
6483 2015-07-20  Yao Qi  <yao.qi@linaro.org>
6484
6485         * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
6486         Re-indent the code.
6487         * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
6488         "unsigned long long".
6489
6490 2015-07-18  Kevin Buettner  <kevinb@redhat.com>
6491
6492         * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
6493         to be set for SEC_ALLOC sections too.
6494
6495 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6496
6497         * Makefile.in (HFILES_NO_SRCDIR): Add
6498         nat/aarch64-linux-hw-point.h.
6499         (aarch64-linux-hw-point.o): New rule.
6500         * nat/aarch64-linux-hw-point.h: New file.
6501         * nat/aarch64-linux-hw-point.c: New file.
6502         * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
6503         (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
6504         (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
6505         (AARCH64_HWP_ALIGNMENT): Likewise.
6506         (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
6507         (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
6508         (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
6509         (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
6510         (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
6511         (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
6512         (struct aarch64_debug_reg_state): Likewise.
6513         (struct arch_lwp_info): Likewise.
6514         (aarch64_linux_set_debug_regs): Likewise.
6515         (aarch64_notify_debug_reg_change): Remove static.
6516         (aarch64_align_watchpoint): Likewise.
6517         (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
6518         (aarch64_watchpoint_length): Likewise.
6519         (aarch64_point_encode_ctrl_reg): Likewise
6520         (aarch64_point_is_aligned): Likewise.
6521         (aarch64_dr_state_insert_one_point): Likewise.
6522         (aarch64_dr_state_remove_one_point): Likewise.
6523         (aarch64_handle_breakpoint): Likewise.
6524         (aarch64_handle_aligned_watchpoint): Likewise.
6525         (aarch64_handle_unaligned_watchpoint): Likewise.
6526         (aarch64_handle_watchpoint): Likewise.
6527         * config/aarch64/linux.mh (NAT_FILE): Add
6528         aarch64-linux-hw-point.o.
6529
6530 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6531
6532         * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
6533         state and don't call aarch64_get_debug_reg_state.  All callers
6534         update.
6535         (aarch64_linux_insert_hw_breakpoint): Call
6536         aarch64_get_debug_reg_state earlier.
6537         (aarch64_linux_remove_hw_breakpoint): Likewise.
6538         (aarch64_handle_aligned_watchpoint): Add argument state and
6539         don't call aarch64_get_debug_reg_state.  All callers update.
6540         (aarch64_handle_unaligned_watchpoint): Likewise.
6541         (aarch64_handle_watchpoint): Add argument state.
6542         (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
6543         earlier.
6544         (aarch64_linux_remove_watchpoint): Likewise.
6545
6546 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6547
6548         * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
6549         debug_printf.
6550         (aarch64_handle_unaligned_watchpoint): Likewise.
6551
6552 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6553
6554         * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
6555         argument type's type to 'enum target_hw_bp_type'.
6556         (aarch64_dr_state_remove_one_point): Likewise.
6557         (aarch64_handle_breakpoint): Likewise.
6558         (aarch64_linux_insert_hw_breakpoint): Likewise.
6559         (aarch64_linux_remove_hw_breakpoint): Likewise.
6560         (aarch64_handle_aligned_watchpoint): Likewise.
6561
6562 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6563
6564         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
6565         ptid_get_pid instead of get_thread_id.
6566
6567 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6568
6569         * remote.c (get_current_thread): Initialise ptid to null_ptid.
6570         (add_current_inferior_and_thread): Don't initialise ptid.
6571
6572 2015-07-16  Pierre Langlois  <pierre.langlois@arm.com>
6573
6574         * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
6575         unavailable if invalid.
6576
6577 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6578
6579         Revert the previous 6 commits:
6580         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6581         Move gdb_regex* to common/
6582         Prepare linux_find_memory_regions_full & co. for move
6583         Move linux_find_memory_regions_full & co.
6584         gdbserver build-id attribute generator
6585         Validate symbol file using build-id
6586
6587 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6588             Jan Kratochvil  <jan.kratochvil@redhat.com>
6589
6590         Validate symbol file using build-id.
6591         * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
6592         and 'show validate-build-id'.  Add build-id attribute.
6593         * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
6594         * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
6595         * solib-frv.c (_initialize_frv_solib): Ditto.
6596         * solib-spu.c (set_spu_solib_ops): Ditto.
6597         * solib-svr4.c: Include rsp-low.h.
6598         (NOTE_GNU_BUILD_ID_NAME): New define.
6599         (svr4_validate): New function.
6600         (svr4_copy_library_list): Duplicate field build_id.
6601         (library_list_start_library): Parse 'build-id' attribute.
6602         (svr4_library_attributes): Add 'build-id' attribute.
6603         (_initialize_svr4_solib): Assign validate value.
6604         * solib-target.c (solib.h): Include.
6605         (_initialize_solib_target): Assign validate value.
6606         * solib.c (validate_build_id, show_validate_build_id): New.
6607         (solib_map_sections): Use ops->validate.
6608         (clear_so): Free build_id.
6609         (default_solib_validate): New function.
6610         (_initialize_solib): Add "validate-build-id".
6611         * solib.h (default_solib_validate): New declaration.
6612         * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
6613         (target_so_ops): New field 'validate'.
6614
6615 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6616             Jan Kratochvil  <jan.kratochvil@redhat.com>
6617
6618         gdbserver build-id attribute generator.
6619         * features/library-list-svr4.dtd (library-list-svr4): New
6620         'build-id' attribute.
6621
6622 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6623             Jan Kratochvil  <jan.kratochvil@redhat.com>
6624
6625         Move linux_find_memory_regions_full & co.
6626         * linux-tdep.c (nat/linux-maps.h): Include.
6627         (gdb_regex.h): Remove the include.
6628         (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
6629         (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
6630         (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
6631         (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
6632         * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
6633         and target/target.h.
6634         (struct smaps_vmflags, read_mapping, decode_vmflags)
6635         (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
6636         (linux_find_memory_regions_full): Move from linux-tdep.c.
6637         * nat/linux-maps.h (read_mapping): New declaration.
6638         (linux_find_memory_region_ftype, enum filterflags): Moved from
6639         linux-tdep.c.
6640         (linux_find_memory_regions_full): New declaration.
6641         * target.c (target/target-utils.h): Include.
6642         (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
6643         (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
6644         definitions to target/target-utils.c.
6645         * target.h (target_fileio_read_stralloc): Move it to target/target.h.
6646         * target/target-utils.c (read_alloc, read_stralloc): Move definitions
6647         from target.c.
6648         * target/target-utils.h (read_alloc_pread_ftype): New typedef.
6649         (read_alloc): New declaration.
6650         (read_stralloc_func_ftype): New typedef.
6651         (read_stralloc): New declaration.
6652         * target/target.h (target_fileio_read_stralloc): Move it from target.h.
6653
6654 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6655             Jan Kratochvil  <jan.kratochvil@redhat.com>
6656
6657         Prepare linux_find_memory_regions_full & co. for move.
6658         * linux-tdep.c (linux_find_memory_region_ftype): Comment.
6659         (linux_find_memory_regions_full): Change signature and prepare
6660         for moving to linux-maps.
6661         (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
6662         (linux_find_memory_regions_thunk): New.
6663         (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
6664         (linux_find_memory_regions_gdb): New.
6665         (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
6666         (linux_make_mappings_corefile_notes): Use
6667         linux_find_memory_regions_gdb.
6668         * target.c (read_alloc_pread_ftype): New typedef.
6669         (target_fileio_read_alloc_1_pread): New function.
6670         (read_alloc): Refactor from target_fileio_read_alloc_1.
6671         (read_stralloc_func_ftype): New typedef.
6672         (target_fileio_read_alloc_1): New implementation. Use read_alloc.
6673         (read_stralloc): Refactored from target_fileio_read_stralloc.
6674         (target_fileio_read_stralloc): New implementation, use read_stralloc.
6675
6676 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6677
6678         * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
6679         common/gdb_regex.h.
6680         (COMMON_OBS): Add gdb_regex.o.
6681         (gdb_regex.o): New.
6682         * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
6683         --without-included-regex and USE_INCLUDED_REGEX.
6684         * common/gdb_regex.c: New file from utils.c functions.
6685         * common/gdb_regex.h: Move it here from gdb_regex.h, update include
6686         file wrapping define name.
6687         * configure: Rebuilt.
6688         * configure.ac (gdb_use_included_regex, --without-included-regex)
6689         (USE_INCLUDED_REGEX): Move them to common/common.m4.
6690         * gdb_regex.h: Move it to common/gdb_regex.h.
6691         * utils.c: Remove include gdb_regex.h.
6692         (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
6693         (compile_rx_or_error): Move them to common/gdb_regex.c.
6694
6695 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6696             Jan Kratochvil  <jan.kratochvil@redhat.com>
6697
6698         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6699         * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
6700         common/target-utils.h.
6701         (COMMON_OBS): Add target-utils.o.
6702         (linux-maps.o, target-utils.o): New.
6703         * target/target-utils.c: New file.
6704         * target/target-utils.h: New file.
6705         * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
6706         * config/i386/linux64.mh (NATDEPFILES): Ditto.
6707         * nat/linux-maps.c: New file.
6708         * nat/linux-maps.h: New file.
6709
6710 2015-07-15  Markus Metzger  <markus.t.metzger@intel.com>
6711             Pedro Alves <palves@redhat.com>
6712
6713         * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
6714         (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
6715         (perf_event_read_bts): Change the type of SIZE and READ.
6716         (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
6717         and DATA_OFFSET.  Move DATA_SIZE declaration.  Restrict the buffer size
6718         to UINT_MAX.  Check for overflows when using DATA_HEAD from the perf
6719         mmap page.
6720         (linux_enable_pt): Change the type of PAGES and SIZE.  Restrict the
6721         buffer size to UINT_MAX.
6722         (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
6723         DATA_TAIL.
6724         * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
6725         <last_head>: Change type.
6726         * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
6727         * common/btrace-common.c (btrace_data_append): Change the type of
6728         SIZE.
6729         * btrace.c (parse_xml_raw): Change the type of SIZE.  Change oddness
6730         check.
6731
6732 2015-07-14  Simon Marchi  <simon.marchi@ericsson.com>
6733
6734         * gdbtypes.h (CHECK_TYPEDEF): Remove.
6735         * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
6736         with check_typedef.
6737         * ada-lang.c (decode_constrained_packed_array_type): Likewise.
6738         (ada_array_length): Likewise.
6739         (find_parallel_type_by_descriptive_type): Likewise.
6740         (ada_check_typedef): Likewise.
6741         * arm-tdep.c (arm_return_in_memory): Likewise.
6742         * ax-gdb.c (gen_trace_static_fields): Likewise.
6743         (gen_struct_ref_recursive): Likewise.
6744         * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6745         (variable: block COLONCOLON name): Likewise.
6746         (qualified_name: TYPENAME COLONCOLON name): Likewise.
6747         * c-lang.c (classify_type): Likewise.
6748         * c-typeprint.c (c_print_type): Likewise.
6749         (c_print_typedef): Likewise.
6750         (c_type_print_base): Likewise.
6751         * c-valprint.c (c_val_print): Likewise.
6752         * compile/compile-c-types.c (convert_type): Likewise.
6753         * compile/compile-object-load.c (get_out_value_type): Likewise.
6754         * completer.c (add_struct_fields): Likewise.
6755         (expression_completer): Likewise.
6756         * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
6757         (cp_lookup_nested_symbol_1): Likewise.
6758         (cp_lookup_nested_symbol): Likewise.
6759         * cp-valprint.c (cp_print_value_fields): Likewise.
6760         (cp_print_static_field): Likewise.
6761         * d-valprint.c (d_val_print): Likewise.
6762         * eval.c (evaluate_subexp_standard): Likewise.
6763         (evaluate_subexp_for_sizeof): Likewise.
6764         * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6765         * f-typeprint.c (f_type_print_base): Likewise.
6766         * f-valprint.c (f_val_print): Likewise.
6767         * gdbtypes.c (get_discrete_bounds): Likewise.
6768         (create_array_type_with_stride): Likewise.
6769         (type_name_no_tag_or_error): Likewise.
6770         (lookup_struct_elt_type): Likewise.
6771         (get_unsigned_type_max): Likewise.
6772         (internal_type_vptr_fieldno): Likewise.
6773         (set_type_vptr_fieldno): Likewise.
6774         (internal_type_vptr_basetype): Likewise.
6775         (set_type_vptr_basetype): Likewise.
6776         (get_vptr_fieldno): Likewise.
6777         (is_integral_type): Likewise.
6778         (is_scalar_type): Likewise.
6779         (is_scalar_type_recursive): Likewise.
6780         (distance_to_ancestor): Likewise.
6781         (is_unique_ancestor_worker): Likewise.
6782         (check_types_equal): Likewise.
6783         * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
6784
6785 2015-07-14  Iain Buclaw  <ibuclaw@gdcproject.org>
6786
6787         * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
6788         also test for language_d.
6789         (dwarf2_compute_name): Likewise.
6790         (read_func_scope): Likewise.
6791         (read_structure_type): Likewise.
6792         (new_symbol_full): Likewise.
6793         (determine_prefix): Likewise.
6794         (read_import_statement): Use dot as the separator for language_d.
6795         (typename_concat): Likewise, but don't prefix the D main function.
6796
6797 2015-07-14  Peter Bergner  <bergner@vnet.ibm.com>
6798
6799         * nat/linux-namespaces.c (setns): Rename from this ...
6800         (do_setns): ... to this.  Support calling setns if it exists.
6801         (mnsh_handle_setns): Call do_setns.
6802
6803 2015-07-13  Yao Qi  <yao.qi@linaro.org>
6804
6805         * exec.c (exec_file_attach): Add period at the end of error
6806         message.
6807
6808 2015-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
6809
6810         * tui/tui-win.c (window_name_completer): New function.
6811         (focus_completer): Call window_name_completer.  All old content
6812         moved into window_name_completer.
6813         (winheight_completer): New function.
6814         (_initialize_tui_win): Rename variable.  Add completer to
6815         winheight command.  Update doc string on winheight.
6816
6817 2015-07-12  Sandra Loosemore  <sandra@codesourcery.com>
6818
6819         * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
6820         all nios2 mach variants.
6821
6822 2015-07-10  Kevin Buettner  <kevinb@redhat.com>
6823
6824         * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
6825         of target_read_memory.
6826
6827 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6828
6829         * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
6830         string copy.
6831         (parse_scrolling_args): Likewise.
6832
6833 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6834
6835         * tui/tui-win.c (focus_completer): Don't duplicate the tui window
6836         names in this function.
6837
6838 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6839
6840         * tui/tui-data.h (SRC_NAME): Convert to lower case.
6841         (CMD_NAME): Likewise.
6842         (DATA_NAME): Likewise.
6843         (DISASSEM_NAME): Likewise.
6844         * tui/tui-win.c (tui_set_focus): Window names are now lower case.
6845         (tui_set_win_height): Likewise.
6846         (parse_scrolling_args): Likewise.
6847
6848 2015-07-10  Markus Metzger  <markus.t.metzger@intel.com>
6849
6850         * record-btrace.c (record_btrace_goto_begin)
6851         (record_btrace_goto_end, record_btrace_goto): Move call to
6852         print_stack_frame ...
6853         (record_btrace_set_replay): ... here.  Set stop_pc.
6854         * record-full.c (record_full_goto_entry): Set stop_pc.
6855
6856 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6857
6858         * NEWS: Mention support for tracepoints on aarch64-linux.
6859
6860 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6861
6862         * linux-aarch64-low.c (aarch64_supports_tracepoints): New
6863         function.  Return 1.
6864         (the_low_target): Install it.
6865
6866 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6867
6868         * gdb.trace/backtrace.exp: Set registers for aarch64 target.
6869         * gdb.trace/collection.exp: Likewise.
6870         * gdb.trace/mi-trace-frame-collected.exp: Likewise.
6871         * gdb.trace/mi-trace-unavailable.exp: Likewise.
6872         * gdb.trace/report.exp: Likewise.
6873         * gdb.trace/trace-break.exp: Likewise.
6874         * gdb.trace/unavailable.exp: Likewise.
6875         * gdb.trace/while-dyn.exp: Likewise.
6876
6877 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6878
6879         * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
6880         (aarch64_gen_return_address): New function.
6881         (aarch64_gdbarch_init): Hook it.
6882
6883 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6884
6885         * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
6886         swallow NOT_AVAILABLE_ERROR.
6887         (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
6888         available_p is not set.
6889         (aarch64_stub_frame_unwind_stop_reason): New function.
6890         (aarch64_stub_unwind): Install it.
6891
6892 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6893
6894         * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6895         field.
6896         (aarch64_make_prologue_cache_1): New function, factored out from
6897         aarch64_make_prologue_cache.  Do not allocate cache.  Set
6898         available_p.
6899         (aarch64_make_prologue_cache): Reimplement wrapping
6900         aarch64_make_prologue_cache_1, and swallowing
6901         NOT_AVAILABLE_ERROR.
6902         (aarch64_prologue_frame_unwind_stop_reason): New function.
6903         Return UNWIND_UNAVAILABLE if available_p is not set.
6904         (aarch64_prologue_unwind): Install it.
6905         (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6906         checks into aarch64_prologue_frame_unwind_stop_reason.  Call
6907         frame_id_build_unavailable_stack if available_p is not set.
6908
6909 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6910
6911         * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6912         fields.
6913         (aarch64_scan_prologue): Set prev_pc.
6914         (aarch64_make_prologue_cache): Set func.
6915         (aarch64_make_stub_cache): Set prev_pc.
6916         (aarch64_prologue_this_id): Remove local variables id, pc and
6917         func.  Read prev_pc and func from cache.
6918         (aarch64_stub_this_id): Read prev_pc from cache.
6919
6920 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6921
6922         * aarch64-tdep.c (aarch64_make_stub_cache): Update comment.  New
6923         argument this_cache.  Remove unused local variables reg and
6924         unwound_fp.  Return early if this_cache is already set.  Set
6925         this_cache.
6926         (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6927
6928 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6929
6930         * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6931         New argument this_cache.  Return early if this_cache is already
6932         set.  Set this_cache.
6933         (aarch64_prologue_this_id): Update call to
6934         aarch64_make_prologue_cache.
6935         (aarch64_prologue_prev_register): Likewise.
6936         (aarch64_normal_frame_base): Likewise.
6937
6938 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6939
6940         * c-valprint.c (c_val_print): Factor out memberptr printing code
6941         from c_val_print to ...
6942         (c_val_print_memberptr): ... this new function.
6943
6944 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6945
6946         * c-valprint.c (c_val_print): Factor out int printing code to ...
6947         (c_val_print_int): ... this new function.
6948
6949 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6950
6951         * c-valprint.c (c_val_print): Factor out struct and union
6952         printing code to ...
6953         (c_val_print_struct): ... this new function ...
6954         (c_val_print_union): ... and this new function.
6955
6956 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6957
6958         * c-valprint.c (c_val_print): Factor out pointer printing code
6959         to ...
6960         (c_val_print_ptr): ... this new function.
6961
6962 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6963
6964         * c-valprint.c (c_valprint): Factor our array printing code from
6965         c_val_print to ...
6966         (c_val_print_array): ... this new function.
6967
6968 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6969
6970         * c-valprint.c (c_val_print): Factor out pointer printing code
6971         to ...
6972         (print_unpacked_pointer): ... this new function.
6973
6974 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6975
6976         * c-valprint.c (c_val_print): Remove an assignment to i and move
6977         its declaration.
6978
6979 2015-07-09  Yao Qi  <yao.qi@linaro.org>
6980
6981         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6982         argument ptid.  Update comments.  Caller update.
6983
6984 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
6985
6986         * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6987         mnt packets.
6988
6989 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
6990
6991         * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6992
6993 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
6994
6995         * progspace.c (delete_program_space): Add missing spaces.
6996
6997 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
6998
6999         * inferior.c (delete_inferior_1): Rename to ...
7000         (delete_inferior): ..., remove 'silent' parameter, delete
7001         program space when unused and remove call to prune_program_spaces.
7002         Remove the old, unused, delete_inferior.
7003         (delete_inferior_silent): Remove.
7004         (prune_inferiors): Change call from delete_inferior_1 to
7005         delete_inferior and remove 'silent' parameter. Remove call to
7006         prune_program_spaces.
7007         (remove_inferior_command): Idem.
7008         * inferior.h (delete_inferior_1): Rename to...
7009         (delete_inferior): ..., remove 'silent' parameter and remove the
7010         original delete_inferior.
7011         (delete_inferior_silent): Remove.
7012         * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
7013         delete_inferior_1 to delete_inferior and remove 'silent'
7014         parameter.
7015         * progspace.c (prune_program_spaces): Remove.
7016         (pspace_empty_p): Rename to...
7017         (program_space_empty_p): ... and make non-static.
7018         (delete_program_space): New.
7019         * progspace.h (prune_program_spaces): Remove declaration.
7020         (program_space_empty_p): New declaration.
7021         (delete_program_space): New declaration.
7022         * monitor.c (monitor_close): Replace call to
7023         delete_thread_silent and delete_inferior_silent with
7024         discard_all_inferiors.
7025
7026 2015-07-08  Patrick Palka  <patrick@parcs.ath.cx>
7027
7028         * defs.h (deprecated_register_changed_hook): Remove prototype.
7029         * interps.c (clear_iterpreter_hooks): Remove reference to
7030         deprecated_register_changed_hook.
7031         * top.c (deprecated_register_changed_hook): Remove prototype.
7032         * valops.c (value_assign): Remove reference to
7033         deprecated_register_changed_hook.
7034         * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
7035         Add comment documenting the function.
7036         (tui_register_changed_observer): Define.
7037         (tui_install_hooks): Remove reference to
7038         deprecated_register_changed_hook.  Set
7039         tui_register_changed_observer.
7040         (tui_remove_hooks): Remove reference to
7041         deprecated_register_changed_hook.  Unset
7042         tui_register_changed_observer.
7043
7044 2015-07-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
7045
7046         PR compile/18484
7047         * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
7048
7049 2015-07-08  Robert O'Callahan  <robert@ocallahan.org>
7050
7051         PR exp/18617
7052         * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
7053
7054 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
7055
7056         * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
7057
7058 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
7059
7060         * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
7061         Use safe_strerror() instead of strerror().
7062
7063 2015-07-07  Yao Qi  <yao.qi@linaro.org>
7064
7065         * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
7066         * features/arm-with-m-fpa-layout.c: Regenerated.
7067         * features/arm-with-m-vfp-d16.xml: Likewise.
7068         * features/arm-with-m-vfp-d16.c: Regenerated.
7069         * features/arm-with-m.xml: Likewise.
7070         * features/arm-with-m.c: Regenerated.
7071         * features/arm-with-neon.xml: Likewise.
7072         * features/arm-with-neon.c: Regenerated.
7073         * features/arm-with-vfpv2.xml: Likewise.
7074         * features/arm-with-vfpv2.c: Regenerated.
7075         * features/arm-with-vfpv3.xml: Likewise.
7076         * features/arm-with-vfpv3.c: Regenerated.
7077
7078 2015-07-07  Yao Qi  <yao.qi@linaro.org>
7079
7080         * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
7081         arm-linux-nat.c.
7082         * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
7083         elf/external.h.
7084         (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
7085         if target is 32-bit.
7086         (store_gregs_to_thread): Call aarch32_gp_regcache_collect
7087         if target is 32-bit.
7088         (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
7089         if target is 32-bit.
7090         (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
7091         if target is 32-bit.
7092         (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
7093         (aarch64_linux_read_description): Return the right target
7094         description.
7095         * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
7096         * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
7097         * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
7098         arm-linux-tdep.o.
7099
7100 2015-07-07  Yao Qi  <yao.qi@linaro.org>
7101
7102         * aarch32-linux-nat.c: New file.
7103         * aarch32-linux-nat.h: New file.
7104         * arm-linux-nat.c: Include aarch32-linux-nat.h.
7105         (fetch_regs): Move code to aarch32-linux-nat.c.  Call
7106         aarch32_gp_regcache_supply.
7107         (store_regs): Move code to aarch32-linux-nat.c.  Call
7108         aarch32_gp_regcache_collect.
7109         (fetch_vfp_regs): Move code to aarch32-linux-nat.c.  Call
7110         aarch32_vfp_regcache_supply.
7111         (store_vfp_regs): Move code to aarch32-linux-nat.c.  Call
7112         aarch32_vfp_regcache_collect.
7113         * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
7114
7115 2015-07-07  Yao Qi  <yao.qi@linaro.org>
7116
7117         * arm-linux-nat.c (store_fpregister): Remove.
7118         (store_register): Likewise.
7119         (fetch_fpregister): Likewise.
7120         (fetch_register): Likewise.
7121         (arm_linux_store_inferior_registers): Call store_regs and
7122         store_fpregs instead.
7123         (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
7124         fetch_regs instead.
7125
7126 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
7127
7128         * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
7129         and focus commands.
7130
7131 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
7132
7133         * NEWS: Create a new section for the next release branch.
7134         Rename the section of the current branch, now that it has
7135         been cut.
7136
7137 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
7138
7139         GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
7140         * version.in: Bump version to 7.10.50.DATE-cvs.
7141
7142 2015-07-06  Luis Machado  <lgustavo@codesourcery.com>
7143
7144         * breakpoint.c (remove_breakpoint_1): Don't handle permanent
7145         breakpoints in a special way.
7146         (remove_breakpoint): Likewise.
7147         (mark_breakpoints_out): Likewise.
7148
7149 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
7150
7151         * doc/gdb.texinfo (TUI): Add comma after @xref.
7152
7153 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
7154
7155         * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
7156         instead of casting the structure type.
7157
7158 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
7159
7160         * valops.c (search_struct_field): Remove OFFSET parameter.
7161         (value_cast_structs): Adjust calls to search_struct_field.
7162         (value_struct_elt): Same.
7163         (find_overload_match): Same.
7164
7165 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
7166
7167         * value.c (value_fetch_lazy): Update comment, change return
7168         value to void.
7169         * value.h (value_fetch_lazy): Change return value to void.
7170
7171 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
7172
7173         * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
7174         (tui_win_name): Make parameter and result const.
7175         * tui/tui-data.h (tui_win_name): Make parameter and result const.
7176
7177 2015-07-06  Patrick Palka  <patrick@parcs.ath.cx>
7178
7179         * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
7180         use printf_unfiltered.
7181         (set_mpx_cmd): Add missing trailing space to command string
7182         literal.
7183         (_initialize_i386_tdep): Give the "mpx" prefix command its
7184         correct name.
7185
7186 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
7187
7188         * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
7189         (enum rx_frame_type): New.
7190         (struct rx_prologue): Add new field `frame_type'.
7191         (rx_analyze_prologue): Add `frame_type' parameter. Cache this
7192         parameter in the prologue struct.  Add code for recording
7193         locations of PC and PSW for fast interrupt and exception frames.
7194         (rx_skip_prologue): Adjust call to rx_analyze_prologue.
7195         (rx_analyze_frame_prologue): Add `frame_type' parameter.
7196         (rx_frame_type): New function.
7197         (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
7198         (rx_frame_this_id): Rename parameter `this_prologue_cache' to
7199         `this_cache'.
7200         (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
7201         `this_cache'.  Add cases for RX_FRAME_TYPE_EXCEPTION and
7202         RX_FRAME_TYPE_FAST_INTERRUPT.
7203         (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
7204         (rx_frame_sniffer, rx_exception_sniffer): New functions.
7205         (rx_frame_unwind): Use rx_frame_sniffer instead of
7206         default_frame_sniffer.
7207         (rx_frame_unwind): New unwinder.
7208         (rx_gdbarch_init): Register new unwinder.
7209
7210 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
7211
7212         * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
7213         (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
7214         (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
7215         and RX_FPSW_REGNUM.
7216         (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
7217
7218 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7219
7220         Fix GCC false warning.
7221         * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
7222
7223 2015-07-02  Yao Qi  <yao.qi@linaro.org>
7224
7225         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
7226         typo in the debugging message.
7227
7228 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
7229
7230         * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
7231         (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
7232         (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
7233         (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
7234         (btrace_maint_clear): New.
7235         (btrace_fetch, btrace_clear): Call btrace_maint_clear.
7236         (pt_print_packet, btrace_maint_decode_pt)
7237         (btrace_maint_update_pt_packets, btrace_maint_update_packets)
7238         (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
7239         (maint_btrace_packet_history_cmd)
7240         (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
7241         (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
7242         (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
7243         (maint_info_btrace_cmd, _initialize_btrace): New.
7244         * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
7245         (btrace_maint_packet_history, btrace_maint_info): New.
7246         (btrace_thread_info) <maint>: New.
7247         * NEWS: Announce it.
7248
7249 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
7250
7251         * btrace.c (btrace_fetch): Append the new trace data.
7252         (btrace_clear): Clear the stored trace data.
7253         * btrace.h (btrace_thread_info) <data>: New.
7254         * common/btrace-common.h (btrace_data_clear)
7255         (btrace_data_append): New.
7256         * common/btrace-common.c (btrace_data_clear)
7257         (btrace_data_append): New.
7258
7259 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
7260
7261         * nat/linux-btrace.c (linux_enable_bts): Check for
7262         PERF_ATTR_SIZE_VER5.
7263         Check for data_offset and data_size fields.  Use them.
7264
7265 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
7266
7267         * NEWS: Announce new commands "record btrace pt" and "record pt".
7268         Announce new options "set|show record btrace pt buffer-size".
7269         * btrace.c: Include "rsp-low.h".
7270         Include "inttypes.h".
7271         (btrace_add_pc): Add forward declaration.
7272         (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
7273         (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
7274         (btrace_compute_ftrace_pt): New.
7275         (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
7276         (check_xml_btrace_version): Update version check.
7277         (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
7278         (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
7279         (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
7280         (btrace_pt_children): New.
7281         (btrace_children): Add support for "pt".
7282         (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
7283         (btrace_conf_children): Add support for "pt".
7284         * btrace.h: Include "intel-pt.h".
7285         (btrace_pt_error): New.
7286         * common/btrace-common.c (btrace_format_string, btrace_data_fini)
7287         (btrace_data_empty): Support BTRACE_FORMAT_PT.
7288         * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
7289         (struct btrace_config_pt): New.
7290         (struct btrace_config)<pt>: New.
7291         (struct btrace_data_pt_config, struct btrace_data_pt): New.
7292         (struct btrace_data)<pt>: New.
7293         * features/btrace-conf.dtd (btrace-conf)<pt>: New.
7294         (pt): New.
7295         * features/btrace.dtd (btrace)<pt>: New.
7296         (pt, pt-config, cpu): New.
7297         * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
7298         (perf_event_pt_event_type, kernel_supports_pt)
7299         (linux_supports_pt): New.
7300         (linux_supports_btrace): Support BTRACE_FORMAT_PT.
7301         (linux_enable_bts): Free tinfo on error.
7302         (linux_enable_pt): New.
7303         (linux_enable_btrace): Support BTRACE_FORMAT_PT.
7304         (linux_disable_pt): New.
7305         (linux_disable_btrace): Support BTRACE_FORMAT_PT.
7306         (linux_fill_btrace_pt_config, linux_read_pt): New.
7307         (linux_read_btrace): Support BTRACE_FORMAT_PT.
7308         * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
7309         (struct btrace_target_info)<pt>: New.
7310         * record-btrace.c (set_record_btrace_pt_cmdlist)
7311         (show_record_btrace_pt_cmdlist): New.
7312         (record_btrace_print_pt_conf): New.
7313         (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
7314         (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
7315         (cmd_record_btrace_pt_start): New.
7316         (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
7317         (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
7318         (_initialize_record_btrace): Add new commands.
7319         * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
7320         (remote_protocol_features): Add "Qbtrace:pt".
7321         Add "Qbtrace-conf:pt:size".
7322         (remote_supports_btrace): Support BTRACE_FORMAT_PT.
7323         (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
7324         (remote_enable_btrace): Support BTRACE_FORMAT_PT.
7325         (_initialize_remote): Add new commands.
7326
7327 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
7328
7329         * configure.ac: check for libipt
7330         * configure: Regenerate.
7331         * config.in: Regenerate.
7332         * Makefile.in (LIBIPT): New.
7333         (CLIBS): Add $LIBIPT.
7334         * NEWS: document new configure options
7335
7336 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7337
7338         * compile/compile-object-load.c (compile_object_load): Replace debug
7339         message "lookup undefined ELF symbol" by 3 more specific messages.
7340
7341 2015-07-01  Kevin Buettner  <kevinb@redhat.com>
7342
7343         * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
7344         (rl78_register_type): Add case for RL78_PSW_REGNUM.
7345         (rl78_gdbarch_init): Initialize rl78_psw_type.
7346
7347 2015-07-01  Patrick Palka  <patrick@parcs.ath.cx>
7348
7349         * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
7350         Update commentary.  Always refresh the registers when frame
7351         information has changed.
7352         * tui/tui-stack.c (tui_show_frame_info): Update commentary.
7353         Change return type to int.  Return 1 if frame information has
7354         changed, 0 otherwise.
7355         (tui_before_prompt): Update commentary.
7356         * tui/tui-stack.h (tui_show_frame_info): Change return type to
7357         int.
7358
7359 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
7360
7361         PR tui/13378
7362         * frame.c (select_frame): Remove reference to
7363         deprecated_selected_frame_level_changed_hook.
7364         * frame.h (deprecated_selected_frame_level_changed_hook): Remove
7365         declaration.
7366         * stack.c (deprecated_selected_frame_level_changed_hook):
7367         Likewise.
7368         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
7369         Rename to ...
7370         (tui_refresh_frame_and_register_information): ... this.  Bail
7371         out if there is no stack.  Don't update register information
7372         unless registers_too_p is true.
7373         (tui_print_frame_info_listing_hook): Rename to ...
7374         (tui_dummy_print_frame_info_listing_hook): ... this.
7375         (tui_before_prompt): New function.
7376         (tui_normal_stop): New function.
7377         (tui_before_prompt_observer): New observer.
7378         (tui_normal_stop_observer): New observer.
7379         (tui_install_hooks): Set
7380         deprecated_print_frame_info_listing_hook to
7381         tui_dummy_print_frame_info_listing_hook.  Register
7382         tui_before_prompt_observer to call tui_before_prompt and
7383         tui_normal_stop_observer to call tui_normal_stop.  Remove
7384         reference to deprecated_selected_frame_level_changed_hook.
7385         (tui_remove_hooks): Detach and unset tui_before_prompt_observer
7386         and tui_normal_stop_observer.  Remove reference to
7387         deprecated_selected_frame_level_changed_hook.
7388
7389 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
7390
7391         PR tui/13378
7392         * tui/tui-stack.c (tui_set_locator_info): Change prototype to
7393         return an int instead of void.  Return whether the locator
7394         window has changed.
7395         (tui_show_frame_info): If the locator info has not changed, then
7396         bail out early to avoid refreshing the windows.
7397
7398 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
7399
7400         * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
7401         LOCATOR_WIN to tui_alloc_content.
7402
7403 2015-06-30  Yao Qi  <yao.qi@linaro.org>
7404
7405         PR tdep/18605
7406         * arm-tdep.c (arm_get_next_pc_raw): Break for media
7407         instructions.
7408
7409 2015-06-29  Kevin Buettner  <kevinb@redhat.com>
7410
7411         * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
7412         (rx_dwarf_reg_to_regnum): New function.
7413         (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum.  Use dwarf2
7414         unwinding.
7415
7416 2015-06-29  Pedro Alves  <palves@redhat.com>
7417
7418         PR threads/18127
7419         * infcall.c (run_inferior_call): On infcall success, if the thread
7420         was marked stopped before, reset it back to stopped.
7421         * infrun.c (resume): Don't suppress the set_running calls when
7422         doing an infcall.
7423         (normal_stop): Only discard the finish_thread_state cleanup if the
7424         infcall succeeded.
7425
7426 2015-06-29  Pierre Langlois  <pierre.langlois@arm.com>
7427
7428         * MAINTAINERS (Write After Approval): Update my email address.
7429
7430 2015-06-26  Keith Seitz  <keiths@redhat.com>
7431             Doug Evans  <dje@google.com>
7432
7433         PR 16253
7434         * block.c (block_lookup_symbol): For non-function blocks,
7435         continue to search for a symbol with an exact domain match
7436         Otherwise, return any previously found "best domain" symbol.
7437         (block_lookup_symbol_primary): Likewise.
7438
7439 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
7440
7441         * NEWS: Mention the new option "history remove-duplicates".
7442         * top.c (history_remove_duplicates): New static variable.
7443         (show_history_remove_duplicates): New static function.
7444         (gdb_add_history): Conditionally remove duplicate history
7445         entries.
7446         (init_main): Add "history remove-duplicates" option.
7447
7448 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
7449
7450         * tui/tui-win.c (focus_completer): New static function.
7451         (_initialize_tui_win): Set the completion function of the
7452         "focus" command to focus_completer.
7453
7454 2015-06-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
7455
7456         * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
7457         and language_asm..
7458         * symtab.c (find_function_start_sal): Likewise.
7459
7460 2015-06-25  Gary Benson  <gbenson@redhat.com>
7461
7462         * solib.c (solib_find_1): Set local variable sysroot to NULL if
7463         it is the empty string after trailing slashes have been stripped.
7464
7465 2015-06-25  Gary Benson  <gbenson@redhat.com>
7466
7467         * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
7468         * infrun.c (follow_exec): Likewise.
7469         * remote.c (remote_filesystem_is_local): Likewise.
7470         * solib.c (solib_find_1): Likewise.
7471
7472 2015-06-24  Keith Seitz  <keiths@redhat.com>
7473
7474         * build-id.c (build_id_to_debug_bfd): Add cleanup to free
7475         return value from lrealpath.
7476
7477 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
7478
7479         * remote-sim.c (gdbsim_open): Move sysroot update to the top.
7480
7481 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
7482
7483         * remote-sim.c: Include gdb_bfd.h.
7484         (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
7485         Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
7486
7487 2015-06-24  Yao Qi  <yao.qi@linaro.org>
7488
7489         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
7490         set_gdbarch_get_siginfo_type.
7491         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
7492         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
7493         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
7494         * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
7495         * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
7496         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7497         * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
7498         * linux-tdep.c (linux_get_siginfo_type): Change it to static.
7499         (linux_init_abi): Call set_gdbarch_get_siginfo_type.
7500         * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
7501
7502 2015-06-24  Gary Benson  <gbenson@redhat.com>
7503
7504         * common/buffer.c (stdint.h): Do not include.
7505         * common/print-utils.c (stdint.h): Likewise.
7506         * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
7507         * compile/compile-c-types.c (gdb_assert.h): Likewise.
7508         * ft32-tdep.c (gdb_assert.h): Likewise.
7509         * guile/scm-utils.c (stdint.h): Likewise.
7510         * i386-linux-tdep.c (stdint.h): Likewise.
7511         * i386-tdep.c (stdint.h): Likewise.
7512         * nat/linux-btrace.c (stdint.h): Likewise.
7513         * nat/linux-btrace.h (stdint.h): Likewise.
7514         * nat/linux-ptrace.c (stdint.h): Likewise.
7515         * nat/mips-linux-watch.h (stdint.h): Likewise.
7516         * ppc-linux-nat.c (stdint.h): Likewise.
7517         * python/python-internal.h (stdint.h): Likewise.
7518         * stub-termcap.c (stdlib.h): Likewise.
7519         * target/target.h (stdint.h): Likewise.
7520         * xtensa-linux-nat.c (stdint.h): Likewise.
7521
7522 2015-06-23  Patrick Palka  <patrick@parcs.ath.cx>
7523
7524         * top.c (init_history): Look at errno after calling strtol to
7525         properly map large GDBHISTSIZE values to infinity.
7526
7527 2015-06-23  Doug Evans  <dje@google.com>
7528
7529         * inferior.h (struct inferior_suspend_state): Delete, unused.
7530         All references deleted.
7531
7532 2015-06-23  Mike Frysinger  <vapier@gentoo.org>
7533
7534         * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
7535         (microblaze_push_dummy_call): Likewise.
7536         (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
7537         and set_gdbarch_push_dummy_call.
7538
7539 2015-06-23  Yao Qi  <yao.qi@linaro.org>
7540
7541         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
7542         Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
7543         (amd64_linux_store_inferior_registers): Likewise.
7544         * arm-linux-nat.c (fetch_fpregister): Likewise.
7545         (fetch_fpregs, store_fpregister): Likewise.
7546         (store_fpregister, store_fpregs): Likewise.
7547         (fetch_register, fetch_regs): Likewise.
7548         (store_register, store_regs): Likewise.
7549         (fetch_vfp_regs, store_vfp_regs): Likewise.
7550         (arm_linux_read_description): Check have_ptrace_getregset is
7551         TRIBOOL_UNKNOWN.  Set have_ptrace_getregset to TRIBOOL_TRUE
7552         or TRIBOOL_FALSE.
7553         * i386-linux-nat.c (fetch_xstateregs): Check
7554         have_ptrace_getregset is not TRIBOOL_TRUE.
7555         (store_xstateregs): Likewise.
7556         * linux-nat.c (have_ptrace_getregset): Change its type to
7557         enum tribool.
7558         * linux-nat.h (tribool): New enum.
7559         * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
7560         Check whether have_ptrace_getregset is TRIBOOL_TRUE.
7561
7562 2015-06-19  Doug Evans  <dje@google.com>
7563
7564         * NEWS: Mention Sun's version of stabs is no longer supported.
7565         * elfread.c (free_elfinfo): Delete.  All uses updated.
7566         (elfstab_offset_sections): Delete.  All uses updated.
7567         * gdb-stabs.h (stab_section_info): Delete.  All uses updated.
7568         * psympriv.h (partial_symtab) <section_offsets>: Delete.
7569         All uses updated.
7570         * psymtab.c (start_psymtab_common): Delete arg section_offsets.
7571         All callers updated.
7572
7573 2015-06-18  Simon Marchi  <simon.marchi@ericsson.com>
7574
7575         * common/rsp-low.c (needs_escaping): New.
7576         (remote_escape_output): Add unit_size parameter. Refactor to
7577         support multi-byte addressable units.  Rename parameters.
7578         * common/rsp-low.h (remote_escape_output): Add unit_size
7579         parameter and rename others. Update doc.
7580         * remote.c (align_for_efficient_write): New.
7581         (remote_write_bytes_aux): Add unit_size parameter and use it.
7582         Rename some variables.  Update doc.
7583         (remote_xfer_partial): Get unit size and use it.
7584         (remote_read_bytes_1): Add unit_size parameter and use it.
7585         Rename some variables. Update doc.
7586         (remote_write_bytes): Same.
7587         (remote_xfer_live_readonly_partial): Same.
7588         (remote_read_bytes): Same.
7589         (remote_flash_write): Update call to remote_write_bytes_aux.
7590         (remote_write_qxfer): Update call to remote_escape_output.
7591         (remote_search_memory): Same.
7592         (remote_hostio_pwrite): Same.
7593
7594 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
7595
7596         * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
7597         locations as inserted.
7598         Update and expand comment about permanent locations.
7599         (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
7600         Move comment to add_location_to_breakpoint.
7601         (update_global_location_list): Don't error out if a permanent
7602         breakpoint is not marked inserted.
7603         Don't error out if a non-permanent breakpoint location is inserted on
7604         top of a permanent breakpoint.
7605
7606 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
7607
7608         * breakpoint.c (make_breakpoint_permanent): Remove unused
7609         function.
7610         * breakpoint.h (make_breakpoint_permanent): Remove declaration.
7611
7612 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
7613
7614         PR gdb/16999
7615         * NEWS: Mention new GDBHISTSIZE behavior.
7616         * top.c (init_history): For null or out-of-range GDBHISTSIZE,
7617         set history size to unlimited.  Ignore non-numeric GDBHISTSIZE.
7618
7619 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
7620
7621         * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
7622         * top.c (init_history): Read from GDBHISTSIZE instead of
7623         HISTSIZE.
7624         (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
7625
7626 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
7627
7628         * top.c (gdb_safe_append_history): Do not call
7629         history_truncate_file if the history is not stifled.
7630
7631 2015-06-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7632
7633         * syscalls/s390-linux.xml: Add syscalls 344 through 354.
7634         * syscalls/s390x-linux.xml: Likewise.
7635
7636 2015-06-16  Michael Eager  <eager@eagercon.com>
7637
7638         * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
7639
7640 2015-06-16  Patrick Palka  <patrick@parcs.ath.cx>
7641
7642         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
7643         target_terminal_ours_for_output() before calling
7644         tui_show_frame_info(), and restore the original terminal
7645         settings afterwards.
7646
7647 2015-06-16  Martin Simmons  <martin@lispworks.com>  (tiny patch)
7648
7649         * arm-linux-nat.c: Include nat/linux-ptrace.h.
7650
7651 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
7652
7653         * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
7654         memory unit size.
7655         (mi_cmd_data_write_memory_bytes): Same.
7656
7657 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
7658
7659         * corefile.c (write_memory): Update doc.
7660         * gdbcore.h (write_memory): Same.
7661
7662 2015-06-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
7663
7664         * linux-tdep.c (enum filterflags): Make it from anonymous enum.
7665         (dump_mapping_p): Use it for parameter filterflags.
7666         (linux_find_memory_regions_full): Use it for variable filterflags.
7667
7668 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
7669             Jan Kratochvil  <jan.kratochvil@redhat.com>
7670
7671         Merge multiple hex conversions.
7672         * monitor.c: Include rsp-low.h.
7673         (fromhex): Remove definition.
7674
7675 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
7676             Jan Kratochvil  <jan.kratochvil@redhat.com>
7677
7678         Move utility functions to common/.
7679         * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
7680         Move defs to common/common-utils.c.
7681         * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
7682         (skip_to_space_const): Move decls to common/common-utils.h.
7683         * common/common-defs.h: Move include of common-types.h before
7684         common-utils.h.
7685         * common/common-utils.c: Include host-defs.h and ctype.h.
7686         (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
7687         from utils.c.
7688         (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
7689         cli/cli-utils.c.
7690         * common/common-utils.h (strtoulst): Move decl from utils.h.
7691         (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
7692         Move from cli/cli-utils.h.
7693         * common/host-defs.h: Include limits.h.
7694         (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
7695         (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
7696         * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
7697         common/common-utils.h.
7698         * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
7699         (strtoulst): Move to common/common-utils.c.
7700         * utils.h (strtoulst): Moved decl to common/common-utils.h.
7701
7702 2015-06-15  Yao Qi  <yao.qi@linaro.org>
7703
7704         * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
7705
7706 2015-06-10  Jon Turney  <jon.turney@dronecode.org.uk>
7707
7708         * build-id.c: Don't include elf-bfd.h.
7709         (build_id_bfd_get): Use bfd_build_id.
7710         (build_id_verify): Ditto.
7711         * build-id.h: Ditto.
7712         (find_separate_debug_file_by_buildid): Ditto.
7713         * python/py-objfile.c: Don't include elf-bfd.h.
7714         (objfpy_get_build_id) Use bfd_build_id.
7715         (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
7716         * coffread.c: Include build-id.h.
7717         (coff_symfile_read): Try find_separate_debug_file_by_buildid.
7718
7719 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7720
7721         * windows-nat.c (do_windows_fetch_inferior_registers)
7722         (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
7723         conditional with __CYGWIN__.
7724
7725 2015-06-13  Andrew Burgess  <andrew.burgess@embecosm.com>
7726
7727         * completer.c: Add arch-utils.h include.
7728         (enum reg_completer_targets): New enum.
7729         (reg_or_group_completer_1): New function containing old
7730         reg_or_group_completer, add and use new parameter to control what
7731         is completed on.  Use get_current_arch rather than architecture of
7732         currently selected frame.
7733         (reg_or_group_completer): Call new reg_or_group_completer_1.
7734         (reggroup_completer): Call new reg_or_group_completer_1.
7735         * completer.h (reggroup_completer): Add declaration.
7736         * tui/tui-regs.c: Add 'completer.h' include.
7737         (tui_reg_next_command): Renamed to...
7738         (tui_reg_next): ...this.  Adjust parameters and return rather than
7739         display new group.
7740         (tui_reg_prev_command): Renamed to...
7741         (tui_reg_prev): ...this.  Adjust parameters and return rather than
7742         display new group.
7743         (tui_reg_float_command): Delete.
7744         (tui_reg_general_command): Delete.
7745         (tui_reg_system_command): Delete.
7746         (tui_reg_command): Rewrite to perform switching of register group.
7747         Add header comment.
7748         (tuireglist): Remove.
7749         (tui_reggroup_completer): New function.
7750         (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
7751         creation of 'tui reg' command.
7752         * NEWS: Add comment about 'tui reg' changes.
7753
7754 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7755
7756         * target.c (target_read): Consider addressable unit size when
7757         reading from a memory object.
7758         (read_memory_robust): Same.
7759         (read_whatever_is_readable): Same.
7760         (target_write_with_progress): Consider addressable unit size
7761         when writing to a memory object.
7762         * target.h (target_read): Update documentation.
7763         (target_write): Add documentation.
7764
7765 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7766
7767         * arch-utils.h (default_addressable_memory_unit_size): New.
7768         * arch-utils.c (default_addressable_memory_unit_size): New.
7769         * gdbarch.sh (addressable_memory_unit_size): New.
7770         * gdbarch.h: Re-generate.
7771         * gdbarch.c: Re-generate.
7772
7773 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7774
7775         * target.c (target_read): Rename variables and use
7776         TARGET_XFER_E_IO.
7777         (target_read_with_progress): Same.
7778         (read_memory_robust): Constify parameters and rename
7779         variables.
7780         (read_whatever_is_readable): Constify parameters,
7781         rename variables, adjust formatting.
7782         * target.h (read_memory_robust): Constify parameters.
7783
7784 2015-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
7785
7786         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
7787         synthetic (non-AltiVec) vector types.
7788         (ppc64_sysv_abi_return_value): Likewise.
7789
7790 2015-06-12  Antoine Tremblay  <antoine.tremblay@ericsson.com>
7791
7792         PR breakpoints/16465
7793         * breakpoint.c (create_breakpoint): Save extra_string for
7794         pending breakpoints.
7795
7796 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7797
7798         * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
7799         and bt_mask to CORE_ADDR.
7800
7801 2015-06-11  Gary Benson <gbenson@redhat.com>
7802
7803         * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
7804         (mnsh_recv_message): Likewise.
7805
7806 2015-06-11  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7807
7808         * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
7809         long long int and plongest instead of %ll.
7810
7811 2015-06-11  Gary Benson <gbenson@redhat.com>
7812
7813         * nat/linux-namespaces.c (gdb_wait.h): New include.
7814         (sys/wait.h): Do not include.
7815
7816 2015-06-10  Simon Marchi  <simon.marchi@ericsson.com>
7817
7818         * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
7819         end_sequence is true.
7820
7821 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7822
7823         Code cleanup.
7824         * solib-target.c (library_list_start_list): Use explicit NULL
7825         comparison.
7826
7827 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7828
7829         * solib-target.c (library_list_start_list): Do not dereference
7830         variable version in its initialization.  Make the VERSION check handle
7831         NULL.
7832         (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
7833
7834 2015-06-10  Gary Benson <gbenson@redhat.com>
7835
7836         * NEWS: Announce support for direct access of executable and
7837         shared library files when attaching to inferiors in containers
7838         on GNU/Linux systems.
7839
7840 2015-06-10  Gary Benson <gbenson@redhat.com>
7841
7842         * remote.c (struct remote_state) <fs_pid>: New field.
7843         (new_remote_state): Initialize the above.
7844         (PACKET_vFile_setfs): New enum value.
7845         (remote_hostio_set_filesystem): New function.
7846         (remote_hostio_open): Call the above.
7847         (remote_hostio_unlink): Likewise.
7848         (remote_hostio_readlink): Likewise.
7849         (_initialize_remote): Register new "set/show remote
7850         hostio-setfs-packet" command.
7851         * NEWS: Announce new vFile:setfs packet.
7852
7853 2015-06-10  Gary Benson <gbenson@redhat.com>
7854
7855         * linux-nat.c (nat/linux-namespaces.h): New include.
7856         (fileio.h): Likewise.
7857         (linux_nat_filesystem_is_local): New function.
7858         (linux_nat_fileio_pid_of): Likewise.
7859         (linux_nat_fileio_open): Likewise.
7860         (linux_nat_fileio_readlink): Likewise.
7861         (linux_nat_fileio_unlink): Likewise.
7862         (linux_nat_add_target): Initialize to_filesystem_is_local,
7863         to_fileio_open, to_fileio_readlink and to_fileio_unlink.
7864         (_initialize_linux_nat): New "set/show debug linux-namespaces"
7865         commands.
7866         * NEWS: Mention new "set/show debug linux-namespaces" commands.
7867
7868 2015-06-10  Gary Benson <gbenson@redhat.com>
7869
7870         * target.h (struct inferior): New forward declaration.
7871         (struct target_ops) <to_filesystem_is_local>: Update comment.
7872         (struct target_ops) <to_fileio_open>: New argument inf.
7873         Update comment.  All implementations updated.
7874         (struct target_ops) <to_fileio_unlink>: Likewise.
7875         (struct target_ops) <to_fileio_readlink>: Likewise.
7876         (target_filesystem_is_local): Update comment.
7877         (target_fileio_open): New argument inf.  Update comment.
7878         (target_fileio_unlink): Likewise.
7879         (target_fileio_readlink): Likewise.
7880         (target_fileio_read_alloc): Likewise.
7881         (target_fileio_read_stralloc): Likewise.
7882         * target.c (target_fileio_open): New argument inf.
7883         Pass inf to implementation.  Update debug printing.
7884         (target_fileio_unlink): Likewise.
7885         (target_fileio_readlink): Likewise.
7886         (target_fileio_read_alloc_1): New argument inf. Pass inf
7887         to target_fileio_open.
7888         (target_fileio_read_alloc): New argument inf. Pass inf to
7889         target_fileio_read_alloc_1.
7890         (target_fileio_read_stralloc): Likewise.
7891         * gdb_bfd.c (inferior.h): New include.
7892         (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7893         argument with new argument "inferior".  Pass inferior to
7894         target_fileio_open.
7895         (gdb_bfd_open): Supply inferior argument to
7896         gdb_bfd_iovec_fileio_open.
7897         * linux-tdep.c (linux_info_proc): Supply inf argument to
7898         relevant target_fileio calls.
7899         (linux_find_memory_regions_full): Likewise.
7900         (linux_fill_prpsinfo): Likewise.
7901         * remote.c (remote_filesystem_is_local): Supply inf
7902         argument to remote_hostio_open.
7903         (remote_file_put): Likewise.
7904         (remote_file_get): Likewise.
7905         (remote_file_delete): Supply inf argument to
7906         remote_hostio_unlink.
7907
7908 2015-06-10  Gary Benson <gbenson@redhat.com>
7909
7910         * inf-child.c (inf_child_fileio_open): Replace comment.
7911         (inf_child_fileio_pwrite): Likewise.
7912         (inf_child_fileio_pread): Likewise.
7913         (inf_child_fileio_fstat): Insert blank line before comment.
7914         (inf_child_fileio_close): Replace comment.
7915         (inf_child_fileio_unlink): Likewise.
7916         (inf_child_fileio_readlink): Likewise.
7917         * remote.c (remote_hostio_open): Likewise.
7918         (remote_hostio_pread): Likewise.
7919         (remote_hostio_pwrite): Likewise.
7920         (remote_hostio_close): Likewise.
7921         (remote_hostio_unlink): Likewise.
7922         (remote_hostio_readlink): Likewise.
7923         (remote_hostio_fstat): Likewise.
7924         (remote_filesystem_is_local): Likewise.
7925         * target.c (target_fileio_open): Likewise.
7926         (target_fileio_pwrite): Likewise.
7927         (target_fileio_pread): Likewise.
7928         (target_fileio_fstat): Insert blank line before comment.
7929         (target_fileio_close): Replace comment.
7930         (target_fileio_unlink): Likewise.
7931         (target_fileio_readlink): Likewise.
7932         (target_fileio_read_alloc): Likewise.
7933         (target_fileio_read_stralloc): Likewise.
7934
7935 2015-06-10  Gary Benson <gbenson@redhat.com>
7936
7937         * linux-thread-db.c (nat/linux-namespaces.h): New include.
7938         (check_pid_namespace_match): Use linux_ns_same rather than
7939         linux_proc_pid_get_ns to spot PID namespace mismatches.
7940         * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7941         * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7942
7943 2015-06-10  Gary Benson <gbenson@redhat.com>
7944
7945         * configure.ac (AC_CHECK_FUNCS): Add setns.
7946         * config.in: Regenerate.
7947         * configure: Likewise.
7948         * nat/linux-namespaces.h: New file.
7949         * nat/linux-namespaces.c: Likewise.
7950         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7951         (linux-namespaces.o): New rule.
7952         * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7953         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7954         * config/arm/linux.mh (NATDEPFILES): Likewise.
7955         * config/i386/linux.mh (NATDEPFILES): Likewise.
7956         * config/i386/linux64.mh (NATDEPFILES): Likewise.
7957         * config/ia64/linux.mh (NATDEPFILES): Likewise.
7958         * config/m32r/linux.mh (NATDEPFILES): Likewise.
7959         * config/m68k/linux.mh (NATDEPFILES): Likewise.
7960         * config/mips/linux.mh (NATDEPFILES): Likewise.
7961         * config/pa/linux.mh (NATDEPFILES): Likewise.
7962         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7963         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7964         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7965         * config/s390/linux.mh (NATDEPFILES): Likewise.
7966         * config/sparc/linux.mh (NATDEPFILES): Likewise.
7967         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7968         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7969         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7970
7971 2015-06-10  Gary Benson <gbenson@redhat.com>
7972
7973         * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7974         * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7975         (make_cleanup_close): Likewise.
7976         * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7977         * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7978         (make_cleanup_close): Likewise.
7979
7980 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7981
7982         * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7983         from SuspendThread().
7984
7985 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7986
7987         * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7988         from OutputDebugString.
7989
7990 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7991                         Mircea Gherzan  <mircea.gherzan@intel.com>
7992
7993         * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7994         MPX_BT_MASK_32): New macros.
7995         (i386_mpx_set_bounds): New function that implements
7996         the command "set-mpx-bound".
7997         (i386_mpx_enabled): Helper function to test MPX availability.
7998         (i386_mpx_bd_base): Helper function to calculate the base directory
7999         address.
8000         (i386_mpx_get_bt_entry): Helper function to access a bound
8001         table entry.
8002         (i386_mpx_print_bounds): Effectively display bound information.
8003         (_initialize_i386_tdep): Add new commands to commands "set mpx" and
8004         "show mpx".
8005         (_initialize_i386_tdep):
8006         Add "bound" to the commands "show mpx" and "set mpx" commands.
8007         (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
8008         and "show mpx" commands.
8009         * NEWS: List new commands for MPX support.
8010
8011 2015-06-09  Gary Benson <gbenson@redhat.com>
8012
8013         * common/fileio.h (fileio_to_host_mode): New declaration.
8014         * common/fileio.c (fileio_to_host_mode): New Function.
8015         * inf-child.c (inf_child_fileio_open): Process mode argument
8016         with fileio_to_host_mode.
8017
8018 2015-06-09  Gary Benson <gbenson@redhat.com>
8019
8020         * common/fileio.c (fileio_mode_pack): Fix preprocessor
8021         conditional.
8022
8023 2015-06-05  Gary Benson <gbenson@redhat.com>
8024
8025         * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
8026         * remote.c (remote_filesystem_is_local): ...here.
8027
8028 2015-06-04  Yao Qi  <yao.qi@linaro.org>
8029
8030         * gdbarch.c: Regenerate it.
8031
8032 2015-06-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
8033
8034         * arch-utils.c (default_infcall_munmap): New.
8035         * arch-utils.h (default_infcall_munmap): New declaration.
8036         * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
8037         (munmap_list_free, munmap_listp_free_cleanup): New.
8038         (struct setup_sections_data): Add field munmap_list_headp.
8039         (setup_sections): Call munmap_list_add.
8040         (compile_object_load): New variable munmap_list_head, initialize
8041         setup_sections_data.munmap_list_headp, return munmap_list_head.
8042         * compile/compile-object-load.h (struct munmap_list): New declaration.
8043         (struct compile_module): Add field munmap_list_head.
8044         (munmap_list_free): New declaration.
8045         * compile/compile-object-run.c (struct do_module_cleanup): Add field
8046         munmap_list_head.
8047         (do_module_cleanup): Call munmap_list_free.
8048         (compile_object_run): Pass munmap_list_head to do_module_cleanup.
8049         * gdbarch.c: Regenerate.
8050         * gdbarch.h: Regenerate.
8051         * gdbarch.sh (infcall_munmap): New.
8052         * linux-tdep.c (linux_infcall_munmap): New.
8053         (linux_init_abi): Install it.
8054
8055 2015-06-02  Simon Marchi  <simon.marchi@ericsson.com>
8056
8057         PR gdb/15564
8058         * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
8059
8060 2015-06-02  Yao Qi  <yao.qi@linaro.org>
8061
8062         * i386-linux-nat.c: Include linux-nat.h.
8063
8064 2015-06-01  Andreas Schwab  <schwab@linux-m68k.org>
8065             Jan Kratochvil  <jan.kratochvil@redhat.com>
8066
8067         PR symtab/18392
8068         * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
8069         assertion.
8070         * dwarf2loc.c (chain_candidate): Likewise.
8071
8072 2015-06-01  Yao Qi  <yao.qi@linaro.org>
8073
8074         * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
8075         (store_vfp_regs): Use PTRACE_SETREGSET.
8076
8077 2015-06-01  Yao Qi  <yao.qi@linaro.org>
8078
8079         * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
8080         (fetch_fpregs): Likewise.
8081         * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
8082         (store_fpregs): Likewise.
8083
8084 2015-06-01  Yao Qi  <yao.qi@linaro.org>
8085
8086         * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
8087         (fetch_regs): Likewise.
8088         (store_regs): Use PTRACE_SETREGSET.
8089         (store_register): Likewise.
8090
8091 2015-06-01  Yao Qi  <yao.qi@linaro.org>
8092
8093         * arm-linux-nat.c (arm_linux_read_description): Check whether
8094         kernel supports PTRACE_GETREGSET.
8095
8096 2015-06-01  Yao Qi  <yao.qi@linaro.org>
8097
8098         * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
8099         * linux-nat.c: ... here.
8100         * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
8101         to ...
8102         * linux-nat.h: ... here.
8103
8104 2015-06-01  Yao Qi  <yao.qi@linaro.org>
8105
8106         * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
8107         * i386-linux-nat.c: Likewise.
8108         * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
8109         * s390-linux-nat.c: Include "nat/linux-ptrace.h".
8110         (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
8111         * x86-linux-nat.c: Include "nat/linux-ptrace.h".
8112         * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
8113
8114 2015-05-30  Eli Zaretskii  <eliz@gnu.org>
8115
8116         * go32-nat.c (go32_xfer_memory): Fix the return value to be
8117         compatible to what read_child and write_child return.  This
8118         unbreaks that DJGPP build of GDB which was broken since v7.7.
8119
8120 2015-05-29  Martin Galvan  <martin.galvan@tallertechnologies.com>
8121
8122         * MAINTAINERS (Write After Approval): Add Martin Galvan.
8123
8124 2015-05-29  Roland McGrath  <mcgrathr@google.com>
8125
8126         PR gdb/18464
8127         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
8128         rather than internal_error for an unrecognized value.
8129
8130 2015-05-29  Max Filippov  <jcmvbkbc@gmail.com>
8131
8132         * xtensa-tdep.c (xtensa_pseudo_register_read)
8133         (xtensa_pseudo_register_write): Don't alias last pseudo register
8134         to a1.
8135
8136 2015-05-28  Don Breazeal  <donb@codesourcery.com>
8137
8138         * infrun.c (follow_fork_inferior): Ensure the use of
8139         process-style ptids (pid,0,0) in verbose/debug "Detaching"
8140         messages.
8141
8142 2015-05-28  Doug Evans  <dje@google.com>
8143
8144         * dwarf2read.c (record_line_ftype): Remove, duplicate.
8145
8146 2015-05-28  Yao Qi  <yao.qi@linaro.org>
8147
8148         * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
8149         (arm_linux_fetch_inferior_registers): Use
8150         tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
8151         (arm_linux_store_inferior_registers): Likewise.
8152         (arm_linux_read_description): Don't set
8153         arm_linux_has_wmmx_registers.
8154         * arm-tdep.c (arm_gdbarch_init): Set
8155         tdep->have_wmmx_registers according target descriptions.
8156         * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
8157         field.
8158
8159 2015-05-28  Yao Qi  <yao.qi@linaro.org>
8160
8161         * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
8162         (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
8163         instead of arm_linux_vfp_register_count.
8164         (store_vfp_regs): Likewise.
8165         (arm_linux_fetch_inferior_registers): Likewise.
8166         (arm_linux_store_inferior_registers): Likewise.
8167         (arm_linux_read_description): Don't set
8168         arm_linux_vfp_register_count.
8169         * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
8170         Adjust.
8171         * arm-tdep.c (arm_gdbarch_init): Add assert on
8172         vfp_register_count.
8173         * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
8174         field to vfp_register_count.  All users updated.
8175
8176 2015-05-28  Kyle Huey  <me@kylehuey.com>  (tiny patch)
8177
8178         * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
8179         ELFOSABI_GNU binaries.
8180
8181 2015-05-27  Doug Evans  <dje@google.com>
8182
8183         * dwarf2read.c (lnp_state_machine): New typedef.
8184         (lnp_reader_state): New typedef.
8185         (dwarf_record_line_1): Renamed from dwarf_record_line.
8186         All callers updated.
8187         (dwarf_record_line): New function.
8188         (init_lnp_state_machine): New function.
8189         (check_line_address): Replace p_record_line parameter with state.
8190         All callers updated.
8191         (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
8192         Update to record state in lnp_state_machine.
8193
8194 2015-05-27  Doug Evans  <dje@google.com>
8195
8196         * dwarf2read.c (record_line_ftype): New typedef.
8197         (check_line_address): New function.
8198         (dwarf_decode_lines_1): Call it.
8199
8200 2015-05-27  Doug Evans  <dje@google.com>
8201
8202         * NEWS: Mention "set debug dwarf-line".
8203         * dwarf2read.c (dwarf_line_debug): New static global.
8204         (add_include_dir): Add debug dwarf-line support.
8205         (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
8206         (_initialize_dwarf2_read): New parameter "debug dwarf-line".
8207
8208 2015-05-27  Doug Evans  <dje@google.com>
8209
8210         * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
8211         All callers updated.
8212         (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
8213         * cp-support.h (cp_lookup_nested_symbol): Update.
8214
8215 2015-05-27  Doug Evans  <dje@google.com>
8216
8217         PR symtab/18258
8218         * block.c (block_find_symbol): New function.
8219         (block_find_non_opaque_type): Ditto.
8220         (block_find_non_opaque_type_preferred): Ditto.
8221         * block.h (block_symbol_matcher_ftype): New typedef.
8222         (block_find_symbol): Declare.
8223         (block_find_non_opaque_type): Ditto.
8224         (block_find_non_opaque_type_preferred): Ditto.
8225         * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
8226         * psymtab.c (psym_lookup_symbol): Ditto.
8227         * symtab.c (basic_lookup_transparent_type_1): New function.
8228         (basic_lookup_transparent_type): Call it.
8229
8230 2015-05-27  Yao Qi  <yao.qi@linaro.org>
8231
8232         * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
8233         AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
8234
8235 2015-05-27  Yao Qi  <yao.qi@linaro.org>
8236
8237         * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
8238         before operator &&.
8239         (aarch64_record_load_store): Likewise.
8240
8241 2015-05-26  Doug Evans  <dje@google.com>
8242
8243         PR c++/18141, c++/18417.
8244         * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
8245         a typedef.
8246
8247 2015-05-26  Doug Evans  <dje@google.com>
8248
8249         * NEWS: Add entries for command renamings.
8250         * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
8251         All uses updated.
8252         (dwarf_die_debug): Renamed from dwarf2_die_debug.  All uses updated.
8253         (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
8254         All uses updated.
8255         (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
8256         All callers updated.  Fix spelling of DWARF in help text.
8257         (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
8258         All uses updated.
8259         (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
8260         All uses updated.
8261         (set_dwarf_cmd): Renamed from set_dwarf2_cmd.  All callers updated.
8262         (show_dwarf_cmd): Renamed from show_dwarf2_cmd.  All callers updated.
8263         (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
8264         All uses updated.
8265         (show_dwarf_always_disassemble): Renamed from
8266         show_dwarf2_always_disassemble.  All callers updated.
8267         (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
8268         "set/show dwarf".  Rename "set/show dwarf2 max-cache-age" to
8269         "set/show dwarf max-cache-age".  Rename
8270         "set/show dwarf2 always-disassemble" to
8271         "set/show dwarf always-disassemble".  Rename
8272         "set/show debug dwarf2-read" to "set/show debug dwarf-read".  Rename
8273         "set/show debug dwarf2-die" to "set/show debug dwarf-die".
8274
8275 2015-05-26  Doug Evans  <dje@google.com>
8276
8277         PR python/18438
8278         * python/py-lazy-string.c (stpy_convert_to_value): Use
8279         gdbpy_gdb_memory_error not PyExc_MemoryError.
8280         (gdbpy_create_lazy_string_object): Ditto.
8281
8282 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
8283
8284         * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
8285
8286 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
8287
8288         * tui/tui-regs.c (tui_reg_prev_command): New function.
8289         (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
8290         * reggroups.c (reggroup_prev): New function.
8291         * reggroups.h (reggroup_prev): Add declaration.  Update comment.
8292
8293 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
8294             Yao Qi  <yao.qi@linaro.org>
8295
8296         * aarch64-linux-tdep.c: Include linux-record.h and
8297         record-full.h.
8298         (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
8299         (aarch64_syscall): New enum.
8300         (aarch64_canonicalize_syscall): New function.
8301         (aarch64_all_but_pc_registers_record): New function.
8302         (aarch64_linux_syscall_record): New function.
8303         (aarch64_linux_init_abi): Install AArch64 process record
8304         handler.  Update to handle syscall recording.
8305         * aarch64-tdep.c: Include record.h and record-full.h.
8306         (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
8307         (struct aarch64_mem_r): Define.
8308         (aarch64_record_result): New enum.
8309         (struct insn_decode_record): Define.
8310         (insn_decode_record): New typedef.
8311         (aarch64_record_data_proc_reg): New function.
8312         (aarch64_record_data_proc_imm): New function.
8313         (aarch64_record_branch_except_sys): New function.
8314         (aarch64_record_load_store): New function.
8315         (aarch64_record_data_proc_simd_fp): New function.
8316         (aarch64_record_asimd_load_store): New function.
8317         (aarch64_record_decode_insn_handler): New function.
8318         (deallocate_reg_mem): New function.
8319         (aarch64_process_record): New function.
8320         * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
8321         New field.
8322         (aarch64_process_record): New extern declaration.
8323         * configure.tgt: Add linux-record.o to gdb_target_obs.
8324         * linux-record.h (struct linux_record_tdep) <arg7>: New field.
8325
8326 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
8327
8328         * NEWS: Add a note on process record-replay support on aarch64*-linux*
8329         targets.
8330
8331 2015-05-26  Martin Galvan  <martin.galvan@tallertechnologies.com>
8332
8333         * amd64-tdep.c: Replace in_function_epilogue_p with
8334         stack_frame_destroyed_p throughout.
8335         * arch-utils.c: Ditto.
8336         * arch-utils.h: Ditto.
8337         * arm-tdep.c: Ditto.
8338         * breakpoint.c: Ditto.
8339         * gdbarch.sh: Ditto.
8340         * hppa-tdep.c: Ditto.
8341         * i386-tdep.c: Ditto.
8342         * mips-tdep.c: Ditto.
8343         * nios2-tdep.c: Ditto.
8344         * rs6000-tdep.c: Ditto.
8345         * s390-linux-tdep.c: Ditto.
8346         * score-tdep.c: Ditto.
8347         * sh-tdep.c: Ditto.
8348         * sparc-tdep.c: Ditto.
8349         * sparc-tdep.h: Ditto.
8350         * sparc64-tdep.c: Ditto.
8351         * spu-tdep.c: Ditto.
8352         * tic6x-tdep.c: Ditto.
8353         * tilegx-tdep.c: Ditto.
8354         * xstormy16-tdep.c: Ditto.
8355         * gdbarch.c, gdbarch.h: Re-generated.
8356
8357 2015-05-22  Andrew Burgess  <andrew.burgess@embecosm.com>
8358
8359         * NEWS: Mention 'tui enable' and 'tui disable'.
8360         * tui/tui.c (tui_enable_command): New function.
8361         (tui_disable_command): New function.
8362         (_initialize_tui): New function.
8363
8364 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8365
8366         * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
8367
8368 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8369
8370         * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
8371         buf_ptr is freed.
8372
8373 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8374
8375         * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
8376         into ...
8377         (tui_set_layout_for_display_command): ...here, before calling
8378         tui_set_layout.  Only set the layout if gdb has not already
8379         entered the TUI_FAILURE state.
8380
8381 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8382
8383         * tui/tui-layout.c (layout_completer): New function.
8384         (_initialize_tui_layout): Set completer on layout command.
8385
8386 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8387
8388         * tui/tui-layout.c (tui_set_layout): Remove
8389         tui_register_display_type parameter.  Remove all checking of this
8390         parameter, and reindent function.  Update header comment.
8391         (tui_set_layout_for_display_command): Rename to...
8392         (tui_set_layout_by_name): ...this, and don't check for different
8393         register class types, don't pass a tui_register_display_type to
8394         tui_set_layout.  Update header comment.
8395         (layout_names): Remove register set specific names.
8396         * tui/tui-layout.h (tui_set_layout): Remove
8397         tui_register_display_type parameter.
8398         * tui/tui.c (tui_rl_change_windows): Don't pass a
8399         tui_register_display_type to tui_set_layout.
8400         (tui_rl_delete_other_windows): Likewise.
8401         (tui_enable): Likewise.
8402         * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
8403         (TUI_FLOAT_REGS_NAME_LOWER): Remove.
8404         (TUI_GENERAL_REGS_NAME): Remove.
8405         (TUI_GENERAL_REGS_NAME_LOWER): Remove.
8406         (TUI_SPECIAL_REGS_NAME): Remove.
8407         (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
8408         (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
8409         (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
8410         (enum tui_register_display_type): Remove.
8411         (struct tui_layout_def): Remove regs_display_type and
8412         float_regs_display_type fields.
8413         (struct tui_data_info): Remove regs_display_type field.
8414         (tui_layout_command): Use new name for
8415         tui_set_layout_for_display_command.
8416         * tui/tui-data.c (layout_def): Don't initialise removed fields.
8417         (tui_clear_win_detail): Don't initialise removed fields of
8418         win_info.
8419         * tui/tui-regs.c (tui_show_registers): Use new name for
8420         tui_set_layout_for_display_command.
8421         * tui/tui.h (tui_set_layout_for_display_command): Rename
8422         declaration to...
8423         (tui_set_layout_by_name): ...this.
8424         * printcmd.c (display_command): Remove tui related layout call,
8425         and reindent.
8426
8427 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
8428
8429         * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
8430         (handle_inferior_event): New function.
8431
8432 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
8433
8434         * ada-lang.c (to_fixed_array_type): Rename local variable
8435         typename into type_name.
8436
8437 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8438
8439         Fix ASAN crash for gdb.compile/compile.exp.
8440         * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
8441
8442 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8443
8444         * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
8445         (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
8446         * compile/compile-object-load.c (setup_sections, compile_object_load):
8447         Likewise.
8448         * compile/compile.c (compile_to_object): Likewise.
8449
8450 2015-05-16  Doug Evans  <xdje42@gmail.com>
8451
8452         * NEWS: Mention support for unbuffered Guile memory ports.
8453         * scm-ports.c (ioscm_memory_port): Update comments on end, size.
8454         (ioscm_lseek_address): Improve overflow calculation.
8455         (gdbscm_memory_port_fill_input): Add assert.
8456         (gdbscm_memory_port_write): Handle unbuffered ports.
8457         Handle large writes identical to Guile's fport_write.
8458         (gdbscm_memory_port_seek): Fix seeking past end check.
8459         (gdbscm_memory_port_close): Handle closing unbuffered port.
8460         (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
8461         (ioscm_init_memory_port): Handle unbuffered ports.
8462         (ioscm_reinit_memory_port): Ditto.
8463         (ioscm_init_memory_port): Update size calculation.
8464         (gdbscm_open_memory): Support zero sized ports.
8465
8466 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8467
8468         * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
8469         variable compiler warnings.
8470
8471 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8472
8473         * compile/compile-object-load.c (get_out_value_type): Fix returned type.
8474
8475 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8476             Phil Muldoon  <pmuldoon@redhat.com>
8477
8478         * NEWS (Changes since GDB 7.9): Add compile print.
8479         * compile/compile-c-support.c (add_code_header, add_code_footer)
8480         (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
8481         COMPILE_I_PRINT_VALUE_SCOPE.
8482         * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
8483         (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
8484         New.
8485         * compile/compile-object-load.c: Include block.h.
8486         (get_out_value_type): New function.
8487         (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8488         COMPILE_I_PRINT_VALUE_SCOPE.  Set compile_module's OUT_VALUE_ADDR and
8489         OUT_VALUE_TYPE.
8490         * compile/compile-object-load.h (struct compile_module): Add fields
8491         out_value_addr and out_value_type.
8492         * compile/compile-object-run.c: Include valprint.h and compile.h.
8493         (struct do_module_cleanup): Add fields out_value_addr and
8494         out_value_type.
8495         (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8496         COMPILE_I_PRINT_VALUE_SCOPE.
8497         (compile_object_run): Propagate out_value_addr and out_value_type.
8498         Pass OUT_VALUE_ADDR.
8499         * compile/compile.c: Include valprint.h.
8500         (compile_print_value, compile_print_command): New functions.
8501         (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
8502         (_initialize_compile): Update compile code help text.  Install
8503         compile_print_command.
8504         * compile/compile.h (compile_print_value): New prototype.
8505         * defs.h (enum compile_i_scope_types): Add
8506         COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
8507
8508 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8509
8510         * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
8511         Rely on its parameter count.
8512         (compile_object_load): Replace lookup_minimal_symbol_text by
8513         lookup_global_symbol_from_objfile.  Verify FUNC_SYM.  Set it in the
8514         return value.
8515         * compile/compile-object-load.h (struct compile_module): Replace
8516         func_addr by func_sym.
8517         * compile/compile-object-run.c: Include block.h.
8518         (compile_object_run): Reset module variable after it is freed.  Use
8519         FUNC_SYM instead of FUNC_ADDR.  Rely on it.
8520
8521 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8522
8523         * compile/compile-c-support.c (print_one_macro): Use #ifndef.
8524         (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
8525         (c_compute_program): Call generate_register_struct after typedefs.
8526         * compile/compile-loc2c.c (push, pushf_register_address)
8527         (pushf_register): Cast to GCC_UINTPTR.
8528         (do_compile_dwarf_expr_to_c): Use unused attribute.  Add space after
8529         type.  Use GCC_UINTPTR instead of void *.  Remove excessive cast.
8530         (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
8531         * compile/compile.c (_initialize_compile): Enable warnings for
8532         COMPILE_ARGS.
8533
8534 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8535
8536         * cli/cli-script.c (execute_control_command): Update
8537         eval_compile_command caller.
8538         * compile/compile-object-load.c (compile_object_load): Add parameters
8539         scope and scope_data.  Set them.
8540         * compile/compile-object-load.h (struct compile_module): Add fields
8541         scope and scope_data.
8542         (compile_object_load): Add parameters scope and scope_data.
8543         * compile/compile-object-run.c (struct do_module_cleanup): Add fields
8544         scope and scope_data.
8545         (compile_object_run): Propagate the fields scope and scope_data.
8546         * compile/compile.c (compile_file_command, compile_code_command):
8547         Update eval_compile_command callers.
8548         (eval_compile_command): Add parameter scope_data.  Pass it plus scope.
8549         * compile/compile.h (eval_compile_command): Add parameter scope_data.
8550         * defs.h (struct command_line): Add field scope_data.
8551
8552 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8553
8554         * printcmd.c (struct format_data): Move it to valprint.h.
8555         (print_command_parse_format, print_value): New functions from ...
8556         (print_command_1): ... here.  Call them.
8557         * valprint.h (struct format_data): Move it here from printcmd.c.
8558         (print_command_parse_format, print_value): New declarations.
8559
8560 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8561
8562         * compile/compile-object-load.c (compile_object_load): Add
8563         COMPILE_DEBUG message.
8564
8565 2015-05-15  Jerome Guitton  <guitton@adacore.com>
8566
8567         * ada-lang.c (ada_value_ptr_subscript): Use enum position of
8568         index to get element instead of enum value.
8569         (ada_value_slice_from_ptr, ada_value_slice): Use enum position
8570         of index to compute length, but enum values to compute bounds.
8571         (ada_array_length): Use enum position of index instead of enum value.
8572         (pos_atr): Move position computation to...
8573         (ada_evaluate_subexp): Use enum values to compute bounds.
8574         * gdbtypes.c (discrete_position): ...this new function.
8575         * gdbtypes.h (discrete_position): New function declaration.
8576         * valprint.c (val_print_array_elements): Call discrete_position
8577         to handle array indexed by non-contiguous enumeration types.
8578
8579 2015-05-15  Jerome Guitton  <guitton@adacore.com>
8580
8581         * ada-lang.c (find_parallel_type_by_descriptive_type):
8582         Go through typedefs during lookup.
8583         (to_fixed_array_type): Add support for non-bit packed arrays
8584         as variable-length fields.
8585
8586 2015-05-15  Pedro Alves  <palves@redhat.com>
8587             Simon Marchi  <simon.marchi@ericsson.com>
8588
8589         * event-loop.c (gdb_notifier) <next_file_handler,
8590         next_poll_fds_index>: New fields.
8591         (get_next_file_handler_to_handle_and_advance): New function.
8592         (delete_file_handler): If deleting the next file handler to
8593         handle, advance to the next file handler.
8594         (gdb_wait_for_event): Bail early if no event fired.  Poll file
8595         handlers in round-robin fashion.
8596
8597 2015-05-15  Pedro Alves  <palves@redhat.com>
8598
8599         * linux-tdep.c (linux_find_memory_regions_full): Rename local
8600         'private' to 'priv'.
8601
8602 2015-05-15  Pedro Alves  <palves@redhat.com>
8603
8604         * nat/linux-nat.h: Include "target/waitstatus.h".
8605
8606 2015-05-15  Yuanhui Zhang  <asmwarrior@gmail.com>
8607
8608         * python/py-unwind.c (struct reg_info): Move out of ...
8609         (struct cached_frame_info): ... this scope.
8610         (pending_frame_object_type, unwind_info_object_type): Make extern.
8611
8612 2015-05-15  Joel Brobecker  <brobecker@adacore.com>
8613
8614         * ada-lang.c (ada_value_primitive_packed_val): Make sure
8615         accumSize is never negative.
8616
8617 2015-05-14  Patrick Palka  <patrick@parcs.ath.cx>
8618
8619         * tui/tui-command.c: Remove include of <ctype.h>.
8620         (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
8621
8622 2015-05-13  Martin Galvan  <martin.galvan@tallertechnologies.com>
8623
8624         * dwarf2read.c (die_needs_namespace): Return 1 for
8625         DW_TAG_inlined_subroutine.
8626
8627 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8628
8629         * regcache.c (regcache_cpy_no_passthrough): New declaration.
8630         (regcache_cpy_no_passthrough): Make it static, add function comment.
8631         * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
8632         (regcache_cpy_no_passthrough): Remove declaration.
8633
8634 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8635
8636         * gdbthread.h (struct thread_control_state): Update comment for
8637         proceed_to_finish.
8638         * infcall.c (run_inferior_call): Update comment about
8639         proceed_to_finish.
8640         * infcmd.c (get_return_value): Update comment about stop_registers.
8641         (finish_forward): Update comment about proceed_to_finish.
8642         * infrun.c (stop_registers): Remove.
8643         (clear_proceed_status, normal_stop): Remove stop_registers handling.
8644         * infrun.h (stop_registers): Remove.
8645
8646 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8647
8648         * infcall.c (struct dummy_frame_context_saver)
8649         (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
8650         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8651         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8652         New.
8653         (call_function_by_hand_dummy): Move discard_cleanups of
8654         inf_status_cleanup before dummy_frame_push.  Call
8655         dummy_frame_context_saver_setup and prepare context_saver_cleanup.
8656         Use dummy_frame_context_saver_get_regs instead of stop_registers.
8657         * infcall.h (struct dummy_frame_context_saver)
8658         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8659         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8660         New declarations.
8661         * infcmd.c: Include infcall.h.
8662         (get_return_value): Add parameter ctx_saver, use it instead of
8663         stop_registers.
8664         (print_return_value): Add parameter ctx_saver, pass it.
8665         (struct finish_command_continuation_args): Add field ctx_saver.
8666         (finish_command_continuation): Update print_return_value caller.
8667         (finish_command_continuation_free_arg): Free also ctx_saver.
8668         (finish_forward): Call dummy_frame_context_saver_setup.
8669         * inferior.h (struct dummy_frame_context_saver): New declaration.
8670         (get_return_value): Add parameter ctx_saver.
8671         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
8672         get_return_value caller.
8673
8674 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8675
8676         * dummy-frame.c (struct dummy_frame_dtor_list): New.
8677         (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
8678         (remove_dummy_frame): Process dtor_list.
8679         (pop_dummy_frame): Process dtor_list.
8680         (register_dummy_frame_dtor): Maintain dtor_list.
8681         (find_dummy_frame_dtor): Handle dtor_list.
8682         * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
8683         Update comments.
8684
8685 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8686
8687         * compile/compile-object-run.c (do_module_cleanup): Add parameter
8688         registers_valid.
8689         (compile_object_run): Update do_module_cleanup caller.
8690         * dummy-frame.c: Include infcall.h.
8691         (struct dummy_frame): Update dtor comment.
8692         (remove_dummy_frame): Call dtor.
8693         (pop_dummy_frame): Update dtor caller.
8694         * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
8695         registers_valid.
8696
8697 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
8698
8699         GDB 7.9.1 released.
8700
8701 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
8702
8703         * NEWS: Create "Changes in GDB 7.9.1" section.  Move news about
8704         Xmethods now being able to specify a result type to that new
8705         sectioin.
8706
8707 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
8708
8709         * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
8710         first before resizing the window.
8711         * tui/tui.c (tui_enable): Likewise.
8712
8713 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8714
8715         * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
8716         * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
8717         * infcall.c (call_function_by_hand_dummy): Use proper typedef for
8718         dummy_dtor parameter.
8719         * infcall.h: Include dummy-frame.h.
8720         (call_function_by_hand_dummy_dtor_ftype): Remove.
8721         (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
8722         parameter.
8723
8724 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
8725
8726         PR gdb/17820
8727         * top.c (history_size_setshow_var): Change type to signed.
8728         Initialize to -2.  Update documentation.
8729         (set_readline_history_size): Define.
8730         (set_history_size_command): Use it.  Remove logic for handling
8731         out-of-range sizes.
8732         (init_history): Use set_readline_history_size().  Test for a
8733         value of -2 instead of 0 when determining whether to set a
8734         default history size.
8735         (init_main): Decode the argument of the "size" command as a
8736         zuinteger_unlimited.
8737
8738 2015-05-12  Doug Evans  <dje@google.com>
8739
8740         * dwarf2read.c (struct file_entry): Tweak comments.
8741         (get_debug_line_section): Tweak comments.
8742
8743 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8744
8745         * NEWS: Announce fork support in the RSP and support
8746         for fork debugging in extended mode.
8747
8748 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8749
8750         * remote.c (remote_insert_fork_catchpoint): New function.
8751         (remote_remove_fork_catchpoint): New function.
8752         (remote_insert_vfork_catchpoint): New function.
8753         (remote_remove_vfork_catchpoint): New function.
8754         (pending_fork_parent_callback): New function.
8755         (remove_new_fork_child): New function.
8756         (remote_update_thread_list): Call remote_notif_get_pending_events
8757         and remove_new_fork_child.
8758         (extended_remote_kill): Kill fork child when killing the
8759         parent before follow_fork completes.
8760         (init_extended_remote_ops): Initialize target vector with
8761         new fork catchpoint functions.
8762
8763 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8764
8765         * remote.c (remove_vfork_event_p): New function.
8766         (remote_follow_fork): Add vfork event type to event checking.
8767         (remote_parse_stop_reply): New stop reasons "vfork" and
8768         "vforkdone" for RSP 'T' Stop Reply Packet.
8769
8770 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8771
8772         * linux-nat.c (linux_nat_ptrace_options): New function.
8773         (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
8774         Call linux_nat_ptrace_options and use different argument to
8775         linux_enable_event_reporting.
8776         (_initialize_linux_nat): Delete call to
8777         linux_ptrace_set_additional_flags.
8778         * nat/linux-ptrace.c (current_ptrace_options): Rename to
8779         supported_ptrace_options.
8780         (additional_flags): Delete variable.
8781         (linux_check_ptrace_features): Use supported_ptrace_options.
8782         (linux_test_for_tracesysgood, linux_test_for_tracefork):
8783         Likewise, and remove additional_flags check.
8784         (linux_enable_event_reporting): Change 'attached' argument to
8785         'options'.  Use supported_ptrace_options.
8786         (ptrace_supports_feature): Change comment.  Use
8787         supported_ptrace_options.
8788         (linux_ptrace_set_additional_flags): Delete function.
8789         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
8790         Delete function prototype.
8791         * remote.c (remote_fork_event_p): New function.
8792         (remote_detach_pid): New function.
8793         (remote_detach_1): Call remote_detach_pid, don't mourn inferior
8794         if doing detach-on-fork.
8795         (remote_follow_fork): New function.
8796         (remote_parse_stop_reply): Handle new "T" stop reason "fork".
8797         (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
8798         (init_extended_remote_ops): Initialize to_follow_fork.
8799
8800 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8801
8802         * nat/linux-ptrace.c (linux_check_ptrace_features): Change
8803         from static to extern.
8804         * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
8805         * remote.c (anonymous enum): <PACKET_fork_event_feature,
8806         * PACKET_vfork_event_feature>: New enumeration constants.
8807         (remote_protocol_features): Add table entries for new packets.
8808         (remote_query_supported): Add new feature queries to qSupported
8809         packet.
8810
8811 2015-05-12  Gary Benson <gbenson@redhat.com>
8812
8813         * remote.c (remote_add_inferior): Call exec_file_locate_attach
8814         for fake PIDs as well as real ones.
8815         (remote_pid_to_exec_file): Send empty annex if PID is fake.
8816
8817 2015-05-09  Siva Chandra Reddy  <sivachandra@google.com>
8818
8819         * NEWS (Python Scripting): Mention the new gdb.Value methods.
8820         * python/py-value.c (valpy_reference_value): New function.
8821         (valpy_const_value): Likewise.
8822         (value_object_methods): Add new methods.
8823         * value.c (make_cv_value): New function.
8824         * value.h (make_cv_value): Declare.
8825
8826 2015-05-08  Yao Qi  <yao@codesourcery.com>
8827             Sandra Loosemore  <sandra@codesourcery.com>
8828
8829         * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
8830         to 'lh->include_dirs' before accessing to it.
8831         (psymtab_include_file_name): Likewise.
8832         (dwarf_decode_lines_1): Likewise.
8833         (dwarf_decode_lines): Likewise.
8834         (file_file_name): Likewise.
8835
8836 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
8837
8838         * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
8839         (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
8840         (nios2_linux_rt_sigreturn_init): Adjust base address of
8841         register save area.
8842
8843 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
8844
8845         * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
8846         "trap 31" as the breakpoint instruction on all targets.
8847
8848 2015-05-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8849
8850         * infcmd.c (print_return_value): Remove unused declaration.
8851
8852 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8853
8854         * dwarf2read.c (attr_to_dynamic_prop)
8855         <DW_AT_data_member_location>: Use read_type_die isntead of
8856         get_die_type.
8857
8858 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8859
8860         * ada-lang.c (ada_convert_actual): Add handling of formals
8861         passed inside an aligner type.
8862
8863 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8864
8865         * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
8866
8867 2015-05-08  Siva Chandra Reddy  <sivachandra@google.com>
8868
8869         PR python/18291
8870         * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
8871         Print xmethod matcher status.
8872
8873 2015-05-08  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8874
8875         * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
8876         register in the regcache when treating the PSWM register, and vice
8877         versa.
8878
8879 2015-05-07  Gary Benson <gbenson@redhat.com>
8880
8881         * linux-thread-db.c (struct thread_db_info)
8882         <td_ta_map_id2thr_p>: Remove field.
8883         (try_thread_db_load_1): Remove initialization for the above.
8884
8885 2015-05-07  Gary Benson <gbenson@redhat.com>
8886
8887         * linux-thread-db.c (struct thread_db_info)
8888         <td_thr_validate_p>: Remove field.
8889         (try_thread_db_load_1): Remove initialization for the above.
8890
8891 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
8892
8893         * compile/compile-object-load.c (compile_object_load): Support
8894         mst_text_gnu_ifunc.
8895
8896 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
8897
8898         * compile/compile.c (compile_to_object): Make the cmd_string parameter
8899         const.  Use new variables for the const compatibility.
8900         (eval_compile_command): Make the cmd_string parameter const.
8901         * compile/compile.h (eval_compile_command): Make the cmd_string
8902         parameter const.
8903
8904 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
8905
8906         * defs.h (deprecated_init_ui_hook): Delete.  Remove associated
8907         comment.
8908         * top.c (deprecated_init_ui_hook): Delete.
8909         (gdb_init): Remove handling of deprecated_init_ui_hook.
8910         * interps.c (clear_interpreter_hooks): Remove handling of
8911         deprecated_init_ui_hook.
8912         * main.c (captured_main): Update comment.
8913
8914 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
8915
8916         * solib.c (_initialize_solib): Add "info dll" alias creation.
8917         * windows-nat.c (set_windows_aliases): Delete.
8918         (_initialize_windows_nat): Remove deprecated_init_ui_hook
8919         assignment.
8920         * NEWS: Add news entry about "info dll" now being available
8921         on all platforms.
8922
8923 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8924
8925         * ada-lang.c (value_assign_to_component): Reformat and improve
8926         documentation. Remove all trailing spaces.
8927
8928 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8929
8930         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8931         Stop counting inlined frames as soon as an out-of-line function
8932         is found.
8933
8934 2014-05-05  Pierre-Marie de Rodat  <derodat@adacore.com>
8935
8936         * dwarf2read.c (inherit_abstract_dies): Skip
8937         DW_TAG_GNU_call_site dies while inheriting children of an
8938         abstract DIE into a scope.
8939         (read_lexical_block_scope): Inherit abstract DIE's for
8940         lexical scopes.
8941
8942 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8943
8944         * ada-valprint.c (val_print_packed_array_elements): Delete
8945         variable "len".  Add a type-length check when comparing two
8946         consecutive elements of the array.  Use the element's actual
8947         length in call to value_contents_eq.
8948         * ada-lang.c (ada_value_primitive_packed_val): Always return
8949         a value whose type has been resolved.
8950
8951 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8952
8953         * ada-lang.c (ada_value_primitive_packed_val): Recompute
8954         BIT_SIZE and LEN if the size of the resolved type is smaller
8955         than BIT_SIZE * HOST_CHAR_BIT.
8956
8957 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8958
8959         * ada-lang.c (ada_value_primitive_packed_val): Use a more
8960         correct address in call to value_at.  Adjust call to
8961         value_address accordingly.
8962
8963 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8964
8965         * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8966         to print it.
8967
8968 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8969
8970         * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8971         * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8972         pinfo->valaddr.
8973         * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8974         * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8975         (resolve_dynamic_type_internal): Set pinfo.valaddr.
8976         Add handling of addr_stack->valaddr.
8977         (resolve_dynamic_type): Add "valaddr" parameter.
8978         Set pinfo.valaddr field.
8979         * ada-lang.c (ada_discrete_type_high_bound): Update call to
8980         resolve_dynamic_type.
8981         (ada_discrete_type_low_bound): Likewise.
8982         * findvar.c (default_read_var_value): Likewise.
8983         * value.c (value_from_contents_and_address): Likewise.
8984
8985 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8986
8987         * gdbtypes.c (resolve_dynamic_array): Use
8988         create_array_type_with_stride instead of create_array_type.
8989
8990 2015-04-30  DJ Delorie  <dj@redhat.com>
8991
8992         * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8993         rl78_decode_opcode
8994
8995 2015-04-29  Doug Evans  <dje@google.com>
8996
8997         PR python/18285
8998         * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8999         * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
9000         EVAL_AVOID_SIDE_EFFECTS for xmethods.
9001         * extension-priv.h (struct extension_language_ops)
9002         <get_xmethod_result_type>: New member.
9003         * extension.c (get_xmethod_result_type): New function.
9004         * extension.h (get_xmethod_result_type): Declare.
9005         * python/py-xmethods.c (get_result_type_method_name): New static
9006         global.
9007         (py_get_result_type_method_name): Ditto.
9008         (gdbpy_get_xmethod_result_type): New function.
9009         (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
9010         * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
9011         * python/python.c (python_extension_ops): Add
9012         gdbpy_get_xmethod_result_type.
9013         * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
9014         * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
9015         xmethods.
9016         (value_x_unop): Ditto.
9017         * value.c (result_type_of_xmethod): New function.
9018         * value.h (result_type_of_xmethod): Declare.
9019
9020 2015-04-29  Gary Benson <gbenson@redhat.com>
9021
9022         * solib.c (solib_find_1): Allow fd argument to be NULL.
9023         (exec_file_find): Update comment.
9024         (solib_find): Likewise.
9025         * exec.c (exec_file_locate_attach): Use NULL as fd
9026         argument to exec_file_find to avoid having to close
9027         the opened file.
9028         * infrun.c (follow_exec): Likewise.
9029
9030 2015-04-28  Doug Evans  <dje@google.com>
9031
9032         PR python/18299
9033         * python/lib/gdb/printing.py (register_pretty_printer): Handle
9034         name or __name__ attributes.  Handle gdb module as first argument.
9035
9036 2015-04-28  Doug Evans  <dje@google.com>
9037
9038         PR python/18089
9039         * python/py-prettyprint.c (print_children): Verify result of children
9040         iterator.  Provide better error message.
9041         * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
9042         * python/python.c (gdbpy_print_python_errors_p): New function.
9043
9044 2015-04-28  Doug Evans  <dje@google.com>
9045
9046         * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
9047
9048 2015-04-28  Sasha Smundak  <asmundak@google.com>
9049
9050         * NEWS: Mention gdb.Type.optimized_out method.
9051         * python/py-type.c (typy_optimized_out):  New function.
9052
9053 2015-04-28  John Baldwin  <jhb@FreeBSD.org>
9054
9055         * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9056
9057 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
9058
9059         * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
9060         (initialize_utils): Move call of init_page_info() to ...
9061         * top.c (gdb_init): ... here.
9062
9063 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
9064
9065         * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
9066         (tui_sigwinch_handler): Still update our idea of
9067         the terminal's width and height even when TUI is not active.
9068
9069 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
9070
9071         * utils.h (set_screen_width_and_height): Declare.
9072         * utils.c (set_screen_width_and_height): Define.
9073         * tui/tui-win.c (tui_update_gdb_sizes): Use it.
9074
9075 2015-04-28  Gary Benson <gbenson@redhat.com>
9076
9077         * infrun.c (solist.h): New include.
9078         (follow_exec): Use exec_file_find to prefix execd_pathname
9079         with gdb_sysroot.
9080
9081 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
9082
9083         * tui/tui-source.c (tui_set_source_content): Avoid calling
9084         strcpy() when offset is 0.
9085
9086 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
9087
9088         PR gdb/18155
9089         * tui/tui-data.c (tui_free_window): Don't free the locator
9090         window when passed an SRC_WIN or a DISASSEM_WIN.
9091
9092 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
9093
9094         * tui/tui-data.h (struct tui_win_element): Forward-declare.
9095         (tui_win_content): Move declaration.
9096         (struct tui_gen_win_info): Give 'content' field the
9097         type tui_win_content.
9098         * tui/tui-data.c (init_content_element): Remove redundant and
9099         erroneous casts.
9100         (tui_add_content_elements): Remove erroneous cast.
9101         * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
9102         casts.
9103         (tui_get_begin_asm_address): Likewise.
9104         * tui/tui-regs.c (tui_show_registers): Likewise.
9105         (tui_show_register_group): Likewise.
9106         (tui_display_registers_from): Likewise.
9107         (tui_check_register_values): Likewise.
9108         * tui/tui-source.c (tui_set_source_content): Likewise.
9109         (tui_set_source_content_nil): Likewise.
9110         (tui_source_is_displayed): Likewise.
9111         * tui/tui-stack.c (tui_show_locator_content): Likewise.
9112         (tui_set_locator_fullname): Likewise.
9113         (tui_set_locator_info): Likewise.
9114         (tui_show_frame_info): Likewise.
9115         * tui/tui-winsource.c (tui_clear_source_content): Likewise.
9116         (tui_show_source_line): Likewise.
9117         (tui_horizontal_source_scroll): Likewise.
9118         (tui_update_breakpoint_info): Likewise.
9119         (tui_set_exec_info_content): Likewise.
9120         (tui_show_exec_info_content): Likewise.
9121         (tui_alloc_source_buffer): Likewise.
9122         (tui_line_is_displayed): Likewise.
9123         (tui_addr_is_displayed): Likewise.
9124
9125 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
9126
9127         * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
9128         event if PL_FLAG_EXEC is set.
9129         [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
9130         [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
9131         (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
9132         "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
9133         Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
9134
9135 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
9136
9137         * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
9138         [TDP_RFPPWAIT] New variable fbsd_pending_children.
9139         [TDP_RFPPWAIT] (fbsd_remember_child): New function.
9140         [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
9141         [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
9142         [PT_LWPINFO] (fbsd_wait): New function.
9143         [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
9144         [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
9145         [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
9146         [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
9147         [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
9148         [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
9149         [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
9150         [TDP_RFPPWAIT] (fbsd_post_attach): New function.
9151         (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
9152         "fbsd_wait".
9153         [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
9154         Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
9155         Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
9156         Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
9157         Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
9158         Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
9159         Set "to_post_attach" to "fbsd_post_attach".
9160
9161 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
9162
9163         * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
9164         (fbsd_find_memory_regions): Mark static.
9165         (fbsd_nat_add_target): New function.
9166         * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
9167         fbsd_pid_to_exec_file and fbsd_find_memory_regions.
9168         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
9169         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
9170         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
9171         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
9172
9173 2015-04-27  Gary Benson <gbenson@redhat.com>
9174
9175         * objfiles.c (allocate_objfile): Do not attempt to expand name
9176         if name is a "target:" filename.
9177         * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
9178         to load auto-load scripts for objfiles with "target:" filenames.
9179
9180 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9181
9182         * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
9183         (enum s390_vector_abi_kind): New enum.
9184         (struct gdbarch_tdep)<vector_abi>: New field.
9185         (s390_effective_inner_type): Add parameter min_size.  Stop
9186         unwrapping if the inner type is smaller than min_size.
9187         (s390_function_arg_float): Adjust call to
9188         s390_effective_inner_type.
9189         (s390_function_arg_vector): New function.
9190         (s390_function_arg_integer): Adjust comment.
9191         (struct s390_arg_state)<vr>: New field.
9192         (s390_handle_arg): Add parameter 'is_unnamed'.  Pass vector
9193         arguments according to vector ABI when appropriate.
9194         (s390_push_dummy_call): Initialize the argument state's field
9195         'vr'.  Adjust calls to s390_handle_arg.
9196         (s390_register_return_value): Handle vector return values.
9197         (s390_return_value): Apply the "register" return value convention
9198         to a vector when appropriate.
9199         (s390_gdbarch_init): Initialize tdep->vector_abi.
9200         * NEWS: Announce S390 vector ABI support.
9201
9202 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9203
9204         * s390-linux-tdep.c (s390_return_value_convention): Remove
9205         function.  Inline its logic...
9206         (s390_return_value): ...here.  Instead, move the handling of the
9207         "register" return value convention...
9208         (s390_register_return_value): ...here.  New function.
9209
9210 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9211
9212         * s390-linux-tdep.c
9213         (is_float_singleton): Remove function.  Move the "singleton" part
9214         of the logic...
9215         (s390_effective_inner_type): ...here.  New function.
9216         (is_float_like): Remove function.  Inline its logic...
9217         (s390_function_arg_float): ...here.
9218         (is_pointer_like, is_integer_like, is_struct_like): Remove
9219         functions.  Inline their logic...
9220         (s390_function_arg_integer): ...here.
9221         (s390_function_arg_pass_by_reference): Remove function.
9222         (extend_simple_arg): Remove function.
9223         (alignment_of): Remove function.
9224         (struct s390_arg_state): New structure.
9225         (s390_handle_arg): New function.
9226         (s390_push_dummy_call): Move parameter placement logic to the new
9227         function s390_handle_arg.  Call it for calculating the stack area
9228         sizes first, and again for actually writing the parameters.
9229
9230 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9231
9232         * s390-linux-tdep.c (is_power_of_two): Add comment.  Return
9233           false if the argument is zero.
9234
9235 2015-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
9236
9237         * ada-lang.c (template_to_static_fixed_type): Return input type
9238         when it is already fixed.  Cache the input type itself when not
9239         creating a static fixed copy.  Make it explicit that we never
9240         molestate the input type.
9241         * gdbtypes.c (resolve_dynamic_struct): Reset the
9242         TYPE_TARGET_TYPE field for resolved copies.
9243
9244 2015-04-27  Joel Brobecker  <brobecker@adacore.com>
9245
9246         * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
9247         (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
9248         (template_to_static_fixed_type): Call ada_check_typedef only
9249         when necessary.
9250
9251 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
9252
9253         * cli/cli-dump.c (srec_dump_command): Add internationalization
9254         mark ups.
9255         (ihex_dump_command): Likewise.
9256         (tekhex_dump_command): Likewise.
9257         (binary_dump_command): Likewise.
9258         (binary_append_command): Likewise.
9259
9260 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
9261
9262         * cli/cli-dump.c (verilog_cmdlist): New variable.
9263         (dump_verilog_memory): New function.
9264         (dump_verilog_value): New function.
9265         (verilog_dump_command): New function.
9266         (_initialize_cli_dump): Add new commands to support verilog dump
9267         format.
9268         * NEWS: Add entry for "dump verilog".
9269
9270 2015-04-24  Pierre-Marie de Rodat  <derodat@adacore.com>
9271
9272         * gdbtypes.c (print_gnat_stuff): Do not recurse on the
9273         descriptive type when there is none.
9274
9275 2015-04-23  Patrick Palka  <patrick@parcs.ath.cx>
9276
9277         * tui/tui-win.c (tui_async_resize_screen): Call
9278         rl_resize_terminal().
9279
9280 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
9281
9282         * windows-nat.c (handle_output_debug_string): Don't change
9283         current_event.dwThreadId.
9284         (get_windows_debug_event): Use thread_id, rather than relying on
9285         current_event.dwThreadId being changed.
9286
9287 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
9288
9289         * windows-nat.c (windows_continue): Report an error if
9290         ContinueDebugEvent() fails.
9291
9292 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
9293
9294         * windows-nat.c (windows_resume): Fix misspelling in debug output.
9295
9296 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
9297
9298         * windows-nat.c (get_windows_debug_event): Replace retval with
9299         thread_id throughout.  Update stale comment.
9300
9301 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
9302
9303         * windows-nat.c (get_windows_debug_event): Don't use ternary
9304         conditional operator.
9305
9306 2015-04-21  Pierre Muller  <muller@sourceware.org>
9307
9308         PR pascal/17815
9309         p-exp.y (yylex): Reorganize code to return the matched pattern
9310         for a field of this.
9311
9312 2015-04-21  Gary Benson <gbenson@redhat.com>
9313
9314         * common/fileio.h (fileio_to_host_openflags): New declaration.
9315         * common/fileio.c (fcntl.h): New include.
9316         (fileio_to_host_openflags): New function, factored out from...
9317         * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
9318         Single use updated.
9319
9320 2015-04-21  Kevin Buettner  <kevinb@redhat.com>
9321
9322         * rl78-tdep.c (RL78_SP_ADDR): Define.
9323         (opc_reg_to_gdb_regnum): New static function.
9324         (rl78_analyze_prologue): Recognize instructions forming slightly
9325         more interesting prologues.
9326
9327 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
9328
9329         Revert:
9330         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9331         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9332         TYPE_CODE_REF types so that they are not considered as dynamic
9333         depending on the referenced type.
9334         (resolve_dynamic_type_internal): Likewise.
9335
9336 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
9337
9338         Revert:
9339         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9340         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9341         "top_level" parameter.
9342         (resolve_dynamic_type_internal): Remove the unused "top_level"
9343         parameter.  Update call to is_dynamic_type_internal.
9344         (is_dynamic_type): Update call to is_dynamic_type_internal.
9345         (resolve_dynamic_range): Update call to
9346         resolve_dynamic_type_internal.
9347         (resolve_dynamic_union): Likewise.
9348         (resolve_dynamic_struct): Likewise.
9349         (resolve_dynamic_type): Likewise.
9350
9351 2015-04-19  Gabriel Krisman Bertazi  <gabriel@krisman.be>
9352
9353         * breakpoint.c (update_dprintf_command_list): Remove duplicated
9354         xmalloc.
9355
9356 2015-04-20  Thomas Schwinge  <thomas@codesourcery.com>
9357
9358         * reply_mig_hack.awk: Robustify parsing.
9359
9360         * reply_mig_hack.awk: Don't bother to declare an intermediate
9361         function pointer variable.
9362
9363 2015-04-17  Doug Evans  <dje@google.com>
9364
9365         * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
9366         to "exec_displacement" to avoid confusion with inner use of the name.
9367
9368 2015-04-17  Pedro Alves  <palves@redhat.com>
9369
9370         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
9371         if HW point of TYPE isn't supported.
9372
9373 2015-04-17  Yao Qi  <yao.qi@linaro.org>
9374             Pedro Alves  <palves@redhat.com>
9375
9376         * target.h (target_can_use_hardware_watchpoint): Update comments.
9377         Remove trailing ";".
9378
9379 2015-04-17  Gary Benson <gbenson@redhat.com>
9380
9381         * remote.c (remote_add_inferior): New argument try_open_exec.
9382         If nonzero, attempt to open the inferior's executable file as
9383         the main executable if no main executable is open already.
9384         All callers updated.
9385         * NEWS: Mention that GDB now supports automatic location and
9386         retrieval of executable + files from remote targets.
9387
9388 2015-04-17  Gary Benson <gbenson@redhat.com>
9389
9390         * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
9391         * remote.c (PACKET_qXfer_exec_file): Likewise.
9392         (remote_protocol_features): Register the
9393         "qXfer:exec-file:read" feature.
9394         (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
9395         (remote_pid_to_exec_file): New function.
9396         (init_remote_ops): Initialize to_pid_to_exec_file.
9397         (_initialize_remote): Register new "set/show remote
9398         pid-to-exec-file-packet" command.
9399         * NEWS: Announce new qXfer:exec-file:read packet.
9400
9401 2015-04-17  Gary Benson <gbenson@redhat.com>
9402
9403         * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
9404         New declaration.
9405         * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
9406         New function, factored out from...
9407         * linux-nat.c (linux_child_pid_to_exec_file): ...here.
9408
9409 2015-04-17  Gary Benson <gbenson@redhat.com>
9410
9411         * exec.c (solist.h): New include.
9412         (exec_file_locate_attach): Prefix absolute executable
9413         paths with gdb_sysroot if set.
9414         * NEWS: Mention that executable paths may be prepended
9415         with sysroot.
9416
9417 2015-04-17  Gary Benson <gbenson@redhat.com>
9418
9419         * solist.h (exec_file_find): New declaration.
9420         * solib.c (solib_find_1): New function, factored out from...
9421         (solib_find): ...here.
9422         (exec_file_find): New function.
9423
9424 2015-04-17  Gary Benson <gbenson@redhat.com>
9425
9426         * gdbcore.h (exec_file_locate_attach): New declaration.
9427         * exec.c (exec_file_locate_attach): New function, factored
9428         out from...
9429         * infcmd.c (attach_command_post_wait): ...here.
9430
9431 2015-04-17  Mike Frysinger  <vapier@gentoo.org>
9432
9433         * MAINTAINERS: Add myself for Blackfin/write-after-approval.
9434
9435 2015-04-16  Yao Qi  <yao.qi@linaro.org>
9436
9437         * infrun.c (maybe_software_singlestep): Declare.
9438         (displaced_step_fixup): Call maybe_software_singlestep.
9439
9440 2015-04-15  Doug Evans  <dje@google.com>
9441
9442         * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
9443
9444 2015-04-15  Doug Evans  <dje@google.com>
9445
9446         * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
9447
9448 2015-04-15  Simon Marchi  <simon.marchi@ericsson.com>
9449
9450         * python/lib/gdb/command/unwinders.py: Add parentheses.
9451
9452 2015-04-15  Yao Qi  <yao.qi@linaro.org>
9453
9454         * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
9455
9456 2015-04-15  Yao Qi  <yao.qi@linaro.org>
9457
9458         * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
9459
9460 2015-04-15  Yao Qi  <yao.qi@linaro.org>
9461
9462         * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
9463         dsc->insn_size instead of 4.
9464
9465 2015-04-14  Gary Benson <gbenson@redhat.com>
9466
9467         * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
9468         * minidebug.c (lzma_stat): Likewise.
9469         * solib-spu.c (spu_bfd_iovec_stat): Likewise.
9470         * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
9471
9472 2015-04-13  Stan Shebs  <stanshebs@google.com>
9473
9474         * MAINTAINERS: Update my email address.
9475
9476 2015-04-13  John Baldwin  <jhb@FreeBSD.org>
9477
9478         * amd64-tdep.c (amd64_target_description): New function.
9479         * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
9480         * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
9481         (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9482         x86 extended save area.
9483         (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9484         * amd64bsd-nat.h: Export amd64bsd_xsave_len.
9485         * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
9486         (_initialize_amd64fbsd_nat): Set "to_read_description" to
9487         "amd64fbsd_read_description".
9488         * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
9489         (amd64fbsd_supply_xstateregset): New function.
9490         (amd64fbsd_collect_xstateregset): New function.
9491         Add "amd64fbsd_xstateregset".
9492         (amd64fbsd_iterate_over_regset_sections): New function.
9493         (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
9494         "I386_FBSD_XSAVE_XCR0_OFFSET".
9495         Add "iterate_over_regset_sections" gdbarch method.
9496         Add "core_read_description" gdbarch method.
9497         * i386-tdep.c (i386_target_description): New function.
9498         * i386-tdep.h: Export i386_target_description and tdesc_i386.
9499         * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
9500         (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9501         x86 extended save area.
9502         (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9503         * i386bsd-nat.h: Export i386bsd_xsave_len.
9504         * i386fbsd-nat.c (i386fbsd_read_description): New function.
9505         (_initialize_i386fbsd_nat): Set "to_read_description" to
9506         "i386fbsd_read_description".
9507         * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
9508         (i386fbsd_core_read_description): New function.
9509         (i386fbsd_supply_xstateregset): New function.
9510         (i386fbsd_collect_xstateregset): New function.
9511         Add "i386fbsd_xstateregset".
9512         (i386fbsd_iterate_over_regset_sections): New function.
9513         (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
9514         "I386_FBSD_XSAVE_XCR0_OFFSET".
9515         Add "iterate_over_regset_sections" gdbarch method.
9516         Add "core_read_description" gdbarch method.
9517         * i386fbsd-tdep.h: New file.
9518
9519 2015-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
9520
9521         * NEWS (Changes since GDB 7.9): Add removed -xdb.
9522         * breakpoint.c (command_line_is_silent): Remove xdb_commands
9523         conditional.
9524         (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
9525         and lb.
9526         * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
9527         va.
9528         * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
9529         conditional.
9530         * defs.h (xdb_commands): Remove declaration.
9531         * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
9532         * guile/scm-cmd.c (command_classes): Remove xdb from comment.
9533         * infcmd.c (run_no_args_command, go_command): Remove.
9534         (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
9535         * infrun.c (xdb_handle_command): Remove.
9536         (_initialize_infrun): Remove xdb_commands for lz and z.
9537         * main.c (xdb_commands): Remove variable.
9538         (captured_main): Remove "xdb" from long_options.
9539         (print_gdb_help): Remove --xdb from help.
9540         * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
9541         * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
9542         * stack.c (backtrace_full_command, args_plus_locals_info)
9543         (current_frame_command): Remove.
9544         (_initialize_stack): Remove xdb_commands for t, T and l.
9545         * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
9546         * thread.c (_initialize_thread): Remove xdb_commands condition.
9547         * tui/tui-layout.c (tui_toggle_layout_command)
9548         (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
9549         (_initialize_tui_layout): Remove xdb_commands for td and ts.
9550         * tui/tui-regs.c (tui_scroll_regs_forward_command)
9551         (tui_scroll_regs_backward_command): Remove.
9552         (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
9553         * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
9554         (_initialize_tui_win): Remove xdb_commands for U and w.
9555         * utils.c (pagination_on_command, pagination_off_command): Remove.
9556         (initialize_utils): Remove xdb_commands for am and sm.
9557
9558 2015-04-10  Pedro Alves  <palves@redhat.com>
9559
9560         * infrun.c (displaced_step_fixup): Switch to the event ptid
9561         earlier.  If the thread stopped for a watchpoint and the
9562         target/arch has non-continuable watchpoints, cancel the displaced
9563         step.
9564         (resume): Don't start a displaced step if in-line step-over info
9565         is valid.
9566
9567 2015-04-10  Pedro Alves  <palves@redhat.com>
9568
9569         * infrun.c (displaced_step_in_progress): New function.
9570         (do_target_resume): Advise target to report all signals if
9571         displaced stepping.
9572
9573 2015-04-10  Pedro Alves  <palves@redhat.com>
9574
9575         PR gdb/18216
9576         * infrun.c (process_event_stop_test): Don't assume a step-resume
9577         is set if tp->stepped_breakpoint is true.
9578
9579 2015-04-10  Yao Qi  <yao.qi@linaro.org>
9580
9581         * arm-tdep.c (install_alu_reg): Update comment.
9582         (thumb_copy_alu_reg): Remove local variable rn.  Update
9583         debugging message.  Use r2 instead of r1 in the modified
9584         instruction.
9585
9586 2015-04-10  Pedro Alves  <palves@redhat.com>
9587
9588         PR gdb/13858
9589         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
9590         linux_displaced_step_location as gdbarch_displaced_step_location
9591         hook.
9592         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
9593         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9594         * linux-tdep.c (linux_displaced_step_location): New function,
9595         based on ppc_linux_displaced_step_location.
9596         * linux-tdep.h (linux_displaced_step_location): New declaration.
9597         * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
9598         (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
9599         Delete.
9600         (ppc_linux_init_abi): Install linux_displaced_step_location as
9601         gdbarch_displaced_step_location hook, even without Cell/B.E..
9602         (_initialize_ppc_linux_tdep): Don't install
9603         ppc_linux_inferior_created as inferior_created observer.
9604         * s390-linux-tdep.c (s390_gdbarch_init): Install
9605         linux_displaced_step_location as gdbarch_displaced_step_location
9606         hook.
9607
9608 2015-04-09  Gary Benson <gbenson@redhat.com>
9609
9610         * common/common-remote-fileio.h: Rename to...
9611         * common/fileio.h: ...this.  Update all references.
9612         (remote_fileio_to_fio_error): Rename to...
9613         (host_to_fileio_error): ...this.
9614         (remote_fileio_to_be): Rename to...
9615         (host_to_bigendian): ...this.  Update all callers.
9616         (remote_fileio_to_fio_uint): Rename to...
9617         (host_to_fileio_uint): ...this.  Update all callers.
9618         (remote_fileio_to_fio_time): Rename to...
9619         (host_to_fileio_time): ...this.  Update all callers.
9620         (remote_fileio_to_fio_stat): Rename to...
9621         (host_to_fileio_stat): ...this.
9622         Update all references.
9623         * common/common-remote-fileio.c: Rename to...
9624         * common/fileio.c: ...this.  Update all references.
9625         (remote_fileio_to_fio_error): Rename to...
9626         (host_to_fileio_error): ...this.  Update all callers.
9627         (remote_fileio_mode_to_target): Rename to...
9628         (fileio_mode_pack): ...this.  Update all callers.
9629         (remote_fileio_to_fio_mode): Rename to...
9630         (host_to_fileio_mode): ...this.  Update all callers.
9631         (remote_fileio_to_fio_ulong): Rename to...
9632         (host_to_fileio_ulong): ...this.  Update all callers.
9633         (remote_fileio_to_fio_stat): Rename to...
9634         (host_to_fileio_stat): ...this.  Update all callers.
9635
9636 2015-04-09  Andy Wingo  <wingo@igalia.com>
9637
9638         * guile/scm-frame.c (gdbscm_frame_read_register): New function.
9639         (frame_functions): Bind gdbscm_frame_read_register to
9640         frame-read-register.
9641         * guile/lib/gdb.scm (frame-read-register): Export.
9642
9643 2015-04-09  Gary Benson <gbenson@redhat.com>
9644
9645         * common/common-remote-fileio.h (remote_fileio_to_fio_error):
9646         New declaration.
9647         * common/common-remote-fileio.c (remote_fileio_to_fio_error):
9648         New function, factored out the named functions below.
9649         * inf-child.c (gdb/fileio.h): Remove include.
9650         (common-remote-fileio.h): New include.
9651         (inf_child_errno_to_fileio_error): Remove function.  Update
9652         all callers to use remote_fileio_to_fio_error.
9653         * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
9654
9655 2015-04-09  Andy Wingo  <wingo@igalia.com>
9656
9657         * MAINTAINERS (Write After Approval): Add Andy Wingo.
9658
9659 2015-04-09  H.J. Lu  <hongjiu.lu@intel.com>
9660
9661         * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
9662         Replace $zlibdir with $ZLIBDIR in LDFLAGS.
9663         * configure: Regenerated.
9664
9665 2015-04-09  Pedro Alves  <palves@redhat.com>
9666
9667         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
9668         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
9669         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
9670         * gnulib/import/Makefile.am: Update.
9671         * gnulib/import/Makefile.in: Update.
9672         * gnulib/import/m4/gnulib-cache.m4: Update.
9673         * gnulib/import/m4/gnulib-comp.m4: Update.
9674         * gnulib/import/m4/strtok_r.m4: New file.
9675         * gnulib/import/strtok_r.c: New file.
9676
9677 2015-04-09  Pedro Alves  <palves@redhat.com>
9678
9679         * gnulib/update-gnulib.sh (aclocal version check): Filter out
9680         "called too early to check prototype".
9681
9682 2015-04-08  Sergio Durigan Junior  <sergiodj@redhat.com>
9683
9684         PR python/16699
9685         * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
9686         use a caching mechanism.  Adjust comments and code to reflect
9687         that.  Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
9688         (cmdpy_completer_handle_brkchars): Adjust call to
9689         cmdpy_completer_helper.  Call Py_XDECREF for 'resultobj'.
9690         (cmdpy_completer): Likewise.
9691
9692 2015-04-08  Yao Qi  <yao.qi@linaro.org>
9693
9694         * spu-tdep.c (spu_gdbarch_init): Don't call
9695         set_gdbarch_cannot_step_breakpoint.
9696
9697 2015-04-07  Sergio Durigan Junior  <sergiodj@redhat.com>
9698
9699         * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
9700
9701 2015-04-07  Pedro Alves  <palves@redhat.com>
9702
9703         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
9704         (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
9705         (delete_exited_threads): New declaration.
9706         * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
9707         * linux-nat.c (linux_nat_update_thread_list): New function.
9708         (linux_nat_add_target): Install it.
9709         * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
9710         * thread.c (prune_threads): Use ALL_THREADS_SAFE.
9711         (delete_exited_threads): New function.
9712
9713 2015-04-07  Pedro Alves  <pedro@codesourcery.com>
9714
9715         * infrun.c (resume) <displaced stepping debug output>: Get the
9716         leader thread's regcache, not resume_ptid's.
9717
9718 2015-04-06  Doug Evans  <xdje42@gmail.com>
9719
9720         * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
9721         VAR_DOMAIN.
9722         (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
9723         Include symbol domain in debugging output.
9724
9725 2015-04-06  Pedro Alves  <palves@redhat.com>
9726             Bernd Edlinger  <bernd.edlinger@hotmail.de>
9727
9728         * configure.ac: Remove the mingw32-specific stub-termcap.o
9729         fallback, and instead fallback to the stub termcap on all hosts.
9730         * configure: Regenerate.
9731         * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
9732         symbols.
9733
9734 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9735
9736         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9737         "top_level" parameter.
9738         (resolve_dynamic_type_internal): Remove the unused "top_level"
9739         parameter.  Update call to is_dynamic_type_internal.
9740         (is_dynamic_type): Update call to is_dynamic_type_internal.
9741         (resolve_dynamic_range): Update call to
9742         resolve_dynamic_type_internal.
9743         (resolve_dynamic_union): Likewise.
9744         (resolve_dynamic_struct): Likewise.
9745         (resolve_dynamic_type): Likewise.
9746
9747 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9748
9749         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9750         TYPE_CODE_REF types so that they are not considered as dynamic
9751         depending on the referenced type.
9752         (resolve_dynamic_type_internal): Likewise.
9753
9754 2015-04-02  H.J. Lu  <hongjiu.lu@intel.com>
9755
9756         * Makefile.in (top_srcdir): New.
9757         * configure: Regenerated.
9758
9759 2015-04-02  Gary Benson <gbenson@redhat.com>
9760
9761         * NEWS: Announce the new default sysroot of "target:".
9762
9763 2015-04-02  Gary Benson <gbenson@redhat.com>
9764
9765         * main.c (captured_main): Set gdb_sysroot to "target:"
9766         if not otherwise set.
9767
9768 2015-04-02  Gary Benson <gbenson@redhat.com>
9769
9770         * exec.c (exec_file_attach): Support "target:" filenames.
9771
9772 2015-04-02  Gary Benson <gbenson@redhat.com>
9773
9774         * solib.c (solib_find): Strip "target:" prefix from sysroot
9775         if accessing local files.
9776
9777 2015-04-02  Gary Benson <gbenson@redhat.com>
9778
9779         * symfile.c (symfile_bfd_open): Reorder to remove duplicated
9780         checks and error messages.
9781
9782 2015-04-02  Gary Benson <gbenson@redhat.com>
9783
9784         * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
9785         (remote_filename_p): Remove declaration.
9786         (remote_bfd_open): Likewise.
9787         * remote.c (remote_bfd_iovec_open): Remove function.
9788         (remote_bfd_iovec_close): Likewise.
9789         (remote_bfd_iovec_pread): Likewise.
9790         (remote_bfd_iovec_stat): Likewise.
9791         (remote_filename_p): Likewise.
9792         (remote_bfd_open): Likewise.
9793         * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
9794         * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
9795         (gdb_bfd_open_maybe_remote): Remove function.
9796         (symfile_bfd_open):  Replace remote filename check with
9797         target filename check.
9798         (reread_symbols): Use gdb_bfd_open.
9799         * build-id.c (gdbcore.h): New include.
9800         (build_id_to_debug_bfd): Use gdb_bfd_open.
9801         * infcmd.c (attach_command_post_wait): Remove remote filename
9802         check.
9803         * solib.c (solib_find): Replace remote-specific handling with
9804         target-specific handling.  Update comments where necessary.
9805         (solib_bfd_open): Replace remote-specific handling with
9806         target-specific handling.
9807         (gdb_sysroot_changed): New function.
9808         (_initialize_solib): Call the above when gdb_sysroot changes.
9809         * windows-tdep.c (gdbcore.h): New include.
9810         (windows_xfer_shared_library): Use gdb_bfd_open.
9811
9812 2015-04-02  Gary Benson <gbenson@redhat.com>
9813
9814         * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
9815         (is_target_filename): New declaration.
9816         (gdb_bfd_has_target_filename): Likewise.
9817         (gdb_bfd_open): Update documentation comment.
9818         * gdb_bfd.c (target.h): New include.
9819         (gdb/fileio.h): Likewise.
9820         (is_target_filename): New function.
9821         (gdb_bfd_has_target_filename): Likewise.
9822         (fileio_errno_to_host): Likewise.
9823         (gdb_bfd_iovec_fileio_open): Likewise.
9824         (gdb_bfd_iovec_fileio_pread): Likewise.
9825         (gdb_bfd_iovec_fileio_close): Likewise.
9826         (gdb_bfd_iovec_fileio_fstat): Likewise.
9827         (gdb_bfd_open): Use target fileio to access paths prefixed
9828         with "target:" where necessary.
9829
9830 2015-04-02  Gary Benson <gbenson@redhat.com>
9831
9832         * target.h (struct target_ops) <to_filesystem_is_local>:
9833         New field.
9834         (target_filesystem_is_local): New macro.
9835         * target-delegates.c: Regenerate.
9836         * remote.c (remote_filesystem_is_local): New function.
9837         (init_remote_ops): Initialize to_filesystem_is_local.
9838
9839 2015-04-02  Gary Benson <gbenson@redhat.com>
9840
9841         * target.h (struct target_ops) <to_fileio_fstat>: New field.
9842         (target_fileio_fstat): New declaration.
9843         * target.c (target_fileio_fstat): New function.
9844         * inf-child.c (inf_child_fileio_fstat): Likewise.
9845         (inf_child_target): Initialize to_fileio_fstat.
9846         * remote.c (init_remote_ops): Likewise.
9847
9848 2015-04-01  Sasha Smundak  <asmundak@google.com>
9849
9850         * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
9851         (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
9852         (py-unwind.o): New recipe.
9853         * NEWS: mention Python frame unwinding.
9854         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
9855         gdb/unwinder.py and gdb/command/unwinder.py
9856         * python/lib/gdb/__init__.py (packages): Add frame_unwinders
9857         list.
9858         (execute_unwinders): New function.
9859         * python/lib/gdb/command/unwinders.py: New file.
9860         * python/lib/gdb/unwinder.py: New file.
9861         * python/py-objfile.c (objfile_object): Add frame_unwinders field.
9862         (objfpy_dealloc): Decrement frame_unwinders reference count.
9863         (objfpy_initialize): Create frame_unwinders list.
9864         (objfpy_get_frame_unwinders): New function.
9865         (objfpy_set_frame_unwinders): Ditto.
9866         (objfile_getset): Add frame_unwinders attribute to Objfile.
9867         * python/py-progspace.c (pspace_object): Add frame_unwinders field.
9868         (pspy_dealloc): Decrement frame_unwinders reference count.
9869         (pspy_initialize): Create frame_unwinders list.
9870         (pspy_get_frame_unwinders): New function.
9871         (pspy_set_frame_unwinders): Ditto.
9872         (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
9873         * python/py-unwind.c: New file.
9874         * python/python-internal.h (pspy_get_name_unwinders): New prototype.
9875         (objpy_get_frame_unwinders): New prototype.
9876         (gdbpy_initialize_unwind): New prototype.
9877         * python/python.c (gdbpy_apply_type_printers): Call
9878         gdbpy_initialize_unwind.
9879
9880 2015-04-01  Pedro Alves  <palves@redhat.com>
9881
9882         * infrun.c (resume): Check currently_stepping after clearing
9883         stepped_breakpoint, not before.
9884
9885 2015-04-01  Pedro Alves  <palves@redhat.com>
9886
9887         * infrun.c (print_target_wait_results): Print all the ptid
9888         elements.
9889
9890 2015-04-01  Pedro Alves  <palves@redhat.com>
9891
9892         * infrun.c (keep_going): Also discard cleanups if inserting
9893         breakpoints fails.
9894
9895 2015-04-01  Pedro Alves  <palves@redhat.com>
9896
9897         * infrun.c (wait_for_inferior): Install the
9898         finish_thread_state_cleanup cleanup across the whole function, not
9899         just around handle_inferior_event.
9900
9901 2015-04-01  Pedro Alves  <palves@redhat.com>
9902
9903         * infrun.c (resume) <step past permanent breakpoint>: Use
9904         do_target_resume.
9905
9906 2015-04-01  Pedro Alves  <palves@redhat.com>
9907
9908         * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9909
9910 2015-04-01  Pierre-Marie de Rodat  <derodat@adacore.com>
9911
9912         * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9913
9914 2015-04-01  Pedro Alves  <palves@redhat.com>
9915
9916         * linux-thread-db.c (record_thread): Readd the thread to gdb's
9917         list if it was marked exited.
9918
9919 2015-04-01  H.J. Lu  <hongjiu.lu@intel.com>
9920
9921         * configure: Regenerated.
9922
9923 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
9924             Jan Kratochvil  <jan.kratochvil@redhat.com>
9925             Oleg Nesterov  <oleg@redhat.com>
9926
9927         PR corefiles/16092
9928         * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9929         New enum identifying the various options of the coredump_filter
9930         file.
9931         (struct smaps_vmflags): New struct.
9932         (use_coredump_filter): New variable.
9933         (decode_vmflags): New function.
9934         (mapping_is_anonymous_p): Likewise.
9935         (dump_mapping_p): Likewise.
9936         (linux_find_memory_regions_full): New variables
9937         'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9938         Removed variable 'modified'.  Read /proc/<PID>/smaps file; improve
9939         parsing of its information.  Implement memory mapping filtering
9940         based on its contents.
9941         (show_use_coredump_filter): New function.
9942         (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9943         * NEWS: Mention the possibility of using the
9944         '/proc/PID/coredump_filter' file when generating a corefile.
9945         Mention new command 'set use-coredump-filter'.
9946
9947 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
9948
9949         * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9950         read_memory_unsigned_integer.
9951
9952 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
9953
9954         * Makefile.in (ZLIB): New.
9955         (ZLIBINC): Likewise.
9956         (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9957         (CLIBS): Add $(ZLIB).
9958         * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9959         Add -lz to LIBS.
9960         * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9961         * top.c (print_gdb_configuration): Remove --with-zlib and
9962         --without-zlib.
9963         * config.in: Regenerated.
9964         * configure: Likewise.
9965
9966 2015-03-31  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9967
9968         * NEWS: Mention info os cpus support.
9969         * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9970         (struct osdata_type): Add cpus entry, reorder the entries in
9971         alphabetical order.
9972
9973 2015-03-31  Matthias Klose  <doko@ubuntu.com>
9974
9975         * compile/compile.c (compile_to_object): Allow triplets with or
9976         without vendor set.
9977
9978 2015-03-30  Doug Evans  <dje@google.com>
9979
9980         PR c++/18141
9981         * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9982         klass in VAR_DOMAIN.
9983
9984 2015-03-30  Gary Benson <gbenson@redhat.com>
9985
9986         * remote.c (remote_mourn_1): Remove function.  Update all callers
9987         to use remote_mourn.
9988         (extended_remote_mourn_1): Remove function.  Update all callers
9989         to use extended_remote_mourn.
9990         (extended_remote_attach_1): Remove function.  Update all callers
9991         to use extended_remote_attach.
9992
9993 2015-03-28  James Bowman  <james.bowman@ftdichip.com>
9994
9995         * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9996         (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9997         (ALLDEPFILES): Add ft32-tdep.c.
9998         * configure.tgt: Add FT32 entry.
9999         * ft32-tdep.c: New file, FT32 target-dependent code.
10000         * ft32-tdep.h: New file, FT32 target-dependent code.
10001
10002 2015-03-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
10003
10004         Revert:
10005         2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10006         Code cleanup.
10007         * printcmd.c (print_command_1): Move expr variable scope.
10008
10009 2015-03-27  Joel Brobecker  <brobecker@adacore.com>
10010
10011         * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
10012
10013 2015-03-27  Andrzej Kaczmarek  <andrzej.kaczmarek@tieto.com>
10014
10015         * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
10016         sections.
10017
10018 2015-03-26  Joel Brobecker  <brobecker@adacore.com>
10019
10020         * dtrace-probe.c (dtrace_process_dof_probe): Contain any
10021         exception raised while parsing the probe arguments.
10022         Force parsing to be done using the C language parser.
10023         * expression.h (parse_expression_with_language): Declare.
10024         * parse.c (parse_expression_with_language): New function.
10025
10026 2015-03-26  Jon Turney  <jon.turney@dronecode.org.uk>
10027
10028         * MAINTAINERS (Write After Approval): Add "Jon Turney".
10029
10030 2015-03-26  Andy Wingo  <wingo@igalia.com>
10031
10032         PR symtab/18148
10033         * dwarf2read.c (struct partial_die_info): Add has_const_value
10034         member.
10035         (add_partial_symbol): Don't punt on symbols that have const_value
10036         attributes.
10037         (read_partial_die): Detect DW_AT_const_value.
10038
10039 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10040
10041         Code cleanup.
10042         * printcmd.c (print_command_1): Move expr variable scope.
10043
10044 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10045
10046         Code cleanup.
10047         * printcmd.c (validate_format): Make the parameter cmdname const.
10048
10049 2015-03-26  Don Breazeal  <donb@codesourcery.com>
10050
10051         * remote.c (_initialize_remote): Update comment.
10052
10053 2015-03-26  Pedro Alves  <palves@redhat.com>
10054             Jon TURNEY  <jon.turney@dronecode.org.uk>
10055
10056         * coffread.c (coff_symfile_read): When constructing the name of an
10057         import stub symbol from import symbol for amd64, only skip the
10058         char after _imp_ if the target is underscored (like i386) and the
10059         char is indeed the target's leading char.
10060
10061 2015-03-25  Pedro Alves  <palves@redhat.com>
10062
10063         * target.h <to_async>: Replace 'callback' and 'context' parameters
10064         with boolean 'enable' parameter.
10065         (target_async): Replace CALLBACK and CONTEXT parameters with
10066         boolean ENABLE parameter.
10067         * inf-loop.c (inferior_event_handler): Adjust.
10068         * linux-nat.c (linux_nat_attach, linux_nat_resume)
10069         (linux_nat_resume): Adjust.
10070         (async_client_callback, async_client_context): Delete.
10071         (handle_target_event): Call inferior_event_handler directly.
10072         (linux_nat_async): Replace 'callback' and 'context' parameters
10073         with boolean 'enable' parameter.  Adjust.  Remove references to
10074         async_client_callback and async_client_context.
10075         (linux_nat_close): Adjust.
10076         * record-btrace.c (record_btrace_async): Replace 'callback' and
10077         'context' parameters with boolean 'enable' parameter.  Adjust.
10078         (record_btrace_resume): Adjust.
10079         * record-full.c (record_full_async): Replace 'callback' and
10080         'context' parameters with boolean 'enable' parameter.  Adjust.
10081         (record_full_resume, record_full_core_resume): Adjust.
10082         * remote.c (struct remote_state) <async_client_callback,
10083         async_client_context>: Delete fields.
10084         (remote_start_remote, extended_remote_attach_1, remote_resume)
10085         (extended_remote_create_inferior): Adjust.
10086         (remote_async_serial_handler): Call inferior_event_handler
10087         directly.
10088         (remote_async): Replace 'callback' and 'context' parameters with
10089         boolean 'enable' parameter.  Adjust.
10090         * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
10091         Adjust.
10092         * target-delegates.c: Regenerate.
10093
10094 2015-03-25  Gary Benson <gbenson@redhat.com>
10095             Pedro Alves  <palves@redhat.com>
10096
10097         * target.c (fileio_ft_t): New typedef, define object vector.
10098         (fileio_fhandles): New static variable.
10099         (is_closed_fileio_fh): New macro.
10100         (lowest_closed_fd): New static variable.
10101         (acquire_fileio_fd): New function.
10102         (release_fileio_fd): Likewise.
10103         (fileio_fd_to_fh): New macro.
10104         (target_fileio_open): Wrap the file descriptor on success.
10105         (target_fileio_pwrite): Updated to use wrapped file descriptor.
10106         (target_fileio_pread): Likewise.
10107         (target_fileio_close): Likewise.
10108
10109 2015-03-24  Pedro Alves  <palves@redhat.com>
10110
10111         * thread.c (thread_apply_all_command): Take exited threads into
10112         account.
10113
10114 2015-03-24  Pedro Alves  <palves@redhat.com>
10115
10116         * infrun.c (resume, proceed): Mention
10117         switch_back_to_stepped_thread, not switch_back_to_stepping.
10118
10119 2015-03-24  Pedro Alves  <palves@redhat.com>
10120
10121         * infrun.c (user_visible_resume_ptid): Rewrite going from
10122         most-locked to unlocked instead of the opposite.  Move comment ...
10123         * infrun.h (user_visible_resume_ptid): ... here.
10124
10125 2015-03-24  Pedro Alves  <palves@redhat.com>
10126
10127         * linux-nat.c (linux_nat_resume): Output debug logs before trying
10128         to resume the event lwp.  Use the lwp's ptid instead of the passed
10129         in (maybe wildcard) ptid.
10130         (stop_wait_callback): Tweak debug log output.
10131         (check_stopped_by_breakpoint): Tweak debug log output.  Also dump
10132         TRAP_TRACE.
10133         (linux_nat_filter_event): In debug output, distinguish a
10134         resume_stop SIGSTOP from a delayed SIGSTOP.  Output debug logs
10135         before trying to resume the lwp.
10136
10137 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
10138
10139         * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
10140         pointer indirection.
10141         * gdbtypes.c (get_dyn_prop): Adjust, following change above.
10142         (add_dyn_prop, copy_dynamic_prop_list): Likewise.
10143
10144 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
10145
10146         * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
10147         Renames DYN_ATTR_DATA_LOCATION.
10148         (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
10149         DYN_ATTR_DATA_LOCATION.
10150         * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
10151         instead of DYN_ATTR_DATA_LOCATION.
10152
10153 2015-03-24  Pedro Alves  <palves@redhat.com>
10154
10155         * breakpoint.c (until_break_command): Adjust call to proceed.
10156         * gdbthread.h (struct thread_control_state) <stepping_command>:
10157         New field.
10158         * infcall.c (run_inferior_call): Adjust call to proceed.
10159         * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
10160         Adjust calls to proceed.
10161         (set_step_frame): Set the current thread's step_start_function
10162         here.
10163         (step_once): Adjust calls to proceed.
10164         (jump_command, signal_command, until_next_command)
10165         (finish_backward, finish_forward, proceed_after_attach_callback)
10166         (attach_command_post_wait): Adjust calls to proceed.
10167         * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
10168         (do_target_resume): New function, factored out from ...
10169         (resume): ... here.  Remove 'step' parameter.  Instead, check
10170         currently_stepping to determine whether the thread should be
10171         single-stepped.
10172         (proceed): Remove 'step' parameter and don't set the thread's
10173         step_start_function here.  Adjust call to 'resume'.
10174         (handle_inferior_event): Adjust calls to 'resume'.
10175         (switch_back_to_stepped_thread): Use do_target_resume instead of
10176         'resume'.
10177         (keep_going): Adjust calls to 'resume'.
10178         * infrun.h (proceed): Remove 'step' parameter.
10179         (resume): Likewise.
10180         * windows-nat.c (do_initial_windows_stuff): Adjust call to
10181         'resume'.
10182         * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
10183
10184 2015-03-24  Pedro Alves  <palves@redhat.com>
10185
10186         * gdbthread.h (struct thread_control_state) <stepping_command>:
10187         New field.
10188         * infcmd.c (step_once): Pass step=1 to clear_proceed_status.  Set
10189         the thread's stepping_command field.
10190         * infrun.c (resume): Check the thread's stepping_command flag to
10191         determine which threads should be resumed.  Rename 'entry_step'
10192         local to user_step.
10193         (clear_proceed_status_thread): Clear 'stepping_command'.
10194         (schedlock_applies): Change parameter type to struct thread_info
10195         pointer.  Adjust.
10196         (find_thread_needs_step_over): Remove 'step' parameter.  Adjust.
10197         (switch_back_to_stepped_thread): Adjust calls to
10198         'schedlock_applies'.
10199         (_initialize_infrun): Adjust "set scheduler-locking step" help.
10200
10201 2015-03-24  Pedro Alves  <palves@redhat.com>
10202
10203         * infrun.c (step_start_function): Delete and ...
10204         * gdbthread.h (struct thread_control_state) <step_start_function>:
10205         ... now a field here.
10206         * infrun.c (clear_proceed_status_thread): Clear the thread's
10207         step_start_function.
10208         (proceed, process_event_stop_test, print_stop_event): Adjust.
10209
10210 2015-03-24  Pedro Alves  <palves@redhat.com>
10211
10212         * infrun.c (proceed): No longer handle negative step.
10213
10214 2015-03-24  Gary Benson  <gbenson@redhat.com>
10215
10216         * nat/x86-linux.h (x86_linux_new_thread): New declaration.
10217         (x86_linux_prepare_to_resume): Likewise.
10218         * x86-linux-nat.c (x86_linux_new_thread):
10219         Moved to nat/x86-linux.c.
10220         (x86_linux_prepare_to_resume): Likewise.
10221         * nat/x86-linux.c (x86_linux_new_thread): New function.
10222         (x86_linux_prepare_to_resume): Likewise.
10223
10224 2015-03-24  Gary Benson  <gbenson@redhat.com>
10225
10226         * nat/x86-linux-dregs.h: New file.
10227         * nat/x86-linux-dregs.c: Likewise.
10228         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
10229         (x86-linux-dregs.o): New rule.
10230         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
10231         * config/i386/linux64.mh (NATDEPFILES): Likewise.
10232         * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
10233         (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10234         (x86_linux_dr_get): Likewise.
10235         (x86_linux_dr_set): Likewise.
10236         (x86_linux_dr_get_addr): Likewise.
10237         (x86_linux_dr_get_control): Likewise.
10238         (x86_linux_dr_get_status): Likewise.
10239         (update_debug_registers_callback): Likewise.
10240         (x86_linux_dr_set_control): Likewise.
10241         (x86_linux_dr_set_addr): Likewise.
10242         (x86_linux_update_debug_registers): Likewise.
10243
10244 2015-03-24  Gary Benson  <gbenson@redhat.com>
10245
10246         * x86-linux-nat.c (x86_linux_update_debug_registers):
10247         New function, factored out from...
10248         (x86_linux_prepare_to_resume): ...this.
10249
10250 2015-03-24  Gary Benson  <gbenson@redhat.com>
10251
10252         * x86-linux-nat.c (x86_linux_dr_get): Update comments.
10253         (x86_linux_dr_set): Likewise.
10254         (x86_linux_dr_get_addr): Likewise.
10255         (x86_linux_dr_get_control): Likewise.
10256         (x86_linux_dr_get_status): Likewise.
10257         (update_debug_registers_callback): Likewise.
10258         (x86_linux_dr_set_control): Likewise.
10259         (x86_linux_dr_set_addr): Likewise.
10260         (x86_linux_prepare_to_resume): Likewise.
10261         (x86_linux_new_thread): Likewise.
10262
10263 2015-03-24  Gary Benson  <gbenson@redhat.com>
10264
10265         * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
10266         (x86_linux_new_thread): Rename argument.
10267
10268 2015-03-24  Gary Benson  <gbenson@redhat.com>
10269
10270         * nat/x86-linux.h: New file.
10271         * nat/x86-linux.c: Likewise.
10272         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
10273         (x86-linux.o): New rule.
10274         * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
10275         * config/i386/linux64.mh (NATDEPFILES): Likewise.
10276         * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
10277         (lwp_set_arch_private_info): New declaration.
10278         (lwp_arch_private_info): Likewise.
10279         * linux-nat.c (lwp_set_arch_private_info): New function.
10280         (lwp_arch_private_info): Likewise.
10281         * x86-linux-nat.c: Include nat/x86-linux.h.
10282         (arch_lwp_info): Removed structure.
10283         (update_debug_registers_callback):
10284         Use lwp_set_debug_registers_changed.
10285         (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10286         and lwp_set_debug_registers_changed.
10287         (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10288
10289 2015-03-24  Gary Benson  <gbenson@redhat.com>
10290
10291         * nat/linux-nat.h (ptid_of_lwp): New declaration.
10292         (lwp_is_stopped): Likewise.
10293         (lwp_stop_reason): Likewise.
10294         * linux-nat.c (ptid_of_lwp): New function.
10295         (lwp_is_stopped): Likewise.
10296         (lwp_is_stopped_by_watchpoint): Likewise.
10297         * x86-linux-nat.c (update_debug_registers_callback):
10298         Use lwp_is_stopped.
10299         (x86_linux_prepare_to_resume): Use ptid_of_lwp and
10300         lwp_stop_reason.
10301
10302 2015-03-24  Gary Benson  <gbenson@redhat.com>
10303
10304         * linux-nat.h (linux_stop_lwp): Move declaration to...
10305         * nat/linux-nat.h (linux_stop_lwp): New declaration.
10306
10307 2015-03-24  Gary Benson  <gbenson@redhat.com>
10308
10309         * linux-nat.h: Include nat/linux-nat.h.
10310         (iterate_over_lwps): Move declaration to nat/linux-nat.h.
10311         * nat/linux-nat.h (struct lwp_info): New forward declaration.
10312         (iterate_over_lwps_ftype): New typedef.
10313         (iterate_over_lwps): New declaration.
10314         * linux-nat.h (iterate_over_lwps): Update comment.  Use
10315         iterate_over_lwps_ftype.  Update callback return value check.
10316
10317 2015-03-24  Gary Benson  <gbenson@redhat.com>
10318
10319         * x86-nat.h (x86_debug_reg_state): Move declaration to...
10320         * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
10321
10322 2015-03-24  Gary Benson  <gbenson@redhat.com>
10323
10324         * nat/linux-nat.h (current_lwp_ptid): New declaration.
10325         * linux-nat.c (current_lwp_ptid): New function.
10326         * x86-linux-nat.c: Include nat/linux-nat.h.
10327         (x86_linux_dr_get_addr): Use current_lwp_ptid.
10328         (x86_linux_dr_get_control): Likewise.
10329         (x86_linux_dr_get_status): Likewise.
10330         (x86_linux_dr_set_control): Likewise.
10331         (x86_linux_dr_set_addr): Likewise.
10332
10333 2015-03-24  Antoine Tremblay  <antoine.tremblay@ericsson.com>
10334
10335         PR breakpoints/16466
10336         * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
10337
10338 2015-03-23  Joel Brobecker  <brobecker@adacore.com>
10339
10340         * ser-mingw.c (ser_windows_setparity): Fix indentation.
10341         * ser-unix.c (hardwire_setparity): Likewise.
10342
10343 2015-03-23  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
10344
10345         * NEWS: Mention set/show serial parity command.
10346         * monitor.c (monitor_open): Call serial_setparity.
10347         * remote.c (remote_open_1): Likewise.
10348         * ser-base.c (ser_base_serparity): New function.
10349         * ser-base.h (ser_base_setparity): Add  declaration.
10350         * ser-go32.c (dos_ops): Set "setparity" field.
10351         * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
10352         state.Parity.
10353         (ser_windows_setparity): New function.
10354         (hardwire_ops): Add ser_windows_setparity.
10355         (tty_ops): Add NULL for setparity field.
10356         (pipe_ops): Add ser_base_setparity.
10357         (tcp_ops): Likewise.
10358         * ser-pipe.c (pipe_ops): Likewise.
10359         * ser-tcp.c (tcp_ops): Likewise.
10360         * ser-unix.c (hardwire_setparity): Add declaration.
10361         (hardwire_raw): Don't reset PARENB flag.
10362         (hardwire_setparity): New function.
10363         (hardwire_ops): Add hardwire_setparity.
10364         * serial.c (serial_setparity): New function.
10365         (serial_parity): New global.
10366         (parity_none, parity_odd, parity_even, parity_enums, parity):
10367         New static globals.
10368         (set_parity): New function.
10369         (_initialize_serial): Add set/show serial parity commands.
10370         * serial.h (GDBPARITY_NONE): Define.
10371         (GDBPARITY_ODD): Define.
10372         (GDBPARITY_EVEN): Define.
10373         (serial_setparity) Add declaration.
10374         (struct serial_ops): Add setparity field.
10375         * target.h (serial_parity): Add declaration.
10376
10377 2015-03-23  Keith Seitz  <keiths@redhat.com>
10378
10379         * linespec.c (linespec_lexer_lex_keyword): Update comment.
10380
10381 2015-03-23  Keith Seitz  <keiths@redhat.com>
10382
10383         * breakpoint.c (parse_breakpoint_sals): Use
10384         linespec_lexer_lex_keyword to ascertain if the user specified
10385         a NULL location.
10386         * linespec.c [IF_KEYWORD_INDEX]: Define.
10387         (linespec_lexer_lex_keyword): Export.
10388         (struct ls_parser) <keyword_ok>: Remove.
10389         A keyword is only a keyword if not followed by another keyword.
10390         (linespec_lexer_lex_one): Remove keyword_ok handling.
10391         Add comment explaining why the parsing stream is not advanced
10392         when a keyword is seen.
10393         (parse_linespec): Remove parser->keyword_ok.
10394         * linespec.h (linespec_lexer_lex_keyword): Add declaration.
10395
10396 2015-03-23  Keith Seitz  <keiths@redhat.com>
10397
10398         PR gdb/18021
10399         * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
10400         if we find a static method with DW_AT_vtable_elem_location.
10401
10402 2015-03-21  Eli Zaretskii  <eliz@gnu.org>
10403
10404         * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
10405         before the second loop, to avoid undefined behavior.  Reported by
10406         Anton Blanchard <anton@samba.org>.
10407
10408 2015-03-20  Keven Boell  <keven.boell@intel.com>
10409
10410         * gdbtypes.c (resolve_dynamic_type_internal): Adapt
10411         data_location usage to linked list.
10412         (resolve_dynamic_type_internal): Adapt data_location to
10413         linked list.
10414         (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
10415         (copy_type_recursive, copy_type): Add copy of linked list.
10416         * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
10417         (struct dynamic_prop_list): New struct.
10418         * dwarf2read.c (set_die_type): Set data_location data.
10419
10420 2015-03-20  Pedro Alves  <palves@redhat.com>
10421
10422         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
10423         inner block and make it const.
10424         * machoread.c (get_archive_prefix_len): Make "lparen" const.
10425
10426 2015-03-20  Pedro Alves  <palves@redhat.com>
10427
10428         * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
10429         * breakpoint.h (set_breakpoint_condition): Update declaration.
10430
10431 2015-03-20  Pedro Alves  <palves@redhat.com>
10432
10433         * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
10434
10435 2015-03-20  Pedro Alves  <palves@redhat.com>
10436
10437         * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
10438
10439 2015-03-20  Pedro Alves  <palves@redhat.com>
10440
10441         * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
10442
10443 2015-03-20  Pedro Alves  <palves@redhat.com>
10444
10445         * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
10446         (nto_init_solib_absolute_prefix): Likewise.
10447
10448 2015-03-20  Pedro Alves  <palves@redhat.com>
10449
10450         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
10451         * spu-tdep.c (spu_gdbarch_init): Make "name" const.
10452
10453 2015-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
10454
10455         * config/djgpp/README: Remove gdb.hp.
10456
10457 2015-03-20  Yao Qi  <yao.qi@linaro.org>
10458
10459         * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
10460         set_gdbarch_cannot_step_breakpoint.
10461
10462 2015-03-19  Pedro Alves  <palves@redhat.com>
10463
10464         * linux-nat.c (linux_resume_one_lwp): Rename to ...
10465         (linux_resume_one_lwp_throw): ... this.  Don't handle ESRCH here,
10466         instead call perror_with_name.
10467         (check_ptrace_stopped_lwp_gone): New function.
10468         (linux_resume_one_lwp): Reimplement as wrapper around
10469         linux_resume_one_lwp_throw that swallows errors if the LWP is
10470         gone.
10471         (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
10472         swallows errors if the LWP is gone.  Use
10473         linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
10474
10475 2015-03-19  Pedro Alves  <palves@redhat.com>
10476
10477         * linux-nat.c (status_callback): Return early if the LWP has no
10478         status pending.
10479
10480 2015-03-19  Pedro Alves  <palves@redhat.com>
10481
10482         * linux-nat.c (select_event_lwp_callback): Update comment to no
10483         longer mention SIGTRAP.
10484
10485 2015-03-18  Tristan Gingold  <gingold@adacore.com>
10486
10487         * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
10488         redirection code to ...
10489         (amd64_windows_frame_decode_insns): ... Here.  Fix in prologue
10490         checks.  Fix SAVE_NONVOL operations.  Add debug code and comments.
10491
10492 2015-03-18  Gary Benson <gbenson@redhat.com>
10493
10494         (remote_protocol_features): Remove the "vFile:fstat" feature.
10495         (remote_hostio_fstat): Probe for "vFile:fstat" support.
10496
10497 2015-03-11  Yao Qi  <yao.qi@linaro.org>
10498
10499         PR tdep/18107
10500         * aarch64-linux-tdep.c: Include xml-syscall.h
10501         (aarch64_linux_get_syscall_number): New function.
10502         (aarch64_linux_init_abi): Call
10503         set_gdbarch_get_syscall_number.
10504         * syscalls/aarch64-linux.xml: New file.
10505
10506 2015-03-17  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
10507
10508         * ser-base.h (ser_base_setstopbits): Change second argument name
10509         from "rate" to "num".
10510
10511 2015-03-17  Gary Benson <gbenson@redhat.com>
10512             Luke Allardyce <lukeallardyce@gmail.com>
10513
10514         PR gdb/18131
10515         * common/common-remote-fileio.h (sys/stat.h): New include.
10516         (stuct stat): Remove forward declaration.
10517
10518 2015-03-16  John Baldwin  <jhb@FreeBSD.org>
10519
10520         * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
10521         before writing core register notes.
10522
10523 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
10524             Pedro Alves  <palves@redhat.com>
10525
10526         * gdb_curses.h (tgetnum): Mark with EXTERN_C.
10527         * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
10528         (tgoto): Wrap with extern "C".
10529
10530 2015-03-16  Pedro Alves  <palves@redhat.com>
10531             Yuanhui Zhang  <asmwarrior@gmail.com>
10532
10533         * stub-termcap.c (tputs): Change prototype.
10534
10535 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
10536             Pedro Alves  <palves@redhat.com>
10537
10538         * windows-nat.c (struct thread_info_struct): Rename to ...
10539         (struct windows_thread_info_struct): ... this.
10540         (thread_info): Rename to ...
10541         (windows_thread_info): ... this.
10542         All users updated.
10543
10544 2015-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10545             Pedro Alves  <palves@redhat.com>
10546
10547         * NEWS: New Removed targets and native configurations.
10548
10549 2015-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
10550
10551         Remove HPUX.
10552         * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
10553         (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
10554         (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
10555         ia64-hpux-tdep.h, solib-ia64-hpux.h.
10556         (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
10557         ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
10558         * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
10559         hppa-hpux-tdep.c.
10560         * config/ia64/hpux.mh: Remove file.
10561         * config/pa/hpux.mh: Remove file.
10562         * configure: Rebuilt.
10563         * configure.ac (dlgetmodinfo, somread.o): Remove.
10564         * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10565         (ia64-*-hpux*): Remove its float format exception.
10566         * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10567         * hppa-hpux-nat.c: Remove file.
10568         * hppa-hpux-tdep.c: Remove file.
10569         * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
10570         Move them here from hppa-tdep.h
10571         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
10572         (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
10573         * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
10574         Move them to hppa-tdep.c.
10575         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
10576         declarations.
10577         * ia64-hpux-nat.c: Remove file.
10578         * ia64-hpux-tdep.c: Remove file.
10579         * ia64-hpux-tdep.h: Remove file.
10580         * inf-ttrace.c: Remove file.
10581         * inf-ttrace.h: Remove file.
10582         * solib-ia64-hpux.c: Remove file.
10583         * solib-ia64-hpux.h: Remove file.
10584         * solib-pa64.c: Remove file.
10585         * solib-pa64.h: Remove file.
10586         * solib-som.c: Remove file.
10587         * solib-som.h: Remove file.
10588         * somread.c: Remove file.
10589
10590 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
10591
10592         * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
10593         * config.in: Regenerate.
10594         * configure: Regenerate.
10595         * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
10596         define.
10597         (fbsd_find_memory_regions): Use kinfo_getvmmap to
10598         enumerate memory regions if present.
10599
10600 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
10601
10602         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
10603         * i386fbsd-tdep.c: Fix style in various gdb_static_assert
10604         expressions.
10605         (i386fbsd_sigtramp_p): Likewise.
10606
10607 2015-03-12  John Baldwin  <jhb@FreeBSD.org>
10608
10609         * MAINTAINERS (Write After Approval): Add John Baldwin.
10610
10611 2015-03-12  Gary Benson <gbenson@redhat.com>
10612
10613         * solib.c (_initialize_solib): Make "set/show sysroot" use
10614         add_setshow_optional_filename_cmd so it can be restored to
10615         empty after being set.
10616
10617 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
10618
10619         * Makefile.in (SFILES): New source break-catch-syscall.c.
10620         (COMMON_OBS): New object break-catch-syscall.o.
10621         * break-catch-syscall.c: New file.
10622         * breakpoint.c: Remove inclusion of "xml-syscall.h".
10623         (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
10624         (struct syscall_catchpoint): Likewise.
10625         (dtor_catch_syscall): Likewise.
10626         (catch_syscall_inferior_data): Likewise.
10627         (struct catch_syscall_inferior_data): Likewise.
10628         (get_catch_syscall_inferior_data): Likewise.
10629         (catch_syscall_inferior_data_cleanup): Likewise.
10630         (insert_catch_syscall): Likewise.
10631         (remove_catch_syscall): Likewise.
10632         (breakpoint_hit_catch_syscall): Likewise.
10633         (print_it_catch_syscall): Likewise.
10634         (print_one_catch_syscall): Likewise.
10635         (print_mention_catch_syscall): Likewise.
10636         (print_recreate_catch_syscall): Likewise.
10637         (catch_syscall_breakpoint_ops): Likewise.
10638         (syscall_catchpoint_p): Likewise.
10639         (create_syscall_event_catchpoint): Likewise.
10640         (catch_syscall_split_args): Likewise.
10641         (catch_syscall_command_1): Likewise.
10642         (is_syscall_catchpoint_enabled): Likewise.
10643         (catch_syscall_enabled): Likewise.
10644         (catching_syscall_number): Likewise.
10645         (catch_syscall_completer): Likewise.
10646         (clear_syscall_counts): Likewise.
10647         (initialize_breakpoint_ops): Move initialization of syscall
10648         catchpoints to break-catch-syscall.c.
10649         (_initialize_breakpoint): Move code related to syscall catchpoints
10650         to break-catch-syscall.c.
10651
10652 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
10653
10654         * breakpoint.c (breakpoint_find_if): New function.
10655         * breakpoint.h (breakpoint_find_if): New prototype.
10656
10657 2015-03-11  Gary Benson <gbenson@redhat.com>
10658
10659         * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
10660         * remote-fileio.c (remote_fileio_to_host_uint): New function.
10661         (remote_fileio_to_host_ulong): Likewise.
10662         (remote_fileio_to_host_mode): Likewise.
10663         (remote_fileio_to_host_time): Likewise.
10664         (remote_fileio_to_host_stat): Likewise.
10665         * remote.c (PACKET_vFile_fstat): New enum value.
10666         (remote_protocol_features): Register the "vFile:fstat" feature.
10667         (remote_hostio_fstat): New function.
10668         (remote_bfd_iovec_stat): Use the above.
10669         (_initialize_remote): Register new "set/show remote
10670         hostio-fstat-packet" command.
10671         * symfile.c (separate_debug_file_exists): Update comment.
10672         * NEWS: Announce new vFile:fstat packet.
10673
10674 2015-03-11  Gary Benson <gbenson@redhat.com>
10675
10676         * common/common-remote-fileio.h: New file.
10677         * common/common-remote-fileio.c: Likewise.
10678         * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10679         (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
10680         (COMMON_OBS): Add common-remote-fileio.o.
10681         (common-remote-fileio.o): New rule.
10682         * remote-fileio.h (common-remote-fileio.h): New include.
10683         * remote-fileio.c (gdb/fileio.h): Do not include.
10684         (remote_fileio_to_be): Moved to common-remote-fileio.h.
10685         (remote_fileio_to_fio_uint): Likewise.
10686         (remote_fileio_to_fio_time): Likewise.
10687         (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
10688         (remote_fileio_to_fio_mode): Likewise.
10689         (remote_fileio_to_fio_ulong): Likewise.
10690         (remote_fileio_to_fio_stat): Likewise.
10691
10692 2015-03-11  Andy Wingo  <wingo@igalia.com>
10693
10694         * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
10695         we were checking the cached type, not the cached dynamic type.
10696
10697 2015-03-11  Andy Wingo  <wingo@igalia.com>
10698
10699         * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
10700         other strings, as these are on the GC'd heap, and will be
10701         collected along with the smob.
10702
10703 2015-03-11  Andy Wingo  <wingo@igalia.com>
10704
10705         * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
10706         (objfile_functions): Bind gdbscm_objfile_progspace to
10707         objfile-progspace.
10708         * guile/lib/gdb.scm: Add objfile-progspace to exports.
10709
10710 2015-03-11  Andy Wingo  <wingo@igalia.com>
10711
10712         * guile/guile.c (_initialize_guile): Disable automatic
10713         finalization, if Guile offers us that possibility.
10714         * guile/guile.c (call_initialize_gdb_module):
10715         * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
10716         finalizers in appropriate places.
10717         * configure.ac (AC_TRY_LIBGUILE): Add a check for
10718         scm_set_automatic_finalization_enabled.
10719         * configure: Regenerated.
10720
10721 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10722
10723         * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
10724         SAL, if possible.
10725
10726 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10727
10728         * s390-linux-nat.c (struct arch_lwp_info): New.
10729         (s390_fix_watch_points): Rename to...
10730         (s390_prepare_to_resume): ...this.  Skip the PER info update
10731         unless the watch points have changed.
10732         (s390_refresh_per_info, s390_new_thread): New functions.
10733         (s390_insert_watchpoint): Call s390_refresh_per_info instead of
10734         s390_fix_watch_points.
10735         (s390_remove_watchpoint): Likewise.
10736         (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
10737         Register s390_prepare_to_resume.
10738
10739 2015-03-09  Pedro Alves  <palves@redhat.com>
10740
10741         Revert:
10742         2015-03-07  Pedro Alves  <palves@redhat.com>
10743         * common/gdb_socket.h: New file.
10744         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
10745         sys/socket.h.
10746         (net_open): Use union gdb_sockaddr_u.
10747
10748 2015-03-07  Pedro Alves  <palves@redhat.com>
10749
10750         * configure.ac (build_warnings): Move -Wmissing-prototypes
10751         -Wdeclaration-after-statement -Wmissing-parameter-type
10752         -Wold-style-declaration -Wold-style-definition to the C-specific
10753         set.
10754         * configure: Regenerate.
10755
10756 2015-03-07  Pedro Alves  <palves@redhat.com>
10757
10758         * common/gdb_socket.h: New file.
10759         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
10760         sys/socket.h.
10761         (net_open): Use union gdb_sockaddr_u.
10762
10763 2015-03-07  Pedro Alves  <palves@redhat.com>
10764
10765         * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
10766         (exceptions_state_mc_action_iter)
10767         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10768         Don't define.
10769         [__cplusplus] (try_scope_depth): New global.
10770         [__cplusplus] (exception_try_scope_entry)
10771         (exception_try_scope_exit, gdb_exception_sliced_copy)
10772         (exception_rethrow): New functions.
10773         (throw_exception): In C++ mode, throw
10774         gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
10775         gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
10776         (throw_it): In C++ mode, use try_scope_depth.
10777         * common/common-exceptions.h [!__cplusplus]
10778         (exceptions_state_mc_action_iter)
10779         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10780         Don't declare.
10781         [__cplusplus] (exception_try_scope_entry)
10782         (exception_try_scope_exit, exception_rethrow): Declare.
10783         [__cplusplus] (struct exception_try_scope): New struct.
10784         [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
10785         C++ exceptions.
10786         (struct gdb_exception_RETURN_MASK_ALL)
10787         (struct gdb_exception_RETURN_MASK_ERROR)
10788         (struct gdb_exception_RETURN_MASK_QUIT): New types.
10789
10790 2015-03-07  Pedro Alves  <palves@redhat.com>
10791
10792         * main.c (handle_command_errors): Remove volatile qualifier from
10793         parameter.
10794
10795 2015-03-07  Pedro Alves  <palves@redhat.com>
10796
10797         * breakpoint.c (save_breakpoints): Adjust to avoid code between
10798         TRY and CATCH.
10799         * gdbtypes.c (safe_parse_type): Remove empty line.
10800         (types_deeply_equal):
10801         * guile/scm-frame.c (gdbscm_frame_name):
10802         * linux-thread-db.c (find_new_threads_once):
10803         * python/py-breakpoint.c (bppy_get_commands):
10804         * record-btrace.c (record_btrace_insert_breakpoint)
10805         (record_btrace_remove_breakpoint, record_btrace_start_replaying)
10806         (record_btrace_start_replaying): Adjust to avoid code between TRY
10807         and CATCH.
10808
10809 2015-03-07  Pedro Alves  <palves@redhat.com>
10810
10811         * common/common-exceptions.c (struct catcher) <exception>: No
10812         longer a pointer to volatile exception.  Now an exception value.
10813         <mask>: Delete field.
10814         (exceptions_state_mc_init): Remove all parameters.  Adjust.
10815         (exceptions_state_mc): No longer pop the catcher here.
10816         (exceptions_state_mc_catch): New function.
10817         (throw_exception): Adjust.
10818         * common/common-exceptions.h (exceptions_state_mc_init): Remove
10819         all parameters.
10820         (exceptions_state_mc_catch): Declare.
10821         (TRY_CATCH): Rename to ...
10822         (TRY): ... this.  Remove EXCEPTION and MASK parameters.
10823         (CATCH, END_CATCH): New.
10824         All callers adjusted.
10825
10826 2015-03-07  Tom Tromey  <tromey@redhat.com>
10827
10828         * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
10829
10830 2015-03-07  Pedro Alves  <palves@redhat.com>
10831
10832         * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10833         (amd64_epilogue_frame_cache): Normal exception handling code.
10834         * break-catch-throw.c (check_status_exception_catchpoint)
10835         (re_set_exception_catchpoint): Ditto.
10836         * cli/cli-interp.c (safe_execute_command):
10837         * cli/cli-script.c (script_from_file): Ditto.
10838         * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
10839         Ditto.
10840         * compile/compile-object-run.c (compile_object_run): Ditto.
10841         * cp-abi.c (baseclass_offset): Ditto.
10842         * cp-valprint.c (cp_print_value): Ditto.
10843         * exceptions.c (catch_exceptions_with_msg):
10844         * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
10845         * frame.c (get_frame_address_in_block_if_available): Ditto.
10846         * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10847         (i386_sigtramp_frame_cache): Ditto.
10848         * infcmd.c (post_create_inferior): Ditto.
10849         * linespec.c (parse_linespec, find_linespec_symbols):
10850         * p-valprint.c (pascal_object_print_value): Ditto.
10851         * parse.c (parse_expression_for_completion): Ditto.
10852         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
10853         * remote.c (remote_get_noisy_reply): Ditto.
10854         * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
10855         * solib-svr4.c (solib_svr4_r_map): Ditto.
10856
10857 2015-03-06  Gary Benson  <gbenson@redhat.com>
10858
10859         * common/common-utils.h (startswith): New inline function.
10860         All places where this logic was used updated to use the above.
10861
10862 2015-03-05  Pedro Alves  <palves@redhat.com>
10863
10864         PR gdb/18002
10865         * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
10866         after reading the breakpoint's shadow memory.
10867
10868 2015-03-05  Mark Kettenis  <kettenis@gnu.org>
10869
10870         * hppabsd-nat.c: Remove file.
10871         * hppaobsd-nat.c: New file.
10872         * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c.  Add
10873         hppaobsd-nat.c.
10874         * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
10875         hppaobsd-nat.o.
10876
10877 2015-03-04  Pedro Alves  <palves@redhat.com>
10878
10879         * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
10880         (target_decr_pc_after_break): Delete declaration.
10881         * target.c (default_target_decr_pc_after_break)
10882         (target_decr_pc_after_break): Delete.
10883         * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
10884         gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
10885         * linux-thread-db.c (check_event): Likewise.
10886         * infrun.c (adjust_pc_after_break): Likewise.
10887         * darwin-nat.c (cancel_breakpoint): Likewise.
10888         * aix-thread.c (aix_thread_wait): Likewise.
10889         * target-delegates.c: Regenerate.
10890
10891 2015-03-04  Pedro Alves  <palves@redhat.com>
10892
10893         * linux-nat.c (save_sigtrap): Check for breakpoints before
10894         checking watchpoints.
10895         (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10896         breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10897         (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10898         a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10899         (linux_nat_stopped_by_sw_breakpoint)
10900         (linux_nat_supports_stopped_by_sw_breakpoint)
10901         (linux_nat_stopped_by_hw_breakpoint)
10902         (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10903         (linux_nat_wait_1): Don't re-increment the PC if relying on
10904         SIGTRAP's siginfo->si_code.
10905         (linux_nat_add_target): Install new target methods.
10906         * linux-thread-db.c (check_event): Don't account for breakpoint PC
10907         offset if the target already adjusted the PC.
10908         * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10909         (GDB_ARCH_TRAP_BRKPT): New.
10910         (TRAP_HWBKPT): Define if not already defined.
10911
10912 2015-03-04  Pedro Alves  <palves@redhat.com>
10913
10914         * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10915         * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10916         Delete field.
10917         <stop_reason>: New field.
10918         (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10919         (packet_set_cmd_state): New function.
10920         (remote_protocol_features): Register the "swbreak" and "hwbreak"
10921         features.
10922         (remote_query_supported): If not disabled with the corresponding
10923         "set remote foo-packet" command, report support for the swbreak
10924         and hwbreak features.
10925         (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10926         field.
10927         <stop_reason>: New field.
10928         (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10929         (remote_wait_as): Adjust.
10930         (remote_stopped_by_sw_breakpoint)
10931         (remote_supports_stopped_by_sw_breakpoint)
10932         (remote_stopped_by_hw_breakpoint)
10933         (remote_supports_stopped_by_hw_breakpoint): New functions.
10934         (remote_stopped_by_watchpoint): New function.
10935         (init_remote_ops): Install them.
10936         (_initialize_remote): Register new "set/show remote
10937         swbreak-feature-packet" and "set/show remote
10938         swbreak-feature-packet" commands.
10939
10940 2015-03-04  Pedro Alves  <palves@redhat.com>
10941
10942         * btrace.h: Include target/waitstatus.h.
10943         (struct btrace_thread_info) <stop_reason>: New field.
10944         * record-btrace.c (record_btrace_step_thread): Use
10945         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10946         (record_btrace_decr_pc_after_break): Delete.
10947         (record_btrace_stopped_by_sw_breakpoint)
10948         (record_btrace_supports_stopped_by_sw_breakpoint)
10949         (record_btrace_stopped_by_hw_breakpoint)
10950         (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10951         (init_record_btrace_ops): Install them.
10952         * record-full.c (record_full_hw_watchpoint): Delete and replace
10953         with ...
10954         (record_full_stop_reason): ... this throughout.
10955         (record_full_exec_insn): Adjust.
10956         (record_full_wait_1): Adjust.  No longer re-increment the PC.
10957         (record_full_wait_1): Adjust.  Use
10958         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10959         (record_full_stopped_by_watchpoint): Adjust.
10960         (record_full_stopped_by_sw_breakpoint)
10961         (record_full_supports_stopped_by_sw_breakpoint)
10962         (record_full_supports_stopped_by_sw_breakpoint)
10963         (record_full_stopped_by_hw_breakpoint)
10964         (record_full_supports_stopped_by_hw_breakpoint): New functions.
10965         (init_record_full_ops, init_record_full_core_ops): Install them.
10966         * record.c (record_check_stopped_by_breakpoint): New function.
10967         * record.h: Include target/waitstatus.h.
10968         (record_check_stopped_by_breakpoint): New declaration.
10969
10970 2015-03-04  Pedro Alves  <palves@redhat.com>
10971
10972         enum lwp_stop_reason -> enum target_stop_reason
10973         * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10974         (linux_nat_stopped_by_watchpoint, status_callback)
10975         (linux_nat_wait_1): Adjust.
10976         * linux-nat.h (enum lwp_stop_reason): Delete.
10977         (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10978         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10979         * target/waitstatus.h (enum target_stop_reason): New.
10980
10981 2015-03-04  Pedro Alves  <palves@redhat.com>
10982
10983         * breakpoint.c (need_moribund_for_location_type): New function.
10984         (bpstat_stop_status): Don't skipping checking moribund locations
10985         of breakpoint types which the target tell caused a stop.
10986         (program_breakpoint_here_p): New function, factored out from ...
10987         (bp_loc_is_permanent): ... this.
10988         (update_global_location_list): Don't create a moribund location if
10989         the target supports reporting stops of the type of the removed
10990         breakpoint.
10991         * breakpoint.h (program_breakpoint_here_p): New declaration.
10992         * infrun.c (adjust_pc_after_break): Return early if the target has
10993         already adjusted the PC.  Add comments.
10994         (handle_signal_stop): If nothing explains a signal, and the target
10995         tells us the stop was caused by a software breakpoint, check if
10996         there's a breakpoint instruction in the memory.  If so, adjust the
10997         PC before presenting the stop to the user.  Otherwise, ignore the
10998         trap.  If nothing explains a signal, and the target tells us the
10999         stop was caused by a hardware breakpoint, ignore the trap.
11000         * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
11001         to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
11002         to_supports_stopped_by_hw_breakpoint>: New fields.
11003         (target_stopped_by_sw_breakpoint)
11004         (target_supports_stopped_by_sw_breakpoint)
11005         (target_stopped_by_hw_breakpoint)
11006         (target_supports_stopped_by_hw_breakpoint): Define.
11007         * target-delegates.c: Regenerate.
11008
11009 2015-03-04  Pedro Alves  <palves@redhat.com>
11010
11011         * infrun.c (follow_fork_inferior): Use the whole of the
11012         inferior_ptid and pending_follow.related_pid ptids instead of
11013         building ptids from the process components.  Adjust verbose output
11014         to use target_pid_to_str.
11015         * linux-nat.c (linux_child_follow_fork): Use the whole of the
11016         inferior_ptid and pending_follow.related_pid ptids instead of
11017         building ptids from the process components.
11018
11019 2015-03-04  Mark Kettenis  <kettenis@gnu.org>
11020
11021         * inf-ptrace.c [PT_GET_PROCESS_STATE]
11022         (inf_ptrace_insert_fork_catchpoint): New function.
11023         (inf_ptrace_remove_fork_catchpoint): New function.
11024         (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
11025
11026 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11027
11028         * s390-linux-tdep.c (s390_register_name): Return empty string
11029         instead of NULL for registers that shouldn't be visible.
11030
11031 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11032
11033         * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
11034         XML file for 64-bit targets.
11035
11036 2015-03-03  Simon Marchi  <simon.marchi@ericsson.com>
11037
11038         * target.h (find_default_create_inferior): Remove declaration.
11039         (find_default_attach): Likewise.
11040
11041 2015-03-03  Pedro Alves  <palves@redhat.com>
11042
11043         * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
11044         Use ptid_get_pid to get the overall process id when resuming all
11045         threads.
11046
11047 2015-03-03  Pedro Alves  <palves@redhat.com>
11048
11049         * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
11050         the lwp field of ptid.  Pass the full ptid to get_thread_regcache.
11051         * inf-ptrace.c (get_ptrace_pid): New function.
11052         (inf_ptrace_resume): Use it.
11053         * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
11054         to the lower layer.
11055
11056 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
11057
11058         * nat/linux-btrace.c: Include sys/utsname.h.
11059         (linux_determine_kernel_ptr_bits): New.
11060         (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
11061         * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
11062         ptr_bits.
11063
11064 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
11065
11066         * btrace.c (ftrace_update_function): Treat return as tailcall for
11067         "_dl_runtime_resolve".
11068
11069 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
11070
11071         * btrace.h (btrace_function) <lbegin, lend>: Remove.
11072         * btrace.c (ftrace_debug): Do not print the line range.
11073         (ftrace_skip_file, ftrace_update_lines): Remove.
11074         (ftrace_new_function): Remove lbegin and lend initialization.
11075         (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
11076         * record-btrace.c (btrace_compute_src_line_range): New.
11077         (btrace_call_history_src_line): Call btrace_compute_src_line_range.
11078
11079 2015-03-02  Pedro Alves  <palves@redhat.com>
11080
11081         * infrun.c (follow_exec): Delete all threads of the process except
11082         the event thread.  Extended comments.
11083
11084 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
11085
11086         * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
11087
11088 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
11089
11090         * utils.h: Remove <stdbool.h> #include.
11091         (producer_is_gcc): Change return type to "int".
11092         * utils.c (producer_is_gcc): Change return type to int.
11093         Return 1 instead of true, and 0 instead of false.
11094         Adjust function documentation accordingly.
11095
11096 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11097
11098         * s390-linux-nat.c (have_regset_vxrs): New static variable.
11099         (s390_linux_fetch_inferior_registers): Handle vector registers, if
11100         present.
11101         (s390_linux_store_inferior_registers): Likewise.
11102         (s390_get_hwcap): Remove function.  Embed its logic...
11103         (s390_read_description): ...here.  Yield a target description with
11104         vector registers if applicable.
11105         * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
11106         "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
11107         "features/s390x-tevx-linux64.c".
11108         (struct gdbarch_tdep) <v0_full_regnum>: New field.
11109         (s390_dwarf_regmap): Add vector registers.  Remove bogus entries
11110         for "GNU/Linux-specific registers".
11111         (s390_dwarf_reg_r0l): New enum value.
11112         (s390_dwarf_reg_to_regnum): Support vector registers.
11113         (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
11114         of GPR lower halves.
11115         (regnum_is_vxr_full): New function.
11116         (s390_register_name): New function.
11117         (s390_pseudo_register_name): Handle v0-v15, which are composed of
11118         f0-f15 and v0l-v15l.
11119         (s390_pseudo_register_type): Likewise.
11120         (s390_pseudo_register_read): Likewise.
11121         (s390_pseudo_register_write): Likewise.
11122         (s390_value_from_register): Account for the fact that values are
11123         placed left-justified in vector registers.
11124         (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
11125         the vector reggroup and omit them from the general reggroup.
11126         (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
11127         (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
11128         (s390_iterate_over_regset_sections): Add iterations for the two
11129         new vector regsets.
11130         (s390_core_read_description): Yield a target description with
11131         vector registers if applicable.
11132         (s390_gdbarch_init): Handle target descriptions with vector
11133         registers.  Add "register_name" gdbarch method.
11134         (_initialize_s390_tdep): Call new tdesc initialization functions.
11135         * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
11136         (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
11137         (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
11138         (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
11139         (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
11140         (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
11141         (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
11142         (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
11143         (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
11144         (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
11145         (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
11146         (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
11147         (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
11148         (S390_NUM_REGS): Adjust value.
11149         (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
11150         (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11151         (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
11152         * NEWS: Announce S/390 vector register support.
11153
11154 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11155
11156         * features/s390-tevx-linux64.xml: New file.
11157         * features/s390-vx-linux64.xml: New file.
11158         * features/s390-vx.xml: New file.
11159         * features/s390x-tevx-linux64.xml: New file.
11160         * features/s390x-vx-linux64.xml: New file.
11161         * features/Makefile (WHICH): Add s390-vx-linux64,
11162         s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
11163         (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
11164         (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
11165         macros.
11166         * features/s390-tevx-linux64.c: New generated file.
11167         * features/s390-vx-linux64.c: Likewise.
11168         * features/s390x-tevx-linux64.c: Likewise.
11169         * features/s390x-vx-linux64.c: Likewise.
11170         * regformats/s390-tevx-linux64.dat: Likewise.
11171         * regformats/s390-vx-linux64.dat: Likewise.
11172         * regformats/s390x-tevx-linux64.dat: Likewise.
11173         * regformats/s390x-vx-linux64.dat: Likewise.
11174
11175 2015-02-28  Doug Evans  <xdje42@gmail.com>
11176
11177         * symtab.h (struct symtab) <next>: Fix comment.
11178
11179 2015-02-27  Simon Marchi  <simon.marchi@ericsson.com>
11180
11181         * python/python.c (python_GdbModuleDef): Rename GdbMethods to
11182         python_GdbMethods.
11183
11184 2015-02-27  Pedro Alves  <palves@redhat.com>
11185
11186         * dtrace-probe.c (dtrace_probe_ops): Make extern.
11187
11188 2015-02-27  Pedro Alves  <palves@redhat.com>
11189
11190         * common/common-exceptions.h (exception_none): Declare.
11191         * common/common-exceptions.c (exception_none): Moved from
11192         exceptions.c.
11193         (exceptions_state_mc_init): Use exception_none.
11194         * exceptions.c (exception_none): Move to
11195         common/common-exceptions.c.
11196         * exceptions.h (exception_none): Move to
11197         common/common-exceptions.h.
11198
11199 2015-02-27  Pedro Alves  <palves@redhat.com>
11200
11201         * main.c (catch_command_errors, catch_command_errors_const):
11202         Remove 'mask' argument.  Adjust.
11203         (captured_main): Adjust callers.
11204
11205 2015-02-27  Pedro Alves  <palves@redhat.com>
11206
11207         * python/python-internal.h: Include "extension-priv.h".
11208
11209 2015-02-27  Pedro Alves  <palves@redhat.com>
11210
11211         * breakpoint.h (enum print_stop_action): Move further up in the
11212         file.
11213
11214 2015-02-27  Pedro Alves  <palves@redhat.com>
11215
11216         * gdbarch.sh: Include regcache.h.
11217         * gdbarch.h: Regenerate.
11218
11219 2015-02-27  Pedro Alves  <palves@redhat.com>
11220
11221         * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
11222         Remove duplicate const.
11223         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
11224         duplicate const.
11225
11226 2015-02-27  Pedro Alves  <palves@redhat.com>
11227
11228         * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
11229         * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
11230         * features/feature_to_c.sh: Tag the generated xml_builtin array
11231         with extern const in C++ mode.
11232
11233 2015-02-27  Tom Tromey  <tromey@redhat.com>
11234
11235         * minidebug.c (struct lzma_stream): Rename to ...
11236         (struct gdb_lzma_stream): ... this.
11237         (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
11238
11239 2015-02-27  Pedro Alves  <palves@redhat.com>
11240
11241         * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
11242         function.
11243         (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
11244         (mi_cmd_stack_list_variables): Use it.
11245
11246 2015-02-27  Pedro Alves  <palves@redhat.com>
11247
11248         * x86-linux-nat.c (u_debugreg_offset): New function.
11249         (x86_linux_dr_get, x86_linux_dr_set): Use it.
11250
11251 2015-02-27  Pedro Alves  <palves@redhat.com>
11252
11253         * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
11254         declaration.
11255         Include break-common.h.
11256
11257 2015-02-27  Tom Tromey  <tromey@redhat.com>
11258             Pedro Alves <palves@redhat.com>
11259
11260         * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
11261         local used to iterate over enums.
11262         * completer.c (signal_completer): Likewise.
11263         * i386-tdep.c (i386_stap_parse_special_token): Likewise.
11264         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
11265         * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
11266         * tui/tui-layout.c (next_layout, prev_layout): Likewise.
11267         * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
11268         (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
11269         * tui-wingeneral.c (tui_refresh_all):  Likewise.
11270
11271 2015-02-27  Pedro Alves  <palves@redhat.com>
11272
11273         * target.h: Include "infrun.h".
11274
11275 2015-02-27  Pedro Alves  <palves@redhat.com>
11276
11277         * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11278
11279 2015-02-27  Pedro Alves  <palves@redhat.com>
11280
11281         * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
11282         (IPA_SYM): Use it.
11283         * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
11284
11285 2015-02-27  Pedro Alves  <palves@redhat.com>
11286
11287         * cli-out.c (_rl_erase_entire_line): Move declaration out of
11288         cli_mld_erase_entire_line, and make it extern "C".
11289         * common/common-defs.h (EXTERN_C): New.
11290         * completer.c (_rl_completion_prefix_display_length)
11291         (_rl_print_completions_horizontally, QSFUNC): Move declarations
11292         out of gdb_display_match_list_1.
11293         (_rl_qsort_string_compare): Move declaration out of
11294         gdb_display_match_list_1, and make it extern "C".
11295         * defs.h (re_comp): Use EXTERN_C.
11296         * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
11297         and make it extern "C".
11298         (monstartup): Move declaration out of maintenance_set_profile_cmd,
11299         and make it extern "C".
11300         (main): Move declaration out of maintenance_set_profile_cmd.
11301         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
11302         EXTERN_C.
11303
11304 2015-02-27  Pedro Alves  <palves@redhat.com>
11305
11306         * python/python.c (GdbMethods): Rename to ...
11307         (python_GdbMethods): ... this and make extern.
11308         (GdbModuleDef): Rename to ...
11309         (python_GdbModuleDef): ... this and make extern.
11310
11311 2015-02-27  Pedro Alves  <palves@redhat.com>
11312
11313         * record-btrace.c (set_record_btrace_cmdlist)
11314         (show_record_btrace_cmdlist): Remove redefinitions.
11315
11316 2015-02-27  Tom Tromey  <tromey@redhat.com>
11317             Pedro Alves  <palves@redhat.com>
11318
11319         * dwarf2-frame.c (enum cfa_how_kind, struct
11320         dwarf2_frame_state_reg_info): Move out of struct
11321         dwarf2_frame_state.
11322         * dwarf2read.c (struct tu_stats): Move out of struct
11323         dwarf2_per_objfile.
11324         (struct file_entry): Move out of struct line_header.
11325         (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
11326         typedef_field_list): Move out of struct field_info.
11327         * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
11328         Move out of struct dynamic_prop.
11329         (union type_owner, union field_location, struct field, struct
11330         range_bounds, union type_specific): Move out of struct main_type.
11331         (struct fn_fieldlist, struct fn_field, struct typedef_field)
11332         (VOFFSET_STATIC): Move out of struct cplus_struct_type.
11333         (struct call_site_target, union call_site_parameter_u, struct
11334         call_site_parameter): Move out of struct call_site.
11335         * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
11336         m32c_prologue.
11337         (enum srcdest_kind): Move out of struct srcdest.
11338         * main.c (enum cmdarg_kind): Move out of struct cmdarg.
11339         * prologue-value.h (enum prologue_value_kind): Move out of struct
11340         prologue_value.
11341         * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
11342         gdbarch_tdep.
11343         * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
11344         out of struct field_info.
11345         * symfile.h (struct other_sections): Move out of struct
11346         section_addr_info.
11347         * symtab.c (struct symbol_cache_slot): Move out struct
11348         block_symbol_cache.
11349         * target-descriptions.c (enum tdesc_type_kind): Move out of
11350         typedef struct tdesc_type.
11351         * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
11352         struct tui_line_or_address.
11353         * value.c (enum internalvar_kind, union internalvar_data): Move
11354         out of struct internalvar.
11355         * xtensa-tdep.h (struct ctype_cache): Move out of struct
11356         gdbarch_tdep.
11357
11358 2015-02-27  Tom Tromey  <tromey@redhat.com>
11359             Pedro Alves  <palves@redhat.com>
11360
11361         Rename symbols whose names are reserved C++ keywords throughout.
11362
11363 2015-02-27  Pedro Alves  <palves@redhat.com>
11364
11365         * Makefile.in (COMPILER): New, get it from autoconf.
11366         (COMPILE.pre, CC_LD): Use COMPILER.
11367         (CXX): Get from autoconf instead.
11368         (CXX_FOR_TARGET): Default to g++ instead of gcc.
11369         * acinclude.m4: Include build-with-cxx.m4.
11370         * build-with-cxx.m4: New file.
11371         * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11372         Disable -Werror by default if building in C++ mode.
11373         (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11374         -Wno-narrowing in C++ mode.  Only enable -Wpointer-sign in C mode.
11375         Run supported-warning-flags tests with the C++ compiler.
11376         Save/restore CXXFLAGS too.
11377         * configure: Regenerate.
11378
11379 2015-02-27  Pedro Alves  <palves@redhat.com>
11380
11381         * libiberty.m4: New file.
11382         * acinclude.m4: Include libiberty.m4.
11383         * configure.ac: Call libiberty_INIT.
11384         * config.in, configure: Regenerate.
11385
11386 2015-02-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11387
11388         * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
11389         31-bit targets, but 64-bit targets as well.
11390         (s390_gnu_triplet_regexp): New function.
11391         (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
11392         64-bit targets as well.  Set the gnu_triplet_regexp gdbarch
11393         method.
11394
11395 2015-02-27  Jon TURNEY  <jon.turney@dronecode.org.uk>  (tiny patch)
11396
11397         * windows-nat.c (CONTEXT_DEBUGGER): Remove.
11398         (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS.  Incorporate flags
11399         from CONTEXT_DEBUGGER.
11400
11401 2015-02-26  Doug Evans  <dje@google.com>
11402
11403         * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
11404         CHECK_TYPEDEF.
11405         (set_type_vptr_fieldno): Ditto.
11406         (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
11407         * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
11408
11409 2015-02-26  Pedro Alves  <palves@redhat.com>
11410
11411         * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
11412         * complaints.c (vcomplaint): Pass argument FMT directly to
11413         printf-like functions instead of complaint->fmt.
11414         * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
11415         * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
11416         * compile/compile-loc2c.c (pushf, unary, binary): Add
11417         ATTRIBUTE_PRINTF.
11418         (do_compile_dwarf_expr_to_c): Pass string literal as format string
11419         to pushf.
11420         (BINARY): Pass string literal as format string to 'binary'.
11421         * compile/compile-object-load.c (link_callbacks_einfo): Add
11422         ATTRIBUTE_PRINTF.
11423         * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
11424
11425 2015-02-26  Pedro Alves  <palves@redhat.com>
11426
11427         * windows-termcap.c: Rename to ...
11428         * stub-termcap.c: ... this.  Adjust header line.
11429         * Makefile.in (SFILES): Refer to stub-termcap.c instead of
11430         windows-termcap.c.
11431         * configure: Regenerate.
11432         * configure.ac: Refer to stub-termcap.o instead of
11433         windows-termcap.o.
11434         * gdb_curses.h: Mention stub-termcap.c instead of
11435         windows-termcap.c.
11436
11437 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
11438
11439         * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
11440         (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
11441
11442 2015-02-26  Antoine Tremblay  <antoine.tremblay@ericsson.com>
11443
11444         * gdb/infcmd.c (print_return_value): use type_to_string to print type.
11445
11446 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
11447
11448         * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
11449         bfd_canonicalize_symtab.
11450
11451 2015-02-25  John Baldwin  <jhb@FreeBSD.org>
11452
11453         * amd64fbsd-nat.c: Include sys/user.h.
11454         (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11455         instead of KERN_PS_STRINGS to locate the signal trampoline.
11456         * i386fbsd-nat.c: Include sys/user.h.
11457         (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11458         instead of KERN_PS_STRINGS to locate the signal trampoline.
11459         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
11460         (amd64fbsd_sigtramp_p): New.
11461         (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
11462         longer set default values.
11463         (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
11464         * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
11465         (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
11466         (i386fbsd_freebsd4_sigtramp_start)
11467         (i386fbsd_freebsd4_sigtramp_middle)
11468         (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
11469         (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
11470         (i386fbsd_sigtramp_p): New.
11471         (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
11472         longer set default values.
11473         (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
11474
11475 2015-02-25  John Baldwin  <jhb@freebsd.org>
11476
11477         * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
11478         get_frame_register instead of frame_unwind_register_unsigned.
11479
11480 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
11481
11482         PR build/18033
11483         * compile/compile-c-support.c (c_compute_program): Change // comment.
11484         * compile/compile-object-load.c (setup_sections): Change // comment.
11485
11486 2015-02-26  Joel Brobecker  <brobecker@adacore.com>
11487
11488         PR build/18033:
11489         * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
11490
11491 2015-02-23  Pedro Alves  <palves@redhat.com>
11492
11493         * remote.c (skip_to_semicolon): New function.
11494         (remote_parse_stop_reply) <T stop reply>: Use it.  Don't
11495         special case the stop reasons that look like hex numbers
11496         upfront.  Instead handle real register numbers after matching
11497         all the known stop reasons.
11498
11499 2015-02-21  Doug Evans  <dje@google.com>
11500
11501         PR c++/17976, symtab/17821
11502         * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
11503         is_in_anonymous.  All callers updated.
11504         (find_symbol_in_baseclass): Ditto.
11505         (cp_lookup_nested_symbol_1): Ditto.  Don't search all static blocks
11506         for symbols in an anonymous namespace.
11507         * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
11508         DW_AT_name directly.
11509         (dwarf2_name): Convert missing namespace name to
11510         CP_ANONYMOUS_NAMESPACE_STR.
11511
11512 2015-02-20  Pedro Alves  <palves@redhat.com>
11513
11514         * linux-nat.c (linux_handle_extended_wait): Call
11515         thread_db_notice_clone whenever a new clone LWP is detected.
11516         (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
11517         functions.
11518         * linux-nat.h (thread_db_attach_lwp): Delete declaration.
11519         (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
11520         (linux_unstop_all_lwps): Declare.
11521         * linux-thread-db.c (struct thread_get_info_inout): Delete.
11522         (thread_get_info_callback): Delete.
11523         (thread_from_lwp): Use td_thr_get_info and record_thread.
11524         (thread_db_attach_lwp): Delete.
11525         (thread_db_notice_clone): New function.
11526         (try_thread_db_load_1): If /proc is mounted and shows the
11527         process'es task list, walk over all LWPs and call thread_from_lwp
11528         instead of relying on td_ta_thr_iter.
11529         (attach_thread): Don't call check_thread_signals here.  Split the
11530         tail part of the function (which adds the thread to the core GDB
11531         thread list) to ...
11532         (record_thread): ... this function.  Call check_thread_signals
11533         here.
11534         (thread_db_wait): Don't call thread_db_find_new_threads_1.  Always
11535         call thread_from_lwp.
11536         (thread_db_update_thread_list): Rename to ...
11537         (thread_db_update_thread_list_org): ... this.
11538         (thread_db_update_thread_list): New function.
11539         (thread_db_find_thread_from_tid): Delete.
11540         (thread_db_get_ada_task_ptid): Simplify.
11541         * nat/linux-procfs.c: Include <sys/stat.h>.
11542         (linux_proc_task_list_dir_exists): New function.
11543         * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
11544
11545 2015-02-20  Pedro Alves  <palves@redhat.com>
11546
11547         * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
11548         main LWP.  Handle the case of waitpid returning 0 if we're already
11549         attached to the LWP.  Don't set the LWP's last_resume_kind to
11550         resume_stop if we already knew about the LWP.
11551         (linux_nat_filter_event): Add debug logs.
11552
11553 2015-02-20  Pedro Alves  <palves@redhat.com>
11554
11555         * target.h (forward_target_decr_pc_after_break): Delete
11556         declaration.
11557
11558 2015-02-20  Pedro Alves  <palves@redhat.com>
11559
11560         PR threads/18006
11561         * linux-thread-db.c (thread_get_info_callback): Return early if
11562         the thread's lwp id is -1.
11563
11564 2015-02-20  Joel Brobecker  <brobecker@adacore.com>
11565
11566         GDB 7.9 released.
11567
11568 2015-02-19  Steve Ellcey  <sellcey@imgtec.com>
11569
11570         * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
11571         (dtrace_get_probes) Change type of variable 'dof'.
11572
11573 2015-02-19  Antoine Tremblay  <antoine.tremblay@ericsson.com>
11574
11575         PR breakpoints/16812
11576         * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
11577         * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
11578         * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
11579
11580 2015-02-19  David Taylor  <dtaylor@emc.com>
11581
11582         * common/ax.def (setv): Fix consumed entry in setv DEFOP.
11583
11584 2015-02-18  Patrick Palka  <patrick@parcs.ath.cx>
11585
11586         * tui/tui-io.c (tui_handle_resize_during_io): Remove this
11587         function.
11588         (tui_putc): Don't call tui_handle_resize_during_io.
11589         (tui_getc): Likewise.
11590         (tui_mld_getc): Likewise.
11591         * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
11592         (tui_sigwinch_token): New static variable.
11593         (tui_initialize_win): Adjust documentation.  Set
11594         tui_sigwinch_token.
11595         (tui_async_resize_screen): New asynchronous callback.
11596         (tui_sigwinch_handler): Adjust documentation.  Asynchronously
11597         invoke tui_async_resize_screen.
11598
11599 2015-02-18  Jose E. Marchesi  <jose.marchesi@oracle.com>
11600
11601         * configure: Regenerated.
11602         * configure.ac: Use GDB_AC_TRANSFORM.
11603         * Makefile.in (aclocal_m4_deps): Added transform.m4.
11604         * acinclude.m4: sinclude transform.m4.
11605         * transform.m4: New file.
11606         (GDB_AC_TRANSFORM): New macro.
11607
11608 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11609
11610         * NEWS: Announce the support for DTrace SDT probes.
11611
11612 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11613
11614         * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
11615         (amd64_dtrace_parse_probe_argument): New function.
11616         (amd64_dtrace_probe_is_enabled): Likewise.
11617         (amd64_dtrace_enable_probe): Likewise.
11618         (amd64_dtrace_disable_probe): Likewise.
11619         (amd64_linux_init_abi): Register the
11620         `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
11621         `gdbarch_dtrace_disable_probe' and
11622         `gdbarch_dtrace_probe_is_enabled' hooks.
11623         (amd64_dtrace_disabled_probe_sequence_1): New constant.
11624         (amd64_dtrace_disabled_probe_sequence_2): Likewise.
11625         (amd64_dtrace_enable_probe_sequence): Likewise.
11626         (amd64_dtrace_disable_probe_sequence): Likewise.
11627
11628 2015-01-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11629
11630         * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
11631         the -probe-dtrace new vpossible value for PROBE_MODIFIER.
11632         * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
11633         handle ELF files.
11634         * Makefile.in (SFILES): dtrace-probe.c added.
11635         * configure: Regenerate.
11636         * dtrace-probe.c: New file.
11637         (SHT_SUNW_dof): New constant.
11638         (dtrace_probe_type): New enum.
11639         (dtrace_probe_arg): New struct.
11640         (dtrace_probe_arg_s): New typedef.
11641         (struct dtrace_probe_enabler): New struct.
11642         (dtrace_probe_enabler_s): New typedef.
11643         (dtrace_probe): New struct.
11644         (dtrace_probe_is_linespec): New function.
11645         (dtrace_dof_sect_type): New enum.
11646         (dtrace_dof_dofh_ident): Likewise.
11647         (dtrace_dof_encoding): Likewise.
11648         (DTRACE_DOF_ENCODE_LSB): Likewise.
11649         (DTRACE_DOF_ENCODE_MSB): Likewise.
11650         (dtrace_dof_hdr): New struct.
11651         (dtrace_dof_sect): Likewise.
11652         (dtrace_dof_provider): Likewise.
11653         (dtrace_dof_probe): Likewise.
11654         (DOF_UINT): New macro.
11655         (DTRACE_DOF_PTR): Likewise.
11656         (DTRACE_DOF_SECT): Likewise.
11657         (dtrace_process_dof_probe): New function.
11658         (dtrace_process_dof): Likewise.
11659         (dtrace_build_arg_exprs): Likewise.
11660         (dtrace_get_arg): Likewise.
11661         (dtrace_get_probes): Likewise.
11662         (dtrace_get_probe_argument_count): Likewise.
11663         (dtrace_can_evaluate_probe_arguments): Likewise.
11664         (dtrace_evaluate_probe_argument): Likewise.
11665         (dtrace_compile_to_ax): Likewise.
11666         (dtrace_probe_destroy): Likewise.
11667         (dtrace_gen_info_probes_table_header): Likewise.
11668         (dtrace_gen_info_probes_table_values): Likewise.
11669         (dtrace_probe_is_enabled): Likewise.
11670         (dtrace_probe_ops): New variable.
11671         (info_probes_dtrace_command): New function.
11672         (_initialize_dtrace_probe): Likewise.
11673         (dtrace_type_name): Likewise.
11674
11675 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11676
11677         * gdbarch.sh (dtrace_parse_probe_argument): New.
11678         (dtrace_probe_is_enabled): Likewise.
11679         (dtrace_enable_probe): Likewise.
11680         (dtrace_disable_probe): Likewise.
11681         * gdbarch.c: Regenerate.
11682         * gdbarch.h: Regenerate.
11683
11684 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11685
11686         * stap-probe.c (stap_probe_ops): Add NULLs in the static
11687         stap_probe_ops for `enable_probe' and `disable_probe'.
11688         * probe.c (enable_probes_command): New function.
11689         (disable_probes_command): Likewise.
11690         (_initialize_probe): Define the cli commands `enable probe' and
11691         `disable probe'.
11692         (parse_probe_linespec): New function.
11693         (info_probes_for_ops): Use parse_probe_linespec.
11694         * probe.h (probe_ops): New hooks `enable_probe' and
11695         `disable_probe'.
11696
11697 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11698
11699         * probe.c (compute_probe_arg): Moved from stap-probe.c
11700         (compile_probe_arg): Likewise.
11701         (probe_funcs): Likewise.
11702         * stap-probe.c (compute_probe_arg): Moved to probe.c.
11703         (compile_probe_arg): Likewise.
11704         (probe_funcs): Likewise.
11705
11706 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11707
11708         * probe.c (print_ui_out_not_applicables): New function.
11709         (exists_probe_with_pops): Likewise.
11710         (info_probes_for_ops): Do not include column headers for probe
11711         types for which no probe has been actually found on any object.
11712         Also invoke `print_ui_out_not_applicables' in order to match the
11713         column rows with the header when probes of several types are
11714         listed.
11715         Print the "Type" column.
11716         * probe.h (probe_ops): Added a new probe operation `type_name'.
11717         * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
11718         (stap_type_name): New function.
11719
11720 2015-02-17  Patrick Palka  <patrick@parcs.ath.cx>
11721
11722         * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
11723         (key_is_command_char): Delete.
11724
11725 2015-02-17  Pedro Alves  <palves@redhat.com>
11726
11727         * tui/tui.c (tui_enable): Resize windows before anything
11728         might show a window.
11729
11730 2015-02-17  Max Ostapenko  <m.ostapenko@partner.samsung.com>
11731
11732         PR gdb/17984
11733         * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
11734         (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
11735         call.
11736         * aarch64-tdep.h (tdesc_aarch64): Declare.
11737
11738 2015-02-12  Mark Wielaard  <mjw@redhat.com>
11739
11740         * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
11741
11742 2015-02-13  Doug Evans  <dje@google.com>
11743
11744         * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
11745         anonymous_namespace to is_in_anonymous for consistency with the rest
11746         of the file.
11747         (cp_lookup_bare_symbol): Fix typo in comment.
11748         (cp_search_static_and_baseclasses): Ditto.
11749         (search_symbol_list): Use vertical space in comment better.
11750         (reset_directive_searched): Ditto. Fix typo.
11751         (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
11752
11753 2015-02-13  Yao Qi  <yao.qi@arm.com>
11754
11755         * MAINTAINERS: Update my email address.
11756
11757 2015-02-12  Doug Evans  <dje@google.com>
11758
11759         * symtab.c (completion_list_add_name): Fix memory leak.
11760
11761 2015-02-12  Doug Evans  <dje@google.com>
11762
11763         * completer.c (complete_line): Remove incorrect comment.
11764
11765 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11766
11767         * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
11768         (py_print_frame): Use RETURN_MASK_ERROR.
11769
11770 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11771
11772         * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
11773         function comment.  Wrap all function that can throw in cleanups.
11774         (gdbpy_apply_frame_filter): Wrap all function that can throw in
11775         cleanups.
11776
11777 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11778
11779         * python/py-framefilter.c (py_print_frame): Substitute goto error.
11780         Remove the error label.
11781
11782 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11783
11784         * python/py-framefilter.c (py_print_frame): Put conditional code paths
11785         with goto first, indent the former else codepath left.  Put variable
11786         'elided' to a new inner block.
11787
11788 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11789
11790         * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
11791
11792 2015-02-11  Pedro Alves  <palves@redhat.com>
11793
11794         * xcoffread.c (within_function): Delete.
11795
11796 2015-02-11  Tom Tromey  <tromey@redhat.com>
11797             Pedro Alves <palves@redhat.com>
11798
11799         * breakpoint.c (base_breakpoint_ops): Delete.
11800         * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
11801         * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
11802         * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
11803         * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
11804         * python/py-arch.c (arch_object_type): Make extern.
11805         * python/py-block.c (block_syms_iterator_object_type): Make extern.
11806         * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
11807         * python/py-cmd.c (cmdpy_object_type): Make extern.
11808         * python/py-continueevent.c (continue_event_object_type)
11809         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
11810         parameter.  Update all callers.
11811         * python/py-evtregistry.c (eventregistry_object_type): Make extern.
11812         * python/py-exitedevent.c (exited_event_object_type): Make extern.
11813         * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
11814         * python/py-function.c (fnpy_object_type): Make extern.
11815         * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
11816         * python/py-infevents.c (call_pre_event_object_type)
11817         (inferior_call_post_event_object_type).
11818         (memory_changed_event_object_type): Make extern.
11819         * python/py-infthread.c (thread_object_type): Make extern.
11820         * python/py-lazy-string.c (lazy_string_object_type): Make extern.
11821         * python/py-linetable.c (linetable_entry_object_type)
11822         (linetable_object_type, ltpy_iterator_object_type): Make extern.
11823         * python/py-newobjfileevent.c (new_objfile_event_object_type)
11824         (clear_objfiles_event_object_type): Make extern.
11825         * python/py-objfile.c (objfile_object_type): Make extern.
11826         * python/py-param.c (parmpy_object_type): Make extern.
11827         * python/py-progspace.c (pspace_object_type): Make extern.
11828         * python/py-signalevent.c (signal_event_object_type): Make extern.
11829         * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
11830         * python/py-type.c (type_object_type, field_object_type)
11831         (type_iterator_object_type): Make extern.
11832         * python/python.c (python_extension_script_ops)
11833         (python_extension_ops): Make extern.
11834         * stap-probe.c (stap_probe_ops): Make extern.
11835
11836 2015-02-11  Pedro Alves  <pedro@codesourcery.com>
11837
11838         * infrun.c (adjust_pc_after_break): Don't adjust the PC just
11839         because the event thread is not the current thread.
11840
11841 2015-02-11  Doug Evans  <xdje42@gmail.com>
11842
11843         * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
11844         been initialized yet, return NULL.
11845
11846 2015-02-11  Doug Evans  <dje@google.com>
11847
11848         * symfile.h (new_symfile_objfile): Delete.
11849         * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
11850         All callers updated.
11851
11852 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
11853
11854         * tui/tui-io.c (tui_handle_resize_during_io): Call
11855         tui_update_gdb_sizes() after resizing the screen.
11856         * tui/tui.c (tui_enable): Resize the terminal before
11857         calling tui_update_gdb_sizes().
11858
11859 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
11860
11861         * tui/tui-io.c (tui_getc): Move cursor to the end of the command
11862         line before printing a newline.
11863
11864 2015-02-11  Mark Wielaard  <mjw@redhat.com>
11865
11866         * utils.c (producer_is_gcc): Return true or false.
11867
11868 2015-02-10  Mark Wielaard  <mjw@redhat.com>
11869
11870         * utils.h (producer_is_gcc): Change return type to bool. Add major
11871         argument.
11872         * utils.c (producer_is_gcc): Likewise.
11873         (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
11874         * dwarf2read.c (check_producer): Likewise.
11875
11876 2015-02-10  Pedro Alves  <palves@redhat.com>
11877
11878         * infrun.c (displaced_step_fixup): Switch to the event thread
11879         before calling gdbarch_displaced_step_fixup.
11880
11881 2015-02-10  Antoine Tremblay <antoine.tremblay@ericsson.com>
11882
11883         * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
11884
11885 2015-02-10  Simon Marchi  <simon.marchi@ericsson.com>
11886
11887         * ada-varobj.c (ada_name_of_child): Constify parent.
11888         (ada_path_expr_of_child): Same.
11889         (ada_value_of_child): Same.
11890         (ada_type_of_child): Same.
11891         * c-varobj.c (c_is_path_expr_parent): Same.
11892         (c_describe_child): Same.
11893         (c_name_of_child): Same.
11894         (c_value_of_child): Same.
11895         (c_type_of_child): Same.
11896         (cplus_number_of_children): Same.
11897         (cplus_describe_child): Constify var.
11898         (cplus_name_of_child): Constify parent.
11899         (cplus_value_of_child): Same.
11900         (cplus_type_of_child): Same.
11901         * jv-varobj.c (java_name_of_child): Same.
11902         (java_value_of_child): Same.
11903         (java_type_of_child): Same.
11904         * varobj.c (value_of_child): Same.
11905         (varobj_default_is_path_expr_parent): Constify var, parent and return
11906         value.
11907         (varobj_get_path_expr): Constify var, modify path_expr through
11908         mutable_var.
11909         (install_new_value): Constify parent.
11910         (value_of_child): Constify parent.
11911         * varobj.h (struct varobj): Constify parent.
11912         (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11913         type_of_child.
11914         (varobj_get_path_expr): Constify var.
11915         (varobj_get_path_expr_parent): Constify var and return value.
11916
11917 2015-02-10  Luis Machado  <lgustavo@codesourcery.com>
11918
11919         * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11920         (arm_prologue_this_id): Move PC and SP limit checks to
11921         arm_prologue_unwind_stop_reason.
11922         (arm_prologue_unwind) <stop_reason> : Set to
11923         arm_prologue_unwind_stop_reason.
11924
11925 2015-02-09  Mark Wielaard  <mjw@redhat.com>
11926
11927         * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11928         DW_LANG_Fortran08 as language_fortran.
11929
11930 2015-02-09  Sergio Durigan Junior  <sergiodj@redhat.com>
11931
11932         PR remote/17946
11933         * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11934         of pointer against char.
11935
11936 2015-02-09  Mark Wielaard  <mjw@redhat.com>
11937
11938         * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11939         (c_type_print_modifier): Likewise.
11940         * dwarf2read.c (read_tag_atomic_type): New function.
11941         (read_type_die_1): Handle DW_TAG_atomic_type.
11942         * gdbtypes.c (make_atomic_type): New function.
11943         (recursive_dump_type): Handle TYPE_ATOMIC.
11944         * gdbtypes.h (enum type_flag_values): Renumber.
11945         (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11946         (TYPE_ATOMIC): New macro.
11947         (make_atomic_type): Declare.
11948
11949 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11950
11951         * btrace.c (ftrace_find_call): Skip gaps.
11952         (ftrace_new_function): Initialize level.
11953         (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11954         (ftrace_new_switch): Update
11955         level computation.
11956         (ftrace_new_gap): New.
11957         (ftrace_update_function): Create new function after gap.
11958         (btrace_compute_ftrace_bts): Create gap on error.
11959         (btrace_stitch_bts): Update parameters.  Clear trace if it
11960         becomes empty.
11961         (btrace_stitch_trace): Update parameters.  Update callers.
11962         (btrace_clear): Reset the number of gaps.
11963         (btrace_insn_get): Return NULL if the iterator points to a gap.
11964         (btrace_insn_number): Return zero if the iterator points to a gap.
11965         (btrace_insn_end): Allow gaps at the end.
11966         (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11967         (btrace_find_insn_by_number): Assert that the found iterator does
11968         not point to a gap.
11969         (btrace_call_next, btrace_call_prev): Assert that the last function
11970         is not a gap.
11971         * btrace.h (btrace_bts_error): New.
11972         (btrace_function): Update comment.
11973         (btrace_function) <insn, insn_offset, number>: Update comment.
11974         (btrace_function) <errcode>: New.
11975         (btrace_thread_info) <ngaps>: New.
11976         (btrace_thread_info) <replay>: Update comment.
11977         (btrace_insn_get): Update comment.
11978         * record-btrace.c (btrace_ui_out_decode_error): New.
11979         (record_btrace_info): Print number of gaps.
11980         (btrace_insn_history, btrace_call_history): Call
11981         btrace_ui_out_decode_error for gaps.
11982         (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11983
11984 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11985
11986         * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11987         * nat/linux-btrace.c: (btrace_this_cpu): New.
11988         (cpu_supports_bts): Call btrace_this_cpu.
11989         (intel_supports_bts): Add cpu parameter.
11990
11991 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11992
11993         * btrace.h (btrace_insn_class): New.
11994         (btrace_insn) <size, iclass>: New.
11995         * btrace.c (ftrace_find_call): Update parameters.  Update users.
11996         Use instruction classification.
11997         (ftrace_new_return): Update parameters.  Update users.
11998         (ftrace_update_function): Update parameters.  Update users.  Use
11999         instruction classification.
12000         (ftrace_update_insns): Update parameters.  Update users.
12001         (ftrace_classify_insn): New.
12002         (btrace_compute_ftrace_bts): Fill in new btrace_insn fields.  Add
12003         TRY_CATCH around call to gdb_insn_length.
12004
12005 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
12006
12007         * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
12008         Update parameters.  Update users.
12009
12010 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
12011
12012         * btrace.c (parse_xml_btrace_conf_bts): Add size.
12013         (btrace_conf_bts_attributes): New.
12014         (btrace_conf_children): Add attributes.
12015         * common/btrace-common.h (btrace_config_bts): New.
12016         (btrace_config)<bts>: New.
12017         (btrace_config): Update comment.
12018         * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
12019         Use config.
12020         * features/btrace-conf.dtd: Increment version.  Add size
12021         attribute to bts element.
12022         * record-btrace.c (set_record_btrace_bts_cmdlist,
12023         show_record_btrace_bts_cmdlist): New.
12024         (record_btrace_adjust_size, record_btrace_print_bts_conf,
12025         record_btrace_print_conf, cmd_set_record_btrace_bts,
12026         cmd_show_record_btrace_bts): New.
12027         (record_btrace_info): Call record_btrace_print_conf.
12028         (_initialize_record_btrace): Add commands.
12029         * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
12030         (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
12031         (btrace_sync_conf): Synchronize bts size.
12032         (_initialize_remote): Add Qbtrace-conf:bts:size packet.
12033         * NEWS: Announce new commands and new packets.
12034
12035 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
12036
12037         * Makefile.in (XMLFILES): Add btrace-conf.dtd.
12038         * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
12039         (x86_linux_btrace_conf): New.
12040         (x86_linux_create_target): Initialize to_btrace_conf.
12041         * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
12042         Check format.  Split into this and ...
12043         (linux_enable_bts): ... this.
12044         (linux_btrace_conf): New.
12045         (perf_event_skip_record): Renamed into ...
12046         (perf_event_skip_bts_record): ... this.  Updated users.
12047         (linux_disable_btrace): Split into this and ...
12048         (linux_disable_bts): ... this.
12049         (linux_read_btrace): Check format.
12050         * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
12051         (linux_btrace_conf): New.
12052         (btrace_target_info)<ptid>: Moved.
12053         (btrace_target_info)<conf>: New.
12054         (btrace_target_info): Split into this and ...
12055         (btrace_tinfo_bts): ... this.  Updated users.
12056         * btrace.c (btrace_enable): Update parameters.
12057         (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
12058         (btrace_conf_children, btrace_conf_attributes)
12059         (btrace_conf_elements): New.
12060         * btrace.h (btrace_enable): Update parameters.
12061         (btrace_conf, parse_xml_btrace_conf): New.
12062         * common/btrace-common.h (btrace_config): New.
12063         * feature/btrace-conf.dtd: New.
12064         * record-btrace.c (record_btrace_conf): New.
12065         (record_btrace_cmdlist): New.
12066         (record_btrace_enable_warn, record_btrace_open): Pass
12067         &record_btrace_conf.
12068         (record_btrace_info): Print recording format.
12069         (cmd_record_btrace_bts_start): New.
12070         (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
12071         (_initialize_record_btrace): Add "record btrace bts" subcommand.
12072         Add "record bts" alias command.
12073         * remote.c (remote_state)<btrace_config>: New.
12074         (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
12075         (remote_protocol_features): Add qXfer:btrace-conf:read.
12076         (remote_open_1): Call remote_btrace_reset.
12077         (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
12078         (btrace_target_info)<conf>: New.
12079         (btrace_sync_conf, btrace_read_config): New.
12080         (remote_enable_btrace): Update parameters.  Call btrace_sync_conf and
12081         btrace_read_conf.
12082         (remote_btrace_conf): New.
12083         (init_remote_ops): Initialize to_btrace_conf.
12084         (_initialize_remote): Add qXfer:btrace-conf packet.
12085         * target.c (target_enable_btrace): Update parameters.
12086         (target_btrace_conf): New.
12087         * target.h (target_enable_btrace): Update parameters.
12088         (target_btrace_conf): New.
12089         (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
12090         (target_ops)<to_enable_btrace>: Update parameters and comment.
12091         (target_ops)<to_btrace_conf>: New.
12092         * target-delegates: Regenerate.
12093         * target-debug.h (target_debug_print_const_struct_btrace_config_p)
12094         (target_debug_print_const_struct_btrace_target_info_p): New.
12095         * NEWS: Announce new command and new packet.
12096
12097 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
12098
12099         * nat/linux-btrace.h (perf_event_buffer): New.
12100         (btrace_target_info) <buffer, size, data_head>: Replace with ...
12101         <bts>: ... this.
12102         * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
12103         (perf_event_buffer_size, perf_event_buffer_begin)
12104         (perf_event_buffer_end, linux_btrace_has_changed): Removed.
12105         Updated users.
12106         (perf_event_new_data): New.
12107
12108 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
12109
12110         * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
12111         * record-btrace.c (record_btrace_open): Remove call to
12112         target_supports_btrace.
12113         * remote.c (remote_supports_btrace): Update parameters.
12114         * target.c (target_supports_btrace): Update parameters.
12115         * target.h (to_supports_btrace, target_supports_btrace): Update
12116         parameters.
12117         * target-delegates.c: Regenerate.
12118         * target-debug.h (target_debug_print_enum_btrace_format): New.
12119         * nat/linux-btrace.c
12120         (kernel_supports_btrace): Rename into ...
12121         (kernel_supports_bts): ... this.  Update users.  Update warning text.
12122         (intel_supports_btrace): Rename into ...
12123         (intel_supports_bts): ... this.  Update users.
12124         (cpu_supports_btrace): Rename into ...
12125         (cpu_supports_bts): ... this.  Update users.
12126         (linux_supports_btrace): Update parameters.  Split into this and ...
12127         (linux_supports_bts): ... this.
12128         * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
12129
12130 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
12131
12132         * Makefile.in (SFILES): Add common/btrace-common.c.
12133         (COMMON_OBS): Add common/btrace-common.o.
12134         (btrace-common.o): Add build rules.
12135         * btrace.c (parse_xml_btrace): Update parameters.
12136         (parse_xml_btrace_block): Set format field.
12137         (btrace_add_pc, btrace_fetch): Use struct btrace_data.
12138         (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
12139         (btrace_compute_ftrace): Split into this and...
12140         (btrace_compute_ftrace_bts): ...this.
12141         (btrace_stitch_trace): Split into this and...
12142         (btrace_stitch_bts): ...this.
12143         * btrace.h (parse_xml_btrace): Update parameters.
12144         (make_cleanup_btrace_data): New.
12145         * common/btrace-common.c: New.
12146         * common/btrace-common.h: Include common-defs.h.
12147         (btrace_block_s): Update comment.
12148         (btrace_format): New.
12149         (btrace_format_string): New.
12150         (btrace_data_bts): New.
12151         (btrace_data): New.
12152         (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
12153         * remote.c (remote_read_btrace): Update parameters.
12154         * target.c (target_read_btrace): Update parameters.
12155         * target.h (target_read_btrace): Update parameters.
12156         (target_ops)<to_read_btrace>: Update parameters.
12157         * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
12158         * target-delegates.c: Regenerate.
12159         * target-debug (target_debug_print_struct_btrace_data_p): New.
12160         * nat/linux-btrace.c (linux_read_btrace): Split into this and...
12161         (linux_read_bts): ...this.
12162         * nat/linux-btrace.h (linux_read_btrace): Update parameters.
12163
12164 2015-02-06  Doug Evans  <dje@google.com>
12165
12166         * remote-m32r-sdi.c: Include symfile.h.
12167
12168 2015-02-06  Doug Evans  <dje@google.com>
12169
12170         * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
12171         * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
12172         to here.
12173
12174 2015-02-06  Pedro Alves  <palves@redhat.com>
12175
12176         * linux-thread-db.c (find_new_threads_callback): Add debug output.
12177
12178 2015-02-06  Simon Marchi  <simon.marchi@ericsson.com>
12179
12180         PR gdb/15678
12181         * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
12182         (enable_count_command): Check args for NULL value.
12183
12184 2015-02-05  Doug Evans  <xdje42@gmail.com>
12185
12186         * guile/scm-frame.c: Fix spelling errors in a comment.
12187
12188 2015-02-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
12189
12190         * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
12191         * python/py-value.c (valpy_fetch_lazy): Use it.  Remove cast to the
12192         return type.
12193
12194 2015-02-04  Pedro Alves  <palves@redhat.com>
12195
12196         * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
12197         (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
12198         returns true.
12199         (resume_stopped_resumed_lwps): Don't check whether the thread is
12200         marked as executing.
12201         (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
12202
12203 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
12204
12205         * regset.h (struct regset): Add flags field.
12206         (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
12207         * corelow.c (get_core_register_section): Add warning if the size
12208         exceeds the requested size and the regset does not have the
12209         REGSET_VARIABLE_SIZE flag set.
12210         * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
12211         flag.
12212         * armbsd-tdep.c (armbsd_gregset): Likewise.
12213         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
12214         * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
12215         * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
12216         * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
12217
12218 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
12219
12220         * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
12221         For ".reg-xstate", explicitly specify the requested section size
12222         via X86_XSTATE_SIZE instead of just 0 on input and
12223         X86_XSTATE_MAX_SIZE on output.
12224         * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
12225         Likewise.
12226
12227 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
12228
12229         PR corefiles/17808:
12230         * gdbarch.sh (iterate_over_regset_sections_cb): Document this
12231         function type, particularly its SIZE parameter.
12232         * gdbarch.h: Regenerate.
12233         * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
12234         actual against required size using ">=" instead of "==".
12235         (amd64_collect_fpregset): Likewise.
12236         * i386-tdep.c (i386_supply_gregset): Likewise.
12237         (i386_collect_gregset): Likewise.
12238         (i386_supply_fpregset): Likewise.
12239         (i386_collect_fpregset): Likewise.
12240         * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
12241         (mips_fill_gregset_wrapper): Likewise.
12242         (mips_supply_fpregset_wrapper): Likewise.
12243         (mips_fill_fpregset_wrapper): Likewise.
12244         (mips64_supply_gregset_wrapper): Likewise.
12245         (mips64_fill_gregset_wrapper): Likewise.
12246         (mips64_supply_fpregset_wrapper): Likewise.
12247         (mips64_fill_fpregset_wrapper): Likewise.
12248         * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
12249         (am33_supply_fpregset_method): Likewise.
12250         (am33_collect_gregset_method): Likewise.
12251         (am33_collect_fpregset_method): Likewise.
12252
12253 2015-02-04  Doug Evans  <dje@google.com>
12254             Pedro Alves  <palves@redhat.com>
12255             Eli Zaretskii  <eliz@gnu.org>
12256
12257         PR tui/17810
12258         * tui/tui-command.c (tui_refresh_cmd_win): New function.
12259         * tui/tui-command.c (tui_refresh_cmd_win): Declare.
12260         * tui/tui-file.c: #include tui/tui-command.h.
12261         (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
12262         (tui_file_flush): Refresh command window if stream is gdb_stdout.
12263         * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
12264
12265 2015-02-04  Pedro Alves  <palves@redhat.com>
12266
12267         Fix build breakage.
12268         * event-loop.c (gdb_do_one_event): Add default switch case.
12269
12270 2015-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
12271
12272         Filter out inferior gcc option -fpreprocessed.
12273         * compile/compile.c (filter_args): New function.
12274         (get_args): Use it.
12275
12276 2015-02-03  Pedro Alves  <palves@redhat.com>
12277
12278         * event-loop.c: Don't declare nor define a queue type for
12279         gdb_event_p.
12280         (event_queue): Delete.
12281         (create_event, create_file_event, gdb_event_xfree)
12282         (initialize_event_loop, process_event): Delete.
12283         (gdb_do_one_event): Return as soon as one event is handled.
12284         (handle_file_event): Change prototype.  Used the passed in
12285         file_handler pointer and ready_mask instead of looping over all
12286         file handlers.
12287         (gdb_wait_for_event): Update the poll/select timeouts before
12288         blocking.  Run event handlers directly instead of queueing events.
12289         Return as soon as one event is handled.
12290         (struct async_event_handler_data): Delete.
12291         (invoke_async_event_handler): Delete.
12292         (check_async_event_handlers): Change return type to int.  Run
12293         event handlers directly instead of queueing events.  Return as
12294         soon as one event is handled.
12295         (handle_timer_event): Delete.
12296         (update_wait_timeout): New function, factored out from
12297         poll_timers.
12298         (poll_timers): Reimplement.
12299         * event-loop.h (initialize_event_loop): Delete declaration.
12300         * top.c (gdb_init): Don't call initialize_event_loop.
12301
12302 2015-02-03  Pedro Alves  <palves@redhat.com>
12303
12304         * event-loop.c (clear_async_event_handler): New function.
12305         * event-loop.h (clear_async_event_handler): New declaration.
12306         * record-btrace.c (record_btrace_async): New function.
12307         (init_record_btrace_ops): Install record_btrace_async.
12308         * record-full.c (record_full_async): New function.
12309         (record_full_resume): Don't mark the async event source here.
12310         (init_record_full_ops): Install record_full_async.
12311         (record_full_core_resume): Don't mark the async event source here.
12312         (init_record_full_core_ops): Install record_full_async.
12313         * remote.c (remote_async): Mark and clear the async stop reply
12314         queue event-loop token as appropriate.
12315
12316 2015-02-03  Pedro Alves  <palves@redhat.com>
12317
12318         * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
12319         target_is_async_p instead of target_can_async.
12320         (linux_nat_wait): Use target_is_async_p instead of
12321         target_can_async.  Don't enable async here.
12322         * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
12323         target_is_async_p instead of target_can_async.
12324
12325 2015-02-02  Simon Marchi  <simon.marchi@ericsson.com>
12326
12327         * varobj.h (lang_varobj_ops): Mention which return values need
12328         to be freed.
12329
12330 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
12331
12332         * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
12333
12334 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
12335
12336         PR gdb/17856:
12337         * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
12338         results found in the cache.
12339
12340 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
12341
12342         PR gdb/17854:
12343         * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
12344         when allocating a new one.
12345
12346 2015-02-01  Tom Tromey  <tom@tromey.com>
12347
12348         * MAINTAINERS: Remove myself.
12349
12350 2015-01-31  Doug Evans  <xdje42@gmail.com>
12351
12352         * dwarf2read.c (process_structure_scope): Update setting of
12353         TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
12354         * gdbtypes.c (internal_type_vptr_fieldno): New function.
12355         (set_type_vptr_fieldno): New function.
12356         (internal_type_vptr_basetype): New function.
12357         (set_type_vptr_basetype): New function.
12358         (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
12359         TYPE_VPTR_BASETYPE.
12360         (allocate_cplus_struct_type): Initialize vptr_fieldno.
12361         (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
12362         (print_cplus_stuff): ... moved here.
12363         (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
12364         * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
12365         moved to ...
12366         (struct cplus_struct_type): ... here.  All uses updated.
12367         (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
12368         (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
12369         (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
12370         * stabsread.c (read_tilde_fields): Update setting of
12371         TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
12372
12373 2015-01-31  Doug Evans  <xdje42@gmail.com>
12374
12375         * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
12376         to self_p.
12377         (cp_print_class_member): Rename local domain to self_type.
12378         * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
12379         domain_type to self_type.
12380         (set_die_type) <need_gnat_info>: Handle
12381         TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
12382         * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
12383         TYPE_SPECIFIC_SELF_TYPE.
12384         * gdbtypes.c (internal_type_self_type): New function.
12385         (set_type_self_type): New function.
12386         (smash_to_memberptr_type): Rename parameter domain to self_type.
12387         Update setting of TYPE_SELF_TYPE.
12388         (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
12389         (smash_to_method_type): Rename parameter domain to self_type.
12390         Update setting of TYPE_SELF_TYPE.
12391         (check_stub_method): Call smash_to_method_type.
12392         (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
12393         (copy_type_recursive): Ditto.
12394         * gdbtypes.h (enum type_specific_kind): New value
12395         TYPE_SPECIFIC_SELF_TYPE.
12396         (struct main_type) <type_specific>: New member self_type.
12397         (struct cplus_struct_type) <fn_field.type>: Update comment.
12398         (TYPE_SELF_TYPE): Rewrite.
12399         (internal_type_self_type, set_type_self_type): Declare.
12400         * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
12401         self_type.
12402         (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
12403         * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
12404         TYPE_TARGET_TYPE.
12405         * stabsread.c (read_member_functions): Mark methods with
12406         TYPE_CODE_METHOD, not TYPE_CODE_FUNC.  Update setting of
12407         TYPE_SELF_TYPE.
12408
12409 2015-01-31  Doug Evans  <xdje42@gmail.com>
12410
12411         * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
12412         All uses updated.
12413
12414 2015-01-31  Doug Evans  <xdje42@gmail.com>
12415
12416         * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
12417         or unions.  Return zero if union.
12418         (gnuv3_get_vtable): Call check_typedef.  Assert only passed structs.
12419         (gnuv3_rtti_type): Pass already-check_typedef'd value to
12420         gnuv3_get_vtable.
12421         (compute_vtable_size): Assert only passed structs.
12422         (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
12423
12424 2015-01-31  Doug Evans  <xdje42@gmail.com>
12425
12426         * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
12427         kinds.
12428
12429 2015-01-31  Gary Benson <gbenson@redhat.com>
12430             Doug Evans  <dje@google.com>
12431
12432         PR cli/9007
12433         PR cli/11920
12434         PR cli/15548
12435         * cli/cli-cmds.c (complete_command): Notify user if max-completions
12436         reached.
12437         * common/common-exceptions.h (enum errors)
12438         <MAX_COMPLETIONS_REACHED_ERROR>: New value.
12439         * completer.h (get_max_completions_reached_message): New declaration.
12440         (max_completions): Likewise.
12441         (completion_tracker_t): New typedef.
12442         (new_completion_tracker): New declaration.
12443         (make_cleanup_free_completion_tracker): Likewise.
12444         (maybe_add_completion_enum): New enum.
12445         (maybe_add_completion): New declaration.
12446         (throw_max_completions_reached_error): Likewise.
12447         * completer.c (max_completions): New global variable.
12448         (new_completion_tracker): New function.
12449         (free_completion_tracker): Likewise.
12450         (make_cleanup_free_completion_tracker): Likewise.
12451         (maybe_add_completions): Likewise.
12452         (throw_max_completions_reached_error): Likewise.
12453         (complete_line): Remove duplicates and limit result to max_completions
12454         entries.
12455         (get_max_completions_reached_message): New function.
12456         (gdb_display_match_list): Handle max_completions.
12457         (_initialize_completer): New declaration and function.
12458         * symtab.c: Include completer.h.
12459         (completion_tracker): New static variable.
12460         (completion_list_add_name): Call maybe_add_completion.
12461         (default_make_symbol_completion_list_break_on_1): Renamed from
12462         default_make_symbol_completion_list_break_on.  Maintain
12463         completion_tracker across calls to completion_list_add_name.
12464         (default_make_symbol_completion_list_break_on): New function.
12465         * top.c (init_main): Set rl_completion_display_matches_hook.
12466         * tui/tui-io.c: Include completer.h.
12467         (tui_old_rl_display_matches_hook): New static global.
12468         (tui_rl_display_match_list): Notify user if max-completions reached.
12469         (tui_setup_io): Save/restore rl_completion_display_matches_hook.
12470         * NEWS (New Options): Mention set/show max-completions.
12471
12472 2015-01-31  Gary Benson  <gbenson@redhat.com>
12473
12474         * symtab.c (struct add_name_data) <code>: New field.
12475         Updated comments.
12476         (add_symtab_completions): New function.
12477         (symtab_expansion_callback): Likewise.
12478         (default_make_symbol_completion_list_break_on): Set datum.code.
12479         Move minimal symbol scan before calling expand_symtabs_matching.
12480         Scan known primary symtabs for externs and statics before calling
12481         expand_symtabs_matching.  Pass symtab_expansion_callback as
12482         expansion_notify argument to expand_symtabs_matching.  Do not scan
12483         primary symtabs for externs and statics after calling
12484         expand_symtabs_matching.
12485
12486 2015-01-31  Gary Benson  <gbenson@redhat.com>
12487
12488         * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
12489         (struct quick_symbol_functions) <expand_symtabs_matching>:
12490         New argument expansion_notify.  All uses updated.
12491         (expand_symtabs_matching): New argument expansion_notify.
12492         All uses updated.
12493         * symfile-debug.c (debug_qf_expand_symtabs_matching):
12494         Also print expansion notify.
12495         * symtab.c (expand_symtabs_matching_via_partial): Call
12496         expansion_notify whenever a partial symbol table is expanded.
12497         * dwarf2read.c (dw2_expand_symtabs_matching): Call
12498         expansion_notify whenever a symbol table is instantiated.
12499
12500 2015-01-31  Doug Evans  <xdje42@gmail.com>
12501
12502         * cli-out.c: #include completer.h, readline/readline.h.
12503         (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
12504         (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
12505         (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
12506         * cli-out.h (cli_display_match_list): Declare.
12507         * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
12508         (ELLIPSIS_LEN): Ditto.
12509         (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
12510         (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
12511         (gdb_fnprint, gdb_print_filename): Ditto.
12512         (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
12513         (gdb_display_match_list): Ditto.
12514         * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
12515         (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
12516         (mld_beep_ftype, mld_read_key_ftype): Ditto.
12517         (match_list_displayer): New struct.
12518         (gdb_display_match_list): Declare.
12519         * top.c (init_main): Set rl_completion_display_matches_hook.
12520         * tui/tui-io.c: #include completer.h.
12521         (printable_part, PUTX, print_filename, get_y_or_n): Delete.
12522         (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
12523         (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
12524         (tui_mld_getc, tui_mld_read_key): Ditto.
12525         (tui_rl_display_match_list): Rewrite.
12526         (tui_handle_resize_during_io): New arg for_completion.  All callers
12527         updated.
12528
12529 2015-01-31  Doug Evans  <xdje42@gmail.com>
12530
12531         Add symbol lookup cache.
12532         * NEWS: Document new options and commands.
12533         * symtab.c (symbol_cache_key): New static global.
12534         (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
12535         (SYMBOL_LOOKUP_FAILED): New macro.
12536         (symbol_cache_slot_state): New enum.
12537         (block_symbol_cache): New struct.
12538         (symbol_cache): New struct.
12539         (new_symbol_cache_size, symbol_cache_size): New static globals.
12540         (hash_symbol_entry, eq_symbol_entry): New functions.
12541         (symbol_cache_byte_size, resize_symbol_cache): New functions.
12542         (make_symbol_cache, free_symbol_cache): New functions.
12543         (get_symbol_cache, symbol_cache_cleanup): New function.
12544         (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
12545         (symbol_cache_lookup, symbol_cache_clear_slot): New function.
12546         (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
12547         (symbol_cache_flush, symbol_cache_dump): New functions.
12548         (maintenance_print_symbol_cache): New function.
12549         (maintenance_flush_symbol_cache): New function.
12550         (symbol_cache_stats): New function.
12551         (maintenance_print_symbol_cache_statistics): New function.
12552         (symtab_new_objfile_observer): New function.
12553         (symtab_free_objfile_observer): New function.
12554         (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
12555         (_initialize_symtab): Init symbol_cache_key.  New parameter
12556         maint symbol-cache-size.  New maint commands print symbol-cache,
12557         print symbol-cache-statistics, flush-symbol-cache.
12558         Install new_objfile, free_objfile observers.
12559
12560 2015-01-31  Joel Brobecker  <brobecker@adacore.com>
12561
12562         PR symtab/17855
12563         * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
12564         to end.
12565
12566 2015-01-31  Doug Evans  <xdje42@gmail.com>
12567
12568         * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
12569         * auto-load.c: #include ctype.h.
12570         (struct auto_load_pspace_info): Replace member loaded_scripts with
12571         new members loaded_script_files, loaded_script_texts.
12572         (auto_load_pspace_data_cleanup): Update.
12573         (init_loaded_scripts_info): Update.
12574         (get_auto_load_pspace_data_for_loading): Update.
12575         (maybe_add_script_file): Renamed from maybe_add_script.  All callers
12576         updated.
12577         (maybe_add_script_text): New function.
12578         (clear_section_scripts): Update.
12579         (source_script_file, execute_script_contents): New functions.
12580         (source_section_scripts): Add support for
12581         SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
12582         (print_scripts): New function.
12583         (auto_load_info_scripts): Also print inlined scripts.
12584         (maybe_print_unsupported_script_warning): Renamed from
12585         unsupported_script_warning_print.  All callers updated.
12586         (maybe_print_script_not_found_warning): Renamed from
12587         script_not_found_warning_print.  All callers updated.
12588         * extension-priv.h (struct extension_language_script_ops): New member
12589         objfile_script_executor.
12590         * extension.c (ext_lang_objfile_script_executor): New function.
12591         * extension.h (objfile_script_executor_func): New typedef.
12592         (ext_lang_objfile_script_executor): Declare.
12593         * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
12594         * guile/guile.c (guile_extension_script_ops): Update.
12595         * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
12596         * python/python.c (python_extension_script_ops): Update.
12597         (gdbpy_execute_objfile_script): New function.
12598
12599 2015-01-31  Eli Zaretskii  <eliz@gnu.org>
12600
12601         * tui/tui-io.c (tui_expand_tabs): New function.
12602         (tui_puts, tui_redisplay_readline): Expand TABs into the
12603         appropriate number of spaces.
12604         * tui/tui-regs.c: Include tui-io.h.
12605         (tui_register_format): Call tui_expand_tabs to expand TABs into
12606         the appropriate number of spaces.
12607         * tui/tui-io.h: Add prototype for tui_expand_tabs.
12608
12609 2015-01-30  Doug Evans  <dje@google.com>
12610
12611         * NEWS: "info source" command now display producer string if present.
12612         * source.c (source_info): Print producer string if present.
12613
12614 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12615
12616         * varobj.c (varobj_delete): Fix comment.
12617
12618 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12619
12620         * varobj.c (create_child): Modify comment.
12621
12622 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12623
12624         * ada-varobj.c (ada_number_of_children): Constify struct varobj *
12625         parameter.
12626         (ada_name_of_variable): Same.
12627         (ada_path_expr_of_child): Same.
12628         (ada_value_of_variable): Same.
12629         (ada_value_is_changeable_p): Same.
12630         (ada_value_has_mutated): Same.
12631         * c-varobj.c (varobj_is_anonymous_child): Same.
12632         (c_is_path_expr_parent): Same.
12633         (c_number_of_children): Same.
12634         (c_name_of_variable): Same.
12635         (c_path_expr_of_child): Same.
12636         (get_type): Same.
12637         (c_value_of_variable): Same.
12638         (cplus_number_of_children): Same.
12639         (cplus_name_of_variable): Same.
12640         (cplus_path_expr_of_child): Same.
12641         (cplus_value_of_variable): Same.
12642         * jv-varobj.c (java_number_of_children): Same.
12643         (java_name_of_variable): Same.
12644         (java_path_expr_of_child): Same.
12645         (java_value_of_variable): Same.
12646         * varobj.c (number_of_children): Same.
12647         (name_of_variable): Same.
12648         (is_root_p): Same.
12649         (varobj_ensure_python_env): Same.
12650         (varobj_get_objname): Same.
12651         (varobj_get_expression): Same.
12652         (varobj_get_display_format): Same.
12653         (varobj_get_display_hint): Same.
12654         (varobj_has_more): Same.
12655         (varobj_get_thread_id): Same.
12656         (varobj_get_frozen): Same.
12657         (dynamic_varobj_has_child_method): Same.
12658         (varobj_get_gdb_type): Same.
12659         (is_path_expr_parent): Same.
12660         (varobj_default_is_path_expr_parent): Same.
12661         (varobj_get_language): Same.
12662         (varobj_get_attributes): Same.
12663         (varobj_is_dynamic_p): Same.
12664         (varobj_get_child_range): Same.
12665         (varobj_value_has_mutated): Same.
12666         (varobj_get_value_type): Same.
12667         (number_of_children): Same.
12668         (name_of_variable): Same.
12669         (check_scope): Same.
12670         (varobj_editable_p): Same.
12671         (varobj_value_is_changeable_p): Same.
12672         (varobj_floating_p): Same.
12673         (varobj_default_value_is_changeable_p): Same.
12674
12675 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12676
12677         * varobj.c (varobj_get_path_expr): Set var->path_expr.
12678         * c-varobj.c (c_path_expr_of_child): Set local var instead of
12679         child->path_expr.
12680         (cplus_path_expr_of_child): Same.
12681
12682 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12683
12684         * mi-cmd-var.c (print_varobj): Free varobj_get_expression
12685         result.
12686         (mi_cmd_var_info_expression): Same.
12687         * varobj.c (varobj_get_expression): Mention in the comment that
12688         the result must by freed by the caller.
12689
12690 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12691
12692         * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
12693         varobj_get_type.
12694         (varobj_update_one): Same.
12695         * varobj.c (update_type_if_necessary): Free curr_type_str and
12696         new_type_str.
12697         (varobj_get_type): Specify in comment that the result needs to be
12698         freed by the caller.
12699
12700 2015-01-29  Doug Evans  <dje@google.com>
12701
12702         PR symtab/17890
12703         * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
12704
12705 2015-01-25  Mark Wielaard  <mjw@redhat.com>
12706
12707         * dwarf2read.c (checkproducer): Call producer_is_gcc.
12708         * utils.c (producer_is_gcc_ge_4): Likewise.
12709         (producer_is_gcc): New function.
12710         * utils.h (producer_is_gcc): New declaration.
12711
12712 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12713
12714         * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
12715         kind.
12716         * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
12717         parameter by "addr_stack" parameter.
12718         (resolve_dynamic_range): Replace "addr" parameter by
12719         "stack_addr" parameter.  Update function documentation.
12720         Update code accordingly.
12721         (resolve_dynamic_array, resolve_dynamic_union)
12722         (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
12723         (resolve_dynamic_type): Update code, following the changes made
12724         to resolve_dynamic_type_internal's interface.
12725         * dwarf2loc.h (struct property_addr_info): New.
12726         (dwarf2_evaluate_property): Replace "address" parameter
12727         by "addr_stack" parameter.  Adjust function documentation.
12728         (struct dwarf2_offset_baton): New.
12729         (struct dwarf2_property_baton): Update documentation of
12730         field "referenced_type" to be more general. New field
12731         "offset_info" in union data field.
12732         * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
12733         parameter by "addr_stack" parameter.  Adjust code accordingly.
12734         Add support for PROP_ADDR_OFFSET properties.
12735         * dwarf2read.c (attr_to_dynamic_prop): Add support for
12736         DW_AT_data_member_location attributes as well.  Use case
12737         statements instead of if/else condition.
12738
12739 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12740
12741         * ada-varobj.c (ada_varobj_get_array_number_of_children):
12742         Return zero if PARENT_VALUE is NULL and parent_type's
12743         range type is dynamic.
12744
12745 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12746
12747         * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
12748         nonzero if the type's subtype is dynamic.
12749         (resolve_dynamic_range): Also resolve the range's subtype.
12750
12751 2015-01-29  Alexander Klimov  <alserkli@inbox.ru>  (tiny patch)
12752
12753         Pushed by Joel Brobecker  <brobecker@adacore.com>.
12754         * symfile.c (unmap_overlay_command): Initialize sec to NULL.
12755
12756 2015-01-27  Doug Evans  <dje@google.com>
12757
12758         * NEWS: Mention gdb.Objfile.username.
12759         * python/py-objfile.c (objfpy_get_username): New function.
12760         (objfile_getset): Add "username".
12761
12762 2015-01-24  Mark Wielaard  <mjw@redhat.com>
12763
12764         * stack.c (return_command): Markup warning message with _.
12765
12766 2015-01-24  Doug Evans  <xdje42@gmail.com>
12767
12768         * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
12769
12770 2015-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
12771
12772         Fix 100x slowdown regression on DWZ files.
12773         * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
12774         (struct line_header): Add offset and offset_in_dwz.
12775         (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
12776         (free_line_header_voidp): New declaration.
12777         (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
12778         functions.
12779         (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
12780         (handle_DW_AT_stmt_list): Use line_header_hash.
12781         (free_line_header_voidp): New function.
12782         (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
12783         (dwarf_decode_lines): New parameter decode_mapping, use it.
12784         (dwarf2_free_objfile): Free line_header_hash.
12785
12786 2015-01-23  Simon Marchi  <simon.marchi@ericsson.com>
12787
12788         PR gdb/17416
12789         * valops.c (value_rtti_indirect_type): Catch exception thrown by
12790         value_ind.
12791
12792 2015-01-15  Mark Wielaard  <mjw@redhat.com>
12793
12794         * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
12795         DW_AT_noreturn.
12796         * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
12797         calling_convention an 8 bit bit field.
12798         (TYPE_NO_RETURN): New macro.
12799         * infcmd.c (finish_command): Query if function does not return
12800         normally.
12801         * stack.c (return_command): Likewise.
12802
12803 2015-01-23  Pedro Alves  <palves@redhat.com>
12804
12805         * linux-nat.c (linux_is_async_p): New macro.
12806         (linux_nat_is_async_p):
12807         (linux_nat_terminal_inferior): Check whether the target can async
12808         instead of whether it is already async.
12809         (linux_nat_terminal_ours): Don't check whether the target is
12810         async.
12811         (linux_async_pipe): Use linux_is_async_p.
12812
12813 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12814
12815         * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
12816         '-ascending'.
12817         * thread.c (tp_array_compar_ascending, tp_array_compar): New.
12818         (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
12819         Sort tp_array using tp_array_compar.
12820         (_initialize_thread): Extend thread_apply_all_command help.
12821
12822 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12823
12824         * corelow.c (core_open): Call also thread_command.
12825         * gdbthread.h (thread_command): New prototype moved from ...
12826         * thread.c (thread_command): ... here.
12827         (thread_command): Make it global.
12828
12829 2015-01-22  Pedro Alves  <palves@redhat.com>
12830
12831         * configure.ac [*mingw32*]: Check $curses_found instead of
12832         $prefer_curses.
12833         * configure: Regenerate.
12834         * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
12835         HAVE_NCURSES_NCURSES_H checks.
12836
12837 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
12838
12839         * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
12840         fails with the 1st arg NULL, try again with "unknown".  Don't test
12841         the "cup" capability: it isn't supported by the Windows port of
12842         ncurses, but the Windows console driver is still capable of
12843         supporting TUI.
12844
12845 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12846
12847         * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
12848
12849 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
12850
12851         * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
12852         (ALLDEPFILES): Remove irix5-nat.c.  These two are part of the
12853         reason that "make TAGS" is broken.
12854
12855 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
12856
12857         * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
12858         and check additional store instructions.
12859
12860 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
12861
12862         * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
12863
12864 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
12865
12866         * ppc-linux-tdep.c (ppc_skip_trampoline_code,
12867         ppc_canonicalize_syscall, ppc_linux_syscall_record,
12868         ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
12869         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12870         * rs6000-tdep.c (rs6000_epilogue_frame_cache,
12871         rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
12872         rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
12873         ppc_process_record_op19, ppc_process_record_op31,
12874         ppc_process_record_op59, ppc_process_record_op60,
12875         ppc_process_record_op63): Likewise.
12876
12877 2015-01-20  Joel Brobecker  <brobecker@adacore.com>
12878
12879         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
12880         (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
12881         strerror.
12882
12883 2015-01-20  Wei-cheng Wang  <cole945@gmail.com>
12884
12885         * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
12886         ppc_process_record_op31, ppc_process_record_op59,
12887         ppc_process_record_op60, ppc_process_record_op63,
12888         ppc_process_record): Fix -Wformat warning.
12889         * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12890         Remove unused variables.
12891
12892 2015-01-20  Chen Gang  <gang.chen.5i5j@gmail.com>
12893
12894         * MAINTAINERS (Write After Approval): Add "Chen Gang".
12895
12896 2015-01-19  Eli Zaretskii  <eliz@gnu.org>
12897
12898         * configure.ac [*mingw32*]: Only add windows-termcap.o to
12899         CONFIG_OBS if not building with a curses library.
12900         * configure: Regenerate.
12901
12902         * windows-termcap.c: Include defs.h.  Make the whole body empty if
12903         either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12904         HAVE_NCURSES_NCURSES_H is defined.
12905
12906 2015-01-19  Joel Brobecker  <brobecker@adacore.com>
12907
12908         * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12909         from end of line to start of next line.
12910
12911 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12912
12913         * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12914         Scan PLT stub backward for reverse debugging.
12915         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12916
12917 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12918             Ulrich Weigand  <uweigand@de.ibm.com>
12919
12920         * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12921         gdb_target_obs.
12922         (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12923         record.
12924         (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12925         ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12926         (ppc_linux_init_abi): Set process_record, process_record_signal.
12927         * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12928         ppc_linux_record_tdep to gdbarch_tdep.
12929         (ppc_process_record): New declaration.
12930         * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12931         ppc_process_record_op19, ppc_process_record_op31,
12932         ppc_process_record_op59, ppc_process_record_op60,
12933         ppc_process_record_op63, ppc_process_record): New functions.
12934
12935 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12936
12937         * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12938         rs6000_in_function_epilogue_frame_p and add an argument
12939         for frame_info.
12940         (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12941         rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12942         New functions.
12943         (rs6000_epilogue_frame_unwind): New.
12944         (rs6000_gdbarch_init): Append epilogue unwinder.
12945
12946 2015-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
12947
12948         * nat/linux-personality.c: Replace "#ifndef
12949         HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12950         !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12951         systems.
12952
12953 2015-01-16  Eli Zaretskii  <eliz@gnu.org>
12954
12955         * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12956         functions.
12957         (_initialize_tui_win) <border-kind, border-mode>:
12958         <active-border-mode>: Use tui_set_var_cmd as the "set" function.
12959         (tui_set_tab_width_command): Fix the commentary.
12960
12961         * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12962
12963         * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12964         Doc fix.
12965         (tui_set_tab_width_command): Delete and recreate the source and
12966         the disassembly windows, to show the effect of the changed tab
12967         size immediately.
12968
12969         * tui/tui-data.h (LINE_PREFIX): Make shorter
12970         (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12971         "Thread NNNNN.XXXX" thread ID notation on Windows.
12972
12973 2015-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12974
12975         Fix gcc-5 compilation.
12976         * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12977
12978 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
12979
12980         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12981         (linux-personality.o): New rule.
12982         * common/common-defs.h: Include <stdint.h>.
12983         * config/aarch64/linux.mh (NATDEPFILES): Include
12984         linux-personality.o.
12985         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12986         * config/arm/linux.mh (NATDEPFILES): Likewise.
12987         * config/i386/linux64.mh (NATDEPFILES): Likewise.
12988         * config/i386/linux.mh (NATDEPFILES): Likewise.
12989         * config/ia64/linux.mh (NATDEPFILES): Likewise.
12990         * config/m32r/linux.mh (NATDEPFILES): Likewise.
12991         * config/m68k/linux.mh (NATDEPFILES): Likewise.
12992         * config/mips/linux.mh (NATDEPFILES): Likewise.
12993         * config/pa/linux.mh (NATDEPFILES): Likewise.
12994         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12995         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12996         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12997         * config/s390/linux.mh (NATDEPFILES): Likewise.
12998         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12999         * config/sparc/linux.mh (NATDEPFILES): Likewise.
13000         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
13001         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
13002         * defs.h: Remove #include <stdint.h> (moved to
13003         common/common-defs.h).
13004         * linux-nat.c: Include nat/linux-personality.h.  Remove #include
13005         <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
13006         nat/linux-personality.c).
13007         (linux_nat_create_inferior): Remove code to disable address space
13008         randomization (moved to nat/linux-personality.c).  Create cleanup
13009         to disable address space randomization.
13010         * nat/linux-personality.c: New file.
13011         * nat/linux-personality.h: Likewise.
13012
13013 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
13014
13015         * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
13016         common/posix-strerror.c.
13017         (posix-strerror.o): New rule.
13018         (mingw-strerror.o): Likewise.
13019         * common/common-utils.h (safe_strerror): Move prototype to here,
13020         from utils.h.
13021         * common/common.host: New file.
13022         * common/mingw-strerror.c: Likewise.
13023         * common/posix-strerror.c: Likewise.
13024         * configure: Regenerated.
13025         * configure.ac: Source common/common.host.  Add variable
13026         common_host_obs to gdb_host_obs.
13027         * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
13028         gdb/common/posix-strerror.c when warning about the use of
13029         strerror.
13030         * mingw-hdep.c (safe_strerror): Remove definition; move it to
13031         common/mingw-strerror.c.
13032         * posix-hdep.c (safe_strerror): Remove definition; move it to
13033         common/posix-hdep.c.
13034         * utils.h (safe_strerror): Remove prototype; move to
13035         common/common-utils.h.
13036
13037 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
13038
13039         GDB 7.8.2 released.
13040
13041 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
13042
13043         * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
13044         ___XA type if the array has already been fixed.
13045
13046 2015-01-14  Yao Qi  <yao@codesourcery.com>
13047
13048         * Makefile.in (ppc-linux.o): New rule.
13049         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
13050         * configure.ac: AC_CHECK_FUNCS(getauxval).
13051         * config.in: Re-generated.
13052         * configure: Re-generated.
13053         * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
13054         Declare.
13055         * nat/ppc-linux.c: New file.
13056         * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
13057         Call ppc64_64bit_inferior_p.
13058
13059 2015-01-14  Yao Qi  <yao@codesourcery.com>
13060
13061         * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
13062         nat/ppc-linux.h.
13063         (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
13064         (PPC_FEATURE_HAS_DFP): Likewise.
13065         (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
13066         (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
13067         (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
13068         Include "nat/ppc-linux.h".
13069         * nat/ppc-linux.h: New file.
13070         * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
13071
13072 2015-01-14  Pedro Alves  <palves@redhat.com>
13073
13074         PR gdb/17525
13075         * breakpoint.c: Include "interps.h".
13076         (bpstat_do_actions_1): Also check whether the interpreter is
13077         async.
13078
13079 2015-01-14  Pedro Alves  <palves@redhat.com>
13080
13081         PR cli/17828
13082         * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
13083         reinstall if the interpreter is sync.
13084
13085 2015-01-13  Doug Evans  <dje@google.com>
13086
13087         * objfiles.c (objfile_filename): New function.
13088         * objfiles.h (objfile_filename): Declare it.
13089         (objfile_name): Add function comment.
13090         * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
13091         bfd file name (which may be realpath'd), and the original name.
13092
13093 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
13094
13095         * NEWS: Create a new section for the next release branch.
13096         Rename the section of the current branch, now that it has
13097         been cut.
13098
13099 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
13100
13101         GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
13102         * version.in: Bump version to 7.9.50.DATE-cvs.
13103
13104 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
13105
13106         * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
13107         Remove trailing new-line in argument of call to warning.
13108
13109 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
13110
13111         * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
13112         new-line in argument of call to "warning".
13113
13114 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
13115
13116         * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
13117         in static block, then try searching for primitive types.
13118
13119 2015-01-12  Patrick Palka  <patrick@parcs.ath.cx>
13120
13121         * top.h (gdb_add_history): Declare.
13122         * top.c (command_count): New variable.
13123         (gdb_add_history): New function.
13124         (gdb_safe_append_history): New static function.
13125         (quit_force): Call it.
13126         (command_line_input): Use gdb_add_history instead of
13127         add_history.
13128         * event-top.c (command_line_handler): Likewise.
13129
13130 2015-01-12  James Clarke  <jrtc27@jrtc27.com>  (tiny patch)
13131
13132         PR gdb/17046
13133         * darwin-nat.c: Replace <machine/setjmp.h> #include by
13134         <setjmp.h> #include.
13135
13136 2015-01-11  Doug Evans  <xdje42@gmail.com>
13137
13138         * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
13139
13140 2015-01-11  Doug Evans  <xdje42@gmail.com>
13141
13142         PR gdb/15830
13143         * NEWS: The "maint demangle" command is renamed as "demangle".
13144         * demangle.c: #include cli/cli-utils.h, language.h.
13145         (demangle_command): New function.
13146         (_initialize_demangle): Add new command "demangle".
13147         * maint.c (maintenance_demangle): Stub out.
13148         (_initialize_maint_cmds): Update help text for "maint demangle",
13149         and mark as deprecated.
13150
13151 2015-01-11  Mark Kettenis  <kettenis@gnu.org>
13152
13153         * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
13154         inferior_thread is a function.
13155
13156 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
13157
13158         * Makefile.in (.y.c): Don't munge yacc's #line
13159         directives.
13160
13161 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
13162
13163         * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
13164         to prompt for input.
13165         * tui/tui-hooks.c (tui_query_hook): Remove.
13166         (tui_install_hooks): Don't set deprecated_query_hook.
13167         * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
13168         height calculation.  Always update the command window's cur_line.
13169
13170 2015-01-09  Pedro Alves  <palves@redhat.com>
13171
13172         * breakpoint.c (hardware_breakpoint_inserted_here_p): New
13173         function.
13174         * breakpoint.h (hardware_breakpoint_inserted_here_p): New
13175         declaration.
13176         * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
13177         (linux_resume_one_lwp): Store the thread's PC.  Adjust to clear
13178         stop_reason.
13179         (check_stopped_by_watchpoint): New function.
13180         (save_sigtrap): Reimplement.
13181         (linux_nat_stopped_by_watchpoint): Adjust.
13182         (linux_nat_lp_status_is_event): Delete.
13183         (stop_wait_callback): Only call save_sigtrap after storing the
13184         pending status.
13185         (status_callback): If the thread had been stopped for a breakpoint
13186         that has since been removed, discard the event and resume the LWP.
13187         (count_events_callback, select_event_lwp_callback): Use
13188         lwp_status_pending_p instead of linux_nat_lp_status_is_event.
13189         (cancel_breakpoint): Rename to ...
13190         (check_stopped_by_breakpoint): ... this.  Record whether the LWP
13191         stopped for a software breakpoint or hardware breakpoint.
13192         (select_event_lwp): Only give preference to the stepping LWP in
13193         all-stop mode.  Adjust comments.
13194         (stop_and_resume_callback): Remove references to new_pending_p.
13195         (linux_nat_filter_event): Likewise.  Leave exit events of the
13196         leader thread pending here.  Handle signal short circuiting here.
13197         Only call save_sigtrap after storing the pending waitstatus.
13198         (linux_nat_wait_1): Remove 'retry' label.  Remove references to
13199         new_pending.  Don't handle leaving events the caller is not
13200         interested in pending here, nor handle signal short-circuiting
13201         here.  Also give equal priority to all LWPs that have had events
13202         in non-stop mode.  If reporting a software breakpoint event,
13203         unadjust the LWP's PC.
13204         * linux-nat.h (enum lwp_stop_reason): New.
13205         (struct lwp_info) <stop_pc>: New field.
13206         (struct lwp_info) <stopped_by_watchpoint>: Delete field.
13207         (struct lwp_info) <stop_reason>: New field.
13208         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
13209
13210 2015-01-09  Pedro Alves  <palves@redhat.com>
13211
13212         * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
13213         Set the LWP's 'resumed' flag.
13214
13215 2015-01-09  Pedro Alves  <palves@redhat.com>
13216
13217         * linux-nat.c (linux_resume_one_lwp): New function.
13218         (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
13219         (linux_nat_resume): Use lwp_status_pending_p and
13220         linux_resume_one_lwp.
13221         (linux_handle_syscall_trap): Use linux_resume_one_lwp.
13222         (linux_handle_extended_wait): Use linux_resume_one_lwp.
13223         (status_callback, running_callback): Use lwp_status_pending_p.
13224         (lwp_status_pending_p): New function.
13225         (stop_and_resume_callback): Use lwp_status_pending_p.
13226         (linux_nat_filter_event): Use linux_resume_one_lwp.
13227         (linux_nat_wait_1): Always use status_callback to look for an LWP
13228         with a pending status.  Use linux_resume_one_lwp.
13229         (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
13230         linux_resume_one_lwp.
13231
13232 2015-01-09  Pedro Alves  <palves@redhat.com>
13233
13234         * breakpoint.c (bp_location_inserted_here_p): New function,
13235         factored out from ...
13236         (breakpoint_inserted_here_p): ... here.  Use
13237         ALL_BP_LOCATIONS_AT_ADDR.
13238         (software_breakpoint_inserted_here_p): Use
13239         bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
13240
13241 2014-01-09  Pedro Alves  <palves@redhat.com>
13242
13243         Skip enabling event reporting if the kernel supports
13244         PTRACE_EVENT_CLONE.
13245         * linux-thread-db.c: Include "nat/linux-ptrace.h".
13246         (thread_db_use_events): New function.
13247         (try_thread_db_load_1): Check thread_db_use_events before enabling
13248         event reporting.
13249         (update_thread_state): New function.
13250         (attach_thread): Use it.  Check thread_db_use_events before
13251         enabling event reporting.
13252         (thread_db_detach): Check thread_db_use_events before disabling
13253         event reporting.
13254         (find_new_threads_callback): Check thread_db_use_events before
13255         enabling event reporting.  Update the thread's state if not using
13256         libthread_db events.
13257
13258 2015-01-09  Pedro Alves  <palves@redhat.com>
13259
13260         * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
13261         about to wait for is > 0.
13262         * linux-thread-db.c (find_new_threads_callback): Ignore thread if
13263         the kernel thread ID is -1.
13264
13265 2015-01-09  Pedro Alves  <palves@redhat.com>
13266
13267         * linux-nat.c (attach_proc_task_lwp_callback): New function.
13268         (linux_nat_attach): Use linux_proc_attach_tgid_threads.
13269         (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
13270         ptrace option flags.
13271         * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
13272         field.
13273         * nat/linux-procfs.c: Include <dirent.h>.
13274         (linux_proc_get_int): New parameter "warn".  Handle it.
13275         (linux_proc_get_tgid): Adjust.
13276         (linux_proc_get_tracerpid): Rename to ...
13277         (linux_proc_get_tracerpid_nowarn): ... this.
13278         (linux_proc_pid_get_state): New function, factored out from
13279         (linux_proc_pid_has_state): ... this.  Add new parameter "warn"
13280         and handle it.
13281         (linux_proc_pid_is_gone): New function.
13282         (linux_proc_pid_is_stopped): Adjust.
13283         (linux_proc_pid_is_zombie_maybe_warn)
13284         (linux_proc_pid_is_zombie_nowarn): New functions.
13285         (linux_proc_pid_is_zombie): Use
13286         linux_proc_pid_is_zombie_maybe_warn.
13287         (linux_proc_attach_tgid_threads): New function.
13288         * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
13289         (linux_proc_get_tracerpid): Rename to ...
13290         (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
13291         (linux_proc_pid_is_gone): New declaration.
13292         (linux_proc_pid_is_zombie): Update comment.
13293         (linux_proc_pid_is_zombie_nowarn): New declaration.
13294         (linux_proc_attach_lwp_func): New typedef.
13295         (linux_proc_attach_tgid_threads): New declaration.
13296         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
13297         use nowarn functions.
13298         (linux_ptrace_attach_fail_reason_string): Move here from
13299         gdbserver/linux-low.c and rename.
13300         (ptrace_supports_feature): If the current ptrace options are not
13301         known yet, check them now, instead of asserting.
13302         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
13303         Declare.
13304
13305 2015-01-09  Pedro Alves  <palves@redhat.com>
13306
13307         * linux-thread-db.c (thread_db_find_new_threads_silently)
13308         (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
13309         (find_new_threads_once): Print debug output on gdb_stdlog.
13310
13311 2015-01-09  Chen Gang  <gang.chen.5i5j@gmail.com>
13312             Pedro Alves  <palves@redhat.com>
13313
13314         * compile/compile.c: Include "gdb_wait.h".
13315         (do_rmdir): Check return value, and free 'zap'.
13316
13317 2015-01-08  Pedro Alves  <palves@redhat.com>
13318             Yao Qi  <yao@codesourcery.com>
13319
13320         * dwarf2loc.c (indirect_pieced_value): Don't call
13321         gdb_sign_extend.  Call extract_signed_integer instead.
13322         * utils.c (gdb_sign_extend): Remove.
13323         * utils.h (gdb_sign_extend): Remove declaration.
13324
13325 2015-01-07  Pierre Muller  <muller@sourceware.org>
13326
13327         PR symtab/17811
13328         * stabsread.c (define_symbol): Set language for C++ special symbols.
13329
13330 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
13331
13332         * inflow.c (initial_gdb_ttystate): Tweak comment.
13333
13334 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
13335
13336         * inflow.c (set_initial_gdb_ttystate): Add empty line after
13337         comment documenting function.
13338
13339 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
13340
13341         * terminal.h (set_initial_gdb_ttystate): Declare.
13342         * inflow.c (initial_gdb_ttystate): New static variable.
13343         (set_initial_gdb_ttystate): New setter.
13344         (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
13345         instead of our current terminal state.
13346         * top.c (gdb_init): Call set_initial_gdb_ttystate.
13347
13348 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
13349
13350         * guile/scm-type.c (tyscm_array_1): Add comment.
13351         * python/py-type.c (typy_array_1): Add comment.
13352
13353 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
13354
13355         * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
13356         error if N2 is equal to N1 - 1.
13357
13358 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
13359
13360         * python/py-type.c (typy_array_1): Do not raise negative-length
13361         exception if N2 is equal to N1 - 1.
13362
13363 2015-01-03  Doug Evans  <xdje42@gmail.com>
13364
13365         * c-exp.y: Whitespace cleanup.
13366         (classify_inner_name): Remove extra ;.
13367
13368 2015-01-02  Maciej W. Rozycki  <macro@codesourcery.com>
13369
13370         * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
13371         offset signed.
13372
13373 2015-01-02  Doug Evans  <dje@google.com>
13374
13375         * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
13376
13377 2015-01-02  Doug Evans  <dje@google.com>
13378
13379         * symtab.h (struct symbol): Fix typo in comment.
13380
13381 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
13382
13383         Update year range in copyright notice of all files.
13384
13385 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
13386
13387         * top.c (print_gdb_version): Update copyright year to 2015.
13388
13389 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
13390
13391         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
13392
13393 For older changes see ChangeLog-2014.
13394 \f
13395 Local Variables:
13396 mode: change-log
13397 left-margin: 8
13398 fill-column: 74
13399 version-control: never
13400 coding: utf-8
13401 End: