1 2015-11-17 Simon Marchi <simon.marchi@ericsson.com>
3 * c-exp.y (exp): Adjust, change enum c_string_type to
5 (parse_string_or_char): Likewise.
6 * c-lang.c (charset_for_string_type): Likewise.
7 (classify_type): Likewise.
8 (c_printchar): Likewise.
9 (c_printstr): Likewise.
10 (evaluate_subexp_c): Likewise. And change cast to enum
12 * c-lang.h: Include "common/enum_flags.h".
13 (enum c_string_type): Rename to...
14 (enum c_string_type_values): ...this.
15 (c_string_type): Define new enum flags type.
17 2015-11-17 Pedro Alves <palves@redhat.com>
19 * btrace.h: Include common/enum-flags.h.
20 (btrace_insn_flags): Define.
21 (struct btrace_insn) <flags>: Change type.
22 (btrace_function_flags): Define.
23 (struct btrace_function) <flags>: Change type.
24 (btrace_thread_flags): Define.
25 (struct btrace_thread_info) <flags>: Change type.
26 * c-exp.y (token_flags): Rename to ...
27 (token_flag): ... this.
28 (token_flags): Define.
29 (struct token) <flags>: Change type.
30 * common/enum-flags.h: New file.
31 * compile/compile-c-types.c (convert_qualified): Change type of
33 * compile/compile-internal.h: Include "common/enum-flags.h".
34 (gcc_qualifiers_flags): Define.
35 * completer.c (enum reg_completer_targets): Rename to ...
36 (enum reg_completer_target): ... this.
37 (reg_completer_targets): Define.
38 (reg_or_group_completer_1): Change type of 'targets' parameter.
39 * disasm.c (do_mixed_source_and_assembly_deprecated): Change type
41 (do_mixed_source_and_assembly): Change type of 'psl_flags' local.
42 * infrun.c: Include "common/enum-flags.h".
43 (enum step_over_what): Rename to ...
44 (enum step_over_what_flag): ... this.
45 (step_over_what): Change type.
46 (start_step_over): Change type of 'step_what' local.
47 (thread_still_needs_step_over): Now returns a step_over_what.
49 (keep_going_pass_signal): Change type of 'step_what' local.
50 * linux-tdep.c: Include "common/enum-flags.h".
51 (enum filterflags): Rename to ...
52 (enum filter_flag): ... this.
53 (filter_flags): Define.
54 (dump_mapping_p): Change type of 'filterflags' parameter.
55 (linux_find_memory_regions_full): Change type of 'filterflags'
57 (linux_find_memory_regions_full): Pass the address of an unsigned
58 int to sscanf instead of the address of an enum.
59 * record-btrace.c (btrace_print_lines): Change type of local
61 (btrace_call_history): Replace 'flags' parameter
62 with 'int_flags' parameter. Adjust.
63 (record_btrace_call_history, record_btrace_call_history_range)
64 (record_btrace_call_history_from): Rename 'flags' parameter to
65 'int_flags'. Use record_print_flags.
66 * record.h: Include "common/enum-flags.h".
67 (record_print_flags): Define.
68 * source.c: Include "common/enum-flags.h".
69 (print_source_lines_base, print_source_lines): Change type of
71 * symtab.h: Include "common/enum-flags.h".
72 (enum print_source_lines_flags): Rename to ...
73 (enum print_source_lines_flag): ... this.
74 (print_source_lines_flags): Define.
75 (print_source_lines): Change prototype.
77 2015-11-17 Pedro Alves <palves@redhat.com>
79 * guile/scm-disasm.c (gdbscm_disasm_read_memory): Return -1 on
80 error instead of TARGET_XFER_E_IO.
81 (gdbscm_disasm_memory_error): Always pass TARGET_XFER_E_IO to
84 2015-11-17 Dominik Vogt <vogt@linux.vnet.ibm.com>
86 * hppa-tdep.c (hppa_sign_extend, hppa_low_hppa_sign_extend)
87 (prologue_inst_adjust_sp, hppa_frame_cache): Fix left shift of negative
89 * dwarf2read.c (read_subrange_type): Likewise.
91 2015-11-16 Yao Qi <yao.qi@linaro.org>
93 * aarch64-tdep.c (aarch64_extract_return_value): Change array
94 buf's length to V_REGISTER_SIZE.
96 2015-11-16 Yao Qi <yao.qi@linaro.org>
98 * aarch64-tdep.c (pass_in_x_or_stack): Change argument type
99 from bfd_byte * to value *. Caller updated.
100 (pass_in_x): Likewise.
101 (pass_in_v_or_stack): Likewise.
102 (pass_on_stack): Likewise.
104 2015-11-16 Yao Qi <yao.qi@linaro.org>
106 * aarch64-tdep.c (aarch64_push_dummy_call): Call value_contents
107 instead of value_contents_writeable.
108 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
110 2015-11-16 Yao Qi <yao.qi@linaro.org>
112 * arm-tdep.c (arm_push_dummy_call): New array buf. Store regval
113 to buf. Pass buf instead of val to push_stack_item.
115 2015-11-13 Yao Qi <yao.qi@linaro.org>
118 * arm-tdep.c (arm_type_align): Return the right alignment
120 (arm_vfp_cprc_sub_candidate): Return true for 64-bit and
121 128-bit vector types.
122 (arm_return_in_memory): Handel vector type.
124 2015-11-13 Yao Qi <yao.qi@linaro.org>
126 * arm-tdep.c (arm_return_in_memory): Rewrite it.
127 (arm_return_value): Call arm_return_in_memory for
130 2015-11-12 Yao Qi <yao.qi@linaro.org>
132 * arm-tdep.c (push_stack_item): Change contents type to
135 2015-11-11 Simon Marchi <simon.marchi@ericsson.com>
137 * inf-ptrace.c (inf_ptrace_fetch_register): Change long int *
138 cast to PTRACE_TYPE_RET *.
139 (inf_ptrace_store_register): Likewise.
141 2015-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
143 * avr-tdep.c (_initialize_avr_tdep): Switch to 'add_info' for creating
145 * gnu-nat.c (add_task_commands): Likewise.
146 * macrocmd.c (_initialize_macrocmd): Likewise.
148 2015-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
150 * cli/cli-decode.c (add_info): Switch to class_info.
152 2015-11-09 Joel Brobecker <brobecker@adacore.com>
154 * ada-lang.c (ada_is_wrapper_field): Add special handling
155 for fields called "RETVAL".
157 2015-11-09 Yao Qi <yao.qi@linaro.org>
159 * arm-tdep.c (arm_exidx_new_objfile): Use
160 ELF_STRING_ARM_unwind.
162 2015-11-09 Yao Qi <yao.qi@linaro.org>
164 * infrun.c (displaced_step_in_progress_thread): New function.
165 (handle_inferior_event_1): Call it.
167 2015-11-05 Yao Qi <yao.qi@linaro.org>
169 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Call
170 aarch64_decode_insn and decode instruction by aarch64_inst.
172 2015-11-05 Yao Qi <yao.qi@linaro.org>
174 * aarch64-tdep.c (extract_signed_bitfield): Remove.
175 (decode_masked_match): Remove.
176 (aarch64_decode_add_sub_imm): Remove.
177 (aarch64_decode_br): Remove.
178 (aarch64_decode_eret): Remove.
179 (aarch64_decode_movz): Remove.
180 (aarch64_decode_orr_shifted_register_x): Remove.
181 (aarch64_decode_ret): Remove.
182 (aarch64_decode_stp_offset): Remove.
183 (aarch64_decode_stur): Remove.
184 (aarch64_analyze_prologue): Call aarch64_decode_insn
185 and use aarch64_inst to decode instructions.
187 2015-11-05 Yao Qi <yao.qi@linaro.org>
189 * aarch64-tdep.c (aarch64_decode_stp_offset): New argument
191 (aarch64_decode_stp_offset_wb): Removed.
192 (aarch64_analyze_prologue): Don't use
193 aarch64_decode_stp_offset_wb.
195 2015-11-04 Marcin Kościelnicki <koriakin@0x04.net>
198 * gdb/s390-linux-tdep.c (s390_is_partial_instruction): New function.
199 (s390_software_single_step): New function.
200 (s390_displaced_step_hw_singlestep): New function.
201 (s390_gdbarch_init): Fill gdbarch slots with the above.
203 2015-11-04 Marcin Kościelnicki <koriakin@0x04.net>
206 * gdb/configure.tgt: Add linux-record.o to s390*-linux.
207 * gdb/s390-linux-tdep.c: #include "linux-record.h", "record-full.h"
208 (s390_linux_record_tdep): New static global variable.
209 (s390x_linux_record_tdep): New static global variable.
210 (s390_all_but_pc_registers_record): New function.
211 (s390_canonicalize_syscall): New function.
212 (s390_linux_syscall_record): New function.
213 (s390_linux_record_signal): New function.
214 (s390_record_calc_disp_common): New function.
215 (s390_record_calc_disp): New function.
216 (s390_record_calc_disp_vsce): New function.
217 (s390_record_calc_rl): New function.
218 (s390_record_gpr_g): New function.
219 (s390_record_gpr_h): New function.
220 (s390_record_vr): New function.
221 (s390_process_record): New function.
222 (s390_init_linux_record_tdep): New function.
223 (s390_gdbarch_init): Fill record function slots.
225 2015-11-04 Marcin Kościelnicki <koriakin@0x04.net>
227 * record-full.c (record_full_exec_insn): Use xmalloc for temporary
230 2015-11-04 Markus Metzger <markus.t.metzger@intel.com>
232 * record.c (get_insn_history_modifiers): Set DISASSEMBLY_SOURCE
233 instead of DISASSEMBLY_SOURCE_DEPRECATED. Also accept /s.
234 (_initialize_record): Document the /s modifier.
235 * NEWS: Announce record instruction-history's new /s modifier.
237 2015-11-04 Markus Metzger <markus.t.metzger@intel.com>
239 * record-btrace.c (struct btrace_line_range): New.
240 (btrace_mk_line_range, btrace_line_range_add)
241 (btrace_line_range_is_empty, btrace_line_range_contains_range)
242 (btrace_find_line_range, btrace_print_lines): New.
243 (btrace_insn_history): Add source interleaving algorithm.
245 2015-11-04 Markus Metzger <markus.t.metzger@intel.com>
247 * disasm.h (DISASSEMBLY_SPECULATION): New.
248 (struct disasm_insn): New.
249 (gdb_pretty_print_insn): New.
250 * disasm.c (gdb_pretty_print_insn): Replace parameter PC with INSN.
251 Update users. Print instruction number and indicate speculative
252 execution, if requested.
254 2015-11-04 Markus Metzger <markus.t.metzger@intel.com>
256 * disasm.c (dump_insns): Split into this and ...
257 (gdb_pretty_print_insn): ... this.
259 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
261 * xtensa-linux-nat.c (supply_gregset_reg): Make static.
262 (xtensa_linux_fetch_inferior_registers): Likewise.
263 (xtensa_linux_store_inferior_registers): Likewise.
265 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
267 * arm-linux-nat.c (arm_linux_read_description): Add cast.
269 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
271 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint): Change
272 type of rw to enum target_hw_bp_type.
273 (ppc_linux_remove_mask_watchpoint): Likewise.
274 * target.c (target_insert_mask_watchpoint): Likewise.
275 (target_remove_mask_watchpoint): Likewise.
276 * target.h (target_insert_mask_watchpoint): Likewise.
277 (target_remove_mask_watchpoint): Likewise.
278 (struct target_ops) <to_insert_mask_watchpoint>: Likewise.
279 (struct target_ops) <to_remove_mask_watchpoint>: Likewise.
280 * target-delegates.c: Regenerate.
282 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
284 * remote-sim.c (check_for_duplicate_sim_descriptor): Add casts.
285 (get_sim_inferior_data): Likewise.
286 (sim_inferior_data_cleanup): Likewise.
287 (gdbsim_close_inferior): Likewise.
288 (gdbsim_resume_inferior): Likewise.
289 (gdbsim_wait): Likewise.
290 (simulator_command): Likewise.
291 (sim_command_completer): Likewise.
293 2015-11-03 Marcin Kościelnicki <koriakin@0x04.net>
295 * MAINTAINERS (Write After Approval): Add Marcin Kościelnicki.
297 2015-10-30 Pedro Alves <palves@redhat.com>
299 * breakpoint.c (breakpoint_in_range_p)
300 (breakpoint_location_address_range_overlap): New functions.
301 * breakpoint.h (breakpoint_in_range_p): New declaration.
302 * infrun.c (displaced_step_prepare_throw): If there's a breakpoint
303 in the scratch pad range, don't displaced step.
305 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
307 * amd64-linux-tdep.c (amd64_x32_linux_init_abi): Fix size_msghdr,
308 size_stack_t, size_size_t, size_iovec.
310 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
312 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Fix size_termios.
313 * amd64-linux-tdep.c (amd64_linux_init_abi): Fix size_termios.
314 (amd64_x32_linux_init_abi): Fix size_termios.
316 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
318 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Fix TASK_COMM_LEN.
320 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
322 * linux-record.c (record_linux_system_call): Fix old_select.
324 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
326 * linux-record.c (record_linux_system_call): Fix newstatat.
328 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
330 * linux-record.c (record_linux_system_call): Fix [gs]etgroups16.
332 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
334 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add size_time_t.
335 * amd64-linux-tdep.c (amd64_linux_init_abi): Add size_time_t.
336 (amd64_x32_linux_init_abi): Add size_time_t.
337 * arm-linux-tdep.c (arm_linux_init_abi): Add size_time_t.
338 * i386-linux-tdep.c (i386_linux_init_abi): Add size_time_t.
339 * linux-record.c (record_linux_system_call): Add time, waitpid, pipe
341 * linux-record.h (struct linux_record_tdep): Add size_time_t.
342 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Add size_time_t.
344 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
346 * linux-record.c (record_linux_msghdr): Fix msg_namelen handling.
348 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
350 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove
351 size_dirent{,64}, add size_old_dirent.
352 * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_dirent{,64},
354 (amd64_x32_linux_init_abi): Remove size_dirent{,64}, add
356 * arm-linux-tdep.c (arm_linux_init_abi): Remove size_dirent{,64},
358 * i386-linux-tdep.c (i386_linux_init_abi): Remove size_dirent{,64},
360 * linux-record.c (record_linux_system_call): Fix handling of readdir
362 * linux-record.h (struct linux_record_tdep): Remove size_dirent{,64},
364 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove
365 size_dirent{,64}, add size_old_dirent.
367 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
369 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Fix size_sigaction,
370 size_sigset_t, size_old_sigaction, size_old_sigset_t.
371 * amd64-linux-tdep.c (amd64_linux_init_abi): Fix size_sigaction,
372 size_sigset_t, size_old_sigaction, size_old_sigset_t.
373 (amd64_x32_linux_init_abi): Fix size_sigaction, size_sigset_t,
374 size_old_sigaction, size_old_sigset_t.
375 * arm-linux-tdep.c (arm_linux_init_abi): Fix size_sigaction,
376 size_old_sigaction, size_old_sigset_t.
377 * i386-linux-tdep.c (i386_linux_init_abi): Fix size_sigaction,
378 size_old_sigaction, size_old_sigset_t.
379 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Fix size_sigaction,
380 size_sigset_t, size_old_sigaction, size_old_sigset_t.
382 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
384 * arm-linux-tdep.c (arm_linux_init_abi): Fix size_[ug]id.
385 * i386-linux-tdep.c (i386_linux_init_abi): Fix size_[ug]id.
387 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
389 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove size_siginfo.
390 * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_siginfo.
391 (amd64_x32_linux_init_abi): Remove size_siginfo.
392 * arm-linux-tdep.c (arm_linux_init_abi): Remove size_siginfo.
393 * i386-linux-tdep.c (i386_linux_init_abi): Remove size_siginfo.
394 * linux-record.c (record_linux_system_call): Change size_siginfo
396 * linux-record.h (struct linux_record_tdep): Remove size_siginfo.
397 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove size_siginfo.
399 2015-10-29 Pedro Alves <palves@redhat.com>
401 * mdebugread.c (add_data_symbol): New function, factored out from
403 (parse_symbol): ... here. Delete 'theclass' local.
405 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
407 * jit.c (jit_target_read_impl): Add cast.
409 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
411 * jit.c (jit_reader_load): Add cast.
413 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
415 * dwarf2read.c (partial_die_full_name): Add cast.
417 2015-10-29 Pedro Alves <palves@redhat.com>
419 * common/vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
421 2015-10-29 Pedro Alves <palves@redhat.com>
423 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Add cast.
425 2015-10-29 Eli Zaretskii <eliz@gnu.org>
427 * utils.c (init_page_info): Disable paging if INSIDE_EMACS is set
430 2015-10-29 Pedro Alves <palves@redhat.com>
432 * gnu-v2-abi.c (gnuv2_is_destructor_name)
433 (gnuv2_is_constructor_name): Add casts.
435 2015-10-29 Pedro Alves <palves@redhat.com>
437 * common/common-exceptions.c (exception_none): Add cast.
439 2015-10-29 Pedro Alves <palves@redhat.com>
441 * compile/compile-c-types.c (struct type_map_instance)
442 <gcc_type>: Rename to gcc_type_handle.
443 (insert_type, convert_type): Adjust.
445 2015-10-29 Pedro Alves <palves@redhat.com>
447 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Don't
448 assume that "break" breaks out of a TRY/CATCH.
449 * python/py-framefilter.c (py_print_single_arg): Don't assume
450 "continue" breaks out of a TRY/CATCH.
451 * python/py-value.c (valpy_binop_throw): New function, factored
453 (valpy_binop): ... this.
454 (valpy_richcompare_throw): New function, factored
456 (valpy_richcompare): ... this.
457 * solib.c (solib_read_symbols): Don't assume "break" breaks out
459 * common/common-exceptions.h [USE_RAW_CXX_TRY]
460 <TRY/CATCH/END_CATCH>: Define as 1-1 wrappers around try/catch.
462 2015-10-28 Simon Dardis <Simon.Dardis@imgtec.com>
464 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Recognise 'or'
465 as move along with [d]addu.
467 2015-10-28 Yao Qi <yao.qi@linaro.org>
469 * aarch64-tdep.c (aarch64_software_single_step): Pass 1 to
472 2015-10-27 Pedro Alves <palves@redhat.com>
474 * common/print-utils.c (host_address_to_string): Rename to ...
475 (host_address_to_string_1): ... this.
476 * common/print-utils.h (host_address_to_string): Reimplement as
477 wrapper around host_address_to_string_1.
478 * utils.c (gdb_print_host_address): Rename to ...
479 (gdb_print_host_address_1): ... this.
480 * utils.h (gdb_print_host_address): Reimplement as wrapper macro
481 around host_address_to_string_1.
483 2015-10-27 Pedro Alves <palves@redhat.com>
485 * alpha-tdep.c (alpha_read_insn): Always pass TARGET_XFER_E_IO to
486 memory_error. Rename local 'status' to 'res'.
487 * c-lang.c (c_get_string): Always pass TARGET_XFER_E_IO to
489 * corefile.c (read_stack, read_code, write_memory): Always pass
490 TARGET_XFER_E_IO to memory_error.
491 * disasm.c (dis_asm_memory_error): Always pass TARGET_XFER_E_IO to
492 memory_error. Rename parameter 'status' to 'err'.
493 (dump_insns): Rename local 'status' to 'err'.
494 * mips-tdep.c (mips_fetch_instruction): Rename parameter 'statusp'
495 to 'errp'. Rename local 'status' to 'err'. Always pass
496 TARGET_XFER_E_IO to memory_error.
497 (mips_breakpoint_from_pc): Rename local 'status' to 'err'.
498 * target.c (target_read_memory, target_read_raw_memory)
499 (target_read_stack, target_read_code, target_write_memory)
500 (target_write_raw_memory): Return -1 on error instead of
502 * valprint.c (val_print_string): Rename local 'errcode' to 'err'.
503 Always pass TARGET_XFER_E_IO to memory_error. Update comment.
505 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
507 * guile/guile-internal.h (gdbscm_with_guile): Change return
508 types to const char *.
509 * guile/scm-safe-call.c (gdbscm_with_guile): Likewise.
510 (struct c_data) <func>: Likewise.
511 (struct c_data) <result>: Change type to const char *.
512 (scscm_eval_scheme_string): Change return type to
514 (scscm_source_scheme_script): Likewise.
515 (gdbscm_safe_eval_string): Change type of result variable to
516 const char * and remove cast.
517 (gdbscm_safe_source_script): Likewise.
518 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker):
519 Change return type to const char *.
520 (gdbscm_disasm_read_memory): Change type of status to
523 2015-10-27 Pedro Alves <palves@redhat.com>
525 * source.c (openp): New local 'last_errno'. Use it to
528 2015-10-27 Pedro Alves <palves@redhat.com>
530 * psymtab.c (dump_psymtab_addrmap_1): Add casts.
532 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
534 * ctf.c (SET_ENUM_FIELD): New macro.
535 (ctf_read_status): Use it.
536 (ctf_read_tp): Use it.
538 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
540 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_stop_x): Add
541 scm_t_dynwind_flags casts.
542 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
543 * guile/scm-ports.c (gdbscm_open_memory): Likewise.
544 * guile/scm-value.c (gdbscm_value_to_string): Likewise.
546 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
548 * ax.h (ax_raw_byte): New declaration.
549 * ax-general.c (ax_raw_byte): New function.
550 (ax_simple): Use ax_raw_byte.
551 * ax-gdb.c (gen_printf): Likewise.
553 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
555 * ada-lang.h (GROW_VECT): Add cast.
557 2015-10-26 Doug Evans <xdje42@gmail.com>
559 * symtab.h (struct general_symbol_info> <ada_mangled>: Update comment.
561 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
563 * target.c (memory_xfer_partial): Change type of buf to gdb_byte
565 (simple_search_memory): Cast return of memmem.
567 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
569 * stap-probe.c (handle_stap_probe): Add (const char *) casts.
571 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
573 * ctf.c (ctf_xfer_partial): Return TARGET_XFER_E_IO instead of
576 2015-10-26 Doug Evans <dje@google.com>
579 * dwarf2-frame.c (dwarf2_restore_rule): Call dwarf_reg_to_regnum
580 instead of gdbarch_dwarf2_reg_to_regnum.
581 (dwarf2_frame_cache): Ditto.
582 (read_addr_from_reg): Call dwarf_reg_to_regnum_or_error instead of
583 gdbarch_dwarf2_reg_to_regnum.
584 (get_reg_value): Ditto.
585 (dwarf2_fetch_cfa_info): Ditto.
586 (dwarf2_frame_prev_register): Ditto.
587 * dwarf2loc.c: #include "complaints.h".
588 (dwarf_expr_read_addr_from_reg): Call dwarf_reg_to_regnum_or_error
589 instead of gdbarch_dwarf2_reg_to_regnum.
590 (dwarf_expr_get_reg_value): Ditto.
591 (read_pieced_value): Ditto.
592 (write_pieced_value): Ditto.
593 (dwarf2_evaluate_loc_desc_full): Ditto.
594 (dwarf_reg_to_regnum): New function.
595 (throw_bad_regnum_error): New function.
596 (dwarf_reg_to_regnum_or_error): Renamed from
597 dwarf2_reg_to_regnum_or_errorChange to take a ULONGEST regnum.
598 All callers updated. Call throw_bad_regnum_error.
599 (locexpr_regname): Improve text of bad register number.
600 * dwarf2loc.h (dwarf_reg_to_regnum): Declare.
601 (dwarf_reg_to_regnum_or_error): Update prototype.
602 * dwarf2expr.c: #include "dwarf2loc.h".
603 (dwarf_block_to_sp_offset): Call dwarf_reg_to_regnum instead of
604 gdbarch_dwarf2_reg_to_regnum.
605 * gdbarch.sh (dwarf2_reg_to_regnum): Add comment.
606 * gdbarch.h: Regenerate.
607 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Remove warning for bad
609 * avr-tdep.c (avr_dwarf_reg_to_regnum): Ditto.
610 * cris-tdep.c (cris_dwarf2_reg_to_regnum): Ditto.
611 * bfin-tdep.c (bfin_reg_to_regnum): Fix error checking.
612 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Improve error checking.
613 Remove warning for bad register.
614 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Ditto.
615 * i386-tdep.c (i386_svr4_dwarf_reg_to_regnum): Renamed from
616 i386_svr4_reg_to_regnum. Return -1 for bad registers.
617 (i386_svr4_reg_to_regnum): New function.
618 (i386_gdbarch_init): Update call to set_gdbarch_dwarf2_reg_to_regnum.
619 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Don't assert
620 on bad registers, return -1.
621 * msp430-tdep.c (msp430_dwarf2_reg_to_regnum): Improve error checking.
622 Remove warning for bad register.
623 * nios2-tdep.c: Add static assert for NIOS2_NUM_REGS.
624 (nios2_dwarf_reg_to_regnum): Fix off-by-one error.
625 Remove warning for bad register. Return -1 for bad register.
626 * rl78-tdep.c (rl78_dwarf_reg_to_regnum): Don't flag an internal error
627 for bad register, return -1.
628 * rx-tdep.c (rx_dwarf_reg_to_regnum): Ditto.
629 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Fix error result.
630 * mep-tdep.c (mep_debug_reg_to_regnum): Ditto.
631 * mips-tdep.c (mips_stab_reg_to_regnum): Ditto.
632 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
633 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Remove warning
635 * xtensa-tdep.c (xtensa_reg_to_regnum): Remove internal error for
636 bad regs. Fix error result.
637 * stabsread.c (stab_reg_to_regnum): Watch for negative regno.
638 (reg_value_complaint): Update complaint text.
639 * mdebugread.c (reg_value_complaint): New function.
640 (mdebug_reg_to_regnum): Rewrite to watch for bad reg numbers.
642 2015-10-26 Doug Evans <dje@google.com>
645 * cli/cli-cmds (source_script_fron_sctream): New arg file_to_open.
648 2015-10-26 Doug Evans <dje@google.com>
650 * psymtab.c (struct dump_psymtab_addrmap_data): Define.
651 (dump_psymtab_addrmap_1, dump_psymtab_addrmap): New functions.
652 (maintenance_print_psymbols): Print address map.
654 2015-10-26 Doug Evans <dje@google.com>
656 * nat/linux-nat.h (__SIGRTMIN): Move here from gdbserver/linux-low.c.
658 2015-10-26 Doug Evans <dje@google.com>
660 * common/gdb_wait.h (W_STOPCODE): Define, moved here from
661 gdbserver/linux-low.c.
662 (WSETSTOP): Simplify.
664 2015-10-26 Doug Evans <dje@google.com>
666 * linux-thread-db.c (find_new_threads_callback): Ditto.
667 (thread_db_pid_to_str): Ditto.
669 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
671 * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Do not pass a
672 local char array to scm_mode_bits, use a cast instead.
674 2015-10-26 Simon Marchi <simon.marchi@ericsson.com>
676 * tui/tui-data.c (tui_alloc_content): Don't check xmalloc
677 result. Change type of element_block_ptr. Change allocation to
680 2015-10-26 Luis Machado <lgustavo@codesourcery.com>
682 * record-full.c (record_full_message_wrapper_safe): Pass empty string to
683 catch_errors call instead of NULL.
685 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
687 * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Pass non-const
688 char pointer to scm_mode_bits.
690 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
692 * symtab.c (default_make_symbol_completion_list_break_on_1): Add
695 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
697 * guile/scm-ports.c (gdbscm_memory_port_write): Declare new
698 "data" local variable and use it.
700 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
702 * guile/scm-symbol.c (gdbscm_lookup_global_symbol): Add
704 (gdbscm_lookup_symbol): Likewise.
706 2015-10-25 Iain Buclaw <ibuclaw@gdcproject.org>
708 * d-exp.y: Remove an obsolete comment and propagate the block
709 information to the produced expression.
711 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
713 * tui/tui-data.c (tui_add_to_source_windows): Remove void *
715 (tui_add_content_elements): Likewise.
717 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
719 * cli/cli-setshow.c (do_set_command): Constify p.
721 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
723 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Replace
724 (void *) cast with (gdb_byte *).
726 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
728 * proc-service.c (ps_pdread): Add cast.
730 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
732 * sparc64-tdep.c (sparc64_store_arguments): Split assignment of
735 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
737 * ia64-tdep.c (ia64_pseudo_register_write): Remove cast.
738 (ia64_push_dummy_call): Remove cast and change type of "to" to
741 2015-10-23 Simon Marchi <simon.marchi@polymtl.ca>
743 * linux-btrace.c (linux_enable_pt): Add cast to mmap return.
745 2015-10-23 Simon Marchi <simon.marchi@ericsson.com>
747 * observer.h (observer_${event}_notification_stub): Add cast.
749 2015-10-23 Yao Qi <yao.qi@linaro.org>
751 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set
752 dsd.insn_count to zero.
754 2015-10-22 Pedro Alves <palves@redhat.com>
756 * infrun.c (stop_after_trap): Delete.
757 (clear_proceed_status, handle_signal_stop, struct
758 infcall_control_state, save_infcall_control_state)
759 (restore_infcall_control_state): Remove references to
762 2015-10-22 Simon Marchi <simon.marchi@ericsson.com>
764 * python/python.c (_initialize_python): Add cast.
766 2015-10-22 Simon Marchi <simon.marchi@ericsson.com>
768 * nto-tdep.c (nto_inferior_data): Add cast.
770 2015-10-22 Pedro Alves <palves@redhat.com>
772 * windows-nat.c (do_initial_windows_stuff): Rewrite loop using
773 windows_wait and windows_resume directly instead of
774 wait_for_inferior and resume.
776 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
778 * xtensa-tdep.h (XTREG): Add casts.
779 (XTREG_END): Likewise.
781 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
783 * solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
785 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
787 * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
789 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
791 * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
793 (supply_32bit_reg): Add cast.
794 (mips64_fill_gregset): Likewise.
796 2015-10-21 Simon Marchi <simon.marchi@polymtl.ca>
799 * python/py-type.c (typy_get_composite): Allow returning a
802 2015-10-21 Keven Boell <keven.boell@intel.com>
804 * dwarf2read.c (set_die_type): Add read of
805 DW_AT_allocated and DW_AT_associated.
806 * f-typeprint.c: New include of typeprint.h
807 (f_print_type): Add check for allocated/associated
809 (f_type_print_varspec_suffix): Add check for
810 * gdbtypes.c (create_array_type_with_stride):
811 Add check for valid data location of type in
812 case allocated or associated attributes are set.
813 Length of an array should be only calculated if
814 allocated or associated is resolved as true.
815 (is_dynamic_type_internal): Add check for allocated/
817 (resolve_dynamic_array): Evaluate allocated/associated
819 * gdbtypes.h (enum dynamic_prop_node_kind): <DYN_PROP_ALLOCATED>
820 <DYN_PROP_ASSOCIATED>: New enums.
821 (TYPE_ALLOCATED_PROP, TYPE_ASSOCIATED_PROP): New macros.
822 (type_not_allocated): New function.
823 (type_not_associated): New function.
824 * valarith.c (value_subscripted_rvalue): Add check for
825 allocated/associated.
826 * valprint.c: New include of typeprint.h.
827 (valprint_check_validity): Add check for allocated/associated.
828 (value_check_printable): Add check for allocated/
830 * typeprint.h (val_print_not_allocated): New function.
831 (val_print_not_associated): New function.
832 * typeprint.c (val_print_not_allocated): New function.
833 (val_print_not_associated): New function.
835 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
837 * Makefile.in: Add arm.c/o.
838 * arch/arm.c: New file.
839 * arch/arm.h: (IS_THUMB_ADDR): Move macro from arm-tdep.c.
840 (MAKE_THUMB_ADDR): Likewise.
841 (UNMAKE_THUMB_ADDR): Likewise.
842 * arm-tdep.c (int thumb_insn_size): Move to arm.c.
843 (IS_THUMB_ADDR): Move to arm.h.
844 (MAKE_THUMB_ADDR): Likewise.
845 (UNMAKE_THUMB_ADDR): Likewise.
846 * configure.tgt: Add arm.o to all ARM configs.
848 2015-10-21 Yao Qi <yao.qi@linaro.org>
850 * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
851 Remove argument exp_vCont_s.
852 * gdb.base/range-stepping.exp: Callers updated.
853 * gdb.trace/range-stepping.exp: Likewise.
855 2015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
857 * gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
858 (nto_sniff_abi_note_section): New function.
859 (nto_elf_osabi_sniffer): Use new function to recognize nto specific
862 2015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
864 * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
865 (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
866 * nto-tdep.c (nto_new_inferior_data_reg): New definition.
867 (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
869 (_initialize_nto_tdep): New forward declaration, new function.
870 * nto-tdep.h (struct nto_inferior_data): New struct.
871 (nto_inferior_data): New function declaration.
873 2015-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
875 * findvar.c (address_from_register): Check REGNUM validity.
877 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
879 * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
880 (init_procfs_targets): Wire new function.
882 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
884 * nto-procfs.c (sys/auxv.h): Include.
885 (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
886 * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
887 * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
889 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
891 * nto-procfs.c (nto_procfs_path): Rename to...
892 (nodestr): ... this, and change type.
893 (nto_node): Use new variable and logic accordingly.
894 (procfs_open_1): Use new variable name. Use local buffer to construct
896 (procfs_pidlist): Use NODESTR to construct procfs path.
897 (procfs_files_info): Use NODESTR to output meaningful text.
898 (do_attach): Construct procfs using NODESTR.
899 (procfs_create_inferior): Compare pointer to NULL.
901 2015-10-19 Josh Stone <jistone@redhat.com>
903 * linux-nat.c (linux_handle_syscall_trap): Always update entry/
904 return state, even when not actively catching syscalls at all.
905 (linux_handle_extended_wait): Mark syscall_state like an entry.
906 (wait_lwp): Set syscall_state ignored for other traps.
907 (linux_nat_filter_event): Likewise.
909 2015-10-19 Luis Machado <lgustavo@codesourcery.com>
911 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
912 when handling 'E', 'T', 'S', 'X' and 'W' packets.
913 Do not set rs->waiting_for_stop_reply back to 1.
915 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
917 * nto-procfs.c (common/filestuff.h): Include.
918 (procfs_can_use_hw_breakpoint): Fix enum name.
919 (procfs_open_1): Fix compiler warning.
920 (procfs_pidlist): Make static.
921 (procfs_meminfo): Make static, fix type name, add missing argument.
922 (procfs_store_registers): Make static.
923 (procfs_thread_info): Remove unused function.
924 (_initialize_procfs): Forward declare.
926 2015-10-16 Yao Qi <yao.qi@arm.com>
928 * MAINTAINERS: Update my email address.
930 2015-10-15 Yao Qi <yao.qi@linaro.org>
932 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
933 Call gdbarch_breakpoint_from_pc to instruction length.
934 (aarch64_linux_remove_hw_breakpoint): Likewise.
935 * common/common-regcache.h (regcache_register_size): Declare.
936 * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
937 (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
938 the process is 32bit, otherwise set alignment to 4.
939 (aarch64_handle_breakpoint): Update comments.
940 * regcache.c (regcache_register_size): New function.
942 2015-10-15 Aleksandar Ristovski <aristovski@qnx.com>
944 * gdbarch.sh (core_regset_section): Remove.
945 * gdbarch.h: Regenerate.
947 2015-10-14 Yao Qi <yao.qi@linaro.org>
949 * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
951 (enum aarch64_memory_operand_type): New.
953 2015-10-13 David Edelsohn <dje.gcc@gmail.com>
955 * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
957 2015-10-13 Pedro Alves <palves@redhat.com>
959 * ada-lang.c (ada_enum_name): Constify local.
960 * ada-typeprint.c (print_range_bound): Constify locals.
961 * c-varobj.c (c_describe_child): Likewise.
962 * cli/cli-setshow.c (do_set_command): Likewise.
963 * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
964 * dwarf2read.c (find_file_and_directory): Likewise.
965 (anonymous_struct_prefix, dwarf2_name): Likewise.
966 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
967 * go-lang.c (unpack_mangled_go_symbol): Likewise.
968 * jv-typeprint.c (java_type_print_base): Likewise.
969 * ser-tcp.c (net_open): Likewise.
970 * symfile.c (deduce_language_from_filename): Likewise.
971 * symtab.c (gdb_mangle_name): Likewise.
972 * tui/tui-io.c (tui_redisplay_readline): Likewise.
974 2015-10-13 Pedro Alves <palves@redhat.com>
976 * infrun.c (restore_execution_direction): New function.
977 (fetch_inferior_event): Use it instead of
978 make_cleanup_restore_integer.
979 (execution_direction): Change type to enum
981 * infrun.h (execution_direction): Likewise.
983 2015-10-13 Pedro Alves <palves@redhat.com>
985 * ada-lang.c (ada_value_primitive_packed_val): Constify
986 locals. Use value_contents_writeable. Remove casts.
988 2015-10-13 Pedro Alves <palves@redhat.com>
990 * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
993 2015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
995 * lm32-tdep.c (lm32_push_dummy_call): Replace call to
996 write_memory with write_memory_unsigned_integer.
998 2015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1000 * solib-dsbt.c (cmp_name): Constify arguments.
1001 * solib-frv.c (cmp_name): Likewise.
1002 * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
1003 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
1004 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
1005 (gdb_bfd_lookup_symbol): Likewise.
1006 * solib.h (gdb_bfd_lookup_symbol): Likewise.
1007 (gdb_bfd_lookup_symbol_from_symtab): Likewise.
1009 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
1011 * stack.c (parse_frame_specification): Remove message parameter,
1012 replace with fixed string in function body, update function
1014 (frame_info): Remove message to parse_frame_specification.
1015 (select_frame_command): Likewise.
1017 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
1019 * stack.c (parse_frame_specification): Delete.
1020 (parse_frame_specification_1): Rename to
1021 parse_frame_specification.
1022 (frame_info): Use parse_frame_specification.
1023 (select_frame_command): Likewise.
1024 (return_command): Use select_frame and print_stack_frame rather
1025 than frame_command and select_frame_command.
1026 (func_command): Use get_current_frame rather than
1027 parse_frame_specification.
1029 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
1031 * stack.c (func_command): Return early when there is no ARG
1034 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
1036 * stack.c: Include safe-ctype.h not ctype.h.
1037 (parse_frame_specification): Use ISSPACE not isspace.
1038 (backtrace_command): Use TOLOWER not tolower.
1040 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1042 * mep-tdep.c (current_me_module): Add cast.
1043 (mep_gdbarch_init): Likewise.
1045 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1047 * m32c-tdep.c (m32c_move_reg_t): Replace with...
1048 (m32c_write_reg_t): ...this and...
1049 (m32c_read_reg_t): ...this.
1050 (struct m32c_reg): Update types of read and write.
1051 (m32c_raw_read): Change declaration type to m32c_read_reg_t and
1053 (m32c_banked_read): Likewise.
1054 (m32c_sb_read): Likewise.
1055 (m32c_part_read): Likewise.
1056 (m32c_cat_read): Likewise.
1057 (m32c_r3r2r1r0_read): Likewise.
1058 (m32c_raw_write): Change declaration type to m32c_write_reg_t
1059 and adjust definition.
1060 (m32c_banked_write): Likewise.
1061 (m32c_sb_write): Likewise.
1062 (m32c_part_write): Likewise.
1063 (m32c_cat_write): Likewise.
1064 (m32c_r3r2r1r0_write): Likewise.
1066 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1068 * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
1070 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1072 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
1073 gdb_sys_no_syscall instead of -1.
1075 2015-10-12 Yao Qi <yao.qi@linaro.org>
1077 * NEWS: Mention the change.
1079 2015-10-12 Yao Qi <yao.qi@linaro.org>
1081 * arch/aarch64-insn.c (emit_load_store): Rename to ...
1082 (aarch64_emit_load_store): ... it. All callers updated.
1084 2015-10-12 Yao Qi <yao.qi@linaro.org>
1086 * arch/aarch64-insn.c (emit_insn): Rename to ...
1087 (aarch64_emit_insn): ... it. All callers updated.
1089 2015-10-12 Yao Qi <yao.qi@linaro.org>
1091 * aarch64-linux-tdep.c: Include arch-utils.h.
1092 (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
1093 set_gdbarch_displaced_step_copy_insn,
1094 set_gdbarch_displaced_step_fixup,
1095 set_gdbarch_displaced_step_free_closure,
1096 set_gdbarch_displaced_step_location,
1097 and set_gdbarch_displaced_step_hw_singlestep.
1098 * aarch64-tdep.c (struct displaced_step_closure): New.
1099 (struct aarch64_displaced_step_data): New.
1100 (aarch64_displaced_step_b): New function.
1101 (aarch64_displaced_step_b_cond): Likewise.
1102 (aarch64_register): Likewise.
1103 (aarch64_displaced_step_cb): Likewise.
1104 (aarch64_displaced_step_tb): Likewise.
1105 (aarch64_displaced_step_adr): Likewise.
1106 (aarch64_displaced_step_ldr_literal): Likewise.
1107 (aarch64_displaced_step_others): Likewise.
1108 (aarch64_displaced_step_copy_insn): Likewise.
1109 (aarch64_displaced_step_fixup): Likewise.
1110 (aarch64_displaced_step_hw_singlestep): Likewise.
1111 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
1112 (aarch64_displaced_step_copy_insn): Declare.
1113 (aarch64_displaced_step_fixup): Declare.
1114 (aarch64_displaced_step_hw_singlestep): Declare.
1115 * arch/aarch64-insn.c (emit_insn): Moved from
1116 gdbserver/linux-aarch64-low.c.
1117 (emit_load_store): Likewise.
1118 * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
1119 gdbserver/linux-aarch64-low.c.
1120 (struct aarch64_register): Likewise.
1121 (struct aarch64_memory_operand): Likewise.
1123 (can_encode_int32): New macro.
1124 (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
1125 (emit_tb, emit_nop): Likewise.
1126 (emit_insn): Declare.
1127 (emit_load_store): Declare.
1129 2015-10-12 Yao Qi <yao.qi@linaro.org>
1131 * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
1132 gdbserver/linux-aarch64-low.c.
1133 (aarch64_relocate_instruction): Likewise.
1134 * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
1135 (struct aarch64_insn_data): Moved from
1136 gdbserver/linux-aarch64-low.c.
1137 (struct aarch64_insn_visitor): Likewise.
1138 (aarch64_relocate_instruction): Declare.
1140 2015-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
1142 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
1143 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
1144 to the returned value.
1146 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1148 * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
1149 is large enough for BIT_SIZE. Update function comment.
1151 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1153 * ada-lang.c (ada_value_primitive_packed_val): Move
1154 src_len variable to local block where used. Override
1155 BIT_SIZE if bigger than size of resolved type.
1157 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1159 * gdbtypes.h (is_scalar_type): Add extern declaration.
1160 * gdbtypes.c (is_scalar_type): Make non-static.
1161 * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
1162 to compute IS_SCALAR instead of doing it ourselves.
1164 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1166 * ada-lang.c (ada_value_primitive_packed_val): Rework handling
1167 of case where TYPE is dynamic.
1169 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1171 * ada-lang.c (ada_unpack_from_contents): New function,
1172 extracted from ada_value_primitive_packed_val.
1173 (ada_value_primitive_packed_val): Replace extracted out code
1174 by call to ada_unpack_from_contents.
1176 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1178 * ada-lang.c (ada_value_primitive_packed_val): Reorder local
1179 variable declarations.
1181 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1183 * ada-lang.c (ada_value_primitive_packed_val): Change the type
1184 of local variables src and unpacked to "gdb_type *" instead of
1187 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1189 * ada-lang.c (ada_value_primitive_packed_val): Make the name
1190 of various local variables more explicit and consistent.
1191 No real code change otherwise.
1193 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
1195 * i386-tdep.h (struct gdbarch_tdep): Change type of
1196 register_reggroup_p to gdbarch_register_reggroup_p_ftype.
1198 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
1200 * cris-tdep.c (struct instruction_environment): Change type of
1201 byte_order to enum bfd_endian.
1203 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
1205 * arm-linux-tdep.c (arm_canonicalize_syscall): Add
1206 enum gdb_syscall casts.
1208 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
1210 * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
1211 * arm-tdep.c (struct stack_item): Likewise.
1212 (push_stack_item): Add gdb_byte* cast.
1213 * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
1214 (push_stack_item): Add gdb_byte* cast.
1215 * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
1217 * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
1218 (push_stack_item): Add gdb_byte* cast.
1219 * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
1221 * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
1223 * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
1224 gdb_byte* and remove unnecessary cast.
1225 (h8300h_extract_return_value): Likewise.
1226 (h8300_store_return_value): Change type of valbuf to gdb_byte*.
1227 (h8300h_store_return_value): Likewise.
1228 * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
1229 gdb_byte* and remove unnecessary cast.
1230 * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
1232 * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
1233 gdb_byte* and remove unnecessary cast.
1234 (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
1236 * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
1237 (mep_pseudo_cr64_read): Likewise.
1238 (mep_pseudo_csr_write): Likewise.
1239 (mep_pseudo_cr32_write): Likewise.
1240 (mep_pseudo_cr64_write): Likewise.
1241 * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
1242 gdb_byte* and add cast.
1243 * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
1244 gdb_byte* and remove unnecessary cast.
1245 (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
1247 * p-valprint.c (print_scalar_formatted): Change type of valaddr to
1249 * printcmd.c (void): Likewise.
1250 * python/py-inferior.c (infpy_read_memory): Change type of buffer to
1251 gdb_byte* and add cast.
1252 (infpy_write_memory): Likewise.
1253 (infpy_search_memory): Likewise.
1254 * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
1256 (regcache_raw_write_unsigned): Likewise.
1257 (regcache_cooked_write_signed): Likewise.
1258 (regcache_cooked_write_unsigned): Likewise.
1259 * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
1262 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
1264 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
1265 * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
1267 2015-10-09 Eli Zaretskii <eliz@gnu.org>
1269 * stack.c (print_stack_frame):
1270 * utils.c (printchar): Fix typos in commentary.
1272 2015-10-08 Iain Buclaw <ibuclaw@gdcproject.org>
1274 * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
1275 (PostfixExpression): Support `expr.sizeof' expressions.
1276 (PrimaryExpression): Support `typeof(expr)' expressions.
1278 2015-10-08 Maciej W. Rozycki <macro@imgtec.com>
1280 * MAINTAINERS: Update my email address.
1282 2015-10-08 Markus Metzger <markus.t.metzger@intel.com>
1284 * record-btrace.c (record_btrace_resume): Fix void return.
1286 2015-10-07 Yao Qi <yao.qi@linaro.org>
1288 * aarch64-tdep.c: Include opcode/aarch64.h.
1289 (submask): Move it above.
1292 (aarch64_software_single_step): Call aarch64_decode_insn.
1293 Decode instruction by aarch64_inst instead of using
1294 aarch64_decode_bcond and decode_masked_match.
1296 2015-10-06 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
1298 * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
1299 only when the file is binary.
1301 2015-10-02 James Bowman <james.bowman@ftdichip.com>
1303 * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
1304 subroutine handling.
1306 2015-10-01 Simon Marchi <simon.marchi@ericsson.com>
1308 * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
1310 2015-09-30 Doug Evans <dje@google.com>
1312 * dwarf2read.c (setup_type_unit_groups): Add comment.
1314 2015-09-30 Pedro Alves <palves@redhat.com>
1316 * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
1317 * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
1318 (x86_linux_create_target): Don't install
1319 x86_linux_always_non_stop_p.
1321 2015-09-30 Don Breazeal <donb@codesourcery.com>
1323 * remote.c (remote_parse_stop_reply): Call strprefix instead
1326 2015-09-30 Simon Marchi <simon.marchi@ericsson.com>
1328 * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
1329 * gdbarch.h: Regenerate.
1330 * i386-tdep.c (i386_gdbarch_init): Remove cast to
1331 struct gdbarch_tdep_info *.
1332 * mips-tdep.c (mips_gdbarch_init): Likewise.
1333 * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
1334 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
1335 * spu-multiarch.c (spu_gdbarch): Likewise.
1337 2015-09-30 Kevin Buettner <kevinb@redhat.com>
1339 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
1340 record a NULL value.
1342 2015-09-29 Kevin Buettner <kevinb@redhat.com>
1344 * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
1345 and union arguments the same as pointer arguments when determining
1348 2015-09-29 James Bowman <james.bowman@ftdichip.com>
1350 * ft32-tdep.c: #include "opcode/ft32.h".
1351 Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
1352 (ft32_analyze_prologue): Use FT32_* macros.
1354 2015-09-28 Simon Marchi <simon.marchi@ericsson.com>
1356 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
1359 2015-09-28 Doug Evans <dje@google.com>
1361 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
1363 2015-09-28 Doug Evans <dje@google.com>
1365 * common/filestuff.c (make_cleanup_close): Update comment.
1367 2015-09-26 Simon Marchi <simon.marchi@polymtl.ca>
1369 * btrace.c (parse_xml_btrace_block): Fix cast of
1370 xml_find_attribute's return value.
1371 * memory-map.c (memory_map_start_memory): Likewise.
1372 * solib-svr4.c (library_list_start_library): Likewise.
1373 * solib-target.c (library_list_start_segment): Likewise.
1374 (library_list_start_section): Likewise.
1375 * tracepoint.c (traceframe_info_start_memory): Likewise.
1377 2015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
1379 * d-namespace.c (d_lookup_symbol): New arg langdef.
1380 All callers updated. Support looking up symbol as a primitive type.
1381 (lookup_module_scope): New arg langdef. All callers updated.
1382 Call d_lookup_symbol directly for simple bare symbols.
1384 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1386 * macrocmd.c (print_macro_callback): Add cast(s).
1387 * macrotab.c (macro_bcache_str): Likewise.
1388 (new_macro_definition): Likewise.
1389 * main.c (captured_main): Likewise.
1390 * maint.c (print_bfd_section_info): Likewise.
1391 * mdebugread.c (mdebug_build_psymtabs): Likewise.
1392 (basic_type): Likewise.
1393 * memattr.c (mem_region_cmp): Likewise.
1394 * memory-map.c (memory_map_start_memory): Likewise.
1395 (memory_map_end_memory): Likewise.
1396 (memory_map_start_property): Likewise.
1397 (memory_map_end_property): Likewise.
1398 (clear_result): Likewise.
1399 * memrange.c (compare_mem_ranges): Likewise.
1400 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
1401 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
1402 * mi/mi-console.c (mi_console_file_delete): Likewise.
1403 (mi_console_file_fputs): Likewise.
1404 (mi_console_raw_packet): Likewise.
1405 (mi_console_file_flush): Likewise.
1406 (mi_console_set_raw): Likewise.
1407 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
1408 (mi_new_thread): Likewise.
1409 (mi_thread_exit): Likewise.
1410 (mi_record_changed): Likewise.
1411 (mi_inferior_added): Likewise.
1412 (mi_inferior_appeared): Likewise.
1413 (mi_inferior_exit): Likewise.
1414 (mi_inferior_removed): Likewise.
1415 (mi_interp_data): Likewise.
1416 (mi_on_normal_stop): Likewise.
1417 (mi_traceframe_changed): Likewise.
1418 (mi_tsv_created): Likewise.
1419 (mi_tsv_deleted): Likewise.
1420 (mi_tsv_modified): Likewise.
1421 (mi_breakpoint_created): Likewise.
1422 (mi_breakpoint_deleted): Likewise.
1423 (mi_breakpoint_modified): Likewise.
1424 (mi_output_running_pid): Likewise.
1425 (mi_inferior_count): Likewise.
1426 (mi_solib_loaded): Likewise.
1427 (mi_solib_unloaded): Likewise.
1428 (mi_command_param_changed): Likewise.
1429 (mi_memory_changed): Likewise.
1430 (report_initial_inferior): Likewise.
1431 (mi_ui_out): Likewise.
1432 (mi_set_logging): Likewise.
1433 * mi/mi-main.c (collect_cores): Likewise.
1434 (print_one_inferior): Likewise.
1435 (free_vector_of_ints): Likewise.
1436 (free_splay_tree): Likewise.
1437 (mi_execute_command): Likewise.
1438 * mi/mi-out.c (mi_table_body): Likewise.
1439 (mi_table_end): Likewise.
1440 (mi_table_header): Likewise.
1441 (mi_begin): Likewise.
1443 (mi_field_int): Likewise.
1444 (mi_field_string): Likewise.
1445 (mi_field_fmt): Likewise.
1446 (mi_flush): Likewise.
1447 (mi_redirect): Likewise.
1448 (field_separator): Likewise.
1449 (mi_open): Likewise.
1450 (mi_close): Likewise.
1451 (mi_out_buffered): Likewise.
1452 (mi_out_rewind): Likewise.
1453 (mi_out_put): Likewise.
1454 (mi_version): Likewise.
1455 (mi_out_data_dtor): Likewise.
1456 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
1457 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
1458 * minidebug.c (lzma_open): Likewise.
1459 (lzma_pread): Likewise.
1460 (lzma_close): Likewise.
1461 (lzma_stat): Likewise.
1462 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1463 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
1464 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
1465 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
1466 (mips_micro_frame_cache): Likewise.
1467 (mips_insn32_frame_cache): Likewise.
1468 (mips_stub_frame_cache): Likewise.
1469 (gdb_print_insn_mips): Likewise.
1470 (value_of_mips_user_reg): Likewise.
1471 (mips_gdbarch_init): Likewise.
1472 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
1473 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
1474 (mipsnbsd_supply_gregset): Likewise.
1475 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
1476 (am33_collect_gregset_method): Likewise.
1477 (am33_collect_fpregset_method): Likewise.
1478 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
1479 * moxie-tdep.c (moxie_frame_cache): Likewise.
1480 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
1481 (msp430_analyze_frame_prologue): Likewise.
1482 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
1483 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
1484 (nios2_collect_gregset): Likewise.
1485 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
1486 (nios2_stub_frame_cache): Likewise.
1487 * objc-lang.c (find_methods): Likewise.
1488 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1489 (get_objfile_pspace_data): Likewise.
1490 (get_objfile_bfd_data): Likewise.
1491 (objfile_bfd_data_free): Likewise.
1492 (add_to_objfile_sections): Likewise.
1493 (do_free_objfile_cleanup): Likewise.
1494 (resume_section_map_updates_cleanup): Likewise.
1495 * opencl-lang.c (builtin_opencl_type): Likewise.
1496 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1497 * osdata.c (osdata_start_osdata): Likewise.
1498 (osdata_start_item): Likewise.
1499 (osdata_start_column): Likewise.
1500 (osdata_end_column): Likewise.
1501 (clear_parsing_data): Likewise.
1502 (osdata_free_cleanup): Likewise.
1503 * parse.c (type_stack_cleanup): Likewise.
1504 (exp_uses_objfile_iter): Likewise.
1505 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
1506 (ppc_linux_collect_gregset): Likewise.
1507 (ppu2spu_prev_arch): Likewise.
1508 (ppu2spu_this_id): Likewise.
1509 (ppu2spu_prev_register): Likewise.
1510 (ppu2spu_unwind_register): Likewise.
1511 (ppu2spu_sniffer): Likewise.
1512 (ppu2spu_dealloc_cache): Likewise.
1513 (ppc_linux_init_abi): Likewise.
1514 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
1515 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1516 * progspace.c (restore_program_space): Likewise.
1517 * psymtab.c (find_pc_sect_psymtab): Likewise.
1518 (compare_psymbols): Likewise.
1519 (psymbol_bcache_full): Likewise.
1520 (allocate_psymtab): Likewise.
1521 (discard_psymtabs_upto): Likewise.
1522 * python/py-block.c (set_block): Likewise.
1523 (del_objfile_blocks): Likewise.
1524 * python/py-breakpoint.c (build_bp_list): Likewise.
1525 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
1526 (build_inferior_list): Likewise.
1527 (py_free_inferior): Likewise.
1528 * python/py-objfile.c (py_free_objfile): Likewise.
1529 (objfile_to_objfile_object): Likewise.
1530 * python/py-prettyprint.c (py_restore_tstate): Likewise.
1531 * python/py-progspace.c (py_free_pspace): Likewise.
1532 (pspace_to_pspace_object): Likewise.
1533 * python/py-symbol.c (set_symbol): Likewise.
1534 (del_objfile_symbols): Likewise.
1535 * python/py-symtab.c (set_sal): Likewise.
1536 (set_symtab): Likewise.
1537 (del_objfile_symtab): Likewise.
1538 (del_objfile_sal): Likewise.
1539 * python/py-type.c (save_objfile_types): Likewise.
1540 (set_type): Likewise.
1541 * python/py-unwind.c (pyuw_prev_register): Likewise.
1542 (pyuw_on_new_gdbarch): Likewise.
1543 * python/py-utils.c (py_decref): Likewise.
1544 (py_xdecref): Likewise.
1545 (gdb_py_generic_dict): Likewise.
1546 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
1547 (gdbpy_clone_xmethod_worker_data): Likewise.
1548 (gdbpy_get_xmethod_arg_types): Likewise.
1549 (gdbpy_get_xmethod_result_type): Likewise.
1550 (gdbpy_invoke_xmethod): Likewise.
1551 * python/python.c (gdbpy_apply_type_printers): Likewise.
1552 (gdbpy_free_type_printers): Likewise.
1553 * record-btrace.c (record_btrace_disable_callback): Likewise.
1554 (bfcache_hash): Likewise.
1555 (bfcache_eq): Likewise.
1556 (btrace_get_frame_function): Likewise.
1557 (record_btrace_frame_unwind_stop_reason): Likewise.
1558 (record_btrace_frame_this_id): Likewise.
1559 (record_btrace_frame_prev_register): Likewise.
1560 (record_btrace_frame_dealloc_cache): Likewise.
1561 * record-full.c (record_full_message_wrapper): Likewise.
1562 (record_full_save_cleanups): Likewise.
1563 * regcache.c (regcache_descr): Likewise.
1564 (do_regcache_xfree): Likewise.
1565 (do_regcache_invalidate): Likewise.
1566 (do_cooked_read): Likewise.
1567 (regcache_transfer_regset): Likewise.
1568 * reggroups.c (reggroup_add): Likewise.
1569 (reggroup_next): Likewise.
1570 (reggroup_prev): Likewise.
1571 * remote-fileio.c (do_remote_fileio_request): Likewise.
1572 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
1573 (do_notif_event_xfree): Likewise.
1574 * remote.c (get_remote_arch_state): Likewise.
1575 (remote_pspace_data_cleanup): Likewise.
1576 (get_remote_exec_file): Likewise.
1577 (set_pspace_remote_exec_file): Likewise.
1578 (compare_pnums): Likewise.
1579 (clear_threads_listing_context): Likewise.
1580 (remote_newthread_step): Likewise.
1581 (start_thread): Likewise.
1582 (end_thread): Likewise.
1583 (remove_child_of_pending_fork): Likewise.
1584 (remove_stop_reply_for_inferior): Likewise.
1585 (remove_stop_reply_of_remote_state): Likewise.
1586 (remote_notif_remove_once_on_match): Likewise.
1587 (stop_reply_match_ptid_and_ws): Likewise.
1588 (kill_child_of_pending_fork): Likewise.
1589 (register_remote_g_packet_guess): Likewise.
1590 (remote_read_description_p): Likewise.
1591 (remote_read_description): Likewise.
1592 (free_actions_list_cleanup_wrapper): Likewise.
1593 (remote_async_serial_handler): Likewise.
1594 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
1595 (rl78_analyze_frame_prologue): Likewise.
1596 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
1597 (ppc_supply_fpregset): Likewise.
1598 (ppc_supply_vsxregset): Likewise.
1599 (ppc_supply_vrregset): Likewise.
1600 (ppc_collect_gregset): Likewise.
1601 (ppc_collect_fpregset): Likewise.
1602 (ppc_collect_vsxregset): Likewise.
1603 (ppc_collect_vrregset): Likewise.
1604 (e500_move_ev_register): Likewise.
1605 (do_regcache_raw_write): Likewise.
1606 (rs6000_frame_cache): Likewise.
1607 (rs6000_epilogue_frame_cache): Likewise.
1608 (rs6000_gdbarch_init): Likewise.
1609 * rx-tdep.c (rx_get_opcode_byte): Likewise.
1610 (rx_analyze_frame_prologue): Likewise.
1611 (rx_frame_type): Likewise.
1612 (rx_frame_sniffer_common): Likewise.
1613 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
1614 (s390_frame_unwind_cache): Likewise.
1615 (s390_stub_frame_unwind_cache): Likewise.
1616 (s390_sigtramp_frame_unwind_cache): Likewise.
1617 * score-tdep.c (score_make_prologue_cache): Likewise.
1618 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
1619 (sentinel_frame_prev_arch): Likewise.
1620 * ser-base.c (fd_event): Likewise.
1621 (push_event): Likewise.
1622 (ser_base_write): Likewise.
1623 * ser-pipe.c (pipe_close): Likewise.
1624 * serial.c (serial_write): Likewise.
1625 * sh-tdep.c (sh_frame_cache): Likewise.
1626 (sh_stub_this_id): Likewise.
1627 * sh64-tdep.c (sh64_frame_cache): Likewise.
1628 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
1629 (library_list_start_library): Likewise.
1630 (library_list_start_list): Likewise.
1631 (solib_aix_free_library_list): Likewise.
1632 * solib-darwin.c (get_darwin_info): Likewise.
1633 * solib-dsbt.c (get_dsbt_info): Likewise.
1634 * solib-spu.c (append_ocl_sos): Likewise.
1635 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1636 (get_svr4_info): Likewise.
1637 (library_list_start_library): Likewise.
1638 (svr4_library_list_start_list): Likewise.
1639 (hash_probe_and_action): Likewise.
1640 (equal_probe_and_action): Likewise.
1641 (svr4_update_solib_event_breakpoint): Likewise.
1642 (set_solib_svr4_fetch_link_map_offsets): Likewise.
1643 (svr4_fetch_link_map_offsets): Likewise.
1644 (svr4_have_link_map_offsets): Likewise.
1645 * solib-target.c (library_list_start_segment): Likewise.
1646 (library_list_start_section): Likewise.
1647 (library_list_start_library): Likewise.
1648 (library_list_end_library): Likewise.
1649 (library_list_start_list): Likewise.
1650 (solib_target_free_library_list): Likewise.
1651 * solib.c (solib_ops): Likewise.
1652 (set_solib_ops): Likewise.
1653 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1654 * sparc-tdep.c (sparc_frame_cache): Likewise.
1655 (sparc32_frame_cache): Likewise.
1656 (sparc32_supply_gregset): Likewise.
1657 (sparc32_collect_gregset): Likewise.
1658 (sparc32_supply_fpregset): Likewise.
1659 (sparc32_collect_fpregset): Likewise.
1660 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1661 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1662 (sparc64_collect_gregset): Likewise.
1663 (sparc64_supply_fpregset): Likewise.
1664 (sparc64_collect_fpregset): Likewise.
1665 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
1666 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
1667 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
1668 (sparc64obsd_trapframe_cache): Likewise.
1669 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
1670 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
1671 * spu-multiarch.c (spu_gdbarch): Likewise.
1672 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
1673 (spu2ppu_prev_arch): Likewise.
1674 (spu2ppu_this_id): Likewise.
1675 (spu2ppu_prev_register): Likewise.
1676 (spu2ppu_dealloc_cache): Likewise.
1677 (spu_dis_asm_print_address): Likewise.
1678 (gdb_print_insn_spu): Likewise.
1679 (spu_get_overlay_table): Likewise.
1680 * stabsread.c (rs6000_builtin_type): Likewise.
1681 * stack.c (do_print_variable_and_value): Likewise.
1682 * stap-probe.c (get_stap_base_address_1): Likewise.
1683 * symfile-debug.c (debug_qf_has_symbols): Likewise.
1684 (debug_qf_find_last_source_symtab): Likewise.
1685 (debug_qf_forget_cached_source_info): Likewise.
1686 (debug_qf_map_symtabs_matching_filename): Likewise.
1687 (debug_qf_lookup_symbol): Likewise.
1688 (debug_qf_print_stats): Likewise.
1689 (debug_qf_dump): Likewise.
1690 (debug_qf_relocate): Likewise.
1691 (debug_qf_expand_symtabs_for_function): Likewise.
1692 (debug_qf_expand_all_symtabs): Likewise.
1693 (debug_qf_expand_symtabs_with_fullname): Likewise.
1694 (debug_qf_map_matching_symbols): Likewise.
1695 (debug_qf_expand_symtabs_matching): Likewise.
1696 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
1697 (debug_qf_map_symbol_filenames): Likewise.
1698 (debug_sym_get_probes): Likewise.
1699 (debug_sym_new_init): Likewise.
1700 (debug_sym_init): Likewise.
1701 (debug_sym_read): Likewise.
1702 (debug_sym_read_psymbols): Likewise.
1703 (debug_sym_finish): Likewise.
1704 (debug_sym_offsets): Likewise.
1705 (debug_sym_read_linetable): Likewise.
1706 (debug_sym_relocate): Likewise.
1707 (uninstall_symfile_debug_logging): Likewise.
1708 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
1709 * symfile.c (place_section): Likewise.
1710 (add_section_size_callback): Likewise.
1711 (load_progress): Likewise.
1712 (load_section_callback): Likewise.
1713 (clear_memory_write_data): Likewise.
1714 (allocate_symtab): Likewise.
1715 * symmisc.c (maintenance_expand_file_matcher): Likewise.
1716 * symtab.c (lookup_symtab_callback): Likewise.
1717 (hash_demangled_name_entry): Likewise.
1718 (eq_demangled_name_entry): Likewise.
1719 (get_symbol_cache): Likewise.
1720 (symbol_cache_cleanup): Likewise.
1721 (set_symbol_cache_size): Likewise.
1722 (symbol_cache_flush): Likewise.
1723 (maintenance_print_symbol_cache): Likewise.
1724 (maintenance_print_symbol_cache_statistics): Likewise.
1725 (delete_filename_seen_cache): Likewise.
1726 (output_partial_symbol_filename): Likewise.
1727 (search_symbols_file_matches): Likewise.
1728 (search_symbols_name_matches): Likewise.
1729 (do_free_completion_list): Likewise.
1730 (maybe_add_partial_symtab_filename): Likewise.
1731 (get_main_info): Likewise.
1732 (main_info_cleanup): Likewise.
1733 * target-dcache.c (target_dcache_cleanup): Likewise.
1734 (target_dcache_init_p): Likewise.
1735 (target_dcache_invalidate): Likewise.
1736 (target_dcache_get): Likewise.
1737 (target_dcache_get_or_init): Likewise.
1738 * target-descriptions.c (target_find_description): Likewise.
1739 (tdesc_find_type): Likewise.
1740 (tdesc_data_cleanup): Likewise.
1741 (tdesc_find_arch_register): Likewise.
1742 (tdesc_register_name): Likewise.
1743 (tdesc_register_type): Likewise.
1744 (tdesc_register_reggroup_p): Likewise.
1745 (set_tdesc_pseudo_register_name): Likewise.
1746 (set_tdesc_pseudo_register_type): Likewise.
1747 (set_tdesc_pseudo_register_reggroup_p): Likewise.
1748 (tdesc_use_registers): Likewise.
1749 (free_target_description): Likewise.
1750 * target-memory.c (compare_block_starting_address): Likewise.
1751 (cleanup_request_data): Likewise.
1752 (cleanup_write_requests_vector): Likewise.
1753 * target.c (open_target): Likewise.
1754 (cleanup_restore_target_terminal): Likewise.
1755 (free_memory_read_result_vector): Likewise.
1756 * thread.c (disable_thread_stack_temporaries): Likewise.
1757 (finish_thread_state_cleanup): Likewise.
1758 (do_restore_current_thread_cleanup): Likewise.
1759 (restore_current_thread_cleanup_dtor): Likewise.
1760 (set_thread_refcount): Likewise.
1761 (tp_array_compar): Likewise.
1762 (do_captured_thread_select): Likewise.
1763 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
1764 (tic6x_stub_this_id): Likewise.
1765 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
1766 * top.c (do_restore_instream_cleanup): Likewise.
1767 (gdb_readline_wrapper_cleanup): Likewise.
1768 (kill_or_detach): Likewise.
1769 (print_inferior_quit_action): Likewise.
1770 * tracefile-tfile.c (match_blocktype): Likewise.
1771 (build_traceframe_info): Likewise.
1772 * tracefile.c (trace_file_writer_xfree): Likewise.
1773 * tracepoint.c (memrange_cmp): Likewise.
1774 (do_collect_symbol): Likewise.
1775 (do_clear_collection_list): Likewise.
1776 (do_restore_current_traceframe_cleanup): Likewise.
1777 (restore_current_traceframe_cleanup_dtor): Likewise.
1778 (free_current_marker): Likewise.
1779 (traceframe_info_start_memory): Likewise.
1780 (traceframe_info_start_tvar): Likewise.
1781 (free_result): Likewise.
1782 * tramp-frame.c (tramp_frame_cache): Likewise.
1783 * tui/tui-file.c (tui_file_delete): Likewise.
1784 (tui_fileopen): Likewise.
1785 (tui_sfileopen): Likewise.
1786 (tui_file_isatty): Likewise.
1787 (tui_file_rewind): Likewise.
1788 (tui_file_put): Likewise.
1789 (tui_file_fputs): Likewise.
1790 (tui_file_get_strbuf): Likewise.
1791 (tui_file_adjust_strbuf): Likewise.
1792 (tui_file_flush): Likewise.
1793 * tui/tui-layout.c (make_command_window): Likewise.
1794 (make_data_window): Likewise.
1795 (show_source_disasm_command): Likewise.
1796 (show_data): Likewise.
1797 (make_source_or_disasm_window): Likewise.
1798 (show_source_or_disasm_and_command): Likewise.
1799 * tui/tui-out.c (tui_field_int): Likewise.
1800 (tui_field_string): Likewise.
1801 (tui_field_fmt): Likewise.
1802 (tui_text): Likewise.
1803 * typeprint.c (hash_typedef_field): Likewise.
1804 (eq_typedef_field): Likewise.
1805 (do_free_typedef_hash): Likewise.
1806 (copy_typedef_hash_element): Likewise.
1807 (do_free_global_table): Likewise.
1808 (find_global_typedef): Likewise.
1809 (find_typedef_in_hash): Likewise.
1810 * ui-file.c (ui_file_write_for_put): Likewise.
1811 (do_ui_file_xstrdup): Likewise.
1812 (mem_file_delete): Likewise.
1813 (mem_file_rewind): Likewise.
1814 (mem_file_put): Likewise.
1815 (mem_file_write): Likewise.
1816 (stdio_file_delete): Likewise.
1817 (stdio_file_flush): Likewise.
1818 (stdio_file_read): Likewise.
1819 (stdio_file_write): Likewise.
1820 (stdio_file_write_async_safe): Likewise.
1821 (stdio_file_fputs): Likewise.
1822 (stdio_file_isatty): Likewise.
1823 (stdio_file_fseek): Likewise.
1824 (tee_file_delete): Likewise.
1825 (tee_file_flush): Likewise.
1826 (tee_file_write): Likewise.
1827 (tee_file_fputs): Likewise.
1828 (tee_file_isatty): Likewise.
1829 * ui-out.c (do_cleanup_table_end): Likewise.
1830 (do_cleanup_end): Likewise.
1831 * user-regs.c (user_reg_add): Likewise.
1832 (user_reg_map_name_to_regnum): Likewise.
1833 (usernum_to_user_reg): Likewise.
1834 (maintenance_print_user_registers): Likewise.
1835 * utils.c (do_bfd_close_cleanup): Likewise.
1836 (do_fclose_cleanup): Likewise.
1837 (do_obstack_free): Likewise.
1838 (do_ui_file_delete): Likewise.
1839 (do_ui_out_redirect_pop): Likewise.
1840 (do_free_section_addr_info): Likewise.
1841 (restore_integer): Likewise.
1842 (do_unpush_target): Likewise.
1843 (do_htab_delete_cleanup): Likewise.
1844 (do_restore_ui_file): Likewise.
1845 (do_value_free): Likewise.
1846 (do_free_so): Likewise.
1847 (free_current_contents): Likewise.
1848 (do_regfree_cleanup): Likewise.
1849 (core_addr_hash): Likewise.
1850 (core_addr_eq): Likewise.
1851 (do_free_char_ptr_vec): Likewise.
1852 * v850-tdep.c (v850_frame_cache): Likewise.
1853 * varobj.c (do_free_variable_cleanup): Likewise.
1854 * vax-tdep.c (vax_supply_gregset): Likewise.
1855 (vax_frame_cache): Likewise.
1856 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
1857 * xml-support.c (gdb_xml_body_text): Likewise.
1858 (gdb_xml_values_cleanup): Likewise.
1859 (gdb_xml_start_element): Likewise.
1860 (gdb_xml_start_element_wrapper): Likewise.
1861 (gdb_xml_end_element): Likewise.
1862 (gdb_xml_end_element_wrapper): Likewise.
1863 (gdb_xml_cleanup): Likewise.
1864 (gdb_xml_fetch_external_entity): Likewise.
1865 (gdb_xml_parse_attr_enum): Likewise.
1866 (xinclude_start_include): Likewise.
1867 (xinclude_end_include): Likewise.
1868 (xml_xinclude_default): Likewise.
1869 (xml_xinclude_start_doctype): Likewise.
1870 (xml_xinclude_end_doctype): Likewise.
1871 (xml_xinclude_cleanup): Likewise.
1872 (xml_fetch_content_from_file): Likewise.
1873 * xml-syscall.c (free_syscalls_info): Likewise.
1874 (syscall_start_syscall): Likewise.
1875 * xml-tdesc.c (tdesc_end_arch): Likewise.
1876 (tdesc_end_osabi): Likewise.
1877 (tdesc_end_compatible): Likewise.
1878 (tdesc_start_target): Likewise.
1879 (tdesc_start_feature): Likewise.
1880 (tdesc_start_reg): Likewise.
1881 (tdesc_start_union): Likewise.
1882 (tdesc_start_struct): Likewise.
1883 (tdesc_start_flags): Likewise.
1884 (tdesc_start_field): Likewise.
1885 (tdesc_start_vector): Likewise.
1886 (fetch_available_features_from_target): Likewise.
1887 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
1888 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
1889 (xtensa_frame_cache): Likewise.
1890 (xtensa_frame_prev_register): Likewise.
1891 (xtensa_extract_return_value): Likewise.
1893 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1895 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
1896 (aarch64_make_stub_cache): Likewise.
1897 (value_of_aarch64_user_reg): Likewise.
1898 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
1899 (get_ada_inferior_data): Likewise.
1900 (get_ada_pspace_data): Likewise.
1901 (ada_pspace_data_cleanup): Likewise.
1902 (ada_complete_symbol_matcher): Likewise.
1903 (ada_exc_search_name_matches): Likewise.
1904 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
1905 (get_ada_tasks_inferior_data): Likewise.
1906 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
1907 (splay_obstack_alloc): Likewise.
1908 (splay_obstack_free): Likewise.
1909 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
1910 (alpha_linux_collect_gregset): Likewise.
1911 (alpha_linux_supply_fpregset): Likewise.
1912 (alpha_linux_collect_fpregset): Likewise.
1913 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1914 * alpha-tdep.c (alpha_lds): Likewise.
1915 (alpha_sts): Likewise.
1916 (alpha_sigtramp_frame_unwind_cache): Likewise.
1917 (alpha_heuristic_frame_unwind_cache): Likewise.
1918 (alpha_supply_int_regs): Likewise.
1919 (alpha_fill_int_regs): Likewise.
1920 (alpha_supply_fp_regs): Likewise.
1921 (alpha_fill_fp_regs): Likewise.
1922 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
1923 (alphanbsd_aout_supply_gregset): Likewise.
1924 (alphanbsd_supply_gregset): Likewise.
1925 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
1926 (amd64_x32_linux_init_abi): Likewise.
1927 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1928 (amd64_collect_native_gregset): Likewise.
1929 * amd64-tdep.c (amd64_frame_cache): Likewise.
1930 (amd64_sigtramp_frame_cache): Likewise.
1931 (amd64_epilogue_frame_cache): Likewise.
1932 (amd64_supply_fxsave): Likewise.
1933 (amd64_supply_xsave): Likewise.
1934 (amd64_collect_fxsave): Likewise.
1935 (amd64_collect_xsave): Likewise.
1936 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
1937 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
1938 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1939 (arm_linux_collect_gregset): Likewise.
1940 (arm_linux_supply_nwfpe): Likewise.
1941 (arm_linux_collect_nwfpe): Likewise.
1942 (arm_linux_supply_vfp): Likewise.
1943 (arm_linux_collect_vfp): Likewise.
1944 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
1945 (arm_prologue_unwind_stop_reason): Likewise.
1946 (arm_prologue_this_id): Likewise.
1947 (arm_prologue_prev_register): Likewise.
1948 (arm_exidx_data_free): Likewise.
1949 (arm_find_exidx_entry): Likewise.
1950 (arm_stub_this_id): Likewise.
1951 (arm_m_exception_this_id): Likewise.
1952 (arm_m_exception_prev_register): Likewise.
1953 (arm_normal_frame_base): Likewise.
1954 (gdb_print_insn_arm): Likewise.
1955 (arm_objfile_data_free): Likewise.
1956 (arm_record_special_symbol): Likewise.
1957 (value_of_arm_user_reg): Likewise.
1958 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
1959 (armbsd_supply_gregset): Likewise.
1960 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
1961 (get_auto_load_pspace_data): Likewise.
1962 (hash_loaded_script_entry): Likewise.
1963 (eq_loaded_script_entry): Likewise.
1964 (clear_section_scripts): Likewise.
1965 (collect_matching_scripts): Likewise.
1966 * auxv.c (auxv_inferior_data_cleanup): Likewise.
1967 (get_auxv_inferior_data): Likewise.
1968 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1969 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
1970 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1971 (target_bfd_xclose): Likewise.
1972 (target_bfd_get_section_table): Likewise.
1973 * bfin-tdep.c (bfin_frame_cache): Likewise.
1974 * block.c (find_block_in_blockvector): Likewise.
1975 (call_site_for_pc): Likewise.
1976 (block_find_non_opaque_type_preferred): Likewise.
1977 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
1978 (signal_catchpoint_remove_location): Likewise.
1979 (signal_catchpoint_breakpoint_hit): Likewise.
1980 (signal_catchpoint_print_one): Likewise.
1981 (signal_catchpoint_print_mention): Likewise.
1982 (signal_catchpoint_print_recreate): Likewise.
1983 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
1984 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
1985 (bp_location_compare_addrs): Likewise.
1986 (get_first_locp_gte_addr): Likewise.
1987 (check_tracepoint_command): Likewise.
1988 (do_map_commands_command): Likewise.
1989 (get_breakpoint_objfile_data): Likewise.
1990 (free_breakpoint_probes): Likewise.
1991 (do_captured_breakpoint_query): Likewise.
1992 (compare_breakpoints): Likewise.
1993 (bp_location_compare): Likewise.
1994 (bpstat_remove_breakpoint_callback): Likewise.
1995 (do_delete_breakpoint_cleanup): Likewise.
1996 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
1997 (bsd_uthread_set_collect_uthread): Likewise.
1998 (bsd_uthread_activate): Likewise.
1999 (bsd_uthread_fetch_registers): Likewise.
2000 (bsd_uthread_store_registers): Likewise.
2001 * btrace.c (check_xml_btrace_version): Likewise.
2002 (parse_xml_btrace_block): Likewise.
2003 (parse_xml_btrace_pt_config_cpu): Likewise.
2004 (parse_xml_btrace_pt_raw): Likewise.
2005 (parse_xml_btrace_pt): Likewise.
2006 (parse_xml_btrace_conf_bts): Likewise.
2007 (parse_xml_btrace_conf_pt): Likewise.
2008 (do_btrace_data_cleanup): Likewise.
2009 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
2010 * charset.c (cleanup_iconv): Likewise.
2011 (do_cleanup_iterator): Likewise.
2012 * cli-out.c (cli_uiout_dtor): Likewise.
2013 (cli_table_begin): Likewise.
2014 (cli_table_body): Likewise.
2015 (cli_table_end): Likewise.
2016 (cli_table_header): Likewise.
2017 (cli_begin): Likewise.
2018 (cli_end): Likewise.
2019 (cli_field_int): Likewise.
2020 (cli_field_skip): Likewise.
2021 (cli_field_string): Likewise.
2022 (cli_field_fmt): Likewise.
2023 (cli_spaces): Likewise.
2024 (cli_text): Likewise.
2025 (cli_message): Likewise.
2026 (cli_wrap_hint): Likewise.
2027 (cli_flush): Likewise.
2028 (cli_redirect): Likewise.
2029 (out_field_fmt): Likewise.
2030 (field_separator): Likewise.
2031 (cli_out_set_stream): Likewise.
2032 * cli/cli-cmds.c (compare_symtabs): Likewise.
2033 * cli/cli-dump.c (call_dump_func): Likewise.
2034 (restore_section_callback): Likewise.
2035 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
2036 (do_restore_user_call_depth): Likewise.
2037 (do_free_command_lines_cleanup): Likewise.
2038 * coff-pe-read.c (get_section_vmas): Likewise.
2039 (pe_as16): Likewise.
2040 (pe_as32): Likewise.
2041 * coffread.c (coff_symfile_read): Likewise.
2042 * common/agent.c (agent_look_up_symbols): Likewise.
2043 * common/filestuff.c (do_close_cleanup): Likewise.
2044 * common/format.c (free_format_pieces_cleanup): Likewise.
2045 * common/vec.c (vec_o_reserve): Likewise.
2046 * compile/compile-c-support.c (print_one_macro): Likewise.
2047 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
2048 (eq_symbol_error): Likewise.
2049 (del_symbol_error): Likewise.
2050 (error_symbol_once): Likewise.
2051 (gcc_convert_symbol): Likewise.
2052 (gcc_symbol_address): Likewise.
2053 (hash_symname): Likewise.
2054 (eq_symname): Likewise.
2055 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
2056 (eq_type_map_instance): Likewise.
2057 (insert_type): Likewise.
2058 (convert_type): Likewise.
2059 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
2060 (setup_sections): Likewise.
2061 (link_hash_table_free): Likewise.
2062 (copy_sections): Likewise.
2063 * compile/compile-object-run.c (do_module_cleanup): Likewise.
2064 * compile/compile.c (compile_print_value): Likewise.
2065 (do_rmdir): Likewise.
2066 (cleanup_compile_instance): Likewise.
2067 (cleanup_unlink_file): Likewise.
2068 * completer.c (free_completion_tracker): Likewise.
2069 * corelow.c (add_to_spuid_list): Likewise.
2070 * cp-namespace.c (reset_directive_searched): Likewise.
2071 * cp-support.c (reset_directive_searched): Likewise.
2072 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
2073 (cris_frame_unwind_cache): Likewise.
2074 * d-lang.c (builtin_d_type): Likewise.
2075 * d-namespace.c (reset_directive_searched): Likewise.
2076 * dbxread.c (dbx_free_symfile_info): Likewise.
2077 (do_free_bincl_list_cleanup): Likewise.
2078 * disasm.c (hash_dis_line_entry): Likewise.
2079 (eq_dis_line_entry): Likewise.
2080 (dis_asm_print_address): Likewise.
2081 (fprintf_disasm): Likewise.
2082 (do_ui_file_delete): Likewise.
2083 * doublest.c (convert_floatformat_to_doublest): Likewise.
2084 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
2085 (dummy_frame_prev_register): Likewise.
2086 (dummy_frame_this_id): Likewise.
2087 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
2088 (cache_eq): Likewise.
2089 (cache_find): Likewise.
2090 (tailcall_frame_this_id): Likewise.
2091 (dwarf2_tailcall_prev_register_first): Likewise.
2092 (tailcall_frame_prev_register): Likewise.
2093 (tailcall_frame_dealloc_cache): Likewise.
2094 (tailcall_frame_prev_arch): Likewise.
2095 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
2096 (dwarf2_frame_set_init_reg): Likewise.
2097 (dwarf2_frame_init_reg): Likewise.
2098 (dwarf2_frame_set_signal_frame_p): Likewise.
2099 (dwarf2_frame_signal_frame_p): Likewise.
2100 (dwarf2_frame_set_adjust_regnum): Likewise.
2101 (dwarf2_frame_adjust_regnum): Likewise.
2102 (clear_pointer_cleanup): Likewise.
2103 (dwarf2_frame_cache): Likewise.
2104 (find_cie): Likewise.
2105 (dwarf2_frame_find_fde): Likewise.
2106 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
2107 (free_dwarf_expr_context_cleanup): Likewise.
2108 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
2109 (locexpr_get_frame_base): Likewise.
2110 (loclist_find_frame_base_location): Likewise.
2111 (loclist_get_frame_base): Likewise.
2112 (dwarf_expr_dwarf_call): Likewise.
2113 (dwarf_expr_get_base_type): Likewise.
2114 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
2115 (dwarf_expr_get_obj_addr): Likewise.
2116 (entry_data_value_coerce_ref): Likewise.
2117 (entry_data_value_copy_closure): Likewise.
2118 (entry_data_value_free_closure): Likewise.
2119 (get_frame_address_in_block_wrapper): Likewise.
2120 (dwarf2_evaluate_property): Likewise.
2121 (dwarf2_compile_property_to_c): Likewise.
2122 (needs_frame_read_addr_from_reg): Likewise.
2123 (needs_frame_get_reg_value): Likewise.
2124 (needs_frame_frame_base): Likewise.
2125 (needs_frame_frame_cfa): Likewise.
2126 (needs_frame_tls_address): Likewise.
2127 (needs_frame_dwarf_call): Likewise.
2128 (needs_dwarf_reg_entry_value): Likewise.
2129 (get_ax_pc): Likewise.
2130 (locexpr_read_variable): Likewise.
2131 (locexpr_read_variable_at_entry): Likewise.
2132 (locexpr_read_needs_frame): Likewise.
2133 (locexpr_describe_location): Likewise.
2134 (locexpr_tracepoint_var_ref): Likewise.
2135 (locexpr_generate_c_location): Likewise.
2136 (loclist_read_variable): Likewise.
2137 (loclist_read_variable_at_entry): Likewise.
2138 (loclist_describe_location): Likewise.
2139 (loclist_tracepoint_var_ref): Likewise.
2140 (loclist_generate_c_location): Likewise.
2141 * dwarf2read.c (line_header_hash_voidp): Likewise.
2142 (line_header_eq_voidp): Likewise.
2143 (dwarf2_has_info): Likewise.
2144 (dwarf2_get_section_info): Likewise.
2145 (locate_dwz_sections): Likewise.
2146 (hash_file_name_entry): Likewise.
2147 (eq_file_name_entry): Likewise.
2148 (delete_file_name_entry): Likewise.
2149 (dw2_setup): Likewise.
2150 (dw2_get_file_names_reader): Likewise.
2151 (dw2_find_pc_sect_compunit_symtab): Likewise.
2152 (hash_signatured_type): Likewise.
2153 (eq_signatured_type): Likewise.
2154 (add_signatured_type_cu_to_table): Likewise.
2155 (create_debug_types_hash_table): Likewise.
2156 (lookup_dwo_signatured_type): Likewise.
2157 (lookup_dwp_signatured_type): Likewise.
2158 (lookup_signatured_type): Likewise.
2159 (hash_type_unit_group): Likewise.
2160 (eq_type_unit_group): Likewise.
2161 (get_type_unit_group): Likewise.
2162 (process_psymtab_comp_unit_reader): Likewise.
2163 (sort_tu_by_abbrev_offset): Likewise.
2164 (process_skeletonless_type_unit): Likewise.
2165 (psymtabs_addrmap_cleanup): Likewise.
2166 (dwarf2_read_symtab): Likewise.
2167 (psymtab_to_symtab_1): Likewise.
2168 (die_hash): Likewise.
2170 (load_full_comp_unit_reader): Likewise.
2171 (reset_die_in_process): Likewise.
2172 (free_cu_line_header): Likewise.
2173 (handle_DW_AT_stmt_list): Likewise.
2174 (hash_dwo_file): Likewise.
2175 (eq_dwo_file): Likewise.
2176 (hash_dwo_unit): Likewise.
2177 (eq_dwo_unit): Likewise.
2178 (create_dwo_cu_reader): Likewise.
2179 (create_dwo_unit_in_dwp_v1): Likewise.
2180 (create_dwo_unit_in_dwp_v2): Likewise.
2181 (lookup_dwo_unit_in_dwp): Likewise.
2182 (dwarf2_locate_dwo_sections): Likewise.
2183 (dwarf2_locate_common_dwp_sections): Likewise.
2184 (dwarf2_locate_v2_dwp_sections): Likewise.
2185 (hash_dwp_loaded_cutus): Likewise.
2186 (eq_dwp_loaded_cutus): Likewise.
2187 (lookup_dwo_cutu): Likewise.
2188 (abbrev_table_free_cleanup): Likewise.
2189 (dwarf2_free_abbrev_table): Likewise.
2190 (find_partial_die_in_comp_unit): Likewise.
2191 (free_line_header_voidp): Likewise.
2192 (follow_die_offset): Likewise.
2193 (follow_die_sig_1): Likewise.
2194 (free_heap_comp_unit): Likewise.
2195 (free_stack_comp_unit): Likewise.
2196 (dwarf2_free_objfile): Likewise.
2197 (per_cu_offset_and_type_hash): Likewise.
2198 (per_cu_offset_and_type_eq): Likewise.
2199 (get_die_type_at_offset): Likewise.
2200 (partial_die_hash): Likewise.
2201 (partial_die_eq): Likewise.
2202 (dwarf2_per_objfile_free): Likewise.
2203 (hash_strtab_entry): Likewise.
2204 (eq_strtab_entry): Likewise.
2205 (add_string): Likewise.
2206 (hash_symtab_entry): Likewise.
2207 (eq_symtab_entry): Likewise.
2208 (delete_symtab_entry): Likewise.
2209 (cleanup_mapped_symtab): Likewise.
2210 (add_indices_to_cpool): Likewise.
2211 (hash_psymtab_cu_index): Likewise.
2212 (eq_psymtab_cu_index): Likewise.
2213 (add_address_entry_worker): Likewise.
2214 (unlink_if_set): Likewise.
2215 (write_one_signatured_type): Likewise.
2216 (save_gdb_index_command): Likewise.
2217 * elfread.c (elf_symtab_read): Likewise.
2218 (elf_gnu_ifunc_cache_hash): Likewise.
2219 (elf_gnu_ifunc_cache_eq): Likewise.
2220 (elf_gnu_ifunc_record_cache): Likewise.
2221 (elf_gnu_ifunc_resolve_by_cache): Likewise.
2222 (elf_get_probes): Likewise.
2223 (probe_key_free): Likewise.
2224 * f-lang.c (builtin_f_type): Likewise.
2225 * frame-base.c (frame_base_append_sniffer): Likewise.
2226 (frame_base_set_default): Likewise.
2227 (frame_base_find_by_frame): Likewise.
2228 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
2229 (frame_unwind_append_unwinder): Likewise.
2230 (frame_unwind_find_by_frame): Likewise.
2231 * frame.c (frame_addr_hash): Likewise.
2232 (frame_addr_hash_eq): Likewise.
2233 (frame_stash_find): Likewise.
2234 (do_frame_register_read): Likewise.
2235 (unwind_to_current_frame): Likewise.
2236 (frame_cleanup_after_sniffer): Likewise.
2237 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
2238 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
2239 * ft32-tdep.c (ft32_frame_cache): Likewise.
2240 * gcore.c (do_bfd_delete_cleanup): Likewise.
2241 (gcore_create_callback): Likewise.
2242 * gdb_bfd.c (hash_bfd): Likewise.
2244 (gdb_bfd_open): Likewise.
2245 (free_one_bfd_section): Likewise.
2246 (gdb_bfd_ref): Likewise.
2247 (gdb_bfd_unref): Likewise.
2248 (get_section_descriptor): Likewise.
2249 (gdb_bfd_map_section): Likewise.
2250 (gdb_bfd_crc): Likewise.
2251 (gdb_bfd_mark_parent): Likewise.
2252 (gdb_bfd_record_inclusion): Likewise.
2253 (gdb_bfd_requires_relocations): Likewise.
2254 (print_one_bfd): Likewise.
2255 * gdbtypes.c (type_pair_hash): Likewise.
2256 (type_pair_eq): Likewise.
2257 (builtin_type): Likewise.
2258 (objfile_type): Likewise.
2259 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
2260 (vtable_address_point_offset): Likewise.
2261 (gnuv3_get_vtable): Likewise.
2262 (hash_value_and_voffset): Likewise.
2263 (eq_value_and_voffset): Likewise.
2264 (compare_value_and_voffset): Likewise.
2265 (compute_vtable_size): Likewise.
2266 (gnuv3_get_typeid_type): Likewise.
2267 * go-lang.c (builtin_go_type): Likewise.
2268 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
2269 (bkscm_eq_block_smob): Likewise.
2270 (bkscm_objfile_block_map): Likewise.
2271 (bkscm_del_objfile_blocks): Likewise.
2272 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
2273 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
2274 (gdbscm_disasm_print_address): Likewise.
2275 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
2276 (frscm_eq_frame_smob): Likewise.
2277 (frscm_inferior_frame_map): Likewise.
2278 (frscm_del_inferior_frames): Likewise.
2279 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
2280 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
2281 (ofscm_objfile_smob_from_objfile): Likewise.
2282 * guile/scm-ports.c (ioscm_write): Likewise.
2283 (ioscm_file_port_delete): Likewise.
2284 (ioscm_file_port_rewind): Likewise.
2285 (ioscm_file_port_put): Likewise.
2286 (ioscm_file_port_write): Likewise.
2287 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
2288 (psscm_pspace_smob_from_pspace): Likewise.
2289 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
2290 (scscm_recording_unwind_handler): Likewise.
2291 (gdbscm_with_catch): Likewise.
2292 (scscm_call_0_body): Likewise.
2293 (scscm_call_1_body): Likewise.
2294 (scscm_call_2_body): Likewise.
2295 (scscm_call_3_body): Likewise.
2296 (scscm_call_4_body): Likewise.
2297 (scscm_apply_1_body): Likewise.
2298 (scscm_eval_scheme_string): Likewise.
2299 (gdbscm_safe_eval_string): Likewise.
2300 (scscm_source_scheme_script): Likewise.
2301 (gdbscm_safe_source_script): Likewise.
2302 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
2303 (gdbscm_call_scm_from_stringn): Likewise.
2304 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
2305 (syscm_eq_symbol_smob): Likewise.
2306 (syscm_get_symbol_map): Likewise.
2307 (syscm_del_objfile_symbols): Likewise.
2308 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
2309 (stscm_eq_symtab_smob): Likewise.
2310 (stscm_objfile_symtab_map): Likewise.
2311 (stscm_del_objfile_symtabs): Likewise.
2312 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
2313 (tyscm_eq_type_smob): Likewise.
2314 (tyscm_type_map): Likewise.
2315 (tyscm_copy_type_recursive): Likewise.
2316 (save_objfile_types): Likewise.
2317 * guile/scm-utils.c (extract_arg): Likewise.
2318 * h8300-tdep.c (h8300_frame_cache): Likewise.
2319 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
2320 * hppa-tdep.c (compare_unwind_entries): Likewise.
2321 (find_unwind_entry): Likewise.
2322 (hppa_frame_cache): Likewise.
2323 (hppa_stub_frame_unwind_cache): Likewise.
2324 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
2325 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
2326 (hppaobsd_supply_fpregset): Likewise.
2327 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
2328 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
2329 * i386-tdep.c (i386_frame_cache): Likewise.
2330 (i386_epilogue_frame_cache): Likewise.
2331 (i386_sigtramp_frame_cache): Likewise.
2332 (i386_supply_gregset): Likewise.
2333 (i386_collect_gregset): Likewise.
2334 (i386_gdbarch_init): Likewise.
2335 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
2336 (i386obsd_trapframe_cache): Likewise.
2337 * i387-tdep.c (i387_supply_fsave): Likewise.
2338 (i387_collect_fsave): Likewise.
2339 (i387_supply_fxsave): Likewise.
2340 (i387_collect_fxsave): Likewise.
2341 (i387_supply_xsave): Likewise.
2342 (i387_collect_xsave): Likewise.
2343 * ia64-tdep.c (ia64_frame_cache): Likewise.
2344 (ia64_sigtramp_frame_cache): Likewise.
2345 * infcmd.c (attach_command_continuation): Likewise.
2346 (attach_command_continuation_free_args): Likewise.
2347 * inferior.c (restore_inferior): Likewise.
2348 (delete_thread_of_inferior): Likewise.
2349 * inflow.c (inflow_inferior_data_cleanup): Likewise.
2350 (get_inflow_inferior_data): Likewise.
2351 (inflow_inferior_exit): Likewise.
2352 * infrun.c (displaced_step_clear_cleanup): Likewise.
2353 (restore_current_uiout_cleanup): Likewise.
2354 (release_stop_context_cleanup): Likewise.
2355 (do_restore_infcall_suspend_state_cleanup): Likewise.
2356 (do_restore_infcall_control_state_cleanup): Likewise.
2357 (restore_inferior_ptid): Likewise.
2358 * inline-frame.c (block_starting_point_at): Likewise.
2359 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
2360 * jit.c (get_jit_objfile_data): Likewise.
2361 (get_jit_program_space_data): Likewise.
2362 (jit_object_close_impl): Likewise.
2363 (jit_find_objf_with_entry_addr): Likewise.
2364 (jit_breakpoint_deleted): Likewise.
2365 (jit_unwind_reg_set_impl): Likewise.
2366 (jit_unwind_reg_get_impl): Likewise.
2367 (jit_dealloc_cache): Likewise.
2368 (jit_frame_sniffer): Likewise.
2369 (jit_frame_prev_register): Likewise.
2370 (jit_prepend_unwinder): Likewise.
2371 (jit_inferior_exit_hook): Likewise.
2372 (free_objfile_data): Likewise.
2373 * jv-lang.c (jv_per_objfile_free): Likewise.
2374 (get_dynamics_objfile): Likewise.
2375 (get_java_class_symtab): Likewise.
2376 (builtin_java_type): Likewise.
2377 * language.c (language_string_char_type): Likewise.
2378 (language_bool_type): Likewise.
2379 (language_lookup_primitive_type): Likewise.
2380 (language_lookup_primitive_type_as_symbol): Likewise.
2381 * linespec.c (hash_address_entry): Likewise.
2382 (eq_address_entry): Likewise.
2383 (iterate_inline_only): Likewise.
2384 (iterate_name_matcher): Likewise.
2385 (decode_line_2_compare_items): Likewise.
2386 (collect_one_symbol): Likewise.
2387 (compare_symbols): Likewise.
2388 (compare_msymbols): Likewise.
2389 (add_symtabs_to_list): Likewise.
2390 (collect_symbols): Likewise.
2391 (compare_msyms): Likewise.
2392 (add_minsym): Likewise.
2393 (cleanup_linespec_result): Likewise.
2394 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
2395 * linux-nat.c (delete_lwp_cleanup): Likewise.
2396 (count_events_callback): Likewise.
2397 (select_event_lwp_callback): Likewise.
2398 (resume_stopped_resumed_lwps): Likewise.
2399 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
2400 (invalidate_linux_cache_inf): Likewise.
2401 (get_linux_inferior_data): Likewise.
2402 (linux_find_memory_regions_thunk): Likewise.
2403 (linux_make_mappings_callback): Likewise.
2404 (linux_corefile_thread_callback): Likewise.
2405 (find_mapping_size): Likewise.
2406 * linux-thread-db.c (find_new_threads_callback): Likewise.
2407 * lm32-tdep.c (lm32_frame_cache): Likewise.
2408 * m2-lang.c (builtin_m2_type): Likewise.
2409 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
2410 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
2411 (m32r_linux_supply_gregset): Likewise.
2412 (m32r_linux_collect_gregset): Likewise.
2413 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
2414 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
2415 * m68k-tdep.c (m68k_frame_cache): Likewise.
2416 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
2417 (m68kbsd_supply_gregset): Likewise.
2418 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
2419 * m88k-tdep.c (m88k_frame_cache): Likewise.
2420 (m88k_supply_gregset): Likewise.
2422 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
2424 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
2425 to allocation result assignment.
2426 * ada-exp.y (write_object_renaming): Likewise.
2427 (write_ambiguous_var): Likewise.
2428 (ada_nget_field_index): Likewise.
2429 (write_var_or_type): Likewise.
2430 * ada-lang.c (ada_decode_symbol): Likewise.
2431 (ada_value_assign): Likewise.
2432 (value_pointer): Likewise.
2433 (cache_symbol): Likewise.
2434 (add_nonlocal_symbols): Likewise.
2435 (ada_name_for_lookup): Likewise.
2436 (symbol_completion_add): Likewise.
2437 (ada_to_fixed_type_1): Likewise.
2438 (ada_get_next_arg): Likewise.
2439 (defns_collected): Likewise.
2440 * ada-lex.l (processId): Likewise.
2441 (processString): Likewise.
2442 * ada-tasks.c (read_known_tasks_array): Likewise.
2443 (read_known_tasks_list): Likewise.
2444 * ada-typeprint.c (decoded_type_name): Likewise.
2445 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
2446 * amd64-tdep.c (amd64_push_arguments): Likewise.
2447 (amd64_displaced_step_copy_insn): Likewise.
2448 (amd64_classify_insn_at): Likewise.
2449 (amd64_relocate_instruction): Likewise.
2450 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
2451 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
2452 (initialize_current_architecture): Likewise.
2453 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2454 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
2455 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
2456 (arm_push_dummy_call): Likewise.
2457 (extend_buffer_earlier): Likewise.
2458 (arm_adjust_breakpoint_address): Likewise.
2459 (arm_skip_stub): Likewise.
2460 * auto-load.c (filename_is_in_pattern): Likewise.
2461 (maybe_add_script_file): Likewise.
2462 (maybe_add_script_text): Likewise.
2463 (auto_load_objfile_script_1): Likewise.
2464 * auxv.c (ld_so_xfer_auxv): Likewise.
2465 * ax-general.c (new_agent_expr): Likewise.
2466 (grow_expr): Likewise.
2467 (ax_reg_mask): Likewise.
2468 * bcache.c (bcache_full): Likewise.
2469 * breakpoint.c (program_breakpoint_here_p): Likewise.
2470 * btrace.c (parse_xml_raw): Likewise.
2471 * build-id.c (build_id_to_debug_bfd): Likewise.
2472 * buildsym.c (end_symtab_with_blockvector): Likewise.
2473 * c-exp.y (string_exp): Likewise.
2474 (qualified_name): Likewise.
2475 (write_destructor_name): Likewise.
2476 (operator_stoken): Likewise.
2477 (parse_number): Likewise.
2478 (scan_macro_expansion): Likewise.
2480 (c_print_token): Likewise.
2481 * c-lang.c (c_get_string): Likewise.
2482 (emit_numeric_character): Likewise.
2483 * charset.c (wchar_iterate): Likewise.
2484 * cli/cli-cmds.c (complete_command): Likewise.
2485 (make_command): Likewise.
2486 * cli/cli-dump.c (restore_section_callback): Likewise.
2487 (restore_binary_file): Likewise.
2488 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
2489 * cli/cli-script.c (execute_control_command): Likewise.
2490 * cli/cli-setshow.c (do_set_command): Likewise.
2491 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
2492 (read_pe_exported_syms): Likewise.
2493 * coffread.c (coff_read_struct_type): Likewise.
2494 (coff_read_enum_type): Likewise.
2495 * common/btrace-common.c (btrace_data_append): Likewise.
2496 * common/buffer.c (buffer_grow): Likewise.
2497 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
2498 * common/format.c (parse_format_string): Likewise.
2499 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
2500 * common/xml-utils.c (xml_escape_text): Likewise.
2501 * compile/compile-object-load.c (copy_sections): Likewise.
2502 (compile_object_load): Likewise.
2503 * compile/compile-object-run.c (compile_object_run): Likewise.
2504 * completer.c (filename_completer): Likewise.
2505 * corefile.c (read_memory_typed_address): Likewise.
2506 (write_memory_unsigned_integer): Likewise.
2507 (write_memory_signed_integer): Likewise.
2508 (complete_set_gnutarget): Likewise.
2509 * corelow.c (get_core_register_section): Likewise.
2510 * cp-name-parser.y (d_grab): Likewise.
2511 (allocate_info): Likewise.
2512 (cp_new_demangle_parse_info): Likewise.
2513 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
2514 (cp_lookup_symbol_in_namespace): Likewise.
2515 (lookup_namespace_scope): Likewise.
2516 (find_symbol_in_baseclass): Likewise.
2517 (cp_lookup_nested_symbol): Likewise.
2518 (cp_lookup_transparent_type_loop): Likewise.
2519 * cp-support.c (copy_string_to_obstack): Likewise.
2520 (make_symbol_overload_list): Likewise.
2521 (make_symbol_overload_list_namespace): Likewise.
2522 (make_symbol_overload_list_adl_namespace): Likewise.
2523 (first_component_command): Likewise.
2524 * cp-valprint.c (cp_print_value): Likewise.
2525 * ctf.c (ctf_xfer_partial): Likewise.
2526 * d-exp.y (StringExp): Likewise.
2527 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
2528 (lookup_module_scope): Likewise.
2529 (find_symbol_in_baseclass): Likewise.
2530 (d_lookup_nested_symbol): Likewise.
2531 * dbxread.c (find_stab_function_addr): Likewise.
2532 (read_dbx_symtab): Likewise.
2533 (dbx_end_psymtab): Likewise.
2534 (cp_set_block_scope): Likewise.
2535 * dcache.c (dcache_alloc): Likewise.
2536 * demangle.c (_initialize_demangler): Likewise.
2537 * dicos-tdep.c (dicos_load_module_p): Likewise.
2538 * dictionary.c (dict_create_hashed_expandable): Likewise.
2539 (dict_create_linear_expandable): Likewise.
2540 (expand_hashtable): Likewise.
2541 (add_symbol_linear_expandable): Likewise.
2542 * dwarf2-frame.c (add_cie): Likewise.
2543 (add_fde): Likewise.
2544 (dwarf2_build_frame_info): Likewise.
2545 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
2546 (dwarf_expr_fetch_address): Likewise.
2547 (add_piece): Likewise.
2548 (execute_stack_op): Likewise.
2549 * dwarf2loc.c (chain_candidate): Likewise.
2550 (dwarf_entry_parameter_to_value): Likewise.
2551 (read_pieced_value): Likewise.
2552 (write_pieced_value): Likewise.
2553 * dwarf2read.c (dwarf2_read_section): Likewise.
2554 (add_type_unit): Likewise.
2555 (read_comp_units_from_section): Likewise.
2556 (fixup_go_packaging): Likewise.
2557 (dwarf2_compute_name): Likewise.
2558 (dwarf2_physname): Likewise.
2559 (create_dwo_unit_in_dwp_v1): Likewise.
2560 (create_dwo_unit_in_dwp_v2): Likewise.
2561 (read_func_scope): Likewise.
2562 (read_call_site_scope): Likewise.
2563 (dwarf2_attach_fields_to_type): Likewise.
2564 (process_structure_scope): Likewise.
2565 (mark_common_block_symbol_computed): Likewise.
2566 (read_common_block): Likewise.
2567 (abbrev_table_read_table): Likewise.
2568 (guess_partial_die_structure_name): Likewise.
2569 (fixup_partial_die): Likewise.
2570 (add_file_name): Likewise.
2571 (dwarf2_const_value_data): Likewise.
2572 (dwarf2_const_value_attr): Likewise.
2573 (build_error_marker_type): Likewise.
2574 (guess_full_die_structure_name): Likewise.
2575 (anonymous_struct_prefix): Likewise.
2576 (typename_concat): Likewise.
2577 (dwarf2_canonicalize_name): Likewise.
2578 (dwarf2_name): Likewise.
2579 (write_constant_as_bytes): Likewise.
2580 (dwarf2_fetch_constant_bytes): Likewise.
2581 (copy_string): Likewise.
2582 (parse_macro_definition): Likewise.
2583 * elfread.c (elf_symfile_segments): Likewise.
2584 (elf_rel_plt_read): Likewise.
2585 (elf_gnu_ifunc_resolve_by_cache): Likewise.
2586 (elf_gnu_ifunc_resolve_by_got): Likewise.
2587 (elf_read_minimal_symbols): Likewise.
2588 (elf_gnu_ifunc_record_cache): Likewise.
2589 * event-top.c (top_level_prompt): Likewise.
2590 (command_line_handler): Likewise.
2591 * exec.c (resize_section_table): Likewise.
2592 * expprint.c (print_subexp_standard): Likewise.
2593 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2594 * findcmd.c (parse_find_args): Likewise.
2595 * findvar.c (address_from_register): Likewise.
2596 * frame.c (get_prev_frame_always): Likewise.
2597 * gdb_bfd.c (gdb_bfd_ref): Likewise.
2598 (get_section_descriptor): Likewise.
2599 * gdb_obstack.c (obconcat): Likewise.
2600 (obstack_strdup): Likewise.
2601 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
2602 (create_set_type): Likewise.
2603 (lookup_unsigned_typename): Likewise.
2604 (lookup_signed_typename): Likewise.
2605 (resolve_dynamic_union): Likewise.
2606 (resolve_dynamic_struct): Likewise.
2607 (add_dyn_prop): Likewise.
2608 (copy_dynamic_prop_list): Likewise.
2609 (arch_flags_type): Likewise.
2610 (append_composite_type_field_raw): Likewise.
2611 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
2612 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
2613 * go-exp.y (string_exp): Likewise.
2614 * go-lang.c (go_demangle): Likewise.
2615 * guile/guile.c (compute_scheme_string): Likewise.
2616 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2617 (gdbscm_canonicalize_command_name): Likewise.
2618 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
2619 (ioscm_init_memory_port): Likewise.
2620 (ioscm_reinit_memory_port): Likewise.
2621 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
2622 (gdbscm_gc_dup_argv): Likewise.
2623 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
2624 * hppa-tdep.c (internalize_unwinds): Likewise.
2625 (read_unwind_info): Likewise.
2626 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
2627 (windows_core_xfer_shared_libraries): Likewise.
2628 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
2629 (i386_stap_parse_special_token_triplet): Likewise.
2630 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2631 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
2632 * inf-child.c (inf_child_fileio_readlink): Likewise.
2633 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
2634 (inf_ptrace_store_register): Likewise.
2635 * infrun.c (follow_exec): Likewise.
2636 (displaced_step_prepare_throw): Likewise.
2637 (save_stop_context): Likewise.
2638 (save_infcall_suspend_state): Likewise.
2639 * jit.c (jit_read_descriptor): Likewise.
2640 (jit_read_code_entry): Likewise.
2641 (jit_symtab_line_mapping_add_impl): Likewise.
2642 (finalize_symtab): Likewise.
2643 (jit_unwind_reg_get_impl): Likewise.
2644 * jv-exp.y (QualifiedName): Likewise.
2645 * jv-lang.c (get_java_utf8_name): Likewise.
2646 (type_from_class): Likewise.
2647 (java_demangle_type_signature): Likewise.
2648 (java_class_name_from_physname): Likewise.
2649 * jv-typeprint.c (java_type_print_base): Likewise.
2650 * jv-valprint.c (java_value_print): Likewise.
2651 * language.c (add_language): Likewise.
2652 * linespec.c (add_sal_to_sals_basic): Likewise.
2653 (add_sal_to_sals): Likewise.
2654 (decode_objc): Likewise.
2655 (find_linespec_symbols): Likewise.
2656 * linux-fork.c (fork_save_infrun_state): Likewise.
2657 * linux-nat.c (linux_nat_detach): Likewise.
2658 (linux_nat_fileio_readlink): Likewise.
2659 * linux-record.c (record_linux_sockaddr): Likewise.
2660 (record_linux_msghdr): Likewise.
2662 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
2663 (linux_collect_regset_section_cb): Likewise.
2664 (linux_get_siginfo_data): Likewise.
2665 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
2666 (try_thread_db_load_from_dir): Likewise.
2667 (thread_db_load_search): Likewise.
2668 (info_auto_load_libthread_db): Likewise.
2669 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
2670 (m32c_m16c_pointer_to_address): Likewise.
2671 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
2672 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2673 * machoread.c (macho_check_dsym): Likewise.
2674 * macroexp.c (resize_buffer): Likewise.
2675 (gather_arguments): Likewise.
2676 (maybe_expand): Likewise.
2677 * macrotab.c (new_macro_key): Likewise.
2678 (new_source_file): Likewise.
2679 (new_macro_definition): Likewise.
2680 * mdebugread.c (parse_symbol): Likewise.
2681 (parse_type): Likewise.
2682 (parse_partial_symbols): Likewise.
2683 (psymtab_to_symtab_1): Likewise.
2684 * mem-break.c (default_memory_insert_breakpoint): Likewise.
2685 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
2686 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
2687 (mi_cmd_data_read_memory_bytes): Likewise.
2688 (mi_cmd_data_write_memory_bytes): Likewise.
2689 (mi_cmd_trace_frame_collected): Likewise.
2690 * mi/mi-parse.c (mi_parse_argv): Likewise.
2691 (mi_parse): Likewise.
2692 * minidebug.c (lzma_open): Likewise.
2693 (lzma_pread): Likewise.
2694 * mips-tdep.c (mips_read_fp_register_single): Likewise.
2695 (mips_print_fp_register): Likewise.
2696 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
2697 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2698 * mt-tdep.c (mt_register_name): Likewise.
2699 (mt_registers_info): Likewise.
2700 (mt_push_dummy_call): Likewise.
2701 * namespace.c (add_using_directive): Likewise.
2702 * nat/linux-btrace.c (perf_event_read): Likewise.
2703 (linux_enable_bts): Likewise.
2704 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
2705 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
2706 * nto-tdep.c (nto_find_and_open_solib): Likewise.
2707 (nto_parse_redirection): Likewise.
2708 * objc-lang.c (objc_demangle): Likewise.
2709 (find_methods): Likewise.
2710 * objfiles.c (get_objfile_bfd_data): Likewise.
2711 (set_objfile_main_name): Likewise.
2712 (allocate_objfile): Likewise.
2713 (objfile_relocate): Likewise.
2714 (update_section_map): Likewise.
2715 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
2716 * p-exp.y (exp): Likewise.
2718 * p-valprint.c (pascal_object_print_value): Likewise.
2719 * parse.c (initialize_expout): Likewise.
2720 (mark_completion_tag): Likewise.
2721 (copy_name): Likewise.
2722 (parse_float): Likewise.
2723 (type_stack_reserve): Likewise.
2724 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2725 (ppu2spu_prev_register): Likewise.
2726 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
2727 * printcmd.c (printf_wide_c_string): Likewise.
2728 (printf_pointer): Likewise.
2729 * probe.c (parse_probes): Likewise.
2730 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2731 (cmdpy_init): Likewise.
2732 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
2733 * python/py-symtab.c (set_sal): Likewise.
2734 * python/py-unwind.c (pyuw_sniffer): Likewise.
2735 * python/python.c (python_interactive_command): Likewise.
2736 (compute_python_string): Likewise.
2737 * ravenscar-thread.c (get_running_thread_id): Likewise.
2738 * record-full.c (record_full_exec_insn): Likewise.
2739 (record_full_core_open_1): Likewise.
2740 * regcache.c (regcache_raw_read_signed): Likewise.
2741 (regcache_raw_read_unsigned): Likewise.
2742 (regcache_cooked_read_signed): Likewise.
2743 (regcache_cooked_read_unsigned): Likewise.
2744 * remote-fileio.c (remote_fileio_func_open): Likewise.
2745 (remote_fileio_func_rename): Likewise.
2746 (remote_fileio_func_unlink): Likewise.
2747 (remote_fileio_func_stat): Likewise.
2748 (remote_fileio_func_system): Likewise.
2749 * remote-mips.c (mips_xfer_memory): Likewise.
2750 (mips_load_srec): Likewise.
2751 (pmon_end_download): Likewise.
2752 * remote.c (new_remote_state): Likewise.
2753 (map_regcache_remote_table): Likewise.
2754 (remote_register_number_and_offset): Likewise.
2755 (init_remote_state): Likewise.
2756 (get_memory_packet_size): Likewise.
2757 (remote_pass_signals): Likewise.
2758 (remote_program_signals): Likewise.
2759 (remote_start_remote): Likewise.
2760 (remote_check_symbols): Likewise.
2761 (remote_query_supported): Likewise.
2762 (extended_remote_attach): Likewise.
2763 (process_g_packet): Likewise.
2764 (store_registers_using_G): Likewise.
2765 (putpkt_binary): Likewise.
2766 (read_frame): Likewise.
2767 (compare_sections_command): Likewise.
2768 (remote_hostio_pread): Likewise.
2769 (remote_hostio_readlink): Likewise.
2770 (remote_file_put): Likewise.
2771 (remote_file_get): Likewise.
2772 (remote_pid_to_exec_file): Likewise.
2773 (_initialize_remote): Likewise.
2774 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2775 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2776 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2777 (bfd_uses_spe_extensions): Likewise.
2778 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
2779 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
2780 * solib-dsbt.c (decode_loadmap): Likewise.
2781 (fetch_loadmap): Likewise.
2782 (scan_dyntag): Likewise.
2783 (enable_break): Likewise.
2784 (dsbt_relocate_main_executable): Likewise.
2785 * solib-frv.c (fetch_loadmap): Likewise.
2786 (enable_break2): Likewise.
2787 (frv_relocate_main_executable): Likewise.
2788 * solib-spu.c (spu_relocate_main_executable): Likewise.
2789 (spu_bfd_open): Likewise.
2790 * solib-svr4.c (lm_info_read): Likewise.
2791 (read_program_header): Likewise.
2792 (find_program_interpreter): Likewise.
2793 (scan_dyntag): Likewise.
2794 (elf_locate_base): Likewise.
2795 (open_symbol_file_object): Likewise.
2796 (read_program_headers_from_bfd): Likewise.
2797 (svr4_relocate_main_executable): Likewise.
2798 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
2799 * solib.c (solib_find_1): Likewise.
2800 (exec_file_find): Likewise.
2801 (solib_find): Likewise.
2802 * source.c (openp): Likewise.
2803 (print_source_lines_base): Likewise.
2804 (forward_search_command): Likewise.
2805 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
2806 * spu-tdep.c (spu2ppu_prev_register): Likewise.
2807 (spu_get_overlay_table): Likewise.
2808 * stabsread.c (patch_block_stabs): Likewise.
2809 (define_symbol): Likewise.
2811 (read_member_functions): Likewise.
2812 (read_one_struct_field): Likewise.
2813 (read_enum_type): Likewise.
2814 (common_block_start): Likewise.
2815 * stack.c (read_frame_arg): Likewise.
2816 (backtrace_command): Likewise.
2817 * stap-probe.c (stap_parse_register_operand): Likewise.
2818 * symfile.c (syms_from_objfile_1): Likewise.
2819 (find_separate_debug_file): Likewise.
2820 (load_command): Likewise.
2821 (load_progress): Likewise.
2822 (load_section_callback): Likewise.
2823 (reread_symbols): Likewise.
2824 (add_filename_language): Likewise.
2825 (allocate_compunit_symtab): Likewise.
2826 (read_target_long_array): Likewise.
2827 (simple_read_overlay_table): Likewise.
2828 * symtab.c (symbol_set_names): Likewise.
2829 (resize_symbol_cache): Likewise.
2830 (rbreak_command): Likewise.
2831 (completion_list_add_name): Likewise.
2832 (completion_list_objc_symbol): Likewise.
2833 (add_filename_to_list): Likewise.
2834 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
2835 * target-memory.c (target_write_memory_blocks): Likewise.
2836 * target.c (target_read_string): Likewise.
2837 (read_whatever_is_readable): Likewise.
2838 (target_read_alloc_1): Likewise.
2839 (simple_search_memory): Likewise.
2840 (target_fileio_read_alloc_1): Likewise.
2841 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2842 * top.c (command_line_input): Likewise.
2843 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
2844 * tracefile.c (tracefile_fetch_registers): Likewise.
2845 * tracepoint.c (add_memrange): Likewise.
2846 (init_collection_list): Likewise.
2847 (add_aexpr): Likewise.
2848 (trace_dump_actions): Likewise.
2849 (parse_trace_status): Likewise.
2850 (parse_tracepoint_definition): Likewise.
2851 (parse_tsv_definition): Likewise.
2852 (parse_static_tracepoint_marker_definition): Likewise.
2853 * tui/tui-file.c (tui_sfileopen): Likewise.
2854 (tui_file_adjust_strbuf): Likewise.
2855 * tui/tui-io.c (tui_expand_tabs): Likewise.
2856 * tui/tui-source.c (tui_set_source_content): Likewise.
2857 * typeprint.c (find_global_typedef): Likewise.
2858 * ui-file.c (do_ui_file_xstrdup): Likewise.
2859 (ui_file_obsavestring): Likewise.
2860 (mem_file_write): Likewise.
2861 * utils.c (make_hex_string): Likewise.
2862 (get_regcomp_error): Likewise.
2863 (puts_filtered_tabular): Likewise.
2864 (gdb_realpath_keepfile): Likewise.
2865 (ldirname): Likewise.
2866 (gdb_bfd_errmsg): Likewise.
2867 (substitute_path_component): Likewise.
2868 * valops.c (search_struct_method): Likewise.
2869 (find_oload_champ_namespace_loop): Likewise.
2870 * valprint.c (print_decimal_chars): Likewise.
2871 (read_string): Likewise.
2872 (generic_emit_char): Likewise.
2873 * varobj.c (varobj_delete): Likewise.
2874 (varobj_value_get_print_value): Likewise.
2875 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
2876 * windows-tdep.c (display_one_tib): Likewise.
2877 * xcoffread.c (read_xcoff_symtab): Likewise.
2878 (process_xcoff_symbol): Likewise.
2879 (swap_sym): Likewise.
2880 (scan_xcoff_symtab): Likewise.
2881 (xcoff_initial_scan): Likewise.
2882 * xml-support.c (gdb_xml_end_element): Likewise.
2883 (xml_process_xincludes): Likewise.
2884 (xml_fetch_content_from_file): Likewise.
2885 * xml-syscall.c (xml_list_of_syscalls): Likewise.
2886 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2888 2015-09-23 James Bowman <james.bowman@ftdichip.com>
2890 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
2891 instead of builtin_func_ptr.
2892 (ft32_pointer_to_address): New function.
2893 (ft32_address_class_type_flags): New function.
2894 (ft32_address_class_type_flags_to_name): New function.
2895 (ft32_address_class_name_to_type_flags): New function.
2896 (ft32_gdbarch_init): Set tdep->pc_type. Call
2897 set_gdbarch_pointer_to_address,
2898 set_gdbarch_address_class_type_flags
2899 set_gdbarch_address_class_name_to_type_flags,
2900 and set_gdbarch_address_class_type_flags_to_name.
2901 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
2903 2015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
2905 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
2906 value is a reference, actually dereference it in order to get
2907 the underlying value.
2909 2015-09-22 Simon Marchi <simon.marchi@ericsson.com>
2911 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
2913 2015-09-21 Simon Marchi <simon.marchi@ericsson.com>
2915 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
2916 * linespec.c (linespec_lexer_lex_string): Same.
2918 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2920 * NEWS: Mention support for fast tracepoints on aarch64-linux.
2922 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2924 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
2925 variable. Call aarch64_decode_adr instead of
2926 aarch64_decode_adrp.
2927 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
2928 (aarch64_decode_adr): New function declaration.
2929 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
2930 (aarch64_decode_adr): New function, factored out from
2931 aarch64_decode_adrp to decode both adr and adrp instructions.
2933 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2935 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
2936 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
2937 (aarch64-insn.o): New rule.
2938 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
2939 (aarch64*-*-linux*): Likewise.
2940 * arch/aarch64-insn.c: New file.
2941 * arch/aarch64-insn.h: New file.
2942 * aarch64-tdep.c: Include arch/aarch64-insn.h.
2943 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
2944 arch/aarch64-insn.h.
2945 (decode_add_sub_imm): Rename to ...
2946 (aarch64_decode_add_sub_imm): ... this.
2947 (decode_adrp): Rename to ...
2948 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
2949 Declare in arch/aarch64-insn.h.
2950 (decode_b): Rename to ...
2951 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
2952 Declare in arch/aarch64-insn.h.
2953 (decode_bcond): Rename to ...
2954 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
2955 Declare in arch/aarch64-insn.h.
2956 (decode_br): Rename to ...
2957 (aarch64_decode_br): ... this.
2958 (decode_cb): Rename to ...
2959 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
2960 Declare in arch/aarch64-insn.h.
2961 (decode_eret): Rename to ...
2962 (aarch64_decode_eret): ... this.
2963 (decode_movz): Rename to ...
2964 (aarch64_decode_movz): ... this.
2965 (decode_orr_shifted_register_x): Rename to ...
2966 (aarch64_decode_orr_shifted_register_x): ... this.
2967 (decode_ret): Rename to ...
2968 (aarch64_decode_ret): ... this.
2969 (decode_stp_offset): Rename to ...
2970 (aarch64_decode_stp_offset): ... this.
2971 (decode_stp_offset_wb): Rename to ...
2972 (aarch64_decode_stp_offset_wb): ... this.
2973 (decode_stur): Rename to ...
2974 (aarch64_decode_stur): ... this.
2975 (decode_tb): Rename to ...
2976 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
2977 Declare in arch/aarch64-insn.h.
2978 (aarch64_analyze_prologue): Adjust calls to renamed functions.
2980 2015-09-20 Doug Evans <xdje42@gmail.com>
2982 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
2984 2015-09-20 Doug Evans <xdje42@gmail.com>
2986 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
2987 variable name that collides with a parameter.
2989 2015-09-20 Joel Brobecker <brobecker@adacore.com>
2991 * dwarf2loc.c (locexpr_get_frame_base): Renames
2992 block_op_get_frame_base.
2993 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
2994 block_op_get_frame_base by reference to locexpr_get_frame_base.
2995 (loclist_get_frame_base): New function, near identical copy of
2996 locexpr_get_frame_base.
2997 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
2998 block_op_get_frame_base by reference to loclist_get_frame_base.
3000 2015-09-19 Doug Evans <xdje42@gmail.com>
3002 * ravenscar-thread.c (ravenscar_inferior_created): Replace
3003 current_inferior ()->gdbarch with its wrapper target_gdbarch.
3005 2015-09-18 Doug Evans <xdje42@gmail.com>
3007 * linux-thread-db.c (record_thread): Return the created thread.
3008 (thread_from_lwp): Likewise.
3009 (thread_db_get_thread_local_address): Update.
3011 2015-09-18 Doug Evans <xdje42@gmail.com>
3013 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
3014 move only member demangled_name up. All uses updated.
3016 2015-09-18 Doug Evans <xdje42@gmail.com>
3018 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
3019 kind of minimal symbol in the error message.
3020 * objfiles.c (objfile_flavour_name): New function.
3021 * objfiles.h (objfile_flavour_name): Declare.
3023 2015-09-18 Yao Qi <yao.qi@linaro.org>
3025 * nat/aarch64-linux.c: Include elf/common.h,
3026 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
3027 (aarch64_ps_get_thread_area): New function.
3028 * nat/aarch64-linux.h: Include gdb_proc_service.h.
3029 (aarch64_ps_get_thread_area): Declare.
3030 * aarch64-linux-nat.c (ps_get_thread_area): Call
3031 aarch64_ps_get_thread_area.
3033 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3035 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
3037 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3039 * NEWS: Announce new scheduler-locking mode.
3040 * infrun.c (schedlock_replay): New.
3041 (scheduler_enums): Add schedlock_replay.
3042 (scheduler_mode): Change default to schedlock_replay.
3043 (user_visible_resume_ptid): Handle schedlock_replay.
3044 (clear_proceed_status_thread): Stop replaying if resumed thread is
3046 (schedlock_applies): Handle schedlock_replay.
3047 (_initialize_infrun): Document new scheduler-locking mode.
3048 * record-btrace.c (record_btrace_resume): Remove code to stop other
3049 threads when not replaying the resumed thread.
3051 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3053 * record-btrace.c ((record_btrace_will_replay): New.
3054 (init_record_btrace_ops): Initialize to_record_will_replay.
3055 * record-full.c ((record_full_will_replay): New.
3056 (init_record_full_ops): Initialize to_record_will_replay.
3057 * target-delegates.c: Regenerated.
3058 * target.c (target_record_will_replay): New.
3059 * target.h (struct target_ops) <to_record_will_replay>: New.
3060 (target_record_will_replay): New.
3062 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3064 * record-btrace.c (record_btrace_resume): Call
3065 target_record_stop_replaying.
3066 (record_btrace_stop_replaying_all): New.
3067 (init_record_btrace_ops): Initialize to_record_stop_replaying.
3068 * record-full.c (record_full_stop_replaying): New.
3069 (init_record_full_ops ): Initialize to_record_stop_replaying.
3070 * target-delegates.c: Regenerated.
3071 * target.c (target_record_stop_replaying): New.
3072 * target.h (struct target_ops) <to_record_stop_replaying>: New.
3073 (target_record_stop_replaying): New.
3075 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3077 * record-btrace.c (record_btrace_xfer_partial)
3078 (record_btrace_store_registers, record_btrace_prepare_to_store):
3079 Call record_btrace_is_replaying with inferior_ptid instead of
3081 (record_btrace_store_registers): Change error message.
3083 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3085 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
3086 Update users to pass minus_one_ptid.
3087 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
3088 * record.c (cmd_record_delete): Pass inferior_ptid to
3089 target_record_is_replaying.
3090 * target-delegates.c: Regenerated.
3091 * target.c (target_record_is_replaying): Add ptid argument.
3092 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
3094 (target_record_is_replaying): Add ptid argument.
3096 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3098 * record-btrace.c (record_btrace_open): Remove non_stop check.
3099 * NEWS: Announce that record btrace supports non-stop mode.
3101 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3103 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
3104 in the TARKET_WAITKIND_NO_HISTORY case.
3106 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3108 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
3109 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
3111 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3113 * record-btrace.c (get_thread_current_frame): New.
3114 (record_btrace_start_replaying): Call get_thread_current_frame.
3116 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3118 * record-btrace.c (record_btrace_resume_thread): A move request
3119 overwrites a previous move request.
3120 (record_btrace_find_resume_thread): Removed.
3121 (record_btrace_resume): Resume all requested threads.
3123 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3125 * record-btrace.c: Include vec.h.
3126 (record_btrace_find_thread_to_move): Removed.
3127 (btrace_step_no_resumed, btrace_step_again)
3128 (record_btrace_stop_replaying_at_end): New.
3129 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
3130 (record_btrace_single_step_forward): Remove calls to
3131 record_btrace_stop_replaying.
3132 (record_btrace_step_thread): Do only one step for BTHR_CONT and
3133 BTHR_RCONT. Keep threads at the end of their history moving.
3134 (record_btrace_wait): Call record_btrace_step_thread for all threads
3135 until one reports an event. Call record_btrace_stop_replaying_at_end
3136 for the eventing thread.
3138 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3140 * record-btrace.c (record_btrace_single_step_forward): Return
3141 NO_HISTORY if a step brings us to the end of the execution history.
3143 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3145 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
3147 (record_btrace_single_step_forward): ... here and
3148 (record_btrace_single_step_backward): ... here.
3150 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3152 * record-btrace.c (btrace_step_spurious)
3153 (record_btrace_single_step_forward)
3154 (record_btrace_single_step_backward): New.
3155 (record_btrace_step_thread): Call record_btrace_single_step_forward
3156 and record_btrace_single_step_backward.
3158 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3160 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
3161 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
3163 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3165 * record-btrace.c (btrace_thread_flag_to_str)
3166 (record_btrace_cancel_resume): New.
3167 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
3168 (record_btrace_resume): Print execution direction.
3169 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
3170 (record_btrace_wait): Call record_btrace_cancel_resume.
3172 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3174 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
3175 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
3176 (record_btrace_find_thread_to_move): Also accept threads that have
3178 (btrace_step_stopped_on_request, record_btrace_stop): New.
3179 (record_btrace_step_thread): Support BTHR_STOP.
3180 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
3181 (init_record_btrace_ops): Initialize to_stop.
3183 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3185 * record-btrace.c (record_btrace_wait): Replace non_stop check with
3186 target_is_non_stop_p ().
3188 2015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
3190 * ada-typeprint.c (print_array_type): Do not describe arrays as
3191 packed when they embed dynamic elements.
3193 2015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3195 * symtab.h (address_class): Document that TLS variables
3196 are handled by LOC_UNRESOLVED.
3197 * findvar.c (default_read_var_value): Don't relocate TLS variables.
3198 * printcmd.c (address_info): Don't relocate TLS variables.
3200 2015-09-15 Pierre Langlois <pierre.langlois@arm.com>
3202 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
3203 (decode_adrp): Likewise.
3204 (decode_b): Likewise.
3205 (decode_bcond): Likewise.
3206 (decode_br): Likewise.
3207 (decode_cb): Likewise.
3208 (decode_eret): Likewise.
3209 (decode_movz): Likewise.
3210 (decode_orr_shifted_register_x): Likewise.
3211 (decode_ret): Likewise.
3212 (decode_stp_offset): Likewise.
3213 (decode_stp_offset_wb): Likewise.
3214 (decode_stur): Likewise.
3215 (decode_tb): Likewise.
3216 (aarch64_analyze_prologue): Likewise.
3217 (pass_in_x): Likewise.
3218 (pass_in_v): Likewise.
3219 (pass_on_stack): Likewise.
3220 (aarch64_push_dummy_call): Likewise.
3221 (aarch64_extract_return_value): Likewise.
3222 (aarch64_store_return_value): Likewise.
3223 (aarch64_return_value): Likewise.
3224 (aarch64_record_asimd_load_store): Likewise.
3225 (aarch64_record_load_store): Likewise.
3226 (aarch64_record_data_proc_simd_fp): Likewise.
3228 2015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3230 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
3231 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
3232 (ppc64_skip_trampoline_code_1): ... here.
3233 (ppc64_skip_trampoline_code): New wrapper function.
3234 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
3236 2015-09-15 Yao Qi <yao.qi@linaro.org>
3238 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
3240 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
3241 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
3242 if target_can_do_single_step returns 1.
3243 * remote.c (struct vCont_action_support) <s, S>: New fields.
3244 (PACKET_vContSupported): New enum.
3245 (remote_protocol_features): New element for vContSupported.
3246 (remote_query_supported): Append "vContSupported+".
3247 (remote_vcont_probe): Remove support_s and support_S, use
3248 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
3249 vCont packet if c and C actions are not supported.
3250 (remote_can_do_single_step): New function.
3251 (init_remote_ops): Install it to to_can_do_single_step.
3252 (_initialize_remote): Call add_packet_config_cmd.
3253 * target.h (struct target_ops) <to_can_do_single_step>: New field.
3254 (target_can_do_single_step): New macro.
3255 * target-delegates.c: Re-generated.
3257 2015-09-15 Yao Qi <yao.qi@linaro.org>
3259 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
3260 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
3261 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
3263 (aarch64_siginfo_from_compat_siginfo): New function.
3264 * nat/aarch64-linux.h: Include signal.h.
3265 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
3266 (compat_timer_t, compat_clock_t): Likewise.
3267 (struct compat_timeval): New.
3268 (union compat_sigval): New.
3269 (struct compat_siginfo): New.
3270 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
3271 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
3272 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
3273 (cpt_si_band, cpt_si_fd): Likewise.
3275 2015-09-14 Pedro Alves <palves@redhat.com>
3277 * infrun.c (current_stop_id): New global.
3278 (get_stop_id, new_stop_id): New functions.
3279 (fetch_inferior_event): Handle normal_stop proceeding the target.
3280 (struct stop_context): New.
3281 (save_stop_context, release_stop_context_cleanup)
3282 (stop_context_changed): New functions.
3283 (normal_stop): Return true if the hook-stop changes the stop
3285 * infrun.h (get_stop_id): Declare.
3286 (normal_stop): Now returns int. Add documentation.
3288 2015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
3290 * ada-lang.c (ada_value_ptr_subscript): Update the heading
3291 comment. Handle packed arrays.
3293 2015-09-14 Pedro Alves <palves@redhat.com>
3295 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
3296 mention of maint set/show target-non-stop.
3298 2015-09-11 Don Breazeal <donb@codesourcery.com>
3300 * NEWS: Announce new remote packets for the exec-events
3301 feature and the exec-events feature and associated commands.
3303 2015-09-11 Don Breazeal <donb@codesourcery.com>
3305 * remote.c (remote_exec_event_p): New function.
3306 (remote_insert_exec_catchpoint): New function.
3307 (remote_remove_exec_catchpoint): New function.
3308 (init_extended_remote_ops): Initialize extended_remote_ops
3309 members to_insert_exec_catchpoint and
3310 to_remove_exec_catchpoint.
3312 2015-09-11 Don Breazeal <donb@codesourcery.com>
3313 Luis Machado <lgustavo@codesourcery.com>
3315 * infrun.c (follow_exec): Use process-style ptid for
3316 exec message. Call add_inferior_with_spaces and
3318 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
3319 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
3320 * remote.c (remote_pspace_data): New static variable.
3321 (remote_pspace_data_cleanup): New function.
3322 (get_remote_exec_file): New function.
3323 (set_remote_exec_file_1): New function.
3324 (set_remote_exec_file): New function.
3325 (show_remote_exec_file): New function.
3326 (remote_exec_file): Delete static variable.
3327 (anonymous enum) <PACKET_exec_event_feature>: New
3328 enumeration constant.
3329 (remote_protocol_features): Add entry for exec-events feature.
3330 (remote_query_supported): Add client side of qSupported query
3331 for exec-events feature.
3332 (remote_follow_exec): New function.
3333 (remote_parse_stop_reply): Handle 'exec' stop reason.
3334 (extended_remote_run, extended_remote_create_inferior): Call
3335 get_remote_exec_file and set_remote_exec_file_1.
3336 (init_extended_remote_ops) <to_follow_exec>: Initialize new
3338 (_initialize_remote): Call
3339 register_program_space_data_with_cleanup. Call
3340 add_packet_config_cmd for remote exec-events feature.
3341 Modify call to add_setshow_string_noescape_cmd for exec-file
3342 to use new functions set_remote_exec_file and
3343 show_remote_exec_file.
3344 * target-debug.h, target-delegates.c: Regenerated.
3345 * target.c (target_follow_exec): New function.
3346 * target.h (struct target_ops) <to_follow_exec>: New member.
3347 (target_follow_exec): Declare new function.
3349 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
3351 * aarch64-tdep.c (decode_cb): Move up comment describing the
3353 (decode_tb): Fix a typo in comment above the function. Move up
3354 comment describing the encoding.
3356 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
3358 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
3360 2015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
3363 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
3364 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
3366 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
3368 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
3371 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
3373 * ada-lang.c (ada_search_struct_field): Constify parameters
3375 (xget_renaming_scope): Likewise.
3376 (ada_is_redundant_range_encoding): Likewise.
3377 (scan_discrim_bound): Likewise.
3378 (to_fixed_range_type): Likewise.
3380 2015-09-10 Yao Qi <yao.qi@linaro.org>
3382 * breakpoint.c (download_tracepoint_locations): New local
3383 can_download_tracepoint. Check the result of
3384 target_can_download_tracepoint and save it in
3385 can_download_tracepoint if there are tracepoints to download.
3386 * linux-nat.h (enum tribool): Move it to ...
3387 * common/common-types.h: ... here.
3389 2015-09-09 Pedro Alves <palves@redhat.com>
3391 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
3392 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
3394 2015-09-09 Pedro Alves <palves@redhat.com>
3396 * continuations.c (add_continuation, restore_thread_cleanup)
3397 (do_all_continuations_ptid, do_all_continuations_thread_callback)
3398 (do_all_continuations_thread, do_all_continuations)
3399 (discard_all_continuations_thread_callback)
3400 (discard_all_continuations_thread, discard_all_continuations)
3401 (add_intermediate_continuation)
3402 (do_all_intermediate_continuations_thread_callback)
3403 (do_all_intermediate_continuations_thread)
3404 (do_all_intermediate_continuations)
3405 (discard_all_intermediate_continuations_thread_callback)
3406 (discard_all_intermediate_continuations_thread)
3407 (discard_all_intermediate_continuations): Delete.
3408 * continuations.h (add_continuation, do_all_continuations)
3409 (do_all_continuations_thread, discard_all_continuations)
3410 (discard_all_continuations_thread, add_intermediate_continuation)
3411 (do_all_intermediate_continuations)
3412 (do_all_intermediate_continuations_thread)
3413 (discard_all_intermediate_continuations)
3414 (discard_all_intermediate_continuations_thread): Delete
3416 * event-top.c (stdin_event_handler): Delete references to
3418 * gdbthread.h (struct thread_info): Delete continuations and
3419 intermediate_continuations fields.
3420 * inf-loop.c (inferior_event_handler): Remove references to
3422 * infrun.c (infrun_thread_stop_requested_callback): Remove
3423 references to continuations.
3424 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
3425 * thread.c: Don't include "continuations.h".
3426 (clear_thread_inferior_resources): Remove references to
3429 2015-09-09 Pedro Alves <palves@redhat.com>
3431 * infcall.c (struct dummy_frame_context_saver): Delete.
3432 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
3433 (dummy_frame_context_saver_drop)
3434 (dummy_frame_context_saver_cleanup)
3435 (dummy_frame_context_saver_get_regs)
3436 (dummy_frame_context_saver_setup): Delete.
3437 * infcall.h (dummy_frame_context_saver_drop)
3438 (dummy_frame_context_saver_cleanup)
3439 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
3441 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
3442 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
3443 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
3445 2015-09-09 Pedro Alves <palves@redhat.com>
3447 * breakpoint.c: Include "thread-fsm.h".
3448 (struct until_break_command_continuation_args): Delete.
3449 (struct until_break_fsm): New.
3450 (until_break_fsm_ops): New global.
3451 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
3452 (until_break_command_continuation): Delete.
3453 (until_break_fsm_clean_up): New function.
3454 (until_break_fsm_async_reply_reason): New function.
3455 (until_break_command): Adjust to create an until_break_fsm instead
3457 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
3459 * infcmd.c (struct until_next_fsm): New.
3460 (until_next_fsm_ops): New global.
3461 (new_until_next_fsm, until_next_fsm_should_stop): New function.
3462 (until_next_continuation): Delete.
3463 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
3465 (until_next_command): Adjust to create a new until_next_fsm
3466 instead of a continuation.
3468 2015-09-09 Pedro Alves <palves@redhat.com>
3470 * infcall.c: Include thread_fsm.h.
3471 (struct call_return_meta_info): New.
3472 (get_call_return_value): New function, factored out from
3473 call_function_by_hand_dummy.
3474 (struct call_thread_fsm): New.
3475 (call_thread_fsm_ops): New global.
3476 (new_call_thread_fsm, call_thread_fsm_should_stop)
3477 (call_thread_fsm_should_notify_stop): New functions.
3478 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
3480 (call_function_by_hand_dummy): Create a new call_thread_fsm
3481 instance, associate it with the thread, and wait for the FSM to
3482 finish. If finished successfully, fetch the function's result
3483 value out of the FSM.
3484 * infrun.c (fetch_inferior_event): If the FSM says the stop
3485 shouldn't be notified, don't call normal_stop.
3486 (maybe_remove_breakpoints): New function, factored out from ...
3487 (normal_stop): ... here. Simplify.
3488 * infrun.h (maybe_remove_breakpoints): Declare.
3489 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
3490 (thread-fsm.h) <struct thread_fsm_ops>: New field.
3491 (thread_fsm_should_notify_stop): Declare.
3493 2015-09-09 Pedro Alves <palves@redhat.com>
3495 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
3496 * breakpoint.c (handle_jit_event): Print debug output.
3497 (bpstat_what): Split event callback handling to ...
3498 (bpstat_run_callbacks): ... this new function.
3499 (momentary_bkpt_print_it): No longer handle bp_finish here.
3500 * breakpoint.h (bpstat_run_callbacks): Declare.
3501 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
3502 <thread_fsm>: New field.
3503 (thread_cancel_execution_command): Declare.
3504 * infcmd.c: Include thread-fsm.h.
3505 (struct step_command_fsm): New.
3506 (step_command_fsm_ops): New global.
3507 (new_step_command_fsm, step_command_fsm_prepare): New functions.
3508 (step_1): Adjust to use step_command_fsm_prepare and
3510 (struct step_1_continuation_args): Delete.
3511 (step_1_continuation): Delete.
3512 (step_command_fsm_should_stop): New function.
3513 (step_once): Delete.
3514 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
3515 (prepare_one_step): New function, based on step_once.
3516 (until_next_command): Remove step_multi reference.
3517 (struct return_value_info): New.
3518 (print_return_value): Rename to ...
3519 (print_return_value_1): ... this. New struct return_value_info
3521 (print_return_value): Reimplement as wrapper around
3522 print_return_value_1.
3523 (struct finish_command_fsm): New.
3524 (finish_command_continuation): Delete.
3525 (finish_command_fsm_ops): New global.
3526 (new_finish_command_fsm, finish_command_fsm_should_stop): New
3528 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
3530 (finish_command_continuation_free_arg): Delete.
3531 (finish_command_fsm_async_reply_reason): New.
3532 (finish_backward, finish_forward): Change symbol parameter to a
3533 finish_command_fsm. Adjust.
3534 (finish_command): Create a finish_command_fsm. Adjust.
3535 * infrun.c: Include "thread-fsm.h".
3536 (clear_proceed_status_thread): Delete the thread's FSM.
3537 (infrun_thread_stop_requested_callback): Cancel the thread's
3539 (clean_up_just_stopped_threads_fsms): New function.
3540 (fetch_inferior_event): Handle the event_thread's should_stop
3541 method saying the command isn't done yet.
3542 (process_event_stop_test): Run breakpoint callbacks here.
3543 (print_stop_event): Rename to ...
3544 (print_stop_location): ... this.
3545 (restore_current_uiout_cleanup): New function.
3546 (print_stop_event): Reimplement.
3547 (normal_stop): No longer notify the end_stepping_range observers
3548 here handle "step N" nor "finish" here. No longer call
3549 print_stop_event here.
3550 * infrun.h (struct return_value_info): Forward declare.
3551 (print_return_value): Declare.
3552 (print_stop_event): Change prototype.
3553 * thread-fsm.c: New file.
3554 * thread-fsm.h: New file.
3555 * thread.c: Include "thread-fsm.h".
3556 (thread_cancel_execution_command): New function.
3557 (clear_thread_inferior_resources): Call it.
3558 * cli/cli-interp.c (cli_on_normal_stop): New function.
3559 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
3561 * mi/mi-interp.c: Include "thread-fsm.h".
3562 (restore_current_uiout_cleanup): Delete.
3563 (mi_on_normal_stop): If the thread has an FSM associated, and it
3564 finished, ask it for the async-reply-reason to print. Always call
3565 print_stop_event here, regardless of the top-level interpreter.
3566 Check bpstat_what to tell whether an asynchronous breakpoint hit
3568 * tui/tui-interp.c (tui_on_normal_stop): New function.
3569 (tui_init): Install tui_on_normal_stop as normal_stop observer.
3571 2015-09-09 Pedro Alves <palves@redhat.com>
3573 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
3574 check whether the target can async.
3575 * inf-loop.c (inferior_event_handler): Only call target_async if
3576 the target can async.
3577 * infcall.c: Include top.h and interps.h.
3578 (run_inferior_call): For the interpreter to sync mode while
3579 running the infcall. Call wait_sync_command_done instead of
3580 wait_for_inferior plus normal_stop.
3581 * infcmd.c (prepare_execution_command): Don't check whether the
3582 target can async when running in the foreground.
3583 (step_1): Delete synchronous case handling.
3584 (step_once): Always install a continuation, even in sync mode.
3585 (until_next_command, finish_forward): Don't check whether the
3587 (attach_command_post_wait, notice_new_inferior): Always install a
3588 continuation, even in sync mode.
3589 * infrun.c (mark_infrun_async_event_handler): New function.
3590 (proceed): In sync mode, mark infrun's event source instead of
3591 waiting for events here.
3592 (fetch_inferior_event): If the target can't async, do a blocking
3594 (prepare_to_wait): In sync mode, mark infrun's event source.
3595 (infrun_async_inferior_event_handler): No longer bail out if the
3597 * infrun.h (mark_infrun_async_event_handler): New declaration.
3598 * linux-nat.c (linux_nat_wait_1): Remove calls to
3599 set_sigint_trap/clear_sigint_trap.
3600 (linux_nat_terminal_inferior): No longer check whether the target
3602 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
3604 (mi_execute_command_input_handler): No longer check whether the
3605 target is async. Update and simplify comment.
3606 * target.c (default_target_wait): New function.
3607 * target.h (struct target_ops) <to_wait>: Now defaults to
3608 default_target_wait.
3609 (default_target_wait): Declare.
3610 * top.c (wait_sync_command_done): New function, factored out from
3612 (maybe_wait_sync_command_done): ... this.
3613 * top.h (wait_sync_command_done): Declare.
3614 * target-delegates.c: Regenerate.
3616 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
3618 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
3619 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
3620 Remove include of sys/utsname.h.
3621 (linux_determine_kernel_ptr_bits): Remove.
3622 (linux_determine_kernel_start): New.
3623 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
3625 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
3626 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
3628 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
3631 2015-09-07 Pedro Alves <palves@redhat.com>
3633 * guile/guile-internal.h (as_a_scm_t_subr): New.
3634 * guile/guile.c (misc_guile_functions): Use it.
3635 * guile/scm-arch.c (arch_functions): Use it.
3636 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
3638 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
3639 * guile/scm-cmd.c (command_functions): Use it.
3640 * guile/scm-disasm.c (disasm_functions): Use it.
3641 * guile/scm-exception.c (exception_functions)
3642 (private_exception_functions): Use it.
3643 * guile/scm-frame.c (frame_functions)
3644 * guile/scm-gsmob.c (gsmob_functions): Use it.
3645 * guile/scm-iterator.c (iterator_functions): Use it.
3646 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
3647 * guile/scm-math.c (math_functions): Use it.
3648 * guile/scm-objfile.c (objfile_functions): Use it.
3649 * guile/scm-param.c (parameter_functions): Use it.
3650 * guile/scm-ports.c (port_functions, private_port_functions): Use
3652 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
3653 * guile/scm-progspace.c (pspace_functions): Use it.
3654 * guile/scm-string.c (string_functions): Use it.
3655 * guile/scm-symbol.c (symbol_functions): Use it.
3656 * guile/scm-symtab.c (symtab_functions): Use it.
3657 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
3659 * guile/scm-value.c (value_functions): Use it.
3661 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3663 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
3664 (tui_next_win): Likewise.
3665 (tui_prev_win): Likewise.
3666 (tui_partial_win_by_name): Likewise.
3667 (tui_init_generic_part): Likewise.
3668 (init_content_element): Likewise.
3669 (tui_del_window): Likewise.
3670 (tui_free_window): Likewise.
3671 (tui_del_data_windows): Likewise.
3672 (tui_free_data_content): Likewise.
3673 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
3674 * tui/tui-regs.c (tui_show_register_group): Likewise.
3675 * tui/tui-win.c (tui_resize_all): Likewise.
3676 (tui_set_focus): Likewise.
3677 (tui_set_win_height): Likewise.
3678 (make_invisible_and_set_new_height): Likewise.
3679 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
3680 * tui/tui-wingeneral.c (make_visible): Likewise.
3682 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3684 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
3686 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3688 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
3690 * dbxread.c (dbx_end_psymtab): Likewise.
3691 * gnu-nat.c (gnu_write_inferior): Likewise.
3692 * mdebugread.c (cross_ref): Likewise.
3693 * p-valprint.c (pascal_val_print): Likewise.
3694 * xcoffread.c (xcoff_end_psymtab): Likewise.
3696 2015-09-04 Yao Qi <yao.qi@linaro.org>
3698 * NEWS: Mention the aarch64 multi-arch debugging support.
3700 2015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
3702 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
3703 type instead of a TYPE_CODE_INT one for the string_char_type
3704 and the ada_primitive_type_char types.
3706 2015-09-03 Yao Qi <yao.qi@linaro.org>
3708 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
3709 Move code to aarch64_linux_region_ok_for_watchpoint. Call
3710 aarch64_linux_region_ok_for_watchpoint.
3711 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
3713 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
3716 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
3718 * gdb_obstack.h (obstack_strdup): Declare.
3719 * gdb_obstack.c (obstack_strdup): Define.
3720 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
3721 * gdbarch.c: Regenerate.
3722 * gdbarch.h: Regenerate.
3723 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
3725 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
3727 * gdbtypes.c (copy_type_recursive): Update documentation.
3729 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3731 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
3734 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3736 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
3738 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3740 * solib-svr4.c (solib_event_probe_action): Call
3741 get_probe_argument_count using TRY...CATCH.
3742 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
3744 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3746 * probe.h (struct probe_ops) <get_probe_argument_count,
3747 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
3748 the comment that the function can throw an exception.
3749 (get_probe_argument_count): Likewise.
3750 (evaluate_probe_argument): Likewise.
3751 * stap-probe.c (stap_get_opcode): Call error instead of
3753 (stap_get_expected_argument_type): Likewise. Add argument
3754 'probe'. Improve error message by mentioning the probe's name.
3755 (stap_parse_probe_arguments): Adjust call to
3756 stap_get_expected_argument_type.
3757 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
3758 not zero. Call internal_error if GDB requests an argument but the
3759 probe has no arguments.
3761 2015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
3763 * ada-lang.c (ada_resolve_function): Do not ask the user what
3764 match to use when in completion mode.
3766 2015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
3768 * tui/tui-data.c (tui_win_name): Make local variable const, remove
3771 2015-08-31 Max Filippov <jcmvbkbc@gmail.com>
3773 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
3774 call_abi using XSHAL_ABI macro.
3776 2015-08-29 Doug Evans <xdje42@gmail.com>
3778 * symtab.h (struct symbol): Tweak comment.
3780 2015-08-29 Patrick Palka <patrick@parcs.ath.cx>
3782 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
3783 gdbarch obstack instead of on the heap. Update commentary
3786 2015-08-28 Joel Brobecker <brobecker@adacore.com>
3790 2015-08-28 Simon Marchi <simon.marchi@ericsson.com>
3792 * NEWS: Update entry about non-8-bits addressable memory.
3794 2015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
3797 2014-11-06 Doug Evans <xdje42@gmail.com>
3798 * solib.c (solib_global_lookup): Fetch arch from objfile,
3801 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3803 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
3804 attempt to relocate a TLS variable offset.
3806 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3808 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
3809 registered yet. Set inferior_ptid while calling target_read_memory.
3811 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3813 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
3814 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
3815 * linux-nat.c (check_stopped_by_breakpoint): Use
3816 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
3818 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3820 * linux-thread-db.c (thread_db_get_thread_local_address): If the
3821 thread was not yet discovered, use thread_from_lwp instead of
3822 calling thread_db_find_new_threads_1.
3824 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3826 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
3829 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3831 * NEWS: Document support for non-8-bits addressable memory.
3833 2015-08-27 Pedro Alves <palves@redhat.com>
3835 * configure.ac: Remove AC_TYPE_SIGNAL call.
3836 * configure, config.in: Regenerate.
3838 2015-08-27 Pedro Alves <palves@redhat.com>
3840 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
3841 * extension-priv.h: Include signal.h.
3842 (struct signal_handler) <handler>: Change type to sighandler_t.
3843 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
3844 * inflow.c (sigint_ours, sigquit_ours): Change type to
3846 (child_terminal_inferior): Remove casts.
3847 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
3848 (osig): Change type to sighandler_t.
3849 * nto-procfs.c (ofunc): Change type to sighandler_t.
3850 (procfs_wait): Remove casts.
3851 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
3852 * remote-sim.c (gdbsim_wait): Use sighandler_t.
3853 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
3855 2015-08-27 Pedro Alves <palves@redhat.com>
3857 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
3858 * gnulib/aclocal.m4: Renegerate.
3859 * gnulib/config.in: Renegerate.
3860 * gnulib/configure: Renegerate.
3861 * gnulib/import/Makefile.am: Update.
3862 * gnulib/import/Makefile.in: Regenerate.
3863 * gnulib/import/m4/gnulib-cache.m4: Update.
3864 * gnulib/import/m4/gnulib-comp.m4: Update.
3865 * gnulib/import/m4/signal_h.m4: New file.
3866 * gnulib/import/signal.in.h: New file.
3868 2015-08-27 Pedro Alves <palves@redhat.com>
3870 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
3871 (MIN_MEMORY_PACKET_SIZE): New.
3872 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
3873 (get_memory_packet_size): Adjust. No longer limit the max packet
3875 (set_memory_packet_size): Adjust, and remove dead code.
3876 (remote_check_symbols): Use xmalloc and a cleanup instead of
3878 (remote_packet_size): No longer cap the packet size.
3879 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
3881 2015-08-26 Luis Machado <lgustavo@codesourcery.com>
3883 * compile/compile.c (compile_to_object): Mention language in
3886 2015-08-26 Patrick Palka <patrick@parcs.ath.cx>
3888 * target.c (target_pre_inferior): Unset attach_flag.
3890 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3892 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
3893 * gdbarch.c: Re-generate.
3895 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3897 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
3898 function with the XNEW-family equivalent.
3899 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
3900 * ada-exp.y (write_ambiguous_var): Likewise.
3901 * ada-lang.c (resolve_subexp): Likewise.
3902 (user_select_syms): Likewise.
3903 (assign_aggregate): Likewise.
3904 (ada_evaluate_subexp): Likewise.
3905 (cache_symbol): Likewise.
3906 * addrmap.c (allocate_key): Likewise.
3907 (addrmap_create_mutable): Likewise.
3908 * aix-thread.c (sync_threadlists): Likewise.
3909 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
3910 (alpha_gdbarch_init): Likewise.
3911 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
3912 * arm-linux-nat.c (arm_linux_add_process): Likewise.
3913 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3914 * arm-tdep.c (push_stack_item): Likewise.
3915 (arm_displaced_step_copy_insn): Likewise.
3916 (arm_gdbarch_init): Likewise.
3917 (_initialize_arm_tdep): Likewise.
3918 * avr-tdep.c (push_stack_item): Likewise.
3919 * ax-general.c (new_agent_expr): Likewise.
3920 * block.c (block_initialize_namespace): Likewise.
3921 * breakpoint.c (alloc_counted_command_line): Likewise.
3922 (update_dprintf_command_list): Likewise.
3923 (parse_breakpoint_sals): Likewise.
3924 (decode_static_tracepoint_spec): Likewise.
3925 (until_break_command): Likewise.
3926 (clear_command): Likewise.
3927 (update_global_location_list): Likewise.
3928 (get_breakpoint_objfile_data) Likewise.
3929 * btrace.c (ftrace_new_function): Likewise.
3930 (btrace_set_insn_history): Likewise.
3931 (btrace_set_call_history): Likewise.
3932 * buildsym.c (add_symbol_to_list): Likewise.
3933 (record_pending_block): Likewise.
3934 (start_subfile): Likewise.
3935 (start_buildsym_compunit): Likewise.
3936 (push_subfile): Likewise.
3937 (end_symtab_get_static_block): Likewise.
3938 (buildsym_init): Likewise.
3939 * cli/cli-cmds.c (source_command): Likewise.
3940 * cli/cli-decode.c (add_cmd): Likewise.
3941 * cli/cli-script.c (build_command_line): Likewise.
3942 (setup_user_args): Likewise.
3943 (realloc_body_list): Likewise.
3944 (process_next_line): Likewise.
3945 (copy_command_lines): Likewise.
3946 * cli/cli-setshow.c (do_set_command): Likewise.
3947 * coff-pe-read.c (read_pe_exported_syms): Likewise.
3948 * coffread.c (coff_locate_sections): Likewise.
3949 (coff_symtab_read): Likewise.
3950 (coff_read_struct_type): Likewise.
3951 * common/cleanups.c (make_my_cleanup2): Likewise.
3952 * common/common-exceptions.c (throw_it): Likewise.
3953 * common/filestuff.c (make_cleanup_close): Likewise.
3954 * common/format.c (parse_format_string): Likewise.
3955 * common/queue.h (DEFINE_QUEUE_P): Likewise.
3956 * compile/compile-object-load.c (munmap_list_add): Likewise.
3957 (compile_object_load): Likewise.
3958 * compile/compile-object-run.c (compile_object_run): Likewise.
3959 * compile/compile.c (append_args): Likewise.
3960 * corefile.c (specify_exec_file_hook): Likewise.
3961 * cp-support.c (make_symbol_overload_list): Likewise.
3962 * cris-tdep.c (push_stack_item): Likewise.
3963 (cris_gdbarch_init): Likewise.
3964 * ctf.c (ctf_trace_file_writer_new): Likewise.
3965 * dbxread.c (init_header_files): Likewise.
3966 (add_new_header_file): Likewise.
3967 (init_bincl_list): Likewise.
3968 (dbx_end_psymtab): Likewise.
3969 (start_psymtab): Likewise.
3970 (dbx_end_psymtab): Likewise.
3971 * dcache.c (dcache_init): Likewise.
3972 * dictionary.c (dict_create_hashed): Likewise.
3973 (dict_create_hashed_expandable): Likewise.
3974 (dict_create_linear): Likewise.
3975 (dict_create_linear_expandable): Likewise.
3976 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
3977 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
3978 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
3979 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3980 (decode_frame_entry_1): Likewise.
3981 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
3982 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
3983 * dwarf2read.c (dwarf2_has_info): Likewise.
3984 (create_signatured_type_table_from_index): Likewise.
3985 (dwarf2_read_index): Likewise.
3986 (dw2_get_file_names_reader): Likewise.
3987 (create_all_type_units): Likewise.
3988 (read_cutu_die_from_dwo): Likewise.
3989 (init_tu_and_read_dwo_dies): Likewise.
3990 (init_cutu_and_read_dies): Likewise.
3991 (create_all_comp_units): Likewise.
3992 (queue_comp_unit): Likewise.
3993 (inherit_abstract_dies): Likewise.
3994 (read_call_site_scope): Likewise.
3995 (dwarf2_add_field): Likewise.
3996 (dwarf2_add_typedef): Likewise.
3997 (dwarf2_add_member_fn): Likewise.
3998 (attr_to_dynamic_prop): Likewise.
3999 (abbrev_table_alloc_abbrev): Likewise.
4000 (abbrev_table_read_table): Likewise.
4001 (add_include_dir): Likewise.
4002 (add_file_name): Likewise.
4003 (dwarf_decode_line_header): Likewise.
4004 (dwarf2_const_value_attr): Likewise.
4005 (dwarf_alloc_block): Likewise.
4006 (parse_macro_definition): Likewise.
4007 (set_die_type): Likewise.
4008 (write_psymtabs_to_index): Likewise.
4009 (create_cus_from_index): Likewise.
4010 (dwarf2_create_include_psymtab): Likewise.
4011 (process_psymtab_comp_unit_reader): Likewise.
4012 (build_type_psymtab_dependencies): Likewise.
4013 (read_comp_units_from_section): Likewise.
4014 (compute_compunit_symtab_includes): Likewise.
4015 (create_dwo_unit_in_dwp_v1): Likewise.
4016 (create_dwo_unit_in_dwp_v2): Likewise.
4017 (read_func_scope): Likewise.
4018 (process_structure_scope): Likewise.
4019 (mark_common_block_symbol_computed): Likewise.
4020 (load_partial_dies): Likewise.
4021 (dwarf2_symbol_mark_computed): Likewise.
4022 * elfread.c (elf_symfile_segments): Likewise.
4023 (elf_read_minimal_symbols): Likewise.
4024 * environ.c (make_environ): Likewise.
4025 * eval.c (evaluate_subexp_standard): Likewise.
4026 * event-loop.c (create_file_handler): Likewise.
4027 (create_async_signal_handler): Likewise.
4028 (create_async_event_handler): Likewise.
4029 (create_timer): Likewise.
4030 * exec.c (build_section_table): Likewise.
4031 * fbsd-nat.c (fbsd_remember_child): Likewise.
4032 * fork-child.c (fork_inferior): Likewise.
4033 * frv-tdep.c (new_variant): Likewise.
4034 * gdbarch.sh (gdbarch_alloc): Likewise.
4035 (append_name): Likewise.
4036 * gdbtypes.c (rank_function): Likewise.
4037 (copy_type_recursive): Likewise.
4038 (add_dyn_prop): Likewise.
4039 * gnu-nat.c (make_proc): Likewise.
4040 (make_inf): Likewise.
4041 (gnu_write_inferior): Likewise.
4042 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
4043 (build_std_type_info_type): Likewise.
4044 * guile/scm-param.c (compute_enum_list): Likewise.
4045 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
4046 * guile/scm-value.c (gdbscm_value_call): Likewise.
4047 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
4048 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
4049 (read_unwind_info): Likewise.
4050 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
4051 * infcall.c (dummy_frame_context_saver_setup): Likewise.
4052 (call_function_by_hand_dummy): Likewise.
4053 * infcmd.c (step_once): Likewise.
4054 (finish_forward): Likewise.
4055 (attach_command): Likewise.
4056 (notice_new_inferior): Likewise.
4057 * inferior.c (add_inferior_silent): Likewise.
4058 * infrun.c (add_displaced_stepping_state): Likewise.
4059 (save_infcall_control_state): Likewise.
4060 (save_inferior_ptid): Likewise.
4061 (_initialize_infrun): Likewise.
4062 * jit.c (bfd_open_from_target_memory): Likewise.
4063 (jit_gdbarch_data_init): Likewise.
4064 * language.c (add_language): Likewise.
4065 * linespec.c (decode_line_2): Likewise.
4066 * linux-nat.c (add_to_pid_list): Likewise.
4067 (add_initial_lwp): Likewise.
4068 * linux-thread-db.c (add_thread_db_info): Likewise.
4069 (record_thread): Likewise.
4070 (info_auto_load_libthread_db): Likewise.
4071 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
4072 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
4073 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
4074 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
4075 * macrocmd.c (macro_define_command): Likewise.
4076 * macroexp.c (gather_arguments): Likewise.
4077 * macroscope.c (sal_macro_scope): Likewise.
4078 * macrotab.c (new_macro_table): Likewise.
4079 * mdebugread.c (push_parse_stack): Likewise.
4080 (parse_partial_symbols): Likewise.
4081 (parse_symbol): Likewise.
4082 (psymtab_to_symtab_1): Likewise.
4083 (new_block): Likewise.
4084 (new_psymtab): Likewise.
4085 (mdebug_build_psymtabs): Likewise.
4086 (add_pending): Likewise.
4087 (elfmdebug_build_psymtabs): Likewise.
4088 * mep-tdep.c (mep_gdbarch_init): Likewise.
4089 * mi/mi-main.c (mi_execute_command): Likewise.
4090 * mi/mi-parse.c (mi_parse_argv): Likewise.
4091 * minidebug.c (lzma_open): Likewise.
4092 * minsyms.c (terminate_minimal_symbol_table): Likewise.
4093 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
4094 * mips-tdep.c (mips_gdbarch_init): Likewise.
4095 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
4096 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
4097 * mt-tdep.c (mt_registers_info): Likewise.
4098 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
4099 * nat/linux-btrace.c (linux_enable_bts): Likewise.
4100 (linux_enable_pt): Likewise.
4101 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
4102 (linux_xfer_osdata_processgroups): Likewise.
4103 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
4104 * nto-procfs.c (procfs_meminfo): Likewise.
4105 * objc-lang.c (start_msglist): Likewise.
4106 (selectors_info): Likewise.
4107 (classes_info): Likewise.
4108 (find_methods): Likewise.
4109 * objfiles.c (allocate_objfile): Likewise.
4110 (update_section_map): Likewise.
4111 * osabi.c (gdbarch_register_osabi): Likewise.
4112 (gdbarch_register_osabi_sniffer): Likewise.
4113 * parse.c (start_arglist): Likewise.
4114 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
4115 (hwdebug_insert_point): Likewise.
4116 * printcmd.c (display_command): Likewise.
4117 (ui_printf): Likewise.
4118 * procfs.c (create_procinfo): Likewise.
4119 (load_syscalls): Likewise.
4120 (proc_get_LDT_entry): Likewise.
4121 (proc_update_threads): Likewise.
4122 * prologue-value.c (make_pv_area): Likewise.
4123 (pv_area_store): Likewise.
4124 * psymtab.c (extend_psymbol_list): Likewise.
4125 (init_psymbol_list): Likewise.
4126 (allocate_psymtab): Likewise.
4127 * python/py-inferior.c (add_thread_object): Likewise.
4128 * python/py-param.c (compute_enum_values): Likewise.
4129 * python/py-value.c (valpy_call): Likewise.
4130 * python/py-varobj.c (py_varobj_iter_next): Likewise.
4131 * python/python.c (ensure_python_env): Likewise.
4132 * record-btrace.c (record_btrace_start_replaying): Likewise.
4133 * record-full.c (record_full_reg_alloc): Likewise.
4134 (record_full_mem_alloc): Likewise.
4135 (record_full_end_alloc): Likewise.
4136 (record_full_core_xfer_partial): Likewise.
4137 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
4138 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
4139 * remote-notif.c (remote_notif_state_allocate): Likewise.
4140 * remote.c (demand_private_info): Likewise.
4141 (remote_notif_stop_alloc_reply): Likewise.
4142 (remote_enable_btrace): Likewise.
4143 * reverse.c (save_bookmark_command): Likewise.
4144 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
4145 * rx-tdep.c (rx_gdbarch_init): Likewise.
4146 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
4147 * ser-go32.c (dos_get_tty_state): Likewise.
4148 (dos_copy_tty_state): Likewise.
4149 * ser-mingw.c (ser_windows_open): Likewise.
4150 (ser_console_wait_handle): Likewise.
4151 (ser_console_get_tty_state): Likewise.
4152 (make_pipe_state): Likewise.
4153 (net_windows_open): Likewise.
4154 * ser-unix.c (hardwire_get_tty_state): Likewise.
4155 (hardwire_copy_tty_state): Likewise.
4156 * solib-aix.c (solib_aix_new_lm_info): Likewise.
4157 * solib-dsbt.c (dsbt_current_sos): Likewise.
4158 (dsbt_relocate_main_executable): Likewise.
4159 * solib-frv.c (frv_current_sos): Likewise.
4160 (frv_relocate_main_executable): Likewise.
4161 * solib-spu.c (spu_bfd_fopen): Likewise.
4162 * solib-svr4.c (lm_info_read): Likewise.
4163 (svr4_copy_library_list): Likewise.
4164 (svr4_default_sos): Likewise.
4165 * source.c (find_source_lines): Likewise.
4166 (line_info): Likewise.
4167 (add_substitute_path_rule): Likewise.
4168 * spu-linux-nat.c (spu_bfd_open): Likewise.
4169 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
4170 * stabsread.c (dbx_lookup_type): Likewise.
4171 (read_type): Likewise.
4172 (read_member_functions): Likewise.
4173 (read_struct_fields): Likewise.
4174 (read_baseclasses): Likewise.
4175 (read_args): Likewise.
4176 (_initialize_stabsread): Likewise.
4177 * stack.c (func_command): Likewise.
4178 * stap-probe.c (handle_stap_probe): Likewise.
4179 * symfile.c (addrs_section_sort): Likewise.
4180 (addr_info_make_relative): Likewise.
4181 (load_section_callback): Likewise.
4182 (add_symbol_file_command): Likewise.
4183 (init_filename_language_table): Likewise.
4184 * symtab.c (create_filename_seen_cache): Likewise.
4185 (sort_search_symbols_remove_dups): Likewise.
4186 (search_symbols): Likewise.
4187 * target.c (make_cleanup_restore_target_terminal): Likewise.
4188 * thread.c (new_thread): Likewise.
4189 (enable_thread_stack_temporaries): Likewise.
4190 (make_cleanup_restore_current_thread): Likewise.
4191 (thread_apply_all_command): Likewise.
4192 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
4193 * top.c (gdb_readline_wrapper): Likewise.
4194 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
4195 * tracepoint.c (trace_find_line_command): Likewise.
4196 (all_tracepoint_actions_and_cleanup): Likewise.
4197 (make_cleanup_restore_current_traceframe): Likewise.
4198 (get_uploaded_tp): Likewise.
4199 (get_uploaded_tsv): Likewise.
4200 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
4201 (tui_alloc_win_info): Likewise.
4202 (tui_alloc_content): Likewise.
4203 (tui_add_content_elements): Likewise.
4204 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
4205 (tui_set_disassem_content): Likewise.
4206 * ui-file.c (ui_file_new): Likewise.
4207 (stdio_file_new): Likewise.
4208 (tee_file_new): Likewise.
4209 * utils.c (make_cleanup_restore_integer): Likewise.
4210 (add_internal_problem_command): Likewise.
4211 * v850-tdep.c (v850_gdbarch_init): Likewise.
4212 * valops.c (find_oload_champ): Likewise.
4213 * value.c (allocate_value_lazy): Likewise.
4214 (record_latest_value): Likewise.
4215 (create_internalvar): Likewise.
4216 * varobj.c (install_variable): Likewise.
4217 (new_variable): Likewise.
4218 (new_root_variable): Likewise.
4220 (_initialize_varobj): Likewise.
4221 * windows-nat.c (windows_make_so): Likewise.
4222 * x86-nat.c (x86_add_process): Likewise.
4223 * xcoffread.c (arrange_linetable): Likewise.
4224 (allocate_include_entry): Likewise.
4225 (process_linenos): Likewise.
4226 (SYMBOL_DUP): Likewise.
4227 (xcoff_start_psymtab): Likewise.
4228 (xcoff_end_psymtab): Likewise.
4229 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
4230 * xtensa-tdep.c (xtensa_register_type): Likewise.
4231 * gdbarch.c: Regenerate.
4232 * gdbarch.h: Regenerate.
4234 2015-08-25 Don Breazeal <donb@codesourcery.com>
4236 * infrun.c (follow_exec): Re-order operations for
4237 handling follow-exec-mode "new".
4238 (handle_inferior_event_1): Assign ecs->event_thread
4239 to the current thread.
4240 * remote.c (get_remote_arch_state): Add an assertion.
4242 2015-08-26 Pedro Alves <palves@redhat.com>
4244 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
4246 2015-08-25 Pedro Alves <palves@redhat.com>
4249 * defs.h (maybe_quit): Declare.
4250 (QUIT): Now calls maybe_quit.
4251 * event-loop.c (clear_async_signal_handler)
4252 (async_signal_handler_is_marked): New functions.
4253 * event-loop.h (async_signal_handler_is_marked)
4254 (clear_async_signal_handler): New declarations.
4255 * remote.c (remote_check_pending_interrupt): New function.
4256 (interrupt_query): Use make_cleanup_restore_target_terminal. No
4257 longer check whether the target is async. If waiting for a stop
4258 reply, and a Ctrl-C as been sent to the target, offer to
4259 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
4260 Otherwise do not disconnect and throw a quit.
4261 (_initialize_remote): Install remote_check_pending_interrupt as
4262 to_check_pending_interrupt.
4263 * target.c (target_check_pending_interrupt): New function.
4264 * target.h (struct target_ops) <to_check_pending_interrupt>: New
4266 (target_check_pending_interrupt): New declaration.
4267 * utils.c (maybe_quit): New function.
4268 * target-delegates.c: Regenerate.
4270 2015-08-25 Yao Qi <yao.qi@linaro.org>
4272 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
4273 Rename local variable pid to tid, and get lwpid of lwp. Update
4276 2015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
4278 * ada-lang.c (ada_read_var_value): Add a var_block argument
4279 and pass it to default_read_var_value.
4280 * block.c (block_static_link): New accessor.
4281 * block.h (block_static_link): Declare it.
4282 * buildsym.c (finish_block_internal): Add a static_link
4283 argument. If there is a static link, associate it to the new
4285 (finish_block): Add a static link argument and pass it to
4286 finish_block_internal.
4287 (end_symtab_get_static_block): Update calls to finish_block and
4288 to finish_block_internal.
4289 (end_symtab_with_blockvector): Update call to
4290 finish_block_internal.
4291 * buildsym.h: Forward-declare struct dynamic_prop.
4292 (struct context_stack): Add a static_link field.
4293 (finish_block): Add a static link argument.
4294 * c-exp.y: Remove an obsolete comment (evaluation of variables
4295 already start from the selected frame, and now they climb *up*
4296 the call stack) and propagate the block information to the
4297 produced expression.
4298 * d-exp.y: Likewise.
4299 * f-exp.y: Likewise.
4300 * go-exp.y: Likewise.
4301 * jv-exp.y: Likewise.
4302 * m2-exp.y: Likewise.
4303 * p-exp.y: Likewise.
4304 * coffread.c (coff_symtab_read): Update calls to finish_block.
4305 * dbxread.c (process_one_symbol): Likewise.
4306 * xcoffread.c (read_xcoff_symtab): Likewise.
4307 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
4308 "sym" parameter to struct block_symbol, update its uses and pass
4309 its block to calls to read_var_value.
4310 (convert_symbol_sym): Update the calls to convert_one_symbol.
4311 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
4312 call to read_var_value.
4313 * dwarf2loc.c (block_op_get_frame_base): New.
4314 (dwarf2_block_frame_base_locexpr_funcs): Implement the
4315 get_frame_base method.
4316 (dwarf2_block_frame_base_loclist_funcs): Likewise.
4317 (dwarf2locexpr_baton_eval): Add a frame argument and use it
4318 instead of the selected frame in order to evaluate the
4320 (dwarf2_evaluate_property): Add a frame argument. Update call
4321 to dwarf2_locexpr_baton_eval to provide a frame in available and
4322 to handle the absence of address stack.
4323 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
4324 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
4326 (read_func_scope): Record any available static link description.
4327 Update call to finish_block.
4328 (read_lexical_block_scope): Update call to finish_block.
4329 * findvar.c (follow_static_link): New.
4330 (get_hosting_frame): New.
4331 (default_read_var_value): Add a var_block argument. Use
4332 get_hosting_frame to handle non-local references.
4333 (read_var_value): Add a var_block argument and pass it to the
4334 LA_READ_VAR_VALUE method.
4335 * gdbtypes.c (resolve_dynamic_range): Update calls to
4336 dwarf2_evaluate_property.
4337 (resolve_dynamic_type_internal): Likewise.
4338 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
4339 read_var_value, passing it the block coming from symbol lookup.
4340 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
4341 read_var_value (TODO).
4342 * infcmd.c (finish_command_continuation): Update call to
4343 read_var_value, passing it the block coming from symbol lookup.
4344 * infrun.c (insert_exception_resume_breakpoint): Likewise.
4345 * language.h (struct language_defn): Add a var_block argument to
4346 the LA_READ_VAR_VALUE method.
4347 * objfiles.c (struct static_link_htab_entry): New.
4348 (static_link_htab_entry_hash): New.
4349 (static_link_htab_entry_eq): New.
4350 (objfile_register_static_link): New.
4351 (objfile_lookup_static_link): New.
4352 (free_objfile): Free the STATIC_LINKS hashed map if needed.
4353 * objfiles.h: Include hashtab.h.
4354 (struct objfile): Add a static_links field.
4355 (objfile_register_static_link): New.
4356 (objfile_lookup_static_link): New.
4357 * printcmd.c (print_variable_and_value): Update call to
4359 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
4360 * python/py-frame.c (frapy_read_var): Update call to
4361 read_var_value, passing it the block coming from symbol lookup.
4362 * python/py-framefilter.c (extract_sym): Add a sym_block
4363 parameter and set the pointed value to NULL (TODO).
4364 (enumerate_args): Update call to extract_sym.
4365 (enumerate_locals): Update calls to extract_sym and to
4367 * python/py-symbol.c (sympy_value): Update call to
4368 read_var_value (TODO).
4369 * stack.c (read_frame_local): Update call to read_var_value.
4370 (read_frame_arg): Likewise.
4371 (return_command): Likewise.
4372 * symtab.h (struct symbol_block_ops): Add a get_frame_base
4374 (struct symbol): Add a block field.
4375 (SYMBOL_BLOCK): New accessor.
4376 * valops.c (value_of_variable): Remove frame/block handling and
4377 pass the block argument to read_var_value, which does this job
4379 (value_struct_elt_for_reference): Update calls to
4381 (value_of_this): Pass the block found to read_var_value.
4382 * value.h (read_var_value): Add a var_block argument.
4383 (default_read_var_value): Likewise.
4385 2015-08-25 Yao Qi <yao.qi@linaro.org>
4387 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
4388 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
4389 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
4391 2015-08-25 Yao Qi <yao.qi@linaro.org>
4393 * Makefile.in (aarch64-liunx.o): New rule.
4394 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
4395 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
4396 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
4397 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
4399 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
4400 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
4401 * nat/aarch64-linux.c: New file.
4402 * nat/aarch64-linux.h: New file.
4404 2015-08-25 Yao Qi <yao.qi@linaro.org>
4406 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
4407 lwp_arch_private_info and ptid_of_lwp.
4409 2015-08-25 Yao Qi <yao.qi@linaro.org>
4411 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
4412 Move it to nat/aarch64-linux-hw-point.c.
4413 (debug_reg_change_callback): Likewise.
4414 (aarch64_notify_debug_reg_change): :Likewise.
4415 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
4416 (aarch64_dr_update_callback_param): New.
4417 (debug_reg_change_callback): New function.
4418 (aarch64_notify_debug_reg_change): Likewise.
4419 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
4420 Remove the declaration.
4422 2015-08-25 Yao Qi <yao.qi@linaro.org>
4424 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
4425 Call current_lwp_ptid.
4427 2015-08-25 Yao Qi <yao.qi@linaro.org>
4429 * aarch64-linux-nat.c (debug_reg_change_callback): Use
4432 2015-08-25 Yao Qi <yao.qi@linaro.org>
4434 * aarch64-linux-nat.c (debug_reg_change_callback): Call
4435 ptid_get_pid rather than ptid_get_lwp.
4437 2015-08-24 Pedro Alves <palves@redhat.com>
4439 * NEWS (New commands): Mention set/show remote
4440 multiprocess-extensions-packet.
4441 * remote.c (remote_query_supported): Only tell the server to use
4442 the multiprocess extensions if the user hasn't force-disabled them
4443 with "set remote multiprocess-extensions-packet off".
4445 2015-08-24 Pedro Alves <palves@redhat.com>
4447 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
4448 1029a8112290f6eee9d7878a391c49db42c999bd.
4449 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
4451 * gnulib/import/Makefile.am: Update.
4452 * gnulib/import/Makefile.in: Update.
4453 * gnulib/import/alloca.in.h: Update.
4454 * gnulib/import/basename-lgpl.c: Update.
4455 * gnulib/import/canonicalize-lgpl.c: Update.
4456 * gnulib/import/config.charset: Update.
4457 * gnulib/import/dirent.in.h: Update.
4458 * gnulib/import/dirfd.c: Update.
4459 * gnulib/import/dirname-lgpl.c: Update.
4460 * gnulib/import/dirname.h: Update.
4461 * gnulib/import/dosname.h: Update.
4462 * gnulib/import/errno.in.h: Update.
4463 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
4464 * gnulib/import/extra/snippet/c++defs.h: Update.
4465 * gnulib/import/extra/snippet/warn-on-use.h: Update.
4466 * gnulib/import/extra/update-copyright: Update.
4467 * gnulib/import/float+.h: Update.
4468 * gnulib/import/float.c: Update.
4469 * gnulib/import/float.in.h: Update.
4470 * gnulib/import/fnmatch.c: Update.
4471 * gnulib/import/fnmatch.in.h: Update.
4472 * gnulib/import/fnmatch_loop.c: Update.
4473 * gnulib/import/fpucw.h: Update.
4474 * gnulib/import/frexp.c: Update.
4475 * gnulib/import/frexpl.c: Update.
4476 * gnulib/import/gettimeofday.c: Update.
4477 * gnulib/import/inttypes.in.h: Update.
4478 * gnulib/import/isnan.c: Update.
4479 * gnulib/import/isnand-nolibm.h: Update.
4480 * gnulib/import/isnand.c: Update.
4481 * gnulib/import/isnanl-nolibm.h: Update.
4482 * gnulib/import/isnanl.c: Update.
4483 * gnulib/import/itold.c: Update.
4484 * gnulib/import/localcharset.c: Update.
4485 * gnulib/import/localcharset.h: Update.
4486 * gnulib/import/lstat.c: Update.
4487 * gnulib/import/m4/00gnulib.m4: Update.
4488 * gnulib/import/m4/absolute-header.m4: Update.
4489 * gnulib/import/m4/alloca.m4: Update.
4490 * gnulib/import/m4/canonicalize.m4: Update.
4491 * gnulib/import/m4/codeset.m4: Update.
4492 * gnulib/import/m4/configmake.m4: Update.
4493 * gnulib/import/m4/dirent_h.m4: Update.
4494 * gnulib/import/m4/dirfd.m4: Update.
4495 * gnulib/import/m4/dirname.m4: Update.
4496 * gnulib/import/m4/double-slash-root.m4: Update.
4497 * gnulib/import/m4/eealloc.m4: Update.
4498 * gnulib/import/m4/errno_h.m4: Update.
4499 * gnulib/import/m4/exponentd.m4: Update.
4500 * gnulib/import/m4/exponentl.m4: Update.
4501 * gnulib/import/m4/extensions.m4: Update.
4502 * gnulib/import/m4/extern-inline.m4: Update.
4503 * gnulib/import/m4/fcntl-o.m4: Update.
4504 * gnulib/import/m4/float_h.m4: Update.
4505 * gnulib/import/m4/fnmatch.m4: Update.
4506 * gnulib/import/m4/fpieee.m4: Update.
4507 * gnulib/import/m4/frexp.m4: Update.
4508 * gnulib/import/m4/frexpl.m4: Update.
4509 * gnulib/import/m4/gettimeofday.m4: Update.
4510 * gnulib/import/m4/glibc21.m4: Update.
4511 * gnulib/import/m4/gnulib-cache.m4: Update.
4512 * gnulib/import/m4/gnulib-common.m4: Update.
4513 * gnulib/import/m4/gnulib-comp.m4: Update.
4514 * gnulib/import/m4/gnulib-tool.m4: Update.
4515 * gnulib/import/m4/include_next.m4: Update.
4516 * gnulib/import/m4/inttypes-pri.m4: Update.
4517 * gnulib/import/m4/inttypes.m4: Update.
4518 * gnulib/import/m4/isnand.m4: Update.
4519 * gnulib/import/m4/isnanl.m4: Update.
4520 * gnulib/import/m4/largefile.m4: Update.
4521 * gnulib/import/m4/localcharset.m4: Update.
4522 * gnulib/import/m4/locale-fr.m4: Update.
4523 * gnulib/import/m4/locale-ja.m4: Update.
4524 * gnulib/import/m4/locale-zh.m4: Update.
4525 * gnulib/import/m4/longlong.m4: Update.
4526 * gnulib/import/m4/lstat.m4: Update.
4527 * gnulib/import/m4/malloc.m4: Update.
4528 * gnulib/import/m4/malloca.m4: Update.
4529 * gnulib/import/m4/math_h.m4: Update.
4530 * gnulib/import/m4/mbrtowc.m4: Update.
4531 * gnulib/import/m4/mbsinit.m4: Update.
4532 * gnulib/import/m4/mbsrtowcs.m4: Update.
4533 * gnulib/import/m4/mbstate_t.m4: Update.
4534 * gnulib/import/m4/memchr.m4: Update.
4535 * gnulib/import/m4/memmem.m4: Update.
4536 * gnulib/import/m4/mmap-anon.m4: Update.
4537 * gnulib/import/m4/multiarch.m4: Update.
4538 * gnulib/import/m4/nocrash.m4: Update.
4539 * gnulib/import/m4/off_t.m4: Update.
4540 * gnulib/import/m4/pathmax.m4: Update.
4541 * gnulib/import/m4/readlink.m4: Update.
4542 * gnulib/import/m4/rename.m4: Update.
4543 * gnulib/import/m4/rmdir.m4: Update.
4544 * gnulib/import/m4/ssize_t.m4: Update.
4545 * gnulib/import/m4/stat.m4: Update.
4546 * gnulib/import/m4/stdbool.m4: Update.
4547 * gnulib/import/m4/stddef_h.m4: Update.
4548 * gnulib/import/m4/stdint.m4: Update.
4549 * gnulib/import/m4/stdio_h.m4: Update.
4550 * gnulib/import/m4/stdlib_h.m4: Update.
4551 * gnulib/import/m4/string_h.m4: Update.
4552 * gnulib/import/m4/strstr.m4: Update.
4553 * gnulib/import/m4/strtok_r.m4: Update.
4554 * gnulib/import/m4/sys_socket_h.m4: Update.
4555 * gnulib/import/m4/sys_stat_h.m4: Update.
4556 * gnulib/import/m4/sys_time_h.m4: Update.
4557 * gnulib/import/m4/sys_types_h.m4: Update.
4558 * gnulib/import/m4/time_h.m4: Update.
4559 * gnulib/import/m4/unistd_h.m4: Update.
4560 * gnulib/import/m4/warn-on-use.m4: Update.
4561 * gnulib/import/m4/wchar_h.m4: Update.
4562 * gnulib/import/m4/wchar_t.m4: Update.
4563 * gnulib/import/m4/wctype_h.m4: Update.
4564 * gnulib/import/m4/wint_t.m4: Update.
4565 * gnulib/import/malloc.c: Update.
4566 * gnulib/import/malloca.c: Update.
4567 * gnulib/import/malloca.h: Update.
4568 * gnulib/import/math.in.h: Update.
4569 * gnulib/import/mbrtowc.c: Update.
4570 * gnulib/import/mbsinit.c: Update.
4571 * gnulib/import/mbsrtowcs-impl.h: Update.
4572 * gnulib/import/mbsrtowcs-state.c: Update.
4573 * gnulib/import/mbsrtowcs.c: Update.
4574 * gnulib/import/memchr.c: Update.
4575 * gnulib/import/memmem.c: Update.
4576 * gnulib/import/pathmax.h: Update.
4577 * gnulib/import/readlink.c: Update.
4578 * gnulib/import/ref-add.sin: Update.
4579 * gnulib/import/ref-del.sin: Update.
4580 * gnulib/import/rename.c: Update.
4581 * gnulib/import/rmdir.c: Update.
4582 * gnulib/import/same-inode.h: Update.
4583 * gnulib/import/stat.c: Update.
4584 * gnulib/import/stdbool.in.h: Update.
4585 * gnulib/import/stddef.in.h: Update.
4586 * gnulib/import/stdint.in.h: Update.
4587 * gnulib/import/stdio.c: Update.
4588 * gnulib/import/stdio.in.h: Update.
4589 * gnulib/import/stdlib.in.h: Update.
4590 * gnulib/import/str-two-way.h: Update.
4591 * gnulib/import/streq.h: Update.
4592 * gnulib/import/string.in.h: Update.
4593 * gnulib/import/stripslash.c: Update.
4594 * gnulib/import/strnlen1.c: Update.
4595 * gnulib/import/strnlen1.h: Update.
4596 * gnulib/import/strstr.c: Update.
4597 * gnulib/import/strtok_r.c: Update.
4598 * gnulib/import/sys_stat.in.h: Update.
4599 * gnulib/import/sys_time.in.h: Update.
4600 * gnulib/import/sys_types.in.h: Update.
4601 * gnulib/import/time.in.h: Update.
4602 * gnulib/import/unistd.in.h: Update.
4603 * gnulib/import/verify.h: Update.
4604 * gnulib/import/wchar.in.h: Update.
4605 * gnulib/import/wctype.in.h: Update.
4606 * gnulib/import/gettimeofday.c: New file.
4607 * gnulib/import/m4/absolute-header.m4: New file.
4608 * gnulib/import/m4/gettimeofday.m4: New file.
4609 * gnulib/import/m4/sys_socket_h.m4: New file.
4610 * gnulib/import/m4/sys_time_h.m4: New file.
4611 * gnulib/import/stdio.c: Delete file.
4612 * gnulib/import/sys_time.in.h: New file.
4614 2015-08-24 Pedro Alves <palves@redhat.com>
4616 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
4617 * common/gdb_sys_time.h: New file.
4618 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
4619 * gdb_select.h: Likewise.
4620 * gdb_usleep.c: Likewise.
4621 * maint.c: Likewise.
4622 * mi/mi-main.c: Likewise.
4623 * mi/mi-parse.h: Likewise.
4624 * remote-fileio.c: Likewise.
4625 * remote-m32r-sdi.c: Likewise.
4626 * remote.c: Likewise.
4627 * ser-base.c: Likewise.
4628 * ser-pipe.c: Likewise.
4629 * ser-tcp.c: Likewise.
4630 * ser-unix.c: Likewise.
4631 * symfile.c: Likewise.
4632 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
4633 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
4634 * utils.c: Likewise.
4636 2015-08-24 Pedro Alves <palves@redhat.com>
4638 * NEWS: Mention removed support for the various ROM monitors.
4639 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
4640 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
4641 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
4643 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
4645 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
4646 dsrec.o from gdb_target_obs.
4647 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
4648 from gdb_target_obs.
4649 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
4651 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
4652 dink32-rom.o from gdb_target_obs.
4653 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
4654 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
4655 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
4656 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
4658 2015-08-21 Pedro Alves <palves@redhat.com>
4660 * frame.c (null_frame_id): Explicitly zero-initialize.
4662 2015-08-21 Tom Tromey <tromey@redhat.com>
4664 * dwarf2read.c (struct dwarf2_section_info): Rename field
4665 'asection' to 'section'.
4666 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
4667 (dwarf2_locate_sections, dwarf2_locate_sections)
4668 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
4669 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
4670 (dwarf2_locate_v2_dwp_sections): Adjust.
4672 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4674 * top.h (gdb_in_secondary_prompt_p): Declare.
4675 * top.c (gdb_secondary_prompt_depth): Define.
4676 (gdb_in_secondary_prompt_p): Define.
4677 (gdb_readline_wrapper_cleanup): Decrement
4678 gdb_secondary_prompt_depth.
4679 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
4680 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
4681 are in a secondary prompt.
4683 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4685 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
4688 2015-08-21 Gary Benson <gbenson@redhat.com>
4690 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
4692 2015-08-21 Gary Benson <gbenson@redhat.com>
4694 * target.h (struct target_ops) <to_fileio_open>: New argument
4695 warn_if_slow. Update comment. All implementations updated.
4696 (target_fileio_open_warn_if_slow): New declaration.
4697 * target.c (target_fileio_open): Renamed as...
4698 (target_fileio_open_1): ...this. New argument warn_if_slow.
4699 Pass warn_if_slow to implementation. Update debug printing.
4700 (target_fileio_open): New function.
4701 (target_fileio_open_warn_if_slow): Likewise.
4702 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
4703 target_fileio_open_warn_if_slow.
4705 2015-08-21 Gary Benson <gbenson@redhat.com>
4707 * nat/linux-namespaces.c (linux_mntns_access_fs):
4708 Do not overwrite old_chain.
4710 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
4712 * arch/xtensa.h: New file.
4713 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
4714 (ps_get_thread_area): New function.
4715 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
4716 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
4717 * xtensa-tdep.c (osabi.h): New #include.
4718 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
4719 xtensa-specific hooks.
4720 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
4721 member and move the structure to arch/xtensa.h.
4723 2015-08-21 Pedro Alves <palves@redhat.com>
4725 * remote.c (struct readahead_cache): New.
4726 (struct remote_state) <readahead_cache>: New field.
4727 (remote_open_1): Invalidate the cache.
4728 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
4730 (remote_hostio_pwrite): Invalidate the readahead cache.
4731 (remote_hostio_pread): Rename to ...
4732 (remote_hostio_pread_vFile): ... this.
4733 (remote_hostio_pread_from_cache): New function.
4734 (remote_hostio_pread): Reimplement.
4735 (remote_hostio_close): Invalidate the readahead cache.
4737 2015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
4740 * procfs.c: Include "filestuff.h".
4742 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4744 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
4746 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
4747 cur_line or curch, instead call wmove().
4748 (init_win_info) [CMD_WIN]: Likewise.
4749 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
4750 instead call getcury().
4751 (tui_redisplay_readline): Don't set cur_line or curch.
4752 (tui_mld_erase_entire_line): Don't read cur_line, instead call
4754 (tui_cont_sig): Remove call to wmove.
4755 (tui_getc): Don't read cur_line or curch, instead call getcury()
4756 or getyx(). Don't set curch.
4757 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
4758 set cur_line or curch. Always move cursor to (0,0).
4760 2015-08-20 Pedro Alves <palves@redhat.com>
4762 * infrun.c (print_target_wait_results): Make extern.
4763 * infrun.h (print_target_wait_results): Declare.
4764 * remote.c (set_stop_requested_callback): Delete.
4765 (process_initial_stop_replies): New function.
4766 (remote_start_remote): Use it.
4767 (stop_reply_queue_length): New function.
4769 2015-08-20 Pedro Alves <palves@redhat.com>
4771 * dwarf2read.c (process_full_comp_unit): To tell whether
4772 start_subfile managed to deduce a language, test for
4773 language_unknown instead of language_c.
4775 2015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
4777 * ada-lex.l: Reset the start condition to INITIAL in the rule that
4780 2015-08-19 Kevin Buettner <kevinb@redhat.com>
4782 * dwarf2read.c (dwarf2_string_attr): New function.
4783 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
4784 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
4785 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
4786 (anonymous_struct_prefix, prepare_one_comp_unit): Use
4787 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
4789 2015-08-18 Doug Evans <dje@google.com>
4790 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4793 * cli/cli-logging.c (pop_output_files): Don't restore redirection
4795 * mi/mi-out.c: #include "vec.h".
4796 (ui_filep): New type.
4797 (DEV_VEC_P (ui_filep)): New type.
4798 (struct ui_out_data) <buffer, original_buffer>: Delete.
4799 (struct ui_out_data) <streams>: New member.
4800 (mi_ui_out_impl): Add data_destroy field.
4801 (mi_field_string, mi_field_fmt): Update.
4802 (mi_flush, mi_redirect, field_separator): Update.
4803 (mi_open, mi_close): Update.
4804 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
4805 (mi_out_data_ctor, mi_out_data_dtor): New functions.
4806 (mi_out_new): Call mi_out_data_ctor.
4808 2015-08-18 Sandra Loosemore <sandra@codesourcery.com>
4810 * remote.c (strprefix): New.
4811 (remote_parse_stop_reply): Use strprefix instead of strncmp
4812 to ensure exact match of keyword.
4814 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4816 * gdb_bfd.c (debug_bfd_cache): New variable.
4817 (show_bfd_cache_debug): New function.
4818 (gdb_bfd_open): Add debug logging.
4819 (gdb_bfd_ref): Likewise.
4820 (gdb_bfd_unref): Likewise.
4821 (_initialize_gdb_bfd): Add new set/show command.
4822 * NEWS: Mention new command.
4824 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4826 * gdb_bfd.c (bfd_sharing): New variable.
4827 (show_bfd_sharing): New function.
4828 (gdb_bfd_open): Check bfd_sharing variable.
4829 (_initialize_gdb_bfd): Add new set/show command.
4830 * NEWS: Mention new command.
4832 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4834 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
4836 (struct gdb_bfd_cache_search): Likewise.
4837 (eq_bfd): Compare the size, inode, and device id fields.
4838 (gdb_bfd_open): Initialise the size, inode, and device id fields.
4839 (gdb_bfd_ref): Likewise.
4840 (gdb_bfd_unref): Likewise.
4842 2015-08-18 Pedro Alves <palves@redhat.com>
4844 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
4845 target implements to_always_non_stop_p, call it.
4846 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
4847 (x86_linux_create_target): Install it as to_always_non_stop_p
4850 2015-08-17 Doug Evans <dje@google.com>
4852 * ui-out.c (default_ui_out_impl): Add comment.
4854 2015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
4856 * d-exp.y (type_aggregate_p): New function.
4857 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
4858 (classify_inner_name): Likewise.
4859 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
4861 2015-08-15 Doug Evans <xdje42@gmail.com>
4863 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
4865 (add_psymbol_to_list): Ditto.
4867 2015-08-15 Doug Evans <xdje42@gmail.com>
4869 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
4870 updated. Call end_psymtab_common.
4871 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
4873 (build_type_psymtabs_reader): Ditto.
4874 * psympriv.h (sort_pst_symbols): Delete.
4875 (end_psymtab_common): Declare.
4876 * psymtab.c (sort_pst_symbols): Make static.
4877 (end_psymtab_common): New function.
4878 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
4880 2015-08-15 Doug Evans <xdje42@gmail.com>
4882 * defs.h (LANGUAGE_BITS): Define.
4883 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
4884 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
4885 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
4886 (minimal_symbol_type): Add nr_minsym_types.
4887 (MINSYM_TYPE_BITS): Define.
4888 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
4889 (domain_enum_tag): Add NR_DOMAINS.
4890 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
4891 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
4893 2015-08-15 Doug Evans <xdje42@gmail.com>
4895 * objfiles.h: Whitespace cleanup.
4896 * psympriv.h: Whitespace cleanup.
4897 * psymtab.c: Whitespace/coding convention cleanup.
4899 2015-08-15 Patrick Palka <patrick@parcs.ath.cx>
4901 * inferior.c (detach_inferior_command): Don't call
4902 any_thread_of_process when pid is 0.
4903 (kill_inferior_command): Likewise.
4905 2015-08-14 Doug Evans <xdje42@gmail.com>
4908 * NEWS: Document new /s modifier for the disassemble command.
4909 * cli/cli-cmds.c (disassemble_command): Add support for /s.
4910 (_initialize_cli_cmds): Update online docs of disassemble command.
4911 * disasm.c: #include "source.h".
4912 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
4914 (dis_line_entry): New struct.
4915 (hash_dis_line_entry, eq_dis_line_entry): New functions.
4916 (allocate_dis_line_table): New functions.
4917 (maybe_add_dis_line_entry, line_has_code_p): New functions.
4918 (dump_insns): New arg end_pc. All callers updated.
4919 (do_mixed_source_and_assembly_deprecated): Renamed from
4920 do_mixed_source_and_assembly. All callers updated.
4921 (do_mixed_source_and_assembly): New function.
4922 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
4923 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
4924 DISASSEMBLY_SOURCE. All uses updated.
4925 (DISASSEMBLY_SOURCE): New macro.
4926 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
4928 2015-08-14 Keith Seitz <keiths@redhat.com>
4930 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
4931 `typename' to `type_name' to avoid C++ reserved word.
4933 2015-08-14 Keith Seitz <keiths@redhat.com>
4935 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
4936 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
4939 2015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
4941 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
4942 xstrprintf instead of malloc and sprintf.
4943 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
4944 (lex_one_token): Likewise.
4946 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4948 * solib-svr4.c (read_program_header): Add base_addr argument to
4949 report the runtime address of the segment.
4950 (find_program_interpreter): Update read_program_header call to pass
4951 a NULL pointer for the new argument.
4952 (scan_dyntag): Add ptr_addr argument to report the runtime address
4954 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
4955 read_program_header to get the base address of the dynamic segment.
4956 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
4957 read_program_header.
4958 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
4960 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4962 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
4964 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4966 * d-exp.y (%union): Add voidval.
4967 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
4968 name in the lexing stage.
4969 (PostfixExpression): Move symbol completion handling in grammar here
4970 from PrimaryExpression.
4971 (PrimaryExpression): Move routines to handle resolving identifier
4972 tokens in the grammar here from push_expression_name.
4973 (IdentifierExp): Remove the handling of alternating '.' and identifier
4975 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
4976 (BasicType): Remove C-style typename rules.
4977 (d_type_from_name, d_module_from_name, push_variable)
4978 (push_fieldnames, push_type_name, push_module_name)
4979 (push_expression_name): Remove.
4980 (lex_one_token): Rename from yylex. Replace pstate with par_state.
4981 (token_and_value): New type.
4982 (token_fifo, popping, name_obstack): New globals.
4983 (classify_name): New function.
4984 (classify_inner_name): Likewise.
4986 (d_parse): Initialize token_fifo, popping and name_obstack.
4988 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4990 * Makefile.in (SFILES): Add d-namespace.c.
4991 (COMMON_OBS): Add d-namespace.o.
4992 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
4993 la_lookup_symbol_nonlocal callback function pointer.
4994 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
4995 (d_lookup_nested_symbol): New declaration.
4996 * d-namespace.c: New file.
4998 2015-08-13 Pedro Alves <palves@redhat.com>
5000 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
5001 cleanup after the decref cleanup, not before.
5003 2015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
5005 * ada-lang.c: Include namespace.h
5006 (aux_add_nonlocal_symbols): Fix a function name in comment.
5007 (ada_add_block_renamings): New.
5008 (add_nonlocal_symbols): Add global renamings handling.
5009 (ada_lookup_symbol_list_worker): Move the symbol lookup part
5011 (ada_add_all_symbols): ... this new function.
5012 (ada_add_block_symbols): Try to match the input name against the
5013 "using directives list", perform a recursive symbol lookup on
5014 the matched declarations.
5015 * block.h (struct block): Move the_namespace to top-level as
5016 namespace_info. Remove the language_specific field.
5017 (BLOCK_NAMESPACE): Update access to the namespace_info field.
5018 * buildsym.h (using_directives): Rename into...
5019 (local_using_directives): ... this.
5020 (global_using_directives): New.
5021 (struct context_stack): Rename the using_directives field into
5022 local_using_directives.
5023 * buildsym.c (finish_block_internal): Deal with the proper
5024 using directives repository (local or global).
5025 (prepare_for_building): Reset local_using_directives. Assert
5026 that there is no pending global using directive.
5027 (reset_symtab_globals): Reset global_using_directives and
5028 local_using_directives.
5029 (end_symtab_get_static_block): Don't ignore symtabs that have
5030 only using directives.
5031 (push_context): Update references to local_using_directives.
5032 (buildsym_init): Do not reset using_directives.
5033 * cp-support.c: Include namespace.h.
5034 * cp-support.h (struct using_direct): Move to namespace.h.
5035 (cp_add_using_directives): Move to namespace.h.
5036 * cp-namespace.c: Include namespace.h
5037 (cp_add_using_directive): Move to namespace.c, rename it to
5038 add_using_directive, add a "using_directives" argument and use
5039 it as the pending using directives repository. All callers
5041 * dwarf2read.c (using_directives): New.
5042 (read_import_statement): Call using_directives.
5043 (read_func_scope): Update references to local_using_directives.
5044 (read_lexical_block_scope): Likewise.
5045 (read_namespace): Update the heading comment, call
5047 * namespace.h: New file.
5048 * namespace.c: New file.
5049 * Makefile.in (SFILES): Add namespace.c.
5050 (COMMON_OBS): Add namespace.o
5052 2015-08-12 Joel Brobecker <brobecker@adacore.com>
5054 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
5057 2015-08-12 Keith Seitz <keiths@redhat.com>
5059 * break-catch-throw.c (re_set_exception_catchpoint) Rename
5060 reserved C++ keyword "explicit" to "explicit_loc".
5061 * breakpoint.c (create_overlay_event_breakpoint)
5062 (create_longjmp_master_breakpoint)
5063 (create_std_terminate_master_breakpoint)
5064 (create_exception_master_breakpoint, update_static_tracepoint):
5065 Rename reserved C++ keyword "explicit" to "explicit_loc".
5066 * completer.c (collect_explicit_location_matches)
5067 (explicit_location_completer): Rename reserved C++ keyword
5068 "explicit" to "explicit_loc".
5069 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
5070 (canonicalize_linespec, create_sals_line_offset)
5071 (convert_linespec_to_sals, convert_explicit_location_to_sals)
5072 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
5073 "explicit" to "explicit_loc".
5074 * location.c (struct event_location) <explicit>: Rename to
5076 (initialize_explicit_location, new_explicit_location)
5077 (explicit_location_to_string_internal, explicit_location_to_linespec):
5078 Rename reserved C++ keyword "explicit" to "explicit_loc".
5079 * location.h (explicit_location_to_string)
5080 (explicit_location_to_linespec, initialize_explicit_location)
5081 (new_explicit_location): Rename reserved C++ keyword "explicit"
5083 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
5084 keyword "explicit" to "explicit_loc".
5086 2015-08-12 Keith Seitz <keiths@redhat.com>
5088 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
5089 and only call decode_line_1 when it is non-NULL.
5091 2015-08-12 Luis Machado <lgustavo@codesourcery.com>
5093 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
5094 location address is not meaningful.
5095 (breakpoint_address_is_meaningful): Update comment.
5097 2015-08-11 Keith Seitz <keiths@redhat.com>
5099 * NEWS: Mention explicit locations.
5100 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
5101 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
5102 (_initialize_breakpoint): Update documentation for
5103 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
5105 2015-08-11 Keith Seitz <keiths@redhat.com>
5107 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
5108 explicit locations, options "--source", "--function",
5109 "--label", and "--line".
5111 2015-08-11 Keith Seitz <keiths@redhat.com>
5113 * completer.c: Include location.h.
5114 (enum match_type): New enum.
5115 (location_completer): Rename to ...
5116 (linespec_completer): ... this.
5117 (collect_explicit_location_matches, backup_text_ptr)
5118 (explicit_location_completer): New functions.
5119 (location_completer): "New" function; handle linespec
5120 and explicit location completions.
5121 (complete_line_internal): Remove all location completer-specific
5123 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
5124 (find_toplevel_char): Export.
5125 (linespec_parse_line_offset): Export.
5126 Issue error if STRING is not numerical.
5127 (gdb_get_linespec_parser_quote_characters): New function.
5128 * linespec.h (linespec_parse_line_offset): Declare.
5129 (get_gdb_linespec_parser_quote_characters): Declare.
5130 (is_ada_operator): Declare.
5131 (find_toplevel_char): Declare.
5132 (linespec_lexer_lex_keyword): Declare.
5133 * location.c (explicit_to_event_location): New function.
5134 (explicit_location_lex_one): New function.
5135 (string_to_explicit_location): New function.
5136 (string_to_event_location): Handle explicit locations.
5137 * location.h (explicit_to_event_location): Declare.
5138 (string_to_explicit_location): Declare.
5140 2015-08-11 Keith Seitz <keiths@redhat.com>
5142 * break-catch-throw.c (re_set_exception_catchpoint): Convert
5143 linespec into explicit location.
5144 * breakpoint.c (create_overlay_breakpoint)
5145 (create_longjmp_master_breakpoint)
5146 (create_std_terminate_master_breakpoint)
5147 (create_exception_master_breakpoint): Convert linespec into explicit
5149 (update_static_tracepoint): Convert linespec into explicit location.
5150 * linespec.c (enum offset_relative_sign, struct line_offset): Move
5152 (struct linespec) <expression, expr_pc, source_filename>
5153 <function_name, label_name, line_offset>: Replace with ...
5154 <explicit>: ... this.
5155 <is_linespec>: New member.
5156 (PARSER_EXPLICIT): New accessor macro.
5157 (undefined_label_error): New function.
5158 (source_file_not_found_error): New function.
5159 (linespec_parse_basic): The parser result is now an explicit location.
5160 Use PARSER_EXPLICIT to access it.
5161 Use undefined_label_error.
5162 (canonicalize_linespec): Convert canonical linespec into explicit
5164 Move string representation of location to explicit_location_to_linespec
5165 and use it and explicit_location_to_string to save string
5166 representations of the canonical location.
5167 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
5168 explicit location. Update all references.
5169 (convert_explicit_location_to_sals): New function.
5170 (parse_linespec): Use PARSER_EXPLICIT to access the parser
5171 result's explicit location.
5172 (linespec_state_constructor): Initialize is_linespec.
5173 Use PARSER_EXPLICIT.
5174 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
5176 (event_location_to_sals): For linespec locations, set is_linespec.
5177 Handle explicit locations.
5178 (decode_objc): 'ls' contains an explicit location now. Update all
5180 (symtabs_from_filename): Use source_file_not_found_error.
5181 * location.c (struct event_location.u) <explicit>: New member.
5182 (initialize_explicit_location): New function.
5183 (initialize_event_location): Initialize explicit locations.
5184 (new_explicit_location, get_explicit_location)
5185 (get_explicit_location_const): New functions.
5186 (explicit_to_string_internal): New function; most of contents moved
5187 from canonicalize_linespec.
5188 (explicit_location_to_string): New function.
5189 (explicit_location_to_linespec): New function.
5190 (copy_event_location, delete_event_location)
5191 (event_location_to_string_const, event_location_empty_p): Handle
5193 * location.h (enum offset_relative_sign, struct line_offset): Move
5194 here from linespec.h.
5195 (enum event_location_type): Add EXPLICIT_LOCATION.
5196 (struct explicit_location): New structure.
5197 (explicit_location_to_string): Declare.
5198 (explicit_location_to_linespec): Declare.
5199 (new_explicit_location, get_explicit_locationp
5200 (get_explicit_location_const, initialize_explicit_location): Declare.
5202 2015-08-11 Keith Seitz <keiths@redhat.com>
5204 * break-catch-throw.c (re_set_exception_catchpoint): Convert
5205 linespec for stap probe to probe location.
5206 * breakpoint.c (create_longjmp_master_breakpoint)
5207 (create_exception_master_breakpoint): Likewise.
5208 (break_command_1): Remove local variable `arg_cp'.
5209 Check location type to set appropriate breakpoint ops methods.
5210 (trace_command): Likewise.
5211 * linespec.c (event_location_to_sals): Assert on probe locations.
5212 * location.c (EL_PROBE): Add macro definition.
5213 (new_probe_location, get_probe_location): New functions.
5214 (copy_event_location, delete_event_location, event_location_to_string)
5215 (string_to_event_location, event_location_empty_p): Handle probe
5217 * location.h (enum event_location_type): Add PROBE_LOCATION.
5218 (new_probe_location, get_probe_location): Declare.
5219 * probe.c (parse_probes): Assert that LOCATION is a probe location.
5220 Convert linespec into probe location.
5222 2015-08-11 Keith Seitz <keiths@redhat.com>
5224 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
5225 Convert linespec to address location.
5226 * linespec.c (canonicalize_linespec): Do not handle address
5228 (convert_address_location_to_sals): New function; contents moved
5230 (convert_linespc_to_sals): ... here.
5231 (parse_linespec): Remove address locations from linespec grammar.
5232 Remove handling of address locations.
5233 (linespec_lex_to_end): Remove handling of address linespecs.
5234 (event_location_to_sals): Handle ADDRESS_LOCATION.
5235 (linespec_expression_to_pc): Export.
5236 * linespec.h (linespec_expression_to_pc): Add declaration.
5237 * location.c (struct event_location.u) <address>: New member.
5238 (new_address_location, get_address_location): New functions.
5239 (copy_event_location, delete_event_location, event_location_to_string)
5240 (string_to_event_location, event_location_empty_p): Handle address
5242 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
5243 (new_address_location, get_address_location): Declare.
5244 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
5245 to address location.
5246 * spu-tdep.c (spu_catch_start): Likewise.
5248 2015-08-11 Keith Seitz <keiths@redhat.com>
5250 * ax-gdb.c: Include location.h.
5251 (agent_command_1) Use linespec location instead of address
5253 * break-catch-throw.c: Include location.h.
5254 (re_set_exception_catchpoint): Use linespec locations instead
5256 * breakpoint.c: Include location.h.
5257 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
5258 (create_std_terminate_master_breakpoint)
5259 (create_exception_master_breakpoint, update_breakpoints_after_exec):
5260 Use linespec location instead of address string.
5261 (print_breakpoint_location): Use locations and
5262 event_location_to_string.
5263 Print extra_string for pending locations for non-MI streams.
5264 (print_one_breakpoint_location): Use locations and
5265 event_location_to_string.
5266 (init_raw_breakpoint_without_location): Initialize b->location.
5267 (create_thread_event_breakpoint): Use linespec location instead of
5269 (init_breakpoint_sal): Likewise.
5270 Only save extra_string if it is non-NULL and not the empty string.
5271 Use event_location_to_string instead of `addr_string'.
5272 Constify `p' and `endp'.
5273 Use skip_spaces_const/skip_space_const instead of non-const versions.
5274 Copy the location into the breakpoint.
5275 If LOCATION is NULL, save the breakpoint address as a linespec location
5276 instead of an address string.
5277 (create_breakpoint_sal): Change `addr_string' parameter to a struct
5278 event_location. All uses updated.
5279 (create_breakpoints_sal): Likewise for local variable `addr_string'.
5280 (parse_breakpoint_sals): Use locations instead of address strings.
5281 Remove check for empty linespec with conditional.
5283 (decode_static_tracepoint_spec): Make argument const and update
5285 (create_breakpoint): Change `arg' to a struct event_location and
5287 Remove `copy_arg' and `addr_start'.
5288 If EXTRA_STRING is empty, set it to NULL.
5289 Don't populate `canonical' for pending breakpoints.
5290 Pass `extra_string' to find_condition_and_thread.
5291 Clear `extra_string' if `rest' was NULL.
5292 Do not error with "garbage after location" if setting a dprintf
5294 Copy the location into the breakpoint instead of an address string.
5295 (break_command_1): Use string_to_event_location and pass this to
5296 create_breakpoint instead of an address string.
5297 Check against `arg_cp' for a probe linespec.
5298 (dprintf_command): Use string_to_event_location and pass this to
5299 create_breakpoint instead of an address string.
5300 Throw an exception if no format string was specified.
5301 (print_recreate_ranged_breakpoint): Use event_location_to_string
5302 instead of address strings.
5303 (break_range_command, until_break_command)
5304 (init_ada_exception_breakpoint): Use locations instead
5306 (say_where): Print out extra_string for pending locations.
5307 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
5309 (base_breakpoint_create_sals_from_location): Use struct event_location
5310 instead of address string.
5311 Remove `addr_start' and `copy_arg' parameters.
5312 (base_breakpoint_decode_location): Use struct event_location instead of
5314 (bkpt_re_set): Use locations instead of address strings.
5315 Use event_location_empty_p to check for unset location.
5316 (bkpt_print_recreate): Use event_location_to_string instead of
5318 Print out extra_string for pending locations.
5319 (bkpt_create_sals_from_location, bkpt_decode_location)
5320 (bkpt_probe_create_sals_from_location): Use struct event_location
5321 instead of address string.
5322 (bkpt_probe_decode_location): Use struct event_location instead of
5324 (tracepoint_print_recreate): Use event_location_to_string to
5325 recreate the tracepoint.
5326 (tracepoint_create_sals_from_location, tracepoint_decode_location)
5327 (tracepoint_probe_create_sals_from_location)
5328 (tracepoint_probe_decode_location): Use struct event_location
5329 instead of address string.
5330 (dprintf_print_recreate): Use event_location_to_string to recreate
5332 (dprintf_re_set): Remove check for valid/missing format string.
5333 (strace_marker_create_sals_from_location)
5334 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
5335 (update_static_tracepoint): Use struct event_location instead of
5337 (location_to_sals): Likewise.
5338 Pass `extra_string' to find_condition_and_thread.
5339 For newly resolved pending breakpoint locations, clear the location's
5340 string representation.
5341 Assert that the breakpoint's condition string is NULL when
5342 condition_not_parsed.
5343 (breakpoint_re_set_default, create_sals_from_location_default)
5344 (decode_location_default, trace_command, ftrace_command)
5345 (strace_command, create_tracepoint_from_upload): Use locations
5346 instead of address strings.
5347 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
5348 Use struct event_location instead of address string.
5350 <decode_location>: Likewise.
5351 (struct breakpoint) <addr_string>: Change to struct event_location
5352 and rename `location'.
5353 <addr_string_range_end>: Change to struct event_location and rename
5354 `location_range_end'.
5355 (create_breakpoint): Use struct event_location instead of address
5357 * cli/cli-cmds.c: Include location.h.
5358 (edit_command, list_command): Use locations instead of address strings.
5359 * elfread.c: Include location.h.
5360 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
5361 * guile/scm-breakpoint.c: Include location.h.
5362 (bpscm_print_breakpoint_smob): Use event_location_to_string.
5363 (gdbscm_register_breakpoint): Use locations instead of address
5365 * linespec.c: Include location.h.
5366 (struct ls_parser) <stream>: Change to const char *.
5367 (PARSER_STREAM): Update.
5368 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
5369 keywords must be followed by whitespace.
5370 (canonicalize_linespec): Save a linespec location into `canonical'.
5371 Save a canonical linespec into `canonical'.
5372 (parse_linespec): Change `argptr' to const char * and rename `arg'.
5374 Update function description.
5375 (linespec_parser_new): Initialize `parser'.
5376 Update initialization of parsing stream.
5377 (event_location_to_sals): New function.
5378 (decode_line_full): Change `argptr' to a struct event_location and
5379 rename it `location'.
5380 Use locations instead of address strings.
5381 Call event_location_to_sals instead of parse_linespec.
5382 (decode_line_1): Likewise.
5383 (decode_line_with_current_source, decode_line_with_last_displayed)
5384 Use locations instead of address strings.
5385 (decode_objc): Likewise.
5386 Change `argptr' to const char * and rename `arg'.
5387 (destroy_linespec_result): Delete the linespec result's location
5388 instead of freeing the address string.
5389 * linespec.h (struct linespec_result) <addr_string>: Change to
5390 struct event_location and rename to ...
5391 <location>: ... this.
5392 (decode_line_1, decode_line_full): Change `argptr' to struct
5393 event_location. All callers updated.
5394 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
5395 (mi_cmd_break_insert_1): Use locations instead of address strings.
5396 Throw an error if there was "garbage" at the end of the specified
5398 * probe.c: Include location.h.
5399 (parse_probes): Change `argptr' to struct event_location.
5400 Use event locations instead of address strings.
5401 * probe.h (parse_probes): Change `argptr' to struct event_location.
5402 * python/py-breakpoint.c: Include location.h.
5403 (bppy_get_location): Constify local variable `str'.
5404 Use event_location_to_string.
5405 (bppy_init): Use locations instead of address strings.
5406 * python/py-finishbreakpoint.c: Include location.h.
5407 (bpfinishpy_init): Remove local variable `addr_str'.
5408 Use locations instead of address strings.
5409 * python/python.c: Include location.h.
5410 (gdbpy_decode_line): Use locations instead of address strings.
5411 * remote.c: Include location.h.
5412 (remote_download_tracepoint): Use locations instead of address
5414 * spu-tdep.c: Include location.h.
5415 (spu_catch_start): Remove local variable `buf'.
5416 Use locations instead of address strings.
5417 * tracepoint.c: Include location.h.
5418 (scope_info): Use locations instead of address strings.
5419 (encode_source_string): Constify parameter `src'.
5420 * tracepoint.h (encode_source_string): Likewise.
5422 2015-08-11 Keith Seitz <keiths@redhat.com>
5424 * Makefile.in (SFILES): Add location.c.
5425 (HFILES_NO_SRCDIR): Add location.h.
5426 (COMMON_OBS): Add location.o.
5427 * linespec.c (linespec_lex_to_end): New function.
5428 * linespec.h (linespec_lex_to_end): Declare.
5429 * location.c: New file.
5430 * location.h: New file.
5432 2015-08-11 Keith Seitz <keiths@redhat.com>
5434 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
5435 Renamed to create_sals_from_location.
5436 <decode_linespec>: Renamed to decode_location.
5438 * breakpoint.c (create_sals_from_address_default): Renamed to ...
5439 (create_sals_from_location_default): ... this.
5440 (addr_string_to_sals): Renamed to ...
5441 (location_to_sals): ... this.
5442 (decode_linespec_default): Renamed to ...
5443 (decode_location_default): ... this.
5444 (base_breakpoint_create_sals_from_address): Renamed to ...
5445 (base_breakpoint_create_sals_from_location): ... this.
5446 (bkpt_create_sals_from_address): Renamed to ...
5447 (bkpt_create_sals_from_location): ... this.
5448 (bkpt_decode_linespec): Renamed to ...
5449 (bkpt_decode_location): ... this.
5450 (bkpt_probe_create_sals_from_address): Renamed to ...
5451 (bkpt_probe_create_sals_from_location): ... this.
5452 (tracepoint_create_sals_from_address): Renamed to ...
5453 (tracepoint_create_sals_from_location): ... this.
5454 (tracepoint_decode_linespec): Renamed to ...
5455 (tracepoint_decode_location): ... this.
5456 (tracepoint_probe_create_sals_from_address): Renamed to ...
5457 (tracepoint_probe_create_sals_from_location): ... this.
5458 (tracepoint_probe_decode_linespec): Renamed to ...
5459 (tracepoint_probe_decode_location): ... this.
5460 (strace_marker_create_sals_from_address): Renamed to ...
5461 (strace_marker_create_sals_from_location): ... this.
5462 (decode_linespec_default): Renamed to ...
5463 (decode_location_default): ... this.
5465 2015-08-10 Doug Evans <dje@google.com>
5466 Keith Seitz <keiths@redhat.com>
5469 * symtab.c (make_file_symbol_completion_list_1): Renamed from
5470 make_file_symbol_completion_list and made static.
5471 (make_file_symbol_completion_list): New function.
5473 2015-08-10 Joel Brobecker <brobecker@adacore.com>
5475 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
5476 trailing new-line at end of warning message.
5477 (proceed): Add i18n marker to error messages.
5479 2015-08-07 Pedro Alves <palves@redhat.com>
5481 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
5483 2015-08-07 Pedro Alves <palves@redhat.com>
5485 * s390-linux-tdep.c (is_non_branch_ril)
5486 (s390_displaced_step_copy_insn): New functions.
5487 (s390_displaced_step_fixup): Update comment.
5488 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
5489 gdbarch_displaced_step_copy_insn hook.
5491 2015-08-07 Pedro Alves <palves@redhat.com>
5493 * infrun.c (displaced_step_prepare_throw): Return -1 if
5494 gdbarch_displaced_step_copy_insn returns NULL. Update intro
5496 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
5497 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
5499 (ppc_displaced_step_copy_insn): New function.
5500 (ppc_displaced_step_fixup): Update comment.
5501 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
5502 gdbarch_displaced_step_copy_insn hook.
5503 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
5505 * gdbarch.h: Regenerate.
5507 2015-08-07 Pedro Alves <palves@redhat.com>
5509 * inferior.h (struct inferior) <displaced_stepping_failed>: New
5511 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
5512 Return false if dispaced stepping failed before.
5513 (resume): Pass the current inferior to
5514 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
5515 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
5516 displaced_stepping_failed flag, and fall back to an in-line
5519 2015-08-07 Pedro Alves <palves@redhat.com>
5521 * darwin-nat.c (darwin_stop): Rename to ...
5522 (darwin_interrupt): ... this.
5523 (_initialize_darwin_inferior): Adjust.
5524 * gnu-nat.c (gnu_stop): Delete.
5525 (gnu_target): Don't install gnu_stop.
5526 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
5527 (inf_ptrace_interrupt): ... this.
5528 (inf_ptrace_target): Adjust.
5529 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
5531 * linux-nat (linux_nat_stop): Rename to ...
5532 (linux_nat_interrupt): ... this.
5533 (linux_nat_stop): Reimplement.
5534 (linux_nat_add_target): Install linux_nat_interrupt.
5535 * nto-procfs.c (nto_interrupt_twice): Rename to ...
5536 (nto_handle_sigint_twice): ... this.
5537 (nto_interrupt): Rename to ...
5538 (nto_handle_sigint): ... this. Call target_interrupt instead of
5540 (procfs_wait): Adjust.
5541 (procfs_stop): Rename to ...
5542 (procfs_interrupt): ... this.
5543 (init_procfs_targets): Adjust.
5544 * procfs.c (procfs_stop): Rename to ...
5545 (procfs_interrupt): ... this.
5546 (procfs_target): Adjust.
5547 * remote-m32r-sdi.c (m32r_stop): Rename to ...
5548 (m32r_interrupt): ... this.
5549 (init_m32r_ops): Adjust.
5550 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
5551 (gdbsim_interrupt_inferior): ... this.
5552 (gdbsim_stop): Rename to ...
5553 (gdbsim_interrupt): ... this.
5554 (gdbsim_cntrl_c): Adjust.
5555 (init_gdbsim_ops): Adjust.
5556 * remote.c (sync_remote_interrupt): Adjust comments.
5557 (remote_stop_as): Rename to ...
5558 (remote_interrupt_as): ... this.
5559 (remote_stop): Adjust comment.
5560 (remote_interrupt): New function.
5561 (init_remote_ops): Install remote_interrupt.
5562 * target.c (target_interrupt): New function.
5563 * target.h (struct target_ops) <to_interrupt>: New field.
5564 (target_interrupt): New declaration.
5565 * windows-nat.c (windows_stop): Rename to ...
5566 (windows_interrupt): ... this.
5567 * target-delegates.c: Regenerate.
5569 2015-08-07 Pedro Alves <palves@redhat.com>
5571 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
5572 threads" as alternative to "switching back to stepped thread".
5574 2015-08-07 Pedro Alves <palves@redhat.com>
5576 * NEWS: Mention "maint set/show target-non-stop".
5577 * breakpoint.c (update_global_location_list): Check
5578 target_is_non_stop_p instead of non_stop.
5579 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
5580 * infrun.c (show_can_use_displaced_stepping)
5581 (can_use_displaced_stepping_p, start_step_over_inferior):
5583 (internal_resume_ptid): New function.
5585 (proceed): Check target_is_non_stop_p instead of non_stop. If in
5586 all-stop mode but the target is always in non-stop mode, start all
5587 the other threads that are implicitly resumed too.
5588 (for_each_just_stopped_thread, fetch_inferior_event)
5589 (adjust_pc_after_break, stop_all_threads): Check
5590 target_is_non_stop_p instead of non_stop.
5591 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
5592 with the target always in non-stop mode.
5593 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
5594 instead of non_stop.
5595 (switch_back_to_stepped_thread): Check target_is_non_stop_p
5596 instead of non_stop.
5597 (keep_going_stepped_thread): Use internal_resume_ptid.
5598 (stop_waiting): If in all-stop mode, and the target is in non-stop
5599 mode, stop all threads.
5600 (keep_going_pass): Likewise, when starting a new in-line step-over
5602 * linux-nat.c (get_pending_status, select_event_lwp)
5603 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
5604 target_is_non_stop_p instead of non_stop.
5605 (linux_nat_always_non_stop_p): New function.
5606 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
5607 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
5608 * target-delegates.c: Regenerate.
5609 * target.c (target_is_non_stop_p): New function.
5610 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
5611 (maint_set_target_non_stop_command)
5612 (maint_show_target_non_stop_command): New functions.
5613 (_initilize_target): Install "maint set/show target-non-stop"
5615 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
5616 (target_non_stop_enabled): New declaration.
5617 (target_is_non_stop_p): New declaration.
5619 2015-08-07 Pedro Alves <pedro@codesourcery.com>
5621 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
5622 has a pending status, return true.
5623 * gdbthread.h: Include target/waitstatus.h.
5624 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
5625 stop_pc>: New fields.
5626 (struct thread_info) <resumed>: New field.
5627 (set_resumed): Declare.
5628 * infrun.c: Include "event-loop.h".
5629 (infrun_async_inferior_event_token, infrun_is_async): New globals.
5630 (infrun_async): New function.
5631 (clear_step_over_info): Add debug output.
5632 (displaced_step_in_progress_any_inferior): New function.
5633 (displaced_step_fixup): New returns int.
5634 (start_step_over): Handle in-line step-overs too. Assert the
5635 thread is marked resumed.
5636 (resume_cleanups): Clear the thread's resumed flag.
5637 (resume): Set the thread's resumed flag. Return early if the
5638 thread has a pending status. Allow stepping a breakpoint with no
5640 (proceed): Adjust to check 'resumed' instead of 'executing'.
5641 (clear_proceed_status_thread): If the thread has a pending status,
5642 and that status is a finished step, discard the pending status.
5643 (clear_proceed_status): Don't clear step_over_info here.
5644 (random_pending_event_thread, do_target_wait): New functions.
5645 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
5647 (wait_one): New function.
5648 (THREAD_STOPPED_BY): New macro.
5649 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5650 (thread_stopped_by_hw_breakpoint): New functions.
5651 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
5653 (handle_inferior_event): Also call set_resumed(false) on all
5654 threads implicitly stopped by the event.
5655 (restart_threads, resumed_thread_with_pending_status): New
5657 (finish_step_over): If we were doing an in-line step-over before,
5658 and no longer are after trying to start a new step-over, restart
5659 all threads. If we have multiple threads with pending events,
5660 save the current event and go through the event loop again.
5661 (handle_signal_stop): Return early if finish_step_over returns
5663 <random signal>: If we get a signal while stepping over a
5664 breakpoint in-line in non-stop mode, restart all threads. Clear
5665 step_over_info before delivering the signal.
5666 (keep_going_stepped_thread): Use internal_error instead of
5667 gdb_assert. Mark the thread as resumed.
5668 (keep_going_pass_signal): Assert the thread isn't already resumed.
5669 If some other thread is doing an in-line step-over, defer the
5670 resume. If we just started a new in-line step-over, stop all
5671 threads. Don't clear step_over_info.
5672 (infrun_async_inferior_event_handler): New function.
5673 (_initialize_infrun): Create async event handler with
5674 infrun_async_inferior_event_handler as callback.
5675 (infrun_async): New declaration.
5676 * target.c (target_async): New function.
5677 * target.h (target_async): Declare macro and readd as function
5679 * target/waitstatus.h (enum target_stop_reason)
5680 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5681 * thread.c (new_thread): Clear the new waitstatus field.
5682 (set_resumed): New function.
5684 2015-08-07 Pedro Alves <palves@redhat.com>
5686 * infrun.c (keep_going_stepped_thread): New function, factored out
5688 (switch_back_to_stepped_thread): ... here.
5690 2015-08-07 Pedro Alves <palves@redhat.com>
5692 * infrun.c (currently_stepping): Extend intro comment.
5693 * target.h (target_resume): Extend intro comment.
5695 2015-08-07 Pedro Alves <palves@redhat.com>
5697 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
5698 of inferior_ptid. If the stepped thread vanished, return 0
5699 instead of resuming here. Use reset_ecs. Print the prev_pc and
5700 the current stop_pc in log message. Clear trap_expected if the
5701 thread advanced. Don't pass currently_stepping to
5704 2015-08-07 Pedro Alves <palves@redhat.com>
5706 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
5707 * infrun.c (struct execution_control_state): Move higher up in the
5709 (reset_ecs): New function.
5710 (start_step_over): Now returns int. Rewrite to use
5711 keep_going_pass_signal instead of manually starting a displaced step.
5712 (resume): Don't call set_running here. If displaced stepping
5713 can't start now, clear trap_expected.
5714 (find_thread_needs_step_over): Delete function.
5715 (proceed): Set up finish_thread_state_cleanup. Call set_running.
5716 If the current thread needs a step over, push it in the step-over
5717 chain. Don't set insert breakpoints nor call resume directly
5718 here. Instead rewrite to use start_step_over and
5719 keep_going_pass_signal.
5720 (finish_step_over): New function.
5721 (handle_signal_stop): Call finish_step_over instead of
5723 (switch_back_to_stepped_thread): If the event thread needs another
5724 step-over do that first. Use start_step_over.
5725 (keep_going_pass_signal): New function, factored out from ...
5726 (keep_going): ... here.
5727 (_initialize_infrun): Comment moved here.
5728 * thread.c (set_running_thread): New function.
5729 (set_running, finish_thread_state): Use set_running_thread.
5731 2015-08-07 Pedro Alves <palves@redhat.com>
5733 * gdbthread.h (struct thread_info) <step_over_prev,
5734 step_over_next>: New fields.
5735 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
5736 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
5738 * infrun.c (struct displaced_step_request): Delete.
5739 (struct displaced_step_inferior_state) <step_request_queue>:
5741 (displaced_step_prepare): Assert that trap_expected is set. Use
5742 thread_step_over_chain_enqueue. Split starting a new displaced
5744 (start_step_over): ... this new function.
5745 (resume): Assert the thread isn't waiting for a step over already.
5746 (proceed): Assert the thread isn't waiting for a step over
5748 (infrun_thread_stop_requested): Adjust to remove threads from the
5749 embedded step-over chain.
5750 (handle_inferior_event) <fork/vfork>: Call start_step_over after
5751 displaced_step_fixup.
5752 (handle_signal_stop): Call start_step_over after
5753 displaced_step_fixup.
5754 * infrun.h (step_over_queue_head): New declaration.
5755 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
5756 (thread_step_over_chain_next, thread_is_in_step_over_chain)
5757 (thread_step_over_chain_enqueue)
5758 (thread_step_over_chain_remove): New functions.
5759 (delete_thread_1): Remove thread from the step-over chain.
5761 2015-08-07 Pedro Alves <palves@redhat.com>
5763 * infrun.c (thread_still_needs_step_over): Rename to ...
5764 (thread_still_needs_step_over_bp): ... this.
5765 (enum step_over_what): New.
5766 (thread_still_needs_step_over): Reimplement.
5768 2015-08-07 Pedro Alves <palves@redhat.com>
5770 * remote.c (remote_wait_as): If not waiting for a stop reply,
5771 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
5772 requested, don't block waiting forever.
5774 2015-08-07 Pedro Alves <pedro@codesourcery.com>
5776 * infrun.c (adjust_pc_after_break): Now takes thread_info and
5777 waitstatus pointers instead of an ecs. Adjust.
5778 (handle_inferior_event): Adjust caller.
5780 2015-08-07 Pedro Alves <palves@redhat.com>
5782 * infrun.c (handle_inferior_event): If we get
5783 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
5784 mode, mark all threads of the exiting process as not-executing.
5785 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
5786 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
5787 exiting process, if inferior_ptid still points at a process.
5788 * thread.c (struct current_thread_cleanup) <next>: New field.
5789 (current_thread_cleanup_chain): New global.
5790 (restore_current_thread_ptid_changed): New function.
5791 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
5792 current_thread_cleanup_chain list.
5793 (make_cleanup_restore_current_thread): Add the cleanup data to the
5794 current_thread_cleanup_chain list.
5795 (_initialize_thread): Install restore_current_thread_ptid_changed
5796 as thread_ptid_changed observer.
5798 2015-08-07 Joel Brobecker <brobecker@adacore.com>
5800 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
5801 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
5802 smaller than expected.
5804 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5806 * stack.c (get_frame_language): Moved ...
5807 * frame.c (get_frame_language): ... to here.
5808 * language.h (get_frame_language): Declaration moved to frame.h.
5809 * frame.h: Add language.h include, for language enum.
5810 (get_frame_language): Declaration moved from language.h.
5811 * language.c: Add frame.h include.
5812 * top.c: Add frame.h include.
5813 * symtab.h (struct obj_section): Declare.
5814 (struct cmd_list_element): Declare.
5816 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5818 * language.c (show_language_command): Find selected frame before
5819 asking for the language of that frame.
5820 (set_language_command): Likewise.
5821 * language.h (get_frame_language): Add frame parameter.
5822 * stack.c (get_frame_language): Add frame parameter, assert
5823 parameter is not NULL, update comment and reindent.
5824 * top.c (check_frame_language_change): Pass the selected frame
5825 into get_frame_language.
5827 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5829 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
5830 (pt_btrace_insn_flags): New.
5831 (ftrace_add_pt): Call pt_btrace_insn_flags.
5832 * btrace.h (btrace_insn_flag): New.
5833 (btrace_insn) <flags>: New.
5834 * record-btrace.c (btrace_insn_history): Print insn prefix.
5835 * NEWS: Announce it.
5837 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5839 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
5840 * configure: Regenerate.
5842 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
5844 * Makefile.in (LIBICONV): Define.
5845 (CLIBS): Add LIBICONV.
5846 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
5847 * configure: Regenerate.
5849 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5850 Pedro Alves <palves@redhat.com>
5852 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
5853 (arm_set_abi): Likewise.
5854 * ax-general.c (ax_print): Likewise.
5855 * c-exp.y (exp : string_exp): Likewise.
5856 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
5857 (do_compile_dwarf_expr_to_c): Likewise.
5858 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
5860 * dwarf2expr.c (execute_stack_op): Likewise.
5861 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
5862 (disassemble_dwarf_expression): Likewise.
5863 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
5864 (read_array_order): Likewise.
5865 (abbrev_table_read_table): Likewise.
5866 (read_attribute_value): Likewise.
5867 (skip_unknown_opcode): Likewise.
5868 (dwarf_decode_macro_bytes): Likewise.
5869 (dwarf_decode_macros): Likewise.
5870 * eval.c (value_f90_subarray): Likewise.
5871 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5872 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5873 * infrun.c (handle_command): Likewise.
5874 * memory-map.c (memory_map_start_memory): Likewise.
5875 * osabi.c (set_osabi): Likewise.
5876 * parse.c (operator_length_standard): Likewise.
5877 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
5878 single return point.
5879 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5880 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5881 (gdbpy_lookup_global_symbol): Likewise.
5882 * record-full.c (record_full_restore): Likewise.
5883 * regcache.c (regcache_register_status): Likewise.
5884 (regcache_raw_read): Likewise.
5885 (regcache_cooked_read): Likewise.
5886 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5887 * symtab.c (initialize_ordinary_address_classes): Likewise.
5888 * target-debug.h (target_debug_print_signals): Likewise.
5889 * utils.c (do_restore_current_language): Likewise.
5891 2015-08-06 Clem Dickey <clemd@acm.org>
5894 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
5896 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5898 * complaints.c (enum complaint_series): Add newlines and remove
5899 out of date comment.
5900 (struct complaints) <series>: Change type to enum
5901 complaint_series and remove out of date comment.
5902 (symfile_complaint_hook): Use equivalent enum value
5903 ISOLATED_MESSAGE instead of 0.
5905 2015-08-06 Pedro Alves <palves@redhat.com>
5907 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
5910 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
5912 * common/agent.c (symbol_list) <required>: Remove.
5914 2015-08-06 Pedro Alves <palves@redhat.com>
5916 * target/waitstatus.h (enum target_stop_reason)
5917 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5919 2015-08-05 Pedro Alves <palves@redhat.com>
5920 Joel Brobecker <brobecker@adacore.com>
5922 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
5923 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
5924 case where BS->STOP is not set.
5926 2015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
5928 * nat/gdb_thread_db.h: Add copyright header.
5929 Protect against multiple inclusion.
5931 2015-08-05 Yao Qi <yao.qi@linaro.org>
5933 * aarch64-linux-nat.c (get_thread_id): Remove.
5934 (debug_reg_change_callback): Call ptid_get_lwp instead of
5936 (fetch_gregs_from_thread): Likewise.
5937 (store_gregs_to_thread): Likewise.
5938 (fetch_fpregs_from_thread): Likewise.
5939 (store_fpregs_to_thread): Likewise.
5940 (aarch64_linux_get_debug_reg_capacity): Likewise.
5941 * arm-linux-nat.c (get_thread_id): Remove.
5942 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5943 * xtensa-linux-nat.c (get_thread_id): Remove.
5944 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5945 * arm-linux-nat.c (get_thread_id): Remove.
5946 (GET_THREAD_ID): Remove.
5947 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
5948 (store_fpregs, fetch_regs, store_regs): Likewise.
5949 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
5950 (fetch_vfp_regs, store_vfp_regs): Likewise.
5951 (arm_linux_read_description): Likewise.
5952 (arm_linux_get_hwbp_cap): Likewise.
5953 * xtensa-linux-nat.c (get_thread_id): Remove.
5954 (GET_THREAD_ID): Remove.
5955 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
5958 2015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
5960 * python/py-linetable.c: Fix case of Linetable to LineTable
5961 in docstrings and code comments.
5962 * python/py-symtab.c: Same.
5964 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5966 * infcmd.c (signal_command): Call do_cleanups for args_chain.
5968 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5971 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
5974 2015-08-04 Pedro Alves <palves@redhat.com>
5976 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
5977 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
5978 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
5979 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
5980 (td_thr_validate_ftype, td_thr_get_info_ftype)
5981 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
5982 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
5984 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
5985 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
5986 local macros and use them instead of verbose_dlsym and dlsym
5989 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
5991 * nios2-tdep.h: Include opcode/nios2.h here.
5992 (NIOS2_CDX_OPCODE_SIZE): New.
5993 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
5994 * nios2-tdep.c: Don't include opcode/nios2.h here.
5995 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
5997 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
5998 (nios2_match_addi, nios2_match_orhi): Likewise.
5999 (nios2_match_stw, nios2_match_ldw): Likewise.
6000 (nios2_match_rdctl): Likewise.
6001 (nios2_match_stwm, nios2_match_ldwm): New.
6002 (nios2_match_branch): Add cases for R2 encodings.
6003 (nios2_match_jmpi, nios2_match_calli): Likewise.
6004 (nios2_match_jmpr, nios2_match_callr): Likewise.
6005 (nios2_match_break, nios2_match_trap): Likewise.
6006 (nios2_in_epilogue_p): Add R2 support.
6007 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
6009 (nios2_breakpoint_from_pc): Handle R2 instructions.
6010 (nios2_get_next_pc): Likewise. Adjust call to
6011 tdep->syscall_next_pc.
6012 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
6013 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
6014 instruction field macros instead of literal hex values.
6015 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
6016 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
6017 Use size field from OP instead of assuming all instructions
6019 (nios2_linux_init_abi): Register appropriate unwinder for mach.
6021 2015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
6023 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
6024 variable warning with some compilers.
6026 2015-08-03 Yao Qi <yao.qi@linaro.org>
6028 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
6029 in comment. Replace "rw" with "type".
6030 (arm_linux_remove_watchpoint): Change type of "rw" to
6031 "enum target_hw_bp_type".
6033 2015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
6035 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
6037 * ft32-tdep.c (ft32_skip_prologue): Likewise.
6038 * moxie-tdep.c (moxie_skip_prologue): Likewise.
6039 * mt-tdep.c (mt_skip_prologue): Likewise.
6040 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
6042 2015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
6044 * ada-exp.y (write_object_renaming): Replace struct
6045 ada_symbol_info with struct block_symbol. Update field
6046 references accordingly.
6047 (block_lookup, select_possible_type_sym): Likewise.
6048 (find_primitive_type): Likewise. Also update call to
6049 ada_lookup_symbol to extract the symbol itself.
6050 (write_var_or_type, write_name_assoc): Likewise.
6051 * ada-lang.h (struct ada_symbol_info): Remove.
6052 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
6053 struct block_symbol.
6054 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
6055 (ada_lookup_symbol): Return struct block_symbol instead of a
6057 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
6058 with struct block_symbol.
6059 (resolve_subexp, ada_resolve_function, sort_choices,
6060 user_select_syms, is_nonfunction, add_defn_to_vec,
6061 num_defns_collected, defns_collected,
6062 symbols_are_identical_enums, remove_extra_symbols,
6063 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
6064 ada_lookup_symbol_list, ada_iterate_over_symbols,
6065 ada_lookup_encoded_symbol, get_var_value): Likewise.
6066 (ada_lookup_symbol): Return a block_symbol instead of a mere
6067 symbol. Replace struct ada_symbol_info with struct
6069 (ada_lookup_symbol_nonlocal): Likewise.
6070 (standard_lookup): Make block passing explicit through
6071 lookup_symbol_in_language.
6072 * ada-tasks.c (get_tcb_types_info): Update the calls to
6073 lookup_symbol_in_language to extract the mere symbol out of the
6075 (ada_tasks_inferior_data_sniffer): Likewise.
6076 * ax-gdb.c (gen_static_field): Likewise for the call to
6078 (gen_maybe_namespace_elt): Deal with struct block_symbol from
6080 (gen_expr): Likewise.
6081 * c-exp.y: Likewise. Remove uses of block_found.
6082 (lex_one_token, classify_inner_name, c_print_token): Likewise.
6083 (classify_name): Likewise. Rename the "sym" local variable to
6085 * c-valprint.c (print_unpacked_pointer): Likewise.
6086 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
6087 "sym" parameter from struct symbol * to struct block_symbol.
6088 Use it to remove uses of block_found. Deal with struct
6089 block_symbol from lookup functions.
6090 (gcc_convert_symbol): Likewise. Update the call to
6092 * compile/compile-object-load.c (compile_object_load): Deal with
6093 struct block_symbol from lookup functions.
6094 * cp-namespace.c (cp_lookup_nested_symbol_1,
6095 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
6096 cp_search_static_and_baseclasses,
6097 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
6098 cp_lookup_symbol_imports_or_template,
6099 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
6100 lookup_namespace_scope, cp_lookup_nonlocal,
6101 find_symbol_in_baseclass): Return struct block_symbol instead of
6102 mere symbols and deal with struct block_symbol from lookup
6104 * cp-support.c (inspect_type, replace_typedefs,
6105 cp_lookup_rtti_type): Deal with struct block_symbol from
6107 * cp-support.h (cp_lookup_symbol_nonlocal,
6108 cp_lookup_symbol_from_namespace,
6109 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
6110 Return struct block_symbol instead of mere symbols.
6111 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
6113 Deal with struct block_symbol from lookup functions. Remove
6114 uses of block_found.
6115 * eval.c (evaluate_subexp_standard): Update call to
6116 cp_lookup_symbol_namespace.
6117 * f-exp.y: Deal with struct block_symbol from lookup functions.
6118 Remove uses of block_found.
6120 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
6121 lookup_enum, lookup_template_type, check_typedef): Deal with
6122 struct block_symbol from lookup functions.
6123 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
6124 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
6125 (gdbscm_lookup_global_symbol): Likewise.
6126 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
6127 * go-exp.y: Likewise. Remove uses of block_found.
6128 (package_name_p, classify_packaged_name, classify_name):
6130 * infrun.c (insert_exception_resume_breakpoint): Likewise.
6131 * jv-exp.y (push_variable): Likewise.
6132 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
6133 * language.c (language_bool_type): Likewise.
6134 * language.h (struct language_defn): Update
6135 la_lookup_symbol_nonlocal to return a struct block_symbol rather
6137 * linespec.c (find_label_symbols): Deal with struct block_symbol
6138 from lookup functions.
6139 * m2-exp.y: Likewise. Remove uses of block_found.
6141 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
6142 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
6143 * p-exp.y: Likewise. Remove uses of block_found.
6145 * p-valprint.c (pascal_val_print): Likewise.
6146 * parse.c (write_dollar_variable): Likewise. Remove uses of
6148 * parser-defs.h (struct symtoken): Turn the SYM field into a
6149 struct block_symbol.
6150 * printcmd.c (address_info): Deal with struct block_symbol from
6152 * python/py-frame.c (frapy_read_var): Likewise.
6153 * python/py-symbol.c (gdbpy_lookup_symbol,
6154 gdbpy_lookup_global_symbol): Likewise.
6155 * skip.c (skip_function_command): Likewise.
6156 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
6157 block_symbol instead of a mere symbol.
6158 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
6159 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
6160 * solib.c (solib_global_lookup): Likewise.
6161 * solist.h (solib_global_lookup): Likewise.
6162 (struct target_so_ops): Update lookup_lib_global_symbol to
6163 return a struct block_symbol rather than a mere symbol.
6164 * source.c (select_source_symtab): Deal with struct block_symbol
6165 from lookup functions.
6166 * stack.c (print_frame_args, iterate_over_block_arg_vars):
6168 * symfile.c (set_initial_language): Likewise.
6169 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
6171 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
6172 (struct symbol_cache_slot): Turn the FOUND field into a struct
6174 (block_found): Remove.
6175 (eq_symbol_entry): Update to deal with struct block_symbol in
6177 (symbol_cache_lookup): Return a struct block_symbol rather than
6179 (symbol_cache_mark_found): Add a BLOCK parameter to fill
6180 appropriately the cache slots. Update callers.
6181 (symbol_cache_dump): Update cache slots handling to the type
6183 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
6184 lookup_symbol_aux, lookup_local_symbol,
6185 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
6186 lookup_symbol_in_objfile_symtabs,
6187 lookup_symbol_in_objfile_from_linkage_name,
6188 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
6189 lookup_symbol_in_static_block, lookup_static_symbol,
6190 lookup_global_symbol):
6191 Return a struct block_symbol rather than a mere symbol. Deal
6192 with struct block_symbol from other lookup functions. Remove
6193 uses of block_found.
6194 (lookup_symbol_in_block): Remove uses of block_found.
6195 (struct global_sym_lookup_data): Turn the RESULT field into a
6196 struct block_symbol.
6197 (lookup_symbol_global_iterator_cb): Update references to the
6199 (search_symbols): Deal with struct block_symbol from lookup
6201 * symtab.h (struct block_symbol): New structure.
6202 (block_found): Remove.
6203 (lookup_symbol_in_language, lookup_symbol,
6204 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
6205 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
6206 lookup_global_symbol_from_objfile): Return a struct block_symbol
6207 rather than just a mere symbol. Update comments to remove
6208 mentions of block_found.
6209 * valops.c (find_function_in_inferior,
6210 value_struct_elt_for_reference, value_maybe_namespace_elt,
6211 value_of_this): Deal with struct block_symbol from lookup
6213 * value.c (value_static_field, value_fn_field): Likewise.
6215 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
6217 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
6220 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
6221 Pedro Alves <palves@redhat.com>
6223 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
6224 type or value instead of integer.
6225 (aarch64_linux_insert_watchpoint): Likewise.
6226 (aarch64_linux_remove_watchpoint): Likewise.
6227 * ada-lang.c (ada_op_print_tab): Likewise.
6228 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
6229 (amd64_linux_syscall_record_common): Likewise.
6230 * arch-utils.c (target_byte_order_user): Likewise.
6231 (default_byte_order): Likewise.
6232 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
6233 (arm_linux_get_hwbp_type): Likewise.
6234 (arm_linux_hw_watchpoint_initialize): Likewise.
6235 (arm_linux_insert_watchpoint): Likewise.
6236 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
6237 (arm_linux_syscall_record): Likewise.
6238 * breakpoint.c (update_watchpoint): Likewise.
6239 (breakpoint_here_p): Likewise.
6240 (bpstat_print): Likewise.
6241 (enable_breakpoint_disp): Likewise.
6242 * c-lang.c (c_op_print_tab): Likewise.
6243 * cli/cli-decode.c (add_info_alias): Likewise.
6244 * d-lang.c (d_op_print_tab): Likewise.
6245 * eval.c (evaluate_subexp_standard): Likewise.
6246 * f-exp.y (dot_ops): Likewise.
6247 (f77_keywords): Likewise.
6248 * f-lang.c (f_op_print_tab): Likewise.
6249 * go-lang.c (go_op_print_tab): Likewise.
6250 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
6251 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
6252 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
6253 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
6254 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
6255 (struct scm_from_stringn_data): Likewise.
6256 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
6257 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
6258 (ia64_linux_remove_watchpoint): Likewise.
6259 (ia64_linux_can_use_hw_breakpoint): Likewise.
6260 * infrun.c (print_stop_event): Likewise.
6261 * jv-lang.c (java_op_print_tab): Likewise.
6262 * linux-nat.c (linux_proc_xfer_partial): Likewise.
6263 * linux-nat.h (struct lwp_info): Likewise.
6264 * linux-thread-db.c (enable_thread_event): Likewise.
6265 * m2-lang.c (m2_op_print_tab): Likewise.
6266 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
6267 (mi_cmd_stack_list_variables): Likewise.
6268 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
6269 * mi/mi-out.c (mi_table_begin): Likewise.
6270 (mi_table_header): Likewise.
6271 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
6272 (mips_linux_insert_watchpoint): Likewise.
6273 (mips_linux_remove_watchpoint): Likewise.
6274 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
6275 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
6276 (mips_linux_watch_type_to_irw): Likewise.
6277 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
6278 (procfs_insert_hw_watchpoint): Likewise.
6279 (procfs_remove_hw_watchpoint): Likewise.
6280 (procfs_hw_watchpoint): Likewise.
6281 (procfs_can_use_hw_breakpoint): Likewise.
6282 (procfs_remove_hw_watchpoint): Likewise.
6283 (procfs_insert_hw_watchpoint): Likewise.
6284 * p-lang.c (pascal_op_print_tab): Likewise.
6285 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
6286 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
6287 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
6288 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
6289 (procfs_insert_watchpoint): Likewise.
6290 (procfs_remove_watchpoint): Likewise.
6291 * psymtab.c (recursively_search_psymtabs): Likewise.
6292 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
6293 (m32r_insert_watchpoint): Likewise.
6294 * remote-mips.c (mips_can_use_watchpoint): Likewise.
6295 (mips_insert_watchpoint): Likewise.
6296 (mips_remove_watchpoint): Likewise.
6297 * remote.c (watchpoint_to_Z_packet): Likewise.
6298 (remote_insert_watchpoint): Likewise.
6299 (remote_remove_watchpoint): Likewise.
6300 (remote_check_watch_resources): Likewise.
6301 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
6302 (s390_remove_watchpoint): Likewise.
6303 (s390_can_use_hw_breakpoint): Likewise.
6304 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6305 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
6306 * target.h (struct target_ops): Likewise.
6307 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
6308 * ui-out.c (struct ui_out_hdr): Likewise.
6309 (append_header_to_list): Likewise.
6310 (get_next_header): Likewise.
6311 (verify_field): Likewise.
6312 (ui_out_begin): Likewise.
6313 (ui_out_field_int): Likewise.
6314 (ui_out_field_fmt_int): Likewise.
6315 (ui_out_field_skip): Likewise.
6316 (ui_out_field_string): Likewise.
6317 (ui_out_field_fmt): Likewise.
6318 * varobj.c (new_variable): Likewise.
6319 * x86-nat.c (x86_insert_watchpoint): Likewise.
6320 (x86_remove_watchpoint): Likewise.
6321 (x86_can_use_hw_breakpoint): Likewise.
6322 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
6323 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
6324 previously anonymous enumeration type..
6325 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
6327 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
6328 (target_debug_print_enum_bptype): New.
6329 * target-delegates.c: Regenerate.
6331 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
6333 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
6334 already says and disallow non-stack memory writes in the prologue.
6336 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
6338 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
6339 reflect how current GCC emits stack overflow checks. Match
6340 both trap and break instructions for backward compatbility.
6341 Disallow other trap and break instructions in the prologue.
6343 2015-07-30 Pedro Alves <palves@redhat.com>
6346 * linux-nat.c (wait_lwp): Report to the core when thread group
6349 2015-07-30 Pedro Alves <palves@redhat.com>
6350 Simon Marchi <simon.marchi@ericsson.com>
6353 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
6354 mark the new thread as resumed. Remove STOPPING parameter.
6355 (wait_lwp): Adjust call to linux_handle_extended_wait.
6356 (linux_nat_filter_event): Adjust call to
6357 linux_handle_extended_wait.
6358 (resume_stopped_resumed_lwps): Add debug output.
6360 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
6362 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
6364 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
6365 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
6366 gdbarch_fast_tracepoint_valid_at.
6367 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
6368 * gdbarch.h: Regenerate.
6369 * gdbarch.c: Regenerate.
6370 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
6371 argument. Do not set it.
6372 * remote.c (remote_download_tracepoint): Adjust call to
6373 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
6374 the instruction length.
6376 2015-07-30 Yao Qi <yao.qi@linaro.org>
6378 * arm-tdep.h (enum gdb_regnum): Move it to ...
6379 * arch/arm.h: ... here. New file.
6380 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
6382 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
6384 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
6385 Change its type to int *.
6386 (decode_br): Rename link argument to is_blr. Change its type to
6388 (decode_cb): Rename op argument to is_cbnz. Change its type to
6390 (decode_tb): Rename op argument to is_tbnz. Change its type to
6391 int *. Set is_tbnz to either 1 or 0.
6392 (aarch64_analyze_prologue): Change type of is_link to int. Add
6393 new variables is_cbnz and is_tbnz. Adjust call to
6394 aarch64_decode_cb and aarch64_decode_tb.
6396 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
6398 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
6400 (mips_linux_new_thread): Likewise.
6401 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
6403 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
6405 * top.c: Include "tui/tui.h".
6406 (undo_terminal_modifications_before_exit): New static function.
6407 (quit_force): Use it.
6409 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
6411 * target.c (terminal_state): Initialize to terminal_is_ours.
6413 2015-07-29 Yao Qi <yao.qi@linaro.org>
6416 * dcache.c (dcache_read_memory_partial): Call
6417 raw_memory_xfer_partial.
6418 * target.c (raw_memory_xfer_partial): Make it non-static.
6419 * target.h (raw_memory_xfer_partial): Declare.
6421 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6423 * c-valprint.c (c_val_print_array): Consider addressable memory
6425 (c_val_print_ptr): Likewise.
6426 (c_val_print_int): Likewise.
6427 * findvar.c (read_frame_register_value): Likewise.
6428 * valarith.c (find_size_for_pointer_math): Likewise.
6429 (value_ptrdiff): Likewise.
6430 (value_subscripted_rvalue): Likewise.
6431 * valops.c (read_value_memory): Likewise (and rename variables).
6432 (value_assign): Likewise.
6433 (value_repeat): Likewise.
6434 (value_array): Likewise.
6435 (value_slice): Likewise.
6436 * valprint.c (generic_val_print_ptr): Likewise.
6437 (generic_val_print_enum): Likewise.
6438 (generic_val_print_bool): Likewise.
6439 (generic_val_print_int): Likewise.
6440 (generic_val_print_char): Likewise.
6441 (generic_val_print_float): Likewise.
6442 (generic_val_print_decfloat): Likewise.
6443 (generic_val_print_complex): Likewise.
6444 (val_print_scalar_formatted): Likewise.
6445 (val_print_array_elements): Likewise.
6446 * value.c (set_value_parent): Likewise.
6447 (value_contents_copy_raw): Likewise.
6448 (set_internalvar_component): Likewise.
6449 (value_primitive_field): Likewise.
6450 (value_fetch_lazy): Likewise.
6451 * value.h (read_value_memory): Update comment.
6453 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6455 * value.c (get_value_arch): New function.
6456 * value.h (get_value_arch): New declaration.
6458 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6460 * value.c (struct value): Update comments.
6462 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6464 * gdbtypes.c (type_length_units): New function.
6465 * gdbtypes.h (type_length_units): New declaration.
6466 (struct type) <length>: Update comment.
6468 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6470 * valprint.c (generic_val_print): Factor out complex
6471 printing code to ...
6472 (generic_val_print_complex): ... this new function.
6474 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6476 * valprint.c (generic_val_print): Factor out decfloat
6477 printing code to ...
6478 (generic_val_print_decfloat): ... this new function.
6480 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6482 * valprint.c (generic_val_print): Factor out float
6483 printing code to ...
6484 (generic_val_print_float): ... this new function.
6486 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6488 * valprint.c (generic_val_print): Factor out char
6489 printing code to ...
6490 (generic_val_print_char): ... this new function.
6492 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6494 * valprint.c (generic_val_print): Factor out integer
6495 printing code to ...
6496 (generic_val_print_int): ... this new function.
6498 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6500 * valprint.c (generic_val_print): Factor out bool
6501 printing code to ...
6502 (generic_val_print_bool): ... this new function.
6504 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6506 * valprint.c (generic_val_print): Factor out function/method
6507 printing code to ...
6508 (generic_val_print_func): ... this new function.
6510 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6512 * valprint.c (generic_val_print): Factor out flags
6513 printing code to ...
6514 (generic_val_print_flags): ... this new function.
6516 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6518 * valprint.c (generic_val_print): Factor out enum
6519 printing code to ...
6520 (generic_val_print_enum): ... this new function.
6522 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6524 * valprint.c (generic_val_print): Factor out reference
6525 printing code to ...
6526 (generic_val_print_ref): ... this new function.
6528 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6530 * valprint.c (generic_val_print): Factor out memberptr
6531 printing code to ...
6532 (generic_val_print_memberptr): ... this new function.
6534 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6536 * valprint.c (generic_val_print): Factor out pointer
6537 printing code to ...
6538 (generic_val_print_ptr): ... this new function.
6540 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6542 * valprint.c (generic_val_print): Factor out array
6543 printing code to ...
6544 (generic_val_print_array): ... this new function.
6546 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6548 * valprint.c (generic_val_print): Factor out
6549 print_unpacked_pointer code to ...
6550 (print_unpacked_pointer): ... this new function.
6552 2015-07-27 Patrick Palka <patrick@parcs.ath.cx>
6554 * event-top.c (handle_sigterm): Don't inspect
6555 target_can_async_p. Always set the quit flag and always mark
6556 the async signal handler.
6558 2015-07-27 Yao Qi <yao.qi@linaro.org>
6560 * Makefile.in (REMOTE_EXAMPLES): Remove it.
6562 2015-07-25 Kevin Buettner <kevinb@redhat.com>
6564 * remote.c (read_ptid): Return null_ptid when no thread id
6566 (remote_current_thread): Add log warning for malformed
6568 (remote_start_remote): Add log warning when current thread
6571 2015-07-24 Pedro Alves <palves@redhat.com>
6573 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
6574 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
6575 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
6577 2015-07-24 Pedro Alves <palves@redhat.com>
6580 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
6581 is resumed, and extend the debug log.
6583 2015-07-24 Pedro Alves <palves@redhat.com>
6585 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
6587 2015-07-24 Pedro Alves <palves@redhat.com>
6589 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
6591 * alpha-linux-nat.c: Likewise.
6592 * amd64-linux-nat.c: Likewise.
6593 * arm-linux-nat.c: Likewise.
6594 * hppa-linux-nat.c: Likewise.
6595 * i386-linux-nat.c: Likewise.
6596 * ia64-linux-nat.c: Likewise.
6597 * linux-fork.c: Likewise.
6598 * linux-nat.c: Likewise.
6599 * m32r-linux-nat.c: Likewise.
6600 * m68klinux-nat.c: Likewise.
6601 * mips-linux-nat.c: Likewise.
6602 * nat/linux-btrace.c: Likewise.
6603 * nat/linux-ptrace.c: Likewise.
6604 * nat/linux-ptrace.h
6605 * nat/mips-linux-watch.c: Likewise.
6606 * nat/x86-linux-dregs.c: Likewise.
6607 * ppc-linux-nat.c: Likewise.
6608 * s390-linux-nat.c: Likewise.
6609 * spu-linux-nat.c: Likewise.
6610 * tilegx-linux-nat.c: Likewise.
6611 * x86-linux-nat.c: Likewise.
6612 * xtensa-linux-nat.c: Likewise.
6614 2015-07-24 Pedro Alves <palves@redhat.com>
6616 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
6617 __ptrace_request as first parameter type instead of int.
6618 (PTRACE_TYPE_ARG1): Define.
6619 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
6620 that casts first argument to PTRACE_TYPE_ARG1.
6621 * config.in: Regenerate.
6622 * configure: Regenerate.
6624 2015-07-24 Pedro Alves <palves@redhat.com>
6626 * gdb_ptrace.h: Move ...
6627 * nat/gdb_ptrace.h: ... here.
6628 * inf-ptrace.c: Adjust.
6630 2015-07-24 Pedro Alves <palves@redhat.com>
6632 * acinclude.m4: Include ptrace.m4.
6633 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
6634 * ptrace.m4: ... to this new file.
6636 2015-07-23 Doug Evans <dje@google.com>
6638 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
6639 (load_cu): Handle dummy CUs.
6640 (dw2_do_instantiate_symtab, process_queuef): Ditto.
6641 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
6643 2015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
6645 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
6646 documentation to say that it returns a list rather than
6648 (linetable_object_methods): Update the docstring of the
6649 "source_line" entry.
6651 2015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
6653 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
6654 type to the recursive call instead of the original (maybe
6655 TYPE_CODE_TYPEDEF) type.
6657 2015-07-23 Yao Qi <yao.qi@linaro.org>
6659 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
6660 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
6661 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
6663 2015-07-21 Yao Qi <yao.qi@linaro.org>
6665 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
6666 Move it to nat/aarch64-linux-hw-point.c.
6667 (aarch64_linux_child_post_startup_inferior): Update.
6668 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
6670 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
6673 2015-07-21 Markus Metzger <markus.t.metzger@intel.com>
6675 * common/btrace-common.c (btrace_data_append): Change case label.
6677 2015-07-20 Yao Qi <yao.qi@linaro.org>
6679 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
6681 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
6682 "unsigned long long".
6684 2015-07-18 Kevin Buettner <kevinb@redhat.com>
6686 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
6687 to be set for SEC_ALLOC sections too.
6689 2015-07-17 Yao Qi <yao.qi@linaro.org>
6691 * Makefile.in (HFILES_NO_SRCDIR): Add
6692 nat/aarch64-linux-hw-point.h.
6693 (aarch64-linux-hw-point.o): New rule.
6694 * nat/aarch64-linux-hw-point.h: New file.
6695 * nat/aarch64-linux-hw-point.c: New file.
6696 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
6697 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
6698 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
6699 (AARCH64_HWP_ALIGNMENT): Likewise.
6700 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
6701 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
6702 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
6703 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
6704 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
6705 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
6706 (struct aarch64_debug_reg_state): Likewise.
6707 (struct arch_lwp_info): Likewise.
6708 (aarch64_linux_set_debug_regs): Likewise.
6709 (aarch64_notify_debug_reg_change): Remove static.
6710 (aarch64_align_watchpoint): Likewise.
6711 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
6712 (aarch64_watchpoint_length): Likewise.
6713 (aarch64_point_encode_ctrl_reg): Likewise
6714 (aarch64_point_is_aligned): Likewise.
6715 (aarch64_dr_state_insert_one_point): Likewise.
6716 (aarch64_dr_state_remove_one_point): Likewise.
6717 (aarch64_handle_breakpoint): Likewise.
6718 (aarch64_handle_aligned_watchpoint): Likewise.
6719 (aarch64_handle_unaligned_watchpoint): Likewise.
6720 (aarch64_handle_watchpoint): Likewise.
6721 * config/aarch64/linux.mh (NAT_FILE): Add
6722 aarch64-linux-hw-point.o.
6724 2015-07-17 Yao Qi <yao.qi@linaro.org>
6726 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
6727 state and don't call aarch64_get_debug_reg_state. All callers
6729 (aarch64_linux_insert_hw_breakpoint): Call
6730 aarch64_get_debug_reg_state earlier.
6731 (aarch64_linux_remove_hw_breakpoint): Likewise.
6732 (aarch64_handle_aligned_watchpoint): Add argument state and
6733 don't call aarch64_get_debug_reg_state. All callers update.
6734 (aarch64_handle_unaligned_watchpoint): Likewise.
6735 (aarch64_handle_watchpoint): Add argument state.
6736 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
6738 (aarch64_linux_remove_watchpoint): Likewise.
6740 2015-07-17 Yao Qi <yao.qi@linaro.org>
6742 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
6744 (aarch64_handle_unaligned_watchpoint): Likewise.
6746 2015-07-17 Yao Qi <yao.qi@linaro.org>
6748 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
6749 argument type's type to 'enum target_hw_bp_type'.
6750 (aarch64_dr_state_remove_one_point): Likewise.
6751 (aarch64_handle_breakpoint): Likewise.
6752 (aarch64_linux_insert_hw_breakpoint): Likewise.
6753 (aarch64_linux_remove_hw_breakpoint): Likewise.
6754 (aarch64_handle_aligned_watchpoint): Likewise.
6756 2015-07-17 Yao Qi <yao.qi@linaro.org>
6758 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
6759 ptid_get_pid instead of get_thread_id.
6761 2015-07-17 Yao Qi <yao.qi@linaro.org>
6763 * remote.c (get_current_thread): Initialise ptid to null_ptid.
6764 (add_current_inferior_and_thread): Don't initialise ptid.
6766 2015-07-16 Pierre Langlois <pierre.langlois@arm.com>
6768 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
6769 unavailable if invalid.
6771 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6773 Revert the previous 6 commits:
6774 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6775 Move gdb_regex* to common/
6776 Prepare linux_find_memory_regions_full & co. for move
6777 Move linux_find_memory_regions_full & co.
6778 gdbserver build-id attribute generator
6779 Validate symbol file using build-id
6781 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6782 Jan Kratochvil <jan.kratochvil@redhat.com>
6784 Validate symbol file using build-id.
6785 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
6786 and 'show validate-build-id'. Add build-id attribute.
6787 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
6788 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
6789 * solib-frv.c (_initialize_frv_solib): Ditto.
6790 * solib-spu.c (set_spu_solib_ops): Ditto.
6791 * solib-svr4.c: Include rsp-low.h.
6792 (NOTE_GNU_BUILD_ID_NAME): New define.
6793 (svr4_validate): New function.
6794 (svr4_copy_library_list): Duplicate field build_id.
6795 (library_list_start_library): Parse 'build-id' attribute.
6796 (svr4_library_attributes): Add 'build-id' attribute.
6797 (_initialize_svr4_solib): Assign validate value.
6798 * solib-target.c (solib.h): Include.
6799 (_initialize_solib_target): Assign validate value.
6800 * solib.c (validate_build_id, show_validate_build_id): New.
6801 (solib_map_sections): Use ops->validate.
6802 (clear_so): Free build_id.
6803 (default_solib_validate): New function.
6804 (_initialize_solib): Add "validate-build-id".
6805 * solib.h (default_solib_validate): New declaration.
6806 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
6807 (target_so_ops): New field 'validate'.
6809 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6810 Jan Kratochvil <jan.kratochvil@redhat.com>
6812 gdbserver build-id attribute generator.
6813 * features/library-list-svr4.dtd (library-list-svr4): New
6814 'build-id' attribute.
6816 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6817 Jan Kratochvil <jan.kratochvil@redhat.com>
6819 Move linux_find_memory_regions_full & co.
6820 * linux-tdep.c (nat/linux-maps.h): Include.
6821 (gdb_regex.h): Remove the include.
6822 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
6823 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
6824 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
6825 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
6826 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
6827 and target/target.h.
6828 (struct smaps_vmflags, read_mapping, decode_vmflags)
6829 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
6830 (linux_find_memory_regions_full): Move from linux-tdep.c.
6831 * nat/linux-maps.h (read_mapping): New declaration.
6832 (linux_find_memory_region_ftype, enum filterflags): Moved from
6834 (linux_find_memory_regions_full): New declaration.
6835 * target.c (target/target-utils.h): Include.
6836 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
6837 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
6838 definitions to target/target-utils.c.
6839 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
6840 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
6842 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
6843 (read_alloc): New declaration.
6844 (read_stralloc_func_ftype): New typedef.
6845 (read_stralloc): New declaration.
6846 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
6848 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6849 Jan Kratochvil <jan.kratochvil@redhat.com>
6851 Prepare linux_find_memory_regions_full & co. for move.
6852 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
6853 (linux_find_memory_regions_full): Change signature and prepare
6854 for moving to linux-maps.
6855 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
6856 (linux_find_memory_regions_thunk): New.
6857 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
6858 (linux_find_memory_regions_gdb): New.
6859 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
6860 (linux_make_mappings_corefile_notes): Use
6861 linux_find_memory_regions_gdb.
6862 * target.c (read_alloc_pread_ftype): New typedef.
6863 (target_fileio_read_alloc_1_pread): New function.
6864 (read_alloc): Refactor from target_fileio_read_alloc_1.
6865 (read_stralloc_func_ftype): New typedef.
6866 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
6867 (read_stralloc): Refactored from target_fileio_read_stralloc.
6868 (target_fileio_read_stralloc): New implementation, use read_stralloc.
6870 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6872 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
6874 (COMMON_OBS): Add gdb_regex.o.
6876 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
6877 --without-included-regex and USE_INCLUDED_REGEX.
6878 * common/gdb_regex.c: New file from utils.c functions.
6879 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
6880 file wrapping define name.
6881 * configure: Rebuilt.
6882 * configure.ac (gdb_use_included_regex, --without-included-regex)
6883 (USE_INCLUDED_REGEX): Move them to common/common.m4.
6884 * gdb_regex.h: Move it to common/gdb_regex.h.
6885 * utils.c: Remove include gdb_regex.h.
6886 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
6887 (compile_rx_or_error): Move them to common/gdb_regex.c.
6889 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6890 Jan Kratochvil <jan.kratochvil@redhat.com>
6892 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6893 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
6894 common/target-utils.h.
6895 (COMMON_OBS): Add target-utils.o.
6896 (linux-maps.o, target-utils.o): New.
6897 * target/target-utils.c: New file.
6898 * target/target-utils.h: New file.
6899 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
6900 * config/i386/linux64.mh (NATDEPFILES): Ditto.
6901 * nat/linux-maps.c: New file.
6902 * nat/linux-maps.h: New file.
6904 2015-07-15 Markus Metzger <markus.t.metzger@intel.com>
6905 Pedro Alves <palves@redhat.com>
6907 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
6908 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
6909 (perf_event_read_bts): Change the type of SIZE and READ.
6910 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
6911 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
6912 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
6914 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
6915 buffer size to UINT_MAX.
6916 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
6918 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
6919 <last_head>: Change type.
6920 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
6921 * common/btrace-common.c (btrace_data_append): Change the type of
6923 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
6926 2015-07-14 Simon Marchi <simon.marchi@ericsson.com>
6928 * gdbtypes.h (CHECK_TYPEDEF): Remove.
6929 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
6931 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
6932 (ada_array_length): Likewise.
6933 (find_parallel_type_by_descriptive_type): Likewise.
6934 (ada_check_typedef): Likewise.
6935 * arm-tdep.c (arm_return_in_memory): Likewise.
6936 * ax-gdb.c (gen_trace_static_fields): Likewise.
6937 (gen_struct_ref_recursive): Likewise.
6938 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6939 (variable: block COLONCOLON name): Likewise.
6940 (qualified_name: TYPENAME COLONCOLON name): Likewise.
6941 * c-lang.c (classify_type): Likewise.
6942 * c-typeprint.c (c_print_type): Likewise.
6943 (c_print_typedef): Likewise.
6944 (c_type_print_base): Likewise.
6945 * c-valprint.c (c_val_print): Likewise.
6946 * compile/compile-c-types.c (convert_type): Likewise.
6947 * compile/compile-object-load.c (get_out_value_type): Likewise.
6948 * completer.c (add_struct_fields): Likewise.
6949 (expression_completer): Likewise.
6950 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
6951 (cp_lookup_nested_symbol_1): Likewise.
6952 (cp_lookup_nested_symbol): Likewise.
6953 * cp-valprint.c (cp_print_value_fields): Likewise.
6954 (cp_print_static_field): Likewise.
6955 * d-valprint.c (d_val_print): Likewise.
6956 * eval.c (evaluate_subexp_standard): Likewise.
6957 (evaluate_subexp_for_sizeof): Likewise.
6958 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6959 * f-typeprint.c (f_type_print_base): Likewise.
6960 * f-valprint.c (f_val_print): Likewise.
6961 * gdbtypes.c (get_discrete_bounds): Likewise.
6962 (create_array_type_with_stride): Likewise.
6963 (type_name_no_tag_or_error): Likewise.
6964 (lookup_struct_elt_type): Likewise.
6965 (get_unsigned_type_max): Likewise.
6966 (internal_type_vptr_fieldno): Likewise.
6967 (set_type_vptr_fieldno): Likewise.
6968 (internal_type_vptr_basetype): Likewise.
6969 (set_type_vptr_basetype): Likewise.
6970 (get_vptr_fieldno): Likewise.
6971 (is_integral_type): Likewise.
6972 (is_scalar_type): Likewise.
6973 (is_scalar_type_recursive): Likewise.
6974 (distance_to_ancestor): Likewise.
6975 (is_unique_ancestor_worker): Likewise.
6976 (check_types_equal): Likewise.
6977 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
6979 2015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
6981 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
6982 also test for language_d.
6983 (dwarf2_compute_name): Likewise.
6984 (read_func_scope): Likewise.
6985 (read_structure_type): Likewise.
6986 (new_symbol_full): Likewise.
6987 (determine_prefix): Likewise.
6988 (read_import_statement): Use dot as the separator for language_d.
6989 (typename_concat): Likewise, but don't prefix the D main function.
6991 2015-07-14 Peter Bergner <bergner@vnet.ibm.com>
6993 * nat/linux-namespaces.c (setns): Rename from this ...
6994 (do_setns): ... to this. Support calling setns if it exists.
6995 (mnsh_handle_setns): Call do_setns.
6997 2015-07-13 Yao Qi <yao.qi@linaro.org>
6999 * exec.c (exec_file_attach): Add period at the end of error
7002 2015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
7004 * tui/tui-win.c (window_name_completer): New function.
7005 (focus_completer): Call window_name_completer. All old content
7006 moved into window_name_completer.
7007 (winheight_completer): New function.
7008 (_initialize_tui_win): Rename variable. Add completer to
7009 winheight command. Update doc string on winheight.
7011 2015-07-12 Sandra Loosemore <sandra@codesourcery.com>
7013 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
7014 all nios2 mach variants.
7016 2015-07-10 Kevin Buettner <kevinb@redhat.com>
7018 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
7019 of target_read_memory.
7021 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
7023 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
7025 (parse_scrolling_args): Likewise.
7027 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
7029 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
7030 names in this function.
7032 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
7034 * tui/tui-data.h (SRC_NAME): Convert to lower case.
7035 (CMD_NAME): Likewise.
7036 (DATA_NAME): Likewise.
7037 (DISASSEM_NAME): Likewise.
7038 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
7039 (tui_set_win_height): Likewise.
7040 (parse_scrolling_args): Likewise.
7042 2015-07-10 Markus Metzger <markus.t.metzger@intel.com>
7044 * record-btrace.c (record_btrace_goto_begin)
7045 (record_btrace_goto_end, record_btrace_goto): Move call to
7046 print_stack_frame ...
7047 (record_btrace_set_replay): ... here. Set stop_pc.
7048 * record-full.c (record_full_goto_entry): Set stop_pc.
7050 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7052 * NEWS: Mention support for tracepoints on aarch64-linux.
7054 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7056 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
7058 (the_low_target): Install it.
7060 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7062 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
7063 * gdb.trace/collection.exp: Likewise.
7064 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
7065 * gdb.trace/mi-trace-unavailable.exp: Likewise.
7066 * gdb.trace/report.exp: Likewise.
7067 * gdb.trace/trace-break.exp: Likewise.
7068 * gdb.trace/unavailable.exp: Likewise.
7069 * gdb.trace/while-dyn.exp: Likewise.
7071 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7073 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
7074 (aarch64_gen_return_address): New function.
7075 (aarch64_gdbarch_init): Hook it.
7077 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7079 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
7080 swallow NOT_AVAILABLE_ERROR.
7081 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
7082 available_p is not set.
7083 (aarch64_stub_frame_unwind_stop_reason): New function.
7084 (aarch64_stub_unwind): Install it.
7086 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7088 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
7090 (aarch64_make_prologue_cache_1): New function, factored out from
7091 aarch64_make_prologue_cache. Do not allocate cache. Set
7093 (aarch64_make_prologue_cache): Reimplement wrapping
7094 aarch64_make_prologue_cache_1, and swallowing
7095 NOT_AVAILABLE_ERROR.
7096 (aarch64_prologue_frame_unwind_stop_reason): New function.
7097 Return UNWIND_UNAVAILABLE if available_p is not set.
7098 (aarch64_prologue_unwind): Install it.
7099 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
7100 checks into aarch64_prologue_frame_unwind_stop_reason. Call
7101 frame_id_build_unavailable_stack if available_p is not set.
7103 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7105 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
7107 (aarch64_scan_prologue): Set prev_pc.
7108 (aarch64_make_prologue_cache): Set func.
7109 (aarch64_make_stub_cache): Set prev_pc.
7110 (aarch64_prologue_this_id): Remove local variables id, pc and
7111 func. Read prev_pc and func from cache.
7112 (aarch64_stub_this_id): Read prev_pc from cache.
7114 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7116 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
7117 argument this_cache. Remove unused local variables reg and
7118 unwound_fp. Return early if this_cache is already set. Set
7120 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
7122 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
7124 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
7125 New argument this_cache. Return early if this_cache is already
7126 set. Set this_cache.
7127 (aarch64_prologue_this_id): Update call to
7128 aarch64_make_prologue_cache.
7129 (aarch64_prologue_prev_register): Likewise.
7130 (aarch64_normal_frame_base): Likewise.
7132 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7134 * c-valprint.c (c_val_print): Factor out memberptr printing code
7135 from c_val_print to ...
7136 (c_val_print_memberptr): ... this new function.
7138 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7140 * c-valprint.c (c_val_print): Factor out int printing code to ...
7141 (c_val_print_int): ... this new function.
7143 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7145 * c-valprint.c (c_val_print): Factor out struct and union
7146 printing code to ...
7147 (c_val_print_struct): ... this new function ...
7148 (c_val_print_union): ... and this new function.
7150 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7152 * c-valprint.c (c_val_print): Factor out pointer printing code
7154 (c_val_print_ptr): ... this new function.
7156 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7158 * c-valprint.c (c_valprint): Factor our array printing code from
7160 (c_val_print_array): ... this new function.
7162 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7164 * c-valprint.c (c_val_print): Factor out pointer printing code
7166 (print_unpacked_pointer): ... this new function.
7168 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7170 * c-valprint.c (c_val_print): Remove an assignment to i and move
7173 2015-07-09 Yao Qi <yao.qi@linaro.org>
7175 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
7176 argument ptid. Update comments. Caller update.
7178 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
7180 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
7183 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
7185 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
7187 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
7189 * progspace.c (delete_program_space): Add missing spaces.
7191 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
7193 * inferior.c (delete_inferior_1): Rename to ...
7194 (delete_inferior): ..., remove 'silent' parameter, delete
7195 program space when unused and remove call to prune_program_spaces.
7196 Remove the old, unused, delete_inferior.
7197 (delete_inferior_silent): Remove.
7198 (prune_inferiors): Change call from delete_inferior_1 to
7199 delete_inferior and remove 'silent' parameter. Remove call to
7200 prune_program_spaces.
7201 (remove_inferior_command): Idem.
7202 * inferior.h (delete_inferior_1): Rename to...
7203 (delete_inferior): ..., remove 'silent' parameter and remove the
7204 original delete_inferior.
7205 (delete_inferior_silent): Remove.
7206 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
7207 delete_inferior_1 to delete_inferior and remove 'silent'
7209 * progspace.c (prune_program_spaces): Remove.
7210 (pspace_empty_p): Rename to...
7211 (program_space_empty_p): ... and make non-static.
7212 (delete_program_space): New.
7213 * progspace.h (prune_program_spaces): Remove declaration.
7214 (program_space_empty_p): New declaration.
7215 (delete_program_space): New declaration.
7216 * monitor.c (monitor_close): Replace call to
7217 delete_thread_silent and delete_inferior_silent with
7218 discard_all_inferiors.
7220 2015-07-08 Patrick Palka <patrick@parcs.ath.cx>
7222 * defs.h (deprecated_register_changed_hook): Remove prototype.
7223 * interps.c (clear_iterpreter_hooks): Remove reference to
7224 deprecated_register_changed_hook.
7225 * top.c (deprecated_register_changed_hook): Remove prototype.
7226 * valops.c (value_assign): Remove reference to
7227 deprecated_register_changed_hook.
7228 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
7229 Add comment documenting the function.
7230 (tui_register_changed_observer): Define.
7231 (tui_install_hooks): Remove reference to
7232 deprecated_register_changed_hook. Set
7233 tui_register_changed_observer.
7234 (tui_remove_hooks): Remove reference to
7235 deprecated_register_changed_hook. Unset
7236 tui_register_changed_observer.
7238 2015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7241 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
7243 2015-07-08 Robert O'Callahan <robert@ocallahan.org>
7246 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
7248 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
7250 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
7252 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
7254 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
7255 Use safe_strerror() instead of strerror().
7257 2015-07-07 Yao Qi <yao.qi@linaro.org>
7259 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
7260 * features/arm-with-m-fpa-layout.c: Regenerated.
7261 * features/arm-with-m-vfp-d16.xml: Likewise.
7262 * features/arm-with-m-vfp-d16.c: Regenerated.
7263 * features/arm-with-m.xml: Likewise.
7264 * features/arm-with-m.c: Regenerated.
7265 * features/arm-with-neon.xml: Likewise.
7266 * features/arm-with-neon.c: Regenerated.
7267 * features/arm-with-vfpv2.xml: Likewise.
7268 * features/arm-with-vfpv2.c: Regenerated.
7269 * features/arm-with-vfpv3.xml: Likewise.
7270 * features/arm-with-vfpv3.c: Regenerated.
7272 2015-07-07 Yao Qi <yao.qi@linaro.org>
7274 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
7276 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
7278 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
7279 if target is 32-bit.
7280 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
7281 if target is 32-bit.
7282 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
7283 if target is 32-bit.
7284 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
7285 if target is 32-bit.
7286 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
7287 (aarch64_linux_read_description): Return the right target
7289 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
7290 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
7291 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
7294 2015-07-07 Yao Qi <yao.qi@linaro.org>
7296 * aarch32-linux-nat.c: New file.
7297 * aarch32-linux-nat.h: New file.
7298 * arm-linux-nat.c: Include aarch32-linux-nat.h.
7299 (fetch_regs): Move code to aarch32-linux-nat.c. Call
7300 aarch32_gp_regcache_supply.
7301 (store_regs): Move code to aarch32-linux-nat.c. Call
7302 aarch32_gp_regcache_collect.
7303 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
7304 aarch32_vfp_regcache_supply.
7305 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
7306 aarch32_vfp_regcache_collect.
7307 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
7309 2015-07-07 Yao Qi <yao.qi@linaro.org>
7311 * arm-linux-nat.c (store_fpregister): Remove.
7312 (store_register): Likewise.
7313 (fetch_fpregister): Likewise.
7314 (fetch_register): Likewise.
7315 (arm_linux_store_inferior_registers): Call store_regs and
7316 store_fpregs instead.
7317 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
7320 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7322 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
7325 2015-07-06 Joel Brobecker <brobecker@adacore.com>
7327 * NEWS: Create a new section for the next release branch.
7328 Rename the section of the current branch, now that it has
7331 2015-07-06 Joel Brobecker <brobecker@adacore.com>
7333 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
7334 * version.in: Bump version to 7.10.50.DATE-cvs.
7336 2015-07-06 Luis Machado <lgustavo@codesourcery.com>
7338 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
7339 breakpoints in a special way.
7340 (remove_breakpoint): Likewise.
7341 (mark_breakpoints_out): Likewise.
7343 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7345 * doc/gdb.texinfo (TUI): Add comma after @xref.
7347 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7349 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
7350 instead of casting the structure type.
7352 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
7354 * valops.c (search_struct_field): Remove OFFSET parameter.
7355 (value_cast_structs): Adjust calls to search_struct_field.
7356 (value_struct_elt): Same.
7357 (find_overload_match): Same.
7359 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
7361 * value.c (value_fetch_lazy): Update comment, change return
7363 * value.h (value_fetch_lazy): Change return value to void.
7365 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7367 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
7368 (tui_win_name): Make parameter and result const.
7369 * tui/tui-data.h (tui_win_name): Make parameter and result const.
7371 2015-07-06 Patrick Palka <patrick@parcs.ath.cx>
7373 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
7374 use printf_unfiltered.
7375 (set_mpx_cmd): Add missing trailing space to command string
7377 (_initialize_i386_tdep): Give the "mpx" prefix command its
7380 2015-07-02 Kevin Buettner <kevinb@redhat.com>
7382 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
7383 (enum rx_frame_type): New.
7384 (struct rx_prologue): Add new field `frame_type'.
7385 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
7386 parameter in the prologue struct. Add code for recording
7387 locations of PC and PSW for fast interrupt and exception frames.
7388 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
7389 (rx_analyze_frame_prologue): Add `frame_type' parameter.
7390 (rx_frame_type): New function.
7391 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
7392 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
7394 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
7395 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
7396 RX_FRAME_TYPE_FAST_INTERRUPT.
7397 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
7398 (rx_frame_sniffer, rx_exception_sniffer): New functions.
7399 (rx_frame_unwind): Use rx_frame_sniffer instead of
7400 default_frame_sniffer.
7401 (rx_frame_unwind): New unwinder.
7402 (rx_gdbarch_init): Register new unwinder.
7404 2015-07-02 Kevin Buettner <kevinb@redhat.com>
7406 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
7407 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
7408 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
7410 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
7412 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7414 Fix GCC false warning.
7415 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
7417 2015-07-02 Yao Qi <yao.qi@linaro.org>
7419 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
7420 typo in the debugging message.
7422 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7424 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
7425 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
7426 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
7427 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
7428 (btrace_maint_clear): New.
7429 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
7430 (pt_print_packet, btrace_maint_decode_pt)
7431 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
7432 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
7433 (maint_btrace_packet_history_cmd)
7434 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
7435 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
7436 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
7437 (maint_info_btrace_cmd, _initialize_btrace): New.
7438 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
7439 (btrace_maint_packet_history, btrace_maint_info): New.
7440 (btrace_thread_info) <maint>: New.
7441 * NEWS: Announce it.
7443 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7445 * btrace.c (btrace_fetch): Append the new trace data.
7446 (btrace_clear): Clear the stored trace data.
7447 * btrace.h (btrace_thread_info) <data>: New.
7448 * common/btrace-common.h (btrace_data_clear)
7449 (btrace_data_append): New.
7450 * common/btrace-common.c (btrace_data_clear)
7451 (btrace_data_append): New.
7453 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7455 * nat/linux-btrace.c (linux_enable_bts): Check for
7456 PERF_ATTR_SIZE_VER5.
7457 Check for data_offset and data_size fields. Use them.
7459 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7461 * NEWS: Announce new commands "record btrace pt" and "record pt".
7462 Announce new options "set|show record btrace pt buffer-size".
7463 * btrace.c: Include "rsp-low.h".
7464 Include "inttypes.h".
7465 (btrace_add_pc): Add forward declaration.
7466 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
7467 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
7468 (btrace_compute_ftrace_pt): New.
7469 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
7470 (check_xml_btrace_version): Update version check.
7471 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
7472 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
7473 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
7474 (btrace_pt_children): New.
7475 (btrace_children): Add support for "pt".
7476 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
7477 (btrace_conf_children): Add support for "pt".
7478 * btrace.h: Include "intel-pt.h".
7479 (btrace_pt_error): New.
7480 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
7481 (btrace_data_empty): Support BTRACE_FORMAT_PT.
7482 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
7483 (struct btrace_config_pt): New.
7484 (struct btrace_config)<pt>: New.
7485 (struct btrace_data_pt_config, struct btrace_data_pt): New.
7486 (struct btrace_data)<pt>: New.
7487 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
7489 * features/btrace.dtd (btrace)<pt>: New.
7490 (pt, pt-config, cpu): New.
7491 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
7492 (perf_event_pt_event_type, kernel_supports_pt)
7493 (linux_supports_pt): New.
7494 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
7495 (linux_enable_bts): Free tinfo on error.
7496 (linux_enable_pt): New.
7497 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
7498 (linux_disable_pt): New.
7499 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
7500 (linux_fill_btrace_pt_config, linux_read_pt): New.
7501 (linux_read_btrace): Support BTRACE_FORMAT_PT.
7502 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
7503 (struct btrace_target_info)<pt>: New.
7504 * record-btrace.c (set_record_btrace_pt_cmdlist)
7505 (show_record_btrace_pt_cmdlist): New.
7506 (record_btrace_print_pt_conf): New.
7507 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
7508 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
7509 (cmd_record_btrace_pt_start): New.
7510 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
7511 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
7512 (_initialize_record_btrace): Add new commands.
7513 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
7514 (remote_protocol_features): Add "Qbtrace:pt".
7515 Add "Qbtrace-conf:pt:size".
7516 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
7517 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
7518 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
7519 (_initialize_remote): Add new commands.
7521 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7523 * configure.ac: check for libipt
7524 * configure: Regenerate.
7525 * config.in: Regenerate.
7526 * Makefile.in (LIBIPT): New.
7527 (CLIBS): Add $LIBIPT.
7528 * NEWS: document new configure options
7530 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7532 * compile/compile-object-load.c (compile_object_load): Replace debug
7533 message "lookup undefined ELF symbol" by 3 more specific messages.
7535 2015-07-01 Kevin Buettner <kevinb@redhat.com>
7537 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
7538 (rl78_register_type): Add case for RL78_PSW_REGNUM.
7539 (rl78_gdbarch_init): Initialize rl78_psw_type.
7541 2015-07-01 Patrick Palka <patrick@parcs.ath.cx>
7543 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
7544 Update commentary. Always refresh the registers when frame
7545 information has changed.
7546 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
7547 Change return type to int. Return 1 if frame information has
7548 changed, 0 otherwise.
7549 (tui_before_prompt): Update commentary.
7550 * tui/tui-stack.h (tui_show_frame_info): Change return type to
7553 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7556 * frame.c (select_frame): Remove reference to
7557 deprecated_selected_frame_level_changed_hook.
7558 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
7560 * stack.c (deprecated_selected_frame_level_changed_hook):
7562 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
7564 (tui_refresh_frame_and_register_information): ... this. Bail
7565 out if there is no stack. Don't update register information
7566 unless registers_too_p is true.
7567 (tui_print_frame_info_listing_hook): Rename to ...
7568 (tui_dummy_print_frame_info_listing_hook): ... this.
7569 (tui_before_prompt): New function.
7570 (tui_normal_stop): New function.
7571 (tui_before_prompt_observer): New observer.
7572 (tui_normal_stop_observer): New observer.
7573 (tui_install_hooks): Set
7574 deprecated_print_frame_info_listing_hook to
7575 tui_dummy_print_frame_info_listing_hook. Register
7576 tui_before_prompt_observer to call tui_before_prompt and
7577 tui_normal_stop_observer to call tui_normal_stop. Remove
7578 reference to deprecated_selected_frame_level_changed_hook.
7579 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
7580 and tui_normal_stop_observer. Remove reference to
7581 deprecated_selected_frame_level_changed_hook.
7583 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7586 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
7587 return an int instead of void. Return whether the locator
7589 (tui_show_frame_info): If the locator info has not changed, then
7590 bail out early to avoid refreshing the windows.
7592 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7594 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
7595 LOCATOR_WIN to tui_alloc_content.
7597 2015-06-30 Yao Qi <yao.qi@linaro.org>
7600 * arm-tdep.c (arm_get_next_pc_raw): Break for media
7603 2015-06-29 Kevin Buettner <kevinb@redhat.com>
7605 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
7606 (rx_dwarf_reg_to_regnum): New function.
7607 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
7610 2015-06-29 Pedro Alves <palves@redhat.com>
7613 * infcall.c (run_inferior_call): On infcall success, if the thread
7614 was marked stopped before, reset it back to stopped.
7615 * infrun.c (resume): Don't suppress the set_running calls when
7617 (normal_stop): Only discard the finish_thread_state cleanup if the
7620 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
7622 * MAINTAINERS (Write After Approval): Update my email address.
7624 2015-06-26 Keith Seitz <keiths@redhat.com>
7625 Doug Evans <dje@google.com>
7628 * block.c (block_lookup_symbol): For non-function blocks,
7629 continue to search for a symbol with an exact domain match
7630 Otherwise, return any previously found "best domain" symbol.
7631 (block_lookup_symbol_primary): Likewise.
7633 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
7635 * NEWS: Mention the new option "history remove-duplicates".
7636 * top.c (history_remove_duplicates): New static variable.
7637 (show_history_remove_duplicates): New static function.
7638 (gdb_add_history): Conditionally remove duplicate history
7640 (init_main): Add "history remove-duplicates" option.
7642 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
7644 * tui/tui-win.c (focus_completer): New static function.
7645 (_initialize_tui_win): Set the completion function of the
7646 "focus" command to focus_completer.
7648 2015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7650 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
7652 * symtab.c (find_function_start_sal): Likewise.
7654 2015-06-25 Gary Benson <gbenson@redhat.com>
7656 * solib.c (solib_find_1): Set local variable sysroot to NULL if
7657 it is the empty string after trailing slashes have been stripped.
7659 2015-06-25 Gary Benson <gbenson@redhat.com>
7661 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
7662 * infrun.c (follow_exec): Likewise.
7663 * remote.c (remote_filesystem_is_local): Likewise.
7664 * solib.c (solib_find_1): Likewise.
7666 2015-06-24 Keith Seitz <keiths@redhat.com>
7668 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
7669 return value from lrealpath.
7671 2015-06-24 Mike Frysinger <vapier@gentoo.org>
7673 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
7675 2015-06-24 Mike Frysinger <vapier@gentoo.org>
7677 * remote-sim.c: Include gdb_bfd.h.
7678 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
7679 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
7681 2015-06-24 Yao Qi <yao.qi@linaro.org>
7683 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
7684 set_gdbarch_get_siginfo_type.
7685 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
7686 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
7687 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
7688 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
7689 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
7690 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7691 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
7692 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
7693 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
7694 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
7696 2015-06-24 Gary Benson <gbenson@redhat.com>
7698 * common/buffer.c (stdint.h): Do not include.
7699 * common/print-utils.c (stdint.h): Likewise.
7700 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
7701 * compile/compile-c-types.c (gdb_assert.h): Likewise.
7702 * ft32-tdep.c (gdb_assert.h): Likewise.
7703 * guile/scm-utils.c (stdint.h): Likewise.
7704 * i386-linux-tdep.c (stdint.h): Likewise.
7705 * i386-tdep.c (stdint.h): Likewise.
7706 * nat/linux-btrace.c (stdint.h): Likewise.
7707 * nat/linux-btrace.h (stdint.h): Likewise.
7708 * nat/linux-ptrace.c (stdint.h): Likewise.
7709 * nat/mips-linux-watch.h (stdint.h): Likewise.
7710 * ppc-linux-nat.c (stdint.h): Likewise.
7711 * python/python-internal.h (stdint.h): Likewise.
7712 * stub-termcap.c (stdlib.h): Likewise.
7713 * target/target.h (stdint.h): Likewise.
7714 * xtensa-linux-nat.c (stdint.h): Likewise.
7716 2015-06-23 Patrick Palka <patrick@parcs.ath.cx>
7718 * top.c (init_history): Look at errno after calling strtol to
7719 properly map large GDBHISTSIZE values to infinity.
7721 2015-06-23 Doug Evans <dje@google.com>
7723 * inferior.h (struct inferior_suspend_state): Delete, unused.
7724 All references deleted.
7726 2015-06-23 Mike Frysinger <vapier@gentoo.org>
7728 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
7729 (microblaze_push_dummy_call): Likewise.
7730 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
7731 and set_gdbarch_push_dummy_call.
7733 2015-06-23 Yao Qi <yao.qi@linaro.org>
7735 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
7736 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
7737 (amd64_linux_store_inferior_registers): Likewise.
7738 * arm-linux-nat.c (fetch_fpregister): Likewise.
7739 (fetch_fpregs, store_fpregister): Likewise.
7740 (store_fpregister, store_fpregs): Likewise.
7741 (fetch_register, fetch_regs): Likewise.
7742 (store_register, store_regs): Likewise.
7743 (fetch_vfp_regs, store_vfp_regs): Likewise.
7744 (arm_linux_read_description): Check have_ptrace_getregset is
7745 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
7747 * i386-linux-nat.c (fetch_xstateregs): Check
7748 have_ptrace_getregset is not TRIBOOL_TRUE.
7749 (store_xstateregs): Likewise.
7750 * linux-nat.c (have_ptrace_getregset): Change its type to
7752 * linux-nat.h (tribool): New enum.
7753 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
7754 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
7756 2015-06-19 Doug Evans <dje@google.com>
7758 * NEWS: Mention Sun's version of stabs is no longer supported.
7759 * elfread.c (free_elfinfo): Delete. All uses updated.
7760 (elfstab_offset_sections): Delete. All uses updated.
7761 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
7762 * psympriv.h (partial_symtab) <section_offsets>: Delete.
7764 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
7765 All callers updated.
7767 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
7769 * common/rsp-low.c (needs_escaping): New.
7770 (remote_escape_output): Add unit_size parameter. Refactor to
7771 support multi-byte addressable units. Rename parameters.
7772 * common/rsp-low.h (remote_escape_output): Add unit_size
7773 parameter and rename others. Update doc.
7774 * remote.c (align_for_efficient_write): New.
7775 (remote_write_bytes_aux): Add unit_size parameter and use it.
7776 Rename some variables. Update doc.
7777 (remote_xfer_partial): Get unit size and use it.
7778 (remote_read_bytes_1): Add unit_size parameter and use it.
7779 Rename some variables. Update doc.
7780 (remote_write_bytes): Same.
7781 (remote_xfer_live_readonly_partial): Same.
7782 (remote_read_bytes): Same.
7783 (remote_flash_write): Update call to remote_write_bytes_aux.
7784 (remote_write_qxfer): Update call to remote_escape_output.
7785 (remote_search_memory): Same.
7786 (remote_hostio_pwrite): Same.
7788 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
7790 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
7791 locations as inserted.
7792 Update and expand comment about permanent locations.
7793 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
7794 Move comment to add_location_to_breakpoint.
7795 (update_global_location_list): Don't error out if a permanent
7796 breakpoint is not marked inserted.
7797 Don't error out if a non-permanent breakpoint location is inserted on
7798 top of a permanent breakpoint.
7800 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
7802 * breakpoint.c (make_breakpoint_permanent): Remove unused
7804 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
7806 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7809 * NEWS: Mention new GDBHISTSIZE behavior.
7810 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
7811 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
7813 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7815 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
7816 * top.c (init_history): Read from GDBHISTSIZE instead of
7818 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
7820 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7822 * top.c (gdb_safe_append_history): Do not call
7823 history_truncate_file if the history is not stifled.
7825 2015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
7827 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
7828 * syscalls/s390x-linux.xml: Likewise.
7830 2015-06-16 Michael Eager <eager@eagercon.com>
7832 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
7834 2015-06-16 Patrick Palka <patrick@parcs.ath.cx>
7836 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
7837 target_terminal_ours_for_output() before calling
7838 tui_show_frame_info(), and restore the original terminal
7839 settings afterwards.
7841 2015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
7843 * arm-linux-nat.c: Include nat/linux-ptrace.h.
7845 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7847 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
7849 (mi_cmd_data_write_memory_bytes): Same.
7851 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7853 * corefile.c (write_memory): Update doc.
7854 * gdbcore.h (write_memory): Same.
7856 2015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7858 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
7859 (dump_mapping_p): Use it for parameter filterflags.
7860 (linux_find_memory_regions_full): Use it for variable filterflags.
7862 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7863 Jan Kratochvil <jan.kratochvil@redhat.com>
7865 Merge multiple hex conversions.
7866 * monitor.c: Include rsp-low.h.
7867 (fromhex): Remove definition.
7869 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7870 Jan Kratochvil <jan.kratochvil@redhat.com>
7872 Move utility functions to common/.
7873 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
7874 Move defs to common/common-utils.c.
7875 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
7876 (skip_to_space_const): Move decls to common/common-utils.h.
7877 * common/common-defs.h: Move include of common-types.h before
7879 * common/common-utils.c: Include host-defs.h and ctype.h.
7880 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
7882 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
7884 * common/common-utils.h (strtoulst): Move decl from utils.h.
7885 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
7886 Move from cli/cli-utils.h.
7887 * common/host-defs.h: Include limits.h.
7888 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
7889 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
7890 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
7891 common/common-utils.h.
7892 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
7893 (strtoulst): Move to common/common-utils.c.
7894 * utils.h (strtoulst): Moved decl to common/common-utils.h.
7896 2015-06-15 Yao Qi <yao.qi@linaro.org>
7898 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
7900 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
7902 * build-id.c: Don't include elf-bfd.h.
7903 (build_id_bfd_get): Use bfd_build_id.
7904 (build_id_verify): Ditto.
7905 * build-id.h: Ditto.
7906 (find_separate_debug_file_by_buildid): Ditto.
7907 * python/py-objfile.c: Don't include elf-bfd.h.
7908 (objfpy_get_build_id) Use bfd_build_id.
7909 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
7910 * coffread.c: Include build-id.h.
7911 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
7913 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7915 * windows-nat.c (do_windows_fetch_inferior_registers)
7916 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
7917 conditional with __CYGWIN__.
7919 2015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
7921 * completer.c: Add arch-utils.h include.
7922 (enum reg_completer_targets): New enum.
7923 (reg_or_group_completer_1): New function containing old
7924 reg_or_group_completer, add and use new parameter to control what
7925 is completed on. Use get_current_arch rather than architecture of
7926 currently selected frame.
7927 (reg_or_group_completer): Call new reg_or_group_completer_1.
7928 (reggroup_completer): Call new reg_or_group_completer_1.
7929 * completer.h (reggroup_completer): Add declaration.
7930 * tui/tui-regs.c: Add 'completer.h' include.
7931 (tui_reg_next_command): Renamed to...
7932 (tui_reg_next): ...this. Adjust parameters and return rather than
7934 (tui_reg_prev_command): Renamed to...
7935 (tui_reg_prev): ...this. Adjust parameters and return rather than
7937 (tui_reg_float_command): Delete.
7938 (tui_reg_general_command): Delete.
7939 (tui_reg_system_command): Delete.
7940 (tui_reg_command): Rewrite to perform switching of register group.
7942 (tuireglist): Remove.
7943 (tui_reggroup_completer): New function.
7944 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
7945 creation of 'tui reg' command.
7946 * NEWS: Add comment about 'tui reg' changes.
7948 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7950 * target.c (target_read): Consider addressable unit size when
7951 reading from a memory object.
7952 (read_memory_robust): Same.
7953 (read_whatever_is_readable): Same.
7954 (target_write_with_progress): Consider addressable unit size
7955 when writing to a memory object.
7956 * target.h (target_read): Update documentation.
7957 (target_write): Add documentation.
7959 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7961 * arch-utils.h (default_addressable_memory_unit_size): New.
7962 * arch-utils.c (default_addressable_memory_unit_size): New.
7963 * gdbarch.sh (addressable_memory_unit_size): New.
7964 * gdbarch.h: Re-generate.
7965 * gdbarch.c: Re-generate.
7967 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7969 * target.c (target_read): Rename variables and use
7971 (target_read_with_progress): Same.
7972 (read_memory_robust): Constify parameters and rename
7974 (read_whatever_is_readable): Constify parameters,
7975 rename variables, adjust formatting.
7976 * target.h (read_memory_robust): Constify parameters.
7978 2015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
7980 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
7981 synthetic (non-AltiVec) vector types.
7982 (ppc64_sysv_abi_return_value): Likewise.
7984 2015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
7986 PR breakpoints/16465
7987 * breakpoint.c (create_breakpoint): Save extra_string for
7988 pending breakpoints.
7990 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7992 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
7993 and bt_mask to CORE_ADDR.
7995 2015-06-11 Gary Benson <gbenson@redhat.com>
7997 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
7998 (mnsh_recv_message): Likewise.
8000 2015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
8002 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
8003 long long int and plongest instead of %ll.
8005 2015-06-11 Gary Benson <gbenson@redhat.com>
8007 * nat/linux-namespaces.c (gdb_wait.h): New include.
8008 (sys/wait.h): Do not include.
8010 2015-06-10 Simon Marchi <simon.marchi@ericsson.com>
8012 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
8013 end_sequence is true.
8015 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8018 * solib-target.c (library_list_start_list): Use explicit NULL
8021 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8023 * solib-target.c (library_list_start_list): Do not dereference
8024 variable version in its initialization. Make the VERSION check handle
8026 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
8028 2015-06-10 Gary Benson <gbenson@redhat.com>
8030 * NEWS: Announce support for direct access of executable and
8031 shared library files when attaching to inferiors in containers
8032 on GNU/Linux systems.
8034 2015-06-10 Gary Benson <gbenson@redhat.com>
8036 * remote.c (struct remote_state) <fs_pid>: New field.
8037 (new_remote_state): Initialize the above.
8038 (PACKET_vFile_setfs): New enum value.
8039 (remote_hostio_set_filesystem): New function.
8040 (remote_hostio_open): Call the above.
8041 (remote_hostio_unlink): Likewise.
8042 (remote_hostio_readlink): Likewise.
8043 (_initialize_remote): Register new "set/show remote
8044 hostio-setfs-packet" command.
8045 * NEWS: Announce new vFile:setfs packet.
8047 2015-06-10 Gary Benson <gbenson@redhat.com>
8049 * linux-nat.c (nat/linux-namespaces.h): New include.
8050 (fileio.h): Likewise.
8051 (linux_nat_filesystem_is_local): New function.
8052 (linux_nat_fileio_pid_of): Likewise.
8053 (linux_nat_fileio_open): Likewise.
8054 (linux_nat_fileio_readlink): Likewise.
8055 (linux_nat_fileio_unlink): Likewise.
8056 (linux_nat_add_target): Initialize to_filesystem_is_local,
8057 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
8058 (_initialize_linux_nat): New "set/show debug linux-namespaces"
8060 * NEWS: Mention new "set/show debug linux-namespaces" commands.
8062 2015-06-10 Gary Benson <gbenson@redhat.com>
8064 * target.h (struct inferior): New forward declaration.
8065 (struct target_ops) <to_filesystem_is_local>: Update comment.
8066 (struct target_ops) <to_fileio_open>: New argument inf.
8067 Update comment. All implementations updated.
8068 (struct target_ops) <to_fileio_unlink>: Likewise.
8069 (struct target_ops) <to_fileio_readlink>: Likewise.
8070 (target_filesystem_is_local): Update comment.
8071 (target_fileio_open): New argument inf. Update comment.
8072 (target_fileio_unlink): Likewise.
8073 (target_fileio_readlink): Likewise.
8074 (target_fileio_read_alloc): Likewise.
8075 (target_fileio_read_stralloc): Likewise.
8076 * target.c (target_fileio_open): New argument inf.
8077 Pass inf to implementation. Update debug printing.
8078 (target_fileio_unlink): Likewise.
8079 (target_fileio_readlink): Likewise.
8080 (target_fileio_read_alloc_1): New argument inf. Pass inf
8081 to target_fileio_open.
8082 (target_fileio_read_alloc): New argument inf. Pass inf to
8083 target_fileio_read_alloc_1.
8084 (target_fileio_read_stralloc): Likewise.
8085 * gdb_bfd.c (inferior.h): New include.
8086 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
8087 argument with new argument "inferior". Pass inferior to
8089 (gdb_bfd_open): Supply inferior argument to
8090 gdb_bfd_iovec_fileio_open.
8091 * linux-tdep.c (linux_info_proc): Supply inf argument to
8092 relevant target_fileio calls.
8093 (linux_find_memory_regions_full): Likewise.
8094 (linux_fill_prpsinfo): Likewise.
8095 * remote.c (remote_filesystem_is_local): Supply inf
8096 argument to remote_hostio_open.
8097 (remote_file_put): Likewise.
8098 (remote_file_get): Likewise.
8099 (remote_file_delete): Supply inf argument to
8100 remote_hostio_unlink.
8102 2015-06-10 Gary Benson <gbenson@redhat.com>
8104 * inf-child.c (inf_child_fileio_open): Replace comment.
8105 (inf_child_fileio_pwrite): Likewise.
8106 (inf_child_fileio_pread): Likewise.
8107 (inf_child_fileio_fstat): Insert blank line before comment.
8108 (inf_child_fileio_close): Replace comment.
8109 (inf_child_fileio_unlink): Likewise.
8110 (inf_child_fileio_readlink): Likewise.
8111 * remote.c (remote_hostio_open): Likewise.
8112 (remote_hostio_pread): Likewise.
8113 (remote_hostio_pwrite): Likewise.
8114 (remote_hostio_close): Likewise.
8115 (remote_hostio_unlink): Likewise.
8116 (remote_hostio_readlink): Likewise.
8117 (remote_hostio_fstat): Likewise.
8118 (remote_filesystem_is_local): Likewise.
8119 * target.c (target_fileio_open): Likewise.
8120 (target_fileio_pwrite): Likewise.
8121 (target_fileio_pread): Likewise.
8122 (target_fileio_fstat): Insert blank line before comment.
8123 (target_fileio_close): Replace comment.
8124 (target_fileio_unlink): Likewise.
8125 (target_fileio_readlink): Likewise.
8126 (target_fileio_read_alloc): Likewise.
8127 (target_fileio_read_stralloc): Likewise.
8129 2015-06-10 Gary Benson <gbenson@redhat.com>
8131 * linux-thread-db.c (nat/linux-namespaces.h): New include.
8132 (check_pid_namespace_match): Use linux_ns_same rather than
8133 linux_proc_pid_get_ns to spot PID namespace mismatches.
8134 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
8135 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
8137 2015-06-10 Gary Benson <gbenson@redhat.com>
8139 * configure.ac (AC_CHECK_FUNCS): Add setns.
8140 * config.in: Regenerate.
8141 * configure: Likewise.
8142 * nat/linux-namespaces.h: New file.
8143 * nat/linux-namespaces.c: Likewise.
8144 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
8145 (linux-namespaces.o): New rule.
8146 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
8147 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
8148 * config/arm/linux.mh (NATDEPFILES): Likewise.
8149 * config/i386/linux.mh (NATDEPFILES): Likewise.
8150 * config/i386/linux64.mh (NATDEPFILES): Likewise.
8151 * config/ia64/linux.mh (NATDEPFILES): Likewise.
8152 * config/m32r/linux.mh (NATDEPFILES): Likewise.
8153 * config/m68k/linux.mh (NATDEPFILES): Likewise.
8154 * config/mips/linux.mh (NATDEPFILES): Likewise.
8155 * config/pa/linux.mh (NATDEPFILES): Likewise.
8156 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
8157 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
8158 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
8159 * config/s390/linux.mh (NATDEPFILES): Likewise.
8160 * config/sparc/linux.mh (NATDEPFILES): Likewise.
8161 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
8162 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
8163 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
8165 2015-06-10 Gary Benson <gbenson@redhat.com>
8167 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
8168 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
8169 (make_cleanup_close): Likewise.
8170 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
8171 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
8172 (make_cleanup_close): Likewise.
8174 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
8176 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
8177 from SuspendThread().
8179 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
8181 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
8182 from OutputDebugString.
8184 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
8185 Mircea Gherzan <mircea.gherzan@intel.com>
8187 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
8188 MPX_BT_MASK_32): New macros.
8189 (i386_mpx_set_bounds): New function that implements
8190 the command "set-mpx-bound".
8191 (i386_mpx_enabled): Helper function to test MPX availability.
8192 (i386_mpx_bd_base): Helper function to calculate the base directory
8194 (i386_mpx_get_bt_entry): Helper function to access a bound
8196 (i386_mpx_print_bounds): Effectively display bound information.
8197 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
8199 (_initialize_i386_tdep):
8200 Add "bound" to the commands "show mpx" and "set mpx" commands.
8201 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
8202 and "show mpx" commands.
8203 * NEWS: List new commands for MPX support.
8205 2015-06-09 Gary Benson <gbenson@redhat.com>
8207 * common/fileio.h (fileio_to_host_mode): New declaration.
8208 * common/fileio.c (fileio_to_host_mode): New Function.
8209 * inf-child.c (inf_child_fileio_open): Process mode argument
8210 with fileio_to_host_mode.
8212 2015-06-09 Gary Benson <gbenson@redhat.com>
8214 * common/fileio.c (fileio_mode_pack): Fix preprocessor
8217 2015-06-05 Gary Benson <gbenson@redhat.com>
8219 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
8220 * remote.c (remote_filesystem_is_local): ...here.
8222 2015-06-04 Yao Qi <yao.qi@linaro.org>
8224 * gdbarch.c: Regenerate it.
8226 2015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8228 * arch-utils.c (default_infcall_munmap): New.
8229 * arch-utils.h (default_infcall_munmap): New declaration.
8230 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
8231 (munmap_list_free, munmap_listp_free_cleanup): New.
8232 (struct setup_sections_data): Add field munmap_list_headp.
8233 (setup_sections): Call munmap_list_add.
8234 (compile_object_load): New variable munmap_list_head, initialize
8235 setup_sections_data.munmap_list_headp, return munmap_list_head.
8236 * compile/compile-object-load.h (struct munmap_list): New declaration.
8237 (struct compile_module): Add field munmap_list_head.
8238 (munmap_list_free): New declaration.
8239 * compile/compile-object-run.c (struct do_module_cleanup): Add field
8241 (do_module_cleanup): Call munmap_list_free.
8242 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
8243 * gdbarch.c: Regenerate.
8244 * gdbarch.h: Regenerate.
8245 * gdbarch.sh (infcall_munmap): New.
8246 * linux-tdep.c (linux_infcall_munmap): New.
8247 (linux_init_abi): Install it.
8249 2015-06-02 Simon Marchi <simon.marchi@ericsson.com>
8252 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
8254 2015-06-02 Yao Qi <yao.qi@linaro.org>
8256 * i386-linux-nat.c: Include linux-nat.h.
8258 2015-06-01 Andreas Schwab <schwab@linux-m68k.org>
8259 Jan Kratochvil <jan.kratochvil@redhat.com>
8262 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
8264 * dwarf2loc.c (chain_candidate): Likewise.
8266 2015-06-01 Yao Qi <yao.qi@linaro.org>
8268 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
8269 (store_vfp_regs): Use PTRACE_SETREGSET.
8271 2015-06-01 Yao Qi <yao.qi@linaro.org>
8273 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
8274 (fetch_fpregs): Likewise.
8275 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
8276 (store_fpregs): Likewise.
8278 2015-06-01 Yao Qi <yao.qi@linaro.org>
8280 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
8281 (fetch_regs): Likewise.
8282 (store_regs): Use PTRACE_SETREGSET.
8283 (store_register): Likewise.
8285 2015-06-01 Yao Qi <yao.qi@linaro.org>
8287 * arm-linux-nat.c (arm_linux_read_description): Check whether
8288 kernel supports PTRACE_GETREGSET.
8290 2015-06-01 Yao Qi <yao.qi@linaro.org>
8292 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
8293 * linux-nat.c: ... here.
8294 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
8296 * linux-nat.h: ... here.
8298 2015-06-01 Yao Qi <yao.qi@linaro.org>
8300 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
8301 * i386-linux-nat.c: Likewise.
8302 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
8303 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
8304 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
8305 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
8306 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
8308 2015-05-30 Eli Zaretskii <eliz@gnu.org>
8310 * go32-nat.c (go32_xfer_memory): Fix the return value to be
8311 compatible to what read_child and write_child return. This
8312 unbreaks that DJGPP build of GDB which was broken since v7.7.
8314 2015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
8316 * MAINTAINERS (Write After Approval): Add Martin Galvan.
8318 2015-05-29 Roland McGrath <mcgrathr@google.com>
8321 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
8322 rather than internal_error for an unrecognized value.
8324 2015-05-29 Max Filippov <jcmvbkbc@gmail.com>
8326 * xtensa-tdep.c (xtensa_pseudo_register_read)
8327 (xtensa_pseudo_register_write): Don't alias last pseudo register
8330 2015-05-28 Don Breazeal <donb@codesourcery.com>
8332 * infrun.c (follow_fork_inferior): Ensure the use of
8333 process-style ptids (pid,0,0) in verbose/debug "Detaching"
8336 2015-05-28 Doug Evans <dje@google.com>
8338 * dwarf2read.c (record_line_ftype): Remove, duplicate.
8340 2015-05-28 Yao Qi <yao.qi@linaro.org>
8342 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
8343 (arm_linux_fetch_inferior_registers): Use
8344 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
8345 (arm_linux_store_inferior_registers): Likewise.
8346 (arm_linux_read_description): Don't set
8347 arm_linux_has_wmmx_registers.
8348 * arm-tdep.c (arm_gdbarch_init): Set
8349 tdep->have_wmmx_registers according target descriptions.
8350 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
8353 2015-05-28 Yao Qi <yao.qi@linaro.org>
8355 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
8356 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
8357 instead of arm_linux_vfp_register_count.
8358 (store_vfp_regs): Likewise.
8359 (arm_linux_fetch_inferior_registers): Likewise.
8360 (arm_linux_store_inferior_registers): Likewise.
8361 (arm_linux_read_description): Don't set
8362 arm_linux_vfp_register_count.
8363 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
8365 * arm-tdep.c (arm_gdbarch_init): Add assert on
8367 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
8368 field to vfp_register_count. All users updated.
8370 2015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
8372 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
8373 ELFOSABI_GNU binaries.
8375 2015-05-27 Doug Evans <dje@google.com>
8377 * dwarf2read.c (lnp_state_machine): New typedef.
8378 (lnp_reader_state): New typedef.
8379 (dwarf_record_line_1): Renamed from dwarf_record_line.
8380 All callers updated.
8381 (dwarf_record_line): New function.
8382 (init_lnp_state_machine): New function.
8383 (check_line_address): Replace p_record_line parameter with state.
8384 All callers updated.
8385 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
8386 Update to record state in lnp_state_machine.
8388 2015-05-27 Doug Evans <dje@google.com>
8390 * dwarf2read.c (record_line_ftype): New typedef.
8391 (check_line_address): New function.
8392 (dwarf_decode_lines_1): Call it.
8394 2015-05-27 Doug Evans <dje@google.com>
8396 * NEWS: Mention "set debug dwarf-line".
8397 * dwarf2read.c (dwarf_line_debug): New static global.
8398 (add_include_dir): Add debug dwarf-line support.
8399 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
8400 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
8402 2015-05-27 Doug Evans <dje@google.com>
8404 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
8405 All callers updated.
8406 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
8407 * cp-support.h (cp_lookup_nested_symbol): Update.
8409 2015-05-27 Doug Evans <dje@google.com>
8412 * block.c (block_find_symbol): New function.
8413 (block_find_non_opaque_type): Ditto.
8414 (block_find_non_opaque_type_preferred): Ditto.
8415 * block.h (block_symbol_matcher_ftype): New typedef.
8416 (block_find_symbol): Declare.
8417 (block_find_non_opaque_type): Ditto.
8418 (block_find_non_opaque_type_preferred): Ditto.
8419 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
8420 * psymtab.c (psym_lookup_symbol): Ditto.
8421 * symtab.c (basic_lookup_transparent_type_1): New function.
8422 (basic_lookup_transparent_type): Call it.
8424 2015-05-27 Yao Qi <yao.qi@linaro.org>
8426 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
8427 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
8429 2015-05-27 Yao Qi <yao.qi@linaro.org>
8431 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
8433 (aarch64_record_load_store): Likewise.
8435 2015-05-26 Doug Evans <dje@google.com>
8437 PR c++/18141, c++/18417.
8438 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
8441 2015-05-26 Doug Evans <dje@google.com>
8443 * NEWS: Add entries for command renamings.
8444 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
8446 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
8447 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
8449 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
8450 All callers updated. Fix spelling of DWARF in help text.
8451 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
8453 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
8455 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
8456 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
8457 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
8459 (show_dwarf_always_disassemble): Renamed from
8460 show_dwarf2_always_disassemble. All callers updated.
8461 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
8462 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
8463 "set/show dwarf max-cache-age". Rename
8464 "set/show dwarf2 always-disassemble" to
8465 "set/show dwarf always-disassemble". Rename
8466 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
8467 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
8469 2015-05-26 Doug Evans <dje@google.com>
8472 * python/py-lazy-string.c (stpy_convert_to_value): Use
8473 gdbpy_gdb_memory_error not PyExc_MemoryError.
8474 (gdbpy_create_lazy_string_object): Ditto.
8476 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
8478 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
8480 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
8482 * tui/tui-regs.c (tui_reg_prev_command): New function.
8483 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
8484 * reggroups.c (reggroup_prev): New function.
8485 * reggroups.h (reggroup_prev): Add declaration. Update comment.
8487 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
8488 Yao Qi <yao.qi@linaro.org>
8490 * aarch64-linux-tdep.c: Include linux-record.h and
8492 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
8493 (aarch64_syscall): New enum.
8494 (aarch64_canonicalize_syscall): New function.
8495 (aarch64_all_but_pc_registers_record): New function.
8496 (aarch64_linux_syscall_record): New function.
8497 (aarch64_linux_init_abi): Install AArch64 process record
8498 handler. Update to handle syscall recording.
8499 * aarch64-tdep.c: Include record.h and record-full.h.
8500 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
8501 (struct aarch64_mem_r): Define.
8502 (aarch64_record_result): New enum.
8503 (struct insn_decode_record): Define.
8504 (insn_decode_record): New typedef.
8505 (aarch64_record_data_proc_reg): New function.
8506 (aarch64_record_data_proc_imm): New function.
8507 (aarch64_record_branch_except_sys): New function.
8508 (aarch64_record_load_store): New function.
8509 (aarch64_record_data_proc_simd_fp): New function.
8510 (aarch64_record_asimd_load_store): New function.
8511 (aarch64_record_decode_insn_handler): New function.
8512 (deallocate_reg_mem): New function.
8513 (aarch64_process_record): New function.
8514 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
8516 (aarch64_process_record): New extern declaration.
8517 * configure.tgt: Add linux-record.o to gdb_target_obs.
8518 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
8520 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
8522 * NEWS: Add a note on process record-replay support on aarch64*-linux*
8525 2015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
8527 * amd64-tdep.c: Replace in_function_epilogue_p with
8528 stack_frame_destroyed_p throughout.
8529 * arch-utils.c: Ditto.
8530 * arch-utils.h: Ditto.
8531 * arm-tdep.c: Ditto.
8532 * breakpoint.c: Ditto.
8533 * gdbarch.sh: Ditto.
8534 * hppa-tdep.c: Ditto.
8535 * i386-tdep.c: Ditto.
8536 * mips-tdep.c: Ditto.
8537 * nios2-tdep.c: Ditto.
8538 * rs6000-tdep.c: Ditto.
8539 * s390-linux-tdep.c: Ditto.
8540 * score-tdep.c: Ditto.
8542 * sparc-tdep.c: Ditto.
8543 * sparc-tdep.h: Ditto.
8544 * sparc64-tdep.c: Ditto.
8545 * spu-tdep.c: Ditto.
8546 * tic6x-tdep.c: Ditto.
8547 * tilegx-tdep.c: Ditto.
8548 * xstormy16-tdep.c: Ditto.
8549 * gdbarch.c, gdbarch.h: Re-generated.
8551 2015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8553 * NEWS: Mention 'tui enable' and 'tui disable'.
8554 * tui/tui.c (tui_enable_command): New function.
8555 (tui_disable_command): New function.
8556 (_initialize_tui): New function.
8558 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8560 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
8562 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8564 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
8567 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8569 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
8571 (tui_set_layout_for_display_command): ...here, before calling
8572 tui_set_layout. Only set the layout if gdb has not already
8573 entered the TUI_FAILURE state.
8575 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8577 * tui/tui-layout.c (layout_completer): New function.
8578 (_initialize_tui_layout): Set completer on layout command.
8580 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8582 * tui/tui-layout.c (tui_set_layout): Remove
8583 tui_register_display_type parameter. Remove all checking of this
8584 parameter, and reindent function. Update header comment.
8585 (tui_set_layout_for_display_command): Rename to...
8586 (tui_set_layout_by_name): ...this, and don't check for different
8587 register class types, don't pass a tui_register_display_type to
8588 tui_set_layout. Update header comment.
8589 (layout_names): Remove register set specific names.
8590 * tui/tui-layout.h (tui_set_layout): Remove
8591 tui_register_display_type parameter.
8592 * tui/tui.c (tui_rl_change_windows): Don't pass a
8593 tui_register_display_type to tui_set_layout.
8594 (tui_rl_delete_other_windows): Likewise.
8595 (tui_enable): Likewise.
8596 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
8597 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
8598 (TUI_GENERAL_REGS_NAME): Remove.
8599 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
8600 (TUI_SPECIAL_REGS_NAME): Remove.
8601 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
8602 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
8603 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
8604 (enum tui_register_display_type): Remove.
8605 (struct tui_layout_def): Remove regs_display_type and
8606 float_regs_display_type fields.
8607 (struct tui_data_info): Remove regs_display_type field.
8608 (tui_layout_command): Use new name for
8609 tui_set_layout_for_display_command.
8610 * tui/tui-data.c (layout_def): Don't initialise removed fields.
8611 (tui_clear_win_detail): Don't initialise removed fields of
8613 * tui/tui-regs.c (tui_show_registers): Use new name for
8614 tui_set_layout_for_display_command.
8615 * tui/tui.h (tui_set_layout_for_display_command): Rename
8617 (tui_set_layout_by_name): ...this.
8618 * printcmd.c (display_command): Remove tui related layout call,
8621 2015-05-20 Joel Brobecker <brobecker@adacore.com>
8623 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
8624 (handle_inferior_event): New function.
8626 2015-05-20 Joel Brobecker <brobecker@adacore.com>
8628 * ada-lang.c (to_fixed_array_type): Rename local variable
8629 typename into type_name.
8631 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8633 Fix ASAN crash for gdb.compile/compile.exp.
8634 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
8636 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8638 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
8639 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
8640 * compile/compile-object-load.c (setup_sections, compile_object_load):
8642 * compile/compile.c (compile_to_object): Likewise.
8644 2015-05-16 Doug Evans <xdje42@gmail.com>
8646 * NEWS: Mention support for unbuffered Guile memory ports.
8647 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
8648 (ioscm_lseek_address): Improve overflow calculation.
8649 (gdbscm_memory_port_fill_input): Add assert.
8650 (gdbscm_memory_port_write): Handle unbuffered ports.
8651 Handle large writes identical to Guile's fport_write.
8652 (gdbscm_memory_port_seek): Fix seeking past end check.
8653 (gdbscm_memory_port_close): Handle closing unbuffered port.
8654 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
8655 (ioscm_init_memory_port): Handle unbuffered ports.
8656 (ioscm_reinit_memory_port): Ditto.
8657 (ioscm_init_memory_port): Update size calculation.
8658 (gdbscm_open_memory): Support zero sized ports.
8660 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8662 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
8663 variable compiler warnings.
8665 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8667 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
8669 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8670 Phil Muldoon <pmuldoon@redhat.com>
8672 * NEWS (Changes since GDB 7.9): Add compile print.
8673 * compile/compile-c-support.c (add_code_header, add_code_footer)
8674 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
8675 COMPILE_I_PRINT_VALUE_SCOPE.
8676 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
8677 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
8679 * compile/compile-object-load.c: Include block.h.
8680 (get_out_value_type): New function.
8681 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8682 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
8684 * compile/compile-object-load.h (struct compile_module): Add fields
8685 out_value_addr and out_value_type.
8686 * compile/compile-object-run.c: Include valprint.h and compile.h.
8687 (struct do_module_cleanup): Add fields out_value_addr and
8689 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8690 COMPILE_I_PRINT_VALUE_SCOPE.
8691 (compile_object_run): Propagate out_value_addr and out_value_type.
8692 Pass OUT_VALUE_ADDR.
8693 * compile/compile.c: Include valprint.h.
8694 (compile_print_value, compile_print_command): New functions.
8695 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
8696 (_initialize_compile): Update compile code help text. Install
8697 compile_print_command.
8698 * compile/compile.h (compile_print_value): New prototype.
8699 * defs.h (enum compile_i_scope_types): Add
8700 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
8702 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8704 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
8705 Rely on its parameter count.
8706 (compile_object_load): Replace lookup_minimal_symbol_text by
8707 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
8709 * compile/compile-object-load.h (struct compile_module): Replace
8710 func_addr by func_sym.
8711 * compile/compile-object-run.c: Include block.h.
8712 (compile_object_run): Reset module variable after it is freed. Use
8713 FUNC_SYM instead of FUNC_ADDR. Rely on it.
8715 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8717 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
8718 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
8719 (c_compute_program): Call generate_register_struct after typedefs.
8720 * compile/compile-loc2c.c (push, pushf_register_address)
8721 (pushf_register): Cast to GCC_UINTPTR.
8722 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
8723 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
8724 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
8725 * compile/compile.c (_initialize_compile): Enable warnings for
8728 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8730 * cli/cli-script.c (execute_control_command): Update
8731 eval_compile_command caller.
8732 * compile/compile-object-load.c (compile_object_load): Add parameters
8733 scope and scope_data. Set them.
8734 * compile/compile-object-load.h (struct compile_module): Add fields
8735 scope and scope_data.
8736 (compile_object_load): Add parameters scope and scope_data.
8737 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
8738 scope and scope_data.
8739 (compile_object_run): Propagate the fields scope and scope_data.
8740 * compile/compile.c (compile_file_command, compile_code_command):
8741 Update eval_compile_command callers.
8742 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
8743 * compile/compile.h (eval_compile_command): Add parameter scope_data.
8744 * defs.h (struct command_line): Add field scope_data.
8746 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8748 * printcmd.c (struct format_data): Move it to valprint.h.
8749 (print_command_parse_format, print_value): New functions from ...
8750 (print_command_1): ... here. Call them.
8751 * valprint.h (struct format_data): Move it here from printcmd.c.
8752 (print_command_parse_format, print_value): New declarations.
8754 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8756 * compile/compile-object-load.c (compile_object_load): Add
8757 COMPILE_DEBUG message.
8759 2015-05-15 Jerome Guitton <guitton@adacore.com>
8761 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
8762 index to get element instead of enum value.
8763 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
8764 of index to compute length, but enum values to compute bounds.
8765 (ada_array_length): Use enum position of index instead of enum value.
8766 (pos_atr): Move position computation to...
8767 (ada_evaluate_subexp): Use enum values to compute bounds.
8768 * gdbtypes.c (discrete_position): ...this new function.
8769 * gdbtypes.h (discrete_position): New function declaration.
8770 * valprint.c (val_print_array_elements): Call discrete_position
8771 to handle array indexed by non-contiguous enumeration types.
8773 2015-05-15 Jerome Guitton <guitton@adacore.com>
8775 * ada-lang.c (find_parallel_type_by_descriptive_type):
8776 Go through typedefs during lookup.
8777 (to_fixed_array_type): Add support for non-bit packed arrays
8778 as variable-length fields.
8780 2015-05-15 Pedro Alves <palves@redhat.com>
8781 Simon Marchi <simon.marchi@ericsson.com>
8783 * event-loop.c (gdb_notifier) <next_file_handler,
8784 next_poll_fds_index>: New fields.
8785 (get_next_file_handler_to_handle_and_advance): New function.
8786 (delete_file_handler): If deleting the next file handler to
8787 handle, advance to the next file handler.
8788 (gdb_wait_for_event): Bail early if no event fired. Poll file
8789 handlers in round-robin fashion.
8791 2015-05-15 Pedro Alves <palves@redhat.com>
8793 * linux-tdep.c (linux_find_memory_regions_full): Rename local
8794 'private' to 'priv'.
8796 2015-05-15 Pedro Alves <palves@redhat.com>
8798 * nat/linux-nat.h: Include "target/waitstatus.h".
8800 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
8802 * python/py-unwind.c (struct reg_info): Move out of ...
8803 (struct cached_frame_info): ... this scope.
8804 (pending_frame_object_type, unwind_info_object_type): Make extern.
8806 2015-05-15 Joel Brobecker <brobecker@adacore.com>
8808 * ada-lang.c (ada_value_primitive_packed_val): Make sure
8809 accumSize is never negative.
8811 2015-05-14 Patrick Palka <patrick@parcs.ath.cx>
8813 * tui/tui-command.c: Remove include of <ctype.h>.
8814 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
8816 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
8818 * dwarf2read.c (die_needs_namespace): Return 1 for
8819 DW_TAG_inlined_subroutine.
8821 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8823 * regcache.c (regcache_cpy_no_passthrough): New declaration.
8824 (regcache_cpy_no_passthrough): Make it static, add function comment.
8825 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
8826 (regcache_cpy_no_passthrough): Remove declaration.
8828 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8830 * gdbthread.h (struct thread_control_state): Update comment for
8832 * infcall.c (run_inferior_call): Update comment about
8834 * infcmd.c (get_return_value): Update comment about stop_registers.
8835 (finish_forward): Update comment about proceed_to_finish.
8836 * infrun.c (stop_registers): Remove.
8837 (clear_proceed_status, normal_stop): Remove stop_registers handling.
8838 * infrun.h (stop_registers): Remove.
8840 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8842 * infcall.c (struct dummy_frame_context_saver)
8843 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
8844 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8845 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8847 (call_function_by_hand_dummy): Move discard_cleanups of
8848 inf_status_cleanup before dummy_frame_push. Call
8849 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
8850 Use dummy_frame_context_saver_get_regs instead of stop_registers.
8851 * infcall.h (struct dummy_frame_context_saver)
8852 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8853 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8855 * infcmd.c: Include infcall.h.
8856 (get_return_value): Add parameter ctx_saver, use it instead of
8858 (print_return_value): Add parameter ctx_saver, pass it.
8859 (struct finish_command_continuation_args): Add field ctx_saver.
8860 (finish_command_continuation): Update print_return_value caller.
8861 (finish_command_continuation_free_arg): Free also ctx_saver.
8862 (finish_forward): Call dummy_frame_context_saver_setup.
8863 * inferior.h (struct dummy_frame_context_saver): New declaration.
8864 (get_return_value): Add parameter ctx_saver.
8865 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
8866 get_return_value caller.
8868 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8870 * dummy-frame.c (struct dummy_frame_dtor_list): New.
8871 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
8872 (remove_dummy_frame): Process dtor_list.
8873 (pop_dummy_frame): Process dtor_list.
8874 (register_dummy_frame_dtor): Maintain dtor_list.
8875 (find_dummy_frame_dtor): Handle dtor_list.
8876 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
8879 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8881 * compile/compile-object-run.c (do_module_cleanup): Add parameter
8883 (compile_object_run): Update do_module_cleanup caller.
8884 * dummy-frame.c: Include infcall.h.
8885 (struct dummy_frame): Update dtor comment.
8886 (remove_dummy_frame): Call dtor.
8887 (pop_dummy_frame): Update dtor caller.
8888 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
8891 2015-05-13 Joel Brobecker <brobecker@adacore.com>
8895 2015-05-13 Joel Brobecker <brobecker@adacore.com>
8897 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
8898 Xmethods now being able to specify a result type to that new
8901 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8903 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
8904 first before resizing the window.
8905 * tui/tui.c (tui_enable): Likewise.
8907 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8909 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
8910 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
8911 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
8912 dummy_dtor parameter.
8913 * infcall.h: Include dummy-frame.h.
8914 (call_function_by_hand_dummy_dtor_ftype): Remove.
8915 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
8918 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8921 * top.c (history_size_setshow_var): Change type to signed.
8922 Initialize to -2. Update documentation.
8923 (set_readline_history_size): Define.
8924 (set_history_size_command): Use it. Remove logic for handling
8926 (init_history): Use set_readline_history_size(). Test for a
8927 value of -2 instead of 0 when determining whether to set a
8928 default history size.
8929 (init_main): Decode the argument of the "size" command as a
8930 zuinteger_unlimited.
8932 2015-05-12 Doug Evans <dje@google.com>
8934 * dwarf2read.c (struct file_entry): Tweak comments.
8935 (get_debug_line_section): Tweak comments.
8937 2015-05-12 Don Breazeal <donb@codesourcery.com>
8939 * NEWS: Announce fork support in the RSP and support
8940 for fork debugging in extended mode.
8942 2015-05-12 Don Breazeal <donb@codesourcery.com>
8944 * remote.c (remote_insert_fork_catchpoint): New function.
8945 (remote_remove_fork_catchpoint): New function.
8946 (remote_insert_vfork_catchpoint): New function.
8947 (remote_remove_vfork_catchpoint): New function.
8948 (pending_fork_parent_callback): New function.
8949 (remove_new_fork_child): New function.
8950 (remote_update_thread_list): Call remote_notif_get_pending_events
8951 and remove_new_fork_child.
8952 (extended_remote_kill): Kill fork child when killing the
8953 parent before follow_fork completes.
8954 (init_extended_remote_ops): Initialize target vector with
8955 new fork catchpoint functions.
8957 2015-05-12 Don Breazeal <donb@codesourcery.com>
8959 * remote.c (remove_vfork_event_p): New function.
8960 (remote_follow_fork): Add vfork event type to event checking.
8961 (remote_parse_stop_reply): New stop reasons "vfork" and
8962 "vforkdone" for RSP 'T' Stop Reply Packet.
8964 2015-05-12 Don Breazeal <donb@codesourcery.com>
8966 * linux-nat.c (linux_nat_ptrace_options): New function.
8967 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
8968 Call linux_nat_ptrace_options and use different argument to
8969 linux_enable_event_reporting.
8970 (_initialize_linux_nat): Delete call to
8971 linux_ptrace_set_additional_flags.
8972 * nat/linux-ptrace.c (current_ptrace_options): Rename to
8973 supported_ptrace_options.
8974 (additional_flags): Delete variable.
8975 (linux_check_ptrace_features): Use supported_ptrace_options.
8976 (linux_test_for_tracesysgood, linux_test_for_tracefork):
8977 Likewise, and remove additional_flags check.
8978 (linux_enable_event_reporting): Change 'attached' argument to
8979 'options'. Use supported_ptrace_options.
8980 (ptrace_supports_feature): Change comment. Use
8981 supported_ptrace_options.
8982 (linux_ptrace_set_additional_flags): Delete function.
8983 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
8984 Delete function prototype.
8985 * remote.c (remote_fork_event_p): New function.
8986 (remote_detach_pid): New function.
8987 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
8988 if doing detach-on-fork.
8989 (remote_follow_fork): New function.
8990 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
8991 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
8992 (init_extended_remote_ops): Initialize to_follow_fork.
8994 2015-05-12 Don Breazeal <donb@codesourcery.com>
8996 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
8997 from static to extern.
8998 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
8999 * remote.c (anonymous enum): <PACKET_fork_event_feature,
9000 * PACKET_vfork_event_feature>: New enumeration constants.
9001 (remote_protocol_features): Add table entries for new packets.
9002 (remote_query_supported): Add new feature queries to qSupported
9005 2015-05-12 Gary Benson <gbenson@redhat.com>
9007 * remote.c (remote_add_inferior): Call exec_file_locate_attach
9008 for fake PIDs as well as real ones.
9009 (remote_pid_to_exec_file): Send empty annex if PID is fake.
9011 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
9013 * NEWS (Python Scripting): Mention the new gdb.Value methods.
9014 * python/py-value.c (valpy_reference_value): New function.
9015 (valpy_const_value): Likewise.
9016 (value_object_methods): Add new methods.
9017 * value.c (make_cv_value): New function.
9018 * value.h (make_cv_value): Declare.
9020 2015-05-08 Yao Qi <yao@codesourcery.com>
9021 Sandra Loosemore <sandra@codesourcery.com>
9023 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
9024 to 'lh->include_dirs' before accessing to it.
9025 (psymtab_include_file_name): Likewise.
9026 (dwarf_decode_lines_1): Likewise.
9027 (dwarf_decode_lines): Likewise.
9028 (file_file_name): Likewise.
9030 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
9032 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
9033 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
9034 (nios2_linux_rt_sigreturn_init): Adjust base address of
9037 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
9039 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
9040 "trap 31" as the breakpoint instruction on all targets.
9042 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9044 * infcmd.c (print_return_value): Remove unused declaration.
9046 2015-05-08 Joel Brobecker <brobecker@adacore.com>
9048 * dwarf2read.c (attr_to_dynamic_prop)
9049 <DW_AT_data_member_location>: Use read_type_die isntead of
9052 2015-05-08 Joel Brobecker <brobecker@adacore.com>
9054 * ada-lang.c (ada_convert_actual): Add handling of formals
9055 passed inside an aligner type.
9057 2015-05-08 Joel Brobecker <brobecker@adacore.com>
9059 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
9061 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
9064 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
9065 Print xmethod matcher status.
9067 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
9069 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
9070 register in the regcache when treating the PSWM register, and vice
9073 2015-05-07 Gary Benson <gbenson@redhat.com>
9075 * linux-thread-db.c (struct thread_db_info)
9076 <td_ta_map_id2thr_p>: Remove field.
9077 (try_thread_db_load_1): Remove initialization for the above.
9079 2015-05-07 Gary Benson <gbenson@redhat.com>
9081 * linux-thread-db.c (struct thread_db_info)
9082 <td_thr_validate_p>: Remove field.
9083 (try_thread_db_load_1): Remove initialization for the above.
9085 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
9087 * compile/compile-object-load.c (compile_object_load): Support
9090 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
9092 * compile/compile.c (compile_to_object): Make the cmd_string parameter
9093 const. Use new variables for the const compatibility.
9094 (eval_compile_command): Make the cmd_string parameter const.
9095 * compile/compile.h (eval_compile_command): Make the cmd_string
9098 2015-05-06 Joel Brobecker <brobecker@adacore.com>
9100 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
9102 * top.c (deprecated_init_ui_hook): Delete.
9103 (gdb_init): Remove handling of deprecated_init_ui_hook.
9104 * interps.c (clear_interpreter_hooks): Remove handling of
9105 deprecated_init_ui_hook.
9106 * main.c (captured_main): Update comment.
9108 2015-05-06 Joel Brobecker <brobecker@adacore.com>
9110 * solib.c (_initialize_solib): Add "info dll" alias creation.
9111 * windows-nat.c (set_windows_aliases): Delete.
9112 (_initialize_windows_nat): Remove deprecated_init_ui_hook
9114 * NEWS: Add news entry about "info dll" now being available
9117 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9119 * ada-lang.c (value_assign_to_component): Reformat and improve
9120 documentation. Remove all trailing spaces.
9122 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9124 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
9125 Stop counting inlined frames as soon as an out-of-line function
9128 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
9130 * dwarf2read.c (inherit_abstract_dies): Skip
9131 DW_TAG_GNU_call_site dies while inheriting children of an
9132 abstract DIE into a scope.
9133 (read_lexical_block_scope): Inherit abstract DIE's for
9136 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9138 * ada-valprint.c (val_print_packed_array_elements): Delete
9139 variable "len". Add a type-length check when comparing two
9140 consecutive elements of the array. Use the element's actual
9141 length in call to value_contents_eq.
9142 * ada-lang.c (ada_value_primitive_packed_val): Always return
9143 a value whose type has been resolved.
9145 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9147 * ada-lang.c (ada_value_primitive_packed_val): Recompute
9148 BIT_SIZE and LEN if the size of the resolved type is smaller
9149 than BIT_SIZE * HOST_CHAR_BIT.
9151 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9153 * ada-lang.c (ada_value_primitive_packed_val): Use a more
9154 correct address in call to value_at. Adjust call to
9155 value_address accordingly.
9157 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9159 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
9162 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9164 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
9165 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
9167 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
9168 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
9169 (resolve_dynamic_type_internal): Set pinfo.valaddr.
9170 Add handling of addr_stack->valaddr.
9171 (resolve_dynamic_type): Add "valaddr" parameter.
9172 Set pinfo.valaddr field.
9173 * ada-lang.c (ada_discrete_type_high_bound): Update call to
9174 resolve_dynamic_type.
9175 (ada_discrete_type_low_bound): Likewise.
9176 * findvar.c (default_read_var_value): Likewise.
9177 * value.c (value_from_contents_and_address): Likewise.
9179 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9181 * gdbtypes.c (resolve_dynamic_array): Use
9182 create_array_type_with_stride instead of create_array_type.
9184 2015-04-30 DJ Delorie <dj@redhat.com>
9186 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
9189 2015-04-29 Doug Evans <dje@google.com>
9192 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
9193 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
9194 EVAL_AVOID_SIDE_EFFECTS for xmethods.
9195 * extension-priv.h (struct extension_language_ops)
9196 <get_xmethod_result_type>: New member.
9197 * extension.c (get_xmethod_result_type): New function.
9198 * extension.h (get_xmethod_result_type): Declare.
9199 * python/py-xmethods.c (get_result_type_method_name): New static
9201 (py_get_result_type_method_name): Ditto.
9202 (gdbpy_get_xmethod_result_type): New function.
9203 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
9204 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
9205 * python/python.c (python_extension_ops): Add
9206 gdbpy_get_xmethod_result_type.
9207 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
9208 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
9210 (value_x_unop): Ditto.
9211 * value.c (result_type_of_xmethod): New function.
9212 * value.h (result_type_of_xmethod): Declare.
9214 2015-04-29 Gary Benson <gbenson@redhat.com>
9216 * solib.c (solib_find_1): Allow fd argument to be NULL.
9217 (exec_file_find): Update comment.
9218 (solib_find): Likewise.
9219 * exec.c (exec_file_locate_attach): Use NULL as fd
9220 argument to exec_file_find to avoid having to close
9222 * infrun.c (follow_exec): Likewise.
9224 2015-04-28 Doug Evans <dje@google.com>
9227 * python/lib/gdb/printing.py (register_pretty_printer): Handle
9228 name or __name__ attributes. Handle gdb module as first argument.
9230 2015-04-28 Doug Evans <dje@google.com>
9233 * python/py-prettyprint.c (print_children): Verify result of children
9234 iterator. Provide better error message.
9235 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
9236 * python/python.c (gdbpy_print_python_errors_p): New function.
9238 2015-04-28 Doug Evans <dje@google.com>
9240 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
9242 2015-04-28 Sasha Smundak <asmundak@google.com>
9244 * NEWS: Mention gdb.Type.optimized_out method.
9245 * python/py-type.c (typy_optimized_out): New function.
9247 2015-04-28 John Baldwin <jhb@FreeBSD.org>
9249 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9251 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9253 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
9254 (initialize_utils): Move call of init_page_info() to ...
9255 * top.c (gdb_init): ... here.
9257 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9259 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
9260 (tui_sigwinch_handler): Still update our idea of
9261 the terminal's width and height even when TUI is not active.
9263 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9265 * utils.h (set_screen_width_and_height): Declare.
9266 * utils.c (set_screen_width_and_height): Define.
9267 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
9269 2015-04-28 Gary Benson <gbenson@redhat.com>
9271 * infrun.c (solist.h): New include.
9272 (follow_exec): Use exec_file_find to prefix execd_pathname
9275 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9277 * tui/tui-source.c (tui_set_source_content): Avoid calling
9278 strcpy() when offset is 0.
9280 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9283 * tui/tui-data.c (tui_free_window): Don't free the locator
9284 window when passed an SRC_WIN or a DISASSEM_WIN.
9286 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9288 * tui/tui-data.h (struct tui_win_element): Forward-declare.
9289 (tui_win_content): Move declaration.
9290 (struct tui_gen_win_info): Give 'content' field the
9291 type tui_win_content.
9292 * tui/tui-data.c (init_content_element): Remove redundant and
9294 (tui_add_content_elements): Remove erroneous cast.
9295 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
9297 (tui_get_begin_asm_address): Likewise.
9298 * tui/tui-regs.c (tui_show_registers): Likewise.
9299 (tui_show_register_group): Likewise.
9300 (tui_display_registers_from): Likewise.
9301 (tui_check_register_values): Likewise.
9302 * tui/tui-source.c (tui_set_source_content): Likewise.
9303 (tui_set_source_content_nil): Likewise.
9304 (tui_source_is_displayed): Likewise.
9305 * tui/tui-stack.c (tui_show_locator_content): Likewise.
9306 (tui_set_locator_fullname): Likewise.
9307 (tui_set_locator_info): Likewise.
9308 (tui_show_frame_info): Likewise.
9309 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
9310 (tui_show_source_line): Likewise.
9311 (tui_horizontal_source_scroll): Likewise.
9312 (tui_update_breakpoint_info): Likewise.
9313 (tui_set_exec_info_content): Likewise.
9314 (tui_show_exec_info_content): Likewise.
9315 (tui_alloc_source_buffer): Likewise.
9316 (tui_line_is_displayed): Likewise.
9317 (tui_addr_is_displayed): Likewise.
9319 2015-04-27 John Baldwin <jhb@FreeBSD.org>
9321 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
9322 event if PL_FLAG_EXEC is set.
9323 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
9324 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
9325 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
9326 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
9327 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
9329 2015-04-27 John Baldwin <jhb@FreeBSD.org>
9331 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
9332 [TDP_RFPPWAIT] New variable fbsd_pending_children.
9333 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
9334 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
9335 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
9336 [PT_LWPINFO] (fbsd_wait): New function.
9337 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
9338 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
9339 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
9340 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
9341 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
9342 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
9343 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
9344 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
9345 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
9347 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
9348 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
9349 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
9350 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
9351 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
9352 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
9353 Set "to_post_attach" to "fbsd_post_attach".
9355 2015-04-27 John Baldwin <jhb@FreeBSD.org>
9357 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
9358 (fbsd_find_memory_regions): Mark static.
9359 (fbsd_nat_add_target): New function.
9360 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
9361 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
9362 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
9363 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
9364 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
9365 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
9367 2015-04-27 Gary Benson <gbenson@redhat.com>
9369 * objfiles.c (allocate_objfile): Do not attempt to expand name
9370 if name is a "target:" filename.
9371 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
9372 to load auto-load scripts for objfiles with "target:" filenames.
9374 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9376 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
9377 (enum s390_vector_abi_kind): New enum.
9378 (struct gdbarch_tdep)<vector_abi>: New field.
9379 (s390_effective_inner_type): Add parameter min_size. Stop
9380 unwrapping if the inner type is smaller than min_size.
9381 (s390_function_arg_float): Adjust call to
9382 s390_effective_inner_type.
9383 (s390_function_arg_vector): New function.
9384 (s390_function_arg_integer): Adjust comment.
9385 (struct s390_arg_state)<vr>: New field.
9386 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
9387 arguments according to vector ABI when appropriate.
9388 (s390_push_dummy_call): Initialize the argument state's field
9389 'vr'. Adjust calls to s390_handle_arg.
9390 (s390_register_return_value): Handle vector return values.
9391 (s390_return_value): Apply the "register" return value convention
9392 to a vector when appropriate.
9393 (s390_gdbarch_init): Initialize tdep->vector_abi.
9394 * NEWS: Announce S390 vector ABI support.
9396 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9398 * s390-linux-tdep.c (s390_return_value_convention): Remove
9399 function. Inline its logic...
9400 (s390_return_value): ...here. Instead, move the handling of the
9401 "register" return value convention...
9402 (s390_register_return_value): ...here. New function.
9404 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9407 (is_float_singleton): Remove function. Move the "singleton" part
9409 (s390_effective_inner_type): ...here. New function.
9410 (is_float_like): Remove function. Inline its logic...
9411 (s390_function_arg_float): ...here.
9412 (is_pointer_like, is_integer_like, is_struct_like): Remove
9413 functions. Inline their logic...
9414 (s390_function_arg_integer): ...here.
9415 (s390_function_arg_pass_by_reference): Remove function.
9416 (extend_simple_arg): Remove function.
9417 (alignment_of): Remove function.
9418 (struct s390_arg_state): New structure.
9419 (s390_handle_arg): New function.
9420 (s390_push_dummy_call): Move parameter placement logic to the new
9421 function s390_handle_arg. Call it for calculating the stack area
9422 sizes first, and again for actually writing the parameters.
9424 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9426 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
9427 false if the argument is zero.
9429 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
9431 * ada-lang.c (template_to_static_fixed_type): Return input type
9432 when it is already fixed. Cache the input type itself when not
9433 creating a static fixed copy. Make it explicit that we never
9434 molestate the input type.
9435 * gdbtypes.c (resolve_dynamic_struct): Reset the
9436 TYPE_TARGET_TYPE field for resolved copies.
9438 2015-04-27 Joel Brobecker <brobecker@adacore.com>
9440 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
9441 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
9442 (template_to_static_fixed_type): Call ada_check_typedef only
9445 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
9447 * cli/cli-dump.c (srec_dump_command): Add internationalization
9449 (ihex_dump_command): Likewise.
9450 (tekhex_dump_command): Likewise.
9451 (binary_dump_command): Likewise.
9452 (binary_append_command): Likewise.
9454 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
9456 * cli/cli-dump.c (verilog_cmdlist): New variable.
9457 (dump_verilog_memory): New function.
9458 (dump_verilog_value): New function.
9459 (verilog_dump_command): New function.
9460 (_initialize_cli_dump): Add new commands to support verilog dump
9462 * NEWS: Add entry for "dump verilog".
9464 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
9466 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
9467 descriptive type when there is none.
9469 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
9471 * tui/tui-win.c (tui_async_resize_screen): Call
9472 rl_resize_terminal().
9474 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
9476 * windows-nat.c (handle_output_debug_string): Don't change
9477 current_event.dwThreadId.
9478 (get_windows_debug_event): Use thread_id, rather than relying on
9479 current_event.dwThreadId being changed.
9481 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
9483 * windows-nat.c (windows_continue): Report an error if
9484 ContinueDebugEvent() fails.
9486 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
9488 * windows-nat.c (windows_resume): Fix misspelling in debug output.
9490 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
9492 * windows-nat.c (get_windows_debug_event): Replace retval with
9493 thread_id throughout. Update stale comment.
9495 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
9497 * windows-nat.c (get_windows_debug_event): Don't use ternary
9498 conditional operator.
9500 2015-04-21 Pierre Muller <muller@sourceware.org>
9503 p-exp.y (yylex): Reorganize code to return the matched pattern
9504 for a field of this.
9506 2015-04-21 Gary Benson <gbenson@redhat.com>
9508 * common/fileio.h (fileio_to_host_openflags): New declaration.
9509 * common/fileio.c (fcntl.h): New include.
9510 (fileio_to_host_openflags): New function, factored out from...
9511 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
9514 2015-04-21 Kevin Buettner <kevinb@redhat.com>
9516 * rl78-tdep.c (RL78_SP_ADDR): Define.
9517 (opc_reg_to_gdb_regnum): New static function.
9518 (rl78_analyze_prologue): Recognize instructions forming slightly
9519 more interesting prologues.
9521 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
9524 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9525 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9526 TYPE_CODE_REF types so that they are not considered as dynamic
9527 depending on the referenced type.
9528 (resolve_dynamic_type_internal): Likewise.
9530 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
9533 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9534 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9535 "top_level" parameter.
9536 (resolve_dynamic_type_internal): Remove the unused "top_level"
9537 parameter. Update call to is_dynamic_type_internal.
9538 (is_dynamic_type): Update call to is_dynamic_type_internal.
9539 (resolve_dynamic_range): Update call to
9540 resolve_dynamic_type_internal.
9541 (resolve_dynamic_union): Likewise.
9542 (resolve_dynamic_struct): Likewise.
9543 (resolve_dynamic_type): Likewise.
9545 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
9547 * breakpoint.c (update_dprintf_command_list): Remove duplicated
9550 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
9552 * reply_mig_hack.awk: Robustify parsing.
9554 * reply_mig_hack.awk: Don't bother to declare an intermediate
9555 function pointer variable.
9557 2015-04-17 Doug Evans <dje@google.com>
9559 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
9560 to "exec_displacement" to avoid confusion with inner use of the name.
9562 2015-04-17 Pedro Alves <palves@redhat.com>
9564 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
9565 if HW point of TYPE isn't supported.
9567 2015-04-17 Yao Qi <yao.qi@linaro.org>
9568 Pedro Alves <palves@redhat.com>
9570 * target.h (target_can_use_hardware_watchpoint): Update comments.
9571 Remove trailing ";".
9573 2015-04-17 Gary Benson <gbenson@redhat.com>
9575 * remote.c (remote_add_inferior): New argument try_open_exec.
9576 If nonzero, attempt to open the inferior's executable file as
9577 the main executable if no main executable is open already.
9578 All callers updated.
9579 * NEWS: Mention that GDB now supports automatic location and
9580 retrieval of executable + files from remote targets.
9582 2015-04-17 Gary Benson <gbenson@redhat.com>
9584 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
9585 * remote.c (PACKET_qXfer_exec_file): Likewise.
9586 (remote_protocol_features): Register the
9587 "qXfer:exec-file:read" feature.
9588 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
9589 (remote_pid_to_exec_file): New function.
9590 (init_remote_ops): Initialize to_pid_to_exec_file.
9591 (_initialize_remote): Register new "set/show remote
9592 pid-to-exec-file-packet" command.
9593 * NEWS: Announce new qXfer:exec-file:read packet.
9595 2015-04-17 Gary Benson <gbenson@redhat.com>
9597 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
9599 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
9600 New function, factored out from...
9601 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
9603 2015-04-17 Gary Benson <gbenson@redhat.com>
9605 * exec.c (solist.h): New include.
9606 (exec_file_locate_attach): Prefix absolute executable
9607 paths with gdb_sysroot if set.
9608 * NEWS: Mention that executable paths may be prepended
9611 2015-04-17 Gary Benson <gbenson@redhat.com>
9613 * solist.h (exec_file_find): New declaration.
9614 * solib.c (solib_find_1): New function, factored out from...
9615 (solib_find): ...here.
9616 (exec_file_find): New function.
9618 2015-04-17 Gary Benson <gbenson@redhat.com>
9620 * gdbcore.h (exec_file_locate_attach): New declaration.
9621 * exec.c (exec_file_locate_attach): New function, factored
9623 * infcmd.c (attach_command_post_wait): ...here.
9625 2015-04-17 Mike Frysinger <vapier@gentoo.org>
9627 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
9629 2015-04-16 Yao Qi <yao.qi@linaro.org>
9631 * infrun.c (maybe_software_singlestep): Declare.
9632 (displaced_step_fixup): Call maybe_software_singlestep.
9634 2015-04-15 Doug Evans <dje@google.com>
9636 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
9638 2015-04-15 Doug Evans <dje@google.com>
9640 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
9642 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
9644 * python/lib/gdb/command/unwinders.py: Add parentheses.
9646 2015-04-15 Yao Qi <yao.qi@linaro.org>
9648 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
9650 2015-04-15 Yao Qi <yao.qi@linaro.org>
9652 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
9654 2015-04-15 Yao Qi <yao.qi@linaro.org>
9656 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
9657 dsc->insn_size instead of 4.
9659 2015-04-14 Gary Benson <gbenson@redhat.com>
9661 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
9662 * minidebug.c (lzma_stat): Likewise.
9663 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
9664 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
9666 2015-04-13 Stan Shebs <stanshebs@google.com>
9668 * MAINTAINERS: Update my email address.
9670 2015-04-13 John Baldwin <jhb@FreeBSD.org>
9672 * amd64-tdep.c (amd64_target_description): New function.
9673 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
9674 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
9675 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9676 x86 extended save area.
9677 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9678 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
9679 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
9680 (_initialize_amd64fbsd_nat): Set "to_read_description" to
9681 "amd64fbsd_read_description".
9682 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
9683 (amd64fbsd_supply_xstateregset): New function.
9684 (amd64fbsd_collect_xstateregset): New function.
9685 Add "amd64fbsd_xstateregset".
9686 (amd64fbsd_iterate_over_regset_sections): New function.
9687 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
9688 "I386_FBSD_XSAVE_XCR0_OFFSET".
9689 Add "iterate_over_regset_sections" gdbarch method.
9690 Add "core_read_description" gdbarch method.
9691 * i386-tdep.c (i386_target_description): New function.
9692 * i386-tdep.h: Export i386_target_description and tdesc_i386.
9693 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
9694 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9695 x86 extended save area.
9696 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9697 * i386bsd-nat.h: Export i386bsd_xsave_len.
9698 * i386fbsd-nat.c (i386fbsd_read_description): New function.
9699 (_initialize_i386fbsd_nat): Set "to_read_description" to
9700 "i386fbsd_read_description".
9701 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
9702 (i386fbsd_core_read_description): New function.
9703 (i386fbsd_supply_xstateregset): New function.
9704 (i386fbsd_collect_xstateregset): New function.
9705 Add "i386fbsd_xstateregset".
9706 (i386fbsd_iterate_over_regset_sections): New function.
9707 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
9708 "I386_FBSD_XSAVE_XCR0_OFFSET".
9709 Add "iterate_over_regset_sections" gdbarch method.
9710 Add "core_read_description" gdbarch method.
9711 * i386fbsd-tdep.h: New file.
9713 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9715 * NEWS (Changes since GDB 7.9): Add removed -xdb.
9716 * breakpoint.c (command_line_is_silent): Remove xdb_commands
9718 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
9720 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
9722 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
9724 * defs.h (xdb_commands): Remove declaration.
9725 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
9726 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
9727 * infcmd.c (run_no_args_command, go_command): Remove.
9728 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
9729 * infrun.c (xdb_handle_command): Remove.
9730 (_initialize_infrun): Remove xdb_commands for lz and z.
9731 * main.c (xdb_commands): Remove variable.
9732 (captured_main): Remove "xdb" from long_options.
9733 (print_gdb_help): Remove --xdb from help.
9734 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
9735 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
9736 * stack.c (backtrace_full_command, args_plus_locals_info)
9737 (current_frame_command): Remove.
9738 (_initialize_stack): Remove xdb_commands for t, T and l.
9739 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
9740 * thread.c (_initialize_thread): Remove xdb_commands condition.
9741 * tui/tui-layout.c (tui_toggle_layout_command)
9742 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
9743 (_initialize_tui_layout): Remove xdb_commands for td and ts.
9744 * tui/tui-regs.c (tui_scroll_regs_forward_command)
9745 (tui_scroll_regs_backward_command): Remove.
9746 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
9747 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
9748 (_initialize_tui_win): Remove xdb_commands for U and w.
9749 * utils.c (pagination_on_command, pagination_off_command): Remove.
9750 (initialize_utils): Remove xdb_commands for am and sm.
9752 2015-04-10 Pedro Alves <palves@redhat.com>
9754 * infrun.c (displaced_step_fixup): Switch to the event ptid
9755 earlier. If the thread stopped for a watchpoint and the
9756 target/arch has non-continuable watchpoints, cancel the displaced
9758 (resume): Don't start a displaced step if in-line step-over info
9761 2015-04-10 Pedro Alves <palves@redhat.com>
9763 * infrun.c (displaced_step_in_progress): New function.
9764 (do_target_resume): Advise target to report all signals if
9767 2015-04-10 Pedro Alves <palves@redhat.com>
9770 * infrun.c (process_event_stop_test): Don't assume a step-resume
9771 is set if tp->stepped_breakpoint is true.
9773 2015-04-10 Yao Qi <yao.qi@linaro.org>
9775 * arm-tdep.c (install_alu_reg): Update comment.
9776 (thumb_copy_alu_reg): Remove local variable rn. Update
9777 debugging message. Use r2 instead of r1 in the modified
9780 2015-04-10 Pedro Alves <palves@redhat.com>
9783 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
9784 linux_displaced_step_location as gdbarch_displaced_step_location
9786 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
9787 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9788 * linux-tdep.c (linux_displaced_step_location): New function,
9789 based on ppc_linux_displaced_step_location.
9790 * linux-tdep.h (linux_displaced_step_location): New declaration.
9791 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
9792 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
9794 (ppc_linux_init_abi): Install linux_displaced_step_location as
9795 gdbarch_displaced_step_location hook, even without Cell/B.E..
9796 (_initialize_ppc_linux_tdep): Don't install
9797 ppc_linux_inferior_created as inferior_created observer.
9798 * s390-linux-tdep.c (s390_gdbarch_init): Install
9799 linux_displaced_step_location as gdbarch_displaced_step_location
9802 2015-04-09 Gary Benson <gbenson@redhat.com>
9804 * common/common-remote-fileio.h: Rename to...
9805 * common/fileio.h: ...this. Update all references.
9806 (remote_fileio_to_fio_error): Rename to...
9807 (host_to_fileio_error): ...this.
9808 (remote_fileio_to_be): Rename to...
9809 (host_to_bigendian): ...this. Update all callers.
9810 (remote_fileio_to_fio_uint): Rename to...
9811 (host_to_fileio_uint): ...this. Update all callers.
9812 (remote_fileio_to_fio_time): Rename to...
9813 (host_to_fileio_time): ...this. Update all callers.
9814 (remote_fileio_to_fio_stat): Rename to...
9815 (host_to_fileio_stat): ...this.
9816 Update all references.
9817 * common/common-remote-fileio.c: Rename to...
9818 * common/fileio.c: ...this. Update all references.
9819 (remote_fileio_to_fio_error): Rename to...
9820 (host_to_fileio_error): ...this. Update all callers.
9821 (remote_fileio_mode_to_target): Rename to...
9822 (fileio_mode_pack): ...this. Update all callers.
9823 (remote_fileio_to_fio_mode): Rename to...
9824 (host_to_fileio_mode): ...this. Update all callers.
9825 (remote_fileio_to_fio_ulong): Rename to...
9826 (host_to_fileio_ulong): ...this. Update all callers.
9827 (remote_fileio_to_fio_stat): Rename to...
9828 (host_to_fileio_stat): ...this. Update all callers.
9830 2015-04-09 Andy Wingo <wingo@igalia.com>
9832 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
9833 (frame_functions): Bind gdbscm_frame_read_register to
9834 frame-read-register.
9835 * guile/lib/gdb.scm (frame-read-register): Export.
9837 2015-04-09 Gary Benson <gbenson@redhat.com>
9839 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
9841 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
9842 New function, factored out the named functions below.
9843 * inf-child.c (gdb/fileio.h): Remove include.
9844 (common-remote-fileio.h): New include.
9845 (inf_child_errno_to_fileio_error): Remove function. Update
9846 all callers to use remote_fileio_to_fio_error.
9847 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
9849 2015-04-09 Andy Wingo <wingo@igalia.com>
9851 * MAINTAINERS (Write After Approval): Add Andy Wingo.
9853 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
9855 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
9856 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
9857 * configure: Regenerated.
9859 2015-04-09 Pedro Alves <palves@redhat.com>
9861 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
9862 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
9863 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
9864 * gnulib/import/Makefile.am: Update.
9865 * gnulib/import/Makefile.in: Update.
9866 * gnulib/import/m4/gnulib-cache.m4: Update.
9867 * gnulib/import/m4/gnulib-comp.m4: Update.
9868 * gnulib/import/m4/strtok_r.m4: New file.
9869 * gnulib/import/strtok_r.c: New file.
9871 2015-04-09 Pedro Alves <palves@redhat.com>
9873 * gnulib/update-gnulib.sh (aclocal version check): Filter out
9874 "called too early to check prototype".
9876 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
9879 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
9880 use a caching mechanism. Adjust comments and code to reflect
9881 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
9882 (cmdpy_completer_handle_brkchars): Adjust call to
9883 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
9884 (cmdpy_completer): Likewise.
9886 2015-04-08 Yao Qi <yao.qi@linaro.org>
9888 * spu-tdep.c (spu_gdbarch_init): Don't call
9889 set_gdbarch_cannot_step_breakpoint.
9891 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
9893 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
9895 2015-04-07 Pedro Alves <palves@redhat.com>
9897 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
9898 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
9899 (delete_exited_threads): New declaration.
9900 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
9901 * linux-nat.c (linux_nat_update_thread_list): New function.
9902 (linux_nat_add_target): Install it.
9903 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
9904 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
9905 (delete_exited_threads): New function.
9907 2015-04-07 Pedro Alves <pedro@codesourcery.com>
9909 * infrun.c (resume) <displaced stepping debug output>: Get the
9910 leader thread's regcache, not resume_ptid's.
9912 2015-04-06 Doug Evans <xdje42@gmail.com>
9914 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
9916 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
9917 Include symbol domain in debugging output.
9919 2015-04-06 Pedro Alves <palves@redhat.com>
9920 Bernd Edlinger <bernd.edlinger@hotmail.de>
9922 * configure.ac: Remove the mingw32-specific stub-termcap.o
9923 fallback, and instead fallback to the stub termcap on all hosts.
9924 * configure: Regenerate.
9925 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
9928 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9930 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9931 "top_level" parameter.
9932 (resolve_dynamic_type_internal): Remove the unused "top_level"
9933 parameter. Update call to is_dynamic_type_internal.
9934 (is_dynamic_type): Update call to is_dynamic_type_internal.
9935 (resolve_dynamic_range): Update call to
9936 resolve_dynamic_type_internal.
9937 (resolve_dynamic_union): Likewise.
9938 (resolve_dynamic_struct): Likewise.
9939 (resolve_dynamic_type): Likewise.
9941 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9943 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9944 TYPE_CODE_REF types so that they are not considered as dynamic
9945 depending on the referenced type.
9946 (resolve_dynamic_type_internal): Likewise.
9948 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
9950 * Makefile.in (top_srcdir): New.
9951 * configure: Regenerated.
9953 2015-04-02 Gary Benson <gbenson@redhat.com>
9955 * NEWS: Announce the new default sysroot of "target:".
9957 2015-04-02 Gary Benson <gbenson@redhat.com>
9959 * main.c (captured_main): Set gdb_sysroot to "target:"
9960 if not otherwise set.
9962 2015-04-02 Gary Benson <gbenson@redhat.com>
9964 * exec.c (exec_file_attach): Support "target:" filenames.
9966 2015-04-02 Gary Benson <gbenson@redhat.com>
9968 * solib.c (solib_find): Strip "target:" prefix from sysroot
9969 if accessing local files.
9971 2015-04-02 Gary Benson <gbenson@redhat.com>
9973 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
9974 checks and error messages.
9976 2015-04-02 Gary Benson <gbenson@redhat.com>
9978 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
9979 (remote_filename_p): Remove declaration.
9980 (remote_bfd_open): Likewise.
9981 * remote.c (remote_bfd_iovec_open): Remove function.
9982 (remote_bfd_iovec_close): Likewise.
9983 (remote_bfd_iovec_pread): Likewise.
9984 (remote_bfd_iovec_stat): Likewise.
9985 (remote_filename_p): Likewise.
9986 (remote_bfd_open): Likewise.
9987 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
9988 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
9989 (gdb_bfd_open_maybe_remote): Remove function.
9990 (symfile_bfd_open): Replace remote filename check with
9991 target filename check.
9992 (reread_symbols): Use gdb_bfd_open.
9993 * build-id.c (gdbcore.h): New include.
9994 (build_id_to_debug_bfd): Use gdb_bfd_open.
9995 * infcmd.c (attach_command_post_wait): Remove remote filename
9997 * solib.c (solib_find): Replace remote-specific handling with
9998 target-specific handling. Update comments where necessary.
9999 (solib_bfd_open): Replace remote-specific handling with
10000 target-specific handling.
10001 (gdb_sysroot_changed): New function.
10002 (_initialize_solib): Call the above when gdb_sysroot changes.
10003 * windows-tdep.c (gdbcore.h): New include.
10004 (windows_xfer_shared_library): Use gdb_bfd_open.
10006 2015-04-02 Gary Benson <gbenson@redhat.com>
10008 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
10009 (is_target_filename): New declaration.
10010 (gdb_bfd_has_target_filename): Likewise.
10011 (gdb_bfd_open): Update documentation comment.
10012 * gdb_bfd.c (target.h): New include.
10013 (gdb/fileio.h): Likewise.
10014 (is_target_filename): New function.
10015 (gdb_bfd_has_target_filename): Likewise.
10016 (fileio_errno_to_host): Likewise.
10017 (gdb_bfd_iovec_fileio_open): Likewise.
10018 (gdb_bfd_iovec_fileio_pread): Likewise.
10019 (gdb_bfd_iovec_fileio_close): Likewise.
10020 (gdb_bfd_iovec_fileio_fstat): Likewise.
10021 (gdb_bfd_open): Use target fileio to access paths prefixed
10022 with "target:" where necessary.
10024 2015-04-02 Gary Benson <gbenson@redhat.com>
10026 * target.h (struct target_ops) <to_filesystem_is_local>:
10028 (target_filesystem_is_local): New macro.
10029 * target-delegates.c: Regenerate.
10030 * remote.c (remote_filesystem_is_local): New function.
10031 (init_remote_ops): Initialize to_filesystem_is_local.
10033 2015-04-02 Gary Benson <gbenson@redhat.com>
10035 * target.h (struct target_ops) <to_fileio_fstat>: New field.
10036 (target_fileio_fstat): New declaration.
10037 * target.c (target_fileio_fstat): New function.
10038 * inf-child.c (inf_child_fileio_fstat): Likewise.
10039 (inf_child_target): Initialize to_fileio_fstat.
10040 * remote.c (init_remote_ops): Likewise.
10042 2015-04-01 Sasha Smundak <asmundak@google.com>
10044 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
10045 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
10046 (py-unwind.o): New recipe.
10047 * NEWS: mention Python frame unwinding.
10048 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
10049 gdb/unwinder.py and gdb/command/unwinder.py
10050 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
10052 (execute_unwinders): New function.
10053 * python/lib/gdb/command/unwinders.py: New file.
10054 * python/lib/gdb/unwinder.py: New file.
10055 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
10056 (objfpy_dealloc): Decrement frame_unwinders reference count.
10057 (objfpy_initialize): Create frame_unwinders list.
10058 (objfpy_get_frame_unwinders): New function.
10059 (objfpy_set_frame_unwinders): Ditto.
10060 (objfile_getset): Add frame_unwinders attribute to Objfile.
10061 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
10062 (pspy_dealloc): Decrement frame_unwinders reference count.
10063 (pspy_initialize): Create frame_unwinders list.
10064 (pspy_get_frame_unwinders): New function.
10065 (pspy_set_frame_unwinders): Ditto.
10066 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
10067 * python/py-unwind.c: New file.
10068 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
10069 (objpy_get_frame_unwinders): New prototype.
10070 (gdbpy_initialize_unwind): New prototype.
10071 * python/python.c (gdbpy_apply_type_printers): Call
10072 gdbpy_initialize_unwind.
10074 2015-04-01 Pedro Alves <palves@redhat.com>
10076 * infrun.c (resume): Check currently_stepping after clearing
10077 stepped_breakpoint, not before.
10079 2015-04-01 Pedro Alves <palves@redhat.com>
10081 * infrun.c (print_target_wait_results): Print all the ptid
10084 2015-04-01 Pedro Alves <palves@redhat.com>
10086 * infrun.c (keep_going): Also discard cleanups if inserting
10089 2015-04-01 Pedro Alves <palves@redhat.com>
10091 * infrun.c (wait_for_inferior): Install the
10092 finish_thread_state_cleanup cleanup across the whole function, not
10093 just around handle_inferior_event.
10095 2015-04-01 Pedro Alves <palves@redhat.com>
10097 * infrun.c (resume) <step past permanent breakpoint>: Use
10100 2015-04-01 Pedro Alves <palves@redhat.com>
10102 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
10104 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
10106 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
10108 2015-04-01 Pedro Alves <palves@redhat.com>
10110 * linux-thread-db.c (record_thread): Readd the thread to gdb's
10111 list if it was marked exited.
10113 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
10115 * configure: Regenerated.
10117 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
10118 Jan Kratochvil <jan.kratochvil@redhat.com>
10119 Oleg Nesterov <oleg@redhat.com>
10122 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
10123 New enum identifying the various options of the coredump_filter
10125 (struct smaps_vmflags): New struct.
10126 (use_coredump_filter): New variable.
10127 (decode_vmflags): New function.
10128 (mapping_is_anonymous_p): Likewise.
10129 (dump_mapping_p): Likewise.
10130 (linux_find_memory_regions_full): New variables
10131 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
10132 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
10133 parsing of its information. Implement memory mapping filtering
10134 based on its contents.
10135 (show_use_coredump_filter): New function.
10136 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
10137 * NEWS: Mention the possibility of using the
10138 '/proc/PID/coredump_filter' file when generating a corefile.
10139 Mention new command 'set use-coredump-filter'.
10141 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
10143 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
10144 read_memory_unsigned_integer.
10146 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
10148 * Makefile.in (ZLIB): New.
10149 (ZLIBINC): Likewise.
10150 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
10151 (CLIBS): Add $(ZLIB).
10152 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
10154 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
10155 * top.c (print_gdb_configuration): Remove --with-zlib and
10157 * config.in: Regenerated.
10158 * configure: Likewise.
10160 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
10162 * NEWS: Mention info os cpus support.
10163 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
10164 (struct osdata_type): Add cpus entry, reorder the entries in
10165 alphabetical order.
10167 2015-03-31 Matthias Klose <doko@ubuntu.com>
10169 * compile/compile.c (compile_to_object): Allow triplets with or
10170 without vendor set.
10172 2015-03-30 Doug Evans <dje@google.com>
10175 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
10176 klass in VAR_DOMAIN.
10178 2015-03-30 Gary Benson <gbenson@redhat.com>
10180 * remote.c (remote_mourn_1): Remove function. Update all callers
10181 to use remote_mourn.
10182 (extended_remote_mourn_1): Remove function. Update all callers
10183 to use extended_remote_mourn.
10184 (extended_remote_attach_1): Remove function. Update all callers
10185 to use extended_remote_attach.
10187 2015-03-28 James Bowman <james.bowman@ftdichip.com>
10189 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
10190 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
10191 (ALLDEPFILES): Add ft32-tdep.c.
10192 * configure.tgt: Add FT32 entry.
10193 * ft32-tdep.c: New file, FT32 target-dependent code.
10194 * ft32-tdep.h: New file, FT32 target-dependent code.
10196 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10199 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10201 * printcmd.c (print_command_1): Move expr variable scope.
10203 2015-03-27 Joel Brobecker <brobecker@adacore.com>
10205 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
10207 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
10209 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
10212 2015-03-26 Joel Brobecker <brobecker@adacore.com>
10214 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
10215 exception raised while parsing the probe arguments.
10216 Force parsing to be done using the C language parser.
10217 * expression.h (parse_expression_with_language): Declare.
10218 * parse.c (parse_expression_with_language): New function.
10220 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
10222 * MAINTAINERS (Write After Approval): Add "Jon Turney".
10224 2015-03-26 Andy Wingo <wingo@igalia.com>
10227 * dwarf2read.c (struct partial_die_info): Add has_const_value
10229 (add_partial_symbol): Don't punt on symbols that have const_value
10231 (read_partial_die): Detect DW_AT_const_value.
10233 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10236 * printcmd.c (print_command_1): Move expr variable scope.
10238 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10241 * printcmd.c (validate_format): Make the parameter cmdname const.
10243 2015-03-26 Don Breazeal <donb@codesourcery.com>
10245 * remote.c (_initialize_remote): Update comment.
10247 2015-03-26 Pedro Alves <palves@redhat.com>
10248 Jon TURNEY <jon.turney@dronecode.org.uk>
10250 * coffread.c (coff_symfile_read): When constructing the name of an
10251 import stub symbol from import symbol for amd64, only skip the
10252 char after _imp_ if the target is underscored (like i386) and the
10253 char is indeed the target's leading char.
10255 2015-03-25 Pedro Alves <palves@redhat.com>
10257 * target.h <to_async>: Replace 'callback' and 'context' parameters
10258 with boolean 'enable' parameter.
10259 (target_async): Replace CALLBACK and CONTEXT parameters with
10260 boolean ENABLE parameter.
10261 * inf-loop.c (inferior_event_handler): Adjust.
10262 * linux-nat.c (linux_nat_attach, linux_nat_resume)
10263 (linux_nat_resume): Adjust.
10264 (async_client_callback, async_client_context): Delete.
10265 (handle_target_event): Call inferior_event_handler directly.
10266 (linux_nat_async): Replace 'callback' and 'context' parameters
10267 with boolean 'enable' parameter. Adjust. Remove references to
10268 async_client_callback and async_client_context.
10269 (linux_nat_close): Adjust.
10270 * record-btrace.c (record_btrace_async): Replace 'callback' and
10271 'context' parameters with boolean 'enable' parameter. Adjust.
10272 (record_btrace_resume): Adjust.
10273 * record-full.c (record_full_async): Replace 'callback' and
10274 'context' parameters with boolean 'enable' parameter. Adjust.
10275 (record_full_resume, record_full_core_resume): Adjust.
10276 * remote.c (struct remote_state) <async_client_callback,
10277 async_client_context>: Delete fields.
10278 (remote_start_remote, extended_remote_attach_1, remote_resume)
10279 (extended_remote_create_inferior): Adjust.
10280 (remote_async_serial_handler): Call inferior_event_handler
10282 (remote_async): Replace 'callback' and 'context' parameters with
10283 boolean 'enable' parameter. Adjust.
10284 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
10286 * target-delegates.c: Regenerate.
10288 2015-03-25 Gary Benson <gbenson@redhat.com>
10289 Pedro Alves <palves@redhat.com>
10291 * target.c (fileio_ft_t): New typedef, define object vector.
10292 (fileio_fhandles): New static variable.
10293 (is_closed_fileio_fh): New macro.
10294 (lowest_closed_fd): New static variable.
10295 (acquire_fileio_fd): New function.
10296 (release_fileio_fd): Likewise.
10297 (fileio_fd_to_fh): New macro.
10298 (target_fileio_open): Wrap the file descriptor on success.
10299 (target_fileio_pwrite): Updated to use wrapped file descriptor.
10300 (target_fileio_pread): Likewise.
10301 (target_fileio_close): Likewise.
10303 2015-03-24 Pedro Alves <palves@redhat.com>
10305 * thread.c (thread_apply_all_command): Take exited threads into
10308 2015-03-24 Pedro Alves <palves@redhat.com>
10310 * infrun.c (resume, proceed): Mention
10311 switch_back_to_stepped_thread, not switch_back_to_stepping.
10313 2015-03-24 Pedro Alves <palves@redhat.com>
10315 * infrun.c (user_visible_resume_ptid): Rewrite going from
10316 most-locked to unlocked instead of the opposite. Move comment ...
10317 * infrun.h (user_visible_resume_ptid): ... here.
10319 2015-03-24 Pedro Alves <palves@redhat.com>
10321 * linux-nat.c (linux_nat_resume): Output debug logs before trying
10322 to resume the event lwp. Use the lwp's ptid instead of the passed
10323 in (maybe wildcard) ptid.
10324 (stop_wait_callback): Tweak debug log output.
10325 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
10327 (linux_nat_filter_event): In debug output, distinguish a
10328 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
10329 before trying to resume the lwp.
10331 2015-03-24 Joel Brobecker <brobecker@adacore.com>
10333 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
10334 pointer indirection.
10335 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
10336 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
10338 2015-03-24 Joel Brobecker <brobecker@adacore.com>
10340 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
10341 Renames DYN_ATTR_DATA_LOCATION.
10342 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
10343 DYN_ATTR_DATA_LOCATION.
10344 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
10345 instead of DYN_ATTR_DATA_LOCATION.
10347 2015-03-24 Pedro Alves <palves@redhat.com>
10349 * breakpoint.c (until_break_command): Adjust call to proceed.
10350 * gdbthread.h (struct thread_control_state) <stepping_command>:
10352 * infcall.c (run_inferior_call): Adjust call to proceed.
10353 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
10354 Adjust calls to proceed.
10355 (set_step_frame): Set the current thread's step_start_function
10357 (step_once): Adjust calls to proceed.
10358 (jump_command, signal_command, until_next_command)
10359 (finish_backward, finish_forward, proceed_after_attach_callback)
10360 (attach_command_post_wait): Adjust calls to proceed.
10361 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
10362 (do_target_resume): New function, factored out from ...
10363 (resume): ... here. Remove 'step' parameter. Instead, check
10364 currently_stepping to determine whether the thread should be
10366 (proceed): Remove 'step' parameter and don't set the thread's
10367 step_start_function here. Adjust call to 'resume'.
10368 (handle_inferior_event): Adjust calls to 'resume'.
10369 (switch_back_to_stepped_thread): Use do_target_resume instead of
10371 (keep_going): Adjust calls to 'resume'.
10372 * infrun.h (proceed): Remove 'step' parameter.
10373 (resume): Likewise.
10374 * windows-nat.c (do_initial_windows_stuff): Adjust call to
10376 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
10378 2015-03-24 Pedro Alves <palves@redhat.com>
10380 * gdbthread.h (struct thread_control_state) <stepping_command>:
10382 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
10383 the thread's stepping_command field.
10384 * infrun.c (resume): Check the thread's stepping_command flag to
10385 determine which threads should be resumed. Rename 'entry_step'
10386 local to user_step.
10387 (clear_proceed_status_thread): Clear 'stepping_command'.
10388 (schedlock_applies): Change parameter type to struct thread_info
10390 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
10391 (switch_back_to_stepped_thread): Adjust calls to
10392 'schedlock_applies'.
10393 (_initialize_infrun): Adjust "set scheduler-locking step" help.
10395 2015-03-24 Pedro Alves <palves@redhat.com>
10397 * infrun.c (step_start_function): Delete and ...
10398 * gdbthread.h (struct thread_control_state) <step_start_function>:
10399 ... now a field here.
10400 * infrun.c (clear_proceed_status_thread): Clear the thread's
10401 step_start_function.
10402 (proceed, process_event_stop_test, print_stop_event): Adjust.
10404 2015-03-24 Pedro Alves <palves@redhat.com>
10406 * infrun.c (proceed): No longer handle negative step.
10408 2015-03-24 Gary Benson <gbenson@redhat.com>
10410 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
10411 (x86_linux_prepare_to_resume): Likewise.
10412 * x86-linux-nat.c (x86_linux_new_thread):
10413 Moved to nat/x86-linux.c.
10414 (x86_linux_prepare_to_resume): Likewise.
10415 * nat/x86-linux.c (x86_linux_new_thread): New function.
10416 (x86_linux_prepare_to_resume): Likewise.
10418 2015-03-24 Gary Benson <gbenson@redhat.com>
10420 * nat/x86-linux-dregs.h: New file.
10421 * nat/x86-linux-dregs.c: Likewise.
10422 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
10423 (x86-linux-dregs.o): New rule.
10424 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
10425 * config/i386/linux64.mh (NATDEPFILES): Likewise.
10426 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
10427 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10428 (x86_linux_dr_get): Likewise.
10429 (x86_linux_dr_set): Likewise.
10430 (x86_linux_dr_get_addr): Likewise.
10431 (x86_linux_dr_get_control): Likewise.
10432 (x86_linux_dr_get_status): Likewise.
10433 (update_debug_registers_callback): Likewise.
10434 (x86_linux_dr_set_control): Likewise.
10435 (x86_linux_dr_set_addr): Likewise.
10436 (x86_linux_update_debug_registers): Likewise.
10438 2015-03-24 Gary Benson <gbenson@redhat.com>
10440 * x86-linux-nat.c (x86_linux_update_debug_registers):
10441 New function, factored out from...
10442 (x86_linux_prepare_to_resume): ...this.
10444 2015-03-24 Gary Benson <gbenson@redhat.com>
10446 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
10447 (x86_linux_dr_set): Likewise.
10448 (x86_linux_dr_get_addr): Likewise.
10449 (x86_linux_dr_get_control): Likewise.
10450 (x86_linux_dr_get_status): Likewise.
10451 (update_debug_registers_callback): Likewise.
10452 (x86_linux_dr_set_control): Likewise.
10453 (x86_linux_dr_set_addr): Likewise.
10454 (x86_linux_prepare_to_resume): Likewise.
10455 (x86_linux_new_thread): Likewise.
10457 2015-03-24 Gary Benson <gbenson@redhat.com>
10459 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
10460 (x86_linux_new_thread): Rename argument.
10462 2015-03-24 Gary Benson <gbenson@redhat.com>
10464 * nat/x86-linux.h: New file.
10465 * nat/x86-linux.c: Likewise.
10466 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
10467 (x86-linux.o): New rule.
10468 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
10469 * config/i386/linux64.mh (NATDEPFILES): Likewise.
10470 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
10471 (lwp_set_arch_private_info): New declaration.
10472 (lwp_arch_private_info): Likewise.
10473 * linux-nat.c (lwp_set_arch_private_info): New function.
10474 (lwp_arch_private_info): Likewise.
10475 * x86-linux-nat.c: Include nat/x86-linux.h.
10476 (arch_lwp_info): Removed structure.
10477 (update_debug_registers_callback):
10478 Use lwp_set_debug_registers_changed.
10479 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10480 and lwp_set_debug_registers_changed.
10481 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10483 2015-03-24 Gary Benson <gbenson@redhat.com>
10485 * nat/linux-nat.h (ptid_of_lwp): New declaration.
10486 (lwp_is_stopped): Likewise.
10487 (lwp_stop_reason): Likewise.
10488 * linux-nat.c (ptid_of_lwp): New function.
10489 (lwp_is_stopped): Likewise.
10490 (lwp_is_stopped_by_watchpoint): Likewise.
10491 * x86-linux-nat.c (update_debug_registers_callback):
10492 Use lwp_is_stopped.
10493 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
10496 2015-03-24 Gary Benson <gbenson@redhat.com>
10498 * linux-nat.h (linux_stop_lwp): Move declaration to...
10499 * nat/linux-nat.h (linux_stop_lwp): New declaration.
10501 2015-03-24 Gary Benson <gbenson@redhat.com>
10503 * linux-nat.h: Include nat/linux-nat.h.
10504 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
10505 * nat/linux-nat.h (struct lwp_info): New forward declaration.
10506 (iterate_over_lwps_ftype): New typedef.
10507 (iterate_over_lwps): New declaration.
10508 * linux-nat.h (iterate_over_lwps): Update comment. Use
10509 iterate_over_lwps_ftype. Update callback return value check.
10511 2015-03-24 Gary Benson <gbenson@redhat.com>
10513 * x86-nat.h (x86_debug_reg_state): Move declaration to...
10514 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
10516 2015-03-24 Gary Benson <gbenson@redhat.com>
10518 * nat/linux-nat.h (current_lwp_ptid): New declaration.
10519 * linux-nat.c (current_lwp_ptid): New function.
10520 * x86-linux-nat.c: Include nat/linux-nat.h.
10521 (x86_linux_dr_get_addr): Use current_lwp_ptid.
10522 (x86_linux_dr_get_control): Likewise.
10523 (x86_linux_dr_get_status): Likewise.
10524 (x86_linux_dr_set_control): Likewise.
10525 (x86_linux_dr_set_addr): Likewise.
10527 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
10529 PR breakpoints/16466
10530 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
10532 2015-03-23 Joel Brobecker <brobecker@adacore.com>
10534 * ser-mingw.c (ser_windows_setparity): Fix indentation.
10535 * ser-unix.c (hardwire_setparity): Likewise.
10537 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
10539 * NEWS: Mention set/show serial parity command.
10540 * monitor.c (monitor_open): Call serial_setparity.
10541 * remote.c (remote_open_1): Likewise.
10542 * ser-base.c (ser_base_serparity): New function.
10543 * ser-base.h (ser_base_setparity): Add declaration.
10544 * ser-go32.c (dos_ops): Set "setparity" field.
10545 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
10547 (ser_windows_setparity): New function.
10548 (hardwire_ops): Add ser_windows_setparity.
10549 (tty_ops): Add NULL for setparity field.
10550 (pipe_ops): Add ser_base_setparity.
10551 (tcp_ops): Likewise.
10552 * ser-pipe.c (pipe_ops): Likewise.
10553 * ser-tcp.c (tcp_ops): Likewise.
10554 * ser-unix.c (hardwire_setparity): Add declaration.
10555 (hardwire_raw): Don't reset PARENB flag.
10556 (hardwire_setparity): New function.
10557 (hardwire_ops): Add hardwire_setparity.
10558 * serial.c (serial_setparity): New function.
10559 (serial_parity): New global.
10560 (parity_none, parity_odd, parity_even, parity_enums, parity):
10561 New static globals.
10562 (set_parity): New function.
10563 (_initialize_serial): Add set/show serial parity commands.
10564 * serial.h (GDBPARITY_NONE): Define.
10565 (GDBPARITY_ODD): Define.
10566 (GDBPARITY_EVEN): Define.
10567 (serial_setparity) Add declaration.
10568 (struct serial_ops): Add setparity field.
10569 * target.h (serial_parity): Add declaration.
10571 2015-03-23 Keith Seitz <keiths@redhat.com>
10573 * linespec.c (linespec_lexer_lex_keyword): Update comment.
10575 2015-03-23 Keith Seitz <keiths@redhat.com>
10577 * breakpoint.c (parse_breakpoint_sals): Use
10578 linespec_lexer_lex_keyword to ascertain if the user specified
10580 * linespec.c [IF_KEYWORD_INDEX]: Define.
10581 (linespec_lexer_lex_keyword): Export.
10582 (struct ls_parser) <keyword_ok>: Remove.
10583 A keyword is only a keyword if not followed by another keyword.
10584 (linespec_lexer_lex_one): Remove keyword_ok handling.
10585 Add comment explaining why the parsing stream is not advanced
10586 when a keyword is seen.
10587 (parse_linespec): Remove parser->keyword_ok.
10588 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
10590 2015-03-23 Keith Seitz <keiths@redhat.com>
10593 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
10594 if we find a static method with DW_AT_vtable_elem_location.
10596 2015-03-21 Eli Zaretskii <eliz@gnu.org>
10598 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
10599 before the second loop, to avoid undefined behavior. Reported by
10600 Anton Blanchard <anton@samba.org>.
10602 2015-03-20 Keven Boell <keven.boell@intel.com>
10604 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
10605 data_location usage to linked list.
10606 (resolve_dynamic_type_internal): Adapt data_location to
10608 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
10609 (copy_type_recursive, copy_type): Add copy of linked list.
10610 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
10611 (struct dynamic_prop_list): New struct.
10612 * dwarf2read.c (set_die_type): Set data_location data.
10614 2015-03-20 Pedro Alves <palves@redhat.com>
10616 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
10617 inner block and make it const.
10618 * machoread.c (get_archive_prefix_len): Make "lparen" const.
10620 2015-03-20 Pedro Alves <palves@redhat.com>
10622 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
10623 * breakpoint.h (set_breakpoint_condition): Update declaration.
10625 2015-03-20 Pedro Alves <palves@redhat.com>
10627 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
10629 2015-03-20 Pedro Alves <palves@redhat.com>
10631 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
10633 2015-03-20 Pedro Alves <palves@redhat.com>
10635 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
10637 2015-03-20 Pedro Alves <palves@redhat.com>
10639 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
10640 (nto_init_solib_absolute_prefix): Likewise.
10642 2015-03-20 Pedro Alves <palves@redhat.com>
10644 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
10645 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
10647 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10649 * config/djgpp/README: Remove gdb.hp.
10651 2015-03-20 Yao Qi <yao.qi@linaro.org>
10653 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
10654 set_gdbarch_cannot_step_breakpoint.
10656 2015-03-19 Pedro Alves <palves@redhat.com>
10658 * linux-nat.c (linux_resume_one_lwp): Rename to ...
10659 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
10660 instead call perror_with_name.
10661 (check_ptrace_stopped_lwp_gone): New function.
10662 (linux_resume_one_lwp): Reimplement as wrapper around
10663 linux_resume_one_lwp_throw that swallows errors if the LWP is
10665 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
10666 swallows errors if the LWP is gone. Use
10667 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
10669 2015-03-19 Pedro Alves <palves@redhat.com>
10671 * linux-nat.c (status_callback): Return early if the LWP has no
10674 2015-03-19 Pedro Alves <palves@redhat.com>
10676 * linux-nat.c (select_event_lwp_callback): Update comment to no
10677 longer mention SIGTRAP.
10679 2015-03-18 Tristan Gingold <gingold@adacore.com>
10681 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
10682 redirection code to ...
10683 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
10684 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
10686 2015-03-18 Gary Benson <gbenson@redhat.com>
10688 (remote_protocol_features): Remove the "vFile:fstat" feature.
10689 (remote_hostio_fstat): Probe for "vFile:fstat" support.
10691 2015-03-11 Yao Qi <yao.qi@linaro.org>
10694 * aarch64-linux-tdep.c: Include xml-syscall.h
10695 (aarch64_linux_get_syscall_number): New function.
10696 (aarch64_linux_init_abi): Call
10697 set_gdbarch_get_syscall_number.
10698 * syscalls/aarch64-linux.xml: New file.
10700 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
10702 * ser-base.h (ser_base_setstopbits): Change second argument name
10703 from "rate" to "num".
10705 2015-03-17 Gary Benson <gbenson@redhat.com>
10706 Luke Allardyce <lukeallardyce@gmail.com>
10709 * common/common-remote-fileio.h (sys/stat.h): New include.
10710 (stuct stat): Remove forward declaration.
10712 2015-03-16 John Baldwin <jhb@FreeBSD.org>
10714 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
10715 before writing core register notes.
10717 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
10718 Pedro Alves <palves@redhat.com>
10720 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
10721 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
10722 (tgoto): Wrap with extern "C".
10724 2015-03-16 Pedro Alves <palves@redhat.com>
10725 Yuanhui Zhang <asmwarrior@gmail.com>
10727 * stub-termcap.c (tputs): Change prototype.
10729 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
10730 Pedro Alves <palves@redhat.com>
10732 * windows-nat.c (struct thread_info_struct): Rename to ...
10733 (struct windows_thread_info_struct): ... this.
10734 (thread_info): Rename to ...
10735 (windows_thread_info): ... this.
10738 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10739 Pedro Alves <palves@redhat.com>
10741 * NEWS: New Removed targets and native configurations.
10743 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10746 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
10747 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
10748 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
10749 ia64-hpux-tdep.h, solib-ia64-hpux.h.
10750 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
10751 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
10752 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
10754 * config/ia64/hpux.mh: Remove file.
10755 * config/pa/hpux.mh: Remove file.
10756 * configure: Rebuilt.
10757 * configure.ac (dlgetmodinfo, somread.o): Remove.
10758 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10759 (ia64-*-hpux*): Remove its float format exception.
10760 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10761 * hppa-hpux-nat.c: Remove file.
10762 * hppa-hpux-tdep.c: Remove file.
10763 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
10764 Move them here from hppa-tdep.h
10765 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
10766 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
10767 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
10768 Move them to hppa-tdep.c.
10769 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
10771 * ia64-hpux-nat.c: Remove file.
10772 * ia64-hpux-tdep.c: Remove file.
10773 * ia64-hpux-tdep.h: Remove file.
10774 * inf-ttrace.c: Remove file.
10775 * inf-ttrace.h: Remove file.
10776 * solib-ia64-hpux.c: Remove file.
10777 * solib-ia64-hpux.h: Remove file.
10778 * solib-pa64.c: Remove file.
10779 * solib-pa64.h: Remove file.
10780 * solib-som.c: Remove file.
10781 * solib-som.h: Remove file.
10782 * somread.c: Remove file.
10784 2015-03-13 John Baldwin <jhb@FreeBSD.org>
10786 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
10787 * config.in: Regenerate.
10788 * configure: Regenerate.
10789 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
10791 (fbsd_find_memory_regions): Use kinfo_getvmmap to
10792 enumerate memory regions if present.
10794 2015-03-13 John Baldwin <jhb@FreeBSD.org>
10796 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
10797 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
10799 (i386fbsd_sigtramp_p): Likewise.
10801 2015-03-12 John Baldwin <jhb@FreeBSD.org>
10803 * MAINTAINERS (Write After Approval): Add John Baldwin.
10805 2015-03-12 Gary Benson <gbenson@redhat.com>
10807 * solib.c (_initialize_solib): Make "set/show sysroot" use
10808 add_setshow_optional_filename_cmd so it can be restored to
10809 empty after being set.
10811 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10813 * Makefile.in (SFILES): New source break-catch-syscall.c.
10814 (COMMON_OBS): New object break-catch-syscall.o.
10815 * break-catch-syscall.c: New file.
10816 * breakpoint.c: Remove inclusion of "xml-syscall.h".
10817 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
10818 (struct syscall_catchpoint): Likewise.
10819 (dtor_catch_syscall): Likewise.
10820 (catch_syscall_inferior_data): Likewise.
10821 (struct catch_syscall_inferior_data): Likewise.
10822 (get_catch_syscall_inferior_data): Likewise.
10823 (catch_syscall_inferior_data_cleanup): Likewise.
10824 (insert_catch_syscall): Likewise.
10825 (remove_catch_syscall): Likewise.
10826 (breakpoint_hit_catch_syscall): Likewise.
10827 (print_it_catch_syscall): Likewise.
10828 (print_one_catch_syscall): Likewise.
10829 (print_mention_catch_syscall): Likewise.
10830 (print_recreate_catch_syscall): Likewise.
10831 (catch_syscall_breakpoint_ops): Likewise.
10832 (syscall_catchpoint_p): Likewise.
10833 (create_syscall_event_catchpoint): Likewise.
10834 (catch_syscall_split_args): Likewise.
10835 (catch_syscall_command_1): Likewise.
10836 (is_syscall_catchpoint_enabled): Likewise.
10837 (catch_syscall_enabled): Likewise.
10838 (catching_syscall_number): Likewise.
10839 (catch_syscall_completer): Likewise.
10840 (clear_syscall_counts): Likewise.
10841 (initialize_breakpoint_ops): Move initialization of syscall
10842 catchpoints to break-catch-syscall.c.
10843 (_initialize_breakpoint): Move code related to syscall catchpoints
10844 to break-catch-syscall.c.
10846 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10848 * breakpoint.c (breakpoint_find_if): New function.
10849 * breakpoint.h (breakpoint_find_if): New prototype.
10851 2015-03-11 Gary Benson <gbenson@redhat.com>
10853 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
10854 * remote-fileio.c (remote_fileio_to_host_uint): New function.
10855 (remote_fileio_to_host_ulong): Likewise.
10856 (remote_fileio_to_host_mode): Likewise.
10857 (remote_fileio_to_host_time): Likewise.
10858 (remote_fileio_to_host_stat): Likewise.
10859 * remote.c (PACKET_vFile_fstat): New enum value.
10860 (remote_protocol_features): Register the "vFile:fstat" feature.
10861 (remote_hostio_fstat): New function.
10862 (remote_bfd_iovec_stat): Use the above.
10863 (_initialize_remote): Register new "set/show remote
10864 hostio-fstat-packet" command.
10865 * symfile.c (separate_debug_file_exists): Update comment.
10866 * NEWS: Announce new vFile:fstat packet.
10868 2015-03-11 Gary Benson <gbenson@redhat.com>
10870 * common/common-remote-fileio.h: New file.
10871 * common/common-remote-fileio.c: Likewise.
10872 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10873 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
10874 (COMMON_OBS): Add common-remote-fileio.o.
10875 (common-remote-fileio.o): New rule.
10876 * remote-fileio.h (common-remote-fileio.h): New include.
10877 * remote-fileio.c (gdb/fileio.h): Do not include.
10878 (remote_fileio_to_be): Moved to common-remote-fileio.h.
10879 (remote_fileio_to_fio_uint): Likewise.
10880 (remote_fileio_to_fio_time): Likewise.
10881 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
10882 (remote_fileio_to_fio_mode): Likewise.
10883 (remote_fileio_to_fio_ulong): Likewise.
10884 (remote_fileio_to_fio_stat): Likewise.
10886 2015-03-11 Andy Wingo <wingo@igalia.com>
10888 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
10889 we were checking the cached type, not the cached dynamic type.
10891 2015-03-11 Andy Wingo <wingo@igalia.com>
10893 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
10894 other strings, as these are on the GC'd heap, and will be
10895 collected along with the smob.
10897 2015-03-11 Andy Wingo <wingo@igalia.com>
10899 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
10900 (objfile_functions): Bind gdbscm_objfile_progspace to
10902 * guile/lib/gdb.scm: Add objfile-progspace to exports.
10904 2015-03-11 Andy Wingo <wingo@igalia.com>
10906 * guile/guile.c (_initialize_guile): Disable automatic
10907 finalization, if Guile offers us that possibility.
10908 * guile/guile.c (call_initialize_gdb_module):
10909 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
10910 finalizers in appropriate places.
10911 * configure.ac (AC_TRY_LIBGUILE): Add a check for
10912 scm_set_automatic_finalization_enabled.
10913 * configure: Regenerated.
10915 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10917 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
10920 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10922 * s390-linux-nat.c (struct arch_lwp_info): New.
10923 (s390_fix_watch_points): Rename to...
10924 (s390_prepare_to_resume): ...this. Skip the PER info update
10925 unless the watch points have changed.
10926 (s390_refresh_per_info, s390_new_thread): New functions.
10927 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
10928 s390_fix_watch_points.
10929 (s390_remove_watchpoint): Likewise.
10930 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
10931 Register s390_prepare_to_resume.
10933 2015-03-09 Pedro Alves <palves@redhat.com>
10936 2015-03-07 Pedro Alves <palves@redhat.com>
10937 * common/gdb_socket.h: New file.
10938 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10940 (net_open): Use union gdb_sockaddr_u.
10942 2015-03-07 Pedro Alves <palves@redhat.com>
10944 * configure.ac (build_warnings): Move -Wmissing-prototypes
10945 -Wdeclaration-after-statement -Wmissing-parameter-type
10946 -Wold-style-declaration -Wold-style-definition to the C-specific
10948 * configure: Regenerate.
10950 2015-03-07 Pedro Alves <palves@redhat.com>
10952 * common/gdb_socket.h: New file.
10953 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10955 (net_open): Use union gdb_sockaddr_u.
10957 2015-03-07 Pedro Alves <palves@redhat.com>
10959 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
10960 (exceptions_state_mc_action_iter)
10961 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10963 [__cplusplus] (try_scope_depth): New global.
10964 [__cplusplus] (exception_try_scope_entry)
10965 (exception_try_scope_exit, gdb_exception_sliced_copy)
10966 (exception_rethrow): New functions.
10967 (throw_exception): In C++ mode, throw
10968 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
10969 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
10970 (throw_it): In C++ mode, use try_scope_depth.
10971 * common/common-exceptions.h [!__cplusplus]
10972 (exceptions_state_mc_action_iter)
10973 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10975 [__cplusplus] (exception_try_scope_entry)
10976 (exception_try_scope_exit, exception_rethrow): Declare.
10977 [__cplusplus] (struct exception_try_scope): New struct.
10978 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
10980 (struct gdb_exception_RETURN_MASK_ALL)
10981 (struct gdb_exception_RETURN_MASK_ERROR)
10982 (struct gdb_exception_RETURN_MASK_QUIT): New types.
10984 2015-03-07 Pedro Alves <palves@redhat.com>
10986 * main.c (handle_command_errors): Remove volatile qualifier from
10989 2015-03-07 Pedro Alves <palves@redhat.com>
10991 * breakpoint.c (save_breakpoints): Adjust to avoid code between
10993 * gdbtypes.c (safe_parse_type): Remove empty line.
10994 (types_deeply_equal):
10995 * guile/scm-frame.c (gdbscm_frame_name):
10996 * linux-thread-db.c (find_new_threads_once):
10997 * python/py-breakpoint.c (bppy_get_commands):
10998 * record-btrace.c (record_btrace_insert_breakpoint)
10999 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
11000 (record_btrace_start_replaying): Adjust to avoid code between TRY
11003 2015-03-07 Pedro Alves <palves@redhat.com>
11005 * common/common-exceptions.c (struct catcher) <exception>: No
11006 longer a pointer to volatile exception. Now an exception value.
11007 <mask>: Delete field.
11008 (exceptions_state_mc_init): Remove all parameters. Adjust.
11009 (exceptions_state_mc): No longer pop the catcher here.
11010 (exceptions_state_mc_catch): New function.
11011 (throw_exception): Adjust.
11012 * common/common-exceptions.h (exceptions_state_mc_init): Remove
11014 (exceptions_state_mc_catch): Declare.
11015 (TRY_CATCH): Rename to ...
11016 (TRY): ... this. Remove EXCEPTION and MASK parameters.
11017 (CATCH, END_CATCH): New.
11018 All callers adjusted.
11020 2015-03-07 Tom Tromey <tromey@redhat.com>
11022 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
11024 2015-03-07 Pedro Alves <palves@redhat.com>
11026 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11027 (amd64_epilogue_frame_cache): Normal exception handling code.
11028 * break-catch-throw.c (check_status_exception_catchpoint)
11029 (re_set_exception_catchpoint): Ditto.
11030 * cli/cli-interp.c (safe_execute_command):
11031 * cli/cli-script.c (script_from_file): Ditto.
11032 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
11034 * compile/compile-object-run.c (compile_object_run): Ditto.
11035 * cp-abi.c (baseclass_offset): Ditto.
11036 * cp-valprint.c (cp_print_value): Ditto.
11037 * exceptions.c (catch_exceptions_with_msg):
11038 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
11039 * frame.c (get_frame_address_in_block_if_available): Ditto.
11040 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11041 (i386_sigtramp_frame_cache): Ditto.
11042 * infcmd.c (post_create_inferior): Ditto.
11043 * linespec.c (parse_linespec, find_linespec_symbols):
11044 * p-valprint.c (pascal_object_print_value): Ditto.
11045 * parse.c (parse_expression_for_completion): Ditto.
11046 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
11047 * remote.c (remote_get_noisy_reply): Ditto.
11048 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
11049 * solib-svr4.c (solib_svr4_r_map): Ditto.
11051 2015-03-06 Gary Benson <gbenson@redhat.com>
11053 * common/common-utils.h (startswith): New inline function.
11054 All places where this logic was used updated to use the above.
11056 2015-03-05 Pedro Alves <palves@redhat.com>
11059 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
11060 after reading the breakpoint's shadow memory.
11062 2015-03-05 Mark Kettenis <kettenis@gnu.org>
11064 * hppabsd-nat.c: Remove file.
11065 * hppaobsd-nat.c: New file.
11066 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
11068 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
11071 2015-03-04 Pedro Alves <palves@redhat.com>
11073 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
11074 (target_decr_pc_after_break): Delete declaration.
11075 * target.c (default_target_decr_pc_after_break)
11076 (target_decr_pc_after_break): Delete.
11077 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
11078 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
11079 * linux-thread-db.c (check_event): Likewise.
11080 * infrun.c (adjust_pc_after_break): Likewise.
11081 * darwin-nat.c (cancel_breakpoint): Likewise.
11082 * aix-thread.c (aix_thread_wait): Likewise.
11083 * target-delegates.c: Regenerate.
11085 2015-03-04 Pedro Alves <palves@redhat.com>
11087 * linux-nat.c (save_sigtrap): Check for breakpoints before
11088 checking watchpoints.
11089 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11090 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11091 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
11092 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
11093 (linux_nat_stopped_by_sw_breakpoint)
11094 (linux_nat_supports_stopped_by_sw_breakpoint)
11095 (linux_nat_stopped_by_hw_breakpoint)
11096 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
11097 (linux_nat_wait_1): Don't re-increment the PC if relying on
11098 SIGTRAP's siginfo->si_code.
11099 (linux_nat_add_target): Install new target methods.
11100 * linux-thread-db.c (check_event): Don't account for breakpoint PC
11101 offset if the target already adjusted the PC.
11102 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
11103 (GDB_ARCH_TRAP_BRKPT): New.
11104 (TRAP_HWBKPT): Define if not already defined.
11106 2015-03-04 Pedro Alves <palves@redhat.com>
11108 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
11109 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
11111 <stop_reason>: New field.
11112 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
11113 (packet_set_cmd_state): New function.
11114 (remote_protocol_features): Register the "swbreak" and "hwbreak"
11116 (remote_query_supported): If not disabled with the corresponding
11117 "set remote foo-packet" command, report support for the swbreak
11118 and hwbreak features.
11119 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
11121 <stop_reason>: New field.
11122 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
11123 (remote_wait_as): Adjust.
11124 (remote_stopped_by_sw_breakpoint)
11125 (remote_supports_stopped_by_sw_breakpoint)
11126 (remote_stopped_by_hw_breakpoint)
11127 (remote_supports_stopped_by_hw_breakpoint): New functions.
11128 (remote_stopped_by_watchpoint): New function.
11129 (init_remote_ops): Install them.
11130 (_initialize_remote): Register new "set/show remote
11131 swbreak-feature-packet" and "set/show remote
11132 swbreak-feature-packet" commands.
11134 2015-03-04 Pedro Alves <palves@redhat.com>
11136 * btrace.h: Include target/waitstatus.h.
11137 (struct btrace_thread_info) <stop_reason>: New field.
11138 * record-btrace.c (record_btrace_step_thread): Use
11139 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
11140 (record_btrace_decr_pc_after_break): Delete.
11141 (record_btrace_stopped_by_sw_breakpoint)
11142 (record_btrace_supports_stopped_by_sw_breakpoint)
11143 (record_btrace_stopped_by_hw_breakpoint)
11144 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
11145 (init_record_btrace_ops): Install them.
11146 * record-full.c (record_full_hw_watchpoint): Delete and replace
11148 (record_full_stop_reason): ... this throughout.
11149 (record_full_exec_insn): Adjust.
11150 (record_full_wait_1): Adjust. No longer re-increment the PC.
11151 (record_full_wait_1): Adjust. Use
11152 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
11153 (record_full_stopped_by_watchpoint): Adjust.
11154 (record_full_stopped_by_sw_breakpoint)
11155 (record_full_supports_stopped_by_sw_breakpoint)
11156 (record_full_supports_stopped_by_sw_breakpoint)
11157 (record_full_stopped_by_hw_breakpoint)
11158 (record_full_supports_stopped_by_hw_breakpoint): New functions.
11159 (init_record_full_ops, init_record_full_core_ops): Install them.
11160 * record.c (record_check_stopped_by_breakpoint): New function.
11161 * record.h: Include target/waitstatus.h.
11162 (record_check_stopped_by_breakpoint): New declaration.
11164 2015-03-04 Pedro Alves <palves@redhat.com>
11166 enum lwp_stop_reason -> enum target_stop_reason
11167 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
11168 (linux_nat_stopped_by_watchpoint, status_callback)
11169 (linux_nat_wait_1): Adjust.
11170 * linux-nat.h (enum lwp_stop_reason): Delete.
11171 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11172 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
11173 * target/waitstatus.h (enum target_stop_reason): New.
11175 2015-03-04 Pedro Alves <palves@redhat.com>
11177 * breakpoint.c (need_moribund_for_location_type): New function.
11178 (bpstat_stop_status): Don't skipping checking moribund locations
11179 of breakpoint types which the target tell caused a stop.
11180 (program_breakpoint_here_p): New function, factored out from ...
11181 (bp_loc_is_permanent): ... this.
11182 (update_global_location_list): Don't create a moribund location if
11183 the target supports reporting stops of the type of the removed
11185 * breakpoint.h (program_breakpoint_here_p): New declaration.
11186 * infrun.c (adjust_pc_after_break): Return early if the target has
11187 already adjusted the PC. Add comments.
11188 (handle_signal_stop): If nothing explains a signal, and the target
11189 tells us the stop was caused by a software breakpoint, check if
11190 there's a breakpoint instruction in the memory. If so, adjust the
11191 PC before presenting the stop to the user. Otherwise, ignore the
11192 trap. If nothing explains a signal, and the target tells us the
11193 stop was caused by a hardware breakpoint, ignore the trap.
11194 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
11195 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
11196 to_supports_stopped_by_hw_breakpoint>: New fields.
11197 (target_stopped_by_sw_breakpoint)
11198 (target_supports_stopped_by_sw_breakpoint)
11199 (target_stopped_by_hw_breakpoint)
11200 (target_supports_stopped_by_hw_breakpoint): Define.
11201 * target-delegates.c: Regenerate.
11203 2015-03-04 Pedro Alves <palves@redhat.com>
11205 * infrun.c (follow_fork_inferior): Use the whole of the
11206 inferior_ptid and pending_follow.related_pid ptids instead of
11207 building ptids from the process components. Adjust verbose output
11208 to use target_pid_to_str.
11209 * linux-nat.c (linux_child_follow_fork): Use the whole of the
11210 inferior_ptid and pending_follow.related_pid ptids instead of
11211 building ptids from the process components.
11213 2015-03-04 Mark Kettenis <kettenis@gnu.org>
11215 * inf-ptrace.c [PT_GET_PROCESS_STATE]
11216 (inf_ptrace_insert_fork_catchpoint): New function.
11217 (inf_ptrace_remove_fork_catchpoint): New function.
11218 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
11220 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11222 * s390-linux-tdep.c (s390_register_name): Return empty string
11223 instead of NULL for registers that shouldn't be visible.
11225 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11227 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
11228 XML file for 64-bit targets.
11230 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
11232 * target.h (find_default_create_inferior): Remove declaration.
11233 (find_default_attach): Likewise.
11235 2015-03-03 Pedro Alves <palves@redhat.com>
11237 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
11238 Use ptid_get_pid to get the overall process id when resuming all
11241 2015-03-03 Pedro Alves <palves@redhat.com>
11243 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
11244 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
11245 * inf-ptrace.c (get_ptrace_pid): New function.
11246 (inf_ptrace_resume): Use it.
11247 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
11248 to the lower layer.
11250 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11252 * nat/linux-btrace.c: Include sys/utsname.h.
11253 (linux_determine_kernel_ptr_bits): New.
11254 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
11255 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
11258 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11260 * btrace.c (ftrace_update_function): Treat return as tailcall for
11261 "_dl_runtime_resolve".
11263 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11265 * btrace.h (btrace_function) <lbegin, lend>: Remove.
11266 * btrace.c (ftrace_debug): Do not print the line range.
11267 (ftrace_skip_file, ftrace_update_lines): Remove.
11268 (ftrace_new_function): Remove lbegin and lend initialization.
11269 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
11270 * record-btrace.c (btrace_compute_src_line_range): New.
11271 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
11273 2015-03-02 Pedro Alves <palves@redhat.com>
11275 * infrun.c (follow_exec): Delete all threads of the process except
11276 the event thread. Extended comments.
11278 2015-03-02 Joel Brobecker <brobecker@adacore.com>
11280 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
11282 2015-03-02 Joel Brobecker <brobecker@adacore.com>
11284 * utils.h: Remove <stdbool.h> #include.
11285 (producer_is_gcc): Change return type to "int".
11286 * utils.c (producer_is_gcc): Change return type to int.
11287 Return 1 instead of true, and 0 instead of false.
11288 Adjust function documentation accordingly.
11290 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11292 * s390-linux-nat.c (have_regset_vxrs): New static variable.
11293 (s390_linux_fetch_inferior_registers): Handle vector registers, if
11295 (s390_linux_store_inferior_registers): Likewise.
11296 (s390_get_hwcap): Remove function. Embed its logic...
11297 (s390_read_description): ...here. Yield a target description with
11298 vector registers if applicable.
11299 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
11300 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
11301 "features/s390x-tevx-linux64.c".
11302 (struct gdbarch_tdep) <v0_full_regnum>: New field.
11303 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
11304 for "GNU/Linux-specific registers".
11305 (s390_dwarf_reg_r0l): New enum value.
11306 (s390_dwarf_reg_to_regnum): Support vector registers.
11307 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
11308 of GPR lower halves.
11309 (regnum_is_vxr_full): New function.
11310 (s390_register_name): New function.
11311 (s390_pseudo_register_name): Handle v0-v15, which are composed of
11312 f0-f15 and v0l-v15l.
11313 (s390_pseudo_register_type): Likewise.
11314 (s390_pseudo_register_read): Likewise.
11315 (s390_pseudo_register_write): Likewise.
11316 (s390_value_from_register): Account for the fact that values are
11317 placed left-justified in vector registers.
11318 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
11319 the vector reggroup and omit them from the general reggroup.
11320 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
11321 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
11322 (s390_iterate_over_regset_sections): Add iterations for the two
11323 new vector regsets.
11324 (s390_core_read_description): Yield a target description with
11325 vector registers if applicable.
11326 (s390_gdbarch_init): Handle target descriptions with vector
11327 registers. Add "register_name" gdbarch method.
11328 (_initialize_s390_tdep): Call new tdesc initialization functions.
11329 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
11330 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
11331 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
11332 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
11333 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
11334 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
11335 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
11336 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
11337 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
11338 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
11339 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
11340 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
11341 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
11342 (S390_NUM_REGS): Adjust value.
11343 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
11344 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11345 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
11346 * NEWS: Announce S/390 vector register support.
11348 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11350 * features/s390-tevx-linux64.xml: New file.
11351 * features/s390-vx-linux64.xml: New file.
11352 * features/s390-vx.xml: New file.
11353 * features/s390x-tevx-linux64.xml: New file.
11354 * features/s390x-vx-linux64.xml: New file.
11355 * features/Makefile (WHICH): Add s390-vx-linux64,
11356 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
11357 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
11358 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
11360 * features/s390-tevx-linux64.c: New generated file.
11361 * features/s390-vx-linux64.c: Likewise.
11362 * features/s390x-tevx-linux64.c: Likewise.
11363 * features/s390x-vx-linux64.c: Likewise.
11364 * regformats/s390-tevx-linux64.dat: Likewise.
11365 * regformats/s390-vx-linux64.dat: Likewise.
11366 * regformats/s390x-tevx-linux64.dat: Likewise.
11367 * regformats/s390x-vx-linux64.dat: Likewise.
11369 2015-02-28 Doug Evans <xdje42@gmail.com>
11371 * symtab.h (struct symtab) <next>: Fix comment.
11373 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
11375 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
11378 2015-02-27 Pedro Alves <palves@redhat.com>
11380 * dtrace-probe.c (dtrace_probe_ops): Make extern.
11382 2015-02-27 Pedro Alves <palves@redhat.com>
11384 * common/common-exceptions.h (exception_none): Declare.
11385 * common/common-exceptions.c (exception_none): Moved from
11387 (exceptions_state_mc_init): Use exception_none.
11388 * exceptions.c (exception_none): Move to
11389 common/common-exceptions.c.
11390 * exceptions.h (exception_none): Move to
11391 common/common-exceptions.h.
11393 2015-02-27 Pedro Alves <palves@redhat.com>
11395 * main.c (catch_command_errors, catch_command_errors_const):
11396 Remove 'mask' argument. Adjust.
11397 (captured_main): Adjust callers.
11399 2015-02-27 Pedro Alves <palves@redhat.com>
11401 * python/python-internal.h: Include "extension-priv.h".
11403 2015-02-27 Pedro Alves <palves@redhat.com>
11405 * breakpoint.h (enum print_stop_action): Move further up in the
11408 2015-02-27 Pedro Alves <palves@redhat.com>
11410 * gdbarch.sh: Include regcache.h.
11411 * gdbarch.h: Regenerate.
11413 2015-02-27 Pedro Alves <palves@redhat.com>
11415 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
11416 Remove duplicate const.
11417 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
11420 2015-02-27 Pedro Alves <palves@redhat.com>
11422 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
11423 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
11424 * features/feature_to_c.sh: Tag the generated xml_builtin array
11425 with extern const in C++ mode.
11427 2015-02-27 Tom Tromey <tromey@redhat.com>
11429 * minidebug.c (struct lzma_stream): Rename to ...
11430 (struct gdb_lzma_stream): ... this.
11431 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
11433 2015-02-27 Pedro Alves <palves@redhat.com>
11435 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
11437 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
11438 (mi_cmd_stack_list_variables): Use it.
11440 2015-02-27 Pedro Alves <palves@redhat.com>
11442 * x86-linux-nat.c (u_debugreg_offset): New function.
11443 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11445 2015-02-27 Pedro Alves <palves@redhat.com>
11447 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
11449 Include break-common.h.
11451 2015-02-27 Tom Tromey <tromey@redhat.com>
11452 Pedro Alves <palves@redhat.com>
11454 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
11455 local used to iterate over enums.
11456 * completer.c (signal_completer): Likewise.
11457 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
11458 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
11459 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
11460 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
11461 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
11462 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
11463 * tui-wingeneral.c (tui_refresh_all): Likewise.
11465 2015-02-27 Pedro Alves <palves@redhat.com>
11467 * target.h: Include "infrun.h".
11469 2015-02-27 Pedro Alves <palves@redhat.com>
11471 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11473 2015-02-27 Pedro Alves <palves@redhat.com>
11475 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
11477 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
11479 2015-02-27 Pedro Alves <palves@redhat.com>
11481 * cli-out.c (_rl_erase_entire_line): Move declaration out of
11482 cli_mld_erase_entire_line, and make it extern "C".
11483 * common/common-defs.h (EXTERN_C): New.
11484 * completer.c (_rl_completion_prefix_display_length)
11485 (_rl_print_completions_horizontally, QSFUNC): Move declarations
11486 out of gdb_display_match_list_1.
11487 (_rl_qsort_string_compare): Move declaration out of
11488 gdb_display_match_list_1, and make it extern "C".
11489 * defs.h (re_comp): Use EXTERN_C.
11490 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
11491 and make it extern "C".
11492 (monstartup): Move declaration out of maintenance_set_profile_cmd,
11493 and make it extern "C".
11494 (main): Move declaration out of maintenance_set_profile_cmd.
11495 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
11498 2015-02-27 Pedro Alves <palves@redhat.com>
11500 * python/python.c (GdbMethods): Rename to ...
11501 (python_GdbMethods): ... this and make extern.
11502 (GdbModuleDef): Rename to ...
11503 (python_GdbModuleDef): ... this and make extern.
11505 2015-02-27 Pedro Alves <palves@redhat.com>
11507 * record-btrace.c (set_record_btrace_cmdlist)
11508 (show_record_btrace_cmdlist): Remove redefinitions.
11510 2015-02-27 Tom Tromey <tromey@redhat.com>
11511 Pedro Alves <palves@redhat.com>
11513 * dwarf2-frame.c (enum cfa_how_kind, struct
11514 dwarf2_frame_state_reg_info): Move out of struct
11515 dwarf2_frame_state.
11516 * dwarf2read.c (struct tu_stats): Move out of struct
11517 dwarf2_per_objfile.
11518 (struct file_entry): Move out of struct line_header.
11519 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
11520 typedef_field_list): Move out of struct field_info.
11521 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
11522 Move out of struct dynamic_prop.
11523 (union type_owner, union field_location, struct field, struct
11524 range_bounds, union type_specific): Move out of struct main_type.
11525 (struct fn_fieldlist, struct fn_field, struct typedef_field)
11526 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
11527 (struct call_site_target, union call_site_parameter_u, struct
11528 call_site_parameter): Move out of struct call_site.
11529 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
11531 (enum srcdest_kind): Move out of struct srcdest.
11532 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
11533 * prologue-value.h (enum prologue_value_kind): Move out of struct
11535 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
11537 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
11538 out of struct field_info.
11539 * symfile.h (struct other_sections): Move out of struct
11541 * symtab.c (struct symbol_cache_slot): Move out struct
11542 block_symbol_cache.
11543 * target-descriptions.c (enum tdesc_type_kind): Move out of
11544 typedef struct tdesc_type.
11545 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
11546 struct tui_line_or_address.
11547 * value.c (enum internalvar_kind, union internalvar_data): Move
11548 out of struct internalvar.
11549 * xtensa-tdep.h (struct ctype_cache): Move out of struct
11552 2015-02-27 Tom Tromey <tromey@redhat.com>
11553 Pedro Alves <palves@redhat.com>
11555 Rename symbols whose names are reserved C++ keywords throughout.
11557 2015-02-27 Pedro Alves <palves@redhat.com>
11559 * Makefile.in (COMPILER): New, get it from autoconf.
11560 (COMPILE.pre, CC_LD): Use COMPILER.
11561 (CXX): Get from autoconf instead.
11562 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11563 * acinclude.m4: Include build-with-cxx.m4.
11564 * build-with-cxx.m4: New file.
11565 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11566 Disable -Werror by default if building in C++ mode.
11567 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11568 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
11569 Run supported-warning-flags tests with the C++ compiler.
11570 Save/restore CXXFLAGS too.
11571 * configure: Regenerate.
11573 2015-02-27 Pedro Alves <palves@redhat.com>
11575 * libiberty.m4: New file.
11576 * acinclude.m4: Include libiberty.m4.
11577 * configure.ac: Call libiberty_INIT.
11578 * config.in, configure: Regenerate.
11580 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
11582 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
11583 31-bit targets, but 64-bit targets as well.
11584 (s390_gnu_triplet_regexp): New function.
11585 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
11586 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
11589 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
11591 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
11592 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
11593 from CONTEXT_DEBUGGER.
11595 2015-02-26 Doug Evans <dje@google.com>
11597 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
11599 (set_type_vptr_fieldno): Ditto.
11600 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
11601 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
11603 2015-02-26 Pedro Alves <palves@redhat.com>
11605 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
11606 * complaints.c (vcomplaint): Pass argument FMT directly to
11607 printf-like functions instead of complaint->fmt.
11608 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
11609 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
11610 * compile/compile-loc2c.c (pushf, unary, binary): Add
11612 (do_compile_dwarf_expr_to_c): Pass string literal as format string
11614 (BINARY): Pass string literal as format string to 'binary'.
11615 * compile/compile-object-load.c (link_callbacks_einfo): Add
11617 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
11619 2015-02-26 Pedro Alves <palves@redhat.com>
11621 * windows-termcap.c: Rename to ...
11622 * stub-termcap.c: ... this. Adjust header line.
11623 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
11625 * configure: Regenerate.
11626 * configure.ac: Refer to stub-termcap.o instead of
11628 * gdb_curses.h: Mention stub-termcap.c instead of
11631 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11633 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
11634 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
11636 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
11638 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
11640 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11642 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
11643 bfd_canonicalize_symtab.
11645 2015-02-25 John Baldwin <jhb@FreeBSD.org>
11647 * amd64fbsd-nat.c: Include sys/user.h.
11648 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11649 instead of KERN_PS_STRINGS to locate the signal trampoline.
11650 * i386fbsd-nat.c: Include sys/user.h.
11651 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11652 instead of KERN_PS_STRINGS to locate the signal trampoline.
11653 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
11654 (amd64fbsd_sigtramp_p): New.
11655 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
11656 longer set default values.
11657 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
11658 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
11659 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
11660 (i386fbsd_freebsd4_sigtramp_start)
11661 (i386fbsd_freebsd4_sigtramp_middle)
11662 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
11663 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
11664 (i386fbsd_sigtramp_p): New.
11665 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
11666 longer set default values.
11667 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
11669 2015-02-25 John Baldwin <jhb@freebsd.org>
11671 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
11672 get_frame_register instead of frame_unwind_register_unsigned.
11674 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11677 * compile/compile-c-support.c (c_compute_program): Change // comment.
11678 * compile/compile-object-load.c (setup_sections): Change // comment.
11680 2015-02-26 Joel Brobecker <brobecker@adacore.com>
11683 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
11685 2015-02-23 Pedro Alves <palves@redhat.com>
11687 * remote.c (skip_to_semicolon): New function.
11688 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
11689 special case the stop reasons that look like hex numbers
11690 upfront. Instead handle real register numbers after matching
11691 all the known stop reasons.
11693 2015-02-21 Doug Evans <dje@google.com>
11695 PR c++/17976, symtab/17821
11696 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
11697 is_in_anonymous. All callers updated.
11698 (find_symbol_in_baseclass): Ditto.
11699 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
11700 for symbols in an anonymous namespace.
11701 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
11702 DW_AT_name directly.
11703 (dwarf2_name): Convert missing namespace name to
11704 CP_ANONYMOUS_NAMESPACE_STR.
11706 2015-02-20 Pedro Alves <palves@redhat.com>
11708 * linux-nat.c (linux_handle_extended_wait): Call
11709 thread_db_notice_clone whenever a new clone LWP is detected.
11710 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
11712 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
11713 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
11714 (linux_unstop_all_lwps): Declare.
11715 * linux-thread-db.c (struct thread_get_info_inout): Delete.
11716 (thread_get_info_callback): Delete.
11717 (thread_from_lwp): Use td_thr_get_info and record_thread.
11718 (thread_db_attach_lwp): Delete.
11719 (thread_db_notice_clone): New function.
11720 (try_thread_db_load_1): If /proc is mounted and shows the
11721 process'es task list, walk over all LWPs and call thread_from_lwp
11722 instead of relying on td_ta_thr_iter.
11723 (attach_thread): Don't call check_thread_signals here. Split the
11724 tail part of the function (which adds the thread to the core GDB
11725 thread list) to ...
11726 (record_thread): ... this function. Call check_thread_signals
11728 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
11729 call thread_from_lwp.
11730 (thread_db_update_thread_list): Rename to ...
11731 (thread_db_update_thread_list_org): ... this.
11732 (thread_db_update_thread_list): New function.
11733 (thread_db_find_thread_from_tid): Delete.
11734 (thread_db_get_ada_task_ptid): Simplify.
11735 * nat/linux-procfs.c: Include <sys/stat.h>.
11736 (linux_proc_task_list_dir_exists): New function.
11737 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
11739 2015-02-20 Pedro Alves <palves@redhat.com>
11741 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
11742 main LWP. Handle the case of waitpid returning 0 if we're already
11743 attached to the LWP. Don't set the LWP's last_resume_kind to
11744 resume_stop if we already knew about the LWP.
11745 (linux_nat_filter_event): Add debug logs.
11747 2015-02-20 Pedro Alves <palves@redhat.com>
11749 * target.h (forward_target_decr_pc_after_break): Delete
11752 2015-02-20 Pedro Alves <palves@redhat.com>
11755 * linux-thread-db.c (thread_get_info_callback): Return early if
11756 the thread's lwp id is -1.
11758 2015-02-20 Joel Brobecker <brobecker@adacore.com>
11762 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
11764 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
11765 (dtrace_get_probes) Change type of variable 'dof'.
11767 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11769 PR breakpoints/16812
11770 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
11771 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
11772 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
11774 2015-02-19 David Taylor <dtaylor@emc.com>
11776 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
11778 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
11780 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
11782 (tui_putc): Don't call tui_handle_resize_during_io.
11783 (tui_getc): Likewise.
11784 (tui_mld_getc): Likewise.
11785 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
11786 (tui_sigwinch_token): New static variable.
11787 (tui_initialize_win): Adjust documentation. Set
11788 tui_sigwinch_token.
11789 (tui_async_resize_screen): New asynchronous callback.
11790 (tui_sigwinch_handler): Adjust documentation. Asynchronously
11791 invoke tui_async_resize_screen.
11793 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
11795 * configure: Regenerated.
11796 * configure.ac: Use GDB_AC_TRANSFORM.
11797 * Makefile.in (aclocal_m4_deps): Added transform.m4.
11798 * acinclude.m4: sinclude transform.m4.
11799 * transform.m4: New file.
11800 (GDB_AC_TRANSFORM): New macro.
11802 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11804 * NEWS: Announce the support for DTrace SDT probes.
11806 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11808 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
11809 (amd64_dtrace_parse_probe_argument): New function.
11810 (amd64_dtrace_probe_is_enabled): Likewise.
11811 (amd64_dtrace_enable_probe): Likewise.
11812 (amd64_dtrace_disable_probe): Likewise.
11813 (amd64_linux_init_abi): Register the
11814 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
11815 `gdbarch_dtrace_disable_probe' and
11816 `gdbarch_dtrace_probe_is_enabled' hooks.
11817 (amd64_dtrace_disabled_probe_sequence_1): New constant.
11818 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
11819 (amd64_dtrace_enable_probe_sequence): Likewise.
11820 (amd64_dtrace_disable_probe_sequence): Likewise.
11822 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11824 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
11825 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
11826 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
11828 * Makefile.in (SFILES): dtrace-probe.c added.
11829 * configure: Regenerate.
11830 * dtrace-probe.c: New file.
11831 (SHT_SUNW_dof): New constant.
11832 (dtrace_probe_type): New enum.
11833 (dtrace_probe_arg): New struct.
11834 (dtrace_probe_arg_s): New typedef.
11835 (struct dtrace_probe_enabler): New struct.
11836 (dtrace_probe_enabler_s): New typedef.
11837 (dtrace_probe): New struct.
11838 (dtrace_probe_is_linespec): New function.
11839 (dtrace_dof_sect_type): New enum.
11840 (dtrace_dof_dofh_ident): Likewise.
11841 (dtrace_dof_encoding): Likewise.
11842 (DTRACE_DOF_ENCODE_LSB): Likewise.
11843 (DTRACE_DOF_ENCODE_MSB): Likewise.
11844 (dtrace_dof_hdr): New struct.
11845 (dtrace_dof_sect): Likewise.
11846 (dtrace_dof_provider): Likewise.
11847 (dtrace_dof_probe): Likewise.
11848 (DOF_UINT): New macro.
11849 (DTRACE_DOF_PTR): Likewise.
11850 (DTRACE_DOF_SECT): Likewise.
11851 (dtrace_process_dof_probe): New function.
11852 (dtrace_process_dof): Likewise.
11853 (dtrace_build_arg_exprs): Likewise.
11854 (dtrace_get_arg): Likewise.
11855 (dtrace_get_probes): Likewise.
11856 (dtrace_get_probe_argument_count): Likewise.
11857 (dtrace_can_evaluate_probe_arguments): Likewise.
11858 (dtrace_evaluate_probe_argument): Likewise.
11859 (dtrace_compile_to_ax): Likewise.
11860 (dtrace_probe_destroy): Likewise.
11861 (dtrace_gen_info_probes_table_header): Likewise.
11862 (dtrace_gen_info_probes_table_values): Likewise.
11863 (dtrace_probe_is_enabled): Likewise.
11864 (dtrace_probe_ops): New variable.
11865 (info_probes_dtrace_command): New function.
11866 (_initialize_dtrace_probe): Likewise.
11867 (dtrace_type_name): Likewise.
11869 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11871 * gdbarch.sh (dtrace_parse_probe_argument): New.
11872 (dtrace_probe_is_enabled): Likewise.
11873 (dtrace_enable_probe): Likewise.
11874 (dtrace_disable_probe): Likewise.
11875 * gdbarch.c: Regenerate.
11876 * gdbarch.h: Regenerate.
11878 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11880 * stap-probe.c (stap_probe_ops): Add NULLs in the static
11881 stap_probe_ops for `enable_probe' and `disable_probe'.
11882 * probe.c (enable_probes_command): New function.
11883 (disable_probes_command): Likewise.
11884 (_initialize_probe): Define the cli commands `enable probe' and
11886 (parse_probe_linespec): New function.
11887 (info_probes_for_ops): Use parse_probe_linespec.
11888 * probe.h (probe_ops): New hooks `enable_probe' and
11891 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11893 * probe.c (compute_probe_arg): Moved from stap-probe.c
11894 (compile_probe_arg): Likewise.
11895 (probe_funcs): Likewise.
11896 * stap-probe.c (compute_probe_arg): Moved to probe.c.
11897 (compile_probe_arg): Likewise.
11898 (probe_funcs): Likewise.
11900 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11902 * probe.c (print_ui_out_not_applicables): New function.
11903 (exists_probe_with_pops): Likewise.
11904 (info_probes_for_ops): Do not include column headers for probe
11905 types for which no probe has been actually found on any object.
11906 Also invoke `print_ui_out_not_applicables' in order to match the
11907 column rows with the header when probes of several types are
11909 Print the "Type" column.
11910 * probe.h (probe_ops): Added a new probe operation `type_name'.
11911 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
11912 (stap_type_name): New function.
11914 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
11916 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
11917 (key_is_command_char): Delete.
11919 2015-02-17 Pedro Alves <palves@redhat.com>
11921 * tui/tui.c (tui_enable): Resize windows before anything
11922 might show a window.
11924 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
11927 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
11928 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
11930 * aarch64-tdep.h (tdesc_aarch64): Declare.
11932 2015-02-12 Mark Wielaard <mjw@redhat.com>
11934 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
11936 2015-02-13 Doug Evans <dje@google.com>
11938 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
11939 anonymous_namespace to is_in_anonymous for consistency with the rest
11941 (cp_lookup_bare_symbol): Fix typo in comment.
11942 (cp_search_static_and_baseclasses): Ditto.
11943 (search_symbol_list): Use vertical space in comment better.
11944 (reset_directive_searched): Ditto. Fix typo.
11945 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
11947 2015-02-13 Yao Qi <yao.qi@arm.com>
11949 * MAINTAINERS: Update my email address.
11951 2015-02-12 Doug Evans <dje@google.com>
11953 * symtab.c (completion_list_add_name): Fix memory leak.
11955 2015-02-12 Doug Evans <dje@google.com>
11957 * completer.c (complete_line): Remove incorrect comment.
11959 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11961 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
11962 (py_print_frame): Use RETURN_MASK_ERROR.
11964 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11966 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
11967 function comment. Wrap all function that can throw in cleanups.
11968 (gdbpy_apply_frame_filter): Wrap all function that can throw in
11971 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11973 * python/py-framefilter.c (py_print_frame): Substitute goto error.
11974 Remove the error label.
11976 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11978 * python/py-framefilter.c (py_print_frame): Put conditional code paths
11979 with goto first, indent the former else codepath left. Put variable
11980 'elided' to a new inner block.
11982 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11984 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
11986 2015-02-11 Pedro Alves <palves@redhat.com>
11988 * xcoffread.c (within_function): Delete.
11990 2015-02-11 Tom Tromey <tromey@redhat.com>
11991 Pedro Alves <palves@redhat.com>
11993 * breakpoint.c (base_breakpoint_ops): Delete.
11994 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
11995 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
11996 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
11997 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
11998 * python/py-arch.c (arch_object_type): Make extern.
11999 * python/py-block.c (block_syms_iterator_object_type): Make extern.
12000 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
12001 * python/py-cmd.c (cmdpy_object_type): Make extern.
12002 * python/py-continueevent.c (continue_event_object_type)
12003 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
12004 parameter. Update all callers.
12005 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
12006 * python/py-exitedevent.c (exited_event_object_type): Make extern.
12007 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
12008 * python/py-function.c (fnpy_object_type): Make extern.
12009 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
12010 * python/py-infevents.c (call_pre_event_object_type)
12011 (inferior_call_post_event_object_type).
12012 (memory_changed_event_object_type): Make extern.
12013 * python/py-infthread.c (thread_object_type): Make extern.
12014 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
12015 * python/py-linetable.c (linetable_entry_object_type)
12016 (linetable_object_type, ltpy_iterator_object_type): Make extern.
12017 * python/py-newobjfileevent.c (new_objfile_event_object_type)
12018 (clear_objfiles_event_object_type): Make extern.
12019 * python/py-objfile.c (objfile_object_type): Make extern.
12020 * python/py-param.c (parmpy_object_type): Make extern.
12021 * python/py-progspace.c (pspace_object_type): Make extern.
12022 * python/py-signalevent.c (signal_event_object_type): Make extern.
12023 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
12024 * python/py-type.c (type_object_type, field_object_type)
12025 (type_iterator_object_type): Make extern.
12026 * python/python.c (python_extension_script_ops)
12027 (python_extension_ops): Make extern.
12028 * stap-probe.c (stap_probe_ops): Make extern.
12030 2015-02-11 Pedro Alves <pedro@codesourcery.com>
12032 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
12033 because the event thread is not the current thread.
12035 2015-02-11 Doug Evans <xdje42@gmail.com>
12037 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
12038 been initialized yet, return NULL.
12040 2015-02-11 Doug Evans <dje@google.com>
12042 * symfile.h (new_symfile_objfile): Delete.
12043 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
12044 All callers updated.
12046 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
12048 * tui/tui-io.c (tui_handle_resize_during_io): Call
12049 tui_update_gdb_sizes() after resizing the screen.
12050 * tui/tui.c (tui_enable): Resize the terminal before
12051 calling tui_update_gdb_sizes().
12053 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
12055 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
12056 line before printing a newline.
12058 2015-02-11 Mark Wielaard <mjw@redhat.com>
12060 * utils.c (producer_is_gcc): Return true or false.
12062 2015-02-10 Mark Wielaard <mjw@redhat.com>
12064 * utils.h (producer_is_gcc): Change return type to bool. Add major
12066 * utils.c (producer_is_gcc): Likewise.
12067 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
12068 * dwarf2read.c (check_producer): Likewise.
12070 2015-02-10 Pedro Alves <palves@redhat.com>
12072 * infrun.c (displaced_step_fixup): Switch to the event thread
12073 before calling gdbarch_displaced_step_fixup.
12075 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
12077 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
12079 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
12081 * ada-varobj.c (ada_name_of_child): Constify parent.
12082 (ada_path_expr_of_child): Same.
12083 (ada_value_of_child): Same.
12084 (ada_type_of_child): Same.
12085 * c-varobj.c (c_is_path_expr_parent): Same.
12086 (c_describe_child): Same.
12087 (c_name_of_child): Same.
12088 (c_value_of_child): Same.
12089 (c_type_of_child): Same.
12090 (cplus_number_of_children): Same.
12091 (cplus_describe_child): Constify var.
12092 (cplus_name_of_child): Constify parent.
12093 (cplus_value_of_child): Same.
12094 (cplus_type_of_child): Same.
12095 * jv-varobj.c (java_name_of_child): Same.
12096 (java_value_of_child): Same.
12097 (java_type_of_child): Same.
12098 * varobj.c (value_of_child): Same.
12099 (varobj_default_is_path_expr_parent): Constify var, parent and return
12101 (varobj_get_path_expr): Constify var, modify path_expr through
12103 (install_new_value): Constify parent.
12104 (value_of_child): Constify parent.
12105 * varobj.h (struct varobj): Constify parent.
12106 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
12108 (varobj_get_path_expr): Constify var.
12109 (varobj_get_path_expr_parent): Constify var and return value.
12111 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
12113 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
12114 (arm_prologue_this_id): Move PC and SP limit checks to
12115 arm_prologue_unwind_stop_reason.
12116 (arm_prologue_unwind) <stop_reason> : Set to
12117 arm_prologue_unwind_stop_reason.
12119 2015-02-09 Mark Wielaard <mjw@redhat.com>
12121 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
12122 DW_LANG_Fortran08 as language_fortran.
12124 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
12127 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
12128 of pointer against char.
12130 2015-02-09 Mark Wielaard <mjw@redhat.com>
12132 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
12133 (c_type_print_modifier): Likewise.
12134 * dwarf2read.c (read_tag_atomic_type): New function.
12135 (read_type_die_1): Handle DW_TAG_atomic_type.
12136 * gdbtypes.c (make_atomic_type): New function.
12137 (recursive_dump_type): Handle TYPE_ATOMIC.
12138 * gdbtypes.h (enum type_flag_values): Renumber.
12139 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
12140 (TYPE_ATOMIC): New macro.
12141 (make_atomic_type): Declare.
12143 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12145 * btrace.c (ftrace_find_call): Skip gaps.
12146 (ftrace_new_function): Initialize level.
12147 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
12148 (ftrace_new_switch): Update
12150 (ftrace_new_gap): New.
12151 (ftrace_update_function): Create new function after gap.
12152 (btrace_compute_ftrace_bts): Create gap on error.
12153 (btrace_stitch_bts): Update parameters. Clear trace if it
12155 (btrace_stitch_trace): Update parameters. Update callers.
12156 (btrace_clear): Reset the number of gaps.
12157 (btrace_insn_get): Return NULL if the iterator points to a gap.
12158 (btrace_insn_number): Return zero if the iterator points to a gap.
12159 (btrace_insn_end): Allow gaps at the end.
12160 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
12161 (btrace_find_insn_by_number): Assert that the found iterator does
12162 not point to a gap.
12163 (btrace_call_next, btrace_call_prev): Assert that the last function
12165 * btrace.h (btrace_bts_error): New.
12166 (btrace_function): Update comment.
12167 (btrace_function) <insn, insn_offset, number>: Update comment.
12168 (btrace_function) <errcode>: New.
12169 (btrace_thread_info) <ngaps>: New.
12170 (btrace_thread_info) <replay>: Update comment.
12171 (btrace_insn_get): Update comment.
12172 * record-btrace.c (btrace_ui_out_decode_error): New.
12173 (record_btrace_info): Print number of gaps.
12174 (btrace_insn_history, btrace_call_history): Call
12175 btrace_ui_out_decode_error for gaps.
12176 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
12178 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12180 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
12181 * nat/linux-btrace.c: (btrace_this_cpu): New.
12182 (cpu_supports_bts): Call btrace_this_cpu.
12183 (intel_supports_bts): Add cpu parameter.
12185 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12187 * btrace.h (btrace_insn_class): New.
12188 (btrace_insn) <size, iclass>: New.
12189 * btrace.c (ftrace_find_call): Update parameters. Update users.
12190 Use instruction classification.
12191 (ftrace_new_return): Update parameters. Update users.
12192 (ftrace_update_function): Update parameters. Update users. Use
12193 instruction classification.
12194 (ftrace_update_insns): Update parameters. Update users.
12195 (ftrace_classify_insn): New.
12196 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
12197 TRY_CATCH around call to gdb_insn_length.
12199 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12201 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
12202 Update parameters. Update users.
12204 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12206 * btrace.c (parse_xml_btrace_conf_bts): Add size.
12207 (btrace_conf_bts_attributes): New.
12208 (btrace_conf_children): Add attributes.
12209 * common/btrace-common.h (btrace_config_bts): New.
12210 (btrace_config)<bts>: New.
12211 (btrace_config): Update comment.
12212 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
12214 * features/btrace-conf.dtd: Increment version. Add size
12215 attribute to bts element.
12216 * record-btrace.c (set_record_btrace_bts_cmdlist,
12217 show_record_btrace_bts_cmdlist): New.
12218 (record_btrace_adjust_size, record_btrace_print_bts_conf,
12219 record_btrace_print_conf, cmd_set_record_btrace_bts,
12220 cmd_show_record_btrace_bts): New.
12221 (record_btrace_info): Call record_btrace_print_conf.
12222 (_initialize_record_btrace): Add commands.
12223 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
12224 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
12225 (btrace_sync_conf): Synchronize bts size.
12226 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
12227 * NEWS: Announce new commands and new packets.
12229 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12231 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
12232 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
12233 (x86_linux_btrace_conf): New.
12234 (x86_linux_create_target): Initialize to_btrace_conf.
12235 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
12236 Check format. Split into this and ...
12237 (linux_enable_bts): ... this.
12238 (linux_btrace_conf): New.
12239 (perf_event_skip_record): Renamed into ...
12240 (perf_event_skip_bts_record): ... this. Updated users.
12241 (linux_disable_btrace): Split into this and ...
12242 (linux_disable_bts): ... this.
12243 (linux_read_btrace): Check format.
12244 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
12245 (linux_btrace_conf): New.
12246 (btrace_target_info)<ptid>: Moved.
12247 (btrace_target_info)<conf>: New.
12248 (btrace_target_info): Split into this and ...
12249 (btrace_tinfo_bts): ... this. Updated users.
12250 * btrace.c (btrace_enable): Update parameters.
12251 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
12252 (btrace_conf_children, btrace_conf_attributes)
12253 (btrace_conf_elements): New.
12254 * btrace.h (btrace_enable): Update parameters.
12255 (btrace_conf, parse_xml_btrace_conf): New.
12256 * common/btrace-common.h (btrace_config): New.
12257 * feature/btrace-conf.dtd: New.
12258 * record-btrace.c (record_btrace_conf): New.
12259 (record_btrace_cmdlist): New.
12260 (record_btrace_enable_warn, record_btrace_open): Pass
12261 &record_btrace_conf.
12262 (record_btrace_info): Print recording format.
12263 (cmd_record_btrace_bts_start): New.
12264 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
12265 (_initialize_record_btrace): Add "record btrace bts" subcommand.
12266 Add "record bts" alias command.
12267 * remote.c (remote_state)<btrace_config>: New.
12268 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
12269 (remote_protocol_features): Add qXfer:btrace-conf:read.
12270 (remote_open_1): Call remote_btrace_reset.
12271 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
12272 (btrace_target_info)<conf>: New.
12273 (btrace_sync_conf, btrace_read_config): New.
12274 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
12276 (remote_btrace_conf): New.
12277 (init_remote_ops): Initialize to_btrace_conf.
12278 (_initialize_remote): Add qXfer:btrace-conf packet.
12279 * target.c (target_enable_btrace): Update parameters.
12280 (target_btrace_conf): New.
12281 * target.h (target_enable_btrace): Update parameters.
12282 (target_btrace_conf): New.
12283 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
12284 (target_ops)<to_enable_btrace>: Update parameters and comment.
12285 (target_ops)<to_btrace_conf>: New.
12286 * target-delegates: Regenerate.
12287 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
12288 (target_debug_print_const_struct_btrace_target_info_p): New.
12289 * NEWS: Announce new command and new packet.
12291 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12293 * nat/linux-btrace.h (perf_event_buffer): New.
12294 (btrace_target_info) <buffer, size, data_head>: Replace with ...
12296 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
12297 (perf_event_buffer_size, perf_event_buffer_begin)
12298 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
12300 (perf_event_new_data): New.
12302 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12304 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
12305 * record-btrace.c (record_btrace_open): Remove call to
12306 target_supports_btrace.
12307 * remote.c (remote_supports_btrace): Update parameters.
12308 * target.c (target_supports_btrace): Update parameters.
12309 * target.h (to_supports_btrace, target_supports_btrace): Update
12311 * target-delegates.c: Regenerate.
12312 * target-debug.h (target_debug_print_enum_btrace_format): New.
12313 * nat/linux-btrace.c
12314 (kernel_supports_btrace): Rename into ...
12315 (kernel_supports_bts): ... this. Update users. Update warning text.
12316 (intel_supports_btrace): Rename into ...
12317 (intel_supports_bts): ... this. Update users.
12318 (cpu_supports_btrace): Rename into ...
12319 (cpu_supports_bts): ... this. Update users.
12320 (linux_supports_btrace): Update parameters. Split into this and ...
12321 (linux_supports_bts): ... this.
12322 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
12324 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12326 * Makefile.in (SFILES): Add common/btrace-common.c.
12327 (COMMON_OBS): Add common/btrace-common.o.
12328 (btrace-common.o): Add build rules.
12329 * btrace.c (parse_xml_btrace): Update parameters.
12330 (parse_xml_btrace_block): Set format field.
12331 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
12332 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
12333 (btrace_compute_ftrace): Split into this and...
12334 (btrace_compute_ftrace_bts): ...this.
12335 (btrace_stitch_trace): Split into this and...
12336 (btrace_stitch_bts): ...this.
12337 * btrace.h (parse_xml_btrace): Update parameters.
12338 (make_cleanup_btrace_data): New.
12339 * common/btrace-common.c: New.
12340 * common/btrace-common.h: Include common-defs.h.
12341 (btrace_block_s): Update comment.
12342 (btrace_format): New.
12343 (btrace_format_string): New.
12344 (btrace_data_bts): New.
12345 (btrace_data): New.
12346 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
12347 * remote.c (remote_read_btrace): Update parameters.
12348 * target.c (target_read_btrace): Update parameters.
12349 * target.h (target_read_btrace): Update parameters.
12350 (target_ops)<to_read_btrace>: Update parameters.
12351 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
12352 * target-delegates.c: Regenerate.
12353 * target-debug (target_debug_print_struct_btrace_data_p): New.
12354 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
12355 (linux_read_bts): ...this.
12356 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
12358 2015-02-06 Doug Evans <dje@google.com>
12360 * remote-m32r-sdi.c: Include symfile.h.
12362 2015-02-06 Doug Evans <dje@google.com>
12364 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
12365 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
12368 2015-02-06 Pedro Alves <palves@redhat.com>
12370 * linux-thread-db.c (find_new_threads_callback): Add debug output.
12372 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
12375 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
12376 (enable_count_command): Check args for NULL value.
12378 2015-02-05 Doug Evans <xdje42@gmail.com>
12380 * guile/scm-frame.c: Fix spelling errors in a comment.
12382 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
12384 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
12385 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
12388 2015-02-04 Pedro Alves <palves@redhat.com>
12390 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
12391 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
12393 (resume_stopped_resumed_lwps): Don't check whether the thread is
12394 marked as executing.
12395 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
12397 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12399 * regset.h (struct regset): Add flags field.
12400 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
12401 * corelow.c (get_core_register_section): Add warning if the size
12402 exceeds the requested size and the regset does not have the
12403 REGSET_VARIABLE_SIZE flag set.
12404 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
12406 * armbsd-tdep.c (armbsd_gregset): Likewise.
12407 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
12408 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
12409 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
12410 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
12412 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12414 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
12415 For ".reg-xstate", explicitly specify the requested section size
12416 via X86_XSTATE_SIZE instead of just 0 on input and
12417 X86_XSTATE_MAX_SIZE on output.
12418 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
12421 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12423 PR corefiles/17808:
12424 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
12425 function type, particularly its SIZE parameter.
12426 * gdbarch.h: Regenerate.
12427 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
12428 actual against required size using ">=" instead of "==".
12429 (amd64_collect_fpregset): Likewise.
12430 * i386-tdep.c (i386_supply_gregset): Likewise.
12431 (i386_collect_gregset): Likewise.
12432 (i386_supply_fpregset): Likewise.
12433 (i386_collect_fpregset): Likewise.
12434 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
12435 (mips_fill_gregset_wrapper): Likewise.
12436 (mips_supply_fpregset_wrapper): Likewise.
12437 (mips_fill_fpregset_wrapper): Likewise.
12438 (mips64_supply_gregset_wrapper): Likewise.
12439 (mips64_fill_gregset_wrapper): Likewise.
12440 (mips64_supply_fpregset_wrapper): Likewise.
12441 (mips64_fill_fpregset_wrapper): Likewise.
12442 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
12443 (am33_supply_fpregset_method): Likewise.
12444 (am33_collect_gregset_method): Likewise.
12445 (am33_collect_fpregset_method): Likewise.
12447 2015-02-04 Doug Evans <dje@google.com>
12448 Pedro Alves <palves@redhat.com>
12449 Eli Zaretskii <eliz@gnu.org>
12452 * tui/tui-command.c (tui_refresh_cmd_win): New function.
12453 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
12454 * tui/tui-file.c: #include tui/tui-command.h.
12455 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
12456 (tui_file_flush): Refresh command window if stream is gdb_stdout.
12457 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
12459 2015-02-04 Pedro Alves <palves@redhat.com>
12461 Fix build breakage.
12462 * event-loop.c (gdb_do_one_event): Add default switch case.
12464 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12466 Filter out inferior gcc option -fpreprocessed.
12467 * compile/compile.c (filter_args): New function.
12468 (get_args): Use it.
12470 2015-02-03 Pedro Alves <palves@redhat.com>
12472 * event-loop.c: Don't declare nor define a queue type for
12474 (event_queue): Delete.
12475 (create_event, create_file_event, gdb_event_xfree)
12476 (initialize_event_loop, process_event): Delete.
12477 (gdb_do_one_event): Return as soon as one event is handled.
12478 (handle_file_event): Change prototype. Used the passed in
12479 file_handler pointer and ready_mask instead of looping over all
12481 (gdb_wait_for_event): Update the poll/select timeouts before
12482 blocking. Run event handlers directly instead of queueing events.
12483 Return as soon as one event is handled.
12484 (struct async_event_handler_data): Delete.
12485 (invoke_async_event_handler): Delete.
12486 (check_async_event_handlers): Change return type to int. Run
12487 event handlers directly instead of queueing events. Return as
12488 soon as one event is handled.
12489 (handle_timer_event): Delete.
12490 (update_wait_timeout): New function, factored out from
12492 (poll_timers): Reimplement.
12493 * event-loop.h (initialize_event_loop): Delete declaration.
12494 * top.c (gdb_init): Don't call initialize_event_loop.
12496 2015-02-03 Pedro Alves <palves@redhat.com>
12498 * event-loop.c (clear_async_event_handler): New function.
12499 * event-loop.h (clear_async_event_handler): New declaration.
12500 * record-btrace.c (record_btrace_async): New function.
12501 (init_record_btrace_ops): Install record_btrace_async.
12502 * record-full.c (record_full_async): New function.
12503 (record_full_resume): Don't mark the async event source here.
12504 (init_record_full_ops): Install record_full_async.
12505 (record_full_core_resume): Don't mark the async event source here.
12506 (init_record_full_core_ops): Install record_full_async.
12507 * remote.c (remote_async): Mark and clear the async stop reply
12508 queue event-loop token as appropriate.
12510 2015-02-03 Pedro Alves <palves@redhat.com>
12512 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
12513 target_is_async_p instead of target_can_async.
12514 (linux_nat_wait): Use target_is_async_p instead of
12515 target_can_async. Don't enable async here.
12516 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
12517 target_is_async_p instead of target_can_async.
12519 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
12521 * varobj.h (lang_varobj_ops): Mention which return values need
12524 2015-02-02 Joel Brobecker <brobecker@adacore.com>
12526 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
12528 2015-02-02 Joel Brobecker <brobecker@adacore.com>
12531 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
12532 results found in the cache.
12534 2015-02-02 Joel Brobecker <brobecker@adacore.com>
12537 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
12538 when allocating a new one.
12540 2015-02-01 Tom Tromey <tom@tromey.com>
12542 * MAINTAINERS: Remove myself.
12544 2015-01-31 Doug Evans <xdje42@gmail.com>
12546 * dwarf2read.c (process_structure_scope): Update setting of
12547 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
12548 * gdbtypes.c (internal_type_vptr_fieldno): New function.
12549 (set_type_vptr_fieldno): New function.
12550 (internal_type_vptr_basetype): New function.
12551 (set_type_vptr_basetype): New function.
12552 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
12553 TYPE_VPTR_BASETYPE.
12554 (allocate_cplus_struct_type): Initialize vptr_fieldno.
12555 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
12556 (print_cplus_stuff): ... moved here.
12557 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
12558 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
12560 (struct cplus_struct_type): ... here. All uses updated.
12561 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
12562 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
12563 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
12564 * stabsread.c (read_tilde_fields): Update setting of
12565 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
12567 2015-01-31 Doug Evans <xdje42@gmail.com>
12569 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
12571 (cp_print_class_member): Rename local domain to self_type.
12572 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
12573 domain_type to self_type.
12574 (set_die_type) <need_gnat_info>: Handle
12575 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
12576 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
12577 TYPE_SPECIFIC_SELF_TYPE.
12578 * gdbtypes.c (internal_type_self_type): New function.
12579 (set_type_self_type): New function.
12580 (smash_to_memberptr_type): Rename parameter domain to self_type.
12581 Update setting of TYPE_SELF_TYPE.
12582 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
12583 (smash_to_method_type): Rename parameter domain to self_type.
12584 Update setting of TYPE_SELF_TYPE.
12585 (check_stub_method): Call smash_to_method_type.
12586 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
12587 (copy_type_recursive): Ditto.
12588 * gdbtypes.h (enum type_specific_kind): New value
12589 TYPE_SPECIFIC_SELF_TYPE.
12590 (struct main_type) <type_specific>: New member self_type.
12591 (struct cplus_struct_type) <fn_field.type>: Update comment.
12592 (TYPE_SELF_TYPE): Rewrite.
12593 (internal_type_self_type, set_type_self_type): Declare.
12594 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
12596 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
12597 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
12599 * stabsread.c (read_member_functions): Mark methods with
12600 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
12603 2015-01-31 Doug Evans <xdje42@gmail.com>
12605 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
12608 2015-01-31 Doug Evans <xdje42@gmail.com>
12610 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
12611 or unions. Return zero if union.
12612 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
12613 (gnuv3_rtti_type): Pass already-check_typedef'd value to
12615 (compute_vtable_size): Assert only passed structs.
12616 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
12618 2015-01-31 Doug Evans <xdje42@gmail.com>
12620 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
12623 2015-01-31 Gary Benson <gbenson@redhat.com>
12624 Doug Evans <dje@google.com>
12629 * cli/cli-cmds.c (complete_command): Notify user if max-completions
12631 * common/common-exceptions.h (enum errors)
12632 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
12633 * completer.h (get_max_completions_reached_message): New declaration.
12634 (max_completions): Likewise.
12635 (completion_tracker_t): New typedef.
12636 (new_completion_tracker): New declaration.
12637 (make_cleanup_free_completion_tracker): Likewise.
12638 (maybe_add_completion_enum): New enum.
12639 (maybe_add_completion): New declaration.
12640 (throw_max_completions_reached_error): Likewise.
12641 * completer.c (max_completions): New global variable.
12642 (new_completion_tracker): New function.
12643 (free_completion_tracker): Likewise.
12644 (make_cleanup_free_completion_tracker): Likewise.
12645 (maybe_add_completions): Likewise.
12646 (throw_max_completions_reached_error): Likewise.
12647 (complete_line): Remove duplicates and limit result to max_completions
12649 (get_max_completions_reached_message): New function.
12650 (gdb_display_match_list): Handle max_completions.
12651 (_initialize_completer): New declaration and function.
12652 * symtab.c: Include completer.h.
12653 (completion_tracker): New static variable.
12654 (completion_list_add_name): Call maybe_add_completion.
12655 (default_make_symbol_completion_list_break_on_1): Renamed from
12656 default_make_symbol_completion_list_break_on. Maintain
12657 completion_tracker across calls to completion_list_add_name.
12658 (default_make_symbol_completion_list_break_on): New function.
12659 * top.c (init_main): Set rl_completion_display_matches_hook.
12660 * tui/tui-io.c: Include completer.h.
12661 (tui_old_rl_display_matches_hook): New static global.
12662 (tui_rl_display_match_list): Notify user if max-completions reached.
12663 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
12664 * NEWS (New Options): Mention set/show max-completions.
12666 2015-01-31 Gary Benson <gbenson@redhat.com>
12668 * symtab.c (struct add_name_data) <code>: New field.
12670 (add_symtab_completions): New function.
12671 (symtab_expansion_callback): Likewise.
12672 (default_make_symbol_completion_list_break_on): Set datum.code.
12673 Move minimal symbol scan before calling expand_symtabs_matching.
12674 Scan known primary symtabs for externs and statics before calling
12675 expand_symtabs_matching. Pass symtab_expansion_callback as
12676 expansion_notify argument to expand_symtabs_matching. Do not scan
12677 primary symtabs for externs and statics after calling
12678 expand_symtabs_matching.
12680 2015-01-31 Gary Benson <gbenson@redhat.com>
12682 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
12683 (struct quick_symbol_functions) <expand_symtabs_matching>:
12684 New argument expansion_notify. All uses updated.
12685 (expand_symtabs_matching): New argument expansion_notify.
12687 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12688 Also print expansion notify.
12689 * symtab.c (expand_symtabs_matching_via_partial): Call
12690 expansion_notify whenever a partial symbol table is expanded.
12691 * dwarf2read.c (dw2_expand_symtabs_matching): Call
12692 expansion_notify whenever a symbol table is instantiated.
12694 2015-01-31 Doug Evans <xdje42@gmail.com>
12696 * cli-out.c: #include completer.h, readline/readline.h.
12697 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
12698 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
12699 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
12700 * cli-out.h (cli_display_match_list): Declare.
12701 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
12702 (ELLIPSIS_LEN): Ditto.
12703 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
12704 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
12705 (gdb_fnprint, gdb_print_filename): Ditto.
12706 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
12707 (gdb_display_match_list): Ditto.
12708 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
12709 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
12710 (mld_beep_ftype, mld_read_key_ftype): Ditto.
12711 (match_list_displayer): New struct.
12712 (gdb_display_match_list): Declare.
12713 * top.c (init_main): Set rl_completion_display_matches_hook.
12714 * tui/tui-io.c: #include completer.h.
12715 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
12716 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
12717 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
12718 (tui_mld_getc, tui_mld_read_key): Ditto.
12719 (tui_rl_display_match_list): Rewrite.
12720 (tui_handle_resize_during_io): New arg for_completion. All callers
12723 2015-01-31 Doug Evans <xdje42@gmail.com>
12725 Add symbol lookup cache.
12726 * NEWS: Document new options and commands.
12727 * symtab.c (symbol_cache_key): New static global.
12728 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
12729 (SYMBOL_LOOKUP_FAILED): New macro.
12730 (symbol_cache_slot_state): New enum.
12731 (block_symbol_cache): New struct.
12732 (symbol_cache): New struct.
12733 (new_symbol_cache_size, symbol_cache_size): New static globals.
12734 (hash_symbol_entry, eq_symbol_entry): New functions.
12735 (symbol_cache_byte_size, resize_symbol_cache): New functions.
12736 (make_symbol_cache, free_symbol_cache): New functions.
12737 (get_symbol_cache, symbol_cache_cleanup): New function.
12738 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
12739 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
12740 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
12741 (symbol_cache_flush, symbol_cache_dump): New functions.
12742 (maintenance_print_symbol_cache): New function.
12743 (maintenance_flush_symbol_cache): New function.
12744 (symbol_cache_stats): New function.
12745 (maintenance_print_symbol_cache_statistics): New function.
12746 (symtab_new_objfile_observer): New function.
12747 (symtab_free_objfile_observer): New function.
12748 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
12749 (_initialize_symtab): Init symbol_cache_key. New parameter
12750 maint symbol-cache-size. New maint commands print symbol-cache,
12751 print symbol-cache-statistics, flush-symbol-cache.
12752 Install new_objfile, free_objfile observers.
12754 2015-01-31 Joel Brobecker <brobecker@adacore.com>
12757 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
12760 2015-01-31 Doug Evans <xdje42@gmail.com>
12762 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
12763 * auto-load.c: #include ctype.h.
12764 (struct auto_load_pspace_info): Replace member loaded_scripts with
12765 new members loaded_script_files, loaded_script_texts.
12766 (auto_load_pspace_data_cleanup): Update.
12767 (init_loaded_scripts_info): Update.
12768 (get_auto_load_pspace_data_for_loading): Update.
12769 (maybe_add_script_file): Renamed from maybe_add_script. All callers
12771 (maybe_add_script_text): New function.
12772 (clear_section_scripts): Update.
12773 (source_script_file, execute_script_contents): New functions.
12774 (source_section_scripts): Add support for
12775 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
12776 (print_scripts): New function.
12777 (auto_load_info_scripts): Also print inlined scripts.
12778 (maybe_print_unsupported_script_warning): Renamed from
12779 unsupported_script_warning_print. All callers updated.
12780 (maybe_print_script_not_found_warning): Renamed from
12781 script_not_found_warning_print. All callers updated.
12782 * extension-priv.h (struct extension_language_script_ops): New member
12783 objfile_script_executor.
12784 * extension.c (ext_lang_objfile_script_executor): New function.
12785 * extension.h (objfile_script_executor_func): New typedef.
12786 (ext_lang_objfile_script_executor): Declare.
12787 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
12788 * guile/guile.c (guile_extension_script_ops): Update.
12789 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
12790 * python/python.c (python_extension_script_ops): Update.
12791 (gdbpy_execute_objfile_script): New function.
12793 2015-01-31 Eli Zaretskii <eliz@gnu.org>
12795 * tui/tui-io.c (tui_expand_tabs): New function.
12796 (tui_puts, tui_redisplay_readline): Expand TABs into the
12797 appropriate number of spaces.
12798 * tui/tui-regs.c: Include tui-io.h.
12799 (tui_register_format): Call tui_expand_tabs to expand TABs into
12800 the appropriate number of spaces.
12801 * tui/tui-io.h: Add prototype for tui_expand_tabs.
12803 2015-01-30 Doug Evans <dje@google.com>
12805 * NEWS: "info source" command now display producer string if present.
12806 * source.c (source_info): Print producer string if present.
12808 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12810 * varobj.c (varobj_delete): Fix comment.
12812 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12814 * varobj.c (create_child): Modify comment.
12816 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12818 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
12820 (ada_name_of_variable): Same.
12821 (ada_path_expr_of_child): Same.
12822 (ada_value_of_variable): Same.
12823 (ada_value_is_changeable_p): Same.
12824 (ada_value_has_mutated): Same.
12825 * c-varobj.c (varobj_is_anonymous_child): Same.
12826 (c_is_path_expr_parent): Same.
12827 (c_number_of_children): Same.
12828 (c_name_of_variable): Same.
12829 (c_path_expr_of_child): Same.
12831 (c_value_of_variable): Same.
12832 (cplus_number_of_children): Same.
12833 (cplus_name_of_variable): Same.
12834 (cplus_path_expr_of_child): Same.
12835 (cplus_value_of_variable): Same.
12836 * jv-varobj.c (java_number_of_children): Same.
12837 (java_name_of_variable): Same.
12838 (java_path_expr_of_child): Same.
12839 (java_value_of_variable): Same.
12840 * varobj.c (number_of_children): Same.
12841 (name_of_variable): Same.
12843 (varobj_ensure_python_env): Same.
12844 (varobj_get_objname): Same.
12845 (varobj_get_expression): Same.
12846 (varobj_get_display_format): Same.
12847 (varobj_get_display_hint): Same.
12848 (varobj_has_more): Same.
12849 (varobj_get_thread_id): Same.
12850 (varobj_get_frozen): Same.
12851 (dynamic_varobj_has_child_method): Same.
12852 (varobj_get_gdb_type): Same.
12853 (is_path_expr_parent): Same.
12854 (varobj_default_is_path_expr_parent): Same.
12855 (varobj_get_language): Same.
12856 (varobj_get_attributes): Same.
12857 (varobj_is_dynamic_p): Same.
12858 (varobj_get_child_range): Same.
12859 (varobj_value_has_mutated): Same.
12860 (varobj_get_value_type): Same.
12861 (number_of_children): Same.
12862 (name_of_variable): Same.
12863 (check_scope): Same.
12864 (varobj_editable_p): Same.
12865 (varobj_value_is_changeable_p): Same.
12866 (varobj_floating_p): Same.
12867 (varobj_default_value_is_changeable_p): Same.
12869 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12871 * varobj.c (varobj_get_path_expr): Set var->path_expr.
12872 * c-varobj.c (c_path_expr_of_child): Set local var instead of
12874 (cplus_path_expr_of_child): Same.
12876 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12878 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
12880 (mi_cmd_var_info_expression): Same.
12881 * varobj.c (varobj_get_expression): Mention in the comment that
12882 the result must by freed by the caller.
12884 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12886 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
12888 (varobj_update_one): Same.
12889 * varobj.c (update_type_if_necessary): Free curr_type_str and
12891 (varobj_get_type): Specify in comment that the result needs to be
12892 freed by the caller.
12894 2015-01-29 Doug Evans <dje@google.com>
12897 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
12899 2015-01-25 Mark Wielaard <mjw@redhat.com>
12901 * dwarf2read.c (checkproducer): Call producer_is_gcc.
12902 * utils.c (producer_is_gcc_ge_4): Likewise.
12903 (producer_is_gcc): New function.
12904 * utils.h (producer_is_gcc): New declaration.
12906 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12908 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
12910 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
12911 parameter by "addr_stack" parameter.
12912 (resolve_dynamic_range): Replace "addr" parameter by
12913 "stack_addr" parameter. Update function documentation.
12914 Update code accordingly.
12915 (resolve_dynamic_array, resolve_dynamic_union)
12916 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
12917 (resolve_dynamic_type): Update code, following the changes made
12918 to resolve_dynamic_type_internal's interface.
12919 * dwarf2loc.h (struct property_addr_info): New.
12920 (dwarf2_evaluate_property): Replace "address" parameter
12921 by "addr_stack" parameter. Adjust function documentation.
12922 (struct dwarf2_offset_baton): New.
12923 (struct dwarf2_property_baton): Update documentation of
12924 field "referenced_type" to be more general. New field
12925 "offset_info" in union data field.
12926 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
12927 parameter by "addr_stack" parameter. Adjust code accordingly.
12928 Add support for PROP_ADDR_OFFSET properties.
12929 * dwarf2read.c (attr_to_dynamic_prop): Add support for
12930 DW_AT_data_member_location attributes as well. Use case
12931 statements instead of if/else condition.
12933 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12935 * ada-varobj.c (ada_varobj_get_array_number_of_children):
12936 Return zero if PARENT_VALUE is NULL and parent_type's
12937 range type is dynamic.
12939 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12941 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
12942 nonzero if the type's subtype is dynamic.
12943 (resolve_dynamic_range): Also resolve the range's subtype.
12945 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
12947 Pushed by Joel Brobecker <brobecker@adacore.com>.
12948 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
12950 2015-01-27 Doug Evans <dje@google.com>
12952 * NEWS: Mention gdb.Objfile.username.
12953 * python/py-objfile.c (objfpy_get_username): New function.
12954 (objfile_getset): Add "username".
12956 2015-01-24 Mark Wielaard <mjw@redhat.com>
12958 * stack.c (return_command): Markup warning message with _.
12960 2015-01-24 Doug Evans <xdje42@gmail.com>
12962 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
12964 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12966 Fix 100x slowdown regression on DWZ files.
12967 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
12968 (struct line_header): Add offset and offset_in_dwz.
12969 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
12970 (free_line_header_voidp): New declaration.
12971 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
12973 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
12974 (handle_DW_AT_stmt_list): Use line_header_hash.
12975 (free_line_header_voidp): New function.
12976 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
12977 (dwarf_decode_lines): New parameter decode_mapping, use it.
12978 (dwarf2_free_objfile): Free line_header_hash.
12980 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
12983 * valops.c (value_rtti_indirect_type): Catch exception thrown by
12986 2015-01-15 Mark Wielaard <mjw@redhat.com>
12988 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
12990 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
12991 calling_convention an 8 bit bit field.
12992 (TYPE_NO_RETURN): New macro.
12993 * infcmd.c (finish_command): Query if function does not return
12995 * stack.c (return_command): Likewise.
12997 2015-01-23 Pedro Alves <palves@redhat.com>
12999 * linux-nat.c (linux_is_async_p): New macro.
13000 (linux_nat_is_async_p):
13001 (linux_nat_terminal_inferior): Check whether the target can async
13002 instead of whether it is already async.
13003 (linux_nat_terminal_ours): Don't check whether the target is
13005 (linux_async_pipe): Use linux_is_async_p.
13007 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
13009 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
13011 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
13012 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
13013 Sort tp_array using tp_array_compar.
13014 (_initialize_thread): Extend thread_apply_all_command help.
13016 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
13018 * corelow.c (core_open): Call also thread_command.
13019 * gdbthread.h (thread_command): New prototype moved from ...
13020 * thread.c (thread_command): ... here.
13021 (thread_command): Make it global.
13023 2015-01-22 Pedro Alves <palves@redhat.com>
13025 * configure.ac [*mingw32*]: Check $curses_found instead of
13027 * configure: Regenerate.
13028 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
13029 HAVE_NCURSES_NCURSES_H checks.
13031 2015-01-22 Eli Zaretskii <eliz@gnu.org>
13033 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
13034 fails with the 1st arg NULL, try again with "unknown". Don't test
13035 the "cup" capability: it isn't supported by the Windows port of
13036 ncurses, but the Windows console driver is still capable of
13039 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
13041 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
13043 2015-01-22 Eli Zaretskii <eliz@gnu.org>
13045 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
13046 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
13047 reason that "make TAGS" is broken.
13049 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
13051 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
13052 and check additional store instructions.
13054 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
13056 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
13058 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
13060 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
13061 ppc_canonicalize_syscall, ppc_linux_syscall_record,
13062 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
13063 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
13064 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
13065 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
13066 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
13067 ppc_process_record_op19, ppc_process_record_op31,
13068 ppc_process_record_op59, ppc_process_record_op60,
13069 ppc_process_record_op63): Likewise.
13071 2015-01-20 Joel Brobecker <brobecker@adacore.com>
13073 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
13074 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
13077 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
13079 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
13080 ppc_process_record_op31, ppc_process_record_op59,
13081 ppc_process_record_op60, ppc_process_record_op63,
13082 ppc_process_record): Fix -Wformat warning.
13083 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
13084 Remove unused variables.
13086 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
13088 * MAINTAINERS (Write After Approval): Add "Chen Gang".
13090 2015-01-19 Eli Zaretskii <eliz@gnu.org>
13092 * configure.ac [*mingw32*]: Only add windows-termcap.o to
13093 CONFIG_OBS if not building with a curses library.
13094 * configure: Regenerate.
13096 * windows-termcap.c: Include defs.h. Make the whole body empty if
13097 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
13098 HAVE_NCURSES_NCURSES_H is defined.
13100 2015-01-19 Joel Brobecker <brobecker@adacore.com>
13102 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
13103 from end of line to start of next line.
13105 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
13107 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
13108 Scan PLT stub backward for reverse debugging.
13109 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
13111 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
13112 Ulrich Weigand <uweigand@de.ibm.com>
13114 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
13116 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
13118 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
13119 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
13120 (ppc_linux_init_abi): Set process_record, process_record_signal.
13121 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
13122 ppc_linux_record_tdep to gdbarch_tdep.
13123 (ppc_process_record): New declaration.
13124 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
13125 ppc_process_record_op19, ppc_process_record_op31,
13126 ppc_process_record_op59, ppc_process_record_op60,
13127 ppc_process_record_op63, ppc_process_record): New functions.
13129 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
13131 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
13132 rs6000_in_function_epilogue_frame_p and add an argument
13134 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
13135 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
13137 (rs6000_epilogue_frame_unwind): New.
13138 (rs6000_gdbarch_init): Append epilogue unwinder.
13140 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
13142 * nat/linux-personality.c: Replace "#ifndef
13143 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
13144 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
13147 2015-01-16 Eli Zaretskii <eliz@gnu.org>
13149 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
13151 (_initialize_tui_win) <border-kind, border-mode>:
13152 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
13153 (tui_set_tab_width_command): Fix the commentary.
13155 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
13157 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
13159 (tui_set_tab_width_command): Delete and recreate the source and
13160 the disassembly windows, to show the effect of the changed tab
13163 * tui/tui-data.h (LINE_PREFIX): Make shorter
13164 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
13165 "Thread NNNNN.XXXX" thread ID notation on Windows.
13167 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13169 Fix gcc-5 compilation.
13170 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
13172 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
13174 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
13175 (linux-personality.o): New rule.
13176 * common/common-defs.h: Include <stdint.h>.
13177 * config/aarch64/linux.mh (NATDEPFILES): Include
13178 linux-personality.o.
13179 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
13180 * config/arm/linux.mh (NATDEPFILES): Likewise.
13181 * config/i386/linux64.mh (NATDEPFILES): Likewise.
13182 * config/i386/linux.mh (NATDEPFILES): Likewise.
13183 * config/ia64/linux.mh (NATDEPFILES): Likewise.
13184 * config/m32r/linux.mh (NATDEPFILES): Likewise.
13185 * config/m68k/linux.mh (NATDEPFILES): Likewise.
13186 * config/mips/linux.mh (NATDEPFILES): Likewise.
13187 * config/pa/linux.mh (NATDEPFILES): Likewise.
13188 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
13189 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
13190 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
13191 * config/s390/linux.mh (NATDEPFILES): Likewise.
13192 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
13193 * config/sparc/linux.mh (NATDEPFILES): Likewise.
13194 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
13195 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
13196 * defs.h: Remove #include <stdint.h> (moved to
13197 common/common-defs.h).
13198 * linux-nat.c: Include nat/linux-personality.h. Remove #include
13199 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
13200 nat/linux-personality.c).
13201 (linux_nat_create_inferior): Remove code to disable address space
13202 randomization (moved to nat/linux-personality.c). Create cleanup
13203 to disable address space randomization.
13204 * nat/linux-personality.c: New file.
13205 * nat/linux-personality.h: Likewise.
13207 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
13209 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
13210 common/posix-strerror.c.
13211 (posix-strerror.o): New rule.
13212 (mingw-strerror.o): Likewise.
13213 * common/common-utils.h (safe_strerror): Move prototype to here,
13215 * common/common.host: New file.
13216 * common/mingw-strerror.c: Likewise.
13217 * common/posix-strerror.c: Likewise.
13218 * configure: Regenerated.
13219 * configure.ac: Source common/common.host. Add variable
13220 common_host_obs to gdb_host_obs.
13221 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
13222 gdb/common/posix-strerror.c when warning about the use of
13224 * mingw-hdep.c (safe_strerror): Remove definition; move it to
13225 common/mingw-strerror.c.
13226 * posix-hdep.c (safe_strerror): Remove definition; move it to
13227 common/posix-hdep.c.
13228 * utils.h (safe_strerror): Remove prototype; move to
13229 common/common-utils.h.
13231 2015-01-15 Joel Brobecker <brobecker@adacore.com>
13233 GDB 7.8.2 released.
13235 2015-01-15 Joel Brobecker <brobecker@adacore.com>
13237 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
13238 ___XA type if the array has already been fixed.
13240 2015-01-14 Yao Qi <yao@codesourcery.com>
13242 * Makefile.in (ppc-linux.o): New rule.
13243 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
13244 * configure.ac: AC_CHECK_FUNCS(getauxval).
13245 * config.in: Re-generated.
13246 * configure: Re-generated.
13247 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
13249 * nat/ppc-linux.c: New file.
13250 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
13251 Call ppc64_64bit_inferior_p.
13253 2015-01-14 Yao Qi <yao@codesourcery.com>
13255 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
13257 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
13258 (PPC_FEATURE_HAS_DFP): Likewise.
13259 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
13260 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
13261 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
13262 Include "nat/ppc-linux.h".
13263 * nat/ppc-linux.h: New file.
13264 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
13266 2015-01-14 Pedro Alves <palves@redhat.com>
13269 * breakpoint.c: Include "interps.h".
13270 (bpstat_do_actions_1): Also check whether the interpreter is
13273 2015-01-14 Pedro Alves <palves@redhat.com>
13276 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
13277 reinstall if the interpreter is sync.
13279 2015-01-13 Doug Evans <dje@google.com>
13281 * objfiles.c (objfile_filename): New function.
13282 * objfiles.h (objfile_filename): Declare it.
13283 (objfile_name): Add function comment.
13284 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
13285 bfd file name (which may be realpath'd), and the original name.
13287 2015-01-13 Joel Brobecker <brobecker@adacore.com>
13289 * NEWS: Create a new section for the next release branch.
13290 Rename the section of the current branch, now that it has
13293 2015-01-13 Joel Brobecker <brobecker@adacore.com>
13295 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
13296 * version.in: Bump version to 7.9.50.DATE-cvs.
13298 2015-01-13 Joel Brobecker <brobecker@adacore.com>
13300 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
13301 Remove trailing new-line in argument of call to warning.
13303 2015-01-13 Joel Brobecker <brobecker@adacore.com>
13305 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
13306 new-line in argument of call to "warning".
13308 2015-01-13 Joel Brobecker <brobecker@adacore.com>
13310 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
13311 in static block, then try searching for primitive types.
13313 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
13315 * top.h (gdb_add_history): Declare.
13316 * top.c (command_count): New variable.
13317 (gdb_add_history): New function.
13318 (gdb_safe_append_history): New static function.
13319 (quit_force): Call it.
13320 (command_line_input): Use gdb_add_history instead of
13322 * event-top.c (command_line_handler): Likewise.
13324 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
13327 * darwin-nat.c: Replace <machine/setjmp.h> #include by
13328 <setjmp.h> #include.
13330 2015-01-11 Doug Evans <xdje42@gmail.com>
13332 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
13334 2015-01-11 Doug Evans <xdje42@gmail.com>
13337 * NEWS: The "maint demangle" command is renamed as "demangle".
13338 * demangle.c: #include cli/cli-utils.h, language.h.
13339 (demangle_command): New function.
13340 (_initialize_demangle): Add new command "demangle".
13341 * maint.c (maintenance_demangle): Stub out.
13342 (_initialize_maint_cmds): Update help text for "maint demangle",
13343 and mark as deprecated.
13345 2015-01-11 Mark Kettenis <kettenis@gnu.org>
13347 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
13348 inferior_thread is a function.
13350 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
13352 * Makefile.in (.y.c): Don't munge yacc's #line
13355 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
13357 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
13358 to prompt for input.
13359 * tui/tui-hooks.c (tui_query_hook): Remove.
13360 (tui_install_hooks): Don't set deprecated_query_hook.
13361 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
13362 height calculation. Always update the command window's cur_line.
13364 2015-01-09 Pedro Alves <palves@redhat.com>
13366 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
13368 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
13370 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
13371 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
13373 (check_stopped_by_watchpoint): New function.
13374 (save_sigtrap): Reimplement.
13375 (linux_nat_stopped_by_watchpoint): Adjust.
13376 (linux_nat_lp_status_is_event): Delete.
13377 (stop_wait_callback): Only call save_sigtrap after storing the
13379 (status_callback): If the thread had been stopped for a breakpoint
13380 that has since been removed, discard the event and resume the LWP.
13381 (count_events_callback, select_event_lwp_callback): Use
13382 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
13383 (cancel_breakpoint): Rename to ...
13384 (check_stopped_by_breakpoint): ... this. Record whether the LWP
13385 stopped for a software breakpoint or hardware breakpoint.
13386 (select_event_lwp): Only give preference to the stepping LWP in
13387 all-stop mode. Adjust comments.
13388 (stop_and_resume_callback): Remove references to new_pending_p.
13389 (linux_nat_filter_event): Likewise. Leave exit events of the
13390 leader thread pending here. Handle signal short circuiting here.
13391 Only call save_sigtrap after storing the pending waitstatus.
13392 (linux_nat_wait_1): Remove 'retry' label. Remove references to
13393 new_pending. Don't handle leaving events the caller is not
13394 interested in pending here, nor handle signal short-circuiting
13395 here. Also give equal priority to all LWPs that have had events
13396 in non-stop mode. If reporting a software breakpoint event,
13397 unadjust the LWP's PC.
13398 * linux-nat.h (enum lwp_stop_reason): New.
13399 (struct lwp_info) <stop_pc>: New field.
13400 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
13401 (struct lwp_info) <stop_reason>: New field.
13402 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
13404 2015-01-09 Pedro Alves <palves@redhat.com>
13406 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
13407 Set the LWP's 'resumed' flag.
13409 2015-01-09 Pedro Alves <palves@redhat.com>
13411 * linux-nat.c (linux_resume_one_lwp): New function.
13412 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
13413 (linux_nat_resume): Use lwp_status_pending_p and
13414 linux_resume_one_lwp.
13415 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
13416 (linux_handle_extended_wait): Use linux_resume_one_lwp.
13417 (status_callback, running_callback): Use lwp_status_pending_p.
13418 (lwp_status_pending_p): New function.
13419 (stop_and_resume_callback): Use lwp_status_pending_p.
13420 (linux_nat_filter_event): Use linux_resume_one_lwp.
13421 (linux_nat_wait_1): Always use status_callback to look for an LWP
13422 with a pending status. Use linux_resume_one_lwp.
13423 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
13424 linux_resume_one_lwp.
13426 2015-01-09 Pedro Alves <palves@redhat.com>
13428 * breakpoint.c (bp_location_inserted_here_p): New function,
13429 factored out from ...
13430 (breakpoint_inserted_here_p): ... here. Use
13431 ALL_BP_LOCATIONS_AT_ADDR.
13432 (software_breakpoint_inserted_here_p): Use
13433 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
13435 2014-01-09 Pedro Alves <palves@redhat.com>
13437 Skip enabling event reporting if the kernel supports
13438 PTRACE_EVENT_CLONE.
13439 * linux-thread-db.c: Include "nat/linux-ptrace.h".
13440 (thread_db_use_events): New function.
13441 (try_thread_db_load_1): Check thread_db_use_events before enabling
13443 (update_thread_state): New function.
13444 (attach_thread): Use it. Check thread_db_use_events before
13445 enabling event reporting.
13446 (thread_db_detach): Check thread_db_use_events before disabling
13448 (find_new_threads_callback): Check thread_db_use_events before
13449 enabling event reporting. Update the thread's state if not using
13450 libthread_db events.
13452 2015-01-09 Pedro Alves <palves@redhat.com>
13454 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
13455 about to wait for is > 0.
13456 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
13457 the kernel thread ID is -1.
13459 2015-01-09 Pedro Alves <palves@redhat.com>
13461 * linux-nat.c (attach_proc_task_lwp_callback): New function.
13462 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
13463 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
13464 ptrace option flags.
13465 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
13467 * nat/linux-procfs.c: Include <dirent.h>.
13468 (linux_proc_get_int): New parameter "warn". Handle it.
13469 (linux_proc_get_tgid): Adjust.
13470 (linux_proc_get_tracerpid): Rename to ...
13471 (linux_proc_get_tracerpid_nowarn): ... this.
13472 (linux_proc_pid_get_state): New function, factored out from
13473 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
13475 (linux_proc_pid_is_gone): New function.
13476 (linux_proc_pid_is_stopped): Adjust.
13477 (linux_proc_pid_is_zombie_maybe_warn)
13478 (linux_proc_pid_is_zombie_nowarn): New functions.
13479 (linux_proc_pid_is_zombie): Use
13480 linux_proc_pid_is_zombie_maybe_warn.
13481 (linux_proc_attach_tgid_threads): New function.
13482 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
13483 (linux_proc_get_tracerpid): Rename to ...
13484 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
13485 (linux_proc_pid_is_gone): New declaration.
13486 (linux_proc_pid_is_zombie): Update comment.
13487 (linux_proc_pid_is_zombie_nowarn): New declaration.
13488 (linux_proc_attach_lwp_func): New typedef.
13489 (linux_proc_attach_tgid_threads): New declaration.
13490 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
13491 use nowarn functions.
13492 (linux_ptrace_attach_fail_reason_string): Move here from
13493 gdbserver/linux-low.c and rename.
13494 (ptrace_supports_feature): If the current ptrace options are not
13495 known yet, check them now, instead of asserting.
13496 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
13499 2015-01-09 Pedro Alves <palves@redhat.com>
13501 * linux-thread-db.c (thread_db_find_new_threads_silently)
13502 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
13503 (find_new_threads_once): Print debug output on gdb_stdlog.
13505 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
13506 Pedro Alves <palves@redhat.com>
13508 * compile/compile.c: Include "gdb_wait.h".
13509 (do_rmdir): Check return value, and free 'zap'.
13511 2015-01-08 Pedro Alves <palves@redhat.com>
13512 Yao Qi <yao@codesourcery.com>
13514 * dwarf2loc.c (indirect_pieced_value): Don't call
13515 gdb_sign_extend. Call extract_signed_integer instead.
13516 * utils.c (gdb_sign_extend): Remove.
13517 * utils.h (gdb_sign_extend): Remove declaration.
13519 2015-01-07 Pierre Muller <muller@sourceware.org>
13522 * stabsread.c (define_symbol): Set language for C++ special symbols.
13524 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
13526 * inflow.c (initial_gdb_ttystate): Tweak comment.
13528 2015-01-07 Joel Brobecker <brobecker@adacore.com>
13530 * inflow.c (set_initial_gdb_ttystate): Add empty line after
13531 comment documenting function.
13533 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
13535 * terminal.h (set_initial_gdb_ttystate): Declare.
13536 * inflow.c (initial_gdb_ttystate): New static variable.
13537 (set_initial_gdb_ttystate): New setter.
13538 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
13539 instead of our current terminal state.
13540 * top.c (gdb_init): Call set_initial_gdb_ttystate.
13542 2015-01-07 Joel Brobecker <brobecker@adacore.com>
13544 * guile/scm-type.c (tyscm_array_1): Add comment.
13545 * python/py-type.c (typy_array_1): Add comment.
13547 2015-01-06 Joel Brobecker <brobecker@adacore.com>
13549 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
13550 error if N2 is equal to N1 - 1.
13552 2015-01-06 Joel Brobecker <brobecker@adacore.com>
13554 * python/py-type.c (typy_array_1): Do not raise negative-length
13555 exception if N2 is equal to N1 - 1.
13557 2015-01-03 Doug Evans <xdje42@gmail.com>
13559 * c-exp.y: Whitespace cleanup.
13560 (classify_inner_name): Remove extra ;.
13562 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
13564 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
13567 2015-01-02 Doug Evans <dje@google.com>
13569 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
13571 2015-01-02 Doug Evans <dje@google.com>
13573 * symtab.h (struct symbol): Fix typo in comment.
13575 2015-01-01 Joel Brobecker <brobecker@adacore.com>
13577 Update year range in copyright notice of all files.
13579 2015-01-01 Joel Brobecker <brobecker@adacore.com>
13581 * top.c (print_gdb_version): Update copyright year to 2015.
13583 2015-01-01 Joel Brobecker <brobecker@adacore.com>
13585 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
13587 For older changes see ChangeLog-2014.
13593 version-control: never