1 2015-11-09 Joel Brobecker <brobecker@adacore.com>
3 * ada-lang.c (ada_is_wrapper_field): Add special handling
4 for fields called "RETVAL".
6 2015-11-09 Yao Qi <yao.qi@linaro.org>
8 * arm-tdep.c (arm_exidx_new_objfile): Use
11 2015-11-09 Yao Qi <yao.qi@linaro.org>
13 * infrun.c (displaced_step_in_progress_thread): New function.
14 (handle_inferior_event_1): Call it.
16 2015-11-05 Yao Qi <yao.qi@linaro.org>
18 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Call
19 aarch64_decode_insn and decode instruction by aarch64_inst.
21 2015-11-05 Yao Qi <yao.qi@linaro.org>
23 * aarch64-tdep.c (extract_signed_bitfield): Remove.
24 (decode_masked_match): Remove.
25 (aarch64_decode_add_sub_imm): Remove.
26 (aarch64_decode_br): Remove.
27 (aarch64_decode_eret): Remove.
28 (aarch64_decode_movz): Remove.
29 (aarch64_decode_orr_shifted_register_x): Remove.
30 (aarch64_decode_ret): Remove.
31 (aarch64_decode_stp_offset): Remove.
32 (aarch64_decode_stur): Remove.
33 (aarch64_analyze_prologue): Call aarch64_decode_insn
34 and use aarch64_inst to decode instructions.
36 2015-11-05 Yao Qi <yao.qi@linaro.org>
38 * aarch64-tdep.c (aarch64_decode_stp_offset): New argument
40 (aarch64_decode_stp_offset_wb): Removed.
41 (aarch64_analyze_prologue): Don't use
42 aarch64_decode_stp_offset_wb.
44 2015-11-04 Marcin Kościelnicki <koriakin@0x04.net>
47 * gdb/s390-linux-tdep.c (s390_is_partial_instruction): New function.
48 (s390_software_single_step): New function.
49 (s390_displaced_step_hw_singlestep): New function.
50 (s390_gdbarch_init): Fill gdbarch slots with the above.
52 2015-11-04 Marcin Kościelnicki <koriakin@0x04.net>
55 * gdb/configure.tgt: Add linux-record.o to s390*-linux.
56 * gdb/s390-linux-tdep.c: #include "linux-record.h", "record-full.h"
57 (s390_linux_record_tdep): New static global variable.
58 (s390x_linux_record_tdep): New static global variable.
59 (s390_all_but_pc_registers_record): New function.
60 (s390_canonicalize_syscall): New function.
61 (s390_linux_syscall_record): New function.
62 (s390_linux_record_signal): New function.
63 (s390_record_calc_disp_common): New function.
64 (s390_record_calc_disp): New function.
65 (s390_record_calc_disp_vsce): New function.
66 (s390_record_calc_rl): New function.
67 (s390_record_gpr_g): New function.
68 (s390_record_gpr_h): New function.
69 (s390_record_vr): New function.
70 (s390_process_record): New function.
71 (s390_init_linux_record_tdep): New function.
72 (s390_gdbarch_init): Fill record function slots.
74 2015-11-04 Marcin Kościelnicki <koriakin@0x04.net>
76 * record-full.c (record_full_exec_insn): Use xmalloc for temporary
79 2015-11-04 Markus Metzger <markus.t.metzger@intel.com>
81 * record.c (get_insn_history_modifiers): Set DISASSEMBLY_SOURCE
82 instead of DISASSEMBLY_SOURCE_DEPRECATED. Also accept /s.
83 (_initialize_record): Document the /s modifier.
84 * NEWS: Announce record instruction-history's new /s modifier.
86 2015-11-04 Markus Metzger <markus.t.metzger@intel.com>
88 * record-btrace.c (struct btrace_line_range): New.
89 (btrace_mk_line_range, btrace_line_range_add)
90 (btrace_line_range_is_empty, btrace_line_range_contains_range)
91 (btrace_find_line_range, btrace_print_lines): New.
92 (btrace_insn_history): Add source interleaving algorithm.
94 2015-11-04 Markus Metzger <markus.t.metzger@intel.com>
96 * disasm.h (DISASSEMBLY_SPECULATION): New.
97 (struct disasm_insn): New.
98 (gdb_pretty_print_insn): New.
99 * disasm.c (gdb_pretty_print_insn): Replace parameter PC with INSN.
100 Update users. Print instruction number and indicate speculative
101 execution, if requested.
103 2015-11-04 Markus Metzger <markus.t.metzger@intel.com>
105 * disasm.c (dump_insns): Split into this and ...
106 (gdb_pretty_print_insn): ... this.
108 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
110 * xtensa-linux-nat.c (supply_gregset_reg): Make static.
111 (xtensa_linux_fetch_inferior_registers): Likewise.
112 (xtensa_linux_store_inferior_registers): Likewise.
114 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
116 * arm-linux-nat.c (arm_linux_read_description): Add cast.
118 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
120 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint): Change
121 type of rw to enum target_hw_bp_type.
122 (ppc_linux_remove_mask_watchpoint): Likewise.
123 * target.c (target_insert_mask_watchpoint): Likewise.
124 (target_remove_mask_watchpoint): Likewise.
125 * target.h (target_insert_mask_watchpoint): Likewise.
126 (target_remove_mask_watchpoint): Likewise.
127 (struct target_ops) <to_insert_mask_watchpoint>: Likewise.
128 (struct target_ops) <to_remove_mask_watchpoint>: Likewise.
129 * target-delegates.c: Regenerate.
131 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
133 * remote-sim.c (check_for_duplicate_sim_descriptor): Add casts.
134 (get_sim_inferior_data): Likewise.
135 (sim_inferior_data_cleanup): Likewise.
136 (gdbsim_close_inferior): Likewise.
137 (gdbsim_resume_inferior): Likewise.
138 (gdbsim_wait): Likewise.
139 (simulator_command): Likewise.
140 (sim_command_completer): Likewise.
142 2015-11-03 Marcin Kościelnicki <koriakin@0x04.net>
144 * MAINTAINERS (Write After Approval): Add Marcin Kościelnicki.
146 2015-10-30 Pedro Alves <palves@redhat.com>
148 * breakpoint.c (breakpoint_in_range_p)
149 (breakpoint_location_address_range_overlap): New functions.
150 * breakpoint.h (breakpoint_in_range_p): New declaration.
151 * infrun.c (displaced_step_prepare_throw): If there's a breakpoint
152 in the scratch pad range, don't displaced step.
154 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
156 * amd64-linux-tdep.c (amd64_x32_linux_init_abi): Fix size_msghdr,
157 size_stack_t, size_size_t, size_iovec.
159 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
161 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Fix size_termios.
162 * amd64-linux-tdep.c (amd64_linux_init_abi): Fix size_termios.
163 (amd64_x32_linux_init_abi): Fix size_termios.
165 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
167 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Fix TASK_COMM_LEN.
169 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
171 * linux-record.c (record_linux_system_call): Fix old_select.
173 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
175 * linux-record.c (record_linux_system_call): Fix newstatat.
177 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
179 * linux-record.c (record_linux_system_call): Fix [gs]etgroups16.
181 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
183 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add size_time_t.
184 * amd64-linux-tdep.c (amd64_linux_init_abi): Add size_time_t.
185 (amd64_x32_linux_init_abi): Add size_time_t.
186 * arm-linux-tdep.c (arm_linux_init_abi): Add size_time_t.
187 * i386-linux-tdep.c (i386_linux_init_abi): Add size_time_t.
188 * linux-record.c (record_linux_system_call): Add time, waitpid, pipe
190 * linux-record.h (struct linux_record_tdep): Add size_time_t.
191 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Add size_time_t.
193 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
195 * linux-record.c (record_linux_msghdr): Fix msg_namelen handling.
197 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
199 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove
200 size_dirent{,64}, add size_old_dirent.
201 * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_dirent{,64},
203 (amd64_x32_linux_init_abi): Remove size_dirent{,64}, add
205 * arm-linux-tdep.c (arm_linux_init_abi): Remove size_dirent{,64},
207 * i386-linux-tdep.c (i386_linux_init_abi): Remove size_dirent{,64},
209 * linux-record.c (record_linux_system_call): Fix handling of readdir
211 * linux-record.h (struct linux_record_tdep): Remove size_dirent{,64},
213 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove
214 size_dirent{,64}, add size_old_dirent.
216 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
218 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Fix size_sigaction,
219 size_sigset_t, size_old_sigaction, size_old_sigset_t.
220 * amd64-linux-tdep.c (amd64_linux_init_abi): Fix size_sigaction,
221 size_sigset_t, size_old_sigaction, size_old_sigset_t.
222 (amd64_x32_linux_init_abi): Fix size_sigaction, size_sigset_t,
223 size_old_sigaction, size_old_sigset_t.
224 * arm-linux-tdep.c (arm_linux_init_abi): Fix size_sigaction,
225 size_old_sigaction, size_old_sigset_t.
226 * i386-linux-tdep.c (i386_linux_init_abi): Fix size_sigaction,
227 size_old_sigaction, size_old_sigset_t.
228 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Fix size_sigaction,
229 size_sigset_t, size_old_sigaction, size_old_sigset_t.
231 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
233 * arm-linux-tdep.c (arm_linux_init_abi): Fix size_[ug]id.
234 * i386-linux-tdep.c (i386_linux_init_abi): Fix size_[ug]id.
236 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
238 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove size_siginfo.
239 * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_siginfo.
240 (amd64_x32_linux_init_abi): Remove size_siginfo.
241 * arm-linux-tdep.c (arm_linux_init_abi): Remove size_siginfo.
242 * i386-linux-tdep.c (i386_linux_init_abi): Remove size_siginfo.
243 * linux-record.c (record_linux_system_call): Change size_siginfo
245 * linux-record.h (struct linux_record_tdep): Remove size_siginfo.
246 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove size_siginfo.
248 2015-10-29 Pedro Alves <palves@redhat.com>
250 * mdebugread.c (add_data_symbol): New function, factored out from
252 (parse_symbol): ... here. Delete 'theclass' local.
254 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
256 * jit.c (jit_target_read_impl): Add cast.
258 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
260 * jit.c (jit_reader_load): Add cast.
262 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
264 * dwarf2read.c (partial_die_full_name): Add cast.
266 2015-10-29 Pedro Alves <palves@redhat.com>
268 * common/vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
270 2015-10-29 Pedro Alves <palves@redhat.com>
272 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Add cast.
274 2015-10-29 Eli Zaretskii <eliz@gnu.org>
276 * utils.c (init_page_info): Disable paging if INSIDE_EMACS is set
279 2015-10-29 Pedro Alves <palves@redhat.com>
281 * gnu-v2-abi.c (gnuv2_is_destructor_name)
282 (gnuv2_is_constructor_name): Add casts.
284 2015-10-29 Pedro Alves <palves@redhat.com>
286 * common/common-exceptions.c (exception_none): Add cast.
288 2015-10-29 Pedro Alves <palves@redhat.com>
290 * compile/compile-c-types.c (struct type_map_instance)
291 <gcc_type>: Rename to gcc_type_handle.
292 (insert_type, convert_type): Adjust.
294 2015-10-29 Pedro Alves <palves@redhat.com>
296 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Don't
297 assume that "break" breaks out of a TRY/CATCH.
298 * python/py-framefilter.c (py_print_single_arg): Don't assume
299 "continue" breaks out of a TRY/CATCH.
300 * python/py-value.c (valpy_binop_throw): New function, factored
302 (valpy_binop): ... this.
303 (valpy_richcompare_throw): New function, factored
305 (valpy_richcompare): ... this.
306 * solib.c (solib_read_symbols): Don't assume "break" breaks out
308 * common/common-exceptions.h [USE_RAW_CXX_TRY]
309 <TRY/CATCH/END_CATCH>: Define as 1-1 wrappers around try/catch.
311 2015-10-28 Simon Dardis <Simon.Dardis@imgtec.com>
313 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Recognise 'or'
314 as move along with [d]addu.
316 2015-10-28 Yao Qi <yao.qi@linaro.org>
318 * aarch64-tdep.c (aarch64_software_single_step): Pass 1 to
321 2015-10-27 Pedro Alves <palves@redhat.com>
323 * common/print-utils.c (host_address_to_string): Rename to ...
324 (host_address_to_string_1): ... this.
325 * common/print-utils.h (host_address_to_string): Reimplement as
326 wrapper around host_address_to_string_1.
327 * utils.c (gdb_print_host_address): Rename to ...
328 (gdb_print_host_address_1): ... this.
329 * utils.h (gdb_print_host_address): Reimplement as wrapper macro
330 around host_address_to_string_1.
332 2015-10-27 Pedro Alves <palves@redhat.com>
334 * alpha-tdep.c (alpha_read_insn): Always pass TARGET_XFER_E_IO to
335 memory_error. Rename local 'status' to 'res'.
336 * c-lang.c (c_get_string): Always pass TARGET_XFER_E_IO to
338 * corefile.c (read_stack, read_code, write_memory): Always pass
339 TARGET_XFER_E_IO to memory_error.
340 * disasm.c (dis_asm_memory_error): Always pass TARGET_XFER_E_IO to
341 memory_error. Rename parameter 'status' to 'err'.
342 (dump_insns): Rename local 'status' to 'err'.
343 * mips-tdep.c (mips_fetch_instruction): Rename parameter 'statusp'
344 to 'errp'. Rename local 'status' to 'err'. Always pass
345 TARGET_XFER_E_IO to memory_error.
346 (mips_breakpoint_from_pc): Rename local 'status' to 'err'.
347 * target.c (target_read_memory, target_read_raw_memory)
348 (target_read_stack, target_read_code, target_write_memory)
349 (target_write_raw_memory): Return -1 on error instead of
351 * valprint.c (val_print_string): Rename local 'errcode' to 'err'.
352 Always pass TARGET_XFER_E_IO to memory_error. Update comment.
354 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
356 * guile/guile-internal.h (gdbscm_with_guile): Change return
357 types to const char *.
358 * guile/scm-safe-call.c (gdbscm_with_guile): Likewise.
359 (struct c_data) <func>: Likewise.
360 (struct c_data) <result>: Change type to const char *.
361 (scscm_eval_scheme_string): Change return type to
363 (scscm_source_scheme_script): Likewise.
364 (gdbscm_safe_eval_string): Change type of result variable to
365 const char * and remove cast.
366 (gdbscm_safe_source_script): Likewise.
367 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker):
368 Change return type to const char *.
369 (gdbscm_disasm_read_memory): Change type of status to
372 2015-10-27 Pedro Alves <palves@redhat.com>
374 * source.c (openp): New local 'last_errno'. Use it to
377 2015-10-27 Pedro Alves <palves@redhat.com>
379 * psymtab.c (dump_psymtab_addrmap_1): Add casts.
381 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
383 * ctf.c (SET_ENUM_FIELD): New macro.
384 (ctf_read_status): Use it.
385 (ctf_read_tp): Use it.
387 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
389 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_stop_x): Add
390 scm_t_dynwind_flags casts.
391 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
392 * guile/scm-ports.c (gdbscm_open_memory): Likewise.
393 * guile/scm-value.c (gdbscm_value_to_string): Likewise.
395 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
397 * ax.h (ax_raw_byte): New declaration.
398 * ax-general.c (ax_raw_byte): New function.
399 (ax_simple): Use ax_raw_byte.
400 * ax-gdb.c (gen_printf): Likewise.
402 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
404 * ada-lang.h (GROW_VECT): Add cast.
406 2015-10-26 Doug Evans <xdje42@gmail.com>
408 * symtab.h (struct general_symbol_info> <ada_mangled>: Update comment.
410 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
412 * target.c (memory_xfer_partial): Change type of buf to gdb_byte
414 (simple_search_memory): Cast return of memmem.
416 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
418 * stap-probe.c (handle_stap_probe): Add (const char *) casts.
420 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
422 * ctf.c (ctf_xfer_partial): Return TARGET_XFER_E_IO instead of
425 2015-10-26 Doug Evans <dje@google.com>
428 * dwarf2-frame.c (dwarf2_restore_rule): Call dwarf_reg_to_regnum
429 instead of gdbarch_dwarf2_reg_to_regnum.
430 (dwarf2_frame_cache): Ditto.
431 (read_addr_from_reg): Call dwarf_reg_to_regnum_or_error instead of
432 gdbarch_dwarf2_reg_to_regnum.
433 (get_reg_value): Ditto.
434 (dwarf2_fetch_cfa_info): Ditto.
435 (dwarf2_frame_prev_register): Ditto.
436 * dwarf2loc.c: #include "complaints.h".
437 (dwarf_expr_read_addr_from_reg): Call dwarf_reg_to_regnum_or_error
438 instead of gdbarch_dwarf2_reg_to_regnum.
439 (dwarf_expr_get_reg_value): Ditto.
440 (read_pieced_value): Ditto.
441 (write_pieced_value): Ditto.
442 (dwarf2_evaluate_loc_desc_full): Ditto.
443 (dwarf_reg_to_regnum): New function.
444 (throw_bad_regnum_error): New function.
445 (dwarf_reg_to_regnum_or_error): Renamed from
446 dwarf2_reg_to_regnum_or_errorChange to take a ULONGEST regnum.
447 All callers updated. Call throw_bad_regnum_error.
448 (locexpr_regname): Improve text of bad register number.
449 * dwarf2loc.h (dwarf_reg_to_regnum): Declare.
450 (dwarf_reg_to_regnum_or_error): Update prototype.
451 * dwarf2expr.c: #include "dwarf2loc.h".
452 (dwarf_block_to_sp_offset): Call dwarf_reg_to_regnum instead of
453 gdbarch_dwarf2_reg_to_regnum.
454 * gdbarch.sh (dwarf2_reg_to_regnum): Add comment.
455 * gdbarch.h: Regenerate.
456 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Remove warning for bad
458 * avr-tdep.c (avr_dwarf_reg_to_regnum): Ditto.
459 * cris-tdep.c (cris_dwarf2_reg_to_regnum): Ditto.
460 * bfin-tdep.c (bfin_reg_to_regnum): Fix error checking.
461 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Improve error checking.
462 Remove warning for bad register.
463 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Ditto.
464 * i386-tdep.c (i386_svr4_dwarf_reg_to_regnum): Renamed from
465 i386_svr4_reg_to_regnum. Return -1 for bad registers.
466 (i386_svr4_reg_to_regnum): New function.
467 (i386_gdbarch_init): Update call to set_gdbarch_dwarf2_reg_to_regnum.
468 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Don't assert
469 on bad registers, return -1.
470 * msp430-tdep.c (msp430_dwarf2_reg_to_regnum): Improve error checking.
471 Remove warning for bad register.
472 * nios2-tdep.c: Add static assert for NIOS2_NUM_REGS.
473 (nios2_dwarf_reg_to_regnum): Fix off-by-one error.
474 Remove warning for bad register. Return -1 for bad register.
475 * rl78-tdep.c (rl78_dwarf_reg_to_regnum): Don't flag an internal error
476 for bad register, return -1.
477 * rx-tdep.c (rx_dwarf_reg_to_regnum): Ditto.
478 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Fix error result.
479 * mep-tdep.c (mep_debug_reg_to_regnum): Ditto.
480 * mips-tdep.c (mips_stab_reg_to_regnum): Ditto.
481 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
482 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Remove warning
484 * xtensa-tdep.c (xtensa_reg_to_regnum): Remove internal error for
485 bad regs. Fix error result.
486 * stabsread.c (stab_reg_to_regnum): Watch for negative regno.
487 (reg_value_complaint): Update complaint text.
488 * mdebugread.c (reg_value_complaint): New function.
489 (mdebug_reg_to_regnum): Rewrite to watch for bad reg numbers.
491 2015-10-26 Doug Evans <dje@google.com>
494 * cli/cli-cmds (source_script_fron_sctream): New arg file_to_open.
497 2015-10-26 Doug Evans <dje@google.com>
499 * psymtab.c (struct dump_psymtab_addrmap_data): Define.
500 (dump_psymtab_addrmap_1, dump_psymtab_addrmap): New functions.
501 (maintenance_print_psymbols): Print address map.
503 2015-10-26 Doug Evans <dje@google.com>
505 * nat/linux-nat.h (__SIGRTMIN): Move here from gdbserver/linux-low.c.
507 2015-10-26 Doug Evans <dje@google.com>
509 * common/gdb_wait.h (W_STOPCODE): Define, moved here from
510 gdbserver/linux-low.c.
511 (WSETSTOP): Simplify.
513 2015-10-26 Doug Evans <dje@google.com>
515 * linux-thread-db.c (find_new_threads_callback): Ditto.
516 (thread_db_pid_to_str): Ditto.
518 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
520 * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Do not pass a
521 local char array to scm_mode_bits, use a cast instead.
523 2015-10-26 Simon Marchi <simon.marchi@ericsson.com>
525 * tui/tui-data.c (tui_alloc_content): Don't check xmalloc
526 result. Change type of element_block_ptr. Change allocation to
529 2015-10-26 Luis Machado <lgustavo@codesourcery.com>
531 * record-full.c (record_full_message_wrapper_safe): Pass empty string to
532 catch_errors call instead of NULL.
534 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
536 * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Pass non-const
537 char pointer to scm_mode_bits.
539 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
541 * symtab.c (default_make_symbol_completion_list_break_on_1): Add
544 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
546 * guile/scm-ports.c (gdbscm_memory_port_write): Declare new
547 "data" local variable and use it.
549 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
551 * guile/scm-symbol.c (gdbscm_lookup_global_symbol): Add
553 (gdbscm_lookup_symbol): Likewise.
555 2015-10-25 Iain Buclaw <ibuclaw@gdcproject.org>
557 * d-exp.y: Remove an obsolete comment and propagate the block
558 information to the produced expression.
560 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
562 * tui/tui-data.c (tui_add_to_source_windows): Remove void *
564 (tui_add_content_elements): Likewise.
566 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
568 * cli/cli-setshow.c (do_set_command): Constify p.
570 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
572 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Replace
573 (void *) cast with (gdb_byte *).
575 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
577 * proc-service.c (ps_pdread): Add cast.
579 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
581 * sparc64-tdep.c (sparc64_store_arguments): Split assignment of
584 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
586 * ia64-tdep.c (ia64_pseudo_register_write): Remove cast.
587 (ia64_push_dummy_call): Remove cast and change type of "to" to
590 2015-10-23 Simon Marchi <simon.marchi@polymtl.ca>
592 * linux-btrace.c (linux_enable_pt): Add cast to mmap return.
594 2015-10-23 Simon Marchi <simon.marchi@ericsson.com>
596 * observer.h (observer_${event}_notification_stub): Add cast.
598 2015-10-23 Yao Qi <yao.qi@linaro.org>
600 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set
601 dsd.insn_count to zero.
603 2015-10-22 Pedro Alves <palves@redhat.com>
605 * infrun.c (stop_after_trap): Delete.
606 (clear_proceed_status, handle_signal_stop, struct
607 infcall_control_state, save_infcall_control_state)
608 (restore_infcall_control_state): Remove references to
611 2015-10-22 Simon Marchi <simon.marchi@ericsson.com>
613 * python/python.c (_initialize_python): Add cast.
615 2015-10-22 Simon Marchi <simon.marchi@ericsson.com>
617 * nto-tdep.c (nto_inferior_data): Add cast.
619 2015-10-22 Pedro Alves <palves@redhat.com>
621 * windows-nat.c (do_initial_windows_stuff): Rewrite loop using
622 windows_wait and windows_resume directly instead of
623 wait_for_inferior and resume.
625 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
627 * xtensa-tdep.h (XTREG): Add casts.
628 (XTREG_END): Likewise.
630 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
632 * solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
634 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
636 * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
638 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
640 * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
642 (supply_32bit_reg): Add cast.
643 (mips64_fill_gregset): Likewise.
645 2015-10-21 Simon Marchi <simon.marchi@polymtl.ca>
648 * python/py-type.c (typy_get_composite): Allow returning a
651 2015-10-21 Keven Boell <keven.boell@intel.com>
653 * dwarf2read.c (set_die_type): Add read of
654 DW_AT_allocated and DW_AT_associated.
655 * f-typeprint.c: New include of typeprint.h
656 (f_print_type): Add check for allocated/associated
658 (f_type_print_varspec_suffix): Add check for
659 * gdbtypes.c (create_array_type_with_stride):
660 Add check for valid data location of type in
661 case allocated or associated attributes are set.
662 Length of an array should be only calculated if
663 allocated or associated is resolved as true.
664 (is_dynamic_type_internal): Add check for allocated/
666 (resolve_dynamic_array): Evaluate allocated/associated
668 * gdbtypes.h (enum dynamic_prop_node_kind): <DYN_PROP_ALLOCATED>
669 <DYN_PROP_ASSOCIATED>: New enums.
670 (TYPE_ALLOCATED_PROP, TYPE_ASSOCIATED_PROP): New macros.
671 (type_not_allocated): New function.
672 (type_not_associated): New function.
673 * valarith.c (value_subscripted_rvalue): Add check for
674 allocated/associated.
675 * valprint.c: New include of typeprint.h.
676 (valprint_check_validity): Add check for allocated/associated.
677 (value_check_printable): Add check for allocated/
679 * typeprint.h (val_print_not_allocated): New function.
680 (val_print_not_associated): New function.
681 * typeprint.c (val_print_not_allocated): New function.
682 (val_print_not_associated): New function.
684 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
686 * Makefile.in: Add arm.c/o.
687 * arch/arm.c: New file.
688 * arch/arm.h: (IS_THUMB_ADDR): Move macro from arm-tdep.c.
689 (MAKE_THUMB_ADDR): Likewise.
690 (UNMAKE_THUMB_ADDR): Likewise.
691 * arm-tdep.c (int thumb_insn_size): Move to arm.c.
692 (IS_THUMB_ADDR): Move to arm.h.
693 (MAKE_THUMB_ADDR): Likewise.
694 (UNMAKE_THUMB_ADDR): Likewise.
695 * configure.tgt: Add arm.o to all ARM configs.
697 2015-10-21 Yao Qi <yao.qi@linaro.org>
699 * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
700 Remove argument exp_vCont_s.
701 * gdb.base/range-stepping.exp: Callers updated.
702 * gdb.trace/range-stepping.exp: Likewise.
704 2015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
706 * gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
707 (nto_sniff_abi_note_section): New function.
708 (nto_elf_osabi_sniffer): Use new function to recognize nto specific
711 2015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
713 * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
714 (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
715 * nto-tdep.c (nto_new_inferior_data_reg): New definition.
716 (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
718 (_initialize_nto_tdep): New forward declaration, new function.
719 * nto-tdep.h (struct nto_inferior_data): New struct.
720 (nto_inferior_data): New function declaration.
722 2015-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
724 * findvar.c (address_from_register): Check REGNUM validity.
726 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
728 * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
729 (init_procfs_targets): Wire new function.
731 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
733 * nto-procfs.c (sys/auxv.h): Include.
734 (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
735 * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
736 * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
738 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
740 * nto-procfs.c (nto_procfs_path): Rename to...
741 (nodestr): ... this, and change type.
742 (nto_node): Use new variable and logic accordingly.
743 (procfs_open_1): Use new variable name. Use local buffer to construct
745 (procfs_pidlist): Use NODESTR to construct procfs path.
746 (procfs_files_info): Use NODESTR to output meaningful text.
747 (do_attach): Construct procfs using NODESTR.
748 (procfs_create_inferior): Compare pointer to NULL.
750 2015-10-19 Josh Stone <jistone@redhat.com>
752 * linux-nat.c (linux_handle_syscall_trap): Always update entry/
753 return state, even when not actively catching syscalls at all.
754 (linux_handle_extended_wait): Mark syscall_state like an entry.
755 (wait_lwp): Set syscall_state ignored for other traps.
756 (linux_nat_filter_event): Likewise.
758 2015-10-19 Luis Machado <lgustavo@codesourcery.com>
760 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
761 when handling 'E', 'T', 'S', 'X' and 'W' packets.
762 Do not set rs->waiting_for_stop_reply back to 1.
764 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
766 * nto-procfs.c (common/filestuff.h): Include.
767 (procfs_can_use_hw_breakpoint): Fix enum name.
768 (procfs_open_1): Fix compiler warning.
769 (procfs_pidlist): Make static.
770 (procfs_meminfo): Make static, fix type name, add missing argument.
771 (procfs_store_registers): Make static.
772 (procfs_thread_info): Remove unused function.
773 (_initialize_procfs): Forward declare.
775 2015-10-16 Yao Qi <yao.qi@arm.com>
777 * MAINTAINERS: Update my email address.
779 2015-10-15 Yao Qi <yao.qi@linaro.org>
781 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
782 Call gdbarch_breakpoint_from_pc to instruction length.
783 (aarch64_linux_remove_hw_breakpoint): Likewise.
784 * common/common-regcache.h (regcache_register_size): Declare.
785 * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
786 (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
787 the process is 32bit, otherwise set alignment to 4.
788 (aarch64_handle_breakpoint): Update comments.
789 * regcache.c (regcache_register_size): New function.
791 2015-10-15 Aleksandar Ristovski <aristovski@qnx.com>
793 * gdbarch.sh (core_regset_section): Remove.
794 * gdbarch.h: Regenerate.
796 2015-10-14 Yao Qi <yao.qi@linaro.org>
798 * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
800 (enum aarch64_memory_operand_type): New.
802 2015-10-13 David Edelsohn <dje.gcc@gmail.com>
804 * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
806 2015-10-13 Pedro Alves <palves@redhat.com>
808 * ada-lang.c (ada_enum_name): Constify local.
809 * ada-typeprint.c (print_range_bound): Constify locals.
810 * c-varobj.c (c_describe_child): Likewise.
811 * cli/cli-setshow.c (do_set_command): Likewise.
812 * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
813 * dwarf2read.c (find_file_and_directory): Likewise.
814 (anonymous_struct_prefix, dwarf2_name): Likewise.
815 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
816 * go-lang.c (unpack_mangled_go_symbol): Likewise.
817 * jv-typeprint.c (java_type_print_base): Likewise.
818 * ser-tcp.c (net_open): Likewise.
819 * symfile.c (deduce_language_from_filename): Likewise.
820 * symtab.c (gdb_mangle_name): Likewise.
821 * tui/tui-io.c (tui_redisplay_readline): Likewise.
823 2015-10-13 Pedro Alves <palves@redhat.com>
825 * infrun.c (restore_execution_direction): New function.
826 (fetch_inferior_event): Use it instead of
827 make_cleanup_restore_integer.
828 (execution_direction): Change type to enum
830 * infrun.h (execution_direction): Likewise.
832 2015-10-13 Pedro Alves <palves@redhat.com>
834 * ada-lang.c (ada_value_primitive_packed_val): Constify
835 locals. Use value_contents_writeable. Remove casts.
837 2015-10-13 Pedro Alves <palves@redhat.com>
839 * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
842 2015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
844 * lm32-tdep.c (lm32_push_dummy_call): Replace call to
845 write_memory with write_memory_unsigned_integer.
847 2015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
849 * solib-dsbt.c (cmp_name): Constify arguments.
850 * solib-frv.c (cmp_name): Likewise.
851 * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
852 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
853 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
854 (gdb_bfd_lookup_symbol): Likewise.
855 * solib.h (gdb_bfd_lookup_symbol): Likewise.
856 (gdb_bfd_lookup_symbol_from_symtab): Likewise.
858 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
860 * stack.c (parse_frame_specification): Remove message parameter,
861 replace with fixed string in function body, update function
863 (frame_info): Remove message to parse_frame_specification.
864 (select_frame_command): Likewise.
866 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
868 * stack.c (parse_frame_specification): Delete.
869 (parse_frame_specification_1): Rename to
870 parse_frame_specification.
871 (frame_info): Use parse_frame_specification.
872 (select_frame_command): Likewise.
873 (return_command): Use select_frame and print_stack_frame rather
874 than frame_command and select_frame_command.
875 (func_command): Use get_current_frame rather than
876 parse_frame_specification.
878 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
880 * stack.c (func_command): Return early when there is no ARG
883 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
885 * stack.c: Include safe-ctype.h not ctype.h.
886 (parse_frame_specification): Use ISSPACE not isspace.
887 (backtrace_command): Use TOLOWER not tolower.
889 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
891 * mep-tdep.c (current_me_module): Add cast.
892 (mep_gdbarch_init): Likewise.
894 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
896 * m32c-tdep.c (m32c_move_reg_t): Replace with...
897 (m32c_write_reg_t): ...this and...
898 (m32c_read_reg_t): ...this.
899 (struct m32c_reg): Update types of read and write.
900 (m32c_raw_read): Change declaration type to m32c_read_reg_t and
902 (m32c_banked_read): Likewise.
903 (m32c_sb_read): Likewise.
904 (m32c_part_read): Likewise.
905 (m32c_cat_read): Likewise.
906 (m32c_r3r2r1r0_read): Likewise.
907 (m32c_raw_write): Change declaration type to m32c_write_reg_t
908 and adjust definition.
909 (m32c_banked_write): Likewise.
910 (m32c_sb_write): Likewise.
911 (m32c_part_write): Likewise.
912 (m32c_cat_write): Likewise.
913 (m32c_r3r2r1r0_write): Likewise.
915 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
917 * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
919 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
921 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
922 gdb_sys_no_syscall instead of -1.
924 2015-10-12 Yao Qi <yao.qi@linaro.org>
926 * NEWS: Mention the change.
928 2015-10-12 Yao Qi <yao.qi@linaro.org>
930 * arch/aarch64-insn.c (emit_load_store): Rename to ...
931 (aarch64_emit_load_store): ... it. All callers updated.
933 2015-10-12 Yao Qi <yao.qi@linaro.org>
935 * arch/aarch64-insn.c (emit_insn): Rename to ...
936 (aarch64_emit_insn): ... it. All callers updated.
938 2015-10-12 Yao Qi <yao.qi@linaro.org>
940 * aarch64-linux-tdep.c: Include arch-utils.h.
941 (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
942 set_gdbarch_displaced_step_copy_insn,
943 set_gdbarch_displaced_step_fixup,
944 set_gdbarch_displaced_step_free_closure,
945 set_gdbarch_displaced_step_location,
946 and set_gdbarch_displaced_step_hw_singlestep.
947 * aarch64-tdep.c (struct displaced_step_closure): New.
948 (struct aarch64_displaced_step_data): New.
949 (aarch64_displaced_step_b): New function.
950 (aarch64_displaced_step_b_cond): Likewise.
951 (aarch64_register): Likewise.
952 (aarch64_displaced_step_cb): Likewise.
953 (aarch64_displaced_step_tb): Likewise.
954 (aarch64_displaced_step_adr): Likewise.
955 (aarch64_displaced_step_ldr_literal): Likewise.
956 (aarch64_displaced_step_others): Likewise.
957 (aarch64_displaced_step_copy_insn): Likewise.
958 (aarch64_displaced_step_fixup): Likewise.
959 (aarch64_displaced_step_hw_singlestep): Likewise.
960 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
961 (aarch64_displaced_step_copy_insn): Declare.
962 (aarch64_displaced_step_fixup): Declare.
963 (aarch64_displaced_step_hw_singlestep): Declare.
964 * arch/aarch64-insn.c (emit_insn): Moved from
965 gdbserver/linux-aarch64-low.c.
966 (emit_load_store): Likewise.
967 * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
968 gdbserver/linux-aarch64-low.c.
969 (struct aarch64_register): Likewise.
970 (struct aarch64_memory_operand): Likewise.
972 (can_encode_int32): New macro.
973 (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
974 (emit_tb, emit_nop): Likewise.
975 (emit_insn): Declare.
976 (emit_load_store): Declare.
978 2015-10-12 Yao Qi <yao.qi@linaro.org>
980 * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
981 gdbserver/linux-aarch64-low.c.
982 (aarch64_relocate_instruction): Likewise.
983 * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
984 (struct aarch64_insn_data): Moved from
985 gdbserver/linux-aarch64-low.c.
986 (struct aarch64_insn_visitor): Likewise.
987 (aarch64_relocate_instruction): Declare.
989 2015-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
991 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
992 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
993 to the returned value.
995 2015-10-09 Joel Brobecker <brobecker@adacore.com>
997 * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
998 is large enough for BIT_SIZE. Update function comment.
1000 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1002 * ada-lang.c (ada_value_primitive_packed_val): Move
1003 src_len variable to local block where used. Override
1004 BIT_SIZE if bigger than size of resolved type.
1006 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1008 * gdbtypes.h (is_scalar_type): Add extern declaration.
1009 * gdbtypes.c (is_scalar_type): Make non-static.
1010 * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
1011 to compute IS_SCALAR instead of doing it ourselves.
1013 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1015 * ada-lang.c (ada_value_primitive_packed_val): Rework handling
1016 of case where TYPE is dynamic.
1018 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1020 * ada-lang.c (ada_unpack_from_contents): New function,
1021 extracted from ada_value_primitive_packed_val.
1022 (ada_value_primitive_packed_val): Replace extracted out code
1023 by call to ada_unpack_from_contents.
1025 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1027 * ada-lang.c (ada_value_primitive_packed_val): Reorder local
1028 variable declarations.
1030 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1032 * ada-lang.c (ada_value_primitive_packed_val): Change the type
1033 of local variables src and unpacked to "gdb_type *" instead of
1036 2015-10-09 Joel Brobecker <brobecker@adacore.com>
1038 * ada-lang.c (ada_value_primitive_packed_val): Make the name
1039 of various local variables more explicit and consistent.
1040 No real code change otherwise.
1042 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
1044 * i386-tdep.h (struct gdbarch_tdep): Change type of
1045 register_reggroup_p to gdbarch_register_reggroup_p_ftype.
1047 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
1049 * cris-tdep.c (struct instruction_environment): Change type of
1050 byte_order to enum bfd_endian.
1052 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
1054 * arm-linux-tdep.c (arm_canonicalize_syscall): Add
1055 enum gdb_syscall casts.
1057 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
1059 * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
1060 * arm-tdep.c (struct stack_item): Likewise.
1061 (push_stack_item): Add gdb_byte* cast.
1062 * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
1063 (push_stack_item): Add gdb_byte* cast.
1064 * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
1066 * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
1067 (push_stack_item): Add gdb_byte* cast.
1068 * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
1070 * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
1072 * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
1073 gdb_byte* and remove unnecessary cast.
1074 (h8300h_extract_return_value): Likewise.
1075 (h8300_store_return_value): Change type of valbuf to gdb_byte*.
1076 (h8300h_store_return_value): Likewise.
1077 * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
1078 gdb_byte* and remove unnecessary cast.
1079 * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
1081 * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
1082 gdb_byte* and remove unnecessary cast.
1083 (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
1085 * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
1086 (mep_pseudo_cr64_read): Likewise.
1087 (mep_pseudo_csr_write): Likewise.
1088 (mep_pseudo_cr32_write): Likewise.
1089 (mep_pseudo_cr64_write): Likewise.
1090 * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
1091 gdb_byte* and add cast.
1092 * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
1093 gdb_byte* and remove unnecessary cast.
1094 (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
1096 * p-valprint.c (print_scalar_formatted): Change type of valaddr to
1098 * printcmd.c (void): Likewise.
1099 * python/py-inferior.c (infpy_read_memory): Change type of buffer to
1100 gdb_byte* and add cast.
1101 (infpy_write_memory): Likewise.
1102 (infpy_search_memory): Likewise.
1103 * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
1105 (regcache_raw_write_unsigned): Likewise.
1106 (regcache_cooked_write_signed): Likewise.
1107 (regcache_cooked_write_unsigned): Likewise.
1108 * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
1111 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
1113 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
1114 * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
1116 2015-10-09 Eli Zaretskii <eliz@gnu.org>
1118 * stack.c (print_stack_frame):
1119 * utils.c (printchar): Fix typos in commentary.
1121 2015-10-08 Iain Buclaw <ibuclaw@gdcproject.org>
1123 * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
1124 (PostfixExpression): Support `expr.sizeof' expressions.
1125 (PrimaryExpression): Support `typeof(expr)' expressions.
1127 2015-10-08 Maciej W. Rozycki <macro@imgtec.com>
1129 * MAINTAINERS: Update my email address.
1131 2015-10-08 Markus Metzger <markus.t.metzger@intel.com>
1133 * record-btrace.c (record_btrace_resume): Fix void return.
1135 2015-10-07 Yao Qi <yao.qi@linaro.org>
1137 * aarch64-tdep.c: Include opcode/aarch64.h.
1138 (submask): Move it above.
1141 (aarch64_software_single_step): Call aarch64_decode_insn.
1142 Decode instruction by aarch64_inst instead of using
1143 aarch64_decode_bcond and decode_masked_match.
1145 2015-10-06 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
1147 * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
1148 only when the file is binary.
1150 2015-10-02 James Bowman <james.bowman@ftdichip.com>
1152 * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
1153 subroutine handling.
1155 2015-10-01 Simon Marchi <simon.marchi@ericsson.com>
1157 * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
1159 2015-09-30 Doug Evans <dje@google.com>
1161 * dwarf2read.c (setup_type_unit_groups): Add comment.
1163 2015-09-30 Pedro Alves <palves@redhat.com>
1165 * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
1166 * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
1167 (x86_linux_create_target): Don't install
1168 x86_linux_always_non_stop_p.
1170 2015-09-30 Don Breazeal <donb@codesourcery.com>
1172 * remote.c (remote_parse_stop_reply): Call strprefix instead
1175 2015-09-30 Simon Marchi <simon.marchi@ericsson.com>
1177 * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
1178 * gdbarch.h: Regenerate.
1179 * i386-tdep.c (i386_gdbarch_init): Remove cast to
1180 struct gdbarch_tdep_info *.
1181 * mips-tdep.c (mips_gdbarch_init): Likewise.
1182 * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
1183 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
1184 * spu-multiarch.c (spu_gdbarch): Likewise.
1186 2015-09-30 Kevin Buettner <kevinb@redhat.com>
1188 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
1189 record a NULL value.
1191 2015-09-29 Kevin Buettner <kevinb@redhat.com>
1193 * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
1194 and union arguments the same as pointer arguments when determining
1197 2015-09-29 James Bowman <james.bowman@ftdichip.com>
1199 * ft32-tdep.c: #include "opcode/ft32.h".
1200 Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
1201 (ft32_analyze_prologue): Use FT32_* macros.
1203 2015-09-28 Simon Marchi <simon.marchi@ericsson.com>
1205 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
1208 2015-09-28 Doug Evans <dje@google.com>
1210 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
1212 2015-09-28 Doug Evans <dje@google.com>
1214 * common/filestuff.c (make_cleanup_close): Update comment.
1216 2015-09-26 Simon Marchi <simon.marchi@polymtl.ca>
1218 * btrace.c (parse_xml_btrace_block): Fix cast of
1219 xml_find_attribute's return value.
1220 * memory-map.c (memory_map_start_memory): Likewise.
1221 * solib-svr4.c (library_list_start_library): Likewise.
1222 * solib-target.c (library_list_start_segment): Likewise.
1223 (library_list_start_section): Likewise.
1224 * tracepoint.c (traceframe_info_start_memory): Likewise.
1226 2015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
1228 * d-namespace.c (d_lookup_symbol): New arg langdef.
1229 All callers updated. Support looking up symbol as a primitive type.
1230 (lookup_module_scope): New arg langdef. All callers updated.
1231 Call d_lookup_symbol directly for simple bare symbols.
1233 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1235 * macrocmd.c (print_macro_callback): Add cast(s).
1236 * macrotab.c (macro_bcache_str): Likewise.
1237 (new_macro_definition): Likewise.
1238 * main.c (captured_main): Likewise.
1239 * maint.c (print_bfd_section_info): Likewise.
1240 * mdebugread.c (mdebug_build_psymtabs): Likewise.
1241 (basic_type): Likewise.
1242 * memattr.c (mem_region_cmp): Likewise.
1243 * memory-map.c (memory_map_start_memory): Likewise.
1244 (memory_map_end_memory): Likewise.
1245 (memory_map_start_property): Likewise.
1246 (memory_map_end_property): Likewise.
1247 (clear_result): Likewise.
1248 * memrange.c (compare_mem_ranges): Likewise.
1249 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
1250 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
1251 * mi/mi-console.c (mi_console_file_delete): Likewise.
1252 (mi_console_file_fputs): Likewise.
1253 (mi_console_raw_packet): Likewise.
1254 (mi_console_file_flush): Likewise.
1255 (mi_console_set_raw): Likewise.
1256 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
1257 (mi_new_thread): Likewise.
1258 (mi_thread_exit): Likewise.
1259 (mi_record_changed): Likewise.
1260 (mi_inferior_added): Likewise.
1261 (mi_inferior_appeared): Likewise.
1262 (mi_inferior_exit): Likewise.
1263 (mi_inferior_removed): Likewise.
1264 (mi_interp_data): Likewise.
1265 (mi_on_normal_stop): Likewise.
1266 (mi_traceframe_changed): Likewise.
1267 (mi_tsv_created): Likewise.
1268 (mi_tsv_deleted): Likewise.
1269 (mi_tsv_modified): Likewise.
1270 (mi_breakpoint_created): Likewise.
1271 (mi_breakpoint_deleted): Likewise.
1272 (mi_breakpoint_modified): Likewise.
1273 (mi_output_running_pid): Likewise.
1274 (mi_inferior_count): Likewise.
1275 (mi_solib_loaded): Likewise.
1276 (mi_solib_unloaded): Likewise.
1277 (mi_command_param_changed): Likewise.
1278 (mi_memory_changed): Likewise.
1279 (report_initial_inferior): Likewise.
1280 (mi_ui_out): Likewise.
1281 (mi_set_logging): Likewise.
1282 * mi/mi-main.c (collect_cores): Likewise.
1283 (print_one_inferior): Likewise.
1284 (free_vector_of_ints): Likewise.
1285 (free_splay_tree): Likewise.
1286 (mi_execute_command): Likewise.
1287 * mi/mi-out.c (mi_table_body): Likewise.
1288 (mi_table_end): Likewise.
1289 (mi_table_header): Likewise.
1290 (mi_begin): Likewise.
1292 (mi_field_int): Likewise.
1293 (mi_field_string): Likewise.
1294 (mi_field_fmt): Likewise.
1295 (mi_flush): Likewise.
1296 (mi_redirect): Likewise.
1297 (field_separator): Likewise.
1298 (mi_open): Likewise.
1299 (mi_close): Likewise.
1300 (mi_out_buffered): Likewise.
1301 (mi_out_rewind): Likewise.
1302 (mi_out_put): Likewise.
1303 (mi_version): Likewise.
1304 (mi_out_data_dtor): Likewise.
1305 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
1306 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
1307 * minidebug.c (lzma_open): Likewise.
1308 (lzma_pread): Likewise.
1309 (lzma_close): Likewise.
1310 (lzma_stat): Likewise.
1311 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1312 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
1313 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
1314 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
1315 (mips_micro_frame_cache): Likewise.
1316 (mips_insn32_frame_cache): Likewise.
1317 (mips_stub_frame_cache): Likewise.
1318 (gdb_print_insn_mips): Likewise.
1319 (value_of_mips_user_reg): Likewise.
1320 (mips_gdbarch_init): Likewise.
1321 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
1322 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
1323 (mipsnbsd_supply_gregset): Likewise.
1324 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
1325 (am33_collect_gregset_method): Likewise.
1326 (am33_collect_fpregset_method): Likewise.
1327 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
1328 * moxie-tdep.c (moxie_frame_cache): Likewise.
1329 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
1330 (msp430_analyze_frame_prologue): Likewise.
1331 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
1332 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
1333 (nios2_collect_gregset): Likewise.
1334 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
1335 (nios2_stub_frame_cache): Likewise.
1336 * objc-lang.c (find_methods): Likewise.
1337 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1338 (get_objfile_pspace_data): Likewise.
1339 (get_objfile_bfd_data): Likewise.
1340 (objfile_bfd_data_free): Likewise.
1341 (add_to_objfile_sections): Likewise.
1342 (do_free_objfile_cleanup): Likewise.
1343 (resume_section_map_updates_cleanup): Likewise.
1344 * opencl-lang.c (builtin_opencl_type): Likewise.
1345 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1346 * osdata.c (osdata_start_osdata): Likewise.
1347 (osdata_start_item): Likewise.
1348 (osdata_start_column): Likewise.
1349 (osdata_end_column): Likewise.
1350 (clear_parsing_data): Likewise.
1351 (osdata_free_cleanup): Likewise.
1352 * parse.c (type_stack_cleanup): Likewise.
1353 (exp_uses_objfile_iter): Likewise.
1354 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
1355 (ppc_linux_collect_gregset): Likewise.
1356 (ppu2spu_prev_arch): Likewise.
1357 (ppu2spu_this_id): Likewise.
1358 (ppu2spu_prev_register): Likewise.
1359 (ppu2spu_unwind_register): Likewise.
1360 (ppu2spu_sniffer): Likewise.
1361 (ppu2spu_dealloc_cache): Likewise.
1362 (ppc_linux_init_abi): Likewise.
1363 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
1364 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1365 * progspace.c (restore_program_space): Likewise.
1366 * psymtab.c (find_pc_sect_psymtab): Likewise.
1367 (compare_psymbols): Likewise.
1368 (psymbol_bcache_full): Likewise.
1369 (allocate_psymtab): Likewise.
1370 (discard_psymtabs_upto): Likewise.
1371 * python/py-block.c (set_block): Likewise.
1372 (del_objfile_blocks): Likewise.
1373 * python/py-breakpoint.c (build_bp_list): Likewise.
1374 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
1375 (build_inferior_list): Likewise.
1376 (py_free_inferior): Likewise.
1377 * python/py-objfile.c (py_free_objfile): Likewise.
1378 (objfile_to_objfile_object): Likewise.
1379 * python/py-prettyprint.c (py_restore_tstate): Likewise.
1380 * python/py-progspace.c (py_free_pspace): Likewise.
1381 (pspace_to_pspace_object): Likewise.
1382 * python/py-symbol.c (set_symbol): Likewise.
1383 (del_objfile_symbols): Likewise.
1384 * python/py-symtab.c (set_sal): Likewise.
1385 (set_symtab): Likewise.
1386 (del_objfile_symtab): Likewise.
1387 (del_objfile_sal): Likewise.
1388 * python/py-type.c (save_objfile_types): Likewise.
1389 (set_type): Likewise.
1390 * python/py-unwind.c (pyuw_prev_register): Likewise.
1391 (pyuw_on_new_gdbarch): Likewise.
1392 * python/py-utils.c (py_decref): Likewise.
1393 (py_xdecref): Likewise.
1394 (gdb_py_generic_dict): Likewise.
1395 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
1396 (gdbpy_clone_xmethod_worker_data): Likewise.
1397 (gdbpy_get_xmethod_arg_types): Likewise.
1398 (gdbpy_get_xmethod_result_type): Likewise.
1399 (gdbpy_invoke_xmethod): Likewise.
1400 * python/python.c (gdbpy_apply_type_printers): Likewise.
1401 (gdbpy_free_type_printers): Likewise.
1402 * record-btrace.c (record_btrace_disable_callback): Likewise.
1403 (bfcache_hash): Likewise.
1404 (bfcache_eq): Likewise.
1405 (btrace_get_frame_function): Likewise.
1406 (record_btrace_frame_unwind_stop_reason): Likewise.
1407 (record_btrace_frame_this_id): Likewise.
1408 (record_btrace_frame_prev_register): Likewise.
1409 (record_btrace_frame_dealloc_cache): Likewise.
1410 * record-full.c (record_full_message_wrapper): Likewise.
1411 (record_full_save_cleanups): Likewise.
1412 * regcache.c (regcache_descr): Likewise.
1413 (do_regcache_xfree): Likewise.
1414 (do_regcache_invalidate): Likewise.
1415 (do_cooked_read): Likewise.
1416 (regcache_transfer_regset): Likewise.
1417 * reggroups.c (reggroup_add): Likewise.
1418 (reggroup_next): Likewise.
1419 (reggroup_prev): Likewise.
1420 * remote-fileio.c (do_remote_fileio_request): Likewise.
1421 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
1422 (do_notif_event_xfree): Likewise.
1423 * remote.c (get_remote_arch_state): Likewise.
1424 (remote_pspace_data_cleanup): Likewise.
1425 (get_remote_exec_file): Likewise.
1426 (set_pspace_remote_exec_file): Likewise.
1427 (compare_pnums): Likewise.
1428 (clear_threads_listing_context): Likewise.
1429 (remote_newthread_step): Likewise.
1430 (start_thread): Likewise.
1431 (end_thread): Likewise.
1432 (remove_child_of_pending_fork): Likewise.
1433 (remove_stop_reply_for_inferior): Likewise.
1434 (remove_stop_reply_of_remote_state): Likewise.
1435 (remote_notif_remove_once_on_match): Likewise.
1436 (stop_reply_match_ptid_and_ws): Likewise.
1437 (kill_child_of_pending_fork): Likewise.
1438 (register_remote_g_packet_guess): Likewise.
1439 (remote_read_description_p): Likewise.
1440 (remote_read_description): Likewise.
1441 (free_actions_list_cleanup_wrapper): Likewise.
1442 (remote_async_serial_handler): Likewise.
1443 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
1444 (rl78_analyze_frame_prologue): Likewise.
1445 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
1446 (ppc_supply_fpregset): Likewise.
1447 (ppc_supply_vsxregset): Likewise.
1448 (ppc_supply_vrregset): Likewise.
1449 (ppc_collect_gregset): Likewise.
1450 (ppc_collect_fpregset): Likewise.
1451 (ppc_collect_vsxregset): Likewise.
1452 (ppc_collect_vrregset): Likewise.
1453 (e500_move_ev_register): Likewise.
1454 (do_regcache_raw_write): Likewise.
1455 (rs6000_frame_cache): Likewise.
1456 (rs6000_epilogue_frame_cache): Likewise.
1457 (rs6000_gdbarch_init): Likewise.
1458 * rx-tdep.c (rx_get_opcode_byte): Likewise.
1459 (rx_analyze_frame_prologue): Likewise.
1460 (rx_frame_type): Likewise.
1461 (rx_frame_sniffer_common): Likewise.
1462 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
1463 (s390_frame_unwind_cache): Likewise.
1464 (s390_stub_frame_unwind_cache): Likewise.
1465 (s390_sigtramp_frame_unwind_cache): Likewise.
1466 * score-tdep.c (score_make_prologue_cache): Likewise.
1467 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
1468 (sentinel_frame_prev_arch): Likewise.
1469 * ser-base.c (fd_event): Likewise.
1470 (push_event): Likewise.
1471 (ser_base_write): Likewise.
1472 * ser-pipe.c (pipe_close): Likewise.
1473 * serial.c (serial_write): Likewise.
1474 * sh-tdep.c (sh_frame_cache): Likewise.
1475 (sh_stub_this_id): Likewise.
1476 * sh64-tdep.c (sh64_frame_cache): Likewise.
1477 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
1478 (library_list_start_library): Likewise.
1479 (library_list_start_list): Likewise.
1480 (solib_aix_free_library_list): Likewise.
1481 * solib-darwin.c (get_darwin_info): Likewise.
1482 * solib-dsbt.c (get_dsbt_info): Likewise.
1483 * solib-spu.c (append_ocl_sos): Likewise.
1484 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1485 (get_svr4_info): Likewise.
1486 (library_list_start_library): Likewise.
1487 (svr4_library_list_start_list): Likewise.
1488 (hash_probe_and_action): Likewise.
1489 (equal_probe_and_action): Likewise.
1490 (svr4_update_solib_event_breakpoint): Likewise.
1491 (set_solib_svr4_fetch_link_map_offsets): Likewise.
1492 (svr4_fetch_link_map_offsets): Likewise.
1493 (svr4_have_link_map_offsets): Likewise.
1494 * solib-target.c (library_list_start_segment): Likewise.
1495 (library_list_start_section): Likewise.
1496 (library_list_start_library): Likewise.
1497 (library_list_end_library): Likewise.
1498 (library_list_start_list): Likewise.
1499 (solib_target_free_library_list): Likewise.
1500 * solib.c (solib_ops): Likewise.
1501 (set_solib_ops): Likewise.
1502 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1503 * sparc-tdep.c (sparc_frame_cache): Likewise.
1504 (sparc32_frame_cache): Likewise.
1505 (sparc32_supply_gregset): Likewise.
1506 (sparc32_collect_gregset): Likewise.
1507 (sparc32_supply_fpregset): Likewise.
1508 (sparc32_collect_fpregset): Likewise.
1509 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1510 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1511 (sparc64_collect_gregset): Likewise.
1512 (sparc64_supply_fpregset): Likewise.
1513 (sparc64_collect_fpregset): Likewise.
1514 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
1515 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
1516 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
1517 (sparc64obsd_trapframe_cache): Likewise.
1518 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
1519 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
1520 * spu-multiarch.c (spu_gdbarch): Likewise.
1521 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
1522 (spu2ppu_prev_arch): Likewise.
1523 (spu2ppu_this_id): Likewise.
1524 (spu2ppu_prev_register): Likewise.
1525 (spu2ppu_dealloc_cache): Likewise.
1526 (spu_dis_asm_print_address): Likewise.
1527 (gdb_print_insn_spu): Likewise.
1528 (spu_get_overlay_table): Likewise.
1529 * stabsread.c (rs6000_builtin_type): Likewise.
1530 * stack.c (do_print_variable_and_value): Likewise.
1531 * stap-probe.c (get_stap_base_address_1): Likewise.
1532 * symfile-debug.c (debug_qf_has_symbols): Likewise.
1533 (debug_qf_find_last_source_symtab): Likewise.
1534 (debug_qf_forget_cached_source_info): Likewise.
1535 (debug_qf_map_symtabs_matching_filename): Likewise.
1536 (debug_qf_lookup_symbol): Likewise.
1537 (debug_qf_print_stats): Likewise.
1538 (debug_qf_dump): Likewise.
1539 (debug_qf_relocate): Likewise.
1540 (debug_qf_expand_symtabs_for_function): Likewise.
1541 (debug_qf_expand_all_symtabs): Likewise.
1542 (debug_qf_expand_symtabs_with_fullname): Likewise.
1543 (debug_qf_map_matching_symbols): Likewise.
1544 (debug_qf_expand_symtabs_matching): Likewise.
1545 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
1546 (debug_qf_map_symbol_filenames): Likewise.
1547 (debug_sym_get_probes): Likewise.
1548 (debug_sym_new_init): Likewise.
1549 (debug_sym_init): Likewise.
1550 (debug_sym_read): Likewise.
1551 (debug_sym_read_psymbols): Likewise.
1552 (debug_sym_finish): Likewise.
1553 (debug_sym_offsets): Likewise.
1554 (debug_sym_read_linetable): Likewise.
1555 (debug_sym_relocate): Likewise.
1556 (uninstall_symfile_debug_logging): Likewise.
1557 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
1558 * symfile.c (place_section): Likewise.
1559 (add_section_size_callback): Likewise.
1560 (load_progress): Likewise.
1561 (load_section_callback): Likewise.
1562 (clear_memory_write_data): Likewise.
1563 (allocate_symtab): Likewise.
1564 * symmisc.c (maintenance_expand_file_matcher): Likewise.
1565 * symtab.c (lookup_symtab_callback): Likewise.
1566 (hash_demangled_name_entry): Likewise.
1567 (eq_demangled_name_entry): Likewise.
1568 (get_symbol_cache): Likewise.
1569 (symbol_cache_cleanup): Likewise.
1570 (set_symbol_cache_size): Likewise.
1571 (symbol_cache_flush): Likewise.
1572 (maintenance_print_symbol_cache): Likewise.
1573 (maintenance_print_symbol_cache_statistics): Likewise.
1574 (delete_filename_seen_cache): Likewise.
1575 (output_partial_symbol_filename): Likewise.
1576 (search_symbols_file_matches): Likewise.
1577 (search_symbols_name_matches): Likewise.
1578 (do_free_completion_list): Likewise.
1579 (maybe_add_partial_symtab_filename): Likewise.
1580 (get_main_info): Likewise.
1581 (main_info_cleanup): Likewise.
1582 * target-dcache.c (target_dcache_cleanup): Likewise.
1583 (target_dcache_init_p): Likewise.
1584 (target_dcache_invalidate): Likewise.
1585 (target_dcache_get): Likewise.
1586 (target_dcache_get_or_init): Likewise.
1587 * target-descriptions.c (target_find_description): Likewise.
1588 (tdesc_find_type): Likewise.
1589 (tdesc_data_cleanup): Likewise.
1590 (tdesc_find_arch_register): Likewise.
1591 (tdesc_register_name): Likewise.
1592 (tdesc_register_type): Likewise.
1593 (tdesc_register_reggroup_p): Likewise.
1594 (set_tdesc_pseudo_register_name): Likewise.
1595 (set_tdesc_pseudo_register_type): Likewise.
1596 (set_tdesc_pseudo_register_reggroup_p): Likewise.
1597 (tdesc_use_registers): Likewise.
1598 (free_target_description): Likewise.
1599 * target-memory.c (compare_block_starting_address): Likewise.
1600 (cleanup_request_data): Likewise.
1601 (cleanup_write_requests_vector): Likewise.
1602 * target.c (open_target): Likewise.
1603 (cleanup_restore_target_terminal): Likewise.
1604 (free_memory_read_result_vector): Likewise.
1605 * thread.c (disable_thread_stack_temporaries): Likewise.
1606 (finish_thread_state_cleanup): Likewise.
1607 (do_restore_current_thread_cleanup): Likewise.
1608 (restore_current_thread_cleanup_dtor): Likewise.
1609 (set_thread_refcount): Likewise.
1610 (tp_array_compar): Likewise.
1611 (do_captured_thread_select): Likewise.
1612 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
1613 (tic6x_stub_this_id): Likewise.
1614 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
1615 * top.c (do_restore_instream_cleanup): Likewise.
1616 (gdb_readline_wrapper_cleanup): Likewise.
1617 (kill_or_detach): Likewise.
1618 (print_inferior_quit_action): Likewise.
1619 * tracefile-tfile.c (match_blocktype): Likewise.
1620 (build_traceframe_info): Likewise.
1621 * tracefile.c (trace_file_writer_xfree): Likewise.
1622 * tracepoint.c (memrange_cmp): Likewise.
1623 (do_collect_symbol): Likewise.
1624 (do_clear_collection_list): Likewise.
1625 (do_restore_current_traceframe_cleanup): Likewise.
1626 (restore_current_traceframe_cleanup_dtor): Likewise.
1627 (free_current_marker): Likewise.
1628 (traceframe_info_start_memory): Likewise.
1629 (traceframe_info_start_tvar): Likewise.
1630 (free_result): Likewise.
1631 * tramp-frame.c (tramp_frame_cache): Likewise.
1632 * tui/tui-file.c (tui_file_delete): Likewise.
1633 (tui_fileopen): Likewise.
1634 (tui_sfileopen): Likewise.
1635 (tui_file_isatty): Likewise.
1636 (tui_file_rewind): Likewise.
1637 (tui_file_put): Likewise.
1638 (tui_file_fputs): Likewise.
1639 (tui_file_get_strbuf): Likewise.
1640 (tui_file_adjust_strbuf): Likewise.
1641 (tui_file_flush): Likewise.
1642 * tui/tui-layout.c (make_command_window): Likewise.
1643 (make_data_window): Likewise.
1644 (show_source_disasm_command): Likewise.
1645 (show_data): Likewise.
1646 (make_source_or_disasm_window): Likewise.
1647 (show_source_or_disasm_and_command): Likewise.
1648 * tui/tui-out.c (tui_field_int): Likewise.
1649 (tui_field_string): Likewise.
1650 (tui_field_fmt): Likewise.
1651 (tui_text): Likewise.
1652 * typeprint.c (hash_typedef_field): Likewise.
1653 (eq_typedef_field): Likewise.
1654 (do_free_typedef_hash): Likewise.
1655 (copy_typedef_hash_element): Likewise.
1656 (do_free_global_table): Likewise.
1657 (find_global_typedef): Likewise.
1658 (find_typedef_in_hash): Likewise.
1659 * ui-file.c (ui_file_write_for_put): Likewise.
1660 (do_ui_file_xstrdup): Likewise.
1661 (mem_file_delete): Likewise.
1662 (mem_file_rewind): Likewise.
1663 (mem_file_put): Likewise.
1664 (mem_file_write): Likewise.
1665 (stdio_file_delete): Likewise.
1666 (stdio_file_flush): Likewise.
1667 (stdio_file_read): Likewise.
1668 (stdio_file_write): Likewise.
1669 (stdio_file_write_async_safe): Likewise.
1670 (stdio_file_fputs): Likewise.
1671 (stdio_file_isatty): Likewise.
1672 (stdio_file_fseek): Likewise.
1673 (tee_file_delete): Likewise.
1674 (tee_file_flush): Likewise.
1675 (tee_file_write): Likewise.
1676 (tee_file_fputs): Likewise.
1677 (tee_file_isatty): Likewise.
1678 * ui-out.c (do_cleanup_table_end): Likewise.
1679 (do_cleanup_end): Likewise.
1680 * user-regs.c (user_reg_add): Likewise.
1681 (user_reg_map_name_to_regnum): Likewise.
1682 (usernum_to_user_reg): Likewise.
1683 (maintenance_print_user_registers): Likewise.
1684 * utils.c (do_bfd_close_cleanup): Likewise.
1685 (do_fclose_cleanup): Likewise.
1686 (do_obstack_free): Likewise.
1687 (do_ui_file_delete): Likewise.
1688 (do_ui_out_redirect_pop): Likewise.
1689 (do_free_section_addr_info): Likewise.
1690 (restore_integer): Likewise.
1691 (do_unpush_target): Likewise.
1692 (do_htab_delete_cleanup): Likewise.
1693 (do_restore_ui_file): Likewise.
1694 (do_value_free): Likewise.
1695 (do_free_so): Likewise.
1696 (free_current_contents): Likewise.
1697 (do_regfree_cleanup): Likewise.
1698 (core_addr_hash): Likewise.
1699 (core_addr_eq): Likewise.
1700 (do_free_char_ptr_vec): Likewise.
1701 * v850-tdep.c (v850_frame_cache): Likewise.
1702 * varobj.c (do_free_variable_cleanup): Likewise.
1703 * vax-tdep.c (vax_supply_gregset): Likewise.
1704 (vax_frame_cache): Likewise.
1705 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
1706 * xml-support.c (gdb_xml_body_text): Likewise.
1707 (gdb_xml_values_cleanup): Likewise.
1708 (gdb_xml_start_element): Likewise.
1709 (gdb_xml_start_element_wrapper): Likewise.
1710 (gdb_xml_end_element): Likewise.
1711 (gdb_xml_end_element_wrapper): Likewise.
1712 (gdb_xml_cleanup): Likewise.
1713 (gdb_xml_fetch_external_entity): Likewise.
1714 (gdb_xml_parse_attr_enum): Likewise.
1715 (xinclude_start_include): Likewise.
1716 (xinclude_end_include): Likewise.
1717 (xml_xinclude_default): Likewise.
1718 (xml_xinclude_start_doctype): Likewise.
1719 (xml_xinclude_end_doctype): Likewise.
1720 (xml_xinclude_cleanup): Likewise.
1721 (xml_fetch_content_from_file): Likewise.
1722 * xml-syscall.c (free_syscalls_info): Likewise.
1723 (syscall_start_syscall): Likewise.
1724 * xml-tdesc.c (tdesc_end_arch): Likewise.
1725 (tdesc_end_osabi): Likewise.
1726 (tdesc_end_compatible): Likewise.
1727 (tdesc_start_target): Likewise.
1728 (tdesc_start_feature): Likewise.
1729 (tdesc_start_reg): Likewise.
1730 (tdesc_start_union): Likewise.
1731 (tdesc_start_struct): Likewise.
1732 (tdesc_start_flags): Likewise.
1733 (tdesc_start_field): Likewise.
1734 (tdesc_start_vector): Likewise.
1735 (fetch_available_features_from_target): Likewise.
1736 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
1737 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
1738 (xtensa_frame_cache): Likewise.
1739 (xtensa_frame_prev_register): Likewise.
1740 (xtensa_extract_return_value): Likewise.
1742 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1744 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
1745 (aarch64_make_stub_cache): Likewise.
1746 (value_of_aarch64_user_reg): Likewise.
1747 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
1748 (get_ada_inferior_data): Likewise.
1749 (get_ada_pspace_data): Likewise.
1750 (ada_pspace_data_cleanup): Likewise.
1751 (ada_complete_symbol_matcher): Likewise.
1752 (ada_exc_search_name_matches): Likewise.
1753 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
1754 (get_ada_tasks_inferior_data): Likewise.
1755 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
1756 (splay_obstack_alloc): Likewise.
1757 (splay_obstack_free): Likewise.
1758 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
1759 (alpha_linux_collect_gregset): Likewise.
1760 (alpha_linux_supply_fpregset): Likewise.
1761 (alpha_linux_collect_fpregset): Likewise.
1762 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1763 * alpha-tdep.c (alpha_lds): Likewise.
1764 (alpha_sts): Likewise.
1765 (alpha_sigtramp_frame_unwind_cache): Likewise.
1766 (alpha_heuristic_frame_unwind_cache): Likewise.
1767 (alpha_supply_int_regs): Likewise.
1768 (alpha_fill_int_regs): Likewise.
1769 (alpha_supply_fp_regs): Likewise.
1770 (alpha_fill_fp_regs): Likewise.
1771 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
1772 (alphanbsd_aout_supply_gregset): Likewise.
1773 (alphanbsd_supply_gregset): Likewise.
1774 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
1775 (amd64_x32_linux_init_abi): Likewise.
1776 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1777 (amd64_collect_native_gregset): Likewise.
1778 * amd64-tdep.c (amd64_frame_cache): Likewise.
1779 (amd64_sigtramp_frame_cache): Likewise.
1780 (amd64_epilogue_frame_cache): Likewise.
1781 (amd64_supply_fxsave): Likewise.
1782 (amd64_supply_xsave): Likewise.
1783 (amd64_collect_fxsave): Likewise.
1784 (amd64_collect_xsave): Likewise.
1785 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
1786 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
1787 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1788 (arm_linux_collect_gregset): Likewise.
1789 (arm_linux_supply_nwfpe): Likewise.
1790 (arm_linux_collect_nwfpe): Likewise.
1791 (arm_linux_supply_vfp): Likewise.
1792 (arm_linux_collect_vfp): Likewise.
1793 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
1794 (arm_prologue_unwind_stop_reason): Likewise.
1795 (arm_prologue_this_id): Likewise.
1796 (arm_prologue_prev_register): Likewise.
1797 (arm_exidx_data_free): Likewise.
1798 (arm_find_exidx_entry): Likewise.
1799 (arm_stub_this_id): Likewise.
1800 (arm_m_exception_this_id): Likewise.
1801 (arm_m_exception_prev_register): Likewise.
1802 (arm_normal_frame_base): Likewise.
1803 (gdb_print_insn_arm): Likewise.
1804 (arm_objfile_data_free): Likewise.
1805 (arm_record_special_symbol): Likewise.
1806 (value_of_arm_user_reg): Likewise.
1807 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
1808 (armbsd_supply_gregset): Likewise.
1809 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
1810 (get_auto_load_pspace_data): Likewise.
1811 (hash_loaded_script_entry): Likewise.
1812 (eq_loaded_script_entry): Likewise.
1813 (clear_section_scripts): Likewise.
1814 (collect_matching_scripts): Likewise.
1815 * auxv.c (auxv_inferior_data_cleanup): Likewise.
1816 (get_auxv_inferior_data): Likewise.
1817 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1818 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
1819 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1820 (target_bfd_xclose): Likewise.
1821 (target_bfd_get_section_table): Likewise.
1822 * bfin-tdep.c (bfin_frame_cache): Likewise.
1823 * block.c (find_block_in_blockvector): Likewise.
1824 (call_site_for_pc): Likewise.
1825 (block_find_non_opaque_type_preferred): Likewise.
1826 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
1827 (signal_catchpoint_remove_location): Likewise.
1828 (signal_catchpoint_breakpoint_hit): Likewise.
1829 (signal_catchpoint_print_one): Likewise.
1830 (signal_catchpoint_print_mention): Likewise.
1831 (signal_catchpoint_print_recreate): Likewise.
1832 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
1833 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
1834 (bp_location_compare_addrs): Likewise.
1835 (get_first_locp_gte_addr): Likewise.
1836 (check_tracepoint_command): Likewise.
1837 (do_map_commands_command): Likewise.
1838 (get_breakpoint_objfile_data): Likewise.
1839 (free_breakpoint_probes): Likewise.
1840 (do_captured_breakpoint_query): Likewise.
1841 (compare_breakpoints): Likewise.
1842 (bp_location_compare): Likewise.
1843 (bpstat_remove_breakpoint_callback): Likewise.
1844 (do_delete_breakpoint_cleanup): Likewise.
1845 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
1846 (bsd_uthread_set_collect_uthread): Likewise.
1847 (bsd_uthread_activate): Likewise.
1848 (bsd_uthread_fetch_registers): Likewise.
1849 (bsd_uthread_store_registers): Likewise.
1850 * btrace.c (check_xml_btrace_version): Likewise.
1851 (parse_xml_btrace_block): Likewise.
1852 (parse_xml_btrace_pt_config_cpu): Likewise.
1853 (parse_xml_btrace_pt_raw): Likewise.
1854 (parse_xml_btrace_pt): Likewise.
1855 (parse_xml_btrace_conf_bts): Likewise.
1856 (parse_xml_btrace_conf_pt): Likewise.
1857 (do_btrace_data_cleanup): Likewise.
1858 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
1859 * charset.c (cleanup_iconv): Likewise.
1860 (do_cleanup_iterator): Likewise.
1861 * cli-out.c (cli_uiout_dtor): Likewise.
1862 (cli_table_begin): Likewise.
1863 (cli_table_body): Likewise.
1864 (cli_table_end): Likewise.
1865 (cli_table_header): Likewise.
1866 (cli_begin): Likewise.
1867 (cli_end): Likewise.
1868 (cli_field_int): Likewise.
1869 (cli_field_skip): Likewise.
1870 (cli_field_string): Likewise.
1871 (cli_field_fmt): Likewise.
1872 (cli_spaces): Likewise.
1873 (cli_text): Likewise.
1874 (cli_message): Likewise.
1875 (cli_wrap_hint): Likewise.
1876 (cli_flush): Likewise.
1877 (cli_redirect): Likewise.
1878 (out_field_fmt): Likewise.
1879 (field_separator): Likewise.
1880 (cli_out_set_stream): Likewise.
1881 * cli/cli-cmds.c (compare_symtabs): Likewise.
1882 * cli/cli-dump.c (call_dump_func): Likewise.
1883 (restore_section_callback): Likewise.
1884 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
1885 (do_restore_user_call_depth): Likewise.
1886 (do_free_command_lines_cleanup): Likewise.
1887 * coff-pe-read.c (get_section_vmas): Likewise.
1888 (pe_as16): Likewise.
1889 (pe_as32): Likewise.
1890 * coffread.c (coff_symfile_read): Likewise.
1891 * common/agent.c (agent_look_up_symbols): Likewise.
1892 * common/filestuff.c (do_close_cleanup): Likewise.
1893 * common/format.c (free_format_pieces_cleanup): Likewise.
1894 * common/vec.c (vec_o_reserve): Likewise.
1895 * compile/compile-c-support.c (print_one_macro): Likewise.
1896 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
1897 (eq_symbol_error): Likewise.
1898 (del_symbol_error): Likewise.
1899 (error_symbol_once): Likewise.
1900 (gcc_convert_symbol): Likewise.
1901 (gcc_symbol_address): Likewise.
1902 (hash_symname): Likewise.
1903 (eq_symname): Likewise.
1904 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
1905 (eq_type_map_instance): Likewise.
1906 (insert_type): Likewise.
1907 (convert_type): Likewise.
1908 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
1909 (setup_sections): Likewise.
1910 (link_hash_table_free): Likewise.
1911 (copy_sections): Likewise.
1912 * compile/compile-object-run.c (do_module_cleanup): Likewise.
1913 * compile/compile.c (compile_print_value): Likewise.
1914 (do_rmdir): Likewise.
1915 (cleanup_compile_instance): Likewise.
1916 (cleanup_unlink_file): Likewise.
1917 * completer.c (free_completion_tracker): Likewise.
1918 * corelow.c (add_to_spuid_list): Likewise.
1919 * cp-namespace.c (reset_directive_searched): Likewise.
1920 * cp-support.c (reset_directive_searched): Likewise.
1921 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
1922 (cris_frame_unwind_cache): Likewise.
1923 * d-lang.c (builtin_d_type): Likewise.
1924 * d-namespace.c (reset_directive_searched): Likewise.
1925 * dbxread.c (dbx_free_symfile_info): Likewise.
1926 (do_free_bincl_list_cleanup): Likewise.
1927 * disasm.c (hash_dis_line_entry): Likewise.
1928 (eq_dis_line_entry): Likewise.
1929 (dis_asm_print_address): Likewise.
1930 (fprintf_disasm): Likewise.
1931 (do_ui_file_delete): Likewise.
1932 * doublest.c (convert_floatformat_to_doublest): Likewise.
1933 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1934 (dummy_frame_prev_register): Likewise.
1935 (dummy_frame_this_id): Likewise.
1936 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1937 (cache_eq): Likewise.
1938 (cache_find): Likewise.
1939 (tailcall_frame_this_id): Likewise.
1940 (dwarf2_tailcall_prev_register_first): Likewise.
1941 (tailcall_frame_prev_register): Likewise.
1942 (tailcall_frame_dealloc_cache): Likewise.
1943 (tailcall_frame_prev_arch): Likewise.
1944 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1945 (dwarf2_frame_set_init_reg): Likewise.
1946 (dwarf2_frame_init_reg): Likewise.
1947 (dwarf2_frame_set_signal_frame_p): Likewise.
1948 (dwarf2_frame_signal_frame_p): Likewise.
1949 (dwarf2_frame_set_adjust_regnum): Likewise.
1950 (dwarf2_frame_adjust_regnum): Likewise.
1951 (clear_pointer_cleanup): Likewise.
1952 (dwarf2_frame_cache): Likewise.
1953 (find_cie): Likewise.
1954 (dwarf2_frame_find_fde): Likewise.
1955 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1956 (free_dwarf_expr_context_cleanup): Likewise.
1957 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1958 (locexpr_get_frame_base): Likewise.
1959 (loclist_find_frame_base_location): Likewise.
1960 (loclist_get_frame_base): Likewise.
1961 (dwarf_expr_dwarf_call): Likewise.
1962 (dwarf_expr_get_base_type): Likewise.
1963 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1964 (dwarf_expr_get_obj_addr): Likewise.
1965 (entry_data_value_coerce_ref): Likewise.
1966 (entry_data_value_copy_closure): Likewise.
1967 (entry_data_value_free_closure): Likewise.
1968 (get_frame_address_in_block_wrapper): Likewise.
1969 (dwarf2_evaluate_property): Likewise.
1970 (dwarf2_compile_property_to_c): Likewise.
1971 (needs_frame_read_addr_from_reg): Likewise.
1972 (needs_frame_get_reg_value): Likewise.
1973 (needs_frame_frame_base): Likewise.
1974 (needs_frame_frame_cfa): Likewise.
1975 (needs_frame_tls_address): Likewise.
1976 (needs_frame_dwarf_call): Likewise.
1977 (needs_dwarf_reg_entry_value): Likewise.
1978 (get_ax_pc): Likewise.
1979 (locexpr_read_variable): Likewise.
1980 (locexpr_read_variable_at_entry): Likewise.
1981 (locexpr_read_needs_frame): Likewise.
1982 (locexpr_describe_location): Likewise.
1983 (locexpr_tracepoint_var_ref): Likewise.
1984 (locexpr_generate_c_location): Likewise.
1985 (loclist_read_variable): Likewise.
1986 (loclist_read_variable_at_entry): Likewise.
1987 (loclist_describe_location): Likewise.
1988 (loclist_tracepoint_var_ref): Likewise.
1989 (loclist_generate_c_location): Likewise.
1990 * dwarf2read.c (line_header_hash_voidp): Likewise.
1991 (line_header_eq_voidp): Likewise.
1992 (dwarf2_has_info): Likewise.
1993 (dwarf2_get_section_info): Likewise.
1994 (locate_dwz_sections): Likewise.
1995 (hash_file_name_entry): Likewise.
1996 (eq_file_name_entry): Likewise.
1997 (delete_file_name_entry): Likewise.
1998 (dw2_setup): Likewise.
1999 (dw2_get_file_names_reader): Likewise.
2000 (dw2_find_pc_sect_compunit_symtab): Likewise.
2001 (hash_signatured_type): Likewise.
2002 (eq_signatured_type): Likewise.
2003 (add_signatured_type_cu_to_table): Likewise.
2004 (create_debug_types_hash_table): Likewise.
2005 (lookup_dwo_signatured_type): Likewise.
2006 (lookup_dwp_signatured_type): Likewise.
2007 (lookup_signatured_type): Likewise.
2008 (hash_type_unit_group): Likewise.
2009 (eq_type_unit_group): Likewise.
2010 (get_type_unit_group): Likewise.
2011 (process_psymtab_comp_unit_reader): Likewise.
2012 (sort_tu_by_abbrev_offset): Likewise.
2013 (process_skeletonless_type_unit): Likewise.
2014 (psymtabs_addrmap_cleanup): Likewise.
2015 (dwarf2_read_symtab): Likewise.
2016 (psymtab_to_symtab_1): Likewise.
2017 (die_hash): Likewise.
2019 (load_full_comp_unit_reader): Likewise.
2020 (reset_die_in_process): Likewise.
2021 (free_cu_line_header): Likewise.
2022 (handle_DW_AT_stmt_list): Likewise.
2023 (hash_dwo_file): Likewise.
2024 (eq_dwo_file): Likewise.
2025 (hash_dwo_unit): Likewise.
2026 (eq_dwo_unit): Likewise.
2027 (create_dwo_cu_reader): Likewise.
2028 (create_dwo_unit_in_dwp_v1): Likewise.
2029 (create_dwo_unit_in_dwp_v2): Likewise.
2030 (lookup_dwo_unit_in_dwp): Likewise.
2031 (dwarf2_locate_dwo_sections): Likewise.
2032 (dwarf2_locate_common_dwp_sections): Likewise.
2033 (dwarf2_locate_v2_dwp_sections): Likewise.
2034 (hash_dwp_loaded_cutus): Likewise.
2035 (eq_dwp_loaded_cutus): Likewise.
2036 (lookup_dwo_cutu): Likewise.
2037 (abbrev_table_free_cleanup): Likewise.
2038 (dwarf2_free_abbrev_table): Likewise.
2039 (find_partial_die_in_comp_unit): Likewise.
2040 (free_line_header_voidp): Likewise.
2041 (follow_die_offset): Likewise.
2042 (follow_die_sig_1): Likewise.
2043 (free_heap_comp_unit): Likewise.
2044 (free_stack_comp_unit): Likewise.
2045 (dwarf2_free_objfile): Likewise.
2046 (per_cu_offset_and_type_hash): Likewise.
2047 (per_cu_offset_and_type_eq): Likewise.
2048 (get_die_type_at_offset): Likewise.
2049 (partial_die_hash): Likewise.
2050 (partial_die_eq): Likewise.
2051 (dwarf2_per_objfile_free): Likewise.
2052 (hash_strtab_entry): Likewise.
2053 (eq_strtab_entry): Likewise.
2054 (add_string): Likewise.
2055 (hash_symtab_entry): Likewise.
2056 (eq_symtab_entry): Likewise.
2057 (delete_symtab_entry): Likewise.
2058 (cleanup_mapped_symtab): Likewise.
2059 (add_indices_to_cpool): Likewise.
2060 (hash_psymtab_cu_index): Likewise.
2061 (eq_psymtab_cu_index): Likewise.
2062 (add_address_entry_worker): Likewise.
2063 (unlink_if_set): Likewise.
2064 (write_one_signatured_type): Likewise.
2065 (save_gdb_index_command): Likewise.
2066 * elfread.c (elf_symtab_read): Likewise.
2067 (elf_gnu_ifunc_cache_hash): Likewise.
2068 (elf_gnu_ifunc_cache_eq): Likewise.
2069 (elf_gnu_ifunc_record_cache): Likewise.
2070 (elf_gnu_ifunc_resolve_by_cache): Likewise.
2071 (elf_get_probes): Likewise.
2072 (probe_key_free): Likewise.
2073 * f-lang.c (builtin_f_type): Likewise.
2074 * frame-base.c (frame_base_append_sniffer): Likewise.
2075 (frame_base_set_default): Likewise.
2076 (frame_base_find_by_frame): Likewise.
2077 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
2078 (frame_unwind_append_unwinder): Likewise.
2079 (frame_unwind_find_by_frame): Likewise.
2080 * frame.c (frame_addr_hash): Likewise.
2081 (frame_addr_hash_eq): Likewise.
2082 (frame_stash_find): Likewise.
2083 (do_frame_register_read): Likewise.
2084 (unwind_to_current_frame): Likewise.
2085 (frame_cleanup_after_sniffer): Likewise.
2086 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
2087 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
2088 * ft32-tdep.c (ft32_frame_cache): Likewise.
2089 * gcore.c (do_bfd_delete_cleanup): Likewise.
2090 (gcore_create_callback): Likewise.
2091 * gdb_bfd.c (hash_bfd): Likewise.
2093 (gdb_bfd_open): Likewise.
2094 (free_one_bfd_section): Likewise.
2095 (gdb_bfd_ref): Likewise.
2096 (gdb_bfd_unref): Likewise.
2097 (get_section_descriptor): Likewise.
2098 (gdb_bfd_map_section): Likewise.
2099 (gdb_bfd_crc): Likewise.
2100 (gdb_bfd_mark_parent): Likewise.
2101 (gdb_bfd_record_inclusion): Likewise.
2102 (gdb_bfd_requires_relocations): Likewise.
2103 (print_one_bfd): Likewise.
2104 * gdbtypes.c (type_pair_hash): Likewise.
2105 (type_pair_eq): Likewise.
2106 (builtin_type): Likewise.
2107 (objfile_type): Likewise.
2108 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
2109 (vtable_address_point_offset): Likewise.
2110 (gnuv3_get_vtable): Likewise.
2111 (hash_value_and_voffset): Likewise.
2112 (eq_value_and_voffset): Likewise.
2113 (compare_value_and_voffset): Likewise.
2114 (compute_vtable_size): Likewise.
2115 (gnuv3_get_typeid_type): Likewise.
2116 * go-lang.c (builtin_go_type): Likewise.
2117 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
2118 (bkscm_eq_block_smob): Likewise.
2119 (bkscm_objfile_block_map): Likewise.
2120 (bkscm_del_objfile_blocks): Likewise.
2121 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
2122 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
2123 (gdbscm_disasm_print_address): Likewise.
2124 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
2125 (frscm_eq_frame_smob): Likewise.
2126 (frscm_inferior_frame_map): Likewise.
2127 (frscm_del_inferior_frames): Likewise.
2128 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
2129 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
2130 (ofscm_objfile_smob_from_objfile): Likewise.
2131 * guile/scm-ports.c (ioscm_write): Likewise.
2132 (ioscm_file_port_delete): Likewise.
2133 (ioscm_file_port_rewind): Likewise.
2134 (ioscm_file_port_put): Likewise.
2135 (ioscm_file_port_write): Likewise.
2136 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
2137 (psscm_pspace_smob_from_pspace): Likewise.
2138 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
2139 (scscm_recording_unwind_handler): Likewise.
2140 (gdbscm_with_catch): Likewise.
2141 (scscm_call_0_body): Likewise.
2142 (scscm_call_1_body): Likewise.
2143 (scscm_call_2_body): Likewise.
2144 (scscm_call_3_body): Likewise.
2145 (scscm_call_4_body): Likewise.
2146 (scscm_apply_1_body): Likewise.
2147 (scscm_eval_scheme_string): Likewise.
2148 (gdbscm_safe_eval_string): Likewise.
2149 (scscm_source_scheme_script): Likewise.
2150 (gdbscm_safe_source_script): Likewise.
2151 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
2152 (gdbscm_call_scm_from_stringn): Likewise.
2153 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
2154 (syscm_eq_symbol_smob): Likewise.
2155 (syscm_get_symbol_map): Likewise.
2156 (syscm_del_objfile_symbols): Likewise.
2157 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
2158 (stscm_eq_symtab_smob): Likewise.
2159 (stscm_objfile_symtab_map): Likewise.
2160 (stscm_del_objfile_symtabs): Likewise.
2161 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
2162 (tyscm_eq_type_smob): Likewise.
2163 (tyscm_type_map): Likewise.
2164 (tyscm_copy_type_recursive): Likewise.
2165 (save_objfile_types): Likewise.
2166 * guile/scm-utils.c (extract_arg): Likewise.
2167 * h8300-tdep.c (h8300_frame_cache): Likewise.
2168 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
2169 * hppa-tdep.c (compare_unwind_entries): Likewise.
2170 (find_unwind_entry): Likewise.
2171 (hppa_frame_cache): Likewise.
2172 (hppa_stub_frame_unwind_cache): Likewise.
2173 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
2174 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
2175 (hppaobsd_supply_fpregset): Likewise.
2176 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
2177 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
2178 * i386-tdep.c (i386_frame_cache): Likewise.
2179 (i386_epilogue_frame_cache): Likewise.
2180 (i386_sigtramp_frame_cache): Likewise.
2181 (i386_supply_gregset): Likewise.
2182 (i386_collect_gregset): Likewise.
2183 (i386_gdbarch_init): Likewise.
2184 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
2185 (i386obsd_trapframe_cache): Likewise.
2186 * i387-tdep.c (i387_supply_fsave): Likewise.
2187 (i387_collect_fsave): Likewise.
2188 (i387_supply_fxsave): Likewise.
2189 (i387_collect_fxsave): Likewise.
2190 (i387_supply_xsave): Likewise.
2191 (i387_collect_xsave): Likewise.
2192 * ia64-tdep.c (ia64_frame_cache): Likewise.
2193 (ia64_sigtramp_frame_cache): Likewise.
2194 * infcmd.c (attach_command_continuation): Likewise.
2195 (attach_command_continuation_free_args): Likewise.
2196 * inferior.c (restore_inferior): Likewise.
2197 (delete_thread_of_inferior): Likewise.
2198 * inflow.c (inflow_inferior_data_cleanup): Likewise.
2199 (get_inflow_inferior_data): Likewise.
2200 (inflow_inferior_exit): Likewise.
2201 * infrun.c (displaced_step_clear_cleanup): Likewise.
2202 (restore_current_uiout_cleanup): Likewise.
2203 (release_stop_context_cleanup): Likewise.
2204 (do_restore_infcall_suspend_state_cleanup): Likewise.
2205 (do_restore_infcall_control_state_cleanup): Likewise.
2206 (restore_inferior_ptid): Likewise.
2207 * inline-frame.c (block_starting_point_at): Likewise.
2208 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
2209 * jit.c (get_jit_objfile_data): Likewise.
2210 (get_jit_program_space_data): Likewise.
2211 (jit_object_close_impl): Likewise.
2212 (jit_find_objf_with_entry_addr): Likewise.
2213 (jit_breakpoint_deleted): Likewise.
2214 (jit_unwind_reg_set_impl): Likewise.
2215 (jit_unwind_reg_get_impl): Likewise.
2216 (jit_dealloc_cache): Likewise.
2217 (jit_frame_sniffer): Likewise.
2218 (jit_frame_prev_register): Likewise.
2219 (jit_prepend_unwinder): Likewise.
2220 (jit_inferior_exit_hook): Likewise.
2221 (free_objfile_data): Likewise.
2222 * jv-lang.c (jv_per_objfile_free): Likewise.
2223 (get_dynamics_objfile): Likewise.
2224 (get_java_class_symtab): Likewise.
2225 (builtin_java_type): Likewise.
2226 * language.c (language_string_char_type): Likewise.
2227 (language_bool_type): Likewise.
2228 (language_lookup_primitive_type): Likewise.
2229 (language_lookup_primitive_type_as_symbol): Likewise.
2230 * linespec.c (hash_address_entry): Likewise.
2231 (eq_address_entry): Likewise.
2232 (iterate_inline_only): Likewise.
2233 (iterate_name_matcher): Likewise.
2234 (decode_line_2_compare_items): Likewise.
2235 (collect_one_symbol): Likewise.
2236 (compare_symbols): Likewise.
2237 (compare_msymbols): Likewise.
2238 (add_symtabs_to_list): Likewise.
2239 (collect_symbols): Likewise.
2240 (compare_msyms): Likewise.
2241 (add_minsym): Likewise.
2242 (cleanup_linespec_result): Likewise.
2243 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
2244 * linux-nat.c (delete_lwp_cleanup): Likewise.
2245 (count_events_callback): Likewise.
2246 (select_event_lwp_callback): Likewise.
2247 (resume_stopped_resumed_lwps): Likewise.
2248 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
2249 (invalidate_linux_cache_inf): Likewise.
2250 (get_linux_inferior_data): Likewise.
2251 (linux_find_memory_regions_thunk): Likewise.
2252 (linux_make_mappings_callback): Likewise.
2253 (linux_corefile_thread_callback): Likewise.
2254 (find_mapping_size): Likewise.
2255 * linux-thread-db.c (find_new_threads_callback): Likewise.
2256 * lm32-tdep.c (lm32_frame_cache): Likewise.
2257 * m2-lang.c (builtin_m2_type): Likewise.
2258 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
2259 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
2260 (m32r_linux_supply_gregset): Likewise.
2261 (m32r_linux_collect_gregset): Likewise.
2262 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
2263 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
2264 * m68k-tdep.c (m68k_frame_cache): Likewise.
2265 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
2266 (m68kbsd_supply_gregset): Likewise.
2267 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
2268 * m88k-tdep.c (m88k_frame_cache): Likewise.
2269 (m88k_supply_gregset): Likewise.
2271 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
2273 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
2274 to allocation result assignment.
2275 * ada-exp.y (write_object_renaming): Likewise.
2276 (write_ambiguous_var): Likewise.
2277 (ada_nget_field_index): Likewise.
2278 (write_var_or_type): Likewise.
2279 * ada-lang.c (ada_decode_symbol): Likewise.
2280 (ada_value_assign): Likewise.
2281 (value_pointer): Likewise.
2282 (cache_symbol): Likewise.
2283 (add_nonlocal_symbols): Likewise.
2284 (ada_name_for_lookup): Likewise.
2285 (symbol_completion_add): Likewise.
2286 (ada_to_fixed_type_1): Likewise.
2287 (ada_get_next_arg): Likewise.
2288 (defns_collected): Likewise.
2289 * ada-lex.l (processId): Likewise.
2290 (processString): Likewise.
2291 * ada-tasks.c (read_known_tasks_array): Likewise.
2292 (read_known_tasks_list): Likewise.
2293 * ada-typeprint.c (decoded_type_name): Likewise.
2294 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
2295 * amd64-tdep.c (amd64_push_arguments): Likewise.
2296 (amd64_displaced_step_copy_insn): Likewise.
2297 (amd64_classify_insn_at): Likewise.
2298 (amd64_relocate_instruction): Likewise.
2299 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
2300 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
2301 (initialize_current_architecture): Likewise.
2302 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2303 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
2304 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
2305 (arm_push_dummy_call): Likewise.
2306 (extend_buffer_earlier): Likewise.
2307 (arm_adjust_breakpoint_address): Likewise.
2308 (arm_skip_stub): Likewise.
2309 * auto-load.c (filename_is_in_pattern): Likewise.
2310 (maybe_add_script_file): Likewise.
2311 (maybe_add_script_text): Likewise.
2312 (auto_load_objfile_script_1): Likewise.
2313 * auxv.c (ld_so_xfer_auxv): Likewise.
2314 * ax-general.c (new_agent_expr): Likewise.
2315 (grow_expr): Likewise.
2316 (ax_reg_mask): Likewise.
2317 * bcache.c (bcache_full): Likewise.
2318 * breakpoint.c (program_breakpoint_here_p): Likewise.
2319 * btrace.c (parse_xml_raw): Likewise.
2320 * build-id.c (build_id_to_debug_bfd): Likewise.
2321 * buildsym.c (end_symtab_with_blockvector): Likewise.
2322 * c-exp.y (string_exp): Likewise.
2323 (qualified_name): Likewise.
2324 (write_destructor_name): Likewise.
2325 (operator_stoken): Likewise.
2326 (parse_number): Likewise.
2327 (scan_macro_expansion): Likewise.
2329 (c_print_token): Likewise.
2330 * c-lang.c (c_get_string): Likewise.
2331 (emit_numeric_character): Likewise.
2332 * charset.c (wchar_iterate): Likewise.
2333 * cli/cli-cmds.c (complete_command): Likewise.
2334 (make_command): Likewise.
2335 * cli/cli-dump.c (restore_section_callback): Likewise.
2336 (restore_binary_file): Likewise.
2337 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
2338 * cli/cli-script.c (execute_control_command): Likewise.
2339 * cli/cli-setshow.c (do_set_command): Likewise.
2340 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
2341 (read_pe_exported_syms): Likewise.
2342 * coffread.c (coff_read_struct_type): Likewise.
2343 (coff_read_enum_type): Likewise.
2344 * common/btrace-common.c (btrace_data_append): Likewise.
2345 * common/buffer.c (buffer_grow): Likewise.
2346 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
2347 * common/format.c (parse_format_string): Likewise.
2348 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
2349 * common/xml-utils.c (xml_escape_text): Likewise.
2350 * compile/compile-object-load.c (copy_sections): Likewise.
2351 (compile_object_load): Likewise.
2352 * compile/compile-object-run.c (compile_object_run): Likewise.
2353 * completer.c (filename_completer): Likewise.
2354 * corefile.c (read_memory_typed_address): Likewise.
2355 (write_memory_unsigned_integer): Likewise.
2356 (write_memory_signed_integer): Likewise.
2357 (complete_set_gnutarget): Likewise.
2358 * corelow.c (get_core_register_section): Likewise.
2359 * cp-name-parser.y (d_grab): Likewise.
2360 (allocate_info): Likewise.
2361 (cp_new_demangle_parse_info): Likewise.
2362 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
2363 (cp_lookup_symbol_in_namespace): Likewise.
2364 (lookup_namespace_scope): Likewise.
2365 (find_symbol_in_baseclass): Likewise.
2366 (cp_lookup_nested_symbol): Likewise.
2367 (cp_lookup_transparent_type_loop): Likewise.
2368 * cp-support.c (copy_string_to_obstack): Likewise.
2369 (make_symbol_overload_list): Likewise.
2370 (make_symbol_overload_list_namespace): Likewise.
2371 (make_symbol_overload_list_adl_namespace): Likewise.
2372 (first_component_command): Likewise.
2373 * cp-valprint.c (cp_print_value): Likewise.
2374 * ctf.c (ctf_xfer_partial): Likewise.
2375 * d-exp.y (StringExp): Likewise.
2376 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
2377 (lookup_module_scope): Likewise.
2378 (find_symbol_in_baseclass): Likewise.
2379 (d_lookup_nested_symbol): Likewise.
2380 * dbxread.c (find_stab_function_addr): Likewise.
2381 (read_dbx_symtab): Likewise.
2382 (dbx_end_psymtab): Likewise.
2383 (cp_set_block_scope): Likewise.
2384 * dcache.c (dcache_alloc): Likewise.
2385 * demangle.c (_initialize_demangler): Likewise.
2386 * dicos-tdep.c (dicos_load_module_p): Likewise.
2387 * dictionary.c (dict_create_hashed_expandable): Likewise.
2388 (dict_create_linear_expandable): Likewise.
2389 (expand_hashtable): Likewise.
2390 (add_symbol_linear_expandable): Likewise.
2391 * dwarf2-frame.c (add_cie): Likewise.
2392 (add_fde): Likewise.
2393 (dwarf2_build_frame_info): Likewise.
2394 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
2395 (dwarf_expr_fetch_address): Likewise.
2396 (add_piece): Likewise.
2397 (execute_stack_op): Likewise.
2398 * dwarf2loc.c (chain_candidate): Likewise.
2399 (dwarf_entry_parameter_to_value): Likewise.
2400 (read_pieced_value): Likewise.
2401 (write_pieced_value): Likewise.
2402 * dwarf2read.c (dwarf2_read_section): Likewise.
2403 (add_type_unit): Likewise.
2404 (read_comp_units_from_section): Likewise.
2405 (fixup_go_packaging): Likewise.
2406 (dwarf2_compute_name): Likewise.
2407 (dwarf2_physname): Likewise.
2408 (create_dwo_unit_in_dwp_v1): Likewise.
2409 (create_dwo_unit_in_dwp_v2): Likewise.
2410 (read_func_scope): Likewise.
2411 (read_call_site_scope): Likewise.
2412 (dwarf2_attach_fields_to_type): Likewise.
2413 (process_structure_scope): Likewise.
2414 (mark_common_block_symbol_computed): Likewise.
2415 (read_common_block): Likewise.
2416 (abbrev_table_read_table): Likewise.
2417 (guess_partial_die_structure_name): Likewise.
2418 (fixup_partial_die): Likewise.
2419 (add_file_name): Likewise.
2420 (dwarf2_const_value_data): Likewise.
2421 (dwarf2_const_value_attr): Likewise.
2422 (build_error_marker_type): Likewise.
2423 (guess_full_die_structure_name): Likewise.
2424 (anonymous_struct_prefix): Likewise.
2425 (typename_concat): Likewise.
2426 (dwarf2_canonicalize_name): Likewise.
2427 (dwarf2_name): Likewise.
2428 (write_constant_as_bytes): Likewise.
2429 (dwarf2_fetch_constant_bytes): Likewise.
2430 (copy_string): Likewise.
2431 (parse_macro_definition): Likewise.
2432 * elfread.c (elf_symfile_segments): Likewise.
2433 (elf_rel_plt_read): Likewise.
2434 (elf_gnu_ifunc_resolve_by_cache): Likewise.
2435 (elf_gnu_ifunc_resolve_by_got): Likewise.
2436 (elf_read_minimal_symbols): Likewise.
2437 (elf_gnu_ifunc_record_cache): Likewise.
2438 * event-top.c (top_level_prompt): Likewise.
2439 (command_line_handler): Likewise.
2440 * exec.c (resize_section_table): Likewise.
2441 * expprint.c (print_subexp_standard): Likewise.
2442 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2443 * findcmd.c (parse_find_args): Likewise.
2444 * findvar.c (address_from_register): Likewise.
2445 * frame.c (get_prev_frame_always): Likewise.
2446 * gdb_bfd.c (gdb_bfd_ref): Likewise.
2447 (get_section_descriptor): Likewise.
2448 * gdb_obstack.c (obconcat): Likewise.
2449 (obstack_strdup): Likewise.
2450 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
2451 (create_set_type): Likewise.
2452 (lookup_unsigned_typename): Likewise.
2453 (lookup_signed_typename): Likewise.
2454 (resolve_dynamic_union): Likewise.
2455 (resolve_dynamic_struct): Likewise.
2456 (add_dyn_prop): Likewise.
2457 (copy_dynamic_prop_list): Likewise.
2458 (arch_flags_type): Likewise.
2459 (append_composite_type_field_raw): Likewise.
2460 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
2461 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
2462 * go-exp.y (string_exp): Likewise.
2463 * go-lang.c (go_demangle): Likewise.
2464 * guile/guile.c (compute_scheme_string): Likewise.
2465 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2466 (gdbscm_canonicalize_command_name): Likewise.
2467 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
2468 (ioscm_init_memory_port): Likewise.
2469 (ioscm_reinit_memory_port): Likewise.
2470 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
2471 (gdbscm_gc_dup_argv): Likewise.
2472 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
2473 * hppa-tdep.c (internalize_unwinds): Likewise.
2474 (read_unwind_info): Likewise.
2475 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
2476 (windows_core_xfer_shared_libraries): Likewise.
2477 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
2478 (i386_stap_parse_special_token_triplet): Likewise.
2479 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2480 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
2481 * inf-child.c (inf_child_fileio_readlink): Likewise.
2482 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
2483 (inf_ptrace_store_register): Likewise.
2484 * infrun.c (follow_exec): Likewise.
2485 (displaced_step_prepare_throw): Likewise.
2486 (save_stop_context): Likewise.
2487 (save_infcall_suspend_state): Likewise.
2488 * jit.c (jit_read_descriptor): Likewise.
2489 (jit_read_code_entry): Likewise.
2490 (jit_symtab_line_mapping_add_impl): Likewise.
2491 (finalize_symtab): Likewise.
2492 (jit_unwind_reg_get_impl): Likewise.
2493 * jv-exp.y (QualifiedName): Likewise.
2494 * jv-lang.c (get_java_utf8_name): Likewise.
2495 (type_from_class): Likewise.
2496 (java_demangle_type_signature): Likewise.
2497 (java_class_name_from_physname): Likewise.
2498 * jv-typeprint.c (java_type_print_base): Likewise.
2499 * jv-valprint.c (java_value_print): Likewise.
2500 * language.c (add_language): Likewise.
2501 * linespec.c (add_sal_to_sals_basic): Likewise.
2502 (add_sal_to_sals): Likewise.
2503 (decode_objc): Likewise.
2504 (find_linespec_symbols): Likewise.
2505 * linux-fork.c (fork_save_infrun_state): Likewise.
2506 * linux-nat.c (linux_nat_detach): Likewise.
2507 (linux_nat_fileio_readlink): Likewise.
2508 * linux-record.c (record_linux_sockaddr): Likewise.
2509 (record_linux_msghdr): Likewise.
2511 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
2512 (linux_collect_regset_section_cb): Likewise.
2513 (linux_get_siginfo_data): Likewise.
2514 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
2515 (try_thread_db_load_from_dir): Likewise.
2516 (thread_db_load_search): Likewise.
2517 (info_auto_load_libthread_db): Likewise.
2518 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
2519 (m32c_m16c_pointer_to_address): Likewise.
2520 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
2521 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2522 * machoread.c (macho_check_dsym): Likewise.
2523 * macroexp.c (resize_buffer): Likewise.
2524 (gather_arguments): Likewise.
2525 (maybe_expand): Likewise.
2526 * macrotab.c (new_macro_key): Likewise.
2527 (new_source_file): Likewise.
2528 (new_macro_definition): Likewise.
2529 * mdebugread.c (parse_symbol): Likewise.
2530 (parse_type): Likewise.
2531 (parse_partial_symbols): Likewise.
2532 (psymtab_to_symtab_1): Likewise.
2533 * mem-break.c (default_memory_insert_breakpoint): Likewise.
2534 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
2535 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
2536 (mi_cmd_data_read_memory_bytes): Likewise.
2537 (mi_cmd_data_write_memory_bytes): Likewise.
2538 (mi_cmd_trace_frame_collected): Likewise.
2539 * mi/mi-parse.c (mi_parse_argv): Likewise.
2540 (mi_parse): Likewise.
2541 * minidebug.c (lzma_open): Likewise.
2542 (lzma_pread): Likewise.
2543 * mips-tdep.c (mips_read_fp_register_single): Likewise.
2544 (mips_print_fp_register): Likewise.
2545 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
2546 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2547 * mt-tdep.c (mt_register_name): Likewise.
2548 (mt_registers_info): Likewise.
2549 (mt_push_dummy_call): Likewise.
2550 * namespace.c (add_using_directive): Likewise.
2551 * nat/linux-btrace.c (perf_event_read): Likewise.
2552 (linux_enable_bts): Likewise.
2553 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
2554 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
2555 * nto-tdep.c (nto_find_and_open_solib): Likewise.
2556 (nto_parse_redirection): Likewise.
2557 * objc-lang.c (objc_demangle): Likewise.
2558 (find_methods): Likewise.
2559 * objfiles.c (get_objfile_bfd_data): Likewise.
2560 (set_objfile_main_name): Likewise.
2561 (allocate_objfile): Likewise.
2562 (objfile_relocate): Likewise.
2563 (update_section_map): Likewise.
2564 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
2565 * p-exp.y (exp): Likewise.
2567 * p-valprint.c (pascal_object_print_value): Likewise.
2568 * parse.c (initialize_expout): Likewise.
2569 (mark_completion_tag): Likewise.
2570 (copy_name): Likewise.
2571 (parse_float): Likewise.
2572 (type_stack_reserve): Likewise.
2573 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2574 (ppu2spu_prev_register): Likewise.
2575 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
2576 * printcmd.c (printf_wide_c_string): Likewise.
2577 (printf_pointer): Likewise.
2578 * probe.c (parse_probes): Likewise.
2579 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2580 (cmdpy_init): Likewise.
2581 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
2582 * python/py-symtab.c (set_sal): Likewise.
2583 * python/py-unwind.c (pyuw_sniffer): Likewise.
2584 * python/python.c (python_interactive_command): Likewise.
2585 (compute_python_string): Likewise.
2586 * ravenscar-thread.c (get_running_thread_id): Likewise.
2587 * record-full.c (record_full_exec_insn): Likewise.
2588 (record_full_core_open_1): Likewise.
2589 * regcache.c (regcache_raw_read_signed): Likewise.
2590 (regcache_raw_read_unsigned): Likewise.
2591 (regcache_cooked_read_signed): Likewise.
2592 (regcache_cooked_read_unsigned): Likewise.
2593 * remote-fileio.c (remote_fileio_func_open): Likewise.
2594 (remote_fileio_func_rename): Likewise.
2595 (remote_fileio_func_unlink): Likewise.
2596 (remote_fileio_func_stat): Likewise.
2597 (remote_fileio_func_system): Likewise.
2598 * remote-mips.c (mips_xfer_memory): Likewise.
2599 (mips_load_srec): Likewise.
2600 (pmon_end_download): Likewise.
2601 * remote.c (new_remote_state): Likewise.
2602 (map_regcache_remote_table): Likewise.
2603 (remote_register_number_and_offset): Likewise.
2604 (init_remote_state): Likewise.
2605 (get_memory_packet_size): Likewise.
2606 (remote_pass_signals): Likewise.
2607 (remote_program_signals): Likewise.
2608 (remote_start_remote): Likewise.
2609 (remote_check_symbols): Likewise.
2610 (remote_query_supported): Likewise.
2611 (extended_remote_attach): Likewise.
2612 (process_g_packet): Likewise.
2613 (store_registers_using_G): Likewise.
2614 (putpkt_binary): Likewise.
2615 (read_frame): Likewise.
2616 (compare_sections_command): Likewise.
2617 (remote_hostio_pread): Likewise.
2618 (remote_hostio_readlink): Likewise.
2619 (remote_file_put): Likewise.
2620 (remote_file_get): Likewise.
2621 (remote_pid_to_exec_file): Likewise.
2622 (_initialize_remote): Likewise.
2623 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2624 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2625 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2626 (bfd_uses_spe_extensions): Likewise.
2627 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
2628 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
2629 * solib-dsbt.c (decode_loadmap): Likewise.
2630 (fetch_loadmap): Likewise.
2631 (scan_dyntag): Likewise.
2632 (enable_break): Likewise.
2633 (dsbt_relocate_main_executable): Likewise.
2634 * solib-frv.c (fetch_loadmap): Likewise.
2635 (enable_break2): Likewise.
2636 (frv_relocate_main_executable): Likewise.
2637 * solib-spu.c (spu_relocate_main_executable): Likewise.
2638 (spu_bfd_open): Likewise.
2639 * solib-svr4.c (lm_info_read): Likewise.
2640 (read_program_header): Likewise.
2641 (find_program_interpreter): Likewise.
2642 (scan_dyntag): Likewise.
2643 (elf_locate_base): Likewise.
2644 (open_symbol_file_object): Likewise.
2645 (read_program_headers_from_bfd): Likewise.
2646 (svr4_relocate_main_executable): Likewise.
2647 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
2648 * solib.c (solib_find_1): Likewise.
2649 (exec_file_find): Likewise.
2650 (solib_find): Likewise.
2651 * source.c (openp): Likewise.
2652 (print_source_lines_base): Likewise.
2653 (forward_search_command): Likewise.
2654 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
2655 * spu-tdep.c (spu2ppu_prev_register): Likewise.
2656 (spu_get_overlay_table): Likewise.
2657 * stabsread.c (patch_block_stabs): Likewise.
2658 (define_symbol): Likewise.
2660 (read_member_functions): Likewise.
2661 (read_one_struct_field): Likewise.
2662 (read_enum_type): Likewise.
2663 (common_block_start): Likewise.
2664 * stack.c (read_frame_arg): Likewise.
2665 (backtrace_command): Likewise.
2666 * stap-probe.c (stap_parse_register_operand): Likewise.
2667 * symfile.c (syms_from_objfile_1): Likewise.
2668 (find_separate_debug_file): Likewise.
2669 (load_command): Likewise.
2670 (load_progress): Likewise.
2671 (load_section_callback): Likewise.
2672 (reread_symbols): Likewise.
2673 (add_filename_language): Likewise.
2674 (allocate_compunit_symtab): Likewise.
2675 (read_target_long_array): Likewise.
2676 (simple_read_overlay_table): Likewise.
2677 * symtab.c (symbol_set_names): Likewise.
2678 (resize_symbol_cache): Likewise.
2679 (rbreak_command): Likewise.
2680 (completion_list_add_name): Likewise.
2681 (completion_list_objc_symbol): Likewise.
2682 (add_filename_to_list): Likewise.
2683 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
2684 * target-memory.c (target_write_memory_blocks): Likewise.
2685 * target.c (target_read_string): Likewise.
2686 (read_whatever_is_readable): Likewise.
2687 (target_read_alloc_1): Likewise.
2688 (simple_search_memory): Likewise.
2689 (target_fileio_read_alloc_1): Likewise.
2690 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2691 * top.c (command_line_input): Likewise.
2692 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
2693 * tracefile.c (tracefile_fetch_registers): Likewise.
2694 * tracepoint.c (add_memrange): Likewise.
2695 (init_collection_list): Likewise.
2696 (add_aexpr): Likewise.
2697 (trace_dump_actions): Likewise.
2698 (parse_trace_status): Likewise.
2699 (parse_tracepoint_definition): Likewise.
2700 (parse_tsv_definition): Likewise.
2701 (parse_static_tracepoint_marker_definition): Likewise.
2702 * tui/tui-file.c (tui_sfileopen): Likewise.
2703 (tui_file_adjust_strbuf): Likewise.
2704 * tui/tui-io.c (tui_expand_tabs): Likewise.
2705 * tui/tui-source.c (tui_set_source_content): Likewise.
2706 * typeprint.c (find_global_typedef): Likewise.
2707 * ui-file.c (do_ui_file_xstrdup): Likewise.
2708 (ui_file_obsavestring): Likewise.
2709 (mem_file_write): Likewise.
2710 * utils.c (make_hex_string): Likewise.
2711 (get_regcomp_error): Likewise.
2712 (puts_filtered_tabular): Likewise.
2713 (gdb_realpath_keepfile): Likewise.
2714 (ldirname): Likewise.
2715 (gdb_bfd_errmsg): Likewise.
2716 (substitute_path_component): Likewise.
2717 * valops.c (search_struct_method): Likewise.
2718 (find_oload_champ_namespace_loop): Likewise.
2719 * valprint.c (print_decimal_chars): Likewise.
2720 (read_string): Likewise.
2721 (generic_emit_char): Likewise.
2722 * varobj.c (varobj_delete): Likewise.
2723 (varobj_value_get_print_value): Likewise.
2724 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
2725 * windows-tdep.c (display_one_tib): Likewise.
2726 * xcoffread.c (read_xcoff_symtab): Likewise.
2727 (process_xcoff_symbol): Likewise.
2728 (swap_sym): Likewise.
2729 (scan_xcoff_symtab): Likewise.
2730 (xcoff_initial_scan): Likewise.
2731 * xml-support.c (gdb_xml_end_element): Likewise.
2732 (xml_process_xincludes): Likewise.
2733 (xml_fetch_content_from_file): Likewise.
2734 * xml-syscall.c (xml_list_of_syscalls): Likewise.
2735 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2737 2015-09-23 James Bowman <james.bowman@ftdichip.com>
2739 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
2740 instead of builtin_func_ptr.
2741 (ft32_pointer_to_address): New function.
2742 (ft32_address_class_type_flags): New function.
2743 (ft32_address_class_type_flags_to_name): New function.
2744 (ft32_address_class_name_to_type_flags): New function.
2745 (ft32_gdbarch_init): Set tdep->pc_type. Call
2746 set_gdbarch_pointer_to_address,
2747 set_gdbarch_address_class_type_flags
2748 set_gdbarch_address_class_name_to_type_flags,
2749 and set_gdbarch_address_class_type_flags_to_name.
2750 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
2752 2015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
2754 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
2755 value is a reference, actually dereference it in order to get
2756 the underlying value.
2758 2015-09-22 Simon Marchi <simon.marchi@ericsson.com>
2760 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
2762 2015-09-21 Simon Marchi <simon.marchi@ericsson.com>
2764 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
2765 * linespec.c (linespec_lexer_lex_string): Same.
2767 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2769 * NEWS: Mention support for fast tracepoints on aarch64-linux.
2771 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2773 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
2774 variable. Call aarch64_decode_adr instead of
2775 aarch64_decode_adrp.
2776 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
2777 (aarch64_decode_adr): New function declaration.
2778 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
2779 (aarch64_decode_adr): New function, factored out from
2780 aarch64_decode_adrp to decode both adr and adrp instructions.
2782 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2784 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
2785 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
2786 (aarch64-insn.o): New rule.
2787 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
2788 (aarch64*-*-linux*): Likewise.
2789 * arch/aarch64-insn.c: New file.
2790 * arch/aarch64-insn.h: New file.
2791 * aarch64-tdep.c: Include arch/aarch64-insn.h.
2792 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
2793 arch/aarch64-insn.h.
2794 (decode_add_sub_imm): Rename to ...
2795 (aarch64_decode_add_sub_imm): ... this.
2796 (decode_adrp): Rename to ...
2797 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
2798 Declare in arch/aarch64-insn.h.
2799 (decode_b): Rename to ...
2800 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
2801 Declare in arch/aarch64-insn.h.
2802 (decode_bcond): Rename to ...
2803 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
2804 Declare in arch/aarch64-insn.h.
2805 (decode_br): Rename to ...
2806 (aarch64_decode_br): ... this.
2807 (decode_cb): Rename to ...
2808 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
2809 Declare in arch/aarch64-insn.h.
2810 (decode_eret): Rename to ...
2811 (aarch64_decode_eret): ... this.
2812 (decode_movz): Rename to ...
2813 (aarch64_decode_movz): ... this.
2814 (decode_orr_shifted_register_x): Rename to ...
2815 (aarch64_decode_orr_shifted_register_x): ... this.
2816 (decode_ret): Rename to ...
2817 (aarch64_decode_ret): ... this.
2818 (decode_stp_offset): Rename to ...
2819 (aarch64_decode_stp_offset): ... this.
2820 (decode_stp_offset_wb): Rename to ...
2821 (aarch64_decode_stp_offset_wb): ... this.
2822 (decode_stur): Rename to ...
2823 (aarch64_decode_stur): ... this.
2824 (decode_tb): Rename to ...
2825 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
2826 Declare in arch/aarch64-insn.h.
2827 (aarch64_analyze_prologue): Adjust calls to renamed functions.
2829 2015-09-20 Doug Evans <xdje42@gmail.com>
2831 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
2833 2015-09-20 Doug Evans <xdje42@gmail.com>
2835 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
2836 variable name that collides with a parameter.
2838 2015-09-20 Joel Brobecker <brobecker@adacore.com>
2840 * dwarf2loc.c (locexpr_get_frame_base): Renames
2841 block_op_get_frame_base.
2842 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
2843 block_op_get_frame_base by reference to locexpr_get_frame_base.
2844 (loclist_get_frame_base): New function, near identical copy of
2845 locexpr_get_frame_base.
2846 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
2847 block_op_get_frame_base by reference to loclist_get_frame_base.
2849 2015-09-19 Doug Evans <xdje42@gmail.com>
2851 * ravenscar-thread.c (ravenscar_inferior_created): Replace
2852 current_inferior ()->gdbarch with its wrapper target_gdbarch.
2854 2015-09-18 Doug Evans <xdje42@gmail.com>
2856 * linux-thread-db.c (record_thread): Return the created thread.
2857 (thread_from_lwp): Likewise.
2858 (thread_db_get_thread_local_address): Update.
2860 2015-09-18 Doug Evans <xdje42@gmail.com>
2862 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
2863 move only member demangled_name up. All uses updated.
2865 2015-09-18 Doug Evans <xdje42@gmail.com>
2867 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
2868 kind of minimal symbol in the error message.
2869 * objfiles.c (objfile_flavour_name): New function.
2870 * objfiles.h (objfile_flavour_name): Declare.
2872 2015-09-18 Yao Qi <yao.qi@linaro.org>
2874 * nat/aarch64-linux.c: Include elf/common.h,
2875 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
2876 (aarch64_ps_get_thread_area): New function.
2877 * nat/aarch64-linux.h: Include gdb_proc_service.h.
2878 (aarch64_ps_get_thread_area): Declare.
2879 * aarch64-linux-nat.c (ps_get_thread_area): Call
2880 aarch64_ps_get_thread_area.
2882 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2884 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
2886 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2888 * NEWS: Announce new scheduler-locking mode.
2889 * infrun.c (schedlock_replay): New.
2890 (scheduler_enums): Add schedlock_replay.
2891 (scheduler_mode): Change default to schedlock_replay.
2892 (user_visible_resume_ptid): Handle schedlock_replay.
2893 (clear_proceed_status_thread): Stop replaying if resumed thread is
2895 (schedlock_applies): Handle schedlock_replay.
2896 (_initialize_infrun): Document new scheduler-locking mode.
2897 * record-btrace.c (record_btrace_resume): Remove code to stop other
2898 threads when not replaying the resumed thread.
2900 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2902 * record-btrace.c ((record_btrace_will_replay): New.
2903 (init_record_btrace_ops): Initialize to_record_will_replay.
2904 * record-full.c ((record_full_will_replay): New.
2905 (init_record_full_ops): Initialize to_record_will_replay.
2906 * target-delegates.c: Regenerated.
2907 * target.c (target_record_will_replay): New.
2908 * target.h (struct target_ops) <to_record_will_replay>: New.
2909 (target_record_will_replay): New.
2911 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2913 * record-btrace.c (record_btrace_resume): Call
2914 target_record_stop_replaying.
2915 (record_btrace_stop_replaying_all): New.
2916 (init_record_btrace_ops): Initialize to_record_stop_replaying.
2917 * record-full.c (record_full_stop_replaying): New.
2918 (init_record_full_ops ): Initialize to_record_stop_replaying.
2919 * target-delegates.c: Regenerated.
2920 * target.c (target_record_stop_replaying): New.
2921 * target.h (struct target_ops) <to_record_stop_replaying>: New.
2922 (target_record_stop_replaying): New.
2924 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2926 * record-btrace.c (record_btrace_xfer_partial)
2927 (record_btrace_store_registers, record_btrace_prepare_to_store):
2928 Call record_btrace_is_replaying with inferior_ptid instead of
2930 (record_btrace_store_registers): Change error message.
2932 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2934 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2935 Update users to pass minus_one_ptid.
2936 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2937 * record.c (cmd_record_delete): Pass inferior_ptid to
2938 target_record_is_replaying.
2939 * target-delegates.c: Regenerated.
2940 * target.c (target_record_is_replaying): Add ptid argument.
2941 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2943 (target_record_is_replaying): Add ptid argument.
2945 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2947 * record-btrace.c (record_btrace_open): Remove non_stop check.
2948 * NEWS: Announce that record btrace supports non-stop mode.
2950 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2952 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2953 in the TARKET_WAITKIND_NO_HISTORY case.
2955 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2957 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2958 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2960 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2962 * record-btrace.c (get_thread_current_frame): New.
2963 (record_btrace_start_replaying): Call get_thread_current_frame.
2965 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2967 * record-btrace.c (record_btrace_resume_thread): A move request
2968 overwrites a previous move request.
2969 (record_btrace_find_resume_thread): Removed.
2970 (record_btrace_resume): Resume all requested threads.
2972 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2974 * record-btrace.c: Include vec.h.
2975 (record_btrace_find_thread_to_move): Removed.
2976 (btrace_step_no_resumed, btrace_step_again)
2977 (record_btrace_stop_replaying_at_end): New.
2978 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2979 (record_btrace_single_step_forward): Remove calls to
2980 record_btrace_stop_replaying.
2981 (record_btrace_step_thread): Do only one step for BTHR_CONT and
2982 BTHR_RCONT. Keep threads at the end of their history moving.
2983 (record_btrace_wait): Call record_btrace_step_thread for all threads
2984 until one reports an event. Call record_btrace_stop_replaying_at_end
2985 for the eventing thread.
2987 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2989 * record-btrace.c (record_btrace_single_step_forward): Return
2990 NO_HISTORY if a step brings us to the end of the execution history.
2992 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2994 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2996 (record_btrace_single_step_forward): ... here and
2997 (record_btrace_single_step_backward): ... here.
2999 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3001 * record-btrace.c (btrace_step_spurious)
3002 (record_btrace_single_step_forward)
3003 (record_btrace_single_step_backward): New.
3004 (record_btrace_step_thread): Call record_btrace_single_step_forward
3005 and record_btrace_single_step_backward.
3007 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3009 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
3010 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
3012 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3014 * record-btrace.c (btrace_thread_flag_to_str)
3015 (record_btrace_cancel_resume): New.
3016 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
3017 (record_btrace_resume): Print execution direction.
3018 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
3019 (record_btrace_wait): Call record_btrace_cancel_resume.
3021 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3023 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
3024 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
3025 (record_btrace_find_thread_to_move): Also accept threads that have
3027 (btrace_step_stopped_on_request, record_btrace_stop): New.
3028 (record_btrace_step_thread): Support BTHR_STOP.
3029 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
3030 (init_record_btrace_ops): Initialize to_stop.
3032 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
3034 * record-btrace.c (record_btrace_wait): Replace non_stop check with
3035 target_is_non_stop_p ().
3037 2015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
3039 * ada-typeprint.c (print_array_type): Do not describe arrays as
3040 packed when they embed dynamic elements.
3042 2015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3044 * symtab.h (address_class): Document that TLS variables
3045 are handled by LOC_UNRESOLVED.
3046 * findvar.c (default_read_var_value): Don't relocate TLS variables.
3047 * printcmd.c (address_info): Don't relocate TLS variables.
3049 2015-09-15 Pierre Langlois <pierre.langlois@arm.com>
3051 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
3052 (decode_adrp): Likewise.
3053 (decode_b): Likewise.
3054 (decode_bcond): Likewise.
3055 (decode_br): Likewise.
3056 (decode_cb): Likewise.
3057 (decode_eret): Likewise.
3058 (decode_movz): Likewise.
3059 (decode_orr_shifted_register_x): Likewise.
3060 (decode_ret): Likewise.
3061 (decode_stp_offset): Likewise.
3062 (decode_stp_offset_wb): Likewise.
3063 (decode_stur): Likewise.
3064 (decode_tb): Likewise.
3065 (aarch64_analyze_prologue): Likewise.
3066 (pass_in_x): Likewise.
3067 (pass_in_v): Likewise.
3068 (pass_on_stack): Likewise.
3069 (aarch64_push_dummy_call): Likewise.
3070 (aarch64_extract_return_value): Likewise.
3071 (aarch64_store_return_value): Likewise.
3072 (aarch64_return_value): Likewise.
3073 (aarch64_record_asimd_load_store): Likewise.
3074 (aarch64_record_load_store): Likewise.
3075 (aarch64_record_data_proc_simd_fp): Likewise.
3077 2015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3079 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
3080 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
3081 (ppc64_skip_trampoline_code_1): ... here.
3082 (ppc64_skip_trampoline_code): New wrapper function.
3083 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
3085 2015-09-15 Yao Qi <yao.qi@linaro.org>
3087 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
3089 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
3090 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
3091 if target_can_do_single_step returns 1.
3092 * remote.c (struct vCont_action_support) <s, S>: New fields.
3093 (PACKET_vContSupported): New enum.
3094 (remote_protocol_features): New element for vContSupported.
3095 (remote_query_supported): Append "vContSupported+".
3096 (remote_vcont_probe): Remove support_s and support_S, use
3097 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
3098 vCont packet if c and C actions are not supported.
3099 (remote_can_do_single_step): New function.
3100 (init_remote_ops): Install it to to_can_do_single_step.
3101 (_initialize_remote): Call add_packet_config_cmd.
3102 * target.h (struct target_ops) <to_can_do_single_step>: New field.
3103 (target_can_do_single_step): New macro.
3104 * target-delegates.c: Re-generated.
3106 2015-09-15 Yao Qi <yao.qi@linaro.org>
3108 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
3109 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
3110 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
3112 (aarch64_siginfo_from_compat_siginfo): New function.
3113 * nat/aarch64-linux.h: Include signal.h.
3114 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
3115 (compat_timer_t, compat_clock_t): Likewise.
3116 (struct compat_timeval): New.
3117 (union compat_sigval): New.
3118 (struct compat_siginfo): New.
3119 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
3120 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
3121 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
3122 (cpt_si_band, cpt_si_fd): Likewise.
3124 2015-09-14 Pedro Alves <palves@redhat.com>
3126 * infrun.c (current_stop_id): New global.
3127 (get_stop_id, new_stop_id): New functions.
3128 (fetch_inferior_event): Handle normal_stop proceeding the target.
3129 (struct stop_context): New.
3130 (save_stop_context, release_stop_context_cleanup)
3131 (stop_context_changed): New functions.
3132 (normal_stop): Return true if the hook-stop changes the stop
3134 * infrun.h (get_stop_id): Declare.
3135 (normal_stop): Now returns int. Add documentation.
3137 2015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
3139 * ada-lang.c (ada_value_ptr_subscript): Update the heading
3140 comment. Handle packed arrays.
3142 2015-09-14 Pedro Alves <palves@redhat.com>
3144 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
3145 mention of maint set/show target-non-stop.
3147 2015-09-11 Don Breazeal <donb@codesourcery.com>
3149 * NEWS: Announce new remote packets for the exec-events
3150 feature and the exec-events feature and associated commands.
3152 2015-09-11 Don Breazeal <donb@codesourcery.com>
3154 * remote.c (remote_exec_event_p): New function.
3155 (remote_insert_exec_catchpoint): New function.
3156 (remote_remove_exec_catchpoint): New function.
3157 (init_extended_remote_ops): Initialize extended_remote_ops
3158 members to_insert_exec_catchpoint and
3159 to_remove_exec_catchpoint.
3161 2015-09-11 Don Breazeal <donb@codesourcery.com>
3162 Luis Machado <lgustavo@codesourcery.com>
3164 * infrun.c (follow_exec): Use process-style ptid for
3165 exec message. Call add_inferior_with_spaces and
3167 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
3168 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
3169 * remote.c (remote_pspace_data): New static variable.
3170 (remote_pspace_data_cleanup): New function.
3171 (get_remote_exec_file): New function.
3172 (set_remote_exec_file_1): New function.
3173 (set_remote_exec_file): New function.
3174 (show_remote_exec_file): New function.
3175 (remote_exec_file): Delete static variable.
3176 (anonymous enum) <PACKET_exec_event_feature>: New
3177 enumeration constant.
3178 (remote_protocol_features): Add entry for exec-events feature.
3179 (remote_query_supported): Add client side of qSupported query
3180 for exec-events feature.
3181 (remote_follow_exec): New function.
3182 (remote_parse_stop_reply): Handle 'exec' stop reason.
3183 (extended_remote_run, extended_remote_create_inferior): Call
3184 get_remote_exec_file and set_remote_exec_file_1.
3185 (init_extended_remote_ops) <to_follow_exec>: Initialize new
3187 (_initialize_remote): Call
3188 register_program_space_data_with_cleanup. Call
3189 add_packet_config_cmd for remote exec-events feature.
3190 Modify call to add_setshow_string_noescape_cmd for exec-file
3191 to use new functions set_remote_exec_file and
3192 show_remote_exec_file.
3193 * target-debug.h, target-delegates.c: Regenerated.
3194 * target.c (target_follow_exec): New function.
3195 * target.h (struct target_ops) <to_follow_exec>: New member.
3196 (target_follow_exec): Declare new function.
3198 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
3200 * aarch64-tdep.c (decode_cb): Move up comment describing the
3202 (decode_tb): Fix a typo in comment above the function. Move up
3203 comment describing the encoding.
3205 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
3207 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
3209 2015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
3212 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
3213 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
3215 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
3217 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
3220 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
3222 * ada-lang.c (ada_search_struct_field): Constify parameters
3224 (xget_renaming_scope): Likewise.
3225 (ada_is_redundant_range_encoding): Likewise.
3226 (scan_discrim_bound): Likewise.
3227 (to_fixed_range_type): Likewise.
3229 2015-09-10 Yao Qi <yao.qi@linaro.org>
3231 * breakpoint.c (download_tracepoint_locations): New local
3232 can_download_tracepoint. Check the result of
3233 target_can_download_tracepoint and save it in
3234 can_download_tracepoint if there are tracepoints to download.
3235 * linux-nat.h (enum tribool): Move it to ...
3236 * common/common-types.h: ... here.
3238 2015-09-09 Pedro Alves <palves@redhat.com>
3240 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
3241 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
3243 2015-09-09 Pedro Alves <palves@redhat.com>
3245 * continuations.c (add_continuation, restore_thread_cleanup)
3246 (do_all_continuations_ptid, do_all_continuations_thread_callback)
3247 (do_all_continuations_thread, do_all_continuations)
3248 (discard_all_continuations_thread_callback)
3249 (discard_all_continuations_thread, discard_all_continuations)
3250 (add_intermediate_continuation)
3251 (do_all_intermediate_continuations_thread_callback)
3252 (do_all_intermediate_continuations_thread)
3253 (do_all_intermediate_continuations)
3254 (discard_all_intermediate_continuations_thread_callback)
3255 (discard_all_intermediate_continuations_thread)
3256 (discard_all_intermediate_continuations): Delete.
3257 * continuations.h (add_continuation, do_all_continuations)
3258 (do_all_continuations_thread, discard_all_continuations)
3259 (discard_all_continuations_thread, add_intermediate_continuation)
3260 (do_all_intermediate_continuations)
3261 (do_all_intermediate_continuations_thread)
3262 (discard_all_intermediate_continuations)
3263 (discard_all_intermediate_continuations_thread): Delete
3265 * event-top.c (stdin_event_handler): Delete references to
3267 * gdbthread.h (struct thread_info): Delete continuations and
3268 intermediate_continuations fields.
3269 * inf-loop.c (inferior_event_handler): Remove references to
3271 * infrun.c (infrun_thread_stop_requested_callback): Remove
3272 references to continuations.
3273 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
3274 * thread.c: Don't include "continuations.h".
3275 (clear_thread_inferior_resources): Remove references to
3278 2015-09-09 Pedro Alves <palves@redhat.com>
3280 * infcall.c (struct dummy_frame_context_saver): Delete.
3281 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
3282 (dummy_frame_context_saver_drop)
3283 (dummy_frame_context_saver_cleanup)
3284 (dummy_frame_context_saver_get_regs)
3285 (dummy_frame_context_saver_setup): Delete.
3286 * infcall.h (dummy_frame_context_saver_drop)
3287 (dummy_frame_context_saver_cleanup)
3288 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
3290 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
3291 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
3292 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
3294 2015-09-09 Pedro Alves <palves@redhat.com>
3296 * breakpoint.c: Include "thread-fsm.h".
3297 (struct until_break_command_continuation_args): Delete.
3298 (struct until_break_fsm): New.
3299 (until_break_fsm_ops): New global.
3300 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
3301 (until_break_command_continuation): Delete.
3302 (until_break_fsm_clean_up): New function.
3303 (until_break_fsm_async_reply_reason): New function.
3304 (until_break_command): Adjust to create an until_break_fsm instead
3306 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
3308 * infcmd.c (struct until_next_fsm): New.
3309 (until_next_fsm_ops): New global.
3310 (new_until_next_fsm, until_next_fsm_should_stop): New function.
3311 (until_next_continuation): Delete.
3312 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
3314 (until_next_command): Adjust to create a new until_next_fsm
3315 instead of a continuation.
3317 2015-09-09 Pedro Alves <palves@redhat.com>
3319 * infcall.c: Include thread_fsm.h.
3320 (struct call_return_meta_info): New.
3321 (get_call_return_value): New function, factored out from
3322 call_function_by_hand_dummy.
3323 (struct call_thread_fsm): New.
3324 (call_thread_fsm_ops): New global.
3325 (new_call_thread_fsm, call_thread_fsm_should_stop)
3326 (call_thread_fsm_should_notify_stop): New functions.
3327 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
3329 (call_function_by_hand_dummy): Create a new call_thread_fsm
3330 instance, associate it with the thread, and wait for the FSM to
3331 finish. If finished successfully, fetch the function's result
3332 value out of the FSM.
3333 * infrun.c (fetch_inferior_event): If the FSM says the stop
3334 shouldn't be notified, don't call normal_stop.
3335 (maybe_remove_breakpoints): New function, factored out from ...
3336 (normal_stop): ... here. Simplify.
3337 * infrun.h (maybe_remove_breakpoints): Declare.
3338 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
3339 (thread-fsm.h) <struct thread_fsm_ops>: New field.
3340 (thread_fsm_should_notify_stop): Declare.
3342 2015-09-09 Pedro Alves <palves@redhat.com>
3344 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
3345 * breakpoint.c (handle_jit_event): Print debug output.
3346 (bpstat_what): Split event callback handling to ...
3347 (bpstat_run_callbacks): ... this new function.
3348 (momentary_bkpt_print_it): No longer handle bp_finish here.
3349 * breakpoint.h (bpstat_run_callbacks): Declare.
3350 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
3351 <thread_fsm>: New field.
3352 (thread_cancel_execution_command): Declare.
3353 * infcmd.c: Include thread-fsm.h.
3354 (struct step_command_fsm): New.
3355 (step_command_fsm_ops): New global.
3356 (new_step_command_fsm, step_command_fsm_prepare): New functions.
3357 (step_1): Adjust to use step_command_fsm_prepare and
3359 (struct step_1_continuation_args): Delete.
3360 (step_1_continuation): Delete.
3361 (step_command_fsm_should_stop): New function.
3362 (step_once): Delete.
3363 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
3364 (prepare_one_step): New function, based on step_once.
3365 (until_next_command): Remove step_multi reference.
3366 (struct return_value_info): New.
3367 (print_return_value): Rename to ...
3368 (print_return_value_1): ... this. New struct return_value_info
3370 (print_return_value): Reimplement as wrapper around
3371 print_return_value_1.
3372 (struct finish_command_fsm): New.
3373 (finish_command_continuation): Delete.
3374 (finish_command_fsm_ops): New global.
3375 (new_finish_command_fsm, finish_command_fsm_should_stop): New
3377 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
3379 (finish_command_continuation_free_arg): Delete.
3380 (finish_command_fsm_async_reply_reason): New.
3381 (finish_backward, finish_forward): Change symbol parameter to a
3382 finish_command_fsm. Adjust.
3383 (finish_command): Create a finish_command_fsm. Adjust.
3384 * infrun.c: Include "thread-fsm.h".
3385 (clear_proceed_status_thread): Delete the thread's FSM.
3386 (infrun_thread_stop_requested_callback): Cancel the thread's
3388 (clean_up_just_stopped_threads_fsms): New function.
3389 (fetch_inferior_event): Handle the event_thread's should_stop
3390 method saying the command isn't done yet.
3391 (process_event_stop_test): Run breakpoint callbacks here.
3392 (print_stop_event): Rename to ...
3393 (print_stop_location): ... this.
3394 (restore_current_uiout_cleanup): New function.
3395 (print_stop_event): Reimplement.
3396 (normal_stop): No longer notify the end_stepping_range observers
3397 here handle "step N" nor "finish" here. No longer call
3398 print_stop_event here.
3399 * infrun.h (struct return_value_info): Forward declare.
3400 (print_return_value): Declare.
3401 (print_stop_event): Change prototype.
3402 * thread-fsm.c: New file.
3403 * thread-fsm.h: New file.
3404 * thread.c: Include "thread-fsm.h".
3405 (thread_cancel_execution_command): New function.
3406 (clear_thread_inferior_resources): Call it.
3407 * cli/cli-interp.c (cli_on_normal_stop): New function.
3408 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
3410 * mi/mi-interp.c: Include "thread-fsm.h".
3411 (restore_current_uiout_cleanup): Delete.
3412 (mi_on_normal_stop): If the thread has an FSM associated, and it
3413 finished, ask it for the async-reply-reason to print. Always call
3414 print_stop_event here, regardless of the top-level interpreter.
3415 Check bpstat_what to tell whether an asynchronous breakpoint hit
3417 * tui/tui-interp.c (tui_on_normal_stop): New function.
3418 (tui_init): Install tui_on_normal_stop as normal_stop observer.
3420 2015-09-09 Pedro Alves <palves@redhat.com>
3422 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
3423 check whether the target can async.
3424 * inf-loop.c (inferior_event_handler): Only call target_async if
3425 the target can async.
3426 * infcall.c: Include top.h and interps.h.
3427 (run_inferior_call): For the interpreter to sync mode while
3428 running the infcall. Call wait_sync_command_done instead of
3429 wait_for_inferior plus normal_stop.
3430 * infcmd.c (prepare_execution_command): Don't check whether the
3431 target can async when running in the foreground.
3432 (step_1): Delete synchronous case handling.
3433 (step_once): Always install a continuation, even in sync mode.
3434 (until_next_command, finish_forward): Don't check whether the
3436 (attach_command_post_wait, notice_new_inferior): Always install a
3437 continuation, even in sync mode.
3438 * infrun.c (mark_infrun_async_event_handler): New function.
3439 (proceed): In sync mode, mark infrun's event source instead of
3440 waiting for events here.
3441 (fetch_inferior_event): If the target can't async, do a blocking
3443 (prepare_to_wait): In sync mode, mark infrun's event source.
3444 (infrun_async_inferior_event_handler): No longer bail out if the
3446 * infrun.h (mark_infrun_async_event_handler): New declaration.
3447 * linux-nat.c (linux_nat_wait_1): Remove calls to
3448 set_sigint_trap/clear_sigint_trap.
3449 (linux_nat_terminal_inferior): No longer check whether the target
3451 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
3453 (mi_execute_command_input_handler): No longer check whether the
3454 target is async. Update and simplify comment.
3455 * target.c (default_target_wait): New function.
3456 * target.h (struct target_ops) <to_wait>: Now defaults to
3457 default_target_wait.
3458 (default_target_wait): Declare.
3459 * top.c (wait_sync_command_done): New function, factored out from
3461 (maybe_wait_sync_command_done): ... this.
3462 * top.h (wait_sync_command_done): Declare.
3463 * target-delegates.c: Regenerate.
3465 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
3467 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
3468 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
3469 Remove include of sys/utsname.h.
3470 (linux_determine_kernel_ptr_bits): Remove.
3471 (linux_determine_kernel_start): New.
3472 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
3474 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
3475 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
3477 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
3480 2015-09-07 Pedro Alves <palves@redhat.com>
3482 * guile/guile-internal.h (as_a_scm_t_subr): New.
3483 * guile/guile.c (misc_guile_functions): Use it.
3484 * guile/scm-arch.c (arch_functions): Use it.
3485 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
3487 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
3488 * guile/scm-cmd.c (command_functions): Use it.
3489 * guile/scm-disasm.c (disasm_functions): Use it.
3490 * guile/scm-exception.c (exception_functions)
3491 (private_exception_functions): Use it.
3492 * guile/scm-frame.c (frame_functions)
3493 * guile/scm-gsmob.c (gsmob_functions): Use it.
3494 * guile/scm-iterator.c (iterator_functions): Use it.
3495 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
3496 * guile/scm-math.c (math_functions): Use it.
3497 * guile/scm-objfile.c (objfile_functions): Use it.
3498 * guile/scm-param.c (parameter_functions): Use it.
3499 * guile/scm-ports.c (port_functions, private_port_functions): Use
3501 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
3502 * guile/scm-progspace.c (pspace_functions): Use it.
3503 * guile/scm-string.c (string_functions): Use it.
3504 * guile/scm-symbol.c (symbol_functions): Use it.
3505 * guile/scm-symtab.c (symtab_functions): Use it.
3506 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
3508 * guile/scm-value.c (value_functions): Use it.
3510 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3512 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
3513 (tui_next_win): Likewise.
3514 (tui_prev_win): Likewise.
3515 (tui_partial_win_by_name): Likewise.
3516 (tui_init_generic_part): Likewise.
3517 (init_content_element): Likewise.
3518 (tui_del_window): Likewise.
3519 (tui_free_window): Likewise.
3520 (tui_del_data_windows): Likewise.
3521 (tui_free_data_content): Likewise.
3522 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
3523 * tui/tui-regs.c (tui_show_register_group): Likewise.
3524 * tui/tui-win.c (tui_resize_all): Likewise.
3525 (tui_set_focus): Likewise.
3526 (tui_set_win_height): Likewise.
3527 (make_invisible_and_set_new_height): Likewise.
3528 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
3529 * tui/tui-wingeneral.c (make_visible): Likewise.
3531 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3533 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
3535 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3537 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
3539 * dbxread.c (dbx_end_psymtab): Likewise.
3540 * gnu-nat.c (gnu_write_inferior): Likewise.
3541 * mdebugread.c (cross_ref): Likewise.
3542 * p-valprint.c (pascal_val_print): Likewise.
3543 * xcoffread.c (xcoff_end_psymtab): Likewise.
3545 2015-09-04 Yao Qi <yao.qi@linaro.org>
3547 * NEWS: Mention the aarch64 multi-arch debugging support.
3549 2015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
3551 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
3552 type instead of a TYPE_CODE_INT one for the string_char_type
3553 and the ada_primitive_type_char types.
3555 2015-09-03 Yao Qi <yao.qi@linaro.org>
3557 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
3558 Move code to aarch64_linux_region_ok_for_watchpoint. Call
3559 aarch64_linux_region_ok_for_watchpoint.
3560 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
3562 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
3565 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
3567 * gdb_obstack.h (obstack_strdup): Declare.
3568 * gdb_obstack.c (obstack_strdup): Define.
3569 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
3570 * gdbarch.c: Regenerate.
3571 * gdbarch.h: Regenerate.
3572 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
3574 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
3576 * gdbtypes.c (copy_type_recursive): Update documentation.
3578 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3580 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
3583 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3585 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
3587 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3589 * solib-svr4.c (solib_event_probe_action): Call
3590 get_probe_argument_count using TRY...CATCH.
3591 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
3593 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3595 * probe.h (struct probe_ops) <get_probe_argument_count,
3596 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
3597 the comment that the function can throw an exception.
3598 (get_probe_argument_count): Likewise.
3599 (evaluate_probe_argument): Likewise.
3600 * stap-probe.c (stap_get_opcode): Call error instead of
3602 (stap_get_expected_argument_type): Likewise. Add argument
3603 'probe'. Improve error message by mentioning the probe's name.
3604 (stap_parse_probe_arguments): Adjust call to
3605 stap_get_expected_argument_type.
3606 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
3607 not zero. Call internal_error if GDB requests an argument but the
3608 probe has no arguments.
3610 2015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
3612 * ada-lang.c (ada_resolve_function): Do not ask the user what
3613 match to use when in completion mode.
3615 2015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
3617 * tui/tui-data.c (tui_win_name): Make local variable const, remove
3620 2015-08-31 Max Filippov <jcmvbkbc@gmail.com>
3622 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
3623 call_abi using XSHAL_ABI macro.
3625 2015-08-29 Doug Evans <xdje42@gmail.com>
3627 * symtab.h (struct symbol): Tweak comment.
3629 2015-08-29 Patrick Palka <patrick@parcs.ath.cx>
3631 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
3632 gdbarch obstack instead of on the heap. Update commentary
3635 2015-08-28 Joel Brobecker <brobecker@adacore.com>
3639 2015-08-28 Simon Marchi <simon.marchi@ericsson.com>
3641 * NEWS: Update entry about non-8-bits addressable memory.
3643 2015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
3646 2014-11-06 Doug Evans <xdje42@gmail.com>
3647 * solib.c (solib_global_lookup): Fetch arch from objfile,
3650 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3652 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
3653 attempt to relocate a TLS variable offset.
3655 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3657 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
3658 registered yet. Set inferior_ptid while calling target_read_memory.
3660 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3662 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
3663 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
3664 * linux-nat.c (check_stopped_by_breakpoint): Use
3665 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
3667 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3669 * linux-thread-db.c (thread_db_get_thread_local_address): If the
3670 thread was not yet discovered, use thread_from_lwp instead of
3671 calling thread_db_find_new_threads_1.
3673 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3675 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
3678 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3680 * NEWS: Document support for non-8-bits addressable memory.
3682 2015-08-27 Pedro Alves <palves@redhat.com>
3684 * configure.ac: Remove AC_TYPE_SIGNAL call.
3685 * configure, config.in: Regenerate.
3687 2015-08-27 Pedro Alves <palves@redhat.com>
3689 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
3690 * extension-priv.h: Include signal.h.
3691 (struct signal_handler) <handler>: Change type to sighandler_t.
3692 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
3693 * inflow.c (sigint_ours, sigquit_ours): Change type to
3695 (child_terminal_inferior): Remove casts.
3696 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
3697 (osig): Change type to sighandler_t.
3698 * nto-procfs.c (ofunc): Change type to sighandler_t.
3699 (procfs_wait): Remove casts.
3700 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
3701 * remote-sim.c (gdbsim_wait): Use sighandler_t.
3702 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
3704 2015-08-27 Pedro Alves <palves@redhat.com>
3706 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
3707 * gnulib/aclocal.m4: Renegerate.
3708 * gnulib/config.in: Renegerate.
3709 * gnulib/configure: Renegerate.
3710 * gnulib/import/Makefile.am: Update.
3711 * gnulib/import/Makefile.in: Regenerate.
3712 * gnulib/import/m4/gnulib-cache.m4: Update.
3713 * gnulib/import/m4/gnulib-comp.m4: Update.
3714 * gnulib/import/m4/signal_h.m4: New file.
3715 * gnulib/import/signal.in.h: New file.
3717 2015-08-27 Pedro Alves <palves@redhat.com>
3719 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
3720 (MIN_MEMORY_PACKET_SIZE): New.
3721 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
3722 (get_memory_packet_size): Adjust. No longer limit the max packet
3724 (set_memory_packet_size): Adjust, and remove dead code.
3725 (remote_check_symbols): Use xmalloc and a cleanup instead of
3727 (remote_packet_size): No longer cap the packet size.
3728 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
3730 2015-08-26 Luis Machado <lgustavo@codesourcery.com>
3732 * compile/compile.c (compile_to_object): Mention language in
3735 2015-08-26 Patrick Palka <patrick@parcs.ath.cx>
3737 * target.c (target_pre_inferior): Unset attach_flag.
3739 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3741 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
3742 * gdbarch.c: Re-generate.
3744 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3746 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
3747 function with the XNEW-family equivalent.
3748 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
3749 * ada-exp.y (write_ambiguous_var): Likewise.
3750 * ada-lang.c (resolve_subexp): Likewise.
3751 (user_select_syms): Likewise.
3752 (assign_aggregate): Likewise.
3753 (ada_evaluate_subexp): Likewise.
3754 (cache_symbol): Likewise.
3755 * addrmap.c (allocate_key): Likewise.
3756 (addrmap_create_mutable): Likewise.
3757 * aix-thread.c (sync_threadlists): Likewise.
3758 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
3759 (alpha_gdbarch_init): Likewise.
3760 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
3761 * arm-linux-nat.c (arm_linux_add_process): Likewise.
3762 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3763 * arm-tdep.c (push_stack_item): Likewise.
3764 (arm_displaced_step_copy_insn): Likewise.
3765 (arm_gdbarch_init): Likewise.
3766 (_initialize_arm_tdep): Likewise.
3767 * avr-tdep.c (push_stack_item): Likewise.
3768 * ax-general.c (new_agent_expr): Likewise.
3769 * block.c (block_initialize_namespace): Likewise.
3770 * breakpoint.c (alloc_counted_command_line): Likewise.
3771 (update_dprintf_command_list): Likewise.
3772 (parse_breakpoint_sals): Likewise.
3773 (decode_static_tracepoint_spec): Likewise.
3774 (until_break_command): Likewise.
3775 (clear_command): Likewise.
3776 (update_global_location_list): Likewise.
3777 (get_breakpoint_objfile_data) Likewise.
3778 * btrace.c (ftrace_new_function): Likewise.
3779 (btrace_set_insn_history): Likewise.
3780 (btrace_set_call_history): Likewise.
3781 * buildsym.c (add_symbol_to_list): Likewise.
3782 (record_pending_block): Likewise.
3783 (start_subfile): Likewise.
3784 (start_buildsym_compunit): Likewise.
3785 (push_subfile): Likewise.
3786 (end_symtab_get_static_block): Likewise.
3787 (buildsym_init): Likewise.
3788 * cli/cli-cmds.c (source_command): Likewise.
3789 * cli/cli-decode.c (add_cmd): Likewise.
3790 * cli/cli-script.c (build_command_line): Likewise.
3791 (setup_user_args): Likewise.
3792 (realloc_body_list): Likewise.
3793 (process_next_line): Likewise.
3794 (copy_command_lines): Likewise.
3795 * cli/cli-setshow.c (do_set_command): Likewise.
3796 * coff-pe-read.c (read_pe_exported_syms): Likewise.
3797 * coffread.c (coff_locate_sections): Likewise.
3798 (coff_symtab_read): Likewise.
3799 (coff_read_struct_type): Likewise.
3800 * common/cleanups.c (make_my_cleanup2): Likewise.
3801 * common/common-exceptions.c (throw_it): Likewise.
3802 * common/filestuff.c (make_cleanup_close): Likewise.
3803 * common/format.c (parse_format_string): Likewise.
3804 * common/queue.h (DEFINE_QUEUE_P): Likewise.
3805 * compile/compile-object-load.c (munmap_list_add): Likewise.
3806 (compile_object_load): Likewise.
3807 * compile/compile-object-run.c (compile_object_run): Likewise.
3808 * compile/compile.c (append_args): Likewise.
3809 * corefile.c (specify_exec_file_hook): Likewise.
3810 * cp-support.c (make_symbol_overload_list): Likewise.
3811 * cris-tdep.c (push_stack_item): Likewise.
3812 (cris_gdbarch_init): Likewise.
3813 * ctf.c (ctf_trace_file_writer_new): Likewise.
3814 * dbxread.c (init_header_files): Likewise.
3815 (add_new_header_file): Likewise.
3816 (init_bincl_list): Likewise.
3817 (dbx_end_psymtab): Likewise.
3818 (start_psymtab): Likewise.
3819 (dbx_end_psymtab): Likewise.
3820 * dcache.c (dcache_init): Likewise.
3821 * dictionary.c (dict_create_hashed): Likewise.
3822 (dict_create_hashed_expandable): Likewise.
3823 (dict_create_linear): Likewise.
3824 (dict_create_linear_expandable): Likewise.
3825 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
3826 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
3827 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
3828 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3829 (decode_frame_entry_1): Likewise.
3830 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
3831 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
3832 * dwarf2read.c (dwarf2_has_info): Likewise.
3833 (create_signatured_type_table_from_index): Likewise.
3834 (dwarf2_read_index): Likewise.
3835 (dw2_get_file_names_reader): Likewise.
3836 (create_all_type_units): Likewise.
3837 (read_cutu_die_from_dwo): Likewise.
3838 (init_tu_and_read_dwo_dies): Likewise.
3839 (init_cutu_and_read_dies): Likewise.
3840 (create_all_comp_units): Likewise.
3841 (queue_comp_unit): Likewise.
3842 (inherit_abstract_dies): Likewise.
3843 (read_call_site_scope): Likewise.
3844 (dwarf2_add_field): Likewise.
3845 (dwarf2_add_typedef): Likewise.
3846 (dwarf2_add_member_fn): Likewise.
3847 (attr_to_dynamic_prop): Likewise.
3848 (abbrev_table_alloc_abbrev): Likewise.
3849 (abbrev_table_read_table): Likewise.
3850 (add_include_dir): Likewise.
3851 (add_file_name): Likewise.
3852 (dwarf_decode_line_header): Likewise.
3853 (dwarf2_const_value_attr): Likewise.
3854 (dwarf_alloc_block): Likewise.
3855 (parse_macro_definition): Likewise.
3856 (set_die_type): Likewise.
3857 (write_psymtabs_to_index): Likewise.
3858 (create_cus_from_index): Likewise.
3859 (dwarf2_create_include_psymtab): Likewise.
3860 (process_psymtab_comp_unit_reader): Likewise.
3861 (build_type_psymtab_dependencies): Likewise.
3862 (read_comp_units_from_section): Likewise.
3863 (compute_compunit_symtab_includes): Likewise.
3864 (create_dwo_unit_in_dwp_v1): Likewise.
3865 (create_dwo_unit_in_dwp_v2): Likewise.
3866 (read_func_scope): Likewise.
3867 (process_structure_scope): Likewise.
3868 (mark_common_block_symbol_computed): Likewise.
3869 (load_partial_dies): Likewise.
3870 (dwarf2_symbol_mark_computed): Likewise.
3871 * elfread.c (elf_symfile_segments): Likewise.
3872 (elf_read_minimal_symbols): Likewise.
3873 * environ.c (make_environ): Likewise.
3874 * eval.c (evaluate_subexp_standard): Likewise.
3875 * event-loop.c (create_file_handler): Likewise.
3876 (create_async_signal_handler): Likewise.
3877 (create_async_event_handler): Likewise.
3878 (create_timer): Likewise.
3879 * exec.c (build_section_table): Likewise.
3880 * fbsd-nat.c (fbsd_remember_child): Likewise.
3881 * fork-child.c (fork_inferior): Likewise.
3882 * frv-tdep.c (new_variant): Likewise.
3883 * gdbarch.sh (gdbarch_alloc): Likewise.
3884 (append_name): Likewise.
3885 * gdbtypes.c (rank_function): Likewise.
3886 (copy_type_recursive): Likewise.
3887 (add_dyn_prop): Likewise.
3888 * gnu-nat.c (make_proc): Likewise.
3889 (make_inf): Likewise.
3890 (gnu_write_inferior): Likewise.
3891 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3892 (build_std_type_info_type): Likewise.
3893 * guile/scm-param.c (compute_enum_list): Likewise.
3894 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
3895 * guile/scm-value.c (gdbscm_value_call): Likewise.
3896 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3897 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3898 (read_unwind_info): Likewise.
3899 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3900 * infcall.c (dummy_frame_context_saver_setup): Likewise.
3901 (call_function_by_hand_dummy): Likewise.
3902 * infcmd.c (step_once): Likewise.
3903 (finish_forward): Likewise.
3904 (attach_command): Likewise.
3905 (notice_new_inferior): Likewise.
3906 * inferior.c (add_inferior_silent): Likewise.
3907 * infrun.c (add_displaced_stepping_state): Likewise.
3908 (save_infcall_control_state): Likewise.
3909 (save_inferior_ptid): Likewise.
3910 (_initialize_infrun): Likewise.
3911 * jit.c (bfd_open_from_target_memory): Likewise.
3912 (jit_gdbarch_data_init): Likewise.
3913 * language.c (add_language): Likewise.
3914 * linespec.c (decode_line_2): Likewise.
3915 * linux-nat.c (add_to_pid_list): Likewise.
3916 (add_initial_lwp): Likewise.
3917 * linux-thread-db.c (add_thread_db_info): Likewise.
3918 (record_thread): Likewise.
3919 (info_auto_load_libthread_db): Likewise.
3920 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
3921 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3922 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3923 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
3924 * macrocmd.c (macro_define_command): Likewise.
3925 * macroexp.c (gather_arguments): Likewise.
3926 * macroscope.c (sal_macro_scope): Likewise.
3927 * macrotab.c (new_macro_table): Likewise.
3928 * mdebugread.c (push_parse_stack): Likewise.
3929 (parse_partial_symbols): Likewise.
3930 (parse_symbol): Likewise.
3931 (psymtab_to_symtab_1): Likewise.
3932 (new_block): Likewise.
3933 (new_psymtab): Likewise.
3934 (mdebug_build_psymtabs): Likewise.
3935 (add_pending): Likewise.
3936 (elfmdebug_build_psymtabs): Likewise.
3937 * mep-tdep.c (mep_gdbarch_init): Likewise.
3938 * mi/mi-main.c (mi_execute_command): Likewise.
3939 * mi/mi-parse.c (mi_parse_argv): Likewise.
3940 * minidebug.c (lzma_open): Likewise.
3941 * minsyms.c (terminate_minimal_symbol_table): Likewise.
3942 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3943 * mips-tdep.c (mips_gdbarch_init): Likewise.
3944 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3945 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3946 * mt-tdep.c (mt_registers_info): Likewise.
3947 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3948 * nat/linux-btrace.c (linux_enable_bts): Likewise.
3949 (linux_enable_pt): Likewise.
3950 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3951 (linux_xfer_osdata_processgroups): Likewise.
3952 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3953 * nto-procfs.c (procfs_meminfo): Likewise.
3954 * objc-lang.c (start_msglist): Likewise.
3955 (selectors_info): Likewise.
3956 (classes_info): Likewise.
3957 (find_methods): Likewise.
3958 * objfiles.c (allocate_objfile): Likewise.
3959 (update_section_map): Likewise.
3960 * osabi.c (gdbarch_register_osabi): Likewise.
3961 (gdbarch_register_osabi_sniffer): Likewise.
3962 * parse.c (start_arglist): Likewise.
3963 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3964 (hwdebug_insert_point): Likewise.
3965 * printcmd.c (display_command): Likewise.
3966 (ui_printf): Likewise.
3967 * procfs.c (create_procinfo): Likewise.
3968 (load_syscalls): Likewise.
3969 (proc_get_LDT_entry): Likewise.
3970 (proc_update_threads): Likewise.
3971 * prologue-value.c (make_pv_area): Likewise.
3972 (pv_area_store): Likewise.
3973 * psymtab.c (extend_psymbol_list): Likewise.
3974 (init_psymbol_list): Likewise.
3975 (allocate_psymtab): Likewise.
3976 * python/py-inferior.c (add_thread_object): Likewise.
3977 * python/py-param.c (compute_enum_values): Likewise.
3978 * python/py-value.c (valpy_call): Likewise.
3979 * python/py-varobj.c (py_varobj_iter_next): Likewise.
3980 * python/python.c (ensure_python_env): Likewise.
3981 * record-btrace.c (record_btrace_start_replaying): Likewise.
3982 * record-full.c (record_full_reg_alloc): Likewise.
3983 (record_full_mem_alloc): Likewise.
3984 (record_full_end_alloc): Likewise.
3985 (record_full_core_xfer_partial): Likewise.
3986 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3987 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3988 * remote-notif.c (remote_notif_state_allocate): Likewise.
3989 * remote.c (demand_private_info): Likewise.
3990 (remote_notif_stop_alloc_reply): Likewise.
3991 (remote_enable_btrace): Likewise.
3992 * reverse.c (save_bookmark_command): Likewise.
3993 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3994 * rx-tdep.c (rx_gdbarch_init): Likewise.
3995 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3996 * ser-go32.c (dos_get_tty_state): Likewise.
3997 (dos_copy_tty_state): Likewise.
3998 * ser-mingw.c (ser_windows_open): Likewise.
3999 (ser_console_wait_handle): Likewise.
4000 (ser_console_get_tty_state): Likewise.
4001 (make_pipe_state): Likewise.
4002 (net_windows_open): Likewise.
4003 * ser-unix.c (hardwire_get_tty_state): Likewise.
4004 (hardwire_copy_tty_state): Likewise.
4005 * solib-aix.c (solib_aix_new_lm_info): Likewise.
4006 * solib-dsbt.c (dsbt_current_sos): Likewise.
4007 (dsbt_relocate_main_executable): Likewise.
4008 * solib-frv.c (frv_current_sos): Likewise.
4009 (frv_relocate_main_executable): Likewise.
4010 * solib-spu.c (spu_bfd_fopen): Likewise.
4011 * solib-svr4.c (lm_info_read): Likewise.
4012 (svr4_copy_library_list): Likewise.
4013 (svr4_default_sos): Likewise.
4014 * source.c (find_source_lines): Likewise.
4015 (line_info): Likewise.
4016 (add_substitute_path_rule): Likewise.
4017 * spu-linux-nat.c (spu_bfd_open): Likewise.
4018 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
4019 * stabsread.c (dbx_lookup_type): Likewise.
4020 (read_type): Likewise.
4021 (read_member_functions): Likewise.
4022 (read_struct_fields): Likewise.
4023 (read_baseclasses): Likewise.
4024 (read_args): Likewise.
4025 (_initialize_stabsread): Likewise.
4026 * stack.c (func_command): Likewise.
4027 * stap-probe.c (handle_stap_probe): Likewise.
4028 * symfile.c (addrs_section_sort): Likewise.
4029 (addr_info_make_relative): Likewise.
4030 (load_section_callback): Likewise.
4031 (add_symbol_file_command): Likewise.
4032 (init_filename_language_table): Likewise.
4033 * symtab.c (create_filename_seen_cache): Likewise.
4034 (sort_search_symbols_remove_dups): Likewise.
4035 (search_symbols): Likewise.
4036 * target.c (make_cleanup_restore_target_terminal): Likewise.
4037 * thread.c (new_thread): Likewise.
4038 (enable_thread_stack_temporaries): Likewise.
4039 (make_cleanup_restore_current_thread): Likewise.
4040 (thread_apply_all_command): Likewise.
4041 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
4042 * top.c (gdb_readline_wrapper): Likewise.
4043 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
4044 * tracepoint.c (trace_find_line_command): Likewise.
4045 (all_tracepoint_actions_and_cleanup): Likewise.
4046 (make_cleanup_restore_current_traceframe): Likewise.
4047 (get_uploaded_tp): Likewise.
4048 (get_uploaded_tsv): Likewise.
4049 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
4050 (tui_alloc_win_info): Likewise.
4051 (tui_alloc_content): Likewise.
4052 (tui_add_content_elements): Likewise.
4053 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
4054 (tui_set_disassem_content): Likewise.
4055 * ui-file.c (ui_file_new): Likewise.
4056 (stdio_file_new): Likewise.
4057 (tee_file_new): Likewise.
4058 * utils.c (make_cleanup_restore_integer): Likewise.
4059 (add_internal_problem_command): Likewise.
4060 * v850-tdep.c (v850_gdbarch_init): Likewise.
4061 * valops.c (find_oload_champ): Likewise.
4062 * value.c (allocate_value_lazy): Likewise.
4063 (record_latest_value): Likewise.
4064 (create_internalvar): Likewise.
4065 * varobj.c (install_variable): Likewise.
4066 (new_variable): Likewise.
4067 (new_root_variable): Likewise.
4069 (_initialize_varobj): Likewise.
4070 * windows-nat.c (windows_make_so): Likewise.
4071 * x86-nat.c (x86_add_process): Likewise.
4072 * xcoffread.c (arrange_linetable): Likewise.
4073 (allocate_include_entry): Likewise.
4074 (process_linenos): Likewise.
4075 (SYMBOL_DUP): Likewise.
4076 (xcoff_start_psymtab): Likewise.
4077 (xcoff_end_psymtab): Likewise.
4078 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
4079 * xtensa-tdep.c (xtensa_register_type): Likewise.
4080 * gdbarch.c: Regenerate.
4081 * gdbarch.h: Regenerate.
4083 2015-08-25 Don Breazeal <donb@codesourcery.com>
4085 * infrun.c (follow_exec): Re-order operations for
4086 handling follow-exec-mode "new".
4087 (handle_inferior_event_1): Assign ecs->event_thread
4088 to the current thread.
4089 * remote.c (get_remote_arch_state): Add an assertion.
4091 2015-08-26 Pedro Alves <palves@redhat.com>
4093 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
4095 2015-08-25 Pedro Alves <palves@redhat.com>
4098 * defs.h (maybe_quit): Declare.
4099 (QUIT): Now calls maybe_quit.
4100 * event-loop.c (clear_async_signal_handler)
4101 (async_signal_handler_is_marked): New functions.
4102 * event-loop.h (async_signal_handler_is_marked)
4103 (clear_async_signal_handler): New declarations.
4104 * remote.c (remote_check_pending_interrupt): New function.
4105 (interrupt_query): Use make_cleanup_restore_target_terminal. No
4106 longer check whether the target is async. If waiting for a stop
4107 reply, and a Ctrl-C as been sent to the target, offer to
4108 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
4109 Otherwise do not disconnect and throw a quit.
4110 (_initialize_remote): Install remote_check_pending_interrupt as
4111 to_check_pending_interrupt.
4112 * target.c (target_check_pending_interrupt): New function.
4113 * target.h (struct target_ops) <to_check_pending_interrupt>: New
4115 (target_check_pending_interrupt): New declaration.
4116 * utils.c (maybe_quit): New function.
4117 * target-delegates.c: Regenerate.
4119 2015-08-25 Yao Qi <yao.qi@linaro.org>
4121 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
4122 Rename local variable pid to tid, and get lwpid of lwp. Update
4125 2015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
4127 * ada-lang.c (ada_read_var_value): Add a var_block argument
4128 and pass it to default_read_var_value.
4129 * block.c (block_static_link): New accessor.
4130 * block.h (block_static_link): Declare it.
4131 * buildsym.c (finish_block_internal): Add a static_link
4132 argument. If there is a static link, associate it to the new
4134 (finish_block): Add a static link argument and pass it to
4135 finish_block_internal.
4136 (end_symtab_get_static_block): Update calls to finish_block and
4137 to finish_block_internal.
4138 (end_symtab_with_blockvector): Update call to
4139 finish_block_internal.
4140 * buildsym.h: Forward-declare struct dynamic_prop.
4141 (struct context_stack): Add a static_link field.
4142 (finish_block): Add a static link argument.
4143 * c-exp.y: Remove an obsolete comment (evaluation of variables
4144 already start from the selected frame, and now they climb *up*
4145 the call stack) and propagate the block information to the
4146 produced expression.
4147 * d-exp.y: Likewise.
4148 * f-exp.y: Likewise.
4149 * go-exp.y: Likewise.
4150 * jv-exp.y: Likewise.
4151 * m2-exp.y: Likewise.
4152 * p-exp.y: Likewise.
4153 * coffread.c (coff_symtab_read): Update calls to finish_block.
4154 * dbxread.c (process_one_symbol): Likewise.
4155 * xcoffread.c (read_xcoff_symtab): Likewise.
4156 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
4157 "sym" parameter to struct block_symbol, update its uses and pass
4158 its block to calls to read_var_value.
4159 (convert_symbol_sym): Update the calls to convert_one_symbol.
4160 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
4161 call to read_var_value.
4162 * dwarf2loc.c (block_op_get_frame_base): New.
4163 (dwarf2_block_frame_base_locexpr_funcs): Implement the
4164 get_frame_base method.
4165 (dwarf2_block_frame_base_loclist_funcs): Likewise.
4166 (dwarf2locexpr_baton_eval): Add a frame argument and use it
4167 instead of the selected frame in order to evaluate the
4169 (dwarf2_evaluate_property): Add a frame argument. Update call
4170 to dwarf2_locexpr_baton_eval to provide a frame in available and
4171 to handle the absence of address stack.
4172 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
4173 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
4175 (read_func_scope): Record any available static link description.
4176 Update call to finish_block.
4177 (read_lexical_block_scope): Update call to finish_block.
4178 * findvar.c (follow_static_link): New.
4179 (get_hosting_frame): New.
4180 (default_read_var_value): Add a var_block argument. Use
4181 get_hosting_frame to handle non-local references.
4182 (read_var_value): Add a var_block argument and pass it to the
4183 LA_READ_VAR_VALUE method.
4184 * gdbtypes.c (resolve_dynamic_range): Update calls to
4185 dwarf2_evaluate_property.
4186 (resolve_dynamic_type_internal): Likewise.
4187 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
4188 read_var_value, passing it the block coming from symbol lookup.
4189 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
4190 read_var_value (TODO).
4191 * infcmd.c (finish_command_continuation): Update call to
4192 read_var_value, passing it the block coming from symbol lookup.
4193 * infrun.c (insert_exception_resume_breakpoint): Likewise.
4194 * language.h (struct language_defn): Add a var_block argument to
4195 the LA_READ_VAR_VALUE method.
4196 * objfiles.c (struct static_link_htab_entry): New.
4197 (static_link_htab_entry_hash): New.
4198 (static_link_htab_entry_eq): New.
4199 (objfile_register_static_link): New.
4200 (objfile_lookup_static_link): New.
4201 (free_objfile): Free the STATIC_LINKS hashed map if needed.
4202 * objfiles.h: Include hashtab.h.
4203 (struct objfile): Add a static_links field.
4204 (objfile_register_static_link): New.
4205 (objfile_lookup_static_link): New.
4206 * printcmd.c (print_variable_and_value): Update call to
4208 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
4209 * python/py-frame.c (frapy_read_var): Update call to
4210 read_var_value, passing it the block coming from symbol lookup.
4211 * python/py-framefilter.c (extract_sym): Add a sym_block
4212 parameter and set the pointed value to NULL (TODO).
4213 (enumerate_args): Update call to extract_sym.
4214 (enumerate_locals): Update calls to extract_sym and to
4216 * python/py-symbol.c (sympy_value): Update call to
4217 read_var_value (TODO).
4218 * stack.c (read_frame_local): Update call to read_var_value.
4219 (read_frame_arg): Likewise.
4220 (return_command): Likewise.
4221 * symtab.h (struct symbol_block_ops): Add a get_frame_base
4223 (struct symbol): Add a block field.
4224 (SYMBOL_BLOCK): New accessor.
4225 * valops.c (value_of_variable): Remove frame/block handling and
4226 pass the block argument to read_var_value, which does this job
4228 (value_struct_elt_for_reference): Update calls to
4230 (value_of_this): Pass the block found to read_var_value.
4231 * value.h (read_var_value): Add a var_block argument.
4232 (default_read_var_value): Likewise.
4234 2015-08-25 Yao Qi <yao.qi@linaro.org>
4236 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
4237 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
4238 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
4240 2015-08-25 Yao Qi <yao.qi@linaro.org>
4242 * Makefile.in (aarch64-liunx.o): New rule.
4243 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
4244 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
4245 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
4246 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
4248 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
4249 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
4250 * nat/aarch64-linux.c: New file.
4251 * nat/aarch64-linux.h: New file.
4253 2015-08-25 Yao Qi <yao.qi@linaro.org>
4255 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
4256 lwp_arch_private_info and ptid_of_lwp.
4258 2015-08-25 Yao Qi <yao.qi@linaro.org>
4260 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
4261 Move it to nat/aarch64-linux-hw-point.c.
4262 (debug_reg_change_callback): Likewise.
4263 (aarch64_notify_debug_reg_change): :Likewise.
4264 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
4265 (aarch64_dr_update_callback_param): New.
4266 (debug_reg_change_callback): New function.
4267 (aarch64_notify_debug_reg_change): Likewise.
4268 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
4269 Remove the declaration.
4271 2015-08-25 Yao Qi <yao.qi@linaro.org>
4273 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
4274 Call current_lwp_ptid.
4276 2015-08-25 Yao Qi <yao.qi@linaro.org>
4278 * aarch64-linux-nat.c (debug_reg_change_callback): Use
4281 2015-08-25 Yao Qi <yao.qi@linaro.org>
4283 * aarch64-linux-nat.c (debug_reg_change_callback): Call
4284 ptid_get_pid rather than ptid_get_lwp.
4286 2015-08-24 Pedro Alves <palves@redhat.com>
4288 * NEWS (New commands): Mention set/show remote
4289 multiprocess-extensions-packet.
4290 * remote.c (remote_query_supported): Only tell the server to use
4291 the multiprocess extensions if the user hasn't force-disabled them
4292 with "set remote multiprocess-extensions-packet off".
4294 2015-08-24 Pedro Alves <palves@redhat.com>
4296 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
4297 1029a8112290f6eee9d7878a391c49db42c999bd.
4298 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
4300 * gnulib/import/Makefile.am: Update.
4301 * gnulib/import/Makefile.in: Update.
4302 * gnulib/import/alloca.in.h: Update.
4303 * gnulib/import/basename-lgpl.c: Update.
4304 * gnulib/import/canonicalize-lgpl.c: Update.
4305 * gnulib/import/config.charset: Update.
4306 * gnulib/import/dirent.in.h: Update.
4307 * gnulib/import/dirfd.c: Update.
4308 * gnulib/import/dirname-lgpl.c: Update.
4309 * gnulib/import/dirname.h: Update.
4310 * gnulib/import/dosname.h: Update.
4311 * gnulib/import/errno.in.h: Update.
4312 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
4313 * gnulib/import/extra/snippet/c++defs.h: Update.
4314 * gnulib/import/extra/snippet/warn-on-use.h: Update.
4315 * gnulib/import/extra/update-copyright: Update.
4316 * gnulib/import/float+.h: Update.
4317 * gnulib/import/float.c: Update.
4318 * gnulib/import/float.in.h: Update.
4319 * gnulib/import/fnmatch.c: Update.
4320 * gnulib/import/fnmatch.in.h: Update.
4321 * gnulib/import/fnmatch_loop.c: Update.
4322 * gnulib/import/fpucw.h: Update.
4323 * gnulib/import/frexp.c: Update.
4324 * gnulib/import/frexpl.c: Update.
4325 * gnulib/import/gettimeofday.c: Update.
4326 * gnulib/import/inttypes.in.h: Update.
4327 * gnulib/import/isnan.c: Update.
4328 * gnulib/import/isnand-nolibm.h: Update.
4329 * gnulib/import/isnand.c: Update.
4330 * gnulib/import/isnanl-nolibm.h: Update.
4331 * gnulib/import/isnanl.c: Update.
4332 * gnulib/import/itold.c: Update.
4333 * gnulib/import/localcharset.c: Update.
4334 * gnulib/import/localcharset.h: Update.
4335 * gnulib/import/lstat.c: Update.
4336 * gnulib/import/m4/00gnulib.m4: Update.
4337 * gnulib/import/m4/absolute-header.m4: Update.
4338 * gnulib/import/m4/alloca.m4: Update.
4339 * gnulib/import/m4/canonicalize.m4: Update.
4340 * gnulib/import/m4/codeset.m4: Update.
4341 * gnulib/import/m4/configmake.m4: Update.
4342 * gnulib/import/m4/dirent_h.m4: Update.
4343 * gnulib/import/m4/dirfd.m4: Update.
4344 * gnulib/import/m4/dirname.m4: Update.
4345 * gnulib/import/m4/double-slash-root.m4: Update.
4346 * gnulib/import/m4/eealloc.m4: Update.
4347 * gnulib/import/m4/errno_h.m4: Update.
4348 * gnulib/import/m4/exponentd.m4: Update.
4349 * gnulib/import/m4/exponentl.m4: Update.
4350 * gnulib/import/m4/extensions.m4: Update.
4351 * gnulib/import/m4/extern-inline.m4: Update.
4352 * gnulib/import/m4/fcntl-o.m4: Update.
4353 * gnulib/import/m4/float_h.m4: Update.
4354 * gnulib/import/m4/fnmatch.m4: Update.
4355 * gnulib/import/m4/fpieee.m4: Update.
4356 * gnulib/import/m4/frexp.m4: Update.
4357 * gnulib/import/m4/frexpl.m4: Update.
4358 * gnulib/import/m4/gettimeofday.m4: Update.
4359 * gnulib/import/m4/glibc21.m4: Update.
4360 * gnulib/import/m4/gnulib-cache.m4: Update.
4361 * gnulib/import/m4/gnulib-common.m4: Update.
4362 * gnulib/import/m4/gnulib-comp.m4: Update.
4363 * gnulib/import/m4/gnulib-tool.m4: Update.
4364 * gnulib/import/m4/include_next.m4: Update.
4365 * gnulib/import/m4/inttypes-pri.m4: Update.
4366 * gnulib/import/m4/inttypes.m4: Update.
4367 * gnulib/import/m4/isnand.m4: Update.
4368 * gnulib/import/m4/isnanl.m4: Update.
4369 * gnulib/import/m4/largefile.m4: Update.
4370 * gnulib/import/m4/localcharset.m4: Update.
4371 * gnulib/import/m4/locale-fr.m4: Update.
4372 * gnulib/import/m4/locale-ja.m4: Update.
4373 * gnulib/import/m4/locale-zh.m4: Update.
4374 * gnulib/import/m4/longlong.m4: Update.
4375 * gnulib/import/m4/lstat.m4: Update.
4376 * gnulib/import/m4/malloc.m4: Update.
4377 * gnulib/import/m4/malloca.m4: Update.
4378 * gnulib/import/m4/math_h.m4: Update.
4379 * gnulib/import/m4/mbrtowc.m4: Update.
4380 * gnulib/import/m4/mbsinit.m4: Update.
4381 * gnulib/import/m4/mbsrtowcs.m4: Update.
4382 * gnulib/import/m4/mbstate_t.m4: Update.
4383 * gnulib/import/m4/memchr.m4: Update.
4384 * gnulib/import/m4/memmem.m4: Update.
4385 * gnulib/import/m4/mmap-anon.m4: Update.
4386 * gnulib/import/m4/multiarch.m4: Update.
4387 * gnulib/import/m4/nocrash.m4: Update.
4388 * gnulib/import/m4/off_t.m4: Update.
4389 * gnulib/import/m4/pathmax.m4: Update.
4390 * gnulib/import/m4/readlink.m4: Update.
4391 * gnulib/import/m4/rename.m4: Update.
4392 * gnulib/import/m4/rmdir.m4: Update.
4393 * gnulib/import/m4/ssize_t.m4: Update.
4394 * gnulib/import/m4/stat.m4: Update.
4395 * gnulib/import/m4/stdbool.m4: Update.
4396 * gnulib/import/m4/stddef_h.m4: Update.
4397 * gnulib/import/m4/stdint.m4: Update.
4398 * gnulib/import/m4/stdio_h.m4: Update.
4399 * gnulib/import/m4/stdlib_h.m4: Update.
4400 * gnulib/import/m4/string_h.m4: Update.
4401 * gnulib/import/m4/strstr.m4: Update.
4402 * gnulib/import/m4/strtok_r.m4: Update.
4403 * gnulib/import/m4/sys_socket_h.m4: Update.
4404 * gnulib/import/m4/sys_stat_h.m4: Update.
4405 * gnulib/import/m4/sys_time_h.m4: Update.
4406 * gnulib/import/m4/sys_types_h.m4: Update.
4407 * gnulib/import/m4/time_h.m4: Update.
4408 * gnulib/import/m4/unistd_h.m4: Update.
4409 * gnulib/import/m4/warn-on-use.m4: Update.
4410 * gnulib/import/m4/wchar_h.m4: Update.
4411 * gnulib/import/m4/wchar_t.m4: Update.
4412 * gnulib/import/m4/wctype_h.m4: Update.
4413 * gnulib/import/m4/wint_t.m4: Update.
4414 * gnulib/import/malloc.c: Update.
4415 * gnulib/import/malloca.c: Update.
4416 * gnulib/import/malloca.h: Update.
4417 * gnulib/import/math.in.h: Update.
4418 * gnulib/import/mbrtowc.c: Update.
4419 * gnulib/import/mbsinit.c: Update.
4420 * gnulib/import/mbsrtowcs-impl.h: Update.
4421 * gnulib/import/mbsrtowcs-state.c: Update.
4422 * gnulib/import/mbsrtowcs.c: Update.
4423 * gnulib/import/memchr.c: Update.
4424 * gnulib/import/memmem.c: Update.
4425 * gnulib/import/pathmax.h: Update.
4426 * gnulib/import/readlink.c: Update.
4427 * gnulib/import/ref-add.sin: Update.
4428 * gnulib/import/ref-del.sin: Update.
4429 * gnulib/import/rename.c: Update.
4430 * gnulib/import/rmdir.c: Update.
4431 * gnulib/import/same-inode.h: Update.
4432 * gnulib/import/stat.c: Update.
4433 * gnulib/import/stdbool.in.h: Update.
4434 * gnulib/import/stddef.in.h: Update.
4435 * gnulib/import/stdint.in.h: Update.
4436 * gnulib/import/stdio.c: Update.
4437 * gnulib/import/stdio.in.h: Update.
4438 * gnulib/import/stdlib.in.h: Update.
4439 * gnulib/import/str-two-way.h: Update.
4440 * gnulib/import/streq.h: Update.
4441 * gnulib/import/string.in.h: Update.
4442 * gnulib/import/stripslash.c: Update.
4443 * gnulib/import/strnlen1.c: Update.
4444 * gnulib/import/strnlen1.h: Update.
4445 * gnulib/import/strstr.c: Update.
4446 * gnulib/import/strtok_r.c: Update.
4447 * gnulib/import/sys_stat.in.h: Update.
4448 * gnulib/import/sys_time.in.h: Update.
4449 * gnulib/import/sys_types.in.h: Update.
4450 * gnulib/import/time.in.h: Update.
4451 * gnulib/import/unistd.in.h: Update.
4452 * gnulib/import/verify.h: Update.
4453 * gnulib/import/wchar.in.h: Update.
4454 * gnulib/import/wctype.in.h: Update.
4455 * gnulib/import/gettimeofday.c: New file.
4456 * gnulib/import/m4/absolute-header.m4: New file.
4457 * gnulib/import/m4/gettimeofday.m4: New file.
4458 * gnulib/import/m4/sys_socket_h.m4: New file.
4459 * gnulib/import/m4/sys_time_h.m4: New file.
4460 * gnulib/import/stdio.c: Delete file.
4461 * gnulib/import/sys_time.in.h: New file.
4463 2015-08-24 Pedro Alves <palves@redhat.com>
4465 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
4466 * common/gdb_sys_time.h: New file.
4467 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
4468 * gdb_select.h: Likewise.
4469 * gdb_usleep.c: Likewise.
4470 * maint.c: Likewise.
4471 * mi/mi-main.c: Likewise.
4472 * mi/mi-parse.h: Likewise.
4473 * remote-fileio.c: Likewise.
4474 * remote-m32r-sdi.c: Likewise.
4475 * remote.c: Likewise.
4476 * ser-base.c: Likewise.
4477 * ser-pipe.c: Likewise.
4478 * ser-tcp.c: Likewise.
4479 * ser-unix.c: Likewise.
4480 * symfile.c: Likewise.
4481 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
4482 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
4483 * utils.c: Likewise.
4485 2015-08-24 Pedro Alves <palves@redhat.com>
4487 * NEWS: Mention removed support for the various ROM monitors.
4488 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
4489 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
4490 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
4492 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
4494 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
4495 dsrec.o from gdb_target_obs.
4496 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
4497 from gdb_target_obs.
4498 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
4500 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
4501 dink32-rom.o from gdb_target_obs.
4502 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
4503 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
4504 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
4505 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
4507 2015-08-21 Pedro Alves <palves@redhat.com>
4509 * frame.c (null_frame_id): Explicitly zero-initialize.
4511 2015-08-21 Tom Tromey <tromey@redhat.com>
4513 * dwarf2read.c (struct dwarf2_section_info): Rename field
4514 'asection' to 'section'.
4515 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
4516 (dwarf2_locate_sections, dwarf2_locate_sections)
4517 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
4518 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
4519 (dwarf2_locate_v2_dwp_sections): Adjust.
4521 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4523 * top.h (gdb_in_secondary_prompt_p): Declare.
4524 * top.c (gdb_secondary_prompt_depth): Define.
4525 (gdb_in_secondary_prompt_p): Define.
4526 (gdb_readline_wrapper_cleanup): Decrement
4527 gdb_secondary_prompt_depth.
4528 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
4529 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
4530 are in a secondary prompt.
4532 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4534 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
4537 2015-08-21 Gary Benson <gbenson@redhat.com>
4539 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
4541 2015-08-21 Gary Benson <gbenson@redhat.com>
4543 * target.h (struct target_ops) <to_fileio_open>: New argument
4544 warn_if_slow. Update comment. All implementations updated.
4545 (target_fileio_open_warn_if_slow): New declaration.
4546 * target.c (target_fileio_open): Renamed as...
4547 (target_fileio_open_1): ...this. New argument warn_if_slow.
4548 Pass warn_if_slow to implementation. Update debug printing.
4549 (target_fileio_open): New function.
4550 (target_fileio_open_warn_if_slow): Likewise.
4551 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
4552 target_fileio_open_warn_if_slow.
4554 2015-08-21 Gary Benson <gbenson@redhat.com>
4556 * nat/linux-namespaces.c (linux_mntns_access_fs):
4557 Do not overwrite old_chain.
4559 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
4561 * arch/xtensa.h: New file.
4562 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
4563 (ps_get_thread_area): New function.
4564 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
4565 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
4566 * xtensa-tdep.c (osabi.h): New #include.
4567 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
4568 xtensa-specific hooks.
4569 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
4570 member and move the structure to arch/xtensa.h.
4572 2015-08-21 Pedro Alves <palves@redhat.com>
4574 * remote.c (struct readahead_cache): New.
4575 (struct remote_state) <readahead_cache>: New field.
4576 (remote_open_1): Invalidate the cache.
4577 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
4579 (remote_hostio_pwrite): Invalidate the readahead cache.
4580 (remote_hostio_pread): Rename to ...
4581 (remote_hostio_pread_vFile): ... this.
4582 (remote_hostio_pread_from_cache): New function.
4583 (remote_hostio_pread): Reimplement.
4584 (remote_hostio_close): Invalidate the readahead cache.
4586 2015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
4589 * procfs.c: Include "filestuff.h".
4591 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4593 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
4595 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
4596 cur_line or curch, instead call wmove().
4597 (init_win_info) [CMD_WIN]: Likewise.
4598 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
4599 instead call getcury().
4600 (tui_redisplay_readline): Don't set cur_line or curch.
4601 (tui_mld_erase_entire_line): Don't read cur_line, instead call
4603 (tui_cont_sig): Remove call to wmove.
4604 (tui_getc): Don't read cur_line or curch, instead call getcury()
4605 or getyx(). Don't set curch.
4606 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
4607 set cur_line or curch. Always move cursor to (0,0).
4609 2015-08-20 Pedro Alves <palves@redhat.com>
4611 * infrun.c (print_target_wait_results): Make extern.
4612 * infrun.h (print_target_wait_results): Declare.
4613 * remote.c (set_stop_requested_callback): Delete.
4614 (process_initial_stop_replies): New function.
4615 (remote_start_remote): Use it.
4616 (stop_reply_queue_length): New function.
4618 2015-08-20 Pedro Alves <palves@redhat.com>
4620 * dwarf2read.c (process_full_comp_unit): To tell whether
4621 start_subfile managed to deduce a language, test for
4622 language_unknown instead of language_c.
4624 2015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
4626 * ada-lex.l: Reset the start condition to INITIAL in the rule that
4629 2015-08-19 Kevin Buettner <kevinb@redhat.com>
4631 * dwarf2read.c (dwarf2_string_attr): New function.
4632 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
4633 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
4634 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
4635 (anonymous_struct_prefix, prepare_one_comp_unit): Use
4636 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
4638 2015-08-18 Doug Evans <dje@google.com>
4639 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4642 * cli/cli-logging.c (pop_output_files): Don't restore redirection
4644 * mi/mi-out.c: #include "vec.h".
4645 (ui_filep): New type.
4646 (DEV_VEC_P (ui_filep)): New type.
4647 (struct ui_out_data) <buffer, original_buffer>: Delete.
4648 (struct ui_out_data) <streams>: New member.
4649 (mi_ui_out_impl): Add data_destroy field.
4650 (mi_field_string, mi_field_fmt): Update.
4651 (mi_flush, mi_redirect, field_separator): Update.
4652 (mi_open, mi_close): Update.
4653 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
4654 (mi_out_data_ctor, mi_out_data_dtor): New functions.
4655 (mi_out_new): Call mi_out_data_ctor.
4657 2015-08-18 Sandra Loosemore <sandra@codesourcery.com>
4659 * remote.c (strprefix): New.
4660 (remote_parse_stop_reply): Use strprefix instead of strncmp
4661 to ensure exact match of keyword.
4663 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4665 * gdb_bfd.c (debug_bfd_cache): New variable.
4666 (show_bfd_cache_debug): New function.
4667 (gdb_bfd_open): Add debug logging.
4668 (gdb_bfd_ref): Likewise.
4669 (gdb_bfd_unref): Likewise.
4670 (_initialize_gdb_bfd): Add new set/show command.
4671 * NEWS: Mention new command.
4673 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4675 * gdb_bfd.c (bfd_sharing): New variable.
4676 (show_bfd_sharing): New function.
4677 (gdb_bfd_open): Check bfd_sharing variable.
4678 (_initialize_gdb_bfd): Add new set/show command.
4679 * NEWS: Mention new command.
4681 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4683 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
4685 (struct gdb_bfd_cache_search): Likewise.
4686 (eq_bfd): Compare the size, inode, and device id fields.
4687 (gdb_bfd_open): Initialise the size, inode, and device id fields.
4688 (gdb_bfd_ref): Likewise.
4689 (gdb_bfd_unref): Likewise.
4691 2015-08-18 Pedro Alves <palves@redhat.com>
4693 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
4694 target implements to_always_non_stop_p, call it.
4695 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
4696 (x86_linux_create_target): Install it as to_always_non_stop_p
4699 2015-08-17 Doug Evans <dje@google.com>
4701 * ui-out.c (default_ui_out_impl): Add comment.
4703 2015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
4705 * d-exp.y (type_aggregate_p): New function.
4706 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
4707 (classify_inner_name): Likewise.
4708 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
4710 2015-08-15 Doug Evans <xdje42@gmail.com>
4712 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
4714 (add_psymbol_to_list): Ditto.
4716 2015-08-15 Doug Evans <xdje42@gmail.com>
4718 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
4719 updated. Call end_psymtab_common.
4720 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
4722 (build_type_psymtabs_reader): Ditto.
4723 * psympriv.h (sort_pst_symbols): Delete.
4724 (end_psymtab_common): Declare.
4725 * psymtab.c (sort_pst_symbols): Make static.
4726 (end_psymtab_common): New function.
4727 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
4729 2015-08-15 Doug Evans <xdje42@gmail.com>
4731 * defs.h (LANGUAGE_BITS): Define.
4732 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
4733 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
4734 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
4735 (minimal_symbol_type): Add nr_minsym_types.
4736 (MINSYM_TYPE_BITS): Define.
4737 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
4738 (domain_enum_tag): Add NR_DOMAINS.
4739 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
4740 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
4742 2015-08-15 Doug Evans <xdje42@gmail.com>
4744 * objfiles.h: Whitespace cleanup.
4745 * psympriv.h: Whitespace cleanup.
4746 * psymtab.c: Whitespace/coding convention cleanup.
4748 2015-08-15 Patrick Palka <patrick@parcs.ath.cx>
4750 * inferior.c (detach_inferior_command): Don't call
4751 any_thread_of_process when pid is 0.
4752 (kill_inferior_command): Likewise.
4754 2015-08-14 Doug Evans <xdje42@gmail.com>
4757 * NEWS: Document new /s modifier for the disassemble command.
4758 * cli/cli-cmds.c (disassemble_command): Add support for /s.
4759 (_initialize_cli_cmds): Update online docs of disassemble command.
4760 * disasm.c: #include "source.h".
4761 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
4763 (dis_line_entry): New struct.
4764 (hash_dis_line_entry, eq_dis_line_entry): New functions.
4765 (allocate_dis_line_table): New functions.
4766 (maybe_add_dis_line_entry, line_has_code_p): New functions.
4767 (dump_insns): New arg end_pc. All callers updated.
4768 (do_mixed_source_and_assembly_deprecated): Renamed from
4769 do_mixed_source_and_assembly. All callers updated.
4770 (do_mixed_source_and_assembly): New function.
4771 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
4772 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
4773 DISASSEMBLY_SOURCE. All uses updated.
4774 (DISASSEMBLY_SOURCE): New macro.
4775 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
4777 2015-08-14 Keith Seitz <keiths@redhat.com>
4779 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
4780 `typename' to `type_name' to avoid C++ reserved word.
4782 2015-08-14 Keith Seitz <keiths@redhat.com>
4784 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
4785 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
4788 2015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
4790 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
4791 xstrprintf instead of malloc and sprintf.
4792 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
4793 (lex_one_token): Likewise.
4795 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4797 * solib-svr4.c (read_program_header): Add base_addr argument to
4798 report the runtime address of the segment.
4799 (find_program_interpreter): Update read_program_header call to pass
4800 a NULL pointer for the new argument.
4801 (scan_dyntag): Add ptr_addr argument to report the runtime address
4803 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
4804 read_program_header to get the base address of the dynamic segment.
4805 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
4806 read_program_header.
4807 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
4809 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4811 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
4813 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4815 * d-exp.y (%union): Add voidval.
4816 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
4817 name in the lexing stage.
4818 (PostfixExpression): Move symbol completion handling in grammar here
4819 from PrimaryExpression.
4820 (PrimaryExpression): Move routines to handle resolving identifier
4821 tokens in the grammar here from push_expression_name.
4822 (IdentifierExp): Remove the handling of alternating '.' and identifier
4824 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
4825 (BasicType): Remove C-style typename rules.
4826 (d_type_from_name, d_module_from_name, push_variable)
4827 (push_fieldnames, push_type_name, push_module_name)
4828 (push_expression_name): Remove.
4829 (lex_one_token): Rename from yylex. Replace pstate with par_state.
4830 (token_and_value): New type.
4831 (token_fifo, popping, name_obstack): New globals.
4832 (classify_name): New function.
4833 (classify_inner_name): Likewise.
4835 (d_parse): Initialize token_fifo, popping and name_obstack.
4837 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4839 * Makefile.in (SFILES): Add d-namespace.c.
4840 (COMMON_OBS): Add d-namespace.o.
4841 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
4842 la_lookup_symbol_nonlocal callback function pointer.
4843 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
4844 (d_lookup_nested_symbol): New declaration.
4845 * d-namespace.c: New file.
4847 2015-08-13 Pedro Alves <palves@redhat.com>
4849 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
4850 cleanup after the decref cleanup, not before.
4852 2015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
4854 * ada-lang.c: Include namespace.h
4855 (aux_add_nonlocal_symbols): Fix a function name in comment.
4856 (ada_add_block_renamings): New.
4857 (add_nonlocal_symbols): Add global renamings handling.
4858 (ada_lookup_symbol_list_worker): Move the symbol lookup part
4860 (ada_add_all_symbols): ... this new function.
4861 (ada_add_block_symbols): Try to match the input name against the
4862 "using directives list", perform a recursive symbol lookup on
4863 the matched declarations.
4864 * block.h (struct block): Move the_namespace to top-level as
4865 namespace_info. Remove the language_specific field.
4866 (BLOCK_NAMESPACE): Update access to the namespace_info field.
4867 * buildsym.h (using_directives): Rename into...
4868 (local_using_directives): ... this.
4869 (global_using_directives): New.
4870 (struct context_stack): Rename the using_directives field into
4871 local_using_directives.
4872 * buildsym.c (finish_block_internal): Deal with the proper
4873 using directives repository (local or global).
4874 (prepare_for_building): Reset local_using_directives. Assert
4875 that there is no pending global using directive.
4876 (reset_symtab_globals): Reset global_using_directives and
4877 local_using_directives.
4878 (end_symtab_get_static_block): Don't ignore symtabs that have
4879 only using directives.
4880 (push_context): Update references to local_using_directives.
4881 (buildsym_init): Do not reset using_directives.
4882 * cp-support.c: Include namespace.h.
4883 * cp-support.h (struct using_direct): Move to namespace.h.
4884 (cp_add_using_directives): Move to namespace.h.
4885 * cp-namespace.c: Include namespace.h
4886 (cp_add_using_directive): Move to namespace.c, rename it to
4887 add_using_directive, add a "using_directives" argument and use
4888 it as the pending using directives repository. All callers
4890 * dwarf2read.c (using_directives): New.
4891 (read_import_statement): Call using_directives.
4892 (read_func_scope): Update references to local_using_directives.
4893 (read_lexical_block_scope): Likewise.
4894 (read_namespace): Update the heading comment, call
4896 * namespace.h: New file.
4897 * namespace.c: New file.
4898 * Makefile.in (SFILES): Add namespace.c.
4899 (COMMON_OBS): Add namespace.o
4901 2015-08-12 Joel Brobecker <brobecker@adacore.com>
4903 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
4906 2015-08-12 Keith Seitz <keiths@redhat.com>
4908 * break-catch-throw.c (re_set_exception_catchpoint) Rename
4909 reserved C++ keyword "explicit" to "explicit_loc".
4910 * breakpoint.c (create_overlay_event_breakpoint)
4911 (create_longjmp_master_breakpoint)
4912 (create_std_terminate_master_breakpoint)
4913 (create_exception_master_breakpoint, update_static_tracepoint):
4914 Rename reserved C++ keyword "explicit" to "explicit_loc".
4915 * completer.c (collect_explicit_location_matches)
4916 (explicit_location_completer): Rename reserved C++ keyword
4917 "explicit" to "explicit_loc".
4918 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
4919 (canonicalize_linespec, create_sals_line_offset)
4920 (convert_linespec_to_sals, convert_explicit_location_to_sals)
4921 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
4922 "explicit" to "explicit_loc".
4923 * location.c (struct event_location) <explicit>: Rename to
4925 (initialize_explicit_location, new_explicit_location)
4926 (explicit_location_to_string_internal, explicit_location_to_linespec):
4927 Rename reserved C++ keyword "explicit" to "explicit_loc".
4928 * location.h (explicit_location_to_string)
4929 (explicit_location_to_linespec, initialize_explicit_location)
4930 (new_explicit_location): Rename reserved C++ keyword "explicit"
4932 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4933 keyword "explicit" to "explicit_loc".
4935 2015-08-12 Keith Seitz <keiths@redhat.com>
4937 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4938 and only call decode_line_1 when it is non-NULL.
4940 2015-08-12 Luis Machado <lgustavo@codesourcery.com>
4942 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4943 location address is not meaningful.
4944 (breakpoint_address_is_meaningful): Update comment.
4946 2015-08-11 Keith Seitz <keiths@redhat.com>
4948 * NEWS: Mention explicit locations.
4949 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4950 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4951 (_initialize_breakpoint): Update documentation for
4952 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4954 2015-08-11 Keith Seitz <keiths@redhat.com>
4956 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4957 explicit locations, options "--source", "--function",
4958 "--label", and "--line".
4960 2015-08-11 Keith Seitz <keiths@redhat.com>
4962 * completer.c: Include location.h.
4963 (enum match_type): New enum.
4964 (location_completer): Rename to ...
4965 (linespec_completer): ... this.
4966 (collect_explicit_location_matches, backup_text_ptr)
4967 (explicit_location_completer): New functions.
4968 (location_completer): "New" function; handle linespec
4969 and explicit location completions.
4970 (complete_line_internal): Remove all location completer-specific
4972 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4973 (find_toplevel_char): Export.
4974 (linespec_parse_line_offset): Export.
4975 Issue error if STRING is not numerical.
4976 (gdb_get_linespec_parser_quote_characters): New function.
4977 * linespec.h (linespec_parse_line_offset): Declare.
4978 (get_gdb_linespec_parser_quote_characters): Declare.
4979 (is_ada_operator): Declare.
4980 (find_toplevel_char): Declare.
4981 (linespec_lexer_lex_keyword): Declare.
4982 * location.c (explicit_to_event_location): New function.
4983 (explicit_location_lex_one): New function.
4984 (string_to_explicit_location): New function.
4985 (string_to_event_location): Handle explicit locations.
4986 * location.h (explicit_to_event_location): Declare.
4987 (string_to_explicit_location): Declare.
4989 2015-08-11 Keith Seitz <keiths@redhat.com>
4991 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4992 linespec into explicit location.
4993 * breakpoint.c (create_overlay_breakpoint)
4994 (create_longjmp_master_breakpoint)
4995 (create_std_terminate_master_breakpoint)
4996 (create_exception_master_breakpoint): Convert linespec into explicit
4998 (update_static_tracepoint): Convert linespec into explicit location.
4999 * linespec.c (enum offset_relative_sign, struct line_offset): Move
5001 (struct linespec) <expression, expr_pc, source_filename>
5002 <function_name, label_name, line_offset>: Replace with ...
5003 <explicit>: ... this.
5004 <is_linespec>: New member.
5005 (PARSER_EXPLICIT): New accessor macro.
5006 (undefined_label_error): New function.
5007 (source_file_not_found_error): New function.
5008 (linespec_parse_basic): The parser result is now an explicit location.
5009 Use PARSER_EXPLICIT to access it.
5010 Use undefined_label_error.
5011 (canonicalize_linespec): Convert canonical linespec into explicit
5013 Move string representation of location to explicit_location_to_linespec
5014 and use it and explicit_location_to_string to save string
5015 representations of the canonical location.
5016 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
5017 explicit location. Update all references.
5018 (convert_explicit_location_to_sals): New function.
5019 (parse_linespec): Use PARSER_EXPLICIT to access the parser
5020 result's explicit location.
5021 (linespec_state_constructor): Initialize is_linespec.
5022 Use PARSER_EXPLICIT.
5023 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
5025 (event_location_to_sals): For linespec locations, set is_linespec.
5026 Handle explicit locations.
5027 (decode_objc): 'ls' contains an explicit location now. Update all
5029 (symtabs_from_filename): Use source_file_not_found_error.
5030 * location.c (struct event_location.u) <explicit>: New member.
5031 (initialize_explicit_location): New function.
5032 (initialize_event_location): Initialize explicit locations.
5033 (new_explicit_location, get_explicit_location)
5034 (get_explicit_location_const): New functions.
5035 (explicit_to_string_internal): New function; most of contents moved
5036 from canonicalize_linespec.
5037 (explicit_location_to_string): New function.
5038 (explicit_location_to_linespec): New function.
5039 (copy_event_location, delete_event_location)
5040 (event_location_to_string_const, event_location_empty_p): Handle
5042 * location.h (enum offset_relative_sign, struct line_offset): Move
5043 here from linespec.h.
5044 (enum event_location_type): Add EXPLICIT_LOCATION.
5045 (struct explicit_location): New structure.
5046 (explicit_location_to_string): Declare.
5047 (explicit_location_to_linespec): Declare.
5048 (new_explicit_location, get_explicit_locationp
5049 (get_explicit_location_const, initialize_explicit_location): Declare.
5051 2015-08-11 Keith Seitz <keiths@redhat.com>
5053 * break-catch-throw.c (re_set_exception_catchpoint): Convert
5054 linespec for stap probe to probe location.
5055 * breakpoint.c (create_longjmp_master_breakpoint)
5056 (create_exception_master_breakpoint): Likewise.
5057 (break_command_1): Remove local variable `arg_cp'.
5058 Check location type to set appropriate breakpoint ops methods.
5059 (trace_command): Likewise.
5060 * linespec.c (event_location_to_sals): Assert on probe locations.
5061 * location.c (EL_PROBE): Add macro definition.
5062 (new_probe_location, get_probe_location): New functions.
5063 (copy_event_location, delete_event_location, event_location_to_string)
5064 (string_to_event_location, event_location_empty_p): Handle probe
5066 * location.h (enum event_location_type): Add PROBE_LOCATION.
5067 (new_probe_location, get_probe_location): Declare.
5068 * probe.c (parse_probes): Assert that LOCATION is a probe location.
5069 Convert linespec into probe location.
5071 2015-08-11 Keith Seitz <keiths@redhat.com>
5073 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
5074 Convert linespec to address location.
5075 * linespec.c (canonicalize_linespec): Do not handle address
5077 (convert_address_location_to_sals): New function; contents moved
5079 (convert_linespc_to_sals): ... here.
5080 (parse_linespec): Remove address locations from linespec grammar.
5081 Remove handling of address locations.
5082 (linespec_lex_to_end): Remove handling of address linespecs.
5083 (event_location_to_sals): Handle ADDRESS_LOCATION.
5084 (linespec_expression_to_pc): Export.
5085 * linespec.h (linespec_expression_to_pc): Add declaration.
5086 * location.c (struct event_location.u) <address>: New member.
5087 (new_address_location, get_address_location): New functions.
5088 (copy_event_location, delete_event_location, event_location_to_string)
5089 (string_to_event_location, event_location_empty_p): Handle address
5091 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
5092 (new_address_location, get_address_location): Declare.
5093 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
5094 to address location.
5095 * spu-tdep.c (spu_catch_start): Likewise.
5097 2015-08-11 Keith Seitz <keiths@redhat.com>
5099 * ax-gdb.c: Include location.h.
5100 (agent_command_1) Use linespec location instead of address
5102 * break-catch-throw.c: Include location.h.
5103 (re_set_exception_catchpoint): Use linespec locations instead
5105 * breakpoint.c: Include location.h.
5106 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
5107 (create_std_terminate_master_breakpoint)
5108 (create_exception_master_breakpoint, update_breakpoints_after_exec):
5109 Use linespec location instead of address string.
5110 (print_breakpoint_location): Use locations and
5111 event_location_to_string.
5112 Print extra_string for pending locations for non-MI streams.
5113 (print_one_breakpoint_location): Use locations and
5114 event_location_to_string.
5115 (init_raw_breakpoint_without_location): Initialize b->location.
5116 (create_thread_event_breakpoint): Use linespec location instead of
5118 (init_breakpoint_sal): Likewise.
5119 Only save extra_string if it is non-NULL and not the empty string.
5120 Use event_location_to_string instead of `addr_string'.
5121 Constify `p' and `endp'.
5122 Use skip_spaces_const/skip_space_const instead of non-const versions.
5123 Copy the location into the breakpoint.
5124 If LOCATION is NULL, save the breakpoint address as a linespec location
5125 instead of an address string.
5126 (create_breakpoint_sal): Change `addr_string' parameter to a struct
5127 event_location. All uses updated.
5128 (create_breakpoints_sal): Likewise for local variable `addr_string'.
5129 (parse_breakpoint_sals): Use locations instead of address strings.
5130 Remove check for empty linespec with conditional.
5132 (decode_static_tracepoint_spec): Make argument const and update
5134 (create_breakpoint): Change `arg' to a struct event_location and
5136 Remove `copy_arg' and `addr_start'.
5137 If EXTRA_STRING is empty, set it to NULL.
5138 Don't populate `canonical' for pending breakpoints.
5139 Pass `extra_string' to find_condition_and_thread.
5140 Clear `extra_string' if `rest' was NULL.
5141 Do not error with "garbage after location" if setting a dprintf
5143 Copy the location into the breakpoint instead of an address string.
5144 (break_command_1): Use string_to_event_location and pass this to
5145 create_breakpoint instead of an address string.
5146 Check against `arg_cp' for a probe linespec.
5147 (dprintf_command): Use string_to_event_location and pass this to
5148 create_breakpoint instead of an address string.
5149 Throw an exception if no format string was specified.
5150 (print_recreate_ranged_breakpoint): Use event_location_to_string
5151 instead of address strings.
5152 (break_range_command, until_break_command)
5153 (init_ada_exception_breakpoint): Use locations instead
5155 (say_where): Print out extra_string for pending locations.
5156 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
5158 (base_breakpoint_create_sals_from_location): Use struct event_location
5159 instead of address string.
5160 Remove `addr_start' and `copy_arg' parameters.
5161 (base_breakpoint_decode_location): Use struct event_location instead of
5163 (bkpt_re_set): Use locations instead of address strings.
5164 Use event_location_empty_p to check for unset location.
5165 (bkpt_print_recreate): Use event_location_to_string instead of
5167 Print out extra_string for pending locations.
5168 (bkpt_create_sals_from_location, bkpt_decode_location)
5169 (bkpt_probe_create_sals_from_location): Use struct event_location
5170 instead of address string.
5171 (bkpt_probe_decode_location): Use struct event_location instead of
5173 (tracepoint_print_recreate): Use event_location_to_string to
5174 recreate the tracepoint.
5175 (tracepoint_create_sals_from_location, tracepoint_decode_location)
5176 (tracepoint_probe_create_sals_from_location)
5177 (tracepoint_probe_decode_location): Use struct event_location
5178 instead of address string.
5179 (dprintf_print_recreate): Use event_location_to_string to recreate
5181 (dprintf_re_set): Remove check for valid/missing format string.
5182 (strace_marker_create_sals_from_location)
5183 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
5184 (update_static_tracepoint): Use struct event_location instead of
5186 (location_to_sals): Likewise.
5187 Pass `extra_string' to find_condition_and_thread.
5188 For newly resolved pending breakpoint locations, clear the location's
5189 string representation.
5190 Assert that the breakpoint's condition string is NULL when
5191 condition_not_parsed.
5192 (breakpoint_re_set_default, create_sals_from_location_default)
5193 (decode_location_default, trace_command, ftrace_command)
5194 (strace_command, create_tracepoint_from_upload): Use locations
5195 instead of address strings.
5196 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
5197 Use struct event_location instead of address string.
5199 <decode_location>: Likewise.
5200 (struct breakpoint) <addr_string>: Change to struct event_location
5201 and rename `location'.
5202 <addr_string_range_end>: Change to struct event_location and rename
5203 `location_range_end'.
5204 (create_breakpoint): Use struct event_location instead of address
5206 * cli/cli-cmds.c: Include location.h.
5207 (edit_command, list_command): Use locations instead of address strings.
5208 * elfread.c: Include location.h.
5209 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
5210 * guile/scm-breakpoint.c: Include location.h.
5211 (bpscm_print_breakpoint_smob): Use event_location_to_string.
5212 (gdbscm_register_breakpoint): Use locations instead of address
5214 * linespec.c: Include location.h.
5215 (struct ls_parser) <stream>: Change to const char *.
5216 (PARSER_STREAM): Update.
5217 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
5218 keywords must be followed by whitespace.
5219 (canonicalize_linespec): Save a linespec location into `canonical'.
5220 Save a canonical linespec into `canonical'.
5221 (parse_linespec): Change `argptr' to const char * and rename `arg'.
5223 Update function description.
5224 (linespec_parser_new): Initialize `parser'.
5225 Update initialization of parsing stream.
5226 (event_location_to_sals): New function.
5227 (decode_line_full): Change `argptr' to a struct event_location and
5228 rename it `location'.
5229 Use locations instead of address strings.
5230 Call event_location_to_sals instead of parse_linespec.
5231 (decode_line_1): Likewise.
5232 (decode_line_with_current_source, decode_line_with_last_displayed)
5233 Use locations instead of address strings.
5234 (decode_objc): Likewise.
5235 Change `argptr' to const char * and rename `arg'.
5236 (destroy_linespec_result): Delete the linespec result's location
5237 instead of freeing the address string.
5238 * linespec.h (struct linespec_result) <addr_string>: Change to
5239 struct event_location and rename to ...
5240 <location>: ... this.
5241 (decode_line_1, decode_line_full): Change `argptr' to struct
5242 event_location. All callers updated.
5243 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
5244 (mi_cmd_break_insert_1): Use locations instead of address strings.
5245 Throw an error if there was "garbage" at the end of the specified
5247 * probe.c: Include location.h.
5248 (parse_probes): Change `argptr' to struct event_location.
5249 Use event locations instead of address strings.
5250 * probe.h (parse_probes): Change `argptr' to struct event_location.
5251 * python/py-breakpoint.c: Include location.h.
5252 (bppy_get_location): Constify local variable `str'.
5253 Use event_location_to_string.
5254 (bppy_init): Use locations instead of address strings.
5255 * python/py-finishbreakpoint.c: Include location.h.
5256 (bpfinishpy_init): Remove local variable `addr_str'.
5257 Use locations instead of address strings.
5258 * python/python.c: Include location.h.
5259 (gdbpy_decode_line): Use locations instead of address strings.
5260 * remote.c: Include location.h.
5261 (remote_download_tracepoint): Use locations instead of address
5263 * spu-tdep.c: Include location.h.
5264 (spu_catch_start): Remove local variable `buf'.
5265 Use locations instead of address strings.
5266 * tracepoint.c: Include location.h.
5267 (scope_info): Use locations instead of address strings.
5268 (encode_source_string): Constify parameter `src'.
5269 * tracepoint.h (encode_source_string): Likewise.
5271 2015-08-11 Keith Seitz <keiths@redhat.com>
5273 * Makefile.in (SFILES): Add location.c.
5274 (HFILES_NO_SRCDIR): Add location.h.
5275 (COMMON_OBS): Add location.o.
5276 * linespec.c (linespec_lex_to_end): New function.
5277 * linespec.h (linespec_lex_to_end): Declare.
5278 * location.c: New file.
5279 * location.h: New file.
5281 2015-08-11 Keith Seitz <keiths@redhat.com>
5283 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
5284 Renamed to create_sals_from_location.
5285 <decode_linespec>: Renamed to decode_location.
5287 * breakpoint.c (create_sals_from_address_default): Renamed to ...
5288 (create_sals_from_location_default): ... this.
5289 (addr_string_to_sals): Renamed to ...
5290 (location_to_sals): ... this.
5291 (decode_linespec_default): Renamed to ...
5292 (decode_location_default): ... this.
5293 (base_breakpoint_create_sals_from_address): Renamed to ...
5294 (base_breakpoint_create_sals_from_location): ... this.
5295 (bkpt_create_sals_from_address): Renamed to ...
5296 (bkpt_create_sals_from_location): ... this.
5297 (bkpt_decode_linespec): Renamed to ...
5298 (bkpt_decode_location): ... this.
5299 (bkpt_probe_create_sals_from_address): Renamed to ...
5300 (bkpt_probe_create_sals_from_location): ... this.
5301 (tracepoint_create_sals_from_address): Renamed to ...
5302 (tracepoint_create_sals_from_location): ... this.
5303 (tracepoint_decode_linespec): Renamed to ...
5304 (tracepoint_decode_location): ... this.
5305 (tracepoint_probe_create_sals_from_address): Renamed to ...
5306 (tracepoint_probe_create_sals_from_location): ... this.
5307 (tracepoint_probe_decode_linespec): Renamed to ...
5308 (tracepoint_probe_decode_location): ... this.
5309 (strace_marker_create_sals_from_address): Renamed to ...
5310 (strace_marker_create_sals_from_location): ... this.
5311 (decode_linespec_default): Renamed to ...
5312 (decode_location_default): ... this.
5314 2015-08-10 Doug Evans <dje@google.com>
5315 Keith Seitz <keiths@redhat.com>
5318 * symtab.c (make_file_symbol_completion_list_1): Renamed from
5319 make_file_symbol_completion_list and made static.
5320 (make_file_symbol_completion_list): New function.
5322 2015-08-10 Joel Brobecker <brobecker@adacore.com>
5324 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
5325 trailing new-line at end of warning message.
5326 (proceed): Add i18n marker to error messages.
5328 2015-08-07 Pedro Alves <palves@redhat.com>
5330 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
5332 2015-08-07 Pedro Alves <palves@redhat.com>
5334 * s390-linux-tdep.c (is_non_branch_ril)
5335 (s390_displaced_step_copy_insn): New functions.
5336 (s390_displaced_step_fixup): Update comment.
5337 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
5338 gdbarch_displaced_step_copy_insn hook.
5340 2015-08-07 Pedro Alves <palves@redhat.com>
5342 * infrun.c (displaced_step_prepare_throw): Return -1 if
5343 gdbarch_displaced_step_copy_insn returns NULL. Update intro
5345 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
5346 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
5348 (ppc_displaced_step_copy_insn): New function.
5349 (ppc_displaced_step_fixup): Update comment.
5350 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
5351 gdbarch_displaced_step_copy_insn hook.
5352 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
5354 * gdbarch.h: Regenerate.
5356 2015-08-07 Pedro Alves <palves@redhat.com>
5358 * inferior.h (struct inferior) <displaced_stepping_failed>: New
5360 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
5361 Return false if dispaced stepping failed before.
5362 (resume): Pass the current inferior to
5363 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
5364 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
5365 displaced_stepping_failed flag, and fall back to an in-line
5368 2015-08-07 Pedro Alves <palves@redhat.com>
5370 * darwin-nat.c (darwin_stop): Rename to ...
5371 (darwin_interrupt): ... this.
5372 (_initialize_darwin_inferior): Adjust.
5373 * gnu-nat.c (gnu_stop): Delete.
5374 (gnu_target): Don't install gnu_stop.
5375 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
5376 (inf_ptrace_interrupt): ... this.
5377 (inf_ptrace_target): Adjust.
5378 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
5380 * linux-nat (linux_nat_stop): Rename to ...
5381 (linux_nat_interrupt): ... this.
5382 (linux_nat_stop): Reimplement.
5383 (linux_nat_add_target): Install linux_nat_interrupt.
5384 * nto-procfs.c (nto_interrupt_twice): Rename to ...
5385 (nto_handle_sigint_twice): ... this.
5386 (nto_interrupt): Rename to ...
5387 (nto_handle_sigint): ... this. Call target_interrupt instead of
5389 (procfs_wait): Adjust.
5390 (procfs_stop): Rename to ...
5391 (procfs_interrupt): ... this.
5392 (init_procfs_targets): Adjust.
5393 * procfs.c (procfs_stop): Rename to ...
5394 (procfs_interrupt): ... this.
5395 (procfs_target): Adjust.
5396 * remote-m32r-sdi.c (m32r_stop): Rename to ...
5397 (m32r_interrupt): ... this.
5398 (init_m32r_ops): Adjust.
5399 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
5400 (gdbsim_interrupt_inferior): ... this.
5401 (gdbsim_stop): Rename to ...
5402 (gdbsim_interrupt): ... this.
5403 (gdbsim_cntrl_c): Adjust.
5404 (init_gdbsim_ops): Adjust.
5405 * remote.c (sync_remote_interrupt): Adjust comments.
5406 (remote_stop_as): Rename to ...
5407 (remote_interrupt_as): ... this.
5408 (remote_stop): Adjust comment.
5409 (remote_interrupt): New function.
5410 (init_remote_ops): Install remote_interrupt.
5411 * target.c (target_interrupt): New function.
5412 * target.h (struct target_ops) <to_interrupt>: New field.
5413 (target_interrupt): New declaration.
5414 * windows-nat.c (windows_stop): Rename to ...
5415 (windows_interrupt): ... this.
5416 * target-delegates.c: Regenerate.
5418 2015-08-07 Pedro Alves <palves@redhat.com>
5420 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
5421 threads" as alternative to "switching back to stepped thread".
5423 2015-08-07 Pedro Alves <palves@redhat.com>
5425 * NEWS: Mention "maint set/show target-non-stop".
5426 * breakpoint.c (update_global_location_list): Check
5427 target_is_non_stop_p instead of non_stop.
5428 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
5429 * infrun.c (show_can_use_displaced_stepping)
5430 (can_use_displaced_stepping_p, start_step_over_inferior):
5432 (internal_resume_ptid): New function.
5434 (proceed): Check target_is_non_stop_p instead of non_stop. If in
5435 all-stop mode but the target is always in non-stop mode, start all
5436 the other threads that are implicitly resumed too.
5437 (for_each_just_stopped_thread, fetch_inferior_event)
5438 (adjust_pc_after_break, stop_all_threads): Check
5439 target_is_non_stop_p instead of non_stop.
5440 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
5441 with the target always in non-stop mode.
5442 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
5443 instead of non_stop.
5444 (switch_back_to_stepped_thread): Check target_is_non_stop_p
5445 instead of non_stop.
5446 (keep_going_stepped_thread): Use internal_resume_ptid.
5447 (stop_waiting): If in all-stop mode, and the target is in non-stop
5448 mode, stop all threads.
5449 (keep_going_pass): Likewise, when starting a new in-line step-over
5451 * linux-nat.c (get_pending_status, select_event_lwp)
5452 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
5453 target_is_non_stop_p instead of non_stop.
5454 (linux_nat_always_non_stop_p): New function.
5455 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
5456 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
5457 * target-delegates.c: Regenerate.
5458 * target.c (target_is_non_stop_p): New function.
5459 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
5460 (maint_set_target_non_stop_command)
5461 (maint_show_target_non_stop_command): New functions.
5462 (_initilize_target): Install "maint set/show target-non-stop"
5464 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
5465 (target_non_stop_enabled): New declaration.
5466 (target_is_non_stop_p): New declaration.
5468 2015-08-07 Pedro Alves <pedro@codesourcery.com>
5470 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
5471 has a pending status, return true.
5472 * gdbthread.h: Include target/waitstatus.h.
5473 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
5474 stop_pc>: New fields.
5475 (struct thread_info) <resumed>: New field.
5476 (set_resumed): Declare.
5477 * infrun.c: Include "event-loop.h".
5478 (infrun_async_inferior_event_token, infrun_is_async): New globals.
5479 (infrun_async): New function.
5480 (clear_step_over_info): Add debug output.
5481 (displaced_step_in_progress_any_inferior): New function.
5482 (displaced_step_fixup): New returns int.
5483 (start_step_over): Handle in-line step-overs too. Assert the
5484 thread is marked resumed.
5485 (resume_cleanups): Clear the thread's resumed flag.
5486 (resume): Set the thread's resumed flag. Return early if the
5487 thread has a pending status. Allow stepping a breakpoint with no
5489 (proceed): Adjust to check 'resumed' instead of 'executing'.
5490 (clear_proceed_status_thread): If the thread has a pending status,
5491 and that status is a finished step, discard the pending status.
5492 (clear_proceed_status): Don't clear step_over_info here.
5493 (random_pending_event_thread, do_target_wait): New functions.
5494 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
5496 (wait_one): New function.
5497 (THREAD_STOPPED_BY): New macro.
5498 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5499 (thread_stopped_by_hw_breakpoint): New functions.
5500 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
5502 (handle_inferior_event): Also call set_resumed(false) on all
5503 threads implicitly stopped by the event.
5504 (restart_threads, resumed_thread_with_pending_status): New
5506 (finish_step_over): If we were doing an in-line step-over before,
5507 and no longer are after trying to start a new step-over, restart
5508 all threads. If we have multiple threads with pending events,
5509 save the current event and go through the event loop again.
5510 (handle_signal_stop): Return early if finish_step_over returns
5512 <random signal>: If we get a signal while stepping over a
5513 breakpoint in-line in non-stop mode, restart all threads. Clear
5514 step_over_info before delivering the signal.
5515 (keep_going_stepped_thread): Use internal_error instead of
5516 gdb_assert. Mark the thread as resumed.
5517 (keep_going_pass_signal): Assert the thread isn't already resumed.
5518 If some other thread is doing an in-line step-over, defer the
5519 resume. If we just started a new in-line step-over, stop all
5520 threads. Don't clear step_over_info.
5521 (infrun_async_inferior_event_handler): New function.
5522 (_initialize_infrun): Create async event handler with
5523 infrun_async_inferior_event_handler as callback.
5524 (infrun_async): New declaration.
5525 * target.c (target_async): New function.
5526 * target.h (target_async): Declare macro and readd as function
5528 * target/waitstatus.h (enum target_stop_reason)
5529 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5530 * thread.c (new_thread): Clear the new waitstatus field.
5531 (set_resumed): New function.
5533 2015-08-07 Pedro Alves <palves@redhat.com>
5535 * infrun.c (keep_going_stepped_thread): New function, factored out
5537 (switch_back_to_stepped_thread): ... here.
5539 2015-08-07 Pedro Alves <palves@redhat.com>
5541 * infrun.c (currently_stepping): Extend intro comment.
5542 * target.h (target_resume): Extend intro comment.
5544 2015-08-07 Pedro Alves <palves@redhat.com>
5546 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
5547 of inferior_ptid. If the stepped thread vanished, return 0
5548 instead of resuming here. Use reset_ecs. Print the prev_pc and
5549 the current stop_pc in log message. Clear trap_expected if the
5550 thread advanced. Don't pass currently_stepping to
5553 2015-08-07 Pedro Alves <palves@redhat.com>
5555 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
5556 * infrun.c (struct execution_control_state): Move higher up in the
5558 (reset_ecs): New function.
5559 (start_step_over): Now returns int. Rewrite to use
5560 keep_going_pass_signal instead of manually starting a displaced step.
5561 (resume): Don't call set_running here. If displaced stepping
5562 can't start now, clear trap_expected.
5563 (find_thread_needs_step_over): Delete function.
5564 (proceed): Set up finish_thread_state_cleanup. Call set_running.
5565 If the current thread needs a step over, push it in the step-over
5566 chain. Don't set insert breakpoints nor call resume directly
5567 here. Instead rewrite to use start_step_over and
5568 keep_going_pass_signal.
5569 (finish_step_over): New function.
5570 (handle_signal_stop): Call finish_step_over instead of
5572 (switch_back_to_stepped_thread): If the event thread needs another
5573 step-over do that first. Use start_step_over.
5574 (keep_going_pass_signal): New function, factored out from ...
5575 (keep_going): ... here.
5576 (_initialize_infrun): Comment moved here.
5577 * thread.c (set_running_thread): New function.
5578 (set_running, finish_thread_state): Use set_running_thread.
5580 2015-08-07 Pedro Alves <palves@redhat.com>
5582 * gdbthread.h (struct thread_info) <step_over_prev,
5583 step_over_next>: New fields.
5584 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
5585 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
5587 * infrun.c (struct displaced_step_request): Delete.
5588 (struct displaced_step_inferior_state) <step_request_queue>:
5590 (displaced_step_prepare): Assert that trap_expected is set. Use
5591 thread_step_over_chain_enqueue. Split starting a new displaced
5593 (start_step_over): ... this new function.
5594 (resume): Assert the thread isn't waiting for a step over already.
5595 (proceed): Assert the thread isn't waiting for a step over
5597 (infrun_thread_stop_requested): Adjust to remove threads from the
5598 embedded step-over chain.
5599 (handle_inferior_event) <fork/vfork>: Call start_step_over after
5600 displaced_step_fixup.
5601 (handle_signal_stop): Call start_step_over after
5602 displaced_step_fixup.
5603 * infrun.h (step_over_queue_head): New declaration.
5604 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
5605 (thread_step_over_chain_next, thread_is_in_step_over_chain)
5606 (thread_step_over_chain_enqueue)
5607 (thread_step_over_chain_remove): New functions.
5608 (delete_thread_1): Remove thread from the step-over chain.
5610 2015-08-07 Pedro Alves <palves@redhat.com>
5612 * infrun.c (thread_still_needs_step_over): Rename to ...
5613 (thread_still_needs_step_over_bp): ... this.
5614 (enum step_over_what): New.
5615 (thread_still_needs_step_over): Reimplement.
5617 2015-08-07 Pedro Alves <palves@redhat.com>
5619 * remote.c (remote_wait_as): If not waiting for a stop reply,
5620 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
5621 requested, don't block waiting forever.
5623 2015-08-07 Pedro Alves <pedro@codesourcery.com>
5625 * infrun.c (adjust_pc_after_break): Now takes thread_info and
5626 waitstatus pointers instead of an ecs. Adjust.
5627 (handle_inferior_event): Adjust caller.
5629 2015-08-07 Pedro Alves <palves@redhat.com>
5631 * infrun.c (handle_inferior_event): If we get
5632 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
5633 mode, mark all threads of the exiting process as not-executing.
5634 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
5635 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
5636 exiting process, if inferior_ptid still points at a process.
5637 * thread.c (struct current_thread_cleanup) <next>: New field.
5638 (current_thread_cleanup_chain): New global.
5639 (restore_current_thread_ptid_changed): New function.
5640 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
5641 current_thread_cleanup_chain list.
5642 (make_cleanup_restore_current_thread): Add the cleanup data to the
5643 current_thread_cleanup_chain list.
5644 (_initialize_thread): Install restore_current_thread_ptid_changed
5645 as thread_ptid_changed observer.
5647 2015-08-07 Joel Brobecker <brobecker@adacore.com>
5649 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
5650 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
5651 smaller than expected.
5653 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5655 * stack.c (get_frame_language): Moved ...
5656 * frame.c (get_frame_language): ... to here.
5657 * language.h (get_frame_language): Declaration moved to frame.h.
5658 * frame.h: Add language.h include, for language enum.
5659 (get_frame_language): Declaration moved from language.h.
5660 * language.c: Add frame.h include.
5661 * top.c: Add frame.h include.
5662 * symtab.h (struct obj_section): Declare.
5663 (struct cmd_list_element): Declare.
5665 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5667 * language.c (show_language_command): Find selected frame before
5668 asking for the language of that frame.
5669 (set_language_command): Likewise.
5670 * language.h (get_frame_language): Add frame parameter.
5671 * stack.c (get_frame_language): Add frame parameter, assert
5672 parameter is not NULL, update comment and reindent.
5673 * top.c (check_frame_language_change): Pass the selected frame
5674 into get_frame_language.
5676 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5678 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
5679 (pt_btrace_insn_flags): New.
5680 (ftrace_add_pt): Call pt_btrace_insn_flags.
5681 * btrace.h (btrace_insn_flag): New.
5682 (btrace_insn) <flags>: New.
5683 * record-btrace.c (btrace_insn_history): Print insn prefix.
5684 * NEWS: Announce it.
5686 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5688 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
5689 * configure: Regenerate.
5691 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
5693 * Makefile.in (LIBICONV): Define.
5694 (CLIBS): Add LIBICONV.
5695 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
5696 * configure: Regenerate.
5698 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5699 Pedro Alves <palves@redhat.com>
5701 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
5702 (arm_set_abi): Likewise.
5703 * ax-general.c (ax_print): Likewise.
5704 * c-exp.y (exp : string_exp): Likewise.
5705 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
5706 (do_compile_dwarf_expr_to_c): Likewise.
5707 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
5709 * dwarf2expr.c (execute_stack_op): Likewise.
5710 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
5711 (disassemble_dwarf_expression): Likewise.
5712 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
5713 (read_array_order): Likewise.
5714 (abbrev_table_read_table): Likewise.
5715 (read_attribute_value): Likewise.
5716 (skip_unknown_opcode): Likewise.
5717 (dwarf_decode_macro_bytes): Likewise.
5718 (dwarf_decode_macros): Likewise.
5719 * eval.c (value_f90_subarray): Likewise.
5720 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5721 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5722 * infrun.c (handle_command): Likewise.
5723 * memory-map.c (memory_map_start_memory): Likewise.
5724 * osabi.c (set_osabi): Likewise.
5725 * parse.c (operator_length_standard): Likewise.
5726 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
5727 single return point.
5728 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5729 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5730 (gdbpy_lookup_global_symbol): Likewise.
5731 * record-full.c (record_full_restore): Likewise.
5732 * regcache.c (regcache_register_status): Likewise.
5733 (regcache_raw_read): Likewise.
5734 (regcache_cooked_read): Likewise.
5735 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5736 * symtab.c (initialize_ordinary_address_classes): Likewise.
5737 * target-debug.h (target_debug_print_signals): Likewise.
5738 * utils.c (do_restore_current_language): Likewise.
5740 2015-08-06 Clem Dickey <clemd@acm.org>
5743 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
5745 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5747 * complaints.c (enum complaint_series): Add newlines and remove
5748 out of date comment.
5749 (struct complaints) <series>: Change type to enum
5750 complaint_series and remove out of date comment.
5751 (symfile_complaint_hook): Use equivalent enum value
5752 ISOLATED_MESSAGE instead of 0.
5754 2015-08-06 Pedro Alves <palves@redhat.com>
5756 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
5759 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
5761 * common/agent.c (symbol_list) <required>: Remove.
5763 2015-08-06 Pedro Alves <palves@redhat.com>
5765 * target/waitstatus.h (enum target_stop_reason)
5766 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5768 2015-08-05 Pedro Alves <palves@redhat.com>
5769 Joel Brobecker <brobecker@adacore.com>
5771 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
5772 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
5773 case where BS->STOP is not set.
5775 2015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
5777 * nat/gdb_thread_db.h: Add copyright header.
5778 Protect against multiple inclusion.
5780 2015-08-05 Yao Qi <yao.qi@linaro.org>
5782 * aarch64-linux-nat.c (get_thread_id): Remove.
5783 (debug_reg_change_callback): Call ptid_get_lwp instead of
5785 (fetch_gregs_from_thread): Likewise.
5786 (store_gregs_to_thread): Likewise.
5787 (fetch_fpregs_from_thread): Likewise.
5788 (store_fpregs_to_thread): Likewise.
5789 (aarch64_linux_get_debug_reg_capacity): Likewise.
5790 * arm-linux-nat.c (get_thread_id): Remove.
5791 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5792 * xtensa-linux-nat.c (get_thread_id): Remove.
5793 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5794 * arm-linux-nat.c (get_thread_id): Remove.
5795 (GET_THREAD_ID): Remove.
5796 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
5797 (store_fpregs, fetch_regs, store_regs): Likewise.
5798 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
5799 (fetch_vfp_regs, store_vfp_regs): Likewise.
5800 (arm_linux_read_description): Likewise.
5801 (arm_linux_get_hwbp_cap): Likewise.
5802 * xtensa-linux-nat.c (get_thread_id): Remove.
5803 (GET_THREAD_ID): Remove.
5804 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
5807 2015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
5809 * python/py-linetable.c: Fix case of Linetable to LineTable
5810 in docstrings and code comments.
5811 * python/py-symtab.c: Same.
5813 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5815 * infcmd.c (signal_command): Call do_cleanups for args_chain.
5817 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5820 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
5823 2015-08-04 Pedro Alves <palves@redhat.com>
5825 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
5826 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
5827 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
5828 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
5829 (td_thr_validate_ftype, td_thr_get_info_ftype)
5830 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
5831 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
5833 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
5834 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
5835 local macros and use them instead of verbose_dlsym and dlsym
5838 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
5840 * nios2-tdep.h: Include opcode/nios2.h here.
5841 (NIOS2_CDX_OPCODE_SIZE): New.
5842 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
5843 * nios2-tdep.c: Don't include opcode/nios2.h here.
5844 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
5846 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
5847 (nios2_match_addi, nios2_match_orhi): Likewise.
5848 (nios2_match_stw, nios2_match_ldw): Likewise.
5849 (nios2_match_rdctl): Likewise.
5850 (nios2_match_stwm, nios2_match_ldwm): New.
5851 (nios2_match_branch): Add cases for R2 encodings.
5852 (nios2_match_jmpi, nios2_match_calli): Likewise.
5853 (nios2_match_jmpr, nios2_match_callr): Likewise.
5854 (nios2_match_break, nios2_match_trap): Likewise.
5855 (nios2_in_epilogue_p): Add R2 support.
5856 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
5858 (nios2_breakpoint_from_pc): Handle R2 instructions.
5859 (nios2_get_next_pc): Likewise. Adjust call to
5860 tdep->syscall_next_pc.
5861 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
5862 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
5863 instruction field macros instead of literal hex values.
5864 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
5865 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
5866 Use size field from OP instead of assuming all instructions
5868 (nios2_linux_init_abi): Register appropriate unwinder for mach.
5870 2015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
5872 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
5873 variable warning with some compilers.
5875 2015-08-03 Yao Qi <yao.qi@linaro.org>
5877 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
5878 in comment. Replace "rw" with "type".
5879 (arm_linux_remove_watchpoint): Change type of "rw" to
5880 "enum target_hw_bp_type".
5882 2015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
5884 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
5886 * ft32-tdep.c (ft32_skip_prologue): Likewise.
5887 * moxie-tdep.c (moxie_skip_prologue): Likewise.
5888 * mt-tdep.c (mt_skip_prologue): Likewise.
5889 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5891 2015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
5893 * ada-exp.y (write_object_renaming): Replace struct
5894 ada_symbol_info with struct block_symbol. Update field
5895 references accordingly.
5896 (block_lookup, select_possible_type_sym): Likewise.
5897 (find_primitive_type): Likewise. Also update call to
5898 ada_lookup_symbol to extract the symbol itself.
5899 (write_var_or_type, write_name_assoc): Likewise.
5900 * ada-lang.h (struct ada_symbol_info): Remove.
5901 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
5902 struct block_symbol.
5903 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
5904 (ada_lookup_symbol): Return struct block_symbol instead of a
5906 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
5907 with struct block_symbol.
5908 (resolve_subexp, ada_resolve_function, sort_choices,
5909 user_select_syms, is_nonfunction, add_defn_to_vec,
5910 num_defns_collected, defns_collected,
5911 symbols_are_identical_enums, remove_extra_symbols,
5912 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
5913 ada_lookup_symbol_list, ada_iterate_over_symbols,
5914 ada_lookup_encoded_symbol, get_var_value): Likewise.
5915 (ada_lookup_symbol): Return a block_symbol instead of a mere
5916 symbol. Replace struct ada_symbol_info with struct
5918 (ada_lookup_symbol_nonlocal): Likewise.
5919 (standard_lookup): Make block passing explicit through
5920 lookup_symbol_in_language.
5921 * ada-tasks.c (get_tcb_types_info): Update the calls to
5922 lookup_symbol_in_language to extract the mere symbol out of the
5924 (ada_tasks_inferior_data_sniffer): Likewise.
5925 * ax-gdb.c (gen_static_field): Likewise for the call to
5927 (gen_maybe_namespace_elt): Deal with struct block_symbol from
5929 (gen_expr): Likewise.
5930 * c-exp.y: Likewise. Remove uses of block_found.
5931 (lex_one_token, classify_inner_name, c_print_token): Likewise.
5932 (classify_name): Likewise. Rename the "sym" local variable to
5934 * c-valprint.c (print_unpacked_pointer): Likewise.
5935 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5936 "sym" parameter from struct symbol * to struct block_symbol.
5937 Use it to remove uses of block_found. Deal with struct
5938 block_symbol from lookup functions.
5939 (gcc_convert_symbol): Likewise. Update the call to
5941 * compile/compile-object-load.c (compile_object_load): Deal with
5942 struct block_symbol from lookup functions.
5943 * cp-namespace.c (cp_lookup_nested_symbol_1,
5944 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5945 cp_search_static_and_baseclasses,
5946 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5947 cp_lookup_symbol_imports_or_template,
5948 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5949 lookup_namespace_scope, cp_lookup_nonlocal,
5950 find_symbol_in_baseclass): Return struct block_symbol instead of
5951 mere symbols and deal with struct block_symbol from lookup
5953 * cp-support.c (inspect_type, replace_typedefs,
5954 cp_lookup_rtti_type): Deal with struct block_symbol from
5956 * cp-support.h (cp_lookup_symbol_nonlocal,
5957 cp_lookup_symbol_from_namespace,
5958 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
5959 Return struct block_symbol instead of mere symbols.
5960 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5962 Deal with struct block_symbol from lookup functions. Remove
5963 uses of block_found.
5964 * eval.c (evaluate_subexp_standard): Update call to
5965 cp_lookup_symbol_namespace.
5966 * f-exp.y: Deal with struct block_symbol from lookup functions.
5967 Remove uses of block_found.
5969 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5970 lookup_enum, lookup_template_type, check_typedef): Deal with
5971 struct block_symbol from lookup functions.
5972 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5973 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5974 (gdbscm_lookup_global_symbol): Likewise.
5975 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5976 * go-exp.y: Likewise. Remove uses of block_found.
5977 (package_name_p, classify_packaged_name, classify_name):
5979 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5980 * jv-exp.y (push_variable): Likewise.
5981 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5982 * language.c (language_bool_type): Likewise.
5983 * language.h (struct language_defn): Update
5984 la_lookup_symbol_nonlocal to return a struct block_symbol rather
5986 * linespec.c (find_label_symbols): Deal with struct block_symbol
5987 from lookup functions.
5988 * m2-exp.y: Likewise. Remove uses of block_found.
5990 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5991 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5992 * p-exp.y: Likewise. Remove uses of block_found.
5994 * p-valprint.c (pascal_val_print): Likewise.
5995 * parse.c (write_dollar_variable): Likewise. Remove uses of
5997 * parser-defs.h (struct symtoken): Turn the SYM field into a
5998 struct block_symbol.
5999 * printcmd.c (address_info): Deal with struct block_symbol from
6001 * python/py-frame.c (frapy_read_var): Likewise.
6002 * python/py-symbol.c (gdbpy_lookup_symbol,
6003 gdbpy_lookup_global_symbol): Likewise.
6004 * skip.c (skip_function_command): Likewise.
6005 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
6006 block_symbol instead of a mere symbol.
6007 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
6008 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
6009 * solib.c (solib_global_lookup): Likewise.
6010 * solist.h (solib_global_lookup): Likewise.
6011 (struct target_so_ops): Update lookup_lib_global_symbol to
6012 return a struct block_symbol rather than a mere symbol.
6013 * source.c (select_source_symtab): Deal with struct block_symbol
6014 from lookup functions.
6015 * stack.c (print_frame_args, iterate_over_block_arg_vars):
6017 * symfile.c (set_initial_language): Likewise.
6018 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
6020 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
6021 (struct symbol_cache_slot): Turn the FOUND field into a struct
6023 (block_found): Remove.
6024 (eq_symbol_entry): Update to deal with struct block_symbol in
6026 (symbol_cache_lookup): Return a struct block_symbol rather than
6028 (symbol_cache_mark_found): Add a BLOCK parameter to fill
6029 appropriately the cache slots. Update callers.
6030 (symbol_cache_dump): Update cache slots handling to the type
6032 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
6033 lookup_symbol_aux, lookup_local_symbol,
6034 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
6035 lookup_symbol_in_objfile_symtabs,
6036 lookup_symbol_in_objfile_from_linkage_name,
6037 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
6038 lookup_symbol_in_static_block, lookup_static_symbol,
6039 lookup_global_symbol):
6040 Return a struct block_symbol rather than a mere symbol. Deal
6041 with struct block_symbol from other lookup functions. Remove
6042 uses of block_found.
6043 (lookup_symbol_in_block): Remove uses of block_found.
6044 (struct global_sym_lookup_data): Turn the RESULT field into a
6045 struct block_symbol.
6046 (lookup_symbol_global_iterator_cb): Update references to the
6048 (search_symbols): Deal with struct block_symbol from lookup
6050 * symtab.h (struct block_symbol): New structure.
6051 (block_found): Remove.
6052 (lookup_symbol_in_language, lookup_symbol,
6053 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
6054 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
6055 lookup_global_symbol_from_objfile): Return a struct block_symbol
6056 rather than just a mere symbol. Update comments to remove
6057 mentions of block_found.
6058 * valops.c (find_function_in_inferior,
6059 value_struct_elt_for_reference, value_maybe_namespace_elt,
6060 value_of_this): Deal with struct block_symbol from lookup
6062 * value.c (value_static_field, value_fn_field): Likewise.
6064 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
6066 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
6069 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
6070 Pedro Alves <palves@redhat.com>
6072 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
6073 type or value instead of integer.
6074 (aarch64_linux_insert_watchpoint): Likewise.
6075 (aarch64_linux_remove_watchpoint): Likewise.
6076 * ada-lang.c (ada_op_print_tab): Likewise.
6077 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
6078 (amd64_linux_syscall_record_common): Likewise.
6079 * arch-utils.c (target_byte_order_user): Likewise.
6080 (default_byte_order): Likewise.
6081 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
6082 (arm_linux_get_hwbp_type): Likewise.
6083 (arm_linux_hw_watchpoint_initialize): Likewise.
6084 (arm_linux_insert_watchpoint): Likewise.
6085 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
6086 (arm_linux_syscall_record): Likewise.
6087 * breakpoint.c (update_watchpoint): Likewise.
6088 (breakpoint_here_p): Likewise.
6089 (bpstat_print): Likewise.
6090 (enable_breakpoint_disp): Likewise.
6091 * c-lang.c (c_op_print_tab): Likewise.
6092 * cli/cli-decode.c (add_info_alias): Likewise.
6093 * d-lang.c (d_op_print_tab): Likewise.
6094 * eval.c (evaluate_subexp_standard): Likewise.
6095 * f-exp.y (dot_ops): Likewise.
6096 (f77_keywords): Likewise.
6097 * f-lang.c (f_op_print_tab): Likewise.
6098 * go-lang.c (go_op_print_tab): Likewise.
6099 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
6100 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
6101 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
6102 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
6103 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
6104 (struct scm_from_stringn_data): Likewise.
6105 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
6106 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
6107 (ia64_linux_remove_watchpoint): Likewise.
6108 (ia64_linux_can_use_hw_breakpoint): Likewise.
6109 * infrun.c (print_stop_event): Likewise.
6110 * jv-lang.c (java_op_print_tab): Likewise.
6111 * linux-nat.c (linux_proc_xfer_partial): Likewise.
6112 * linux-nat.h (struct lwp_info): Likewise.
6113 * linux-thread-db.c (enable_thread_event): Likewise.
6114 * m2-lang.c (m2_op_print_tab): Likewise.
6115 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
6116 (mi_cmd_stack_list_variables): Likewise.
6117 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
6118 * mi/mi-out.c (mi_table_begin): Likewise.
6119 (mi_table_header): Likewise.
6120 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
6121 (mips_linux_insert_watchpoint): Likewise.
6122 (mips_linux_remove_watchpoint): Likewise.
6123 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
6124 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
6125 (mips_linux_watch_type_to_irw): Likewise.
6126 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
6127 (procfs_insert_hw_watchpoint): Likewise.
6128 (procfs_remove_hw_watchpoint): Likewise.
6129 (procfs_hw_watchpoint): Likewise.
6130 (procfs_can_use_hw_breakpoint): Likewise.
6131 (procfs_remove_hw_watchpoint): Likewise.
6132 (procfs_insert_hw_watchpoint): Likewise.
6133 * p-lang.c (pascal_op_print_tab): Likewise.
6134 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
6135 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
6136 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
6137 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
6138 (procfs_insert_watchpoint): Likewise.
6139 (procfs_remove_watchpoint): Likewise.
6140 * psymtab.c (recursively_search_psymtabs): Likewise.
6141 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
6142 (m32r_insert_watchpoint): Likewise.
6143 * remote-mips.c (mips_can_use_watchpoint): Likewise.
6144 (mips_insert_watchpoint): Likewise.
6145 (mips_remove_watchpoint): Likewise.
6146 * remote.c (watchpoint_to_Z_packet): Likewise.
6147 (remote_insert_watchpoint): Likewise.
6148 (remote_remove_watchpoint): Likewise.
6149 (remote_check_watch_resources): Likewise.
6150 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
6151 (s390_remove_watchpoint): Likewise.
6152 (s390_can_use_hw_breakpoint): Likewise.
6153 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6154 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
6155 * target.h (struct target_ops): Likewise.
6156 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
6157 * ui-out.c (struct ui_out_hdr): Likewise.
6158 (append_header_to_list): Likewise.
6159 (get_next_header): Likewise.
6160 (verify_field): Likewise.
6161 (ui_out_begin): Likewise.
6162 (ui_out_field_int): Likewise.
6163 (ui_out_field_fmt_int): Likewise.
6164 (ui_out_field_skip): Likewise.
6165 (ui_out_field_string): Likewise.
6166 (ui_out_field_fmt): Likewise.
6167 * varobj.c (new_variable): Likewise.
6168 * x86-nat.c (x86_insert_watchpoint): Likewise.
6169 (x86_remove_watchpoint): Likewise.
6170 (x86_can_use_hw_breakpoint): Likewise.
6171 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
6172 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
6173 previously anonymous enumeration type..
6174 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
6176 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
6177 (target_debug_print_enum_bptype): New.
6178 * target-delegates.c: Regenerate.
6180 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
6182 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
6183 already says and disallow non-stack memory writes in the prologue.
6185 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
6187 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
6188 reflect how current GCC emits stack overflow checks. Match
6189 both trap and break instructions for backward compatbility.
6190 Disallow other trap and break instructions in the prologue.
6192 2015-07-30 Pedro Alves <palves@redhat.com>
6195 * linux-nat.c (wait_lwp): Report to the core when thread group
6198 2015-07-30 Pedro Alves <palves@redhat.com>
6199 Simon Marchi <simon.marchi@ericsson.com>
6202 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
6203 mark the new thread as resumed. Remove STOPPING parameter.
6204 (wait_lwp): Adjust call to linux_handle_extended_wait.
6205 (linux_nat_filter_event): Adjust call to
6206 linux_handle_extended_wait.
6207 (resume_stopped_resumed_lwps): Add debug output.
6209 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
6211 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
6213 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
6214 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
6215 gdbarch_fast_tracepoint_valid_at.
6216 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
6217 * gdbarch.h: Regenerate.
6218 * gdbarch.c: Regenerate.
6219 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
6220 argument. Do not set it.
6221 * remote.c (remote_download_tracepoint): Adjust call to
6222 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
6223 the instruction length.
6225 2015-07-30 Yao Qi <yao.qi@linaro.org>
6227 * arm-tdep.h (enum gdb_regnum): Move it to ...
6228 * arch/arm.h: ... here. New file.
6229 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
6231 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
6233 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
6234 Change its type to int *.
6235 (decode_br): Rename link argument to is_blr. Change its type to
6237 (decode_cb): Rename op argument to is_cbnz. Change its type to
6239 (decode_tb): Rename op argument to is_tbnz. Change its type to
6240 int *. Set is_tbnz to either 1 or 0.
6241 (aarch64_analyze_prologue): Change type of is_link to int. Add
6242 new variables is_cbnz and is_tbnz. Adjust call to
6243 aarch64_decode_cb and aarch64_decode_tb.
6245 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
6247 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
6249 (mips_linux_new_thread): Likewise.
6250 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
6252 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
6254 * top.c: Include "tui/tui.h".
6255 (undo_terminal_modifications_before_exit): New static function.
6256 (quit_force): Use it.
6258 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
6260 * target.c (terminal_state): Initialize to terminal_is_ours.
6262 2015-07-29 Yao Qi <yao.qi@linaro.org>
6265 * dcache.c (dcache_read_memory_partial): Call
6266 raw_memory_xfer_partial.
6267 * target.c (raw_memory_xfer_partial): Make it non-static.
6268 * target.h (raw_memory_xfer_partial): Declare.
6270 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6272 * c-valprint.c (c_val_print_array): Consider addressable memory
6274 (c_val_print_ptr): Likewise.
6275 (c_val_print_int): Likewise.
6276 * findvar.c (read_frame_register_value): Likewise.
6277 * valarith.c (find_size_for_pointer_math): Likewise.
6278 (value_ptrdiff): Likewise.
6279 (value_subscripted_rvalue): Likewise.
6280 * valops.c (read_value_memory): Likewise (and rename variables).
6281 (value_assign): Likewise.
6282 (value_repeat): Likewise.
6283 (value_array): Likewise.
6284 (value_slice): Likewise.
6285 * valprint.c (generic_val_print_ptr): Likewise.
6286 (generic_val_print_enum): Likewise.
6287 (generic_val_print_bool): Likewise.
6288 (generic_val_print_int): Likewise.
6289 (generic_val_print_char): Likewise.
6290 (generic_val_print_float): Likewise.
6291 (generic_val_print_decfloat): Likewise.
6292 (generic_val_print_complex): Likewise.
6293 (val_print_scalar_formatted): Likewise.
6294 (val_print_array_elements): Likewise.
6295 * value.c (set_value_parent): Likewise.
6296 (value_contents_copy_raw): Likewise.
6297 (set_internalvar_component): Likewise.
6298 (value_primitive_field): Likewise.
6299 (value_fetch_lazy): Likewise.
6300 * value.h (read_value_memory): Update comment.
6302 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6304 * value.c (get_value_arch): New function.
6305 * value.h (get_value_arch): New declaration.
6307 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6309 * value.c (struct value): Update comments.
6311 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6313 * gdbtypes.c (type_length_units): New function.
6314 * gdbtypes.h (type_length_units): New declaration.
6315 (struct type) <length>: Update comment.
6317 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6319 * valprint.c (generic_val_print): Factor out complex
6320 printing code to ...
6321 (generic_val_print_complex): ... this new function.
6323 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6325 * valprint.c (generic_val_print): Factor out decfloat
6326 printing code to ...
6327 (generic_val_print_decfloat): ... this new function.
6329 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6331 * valprint.c (generic_val_print): Factor out float
6332 printing code to ...
6333 (generic_val_print_float): ... this new function.
6335 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6337 * valprint.c (generic_val_print): Factor out char
6338 printing code to ...
6339 (generic_val_print_char): ... this new function.
6341 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6343 * valprint.c (generic_val_print): Factor out integer
6344 printing code to ...
6345 (generic_val_print_int): ... this new function.
6347 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6349 * valprint.c (generic_val_print): Factor out bool
6350 printing code to ...
6351 (generic_val_print_bool): ... this new function.
6353 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6355 * valprint.c (generic_val_print): Factor out function/method
6356 printing code to ...
6357 (generic_val_print_func): ... this new function.
6359 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6361 * valprint.c (generic_val_print): Factor out flags
6362 printing code to ...
6363 (generic_val_print_flags): ... this new function.
6365 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6367 * valprint.c (generic_val_print): Factor out enum
6368 printing code to ...
6369 (generic_val_print_enum): ... this new function.
6371 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6373 * valprint.c (generic_val_print): Factor out reference
6374 printing code to ...
6375 (generic_val_print_ref): ... this new function.
6377 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6379 * valprint.c (generic_val_print): Factor out memberptr
6380 printing code to ...
6381 (generic_val_print_memberptr): ... this new function.
6383 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6385 * valprint.c (generic_val_print): Factor out pointer
6386 printing code to ...
6387 (generic_val_print_ptr): ... this new function.
6389 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6391 * valprint.c (generic_val_print): Factor out array
6392 printing code to ...
6393 (generic_val_print_array): ... this new function.
6395 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6397 * valprint.c (generic_val_print): Factor out
6398 print_unpacked_pointer code to ...
6399 (print_unpacked_pointer): ... this new function.
6401 2015-07-27 Patrick Palka <patrick@parcs.ath.cx>
6403 * event-top.c (handle_sigterm): Don't inspect
6404 target_can_async_p. Always set the quit flag and always mark
6405 the async signal handler.
6407 2015-07-27 Yao Qi <yao.qi@linaro.org>
6409 * Makefile.in (REMOTE_EXAMPLES): Remove it.
6411 2015-07-25 Kevin Buettner <kevinb@redhat.com>
6413 * remote.c (read_ptid): Return null_ptid when no thread id
6415 (remote_current_thread): Add log warning for malformed
6417 (remote_start_remote): Add log warning when current thread
6420 2015-07-24 Pedro Alves <palves@redhat.com>
6422 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
6423 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
6424 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
6426 2015-07-24 Pedro Alves <palves@redhat.com>
6429 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
6430 is resumed, and extend the debug log.
6432 2015-07-24 Pedro Alves <palves@redhat.com>
6434 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
6436 2015-07-24 Pedro Alves <palves@redhat.com>
6438 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
6440 * alpha-linux-nat.c: Likewise.
6441 * amd64-linux-nat.c: Likewise.
6442 * arm-linux-nat.c: Likewise.
6443 * hppa-linux-nat.c: Likewise.
6444 * i386-linux-nat.c: Likewise.
6445 * ia64-linux-nat.c: Likewise.
6446 * linux-fork.c: Likewise.
6447 * linux-nat.c: Likewise.
6448 * m32r-linux-nat.c: Likewise.
6449 * m68klinux-nat.c: Likewise.
6450 * mips-linux-nat.c: Likewise.
6451 * nat/linux-btrace.c: Likewise.
6452 * nat/linux-ptrace.c: Likewise.
6453 * nat/linux-ptrace.h
6454 * nat/mips-linux-watch.c: Likewise.
6455 * nat/x86-linux-dregs.c: Likewise.
6456 * ppc-linux-nat.c: Likewise.
6457 * s390-linux-nat.c: Likewise.
6458 * spu-linux-nat.c: Likewise.
6459 * tilegx-linux-nat.c: Likewise.
6460 * x86-linux-nat.c: Likewise.
6461 * xtensa-linux-nat.c: Likewise.
6463 2015-07-24 Pedro Alves <palves@redhat.com>
6465 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
6466 __ptrace_request as first parameter type instead of int.
6467 (PTRACE_TYPE_ARG1): Define.
6468 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
6469 that casts first argument to PTRACE_TYPE_ARG1.
6470 * config.in: Regenerate.
6471 * configure: Regenerate.
6473 2015-07-24 Pedro Alves <palves@redhat.com>
6475 * gdb_ptrace.h: Move ...
6476 * nat/gdb_ptrace.h: ... here.
6477 * inf-ptrace.c: Adjust.
6479 2015-07-24 Pedro Alves <palves@redhat.com>
6481 * acinclude.m4: Include ptrace.m4.
6482 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
6483 * ptrace.m4: ... to this new file.
6485 2015-07-23 Doug Evans <dje@google.com>
6487 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
6488 (load_cu): Handle dummy CUs.
6489 (dw2_do_instantiate_symtab, process_queuef): Ditto.
6490 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
6492 2015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
6494 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
6495 documentation to say that it returns a list rather than
6497 (linetable_object_methods): Update the docstring of the
6498 "source_line" entry.
6500 2015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
6502 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
6503 type to the recursive call instead of the original (maybe
6504 TYPE_CODE_TYPEDEF) type.
6506 2015-07-23 Yao Qi <yao.qi@linaro.org>
6508 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
6509 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
6510 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
6512 2015-07-21 Yao Qi <yao.qi@linaro.org>
6514 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
6515 Move it to nat/aarch64-linux-hw-point.c.
6516 (aarch64_linux_child_post_startup_inferior): Update.
6517 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
6519 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
6522 2015-07-21 Markus Metzger <markus.t.metzger@intel.com>
6524 * common/btrace-common.c (btrace_data_append): Change case label.
6526 2015-07-20 Yao Qi <yao.qi@linaro.org>
6528 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
6530 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
6531 "unsigned long long".
6533 2015-07-18 Kevin Buettner <kevinb@redhat.com>
6535 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
6536 to be set for SEC_ALLOC sections too.
6538 2015-07-17 Yao Qi <yao.qi@linaro.org>
6540 * Makefile.in (HFILES_NO_SRCDIR): Add
6541 nat/aarch64-linux-hw-point.h.
6542 (aarch64-linux-hw-point.o): New rule.
6543 * nat/aarch64-linux-hw-point.h: New file.
6544 * nat/aarch64-linux-hw-point.c: New file.
6545 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
6546 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
6547 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
6548 (AARCH64_HWP_ALIGNMENT): Likewise.
6549 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
6550 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
6551 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
6552 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
6553 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
6554 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
6555 (struct aarch64_debug_reg_state): Likewise.
6556 (struct arch_lwp_info): Likewise.
6557 (aarch64_linux_set_debug_regs): Likewise.
6558 (aarch64_notify_debug_reg_change): Remove static.
6559 (aarch64_align_watchpoint): Likewise.
6560 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
6561 (aarch64_watchpoint_length): Likewise.
6562 (aarch64_point_encode_ctrl_reg): Likewise
6563 (aarch64_point_is_aligned): Likewise.
6564 (aarch64_dr_state_insert_one_point): Likewise.
6565 (aarch64_dr_state_remove_one_point): Likewise.
6566 (aarch64_handle_breakpoint): Likewise.
6567 (aarch64_handle_aligned_watchpoint): Likewise.
6568 (aarch64_handle_unaligned_watchpoint): Likewise.
6569 (aarch64_handle_watchpoint): Likewise.
6570 * config/aarch64/linux.mh (NAT_FILE): Add
6571 aarch64-linux-hw-point.o.
6573 2015-07-17 Yao Qi <yao.qi@linaro.org>
6575 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
6576 state and don't call aarch64_get_debug_reg_state. All callers
6578 (aarch64_linux_insert_hw_breakpoint): Call
6579 aarch64_get_debug_reg_state earlier.
6580 (aarch64_linux_remove_hw_breakpoint): Likewise.
6581 (aarch64_handle_aligned_watchpoint): Add argument state and
6582 don't call aarch64_get_debug_reg_state. All callers update.
6583 (aarch64_handle_unaligned_watchpoint): Likewise.
6584 (aarch64_handle_watchpoint): Add argument state.
6585 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
6587 (aarch64_linux_remove_watchpoint): Likewise.
6589 2015-07-17 Yao Qi <yao.qi@linaro.org>
6591 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
6593 (aarch64_handle_unaligned_watchpoint): Likewise.
6595 2015-07-17 Yao Qi <yao.qi@linaro.org>
6597 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
6598 argument type's type to 'enum target_hw_bp_type'.
6599 (aarch64_dr_state_remove_one_point): Likewise.
6600 (aarch64_handle_breakpoint): Likewise.
6601 (aarch64_linux_insert_hw_breakpoint): Likewise.
6602 (aarch64_linux_remove_hw_breakpoint): Likewise.
6603 (aarch64_handle_aligned_watchpoint): Likewise.
6605 2015-07-17 Yao Qi <yao.qi@linaro.org>
6607 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
6608 ptid_get_pid instead of get_thread_id.
6610 2015-07-17 Yao Qi <yao.qi@linaro.org>
6612 * remote.c (get_current_thread): Initialise ptid to null_ptid.
6613 (add_current_inferior_and_thread): Don't initialise ptid.
6615 2015-07-16 Pierre Langlois <pierre.langlois@arm.com>
6617 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
6618 unavailable if invalid.
6620 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6622 Revert the previous 6 commits:
6623 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6624 Move gdb_regex* to common/
6625 Prepare linux_find_memory_regions_full & co. for move
6626 Move linux_find_memory_regions_full & co.
6627 gdbserver build-id attribute generator
6628 Validate symbol file using build-id
6630 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6631 Jan Kratochvil <jan.kratochvil@redhat.com>
6633 Validate symbol file using build-id.
6634 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
6635 and 'show validate-build-id'. Add build-id attribute.
6636 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
6637 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
6638 * solib-frv.c (_initialize_frv_solib): Ditto.
6639 * solib-spu.c (set_spu_solib_ops): Ditto.
6640 * solib-svr4.c: Include rsp-low.h.
6641 (NOTE_GNU_BUILD_ID_NAME): New define.
6642 (svr4_validate): New function.
6643 (svr4_copy_library_list): Duplicate field build_id.
6644 (library_list_start_library): Parse 'build-id' attribute.
6645 (svr4_library_attributes): Add 'build-id' attribute.
6646 (_initialize_svr4_solib): Assign validate value.
6647 * solib-target.c (solib.h): Include.
6648 (_initialize_solib_target): Assign validate value.
6649 * solib.c (validate_build_id, show_validate_build_id): New.
6650 (solib_map_sections): Use ops->validate.
6651 (clear_so): Free build_id.
6652 (default_solib_validate): New function.
6653 (_initialize_solib): Add "validate-build-id".
6654 * solib.h (default_solib_validate): New declaration.
6655 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
6656 (target_so_ops): New field 'validate'.
6658 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6659 Jan Kratochvil <jan.kratochvil@redhat.com>
6661 gdbserver build-id attribute generator.
6662 * features/library-list-svr4.dtd (library-list-svr4): New
6663 'build-id' attribute.
6665 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6666 Jan Kratochvil <jan.kratochvil@redhat.com>
6668 Move linux_find_memory_regions_full & co.
6669 * linux-tdep.c (nat/linux-maps.h): Include.
6670 (gdb_regex.h): Remove the include.
6671 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
6672 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
6673 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
6674 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
6675 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
6676 and target/target.h.
6677 (struct smaps_vmflags, read_mapping, decode_vmflags)
6678 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
6679 (linux_find_memory_regions_full): Move from linux-tdep.c.
6680 * nat/linux-maps.h (read_mapping): New declaration.
6681 (linux_find_memory_region_ftype, enum filterflags): Moved from
6683 (linux_find_memory_regions_full): New declaration.
6684 * target.c (target/target-utils.h): Include.
6685 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
6686 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
6687 definitions to target/target-utils.c.
6688 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
6689 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
6691 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
6692 (read_alloc): New declaration.
6693 (read_stralloc_func_ftype): New typedef.
6694 (read_stralloc): New declaration.
6695 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
6697 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6698 Jan Kratochvil <jan.kratochvil@redhat.com>
6700 Prepare linux_find_memory_regions_full & co. for move.
6701 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
6702 (linux_find_memory_regions_full): Change signature and prepare
6703 for moving to linux-maps.
6704 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
6705 (linux_find_memory_regions_thunk): New.
6706 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
6707 (linux_find_memory_regions_gdb): New.
6708 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
6709 (linux_make_mappings_corefile_notes): Use
6710 linux_find_memory_regions_gdb.
6711 * target.c (read_alloc_pread_ftype): New typedef.
6712 (target_fileio_read_alloc_1_pread): New function.
6713 (read_alloc): Refactor from target_fileio_read_alloc_1.
6714 (read_stralloc_func_ftype): New typedef.
6715 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
6716 (read_stralloc): Refactored from target_fileio_read_stralloc.
6717 (target_fileio_read_stralloc): New implementation, use read_stralloc.
6719 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6721 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
6723 (COMMON_OBS): Add gdb_regex.o.
6725 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
6726 --without-included-regex and USE_INCLUDED_REGEX.
6727 * common/gdb_regex.c: New file from utils.c functions.
6728 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
6729 file wrapping define name.
6730 * configure: Rebuilt.
6731 * configure.ac (gdb_use_included_regex, --without-included-regex)
6732 (USE_INCLUDED_REGEX): Move them to common/common.m4.
6733 * gdb_regex.h: Move it to common/gdb_regex.h.
6734 * utils.c: Remove include gdb_regex.h.
6735 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
6736 (compile_rx_or_error): Move them to common/gdb_regex.c.
6738 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6739 Jan Kratochvil <jan.kratochvil@redhat.com>
6741 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6742 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
6743 common/target-utils.h.
6744 (COMMON_OBS): Add target-utils.o.
6745 (linux-maps.o, target-utils.o): New.
6746 * target/target-utils.c: New file.
6747 * target/target-utils.h: New file.
6748 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
6749 * config/i386/linux64.mh (NATDEPFILES): Ditto.
6750 * nat/linux-maps.c: New file.
6751 * nat/linux-maps.h: New file.
6753 2015-07-15 Markus Metzger <markus.t.metzger@intel.com>
6754 Pedro Alves <palves@redhat.com>
6756 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
6757 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
6758 (perf_event_read_bts): Change the type of SIZE and READ.
6759 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
6760 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
6761 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
6763 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
6764 buffer size to UINT_MAX.
6765 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
6767 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
6768 <last_head>: Change type.
6769 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
6770 * common/btrace-common.c (btrace_data_append): Change the type of
6772 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
6775 2015-07-14 Simon Marchi <simon.marchi@ericsson.com>
6777 * gdbtypes.h (CHECK_TYPEDEF): Remove.
6778 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
6780 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
6781 (ada_array_length): Likewise.
6782 (find_parallel_type_by_descriptive_type): Likewise.
6783 (ada_check_typedef): Likewise.
6784 * arm-tdep.c (arm_return_in_memory): Likewise.
6785 * ax-gdb.c (gen_trace_static_fields): Likewise.
6786 (gen_struct_ref_recursive): Likewise.
6787 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6788 (variable: block COLONCOLON name): Likewise.
6789 (qualified_name: TYPENAME COLONCOLON name): Likewise.
6790 * c-lang.c (classify_type): Likewise.
6791 * c-typeprint.c (c_print_type): Likewise.
6792 (c_print_typedef): Likewise.
6793 (c_type_print_base): Likewise.
6794 * c-valprint.c (c_val_print): Likewise.
6795 * compile/compile-c-types.c (convert_type): Likewise.
6796 * compile/compile-object-load.c (get_out_value_type): Likewise.
6797 * completer.c (add_struct_fields): Likewise.
6798 (expression_completer): Likewise.
6799 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
6800 (cp_lookup_nested_symbol_1): Likewise.
6801 (cp_lookup_nested_symbol): Likewise.
6802 * cp-valprint.c (cp_print_value_fields): Likewise.
6803 (cp_print_static_field): Likewise.
6804 * d-valprint.c (d_val_print): Likewise.
6805 * eval.c (evaluate_subexp_standard): Likewise.
6806 (evaluate_subexp_for_sizeof): Likewise.
6807 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6808 * f-typeprint.c (f_type_print_base): Likewise.
6809 * f-valprint.c (f_val_print): Likewise.
6810 * gdbtypes.c (get_discrete_bounds): Likewise.
6811 (create_array_type_with_stride): Likewise.
6812 (type_name_no_tag_or_error): Likewise.
6813 (lookup_struct_elt_type): Likewise.
6814 (get_unsigned_type_max): Likewise.
6815 (internal_type_vptr_fieldno): Likewise.
6816 (set_type_vptr_fieldno): Likewise.
6817 (internal_type_vptr_basetype): Likewise.
6818 (set_type_vptr_basetype): Likewise.
6819 (get_vptr_fieldno): Likewise.
6820 (is_integral_type): Likewise.
6821 (is_scalar_type): Likewise.
6822 (is_scalar_type_recursive): Likewise.
6823 (distance_to_ancestor): Likewise.
6824 (is_unique_ancestor_worker): Likewise.
6825 (check_types_equal): Likewise.
6826 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
6828 2015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
6830 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
6831 also test for language_d.
6832 (dwarf2_compute_name): Likewise.
6833 (read_func_scope): Likewise.
6834 (read_structure_type): Likewise.
6835 (new_symbol_full): Likewise.
6836 (determine_prefix): Likewise.
6837 (read_import_statement): Use dot as the separator for language_d.
6838 (typename_concat): Likewise, but don't prefix the D main function.
6840 2015-07-14 Peter Bergner <bergner@vnet.ibm.com>
6842 * nat/linux-namespaces.c (setns): Rename from this ...
6843 (do_setns): ... to this. Support calling setns if it exists.
6844 (mnsh_handle_setns): Call do_setns.
6846 2015-07-13 Yao Qi <yao.qi@linaro.org>
6848 * exec.c (exec_file_attach): Add period at the end of error
6851 2015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
6853 * tui/tui-win.c (window_name_completer): New function.
6854 (focus_completer): Call window_name_completer. All old content
6855 moved into window_name_completer.
6856 (winheight_completer): New function.
6857 (_initialize_tui_win): Rename variable. Add completer to
6858 winheight command. Update doc string on winheight.
6860 2015-07-12 Sandra Loosemore <sandra@codesourcery.com>
6862 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
6863 all nios2 mach variants.
6865 2015-07-10 Kevin Buettner <kevinb@redhat.com>
6867 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
6868 of target_read_memory.
6870 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6872 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
6874 (parse_scrolling_args): Likewise.
6876 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6878 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
6879 names in this function.
6881 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6883 * tui/tui-data.h (SRC_NAME): Convert to lower case.
6884 (CMD_NAME): Likewise.
6885 (DATA_NAME): Likewise.
6886 (DISASSEM_NAME): Likewise.
6887 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
6888 (tui_set_win_height): Likewise.
6889 (parse_scrolling_args): Likewise.
6891 2015-07-10 Markus Metzger <markus.t.metzger@intel.com>
6893 * record-btrace.c (record_btrace_goto_begin)
6894 (record_btrace_goto_end, record_btrace_goto): Move call to
6895 print_stack_frame ...
6896 (record_btrace_set_replay): ... here. Set stop_pc.
6897 * record-full.c (record_full_goto_entry): Set stop_pc.
6899 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6901 * NEWS: Mention support for tracepoints on aarch64-linux.
6903 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6905 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
6907 (the_low_target): Install it.
6909 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6911 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
6912 * gdb.trace/collection.exp: Likewise.
6913 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
6914 * gdb.trace/mi-trace-unavailable.exp: Likewise.
6915 * gdb.trace/report.exp: Likewise.
6916 * gdb.trace/trace-break.exp: Likewise.
6917 * gdb.trace/unavailable.exp: Likewise.
6918 * gdb.trace/while-dyn.exp: Likewise.
6920 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6922 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
6923 (aarch64_gen_return_address): New function.
6924 (aarch64_gdbarch_init): Hook it.
6926 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6928 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
6929 swallow NOT_AVAILABLE_ERROR.
6930 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
6931 available_p is not set.
6932 (aarch64_stub_frame_unwind_stop_reason): New function.
6933 (aarch64_stub_unwind): Install it.
6935 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6937 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6939 (aarch64_make_prologue_cache_1): New function, factored out from
6940 aarch64_make_prologue_cache. Do not allocate cache. Set
6942 (aarch64_make_prologue_cache): Reimplement wrapping
6943 aarch64_make_prologue_cache_1, and swallowing
6944 NOT_AVAILABLE_ERROR.
6945 (aarch64_prologue_frame_unwind_stop_reason): New function.
6946 Return UNWIND_UNAVAILABLE if available_p is not set.
6947 (aarch64_prologue_unwind): Install it.
6948 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6949 checks into aarch64_prologue_frame_unwind_stop_reason. Call
6950 frame_id_build_unavailable_stack if available_p is not set.
6952 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6954 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6956 (aarch64_scan_prologue): Set prev_pc.
6957 (aarch64_make_prologue_cache): Set func.
6958 (aarch64_make_stub_cache): Set prev_pc.
6959 (aarch64_prologue_this_id): Remove local variables id, pc and
6960 func. Read prev_pc and func from cache.
6961 (aarch64_stub_this_id): Read prev_pc from cache.
6963 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6965 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
6966 argument this_cache. Remove unused local variables reg and
6967 unwound_fp. Return early if this_cache is already set. Set
6969 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6971 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6973 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6974 New argument this_cache. Return early if this_cache is already
6975 set. Set this_cache.
6976 (aarch64_prologue_this_id): Update call to
6977 aarch64_make_prologue_cache.
6978 (aarch64_prologue_prev_register): Likewise.
6979 (aarch64_normal_frame_base): Likewise.
6981 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6983 * c-valprint.c (c_val_print): Factor out memberptr printing code
6984 from c_val_print to ...
6985 (c_val_print_memberptr): ... this new function.
6987 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6989 * c-valprint.c (c_val_print): Factor out int printing code to ...
6990 (c_val_print_int): ... this new function.
6992 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6994 * c-valprint.c (c_val_print): Factor out struct and union
6995 printing code to ...
6996 (c_val_print_struct): ... this new function ...
6997 (c_val_print_union): ... and this new function.
6999 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7001 * c-valprint.c (c_val_print): Factor out pointer printing code
7003 (c_val_print_ptr): ... this new function.
7005 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7007 * c-valprint.c (c_valprint): Factor our array printing code from
7009 (c_val_print_array): ... this new function.
7011 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7013 * c-valprint.c (c_val_print): Factor out pointer printing code
7015 (print_unpacked_pointer): ... this new function.
7017 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
7019 * c-valprint.c (c_val_print): Remove an assignment to i and move
7022 2015-07-09 Yao Qi <yao.qi@linaro.org>
7024 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
7025 argument ptid. Update comments. Caller update.
7027 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
7029 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
7032 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
7034 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
7036 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
7038 * progspace.c (delete_program_space): Add missing spaces.
7040 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
7042 * inferior.c (delete_inferior_1): Rename to ...
7043 (delete_inferior): ..., remove 'silent' parameter, delete
7044 program space when unused and remove call to prune_program_spaces.
7045 Remove the old, unused, delete_inferior.
7046 (delete_inferior_silent): Remove.
7047 (prune_inferiors): Change call from delete_inferior_1 to
7048 delete_inferior and remove 'silent' parameter. Remove call to
7049 prune_program_spaces.
7050 (remove_inferior_command): Idem.
7051 * inferior.h (delete_inferior_1): Rename to...
7052 (delete_inferior): ..., remove 'silent' parameter and remove the
7053 original delete_inferior.
7054 (delete_inferior_silent): Remove.
7055 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
7056 delete_inferior_1 to delete_inferior and remove 'silent'
7058 * progspace.c (prune_program_spaces): Remove.
7059 (pspace_empty_p): Rename to...
7060 (program_space_empty_p): ... and make non-static.
7061 (delete_program_space): New.
7062 * progspace.h (prune_program_spaces): Remove declaration.
7063 (program_space_empty_p): New declaration.
7064 (delete_program_space): New declaration.
7065 * monitor.c (monitor_close): Replace call to
7066 delete_thread_silent and delete_inferior_silent with
7067 discard_all_inferiors.
7069 2015-07-08 Patrick Palka <patrick@parcs.ath.cx>
7071 * defs.h (deprecated_register_changed_hook): Remove prototype.
7072 * interps.c (clear_iterpreter_hooks): Remove reference to
7073 deprecated_register_changed_hook.
7074 * top.c (deprecated_register_changed_hook): Remove prototype.
7075 * valops.c (value_assign): Remove reference to
7076 deprecated_register_changed_hook.
7077 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
7078 Add comment documenting the function.
7079 (tui_register_changed_observer): Define.
7080 (tui_install_hooks): Remove reference to
7081 deprecated_register_changed_hook. Set
7082 tui_register_changed_observer.
7083 (tui_remove_hooks): Remove reference to
7084 deprecated_register_changed_hook. Unset
7085 tui_register_changed_observer.
7087 2015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7090 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
7092 2015-07-08 Robert O'Callahan <robert@ocallahan.org>
7095 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
7097 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
7099 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
7101 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
7103 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
7104 Use safe_strerror() instead of strerror().
7106 2015-07-07 Yao Qi <yao.qi@linaro.org>
7108 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
7109 * features/arm-with-m-fpa-layout.c: Regenerated.
7110 * features/arm-with-m-vfp-d16.xml: Likewise.
7111 * features/arm-with-m-vfp-d16.c: Regenerated.
7112 * features/arm-with-m.xml: Likewise.
7113 * features/arm-with-m.c: Regenerated.
7114 * features/arm-with-neon.xml: Likewise.
7115 * features/arm-with-neon.c: Regenerated.
7116 * features/arm-with-vfpv2.xml: Likewise.
7117 * features/arm-with-vfpv2.c: Regenerated.
7118 * features/arm-with-vfpv3.xml: Likewise.
7119 * features/arm-with-vfpv3.c: Regenerated.
7121 2015-07-07 Yao Qi <yao.qi@linaro.org>
7123 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
7125 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
7127 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
7128 if target is 32-bit.
7129 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
7130 if target is 32-bit.
7131 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
7132 if target is 32-bit.
7133 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
7134 if target is 32-bit.
7135 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
7136 (aarch64_linux_read_description): Return the right target
7138 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
7139 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
7140 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
7143 2015-07-07 Yao Qi <yao.qi@linaro.org>
7145 * aarch32-linux-nat.c: New file.
7146 * aarch32-linux-nat.h: New file.
7147 * arm-linux-nat.c: Include aarch32-linux-nat.h.
7148 (fetch_regs): Move code to aarch32-linux-nat.c. Call
7149 aarch32_gp_regcache_supply.
7150 (store_regs): Move code to aarch32-linux-nat.c. Call
7151 aarch32_gp_regcache_collect.
7152 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
7153 aarch32_vfp_regcache_supply.
7154 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
7155 aarch32_vfp_regcache_collect.
7156 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
7158 2015-07-07 Yao Qi <yao.qi@linaro.org>
7160 * arm-linux-nat.c (store_fpregister): Remove.
7161 (store_register): Likewise.
7162 (fetch_fpregister): Likewise.
7163 (fetch_register): Likewise.
7164 (arm_linux_store_inferior_registers): Call store_regs and
7165 store_fpregs instead.
7166 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
7169 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7171 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
7174 2015-07-06 Joel Brobecker <brobecker@adacore.com>
7176 * NEWS: Create a new section for the next release branch.
7177 Rename the section of the current branch, now that it has
7180 2015-07-06 Joel Brobecker <brobecker@adacore.com>
7182 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
7183 * version.in: Bump version to 7.10.50.DATE-cvs.
7185 2015-07-06 Luis Machado <lgustavo@codesourcery.com>
7187 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
7188 breakpoints in a special way.
7189 (remove_breakpoint): Likewise.
7190 (mark_breakpoints_out): Likewise.
7192 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7194 * doc/gdb.texinfo (TUI): Add comma after @xref.
7196 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7198 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
7199 instead of casting the structure type.
7201 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
7203 * valops.c (search_struct_field): Remove OFFSET parameter.
7204 (value_cast_structs): Adjust calls to search_struct_field.
7205 (value_struct_elt): Same.
7206 (find_overload_match): Same.
7208 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
7210 * value.c (value_fetch_lazy): Update comment, change return
7212 * value.h (value_fetch_lazy): Change return value to void.
7214 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7216 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
7217 (tui_win_name): Make parameter and result const.
7218 * tui/tui-data.h (tui_win_name): Make parameter and result const.
7220 2015-07-06 Patrick Palka <patrick@parcs.ath.cx>
7222 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
7223 use printf_unfiltered.
7224 (set_mpx_cmd): Add missing trailing space to command string
7226 (_initialize_i386_tdep): Give the "mpx" prefix command its
7229 2015-07-02 Kevin Buettner <kevinb@redhat.com>
7231 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
7232 (enum rx_frame_type): New.
7233 (struct rx_prologue): Add new field `frame_type'.
7234 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
7235 parameter in the prologue struct. Add code for recording
7236 locations of PC and PSW for fast interrupt and exception frames.
7237 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
7238 (rx_analyze_frame_prologue): Add `frame_type' parameter.
7239 (rx_frame_type): New function.
7240 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
7241 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
7243 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
7244 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
7245 RX_FRAME_TYPE_FAST_INTERRUPT.
7246 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
7247 (rx_frame_sniffer, rx_exception_sniffer): New functions.
7248 (rx_frame_unwind): Use rx_frame_sniffer instead of
7249 default_frame_sniffer.
7250 (rx_frame_unwind): New unwinder.
7251 (rx_gdbarch_init): Register new unwinder.
7253 2015-07-02 Kevin Buettner <kevinb@redhat.com>
7255 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
7256 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
7257 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
7259 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
7261 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7263 Fix GCC false warning.
7264 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
7266 2015-07-02 Yao Qi <yao.qi@linaro.org>
7268 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
7269 typo in the debugging message.
7271 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7273 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
7274 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
7275 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
7276 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
7277 (btrace_maint_clear): New.
7278 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
7279 (pt_print_packet, btrace_maint_decode_pt)
7280 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
7281 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
7282 (maint_btrace_packet_history_cmd)
7283 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
7284 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
7285 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
7286 (maint_info_btrace_cmd, _initialize_btrace): New.
7287 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
7288 (btrace_maint_packet_history, btrace_maint_info): New.
7289 (btrace_thread_info) <maint>: New.
7290 * NEWS: Announce it.
7292 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7294 * btrace.c (btrace_fetch): Append the new trace data.
7295 (btrace_clear): Clear the stored trace data.
7296 * btrace.h (btrace_thread_info) <data>: New.
7297 * common/btrace-common.h (btrace_data_clear)
7298 (btrace_data_append): New.
7299 * common/btrace-common.c (btrace_data_clear)
7300 (btrace_data_append): New.
7302 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7304 * nat/linux-btrace.c (linux_enable_bts): Check for
7305 PERF_ATTR_SIZE_VER5.
7306 Check for data_offset and data_size fields. Use them.
7308 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7310 * NEWS: Announce new commands "record btrace pt" and "record pt".
7311 Announce new options "set|show record btrace pt buffer-size".
7312 * btrace.c: Include "rsp-low.h".
7313 Include "inttypes.h".
7314 (btrace_add_pc): Add forward declaration.
7315 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
7316 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
7317 (btrace_compute_ftrace_pt): New.
7318 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
7319 (check_xml_btrace_version): Update version check.
7320 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
7321 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
7322 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
7323 (btrace_pt_children): New.
7324 (btrace_children): Add support for "pt".
7325 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
7326 (btrace_conf_children): Add support for "pt".
7327 * btrace.h: Include "intel-pt.h".
7328 (btrace_pt_error): New.
7329 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
7330 (btrace_data_empty): Support BTRACE_FORMAT_PT.
7331 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
7332 (struct btrace_config_pt): New.
7333 (struct btrace_config)<pt>: New.
7334 (struct btrace_data_pt_config, struct btrace_data_pt): New.
7335 (struct btrace_data)<pt>: New.
7336 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
7338 * features/btrace.dtd (btrace)<pt>: New.
7339 (pt, pt-config, cpu): New.
7340 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
7341 (perf_event_pt_event_type, kernel_supports_pt)
7342 (linux_supports_pt): New.
7343 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
7344 (linux_enable_bts): Free tinfo on error.
7345 (linux_enable_pt): New.
7346 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
7347 (linux_disable_pt): New.
7348 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
7349 (linux_fill_btrace_pt_config, linux_read_pt): New.
7350 (linux_read_btrace): Support BTRACE_FORMAT_PT.
7351 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
7352 (struct btrace_target_info)<pt>: New.
7353 * record-btrace.c (set_record_btrace_pt_cmdlist)
7354 (show_record_btrace_pt_cmdlist): New.
7355 (record_btrace_print_pt_conf): New.
7356 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
7357 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
7358 (cmd_record_btrace_pt_start): New.
7359 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
7360 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
7361 (_initialize_record_btrace): Add new commands.
7362 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
7363 (remote_protocol_features): Add "Qbtrace:pt".
7364 Add "Qbtrace-conf:pt:size".
7365 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
7366 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
7367 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
7368 (_initialize_remote): Add new commands.
7370 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7372 * configure.ac: check for libipt
7373 * configure: Regenerate.
7374 * config.in: Regenerate.
7375 * Makefile.in (LIBIPT): New.
7376 (CLIBS): Add $LIBIPT.
7377 * NEWS: document new configure options
7379 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7381 * compile/compile-object-load.c (compile_object_load): Replace debug
7382 message "lookup undefined ELF symbol" by 3 more specific messages.
7384 2015-07-01 Kevin Buettner <kevinb@redhat.com>
7386 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
7387 (rl78_register_type): Add case for RL78_PSW_REGNUM.
7388 (rl78_gdbarch_init): Initialize rl78_psw_type.
7390 2015-07-01 Patrick Palka <patrick@parcs.ath.cx>
7392 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
7393 Update commentary. Always refresh the registers when frame
7394 information has changed.
7395 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
7396 Change return type to int. Return 1 if frame information has
7397 changed, 0 otherwise.
7398 (tui_before_prompt): Update commentary.
7399 * tui/tui-stack.h (tui_show_frame_info): Change return type to
7402 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7405 * frame.c (select_frame): Remove reference to
7406 deprecated_selected_frame_level_changed_hook.
7407 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
7409 * stack.c (deprecated_selected_frame_level_changed_hook):
7411 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
7413 (tui_refresh_frame_and_register_information): ... this. Bail
7414 out if there is no stack. Don't update register information
7415 unless registers_too_p is true.
7416 (tui_print_frame_info_listing_hook): Rename to ...
7417 (tui_dummy_print_frame_info_listing_hook): ... this.
7418 (tui_before_prompt): New function.
7419 (tui_normal_stop): New function.
7420 (tui_before_prompt_observer): New observer.
7421 (tui_normal_stop_observer): New observer.
7422 (tui_install_hooks): Set
7423 deprecated_print_frame_info_listing_hook to
7424 tui_dummy_print_frame_info_listing_hook. Register
7425 tui_before_prompt_observer to call tui_before_prompt and
7426 tui_normal_stop_observer to call tui_normal_stop. Remove
7427 reference to deprecated_selected_frame_level_changed_hook.
7428 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
7429 and tui_normal_stop_observer. Remove reference to
7430 deprecated_selected_frame_level_changed_hook.
7432 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7435 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
7436 return an int instead of void. Return whether the locator
7438 (tui_show_frame_info): If the locator info has not changed, then
7439 bail out early to avoid refreshing the windows.
7441 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7443 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
7444 LOCATOR_WIN to tui_alloc_content.
7446 2015-06-30 Yao Qi <yao.qi@linaro.org>
7449 * arm-tdep.c (arm_get_next_pc_raw): Break for media
7452 2015-06-29 Kevin Buettner <kevinb@redhat.com>
7454 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
7455 (rx_dwarf_reg_to_regnum): New function.
7456 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
7459 2015-06-29 Pedro Alves <palves@redhat.com>
7462 * infcall.c (run_inferior_call): On infcall success, if the thread
7463 was marked stopped before, reset it back to stopped.
7464 * infrun.c (resume): Don't suppress the set_running calls when
7466 (normal_stop): Only discard the finish_thread_state cleanup if the
7469 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
7471 * MAINTAINERS (Write After Approval): Update my email address.
7473 2015-06-26 Keith Seitz <keiths@redhat.com>
7474 Doug Evans <dje@google.com>
7477 * block.c (block_lookup_symbol): For non-function blocks,
7478 continue to search for a symbol with an exact domain match
7479 Otherwise, return any previously found "best domain" symbol.
7480 (block_lookup_symbol_primary): Likewise.
7482 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
7484 * NEWS: Mention the new option "history remove-duplicates".
7485 * top.c (history_remove_duplicates): New static variable.
7486 (show_history_remove_duplicates): New static function.
7487 (gdb_add_history): Conditionally remove duplicate history
7489 (init_main): Add "history remove-duplicates" option.
7491 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
7493 * tui/tui-win.c (focus_completer): New static function.
7494 (_initialize_tui_win): Set the completion function of the
7495 "focus" command to focus_completer.
7497 2015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7499 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
7501 * symtab.c (find_function_start_sal): Likewise.
7503 2015-06-25 Gary Benson <gbenson@redhat.com>
7505 * solib.c (solib_find_1): Set local variable sysroot to NULL if
7506 it is the empty string after trailing slashes have been stripped.
7508 2015-06-25 Gary Benson <gbenson@redhat.com>
7510 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
7511 * infrun.c (follow_exec): Likewise.
7512 * remote.c (remote_filesystem_is_local): Likewise.
7513 * solib.c (solib_find_1): Likewise.
7515 2015-06-24 Keith Seitz <keiths@redhat.com>
7517 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
7518 return value from lrealpath.
7520 2015-06-24 Mike Frysinger <vapier@gentoo.org>
7522 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
7524 2015-06-24 Mike Frysinger <vapier@gentoo.org>
7526 * remote-sim.c: Include gdb_bfd.h.
7527 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
7528 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
7530 2015-06-24 Yao Qi <yao.qi@linaro.org>
7532 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
7533 set_gdbarch_get_siginfo_type.
7534 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
7535 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
7536 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
7537 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
7538 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
7539 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7540 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
7541 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
7542 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
7543 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
7545 2015-06-24 Gary Benson <gbenson@redhat.com>
7547 * common/buffer.c (stdint.h): Do not include.
7548 * common/print-utils.c (stdint.h): Likewise.
7549 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
7550 * compile/compile-c-types.c (gdb_assert.h): Likewise.
7551 * ft32-tdep.c (gdb_assert.h): Likewise.
7552 * guile/scm-utils.c (stdint.h): Likewise.
7553 * i386-linux-tdep.c (stdint.h): Likewise.
7554 * i386-tdep.c (stdint.h): Likewise.
7555 * nat/linux-btrace.c (stdint.h): Likewise.
7556 * nat/linux-btrace.h (stdint.h): Likewise.
7557 * nat/linux-ptrace.c (stdint.h): Likewise.
7558 * nat/mips-linux-watch.h (stdint.h): Likewise.
7559 * ppc-linux-nat.c (stdint.h): Likewise.
7560 * python/python-internal.h (stdint.h): Likewise.
7561 * stub-termcap.c (stdlib.h): Likewise.
7562 * target/target.h (stdint.h): Likewise.
7563 * xtensa-linux-nat.c (stdint.h): Likewise.
7565 2015-06-23 Patrick Palka <patrick@parcs.ath.cx>
7567 * top.c (init_history): Look at errno after calling strtol to
7568 properly map large GDBHISTSIZE values to infinity.
7570 2015-06-23 Doug Evans <dje@google.com>
7572 * inferior.h (struct inferior_suspend_state): Delete, unused.
7573 All references deleted.
7575 2015-06-23 Mike Frysinger <vapier@gentoo.org>
7577 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
7578 (microblaze_push_dummy_call): Likewise.
7579 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
7580 and set_gdbarch_push_dummy_call.
7582 2015-06-23 Yao Qi <yao.qi@linaro.org>
7584 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
7585 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
7586 (amd64_linux_store_inferior_registers): Likewise.
7587 * arm-linux-nat.c (fetch_fpregister): Likewise.
7588 (fetch_fpregs, store_fpregister): Likewise.
7589 (store_fpregister, store_fpregs): Likewise.
7590 (fetch_register, fetch_regs): Likewise.
7591 (store_register, store_regs): Likewise.
7592 (fetch_vfp_regs, store_vfp_regs): Likewise.
7593 (arm_linux_read_description): Check have_ptrace_getregset is
7594 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
7596 * i386-linux-nat.c (fetch_xstateregs): Check
7597 have_ptrace_getregset is not TRIBOOL_TRUE.
7598 (store_xstateregs): Likewise.
7599 * linux-nat.c (have_ptrace_getregset): Change its type to
7601 * linux-nat.h (tribool): New enum.
7602 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
7603 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
7605 2015-06-19 Doug Evans <dje@google.com>
7607 * NEWS: Mention Sun's version of stabs is no longer supported.
7608 * elfread.c (free_elfinfo): Delete. All uses updated.
7609 (elfstab_offset_sections): Delete. All uses updated.
7610 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
7611 * psympriv.h (partial_symtab) <section_offsets>: Delete.
7613 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
7614 All callers updated.
7616 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
7618 * common/rsp-low.c (needs_escaping): New.
7619 (remote_escape_output): Add unit_size parameter. Refactor to
7620 support multi-byte addressable units. Rename parameters.
7621 * common/rsp-low.h (remote_escape_output): Add unit_size
7622 parameter and rename others. Update doc.
7623 * remote.c (align_for_efficient_write): New.
7624 (remote_write_bytes_aux): Add unit_size parameter and use it.
7625 Rename some variables. Update doc.
7626 (remote_xfer_partial): Get unit size and use it.
7627 (remote_read_bytes_1): Add unit_size parameter and use it.
7628 Rename some variables. Update doc.
7629 (remote_write_bytes): Same.
7630 (remote_xfer_live_readonly_partial): Same.
7631 (remote_read_bytes): Same.
7632 (remote_flash_write): Update call to remote_write_bytes_aux.
7633 (remote_write_qxfer): Update call to remote_escape_output.
7634 (remote_search_memory): Same.
7635 (remote_hostio_pwrite): Same.
7637 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
7639 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
7640 locations as inserted.
7641 Update and expand comment about permanent locations.
7642 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
7643 Move comment to add_location_to_breakpoint.
7644 (update_global_location_list): Don't error out if a permanent
7645 breakpoint is not marked inserted.
7646 Don't error out if a non-permanent breakpoint location is inserted on
7647 top of a permanent breakpoint.
7649 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
7651 * breakpoint.c (make_breakpoint_permanent): Remove unused
7653 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
7655 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7658 * NEWS: Mention new GDBHISTSIZE behavior.
7659 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
7660 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
7662 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7664 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
7665 * top.c (init_history): Read from GDBHISTSIZE instead of
7667 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
7669 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7671 * top.c (gdb_safe_append_history): Do not call
7672 history_truncate_file if the history is not stifled.
7674 2015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
7676 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
7677 * syscalls/s390x-linux.xml: Likewise.
7679 2015-06-16 Michael Eager <eager@eagercon.com>
7681 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
7683 2015-06-16 Patrick Palka <patrick@parcs.ath.cx>
7685 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
7686 target_terminal_ours_for_output() before calling
7687 tui_show_frame_info(), and restore the original terminal
7688 settings afterwards.
7690 2015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
7692 * arm-linux-nat.c: Include nat/linux-ptrace.h.
7694 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7696 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
7698 (mi_cmd_data_write_memory_bytes): Same.
7700 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7702 * corefile.c (write_memory): Update doc.
7703 * gdbcore.h (write_memory): Same.
7705 2015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7707 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
7708 (dump_mapping_p): Use it for parameter filterflags.
7709 (linux_find_memory_regions_full): Use it for variable filterflags.
7711 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7712 Jan Kratochvil <jan.kratochvil@redhat.com>
7714 Merge multiple hex conversions.
7715 * monitor.c: Include rsp-low.h.
7716 (fromhex): Remove definition.
7718 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7719 Jan Kratochvil <jan.kratochvil@redhat.com>
7721 Move utility functions to common/.
7722 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
7723 Move defs to common/common-utils.c.
7724 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
7725 (skip_to_space_const): Move decls to common/common-utils.h.
7726 * common/common-defs.h: Move include of common-types.h before
7728 * common/common-utils.c: Include host-defs.h and ctype.h.
7729 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
7731 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
7733 * common/common-utils.h (strtoulst): Move decl from utils.h.
7734 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
7735 Move from cli/cli-utils.h.
7736 * common/host-defs.h: Include limits.h.
7737 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
7738 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
7739 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
7740 common/common-utils.h.
7741 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
7742 (strtoulst): Move to common/common-utils.c.
7743 * utils.h (strtoulst): Moved decl to common/common-utils.h.
7745 2015-06-15 Yao Qi <yao.qi@linaro.org>
7747 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
7749 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
7751 * build-id.c: Don't include elf-bfd.h.
7752 (build_id_bfd_get): Use bfd_build_id.
7753 (build_id_verify): Ditto.
7754 * build-id.h: Ditto.
7755 (find_separate_debug_file_by_buildid): Ditto.
7756 * python/py-objfile.c: Don't include elf-bfd.h.
7757 (objfpy_get_build_id) Use bfd_build_id.
7758 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
7759 * coffread.c: Include build-id.h.
7760 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
7762 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7764 * windows-nat.c (do_windows_fetch_inferior_registers)
7765 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
7766 conditional with __CYGWIN__.
7768 2015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
7770 * completer.c: Add arch-utils.h include.
7771 (enum reg_completer_targets): New enum.
7772 (reg_or_group_completer_1): New function containing old
7773 reg_or_group_completer, add and use new parameter to control what
7774 is completed on. Use get_current_arch rather than architecture of
7775 currently selected frame.
7776 (reg_or_group_completer): Call new reg_or_group_completer_1.
7777 (reggroup_completer): Call new reg_or_group_completer_1.
7778 * completer.h (reggroup_completer): Add declaration.
7779 * tui/tui-regs.c: Add 'completer.h' include.
7780 (tui_reg_next_command): Renamed to...
7781 (tui_reg_next): ...this. Adjust parameters and return rather than
7783 (tui_reg_prev_command): Renamed to...
7784 (tui_reg_prev): ...this. Adjust parameters and return rather than
7786 (tui_reg_float_command): Delete.
7787 (tui_reg_general_command): Delete.
7788 (tui_reg_system_command): Delete.
7789 (tui_reg_command): Rewrite to perform switching of register group.
7791 (tuireglist): Remove.
7792 (tui_reggroup_completer): New function.
7793 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
7794 creation of 'tui reg' command.
7795 * NEWS: Add comment about 'tui reg' changes.
7797 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7799 * target.c (target_read): Consider addressable unit size when
7800 reading from a memory object.
7801 (read_memory_robust): Same.
7802 (read_whatever_is_readable): Same.
7803 (target_write_with_progress): Consider addressable unit size
7804 when writing to a memory object.
7805 * target.h (target_read): Update documentation.
7806 (target_write): Add documentation.
7808 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7810 * arch-utils.h (default_addressable_memory_unit_size): New.
7811 * arch-utils.c (default_addressable_memory_unit_size): New.
7812 * gdbarch.sh (addressable_memory_unit_size): New.
7813 * gdbarch.h: Re-generate.
7814 * gdbarch.c: Re-generate.
7816 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7818 * target.c (target_read): Rename variables and use
7820 (target_read_with_progress): Same.
7821 (read_memory_robust): Constify parameters and rename
7823 (read_whatever_is_readable): Constify parameters,
7824 rename variables, adjust formatting.
7825 * target.h (read_memory_robust): Constify parameters.
7827 2015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
7829 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
7830 synthetic (non-AltiVec) vector types.
7831 (ppc64_sysv_abi_return_value): Likewise.
7833 2015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
7835 PR breakpoints/16465
7836 * breakpoint.c (create_breakpoint): Save extra_string for
7837 pending breakpoints.
7839 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7841 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
7842 and bt_mask to CORE_ADDR.
7844 2015-06-11 Gary Benson <gbenson@redhat.com>
7846 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
7847 (mnsh_recv_message): Likewise.
7849 2015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
7851 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
7852 long long int and plongest instead of %ll.
7854 2015-06-11 Gary Benson <gbenson@redhat.com>
7856 * nat/linux-namespaces.c (gdb_wait.h): New include.
7857 (sys/wait.h): Do not include.
7859 2015-06-10 Simon Marchi <simon.marchi@ericsson.com>
7861 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
7862 end_sequence is true.
7864 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7867 * solib-target.c (library_list_start_list): Use explicit NULL
7870 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7872 * solib-target.c (library_list_start_list): Do not dereference
7873 variable version in its initialization. Make the VERSION check handle
7875 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
7877 2015-06-10 Gary Benson <gbenson@redhat.com>
7879 * NEWS: Announce support for direct access of executable and
7880 shared library files when attaching to inferiors in containers
7881 on GNU/Linux systems.
7883 2015-06-10 Gary Benson <gbenson@redhat.com>
7885 * remote.c (struct remote_state) <fs_pid>: New field.
7886 (new_remote_state): Initialize the above.
7887 (PACKET_vFile_setfs): New enum value.
7888 (remote_hostio_set_filesystem): New function.
7889 (remote_hostio_open): Call the above.
7890 (remote_hostio_unlink): Likewise.
7891 (remote_hostio_readlink): Likewise.
7892 (_initialize_remote): Register new "set/show remote
7893 hostio-setfs-packet" command.
7894 * NEWS: Announce new vFile:setfs packet.
7896 2015-06-10 Gary Benson <gbenson@redhat.com>
7898 * linux-nat.c (nat/linux-namespaces.h): New include.
7899 (fileio.h): Likewise.
7900 (linux_nat_filesystem_is_local): New function.
7901 (linux_nat_fileio_pid_of): Likewise.
7902 (linux_nat_fileio_open): Likewise.
7903 (linux_nat_fileio_readlink): Likewise.
7904 (linux_nat_fileio_unlink): Likewise.
7905 (linux_nat_add_target): Initialize to_filesystem_is_local,
7906 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
7907 (_initialize_linux_nat): New "set/show debug linux-namespaces"
7909 * NEWS: Mention new "set/show debug linux-namespaces" commands.
7911 2015-06-10 Gary Benson <gbenson@redhat.com>
7913 * target.h (struct inferior): New forward declaration.
7914 (struct target_ops) <to_filesystem_is_local>: Update comment.
7915 (struct target_ops) <to_fileio_open>: New argument inf.
7916 Update comment. All implementations updated.
7917 (struct target_ops) <to_fileio_unlink>: Likewise.
7918 (struct target_ops) <to_fileio_readlink>: Likewise.
7919 (target_filesystem_is_local): Update comment.
7920 (target_fileio_open): New argument inf. Update comment.
7921 (target_fileio_unlink): Likewise.
7922 (target_fileio_readlink): Likewise.
7923 (target_fileio_read_alloc): Likewise.
7924 (target_fileio_read_stralloc): Likewise.
7925 * target.c (target_fileio_open): New argument inf.
7926 Pass inf to implementation. Update debug printing.
7927 (target_fileio_unlink): Likewise.
7928 (target_fileio_readlink): Likewise.
7929 (target_fileio_read_alloc_1): New argument inf. Pass inf
7930 to target_fileio_open.
7931 (target_fileio_read_alloc): New argument inf. Pass inf to
7932 target_fileio_read_alloc_1.
7933 (target_fileio_read_stralloc): Likewise.
7934 * gdb_bfd.c (inferior.h): New include.
7935 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7936 argument with new argument "inferior". Pass inferior to
7938 (gdb_bfd_open): Supply inferior argument to
7939 gdb_bfd_iovec_fileio_open.
7940 * linux-tdep.c (linux_info_proc): Supply inf argument to
7941 relevant target_fileio calls.
7942 (linux_find_memory_regions_full): Likewise.
7943 (linux_fill_prpsinfo): Likewise.
7944 * remote.c (remote_filesystem_is_local): Supply inf
7945 argument to remote_hostio_open.
7946 (remote_file_put): Likewise.
7947 (remote_file_get): Likewise.
7948 (remote_file_delete): Supply inf argument to
7949 remote_hostio_unlink.
7951 2015-06-10 Gary Benson <gbenson@redhat.com>
7953 * inf-child.c (inf_child_fileio_open): Replace comment.
7954 (inf_child_fileio_pwrite): Likewise.
7955 (inf_child_fileio_pread): Likewise.
7956 (inf_child_fileio_fstat): Insert blank line before comment.
7957 (inf_child_fileio_close): Replace comment.
7958 (inf_child_fileio_unlink): Likewise.
7959 (inf_child_fileio_readlink): Likewise.
7960 * remote.c (remote_hostio_open): Likewise.
7961 (remote_hostio_pread): Likewise.
7962 (remote_hostio_pwrite): Likewise.
7963 (remote_hostio_close): Likewise.
7964 (remote_hostio_unlink): Likewise.
7965 (remote_hostio_readlink): Likewise.
7966 (remote_hostio_fstat): Likewise.
7967 (remote_filesystem_is_local): Likewise.
7968 * target.c (target_fileio_open): Likewise.
7969 (target_fileio_pwrite): Likewise.
7970 (target_fileio_pread): Likewise.
7971 (target_fileio_fstat): Insert blank line before comment.
7972 (target_fileio_close): Replace comment.
7973 (target_fileio_unlink): Likewise.
7974 (target_fileio_readlink): Likewise.
7975 (target_fileio_read_alloc): Likewise.
7976 (target_fileio_read_stralloc): Likewise.
7978 2015-06-10 Gary Benson <gbenson@redhat.com>
7980 * linux-thread-db.c (nat/linux-namespaces.h): New include.
7981 (check_pid_namespace_match): Use linux_ns_same rather than
7982 linux_proc_pid_get_ns to spot PID namespace mismatches.
7983 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7984 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7986 2015-06-10 Gary Benson <gbenson@redhat.com>
7988 * configure.ac (AC_CHECK_FUNCS): Add setns.
7989 * config.in: Regenerate.
7990 * configure: Likewise.
7991 * nat/linux-namespaces.h: New file.
7992 * nat/linux-namespaces.c: Likewise.
7993 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7994 (linux-namespaces.o): New rule.
7995 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7996 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7997 * config/arm/linux.mh (NATDEPFILES): Likewise.
7998 * config/i386/linux.mh (NATDEPFILES): Likewise.
7999 * config/i386/linux64.mh (NATDEPFILES): Likewise.
8000 * config/ia64/linux.mh (NATDEPFILES): Likewise.
8001 * config/m32r/linux.mh (NATDEPFILES): Likewise.
8002 * config/m68k/linux.mh (NATDEPFILES): Likewise.
8003 * config/mips/linux.mh (NATDEPFILES): Likewise.
8004 * config/pa/linux.mh (NATDEPFILES): Likewise.
8005 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
8006 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
8007 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
8008 * config/s390/linux.mh (NATDEPFILES): Likewise.
8009 * config/sparc/linux.mh (NATDEPFILES): Likewise.
8010 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
8011 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
8012 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
8014 2015-06-10 Gary Benson <gbenson@redhat.com>
8016 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
8017 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
8018 (make_cleanup_close): Likewise.
8019 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
8020 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
8021 (make_cleanup_close): Likewise.
8023 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
8025 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
8026 from SuspendThread().
8028 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
8030 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
8031 from OutputDebugString.
8033 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
8034 Mircea Gherzan <mircea.gherzan@intel.com>
8036 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
8037 MPX_BT_MASK_32): New macros.
8038 (i386_mpx_set_bounds): New function that implements
8039 the command "set-mpx-bound".
8040 (i386_mpx_enabled): Helper function to test MPX availability.
8041 (i386_mpx_bd_base): Helper function to calculate the base directory
8043 (i386_mpx_get_bt_entry): Helper function to access a bound
8045 (i386_mpx_print_bounds): Effectively display bound information.
8046 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
8048 (_initialize_i386_tdep):
8049 Add "bound" to the commands "show mpx" and "set mpx" commands.
8050 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
8051 and "show mpx" commands.
8052 * NEWS: List new commands for MPX support.
8054 2015-06-09 Gary Benson <gbenson@redhat.com>
8056 * common/fileio.h (fileio_to_host_mode): New declaration.
8057 * common/fileio.c (fileio_to_host_mode): New Function.
8058 * inf-child.c (inf_child_fileio_open): Process mode argument
8059 with fileio_to_host_mode.
8061 2015-06-09 Gary Benson <gbenson@redhat.com>
8063 * common/fileio.c (fileio_mode_pack): Fix preprocessor
8066 2015-06-05 Gary Benson <gbenson@redhat.com>
8068 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
8069 * remote.c (remote_filesystem_is_local): ...here.
8071 2015-06-04 Yao Qi <yao.qi@linaro.org>
8073 * gdbarch.c: Regenerate it.
8075 2015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8077 * arch-utils.c (default_infcall_munmap): New.
8078 * arch-utils.h (default_infcall_munmap): New declaration.
8079 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
8080 (munmap_list_free, munmap_listp_free_cleanup): New.
8081 (struct setup_sections_data): Add field munmap_list_headp.
8082 (setup_sections): Call munmap_list_add.
8083 (compile_object_load): New variable munmap_list_head, initialize
8084 setup_sections_data.munmap_list_headp, return munmap_list_head.
8085 * compile/compile-object-load.h (struct munmap_list): New declaration.
8086 (struct compile_module): Add field munmap_list_head.
8087 (munmap_list_free): New declaration.
8088 * compile/compile-object-run.c (struct do_module_cleanup): Add field
8090 (do_module_cleanup): Call munmap_list_free.
8091 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
8092 * gdbarch.c: Regenerate.
8093 * gdbarch.h: Regenerate.
8094 * gdbarch.sh (infcall_munmap): New.
8095 * linux-tdep.c (linux_infcall_munmap): New.
8096 (linux_init_abi): Install it.
8098 2015-06-02 Simon Marchi <simon.marchi@ericsson.com>
8101 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
8103 2015-06-02 Yao Qi <yao.qi@linaro.org>
8105 * i386-linux-nat.c: Include linux-nat.h.
8107 2015-06-01 Andreas Schwab <schwab@linux-m68k.org>
8108 Jan Kratochvil <jan.kratochvil@redhat.com>
8111 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
8113 * dwarf2loc.c (chain_candidate): Likewise.
8115 2015-06-01 Yao Qi <yao.qi@linaro.org>
8117 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
8118 (store_vfp_regs): Use PTRACE_SETREGSET.
8120 2015-06-01 Yao Qi <yao.qi@linaro.org>
8122 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
8123 (fetch_fpregs): Likewise.
8124 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
8125 (store_fpregs): Likewise.
8127 2015-06-01 Yao Qi <yao.qi@linaro.org>
8129 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
8130 (fetch_regs): Likewise.
8131 (store_regs): Use PTRACE_SETREGSET.
8132 (store_register): Likewise.
8134 2015-06-01 Yao Qi <yao.qi@linaro.org>
8136 * arm-linux-nat.c (arm_linux_read_description): Check whether
8137 kernel supports PTRACE_GETREGSET.
8139 2015-06-01 Yao Qi <yao.qi@linaro.org>
8141 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
8142 * linux-nat.c: ... here.
8143 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
8145 * linux-nat.h: ... here.
8147 2015-06-01 Yao Qi <yao.qi@linaro.org>
8149 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
8150 * i386-linux-nat.c: Likewise.
8151 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
8152 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
8153 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
8154 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
8155 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
8157 2015-05-30 Eli Zaretskii <eliz@gnu.org>
8159 * go32-nat.c (go32_xfer_memory): Fix the return value to be
8160 compatible to what read_child and write_child return. This
8161 unbreaks that DJGPP build of GDB which was broken since v7.7.
8163 2015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
8165 * MAINTAINERS (Write After Approval): Add Martin Galvan.
8167 2015-05-29 Roland McGrath <mcgrathr@google.com>
8170 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
8171 rather than internal_error for an unrecognized value.
8173 2015-05-29 Max Filippov <jcmvbkbc@gmail.com>
8175 * xtensa-tdep.c (xtensa_pseudo_register_read)
8176 (xtensa_pseudo_register_write): Don't alias last pseudo register
8179 2015-05-28 Don Breazeal <donb@codesourcery.com>
8181 * infrun.c (follow_fork_inferior): Ensure the use of
8182 process-style ptids (pid,0,0) in verbose/debug "Detaching"
8185 2015-05-28 Doug Evans <dje@google.com>
8187 * dwarf2read.c (record_line_ftype): Remove, duplicate.
8189 2015-05-28 Yao Qi <yao.qi@linaro.org>
8191 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
8192 (arm_linux_fetch_inferior_registers): Use
8193 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
8194 (arm_linux_store_inferior_registers): Likewise.
8195 (arm_linux_read_description): Don't set
8196 arm_linux_has_wmmx_registers.
8197 * arm-tdep.c (arm_gdbarch_init): Set
8198 tdep->have_wmmx_registers according target descriptions.
8199 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
8202 2015-05-28 Yao Qi <yao.qi@linaro.org>
8204 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
8205 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
8206 instead of arm_linux_vfp_register_count.
8207 (store_vfp_regs): Likewise.
8208 (arm_linux_fetch_inferior_registers): Likewise.
8209 (arm_linux_store_inferior_registers): Likewise.
8210 (arm_linux_read_description): Don't set
8211 arm_linux_vfp_register_count.
8212 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
8214 * arm-tdep.c (arm_gdbarch_init): Add assert on
8216 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
8217 field to vfp_register_count. All users updated.
8219 2015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
8221 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
8222 ELFOSABI_GNU binaries.
8224 2015-05-27 Doug Evans <dje@google.com>
8226 * dwarf2read.c (lnp_state_machine): New typedef.
8227 (lnp_reader_state): New typedef.
8228 (dwarf_record_line_1): Renamed from dwarf_record_line.
8229 All callers updated.
8230 (dwarf_record_line): New function.
8231 (init_lnp_state_machine): New function.
8232 (check_line_address): Replace p_record_line parameter with state.
8233 All callers updated.
8234 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
8235 Update to record state in lnp_state_machine.
8237 2015-05-27 Doug Evans <dje@google.com>
8239 * dwarf2read.c (record_line_ftype): New typedef.
8240 (check_line_address): New function.
8241 (dwarf_decode_lines_1): Call it.
8243 2015-05-27 Doug Evans <dje@google.com>
8245 * NEWS: Mention "set debug dwarf-line".
8246 * dwarf2read.c (dwarf_line_debug): New static global.
8247 (add_include_dir): Add debug dwarf-line support.
8248 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
8249 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
8251 2015-05-27 Doug Evans <dje@google.com>
8253 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
8254 All callers updated.
8255 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
8256 * cp-support.h (cp_lookup_nested_symbol): Update.
8258 2015-05-27 Doug Evans <dje@google.com>
8261 * block.c (block_find_symbol): New function.
8262 (block_find_non_opaque_type): Ditto.
8263 (block_find_non_opaque_type_preferred): Ditto.
8264 * block.h (block_symbol_matcher_ftype): New typedef.
8265 (block_find_symbol): Declare.
8266 (block_find_non_opaque_type): Ditto.
8267 (block_find_non_opaque_type_preferred): Ditto.
8268 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
8269 * psymtab.c (psym_lookup_symbol): Ditto.
8270 * symtab.c (basic_lookup_transparent_type_1): New function.
8271 (basic_lookup_transparent_type): Call it.
8273 2015-05-27 Yao Qi <yao.qi@linaro.org>
8275 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
8276 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
8278 2015-05-27 Yao Qi <yao.qi@linaro.org>
8280 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
8282 (aarch64_record_load_store): Likewise.
8284 2015-05-26 Doug Evans <dje@google.com>
8286 PR c++/18141, c++/18417.
8287 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
8290 2015-05-26 Doug Evans <dje@google.com>
8292 * NEWS: Add entries for command renamings.
8293 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
8295 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
8296 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
8298 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
8299 All callers updated. Fix spelling of DWARF in help text.
8300 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
8302 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
8304 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
8305 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
8306 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
8308 (show_dwarf_always_disassemble): Renamed from
8309 show_dwarf2_always_disassemble. All callers updated.
8310 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
8311 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
8312 "set/show dwarf max-cache-age". Rename
8313 "set/show dwarf2 always-disassemble" to
8314 "set/show dwarf always-disassemble". Rename
8315 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
8316 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
8318 2015-05-26 Doug Evans <dje@google.com>
8321 * python/py-lazy-string.c (stpy_convert_to_value): Use
8322 gdbpy_gdb_memory_error not PyExc_MemoryError.
8323 (gdbpy_create_lazy_string_object): Ditto.
8325 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
8327 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
8329 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
8331 * tui/tui-regs.c (tui_reg_prev_command): New function.
8332 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
8333 * reggroups.c (reggroup_prev): New function.
8334 * reggroups.h (reggroup_prev): Add declaration. Update comment.
8336 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
8337 Yao Qi <yao.qi@linaro.org>
8339 * aarch64-linux-tdep.c: Include linux-record.h and
8341 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
8342 (aarch64_syscall): New enum.
8343 (aarch64_canonicalize_syscall): New function.
8344 (aarch64_all_but_pc_registers_record): New function.
8345 (aarch64_linux_syscall_record): New function.
8346 (aarch64_linux_init_abi): Install AArch64 process record
8347 handler. Update to handle syscall recording.
8348 * aarch64-tdep.c: Include record.h and record-full.h.
8349 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
8350 (struct aarch64_mem_r): Define.
8351 (aarch64_record_result): New enum.
8352 (struct insn_decode_record): Define.
8353 (insn_decode_record): New typedef.
8354 (aarch64_record_data_proc_reg): New function.
8355 (aarch64_record_data_proc_imm): New function.
8356 (aarch64_record_branch_except_sys): New function.
8357 (aarch64_record_load_store): New function.
8358 (aarch64_record_data_proc_simd_fp): New function.
8359 (aarch64_record_asimd_load_store): New function.
8360 (aarch64_record_decode_insn_handler): New function.
8361 (deallocate_reg_mem): New function.
8362 (aarch64_process_record): New function.
8363 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
8365 (aarch64_process_record): New extern declaration.
8366 * configure.tgt: Add linux-record.o to gdb_target_obs.
8367 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
8369 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
8371 * NEWS: Add a note on process record-replay support on aarch64*-linux*
8374 2015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
8376 * amd64-tdep.c: Replace in_function_epilogue_p with
8377 stack_frame_destroyed_p throughout.
8378 * arch-utils.c: Ditto.
8379 * arch-utils.h: Ditto.
8380 * arm-tdep.c: Ditto.
8381 * breakpoint.c: Ditto.
8382 * gdbarch.sh: Ditto.
8383 * hppa-tdep.c: Ditto.
8384 * i386-tdep.c: Ditto.
8385 * mips-tdep.c: Ditto.
8386 * nios2-tdep.c: Ditto.
8387 * rs6000-tdep.c: Ditto.
8388 * s390-linux-tdep.c: Ditto.
8389 * score-tdep.c: Ditto.
8391 * sparc-tdep.c: Ditto.
8392 * sparc-tdep.h: Ditto.
8393 * sparc64-tdep.c: Ditto.
8394 * spu-tdep.c: Ditto.
8395 * tic6x-tdep.c: Ditto.
8396 * tilegx-tdep.c: Ditto.
8397 * xstormy16-tdep.c: Ditto.
8398 * gdbarch.c, gdbarch.h: Re-generated.
8400 2015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8402 * NEWS: Mention 'tui enable' and 'tui disable'.
8403 * tui/tui.c (tui_enable_command): New function.
8404 (tui_disable_command): New function.
8405 (_initialize_tui): New function.
8407 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8409 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
8411 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8413 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
8416 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8418 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
8420 (tui_set_layout_for_display_command): ...here, before calling
8421 tui_set_layout. Only set the layout if gdb has not already
8422 entered the TUI_FAILURE state.
8424 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8426 * tui/tui-layout.c (layout_completer): New function.
8427 (_initialize_tui_layout): Set completer on layout command.
8429 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8431 * tui/tui-layout.c (tui_set_layout): Remove
8432 tui_register_display_type parameter. Remove all checking of this
8433 parameter, and reindent function. Update header comment.
8434 (tui_set_layout_for_display_command): Rename to...
8435 (tui_set_layout_by_name): ...this, and don't check for different
8436 register class types, don't pass a tui_register_display_type to
8437 tui_set_layout. Update header comment.
8438 (layout_names): Remove register set specific names.
8439 * tui/tui-layout.h (tui_set_layout): Remove
8440 tui_register_display_type parameter.
8441 * tui/tui.c (tui_rl_change_windows): Don't pass a
8442 tui_register_display_type to tui_set_layout.
8443 (tui_rl_delete_other_windows): Likewise.
8444 (tui_enable): Likewise.
8445 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
8446 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
8447 (TUI_GENERAL_REGS_NAME): Remove.
8448 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
8449 (TUI_SPECIAL_REGS_NAME): Remove.
8450 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
8451 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
8452 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
8453 (enum tui_register_display_type): Remove.
8454 (struct tui_layout_def): Remove regs_display_type and
8455 float_regs_display_type fields.
8456 (struct tui_data_info): Remove regs_display_type field.
8457 (tui_layout_command): Use new name for
8458 tui_set_layout_for_display_command.
8459 * tui/tui-data.c (layout_def): Don't initialise removed fields.
8460 (tui_clear_win_detail): Don't initialise removed fields of
8462 * tui/tui-regs.c (tui_show_registers): Use new name for
8463 tui_set_layout_for_display_command.
8464 * tui/tui.h (tui_set_layout_for_display_command): Rename
8466 (tui_set_layout_by_name): ...this.
8467 * printcmd.c (display_command): Remove tui related layout call,
8470 2015-05-20 Joel Brobecker <brobecker@adacore.com>
8472 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
8473 (handle_inferior_event): New function.
8475 2015-05-20 Joel Brobecker <brobecker@adacore.com>
8477 * ada-lang.c (to_fixed_array_type): Rename local variable
8478 typename into type_name.
8480 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8482 Fix ASAN crash for gdb.compile/compile.exp.
8483 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
8485 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8487 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
8488 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
8489 * compile/compile-object-load.c (setup_sections, compile_object_load):
8491 * compile/compile.c (compile_to_object): Likewise.
8493 2015-05-16 Doug Evans <xdje42@gmail.com>
8495 * NEWS: Mention support for unbuffered Guile memory ports.
8496 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
8497 (ioscm_lseek_address): Improve overflow calculation.
8498 (gdbscm_memory_port_fill_input): Add assert.
8499 (gdbscm_memory_port_write): Handle unbuffered ports.
8500 Handle large writes identical to Guile's fport_write.
8501 (gdbscm_memory_port_seek): Fix seeking past end check.
8502 (gdbscm_memory_port_close): Handle closing unbuffered port.
8503 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
8504 (ioscm_init_memory_port): Handle unbuffered ports.
8505 (ioscm_reinit_memory_port): Ditto.
8506 (ioscm_init_memory_port): Update size calculation.
8507 (gdbscm_open_memory): Support zero sized ports.
8509 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8511 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
8512 variable compiler warnings.
8514 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8516 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
8518 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8519 Phil Muldoon <pmuldoon@redhat.com>
8521 * NEWS (Changes since GDB 7.9): Add compile print.
8522 * compile/compile-c-support.c (add_code_header, add_code_footer)
8523 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
8524 COMPILE_I_PRINT_VALUE_SCOPE.
8525 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
8526 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
8528 * compile/compile-object-load.c: Include block.h.
8529 (get_out_value_type): New function.
8530 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8531 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
8533 * compile/compile-object-load.h (struct compile_module): Add fields
8534 out_value_addr and out_value_type.
8535 * compile/compile-object-run.c: Include valprint.h and compile.h.
8536 (struct do_module_cleanup): Add fields out_value_addr and
8538 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8539 COMPILE_I_PRINT_VALUE_SCOPE.
8540 (compile_object_run): Propagate out_value_addr and out_value_type.
8541 Pass OUT_VALUE_ADDR.
8542 * compile/compile.c: Include valprint.h.
8543 (compile_print_value, compile_print_command): New functions.
8544 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
8545 (_initialize_compile): Update compile code help text. Install
8546 compile_print_command.
8547 * compile/compile.h (compile_print_value): New prototype.
8548 * defs.h (enum compile_i_scope_types): Add
8549 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
8551 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8553 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
8554 Rely on its parameter count.
8555 (compile_object_load): Replace lookup_minimal_symbol_text by
8556 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
8558 * compile/compile-object-load.h (struct compile_module): Replace
8559 func_addr by func_sym.
8560 * compile/compile-object-run.c: Include block.h.
8561 (compile_object_run): Reset module variable after it is freed. Use
8562 FUNC_SYM instead of FUNC_ADDR. Rely on it.
8564 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8566 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
8567 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
8568 (c_compute_program): Call generate_register_struct after typedefs.
8569 * compile/compile-loc2c.c (push, pushf_register_address)
8570 (pushf_register): Cast to GCC_UINTPTR.
8571 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
8572 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
8573 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
8574 * compile/compile.c (_initialize_compile): Enable warnings for
8577 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8579 * cli/cli-script.c (execute_control_command): Update
8580 eval_compile_command caller.
8581 * compile/compile-object-load.c (compile_object_load): Add parameters
8582 scope and scope_data. Set them.
8583 * compile/compile-object-load.h (struct compile_module): Add fields
8584 scope and scope_data.
8585 (compile_object_load): Add parameters scope and scope_data.
8586 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
8587 scope and scope_data.
8588 (compile_object_run): Propagate the fields scope and scope_data.
8589 * compile/compile.c (compile_file_command, compile_code_command):
8590 Update eval_compile_command callers.
8591 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
8592 * compile/compile.h (eval_compile_command): Add parameter scope_data.
8593 * defs.h (struct command_line): Add field scope_data.
8595 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8597 * printcmd.c (struct format_data): Move it to valprint.h.
8598 (print_command_parse_format, print_value): New functions from ...
8599 (print_command_1): ... here. Call them.
8600 * valprint.h (struct format_data): Move it here from printcmd.c.
8601 (print_command_parse_format, print_value): New declarations.
8603 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8605 * compile/compile-object-load.c (compile_object_load): Add
8606 COMPILE_DEBUG message.
8608 2015-05-15 Jerome Guitton <guitton@adacore.com>
8610 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
8611 index to get element instead of enum value.
8612 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
8613 of index to compute length, but enum values to compute bounds.
8614 (ada_array_length): Use enum position of index instead of enum value.
8615 (pos_atr): Move position computation to...
8616 (ada_evaluate_subexp): Use enum values to compute bounds.
8617 * gdbtypes.c (discrete_position): ...this new function.
8618 * gdbtypes.h (discrete_position): New function declaration.
8619 * valprint.c (val_print_array_elements): Call discrete_position
8620 to handle array indexed by non-contiguous enumeration types.
8622 2015-05-15 Jerome Guitton <guitton@adacore.com>
8624 * ada-lang.c (find_parallel_type_by_descriptive_type):
8625 Go through typedefs during lookup.
8626 (to_fixed_array_type): Add support for non-bit packed arrays
8627 as variable-length fields.
8629 2015-05-15 Pedro Alves <palves@redhat.com>
8630 Simon Marchi <simon.marchi@ericsson.com>
8632 * event-loop.c (gdb_notifier) <next_file_handler,
8633 next_poll_fds_index>: New fields.
8634 (get_next_file_handler_to_handle_and_advance): New function.
8635 (delete_file_handler): If deleting the next file handler to
8636 handle, advance to the next file handler.
8637 (gdb_wait_for_event): Bail early if no event fired. Poll file
8638 handlers in round-robin fashion.
8640 2015-05-15 Pedro Alves <palves@redhat.com>
8642 * linux-tdep.c (linux_find_memory_regions_full): Rename local
8643 'private' to 'priv'.
8645 2015-05-15 Pedro Alves <palves@redhat.com>
8647 * nat/linux-nat.h: Include "target/waitstatus.h".
8649 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
8651 * python/py-unwind.c (struct reg_info): Move out of ...
8652 (struct cached_frame_info): ... this scope.
8653 (pending_frame_object_type, unwind_info_object_type): Make extern.
8655 2015-05-15 Joel Brobecker <brobecker@adacore.com>
8657 * ada-lang.c (ada_value_primitive_packed_val): Make sure
8658 accumSize is never negative.
8660 2015-05-14 Patrick Palka <patrick@parcs.ath.cx>
8662 * tui/tui-command.c: Remove include of <ctype.h>.
8663 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
8665 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
8667 * dwarf2read.c (die_needs_namespace): Return 1 for
8668 DW_TAG_inlined_subroutine.
8670 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8672 * regcache.c (regcache_cpy_no_passthrough): New declaration.
8673 (regcache_cpy_no_passthrough): Make it static, add function comment.
8674 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
8675 (regcache_cpy_no_passthrough): Remove declaration.
8677 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8679 * gdbthread.h (struct thread_control_state): Update comment for
8681 * infcall.c (run_inferior_call): Update comment about
8683 * infcmd.c (get_return_value): Update comment about stop_registers.
8684 (finish_forward): Update comment about proceed_to_finish.
8685 * infrun.c (stop_registers): Remove.
8686 (clear_proceed_status, normal_stop): Remove stop_registers handling.
8687 * infrun.h (stop_registers): Remove.
8689 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8691 * infcall.c (struct dummy_frame_context_saver)
8692 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
8693 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8694 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8696 (call_function_by_hand_dummy): Move discard_cleanups of
8697 inf_status_cleanup before dummy_frame_push. Call
8698 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
8699 Use dummy_frame_context_saver_get_regs instead of stop_registers.
8700 * infcall.h (struct dummy_frame_context_saver)
8701 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8702 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8704 * infcmd.c: Include infcall.h.
8705 (get_return_value): Add parameter ctx_saver, use it instead of
8707 (print_return_value): Add parameter ctx_saver, pass it.
8708 (struct finish_command_continuation_args): Add field ctx_saver.
8709 (finish_command_continuation): Update print_return_value caller.
8710 (finish_command_continuation_free_arg): Free also ctx_saver.
8711 (finish_forward): Call dummy_frame_context_saver_setup.
8712 * inferior.h (struct dummy_frame_context_saver): New declaration.
8713 (get_return_value): Add parameter ctx_saver.
8714 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
8715 get_return_value caller.
8717 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8719 * dummy-frame.c (struct dummy_frame_dtor_list): New.
8720 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
8721 (remove_dummy_frame): Process dtor_list.
8722 (pop_dummy_frame): Process dtor_list.
8723 (register_dummy_frame_dtor): Maintain dtor_list.
8724 (find_dummy_frame_dtor): Handle dtor_list.
8725 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
8728 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8730 * compile/compile-object-run.c (do_module_cleanup): Add parameter
8732 (compile_object_run): Update do_module_cleanup caller.
8733 * dummy-frame.c: Include infcall.h.
8734 (struct dummy_frame): Update dtor comment.
8735 (remove_dummy_frame): Call dtor.
8736 (pop_dummy_frame): Update dtor caller.
8737 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
8740 2015-05-13 Joel Brobecker <brobecker@adacore.com>
8744 2015-05-13 Joel Brobecker <brobecker@adacore.com>
8746 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
8747 Xmethods now being able to specify a result type to that new
8750 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8752 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
8753 first before resizing the window.
8754 * tui/tui.c (tui_enable): Likewise.
8756 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8758 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
8759 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
8760 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
8761 dummy_dtor parameter.
8762 * infcall.h: Include dummy-frame.h.
8763 (call_function_by_hand_dummy_dtor_ftype): Remove.
8764 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
8767 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8770 * top.c (history_size_setshow_var): Change type to signed.
8771 Initialize to -2. Update documentation.
8772 (set_readline_history_size): Define.
8773 (set_history_size_command): Use it. Remove logic for handling
8775 (init_history): Use set_readline_history_size(). Test for a
8776 value of -2 instead of 0 when determining whether to set a
8777 default history size.
8778 (init_main): Decode the argument of the "size" command as a
8779 zuinteger_unlimited.
8781 2015-05-12 Doug Evans <dje@google.com>
8783 * dwarf2read.c (struct file_entry): Tweak comments.
8784 (get_debug_line_section): Tweak comments.
8786 2015-05-12 Don Breazeal <donb@codesourcery.com>
8788 * NEWS: Announce fork support in the RSP and support
8789 for fork debugging in extended mode.
8791 2015-05-12 Don Breazeal <donb@codesourcery.com>
8793 * remote.c (remote_insert_fork_catchpoint): New function.
8794 (remote_remove_fork_catchpoint): New function.
8795 (remote_insert_vfork_catchpoint): New function.
8796 (remote_remove_vfork_catchpoint): New function.
8797 (pending_fork_parent_callback): New function.
8798 (remove_new_fork_child): New function.
8799 (remote_update_thread_list): Call remote_notif_get_pending_events
8800 and remove_new_fork_child.
8801 (extended_remote_kill): Kill fork child when killing the
8802 parent before follow_fork completes.
8803 (init_extended_remote_ops): Initialize target vector with
8804 new fork catchpoint functions.
8806 2015-05-12 Don Breazeal <donb@codesourcery.com>
8808 * remote.c (remove_vfork_event_p): New function.
8809 (remote_follow_fork): Add vfork event type to event checking.
8810 (remote_parse_stop_reply): New stop reasons "vfork" and
8811 "vforkdone" for RSP 'T' Stop Reply Packet.
8813 2015-05-12 Don Breazeal <donb@codesourcery.com>
8815 * linux-nat.c (linux_nat_ptrace_options): New function.
8816 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
8817 Call linux_nat_ptrace_options and use different argument to
8818 linux_enable_event_reporting.
8819 (_initialize_linux_nat): Delete call to
8820 linux_ptrace_set_additional_flags.
8821 * nat/linux-ptrace.c (current_ptrace_options): Rename to
8822 supported_ptrace_options.
8823 (additional_flags): Delete variable.
8824 (linux_check_ptrace_features): Use supported_ptrace_options.
8825 (linux_test_for_tracesysgood, linux_test_for_tracefork):
8826 Likewise, and remove additional_flags check.
8827 (linux_enable_event_reporting): Change 'attached' argument to
8828 'options'. Use supported_ptrace_options.
8829 (ptrace_supports_feature): Change comment. Use
8830 supported_ptrace_options.
8831 (linux_ptrace_set_additional_flags): Delete function.
8832 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
8833 Delete function prototype.
8834 * remote.c (remote_fork_event_p): New function.
8835 (remote_detach_pid): New function.
8836 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
8837 if doing detach-on-fork.
8838 (remote_follow_fork): New function.
8839 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
8840 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
8841 (init_extended_remote_ops): Initialize to_follow_fork.
8843 2015-05-12 Don Breazeal <donb@codesourcery.com>
8845 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
8846 from static to extern.
8847 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
8848 * remote.c (anonymous enum): <PACKET_fork_event_feature,
8849 * PACKET_vfork_event_feature>: New enumeration constants.
8850 (remote_protocol_features): Add table entries for new packets.
8851 (remote_query_supported): Add new feature queries to qSupported
8854 2015-05-12 Gary Benson <gbenson@redhat.com>
8856 * remote.c (remote_add_inferior): Call exec_file_locate_attach
8857 for fake PIDs as well as real ones.
8858 (remote_pid_to_exec_file): Send empty annex if PID is fake.
8860 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
8862 * NEWS (Python Scripting): Mention the new gdb.Value methods.
8863 * python/py-value.c (valpy_reference_value): New function.
8864 (valpy_const_value): Likewise.
8865 (value_object_methods): Add new methods.
8866 * value.c (make_cv_value): New function.
8867 * value.h (make_cv_value): Declare.
8869 2015-05-08 Yao Qi <yao@codesourcery.com>
8870 Sandra Loosemore <sandra@codesourcery.com>
8872 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
8873 to 'lh->include_dirs' before accessing to it.
8874 (psymtab_include_file_name): Likewise.
8875 (dwarf_decode_lines_1): Likewise.
8876 (dwarf_decode_lines): Likewise.
8877 (file_file_name): Likewise.
8879 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8881 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
8882 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
8883 (nios2_linux_rt_sigreturn_init): Adjust base address of
8886 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8888 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
8889 "trap 31" as the breakpoint instruction on all targets.
8891 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8893 * infcmd.c (print_return_value): Remove unused declaration.
8895 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8897 * dwarf2read.c (attr_to_dynamic_prop)
8898 <DW_AT_data_member_location>: Use read_type_die isntead of
8901 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8903 * ada-lang.c (ada_convert_actual): Add handling of formals
8904 passed inside an aligner type.
8906 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8908 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
8910 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
8913 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
8914 Print xmethod matcher status.
8916 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
8918 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
8919 register in the regcache when treating the PSWM register, and vice
8922 2015-05-07 Gary Benson <gbenson@redhat.com>
8924 * linux-thread-db.c (struct thread_db_info)
8925 <td_ta_map_id2thr_p>: Remove field.
8926 (try_thread_db_load_1): Remove initialization for the above.
8928 2015-05-07 Gary Benson <gbenson@redhat.com>
8930 * linux-thread-db.c (struct thread_db_info)
8931 <td_thr_validate_p>: Remove field.
8932 (try_thread_db_load_1): Remove initialization for the above.
8934 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8936 * compile/compile-object-load.c (compile_object_load): Support
8939 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8941 * compile/compile.c (compile_to_object): Make the cmd_string parameter
8942 const. Use new variables for the const compatibility.
8943 (eval_compile_command): Make the cmd_string parameter const.
8944 * compile/compile.h (eval_compile_command): Make the cmd_string
8947 2015-05-06 Joel Brobecker <brobecker@adacore.com>
8949 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
8951 * top.c (deprecated_init_ui_hook): Delete.
8952 (gdb_init): Remove handling of deprecated_init_ui_hook.
8953 * interps.c (clear_interpreter_hooks): Remove handling of
8954 deprecated_init_ui_hook.
8955 * main.c (captured_main): Update comment.
8957 2015-05-06 Joel Brobecker <brobecker@adacore.com>
8959 * solib.c (_initialize_solib): Add "info dll" alias creation.
8960 * windows-nat.c (set_windows_aliases): Delete.
8961 (_initialize_windows_nat): Remove deprecated_init_ui_hook
8963 * NEWS: Add news entry about "info dll" now being available
8966 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8968 * ada-lang.c (value_assign_to_component): Reformat and improve
8969 documentation. Remove all trailing spaces.
8971 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8973 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8974 Stop counting inlined frames as soon as an out-of-line function
8977 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
8979 * dwarf2read.c (inherit_abstract_dies): Skip
8980 DW_TAG_GNU_call_site dies while inheriting children of an
8981 abstract DIE into a scope.
8982 (read_lexical_block_scope): Inherit abstract DIE's for
8985 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8987 * ada-valprint.c (val_print_packed_array_elements): Delete
8988 variable "len". Add a type-length check when comparing two
8989 consecutive elements of the array. Use the element's actual
8990 length in call to value_contents_eq.
8991 * ada-lang.c (ada_value_primitive_packed_val): Always return
8992 a value whose type has been resolved.
8994 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8996 * ada-lang.c (ada_value_primitive_packed_val): Recompute
8997 BIT_SIZE and LEN if the size of the resolved type is smaller
8998 than BIT_SIZE * HOST_CHAR_BIT.
9000 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9002 * ada-lang.c (ada_value_primitive_packed_val): Use a more
9003 correct address in call to value_at. Adjust call to
9004 value_address accordingly.
9006 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9008 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
9011 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9013 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
9014 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
9016 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
9017 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
9018 (resolve_dynamic_type_internal): Set pinfo.valaddr.
9019 Add handling of addr_stack->valaddr.
9020 (resolve_dynamic_type): Add "valaddr" parameter.
9021 Set pinfo.valaddr field.
9022 * ada-lang.c (ada_discrete_type_high_bound): Update call to
9023 resolve_dynamic_type.
9024 (ada_discrete_type_low_bound): Likewise.
9025 * findvar.c (default_read_var_value): Likewise.
9026 * value.c (value_from_contents_and_address): Likewise.
9028 2015-05-05 Joel Brobecker <brobecker@adacore.com>
9030 * gdbtypes.c (resolve_dynamic_array): Use
9031 create_array_type_with_stride instead of create_array_type.
9033 2015-04-30 DJ Delorie <dj@redhat.com>
9035 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
9038 2015-04-29 Doug Evans <dje@google.com>
9041 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
9042 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
9043 EVAL_AVOID_SIDE_EFFECTS for xmethods.
9044 * extension-priv.h (struct extension_language_ops)
9045 <get_xmethod_result_type>: New member.
9046 * extension.c (get_xmethod_result_type): New function.
9047 * extension.h (get_xmethod_result_type): Declare.
9048 * python/py-xmethods.c (get_result_type_method_name): New static
9050 (py_get_result_type_method_name): Ditto.
9051 (gdbpy_get_xmethod_result_type): New function.
9052 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
9053 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
9054 * python/python.c (python_extension_ops): Add
9055 gdbpy_get_xmethod_result_type.
9056 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
9057 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
9059 (value_x_unop): Ditto.
9060 * value.c (result_type_of_xmethod): New function.
9061 * value.h (result_type_of_xmethod): Declare.
9063 2015-04-29 Gary Benson <gbenson@redhat.com>
9065 * solib.c (solib_find_1): Allow fd argument to be NULL.
9066 (exec_file_find): Update comment.
9067 (solib_find): Likewise.
9068 * exec.c (exec_file_locate_attach): Use NULL as fd
9069 argument to exec_file_find to avoid having to close
9071 * infrun.c (follow_exec): Likewise.
9073 2015-04-28 Doug Evans <dje@google.com>
9076 * python/lib/gdb/printing.py (register_pretty_printer): Handle
9077 name or __name__ attributes. Handle gdb module as first argument.
9079 2015-04-28 Doug Evans <dje@google.com>
9082 * python/py-prettyprint.c (print_children): Verify result of children
9083 iterator. Provide better error message.
9084 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
9085 * python/python.c (gdbpy_print_python_errors_p): New function.
9087 2015-04-28 Doug Evans <dje@google.com>
9089 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
9091 2015-04-28 Sasha Smundak <asmundak@google.com>
9093 * NEWS: Mention gdb.Type.optimized_out method.
9094 * python/py-type.c (typy_optimized_out): New function.
9096 2015-04-28 John Baldwin <jhb@FreeBSD.org>
9098 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9100 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9102 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
9103 (initialize_utils): Move call of init_page_info() to ...
9104 * top.c (gdb_init): ... here.
9106 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9108 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
9109 (tui_sigwinch_handler): Still update our idea of
9110 the terminal's width and height even when TUI is not active.
9112 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9114 * utils.h (set_screen_width_and_height): Declare.
9115 * utils.c (set_screen_width_and_height): Define.
9116 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
9118 2015-04-28 Gary Benson <gbenson@redhat.com>
9120 * infrun.c (solist.h): New include.
9121 (follow_exec): Use exec_file_find to prefix execd_pathname
9124 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9126 * tui/tui-source.c (tui_set_source_content): Avoid calling
9127 strcpy() when offset is 0.
9129 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9132 * tui/tui-data.c (tui_free_window): Don't free the locator
9133 window when passed an SRC_WIN or a DISASSEM_WIN.
9135 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
9137 * tui/tui-data.h (struct tui_win_element): Forward-declare.
9138 (tui_win_content): Move declaration.
9139 (struct tui_gen_win_info): Give 'content' field the
9140 type tui_win_content.
9141 * tui/tui-data.c (init_content_element): Remove redundant and
9143 (tui_add_content_elements): Remove erroneous cast.
9144 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
9146 (tui_get_begin_asm_address): Likewise.
9147 * tui/tui-regs.c (tui_show_registers): Likewise.
9148 (tui_show_register_group): Likewise.
9149 (tui_display_registers_from): Likewise.
9150 (tui_check_register_values): Likewise.
9151 * tui/tui-source.c (tui_set_source_content): Likewise.
9152 (tui_set_source_content_nil): Likewise.
9153 (tui_source_is_displayed): Likewise.
9154 * tui/tui-stack.c (tui_show_locator_content): Likewise.
9155 (tui_set_locator_fullname): Likewise.
9156 (tui_set_locator_info): Likewise.
9157 (tui_show_frame_info): Likewise.
9158 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
9159 (tui_show_source_line): Likewise.
9160 (tui_horizontal_source_scroll): Likewise.
9161 (tui_update_breakpoint_info): Likewise.
9162 (tui_set_exec_info_content): Likewise.
9163 (tui_show_exec_info_content): Likewise.
9164 (tui_alloc_source_buffer): Likewise.
9165 (tui_line_is_displayed): Likewise.
9166 (tui_addr_is_displayed): Likewise.
9168 2015-04-27 John Baldwin <jhb@FreeBSD.org>
9170 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
9171 event if PL_FLAG_EXEC is set.
9172 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
9173 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
9174 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
9175 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
9176 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
9178 2015-04-27 John Baldwin <jhb@FreeBSD.org>
9180 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
9181 [TDP_RFPPWAIT] New variable fbsd_pending_children.
9182 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
9183 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
9184 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
9185 [PT_LWPINFO] (fbsd_wait): New function.
9186 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
9187 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
9188 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
9189 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
9190 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
9191 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
9192 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
9193 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
9194 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
9196 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
9197 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
9198 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
9199 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
9200 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
9201 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
9202 Set "to_post_attach" to "fbsd_post_attach".
9204 2015-04-27 John Baldwin <jhb@FreeBSD.org>
9206 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
9207 (fbsd_find_memory_regions): Mark static.
9208 (fbsd_nat_add_target): New function.
9209 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
9210 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
9211 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
9212 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
9213 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
9214 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
9216 2015-04-27 Gary Benson <gbenson@redhat.com>
9218 * objfiles.c (allocate_objfile): Do not attempt to expand name
9219 if name is a "target:" filename.
9220 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
9221 to load auto-load scripts for objfiles with "target:" filenames.
9223 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9225 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
9226 (enum s390_vector_abi_kind): New enum.
9227 (struct gdbarch_tdep)<vector_abi>: New field.
9228 (s390_effective_inner_type): Add parameter min_size. Stop
9229 unwrapping if the inner type is smaller than min_size.
9230 (s390_function_arg_float): Adjust call to
9231 s390_effective_inner_type.
9232 (s390_function_arg_vector): New function.
9233 (s390_function_arg_integer): Adjust comment.
9234 (struct s390_arg_state)<vr>: New field.
9235 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
9236 arguments according to vector ABI when appropriate.
9237 (s390_push_dummy_call): Initialize the argument state's field
9238 'vr'. Adjust calls to s390_handle_arg.
9239 (s390_register_return_value): Handle vector return values.
9240 (s390_return_value): Apply the "register" return value convention
9241 to a vector when appropriate.
9242 (s390_gdbarch_init): Initialize tdep->vector_abi.
9243 * NEWS: Announce S390 vector ABI support.
9245 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9247 * s390-linux-tdep.c (s390_return_value_convention): Remove
9248 function. Inline its logic...
9249 (s390_return_value): ...here. Instead, move the handling of the
9250 "register" return value convention...
9251 (s390_register_return_value): ...here. New function.
9253 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9256 (is_float_singleton): Remove function. Move the "singleton" part
9258 (s390_effective_inner_type): ...here. New function.
9259 (is_float_like): Remove function. Inline its logic...
9260 (s390_function_arg_float): ...here.
9261 (is_pointer_like, is_integer_like, is_struct_like): Remove
9262 functions. Inline their logic...
9263 (s390_function_arg_integer): ...here.
9264 (s390_function_arg_pass_by_reference): Remove function.
9265 (extend_simple_arg): Remove function.
9266 (alignment_of): Remove function.
9267 (struct s390_arg_state): New structure.
9268 (s390_handle_arg): New function.
9269 (s390_push_dummy_call): Move parameter placement logic to the new
9270 function s390_handle_arg. Call it for calculating the stack area
9271 sizes first, and again for actually writing the parameters.
9273 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9275 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
9276 false if the argument is zero.
9278 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
9280 * ada-lang.c (template_to_static_fixed_type): Return input type
9281 when it is already fixed. Cache the input type itself when not
9282 creating a static fixed copy. Make it explicit that we never
9283 molestate the input type.
9284 * gdbtypes.c (resolve_dynamic_struct): Reset the
9285 TYPE_TARGET_TYPE field for resolved copies.
9287 2015-04-27 Joel Brobecker <brobecker@adacore.com>
9289 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
9290 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
9291 (template_to_static_fixed_type): Call ada_check_typedef only
9294 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
9296 * cli/cli-dump.c (srec_dump_command): Add internationalization
9298 (ihex_dump_command): Likewise.
9299 (tekhex_dump_command): Likewise.
9300 (binary_dump_command): Likewise.
9301 (binary_append_command): Likewise.
9303 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
9305 * cli/cli-dump.c (verilog_cmdlist): New variable.
9306 (dump_verilog_memory): New function.
9307 (dump_verilog_value): New function.
9308 (verilog_dump_command): New function.
9309 (_initialize_cli_dump): Add new commands to support verilog dump
9311 * NEWS: Add entry for "dump verilog".
9313 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
9315 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
9316 descriptive type when there is none.
9318 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
9320 * tui/tui-win.c (tui_async_resize_screen): Call
9321 rl_resize_terminal().
9323 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
9325 * windows-nat.c (handle_output_debug_string): Don't change
9326 current_event.dwThreadId.
9327 (get_windows_debug_event): Use thread_id, rather than relying on
9328 current_event.dwThreadId being changed.
9330 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
9332 * windows-nat.c (windows_continue): Report an error if
9333 ContinueDebugEvent() fails.
9335 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
9337 * windows-nat.c (windows_resume): Fix misspelling in debug output.
9339 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
9341 * windows-nat.c (get_windows_debug_event): Replace retval with
9342 thread_id throughout. Update stale comment.
9344 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
9346 * windows-nat.c (get_windows_debug_event): Don't use ternary
9347 conditional operator.
9349 2015-04-21 Pierre Muller <muller@sourceware.org>
9352 p-exp.y (yylex): Reorganize code to return the matched pattern
9353 for a field of this.
9355 2015-04-21 Gary Benson <gbenson@redhat.com>
9357 * common/fileio.h (fileio_to_host_openflags): New declaration.
9358 * common/fileio.c (fcntl.h): New include.
9359 (fileio_to_host_openflags): New function, factored out from...
9360 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
9363 2015-04-21 Kevin Buettner <kevinb@redhat.com>
9365 * rl78-tdep.c (RL78_SP_ADDR): Define.
9366 (opc_reg_to_gdb_regnum): New static function.
9367 (rl78_analyze_prologue): Recognize instructions forming slightly
9368 more interesting prologues.
9370 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
9373 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9374 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9375 TYPE_CODE_REF types so that they are not considered as dynamic
9376 depending on the referenced type.
9377 (resolve_dynamic_type_internal): Likewise.
9379 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
9382 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9383 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9384 "top_level" parameter.
9385 (resolve_dynamic_type_internal): Remove the unused "top_level"
9386 parameter. Update call to is_dynamic_type_internal.
9387 (is_dynamic_type): Update call to is_dynamic_type_internal.
9388 (resolve_dynamic_range): Update call to
9389 resolve_dynamic_type_internal.
9390 (resolve_dynamic_union): Likewise.
9391 (resolve_dynamic_struct): Likewise.
9392 (resolve_dynamic_type): Likewise.
9394 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
9396 * breakpoint.c (update_dprintf_command_list): Remove duplicated
9399 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
9401 * reply_mig_hack.awk: Robustify parsing.
9403 * reply_mig_hack.awk: Don't bother to declare an intermediate
9404 function pointer variable.
9406 2015-04-17 Doug Evans <dje@google.com>
9408 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
9409 to "exec_displacement" to avoid confusion with inner use of the name.
9411 2015-04-17 Pedro Alves <palves@redhat.com>
9413 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
9414 if HW point of TYPE isn't supported.
9416 2015-04-17 Yao Qi <yao.qi@linaro.org>
9417 Pedro Alves <palves@redhat.com>
9419 * target.h (target_can_use_hardware_watchpoint): Update comments.
9420 Remove trailing ";".
9422 2015-04-17 Gary Benson <gbenson@redhat.com>
9424 * remote.c (remote_add_inferior): New argument try_open_exec.
9425 If nonzero, attempt to open the inferior's executable file as
9426 the main executable if no main executable is open already.
9427 All callers updated.
9428 * NEWS: Mention that GDB now supports automatic location and
9429 retrieval of executable + files from remote targets.
9431 2015-04-17 Gary Benson <gbenson@redhat.com>
9433 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
9434 * remote.c (PACKET_qXfer_exec_file): Likewise.
9435 (remote_protocol_features): Register the
9436 "qXfer:exec-file:read" feature.
9437 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
9438 (remote_pid_to_exec_file): New function.
9439 (init_remote_ops): Initialize to_pid_to_exec_file.
9440 (_initialize_remote): Register new "set/show remote
9441 pid-to-exec-file-packet" command.
9442 * NEWS: Announce new qXfer:exec-file:read packet.
9444 2015-04-17 Gary Benson <gbenson@redhat.com>
9446 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
9448 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
9449 New function, factored out from...
9450 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
9452 2015-04-17 Gary Benson <gbenson@redhat.com>
9454 * exec.c (solist.h): New include.
9455 (exec_file_locate_attach): Prefix absolute executable
9456 paths with gdb_sysroot if set.
9457 * NEWS: Mention that executable paths may be prepended
9460 2015-04-17 Gary Benson <gbenson@redhat.com>
9462 * solist.h (exec_file_find): New declaration.
9463 * solib.c (solib_find_1): New function, factored out from...
9464 (solib_find): ...here.
9465 (exec_file_find): New function.
9467 2015-04-17 Gary Benson <gbenson@redhat.com>
9469 * gdbcore.h (exec_file_locate_attach): New declaration.
9470 * exec.c (exec_file_locate_attach): New function, factored
9472 * infcmd.c (attach_command_post_wait): ...here.
9474 2015-04-17 Mike Frysinger <vapier@gentoo.org>
9476 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
9478 2015-04-16 Yao Qi <yao.qi@linaro.org>
9480 * infrun.c (maybe_software_singlestep): Declare.
9481 (displaced_step_fixup): Call maybe_software_singlestep.
9483 2015-04-15 Doug Evans <dje@google.com>
9485 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
9487 2015-04-15 Doug Evans <dje@google.com>
9489 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
9491 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
9493 * python/lib/gdb/command/unwinders.py: Add parentheses.
9495 2015-04-15 Yao Qi <yao.qi@linaro.org>
9497 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
9499 2015-04-15 Yao Qi <yao.qi@linaro.org>
9501 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
9503 2015-04-15 Yao Qi <yao.qi@linaro.org>
9505 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
9506 dsc->insn_size instead of 4.
9508 2015-04-14 Gary Benson <gbenson@redhat.com>
9510 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
9511 * minidebug.c (lzma_stat): Likewise.
9512 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
9513 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
9515 2015-04-13 Stan Shebs <stanshebs@google.com>
9517 * MAINTAINERS: Update my email address.
9519 2015-04-13 John Baldwin <jhb@FreeBSD.org>
9521 * amd64-tdep.c (amd64_target_description): New function.
9522 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
9523 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
9524 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9525 x86 extended save area.
9526 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9527 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
9528 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
9529 (_initialize_amd64fbsd_nat): Set "to_read_description" to
9530 "amd64fbsd_read_description".
9531 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
9532 (amd64fbsd_supply_xstateregset): New function.
9533 (amd64fbsd_collect_xstateregset): New function.
9534 Add "amd64fbsd_xstateregset".
9535 (amd64fbsd_iterate_over_regset_sections): New function.
9536 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
9537 "I386_FBSD_XSAVE_XCR0_OFFSET".
9538 Add "iterate_over_regset_sections" gdbarch method.
9539 Add "core_read_description" gdbarch method.
9540 * i386-tdep.c (i386_target_description): New function.
9541 * i386-tdep.h: Export i386_target_description and tdesc_i386.
9542 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
9543 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9544 x86 extended save area.
9545 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9546 * i386bsd-nat.h: Export i386bsd_xsave_len.
9547 * i386fbsd-nat.c (i386fbsd_read_description): New function.
9548 (_initialize_i386fbsd_nat): Set "to_read_description" to
9549 "i386fbsd_read_description".
9550 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
9551 (i386fbsd_core_read_description): New function.
9552 (i386fbsd_supply_xstateregset): New function.
9553 (i386fbsd_collect_xstateregset): New function.
9554 Add "i386fbsd_xstateregset".
9555 (i386fbsd_iterate_over_regset_sections): New function.
9556 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
9557 "I386_FBSD_XSAVE_XCR0_OFFSET".
9558 Add "iterate_over_regset_sections" gdbarch method.
9559 Add "core_read_description" gdbarch method.
9560 * i386fbsd-tdep.h: New file.
9562 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9564 * NEWS (Changes since GDB 7.9): Add removed -xdb.
9565 * breakpoint.c (command_line_is_silent): Remove xdb_commands
9567 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
9569 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
9571 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
9573 * defs.h (xdb_commands): Remove declaration.
9574 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
9575 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
9576 * infcmd.c (run_no_args_command, go_command): Remove.
9577 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
9578 * infrun.c (xdb_handle_command): Remove.
9579 (_initialize_infrun): Remove xdb_commands for lz and z.
9580 * main.c (xdb_commands): Remove variable.
9581 (captured_main): Remove "xdb" from long_options.
9582 (print_gdb_help): Remove --xdb from help.
9583 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
9584 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
9585 * stack.c (backtrace_full_command, args_plus_locals_info)
9586 (current_frame_command): Remove.
9587 (_initialize_stack): Remove xdb_commands for t, T and l.
9588 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
9589 * thread.c (_initialize_thread): Remove xdb_commands condition.
9590 * tui/tui-layout.c (tui_toggle_layout_command)
9591 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
9592 (_initialize_tui_layout): Remove xdb_commands for td and ts.
9593 * tui/tui-regs.c (tui_scroll_regs_forward_command)
9594 (tui_scroll_regs_backward_command): Remove.
9595 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
9596 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
9597 (_initialize_tui_win): Remove xdb_commands for U and w.
9598 * utils.c (pagination_on_command, pagination_off_command): Remove.
9599 (initialize_utils): Remove xdb_commands for am and sm.
9601 2015-04-10 Pedro Alves <palves@redhat.com>
9603 * infrun.c (displaced_step_fixup): Switch to the event ptid
9604 earlier. If the thread stopped for a watchpoint and the
9605 target/arch has non-continuable watchpoints, cancel the displaced
9607 (resume): Don't start a displaced step if in-line step-over info
9610 2015-04-10 Pedro Alves <palves@redhat.com>
9612 * infrun.c (displaced_step_in_progress): New function.
9613 (do_target_resume): Advise target to report all signals if
9616 2015-04-10 Pedro Alves <palves@redhat.com>
9619 * infrun.c (process_event_stop_test): Don't assume a step-resume
9620 is set if tp->stepped_breakpoint is true.
9622 2015-04-10 Yao Qi <yao.qi@linaro.org>
9624 * arm-tdep.c (install_alu_reg): Update comment.
9625 (thumb_copy_alu_reg): Remove local variable rn. Update
9626 debugging message. Use r2 instead of r1 in the modified
9629 2015-04-10 Pedro Alves <palves@redhat.com>
9632 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
9633 linux_displaced_step_location as gdbarch_displaced_step_location
9635 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
9636 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9637 * linux-tdep.c (linux_displaced_step_location): New function,
9638 based on ppc_linux_displaced_step_location.
9639 * linux-tdep.h (linux_displaced_step_location): New declaration.
9640 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
9641 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
9643 (ppc_linux_init_abi): Install linux_displaced_step_location as
9644 gdbarch_displaced_step_location hook, even without Cell/B.E..
9645 (_initialize_ppc_linux_tdep): Don't install
9646 ppc_linux_inferior_created as inferior_created observer.
9647 * s390-linux-tdep.c (s390_gdbarch_init): Install
9648 linux_displaced_step_location as gdbarch_displaced_step_location
9651 2015-04-09 Gary Benson <gbenson@redhat.com>
9653 * common/common-remote-fileio.h: Rename to...
9654 * common/fileio.h: ...this. Update all references.
9655 (remote_fileio_to_fio_error): Rename to...
9656 (host_to_fileio_error): ...this.
9657 (remote_fileio_to_be): Rename to...
9658 (host_to_bigendian): ...this. Update all callers.
9659 (remote_fileio_to_fio_uint): Rename to...
9660 (host_to_fileio_uint): ...this. Update all callers.
9661 (remote_fileio_to_fio_time): Rename to...
9662 (host_to_fileio_time): ...this. Update all callers.
9663 (remote_fileio_to_fio_stat): Rename to...
9664 (host_to_fileio_stat): ...this.
9665 Update all references.
9666 * common/common-remote-fileio.c: Rename to...
9667 * common/fileio.c: ...this. Update all references.
9668 (remote_fileio_to_fio_error): Rename to...
9669 (host_to_fileio_error): ...this. Update all callers.
9670 (remote_fileio_mode_to_target): Rename to...
9671 (fileio_mode_pack): ...this. Update all callers.
9672 (remote_fileio_to_fio_mode): Rename to...
9673 (host_to_fileio_mode): ...this. Update all callers.
9674 (remote_fileio_to_fio_ulong): Rename to...
9675 (host_to_fileio_ulong): ...this. Update all callers.
9676 (remote_fileio_to_fio_stat): Rename to...
9677 (host_to_fileio_stat): ...this. Update all callers.
9679 2015-04-09 Andy Wingo <wingo@igalia.com>
9681 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
9682 (frame_functions): Bind gdbscm_frame_read_register to
9683 frame-read-register.
9684 * guile/lib/gdb.scm (frame-read-register): Export.
9686 2015-04-09 Gary Benson <gbenson@redhat.com>
9688 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
9690 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
9691 New function, factored out the named functions below.
9692 * inf-child.c (gdb/fileio.h): Remove include.
9693 (common-remote-fileio.h): New include.
9694 (inf_child_errno_to_fileio_error): Remove function. Update
9695 all callers to use remote_fileio_to_fio_error.
9696 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
9698 2015-04-09 Andy Wingo <wingo@igalia.com>
9700 * MAINTAINERS (Write After Approval): Add Andy Wingo.
9702 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
9704 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
9705 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
9706 * configure: Regenerated.
9708 2015-04-09 Pedro Alves <palves@redhat.com>
9710 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
9711 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
9712 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
9713 * gnulib/import/Makefile.am: Update.
9714 * gnulib/import/Makefile.in: Update.
9715 * gnulib/import/m4/gnulib-cache.m4: Update.
9716 * gnulib/import/m4/gnulib-comp.m4: Update.
9717 * gnulib/import/m4/strtok_r.m4: New file.
9718 * gnulib/import/strtok_r.c: New file.
9720 2015-04-09 Pedro Alves <palves@redhat.com>
9722 * gnulib/update-gnulib.sh (aclocal version check): Filter out
9723 "called too early to check prototype".
9725 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
9728 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
9729 use a caching mechanism. Adjust comments and code to reflect
9730 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
9731 (cmdpy_completer_handle_brkchars): Adjust call to
9732 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
9733 (cmdpy_completer): Likewise.
9735 2015-04-08 Yao Qi <yao.qi@linaro.org>
9737 * spu-tdep.c (spu_gdbarch_init): Don't call
9738 set_gdbarch_cannot_step_breakpoint.
9740 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
9742 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
9744 2015-04-07 Pedro Alves <palves@redhat.com>
9746 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
9747 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
9748 (delete_exited_threads): New declaration.
9749 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
9750 * linux-nat.c (linux_nat_update_thread_list): New function.
9751 (linux_nat_add_target): Install it.
9752 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
9753 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
9754 (delete_exited_threads): New function.
9756 2015-04-07 Pedro Alves <pedro@codesourcery.com>
9758 * infrun.c (resume) <displaced stepping debug output>: Get the
9759 leader thread's regcache, not resume_ptid's.
9761 2015-04-06 Doug Evans <xdje42@gmail.com>
9763 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
9765 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
9766 Include symbol domain in debugging output.
9768 2015-04-06 Pedro Alves <palves@redhat.com>
9769 Bernd Edlinger <bernd.edlinger@hotmail.de>
9771 * configure.ac: Remove the mingw32-specific stub-termcap.o
9772 fallback, and instead fallback to the stub termcap on all hosts.
9773 * configure: Regenerate.
9774 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
9777 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9779 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9780 "top_level" parameter.
9781 (resolve_dynamic_type_internal): Remove the unused "top_level"
9782 parameter. Update call to is_dynamic_type_internal.
9783 (is_dynamic_type): Update call to is_dynamic_type_internal.
9784 (resolve_dynamic_range): Update call to
9785 resolve_dynamic_type_internal.
9786 (resolve_dynamic_union): Likewise.
9787 (resolve_dynamic_struct): Likewise.
9788 (resolve_dynamic_type): Likewise.
9790 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9792 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9793 TYPE_CODE_REF types so that they are not considered as dynamic
9794 depending on the referenced type.
9795 (resolve_dynamic_type_internal): Likewise.
9797 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
9799 * Makefile.in (top_srcdir): New.
9800 * configure: Regenerated.
9802 2015-04-02 Gary Benson <gbenson@redhat.com>
9804 * NEWS: Announce the new default sysroot of "target:".
9806 2015-04-02 Gary Benson <gbenson@redhat.com>
9808 * main.c (captured_main): Set gdb_sysroot to "target:"
9809 if not otherwise set.
9811 2015-04-02 Gary Benson <gbenson@redhat.com>
9813 * exec.c (exec_file_attach): Support "target:" filenames.
9815 2015-04-02 Gary Benson <gbenson@redhat.com>
9817 * solib.c (solib_find): Strip "target:" prefix from sysroot
9818 if accessing local files.
9820 2015-04-02 Gary Benson <gbenson@redhat.com>
9822 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
9823 checks and error messages.
9825 2015-04-02 Gary Benson <gbenson@redhat.com>
9827 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
9828 (remote_filename_p): Remove declaration.
9829 (remote_bfd_open): Likewise.
9830 * remote.c (remote_bfd_iovec_open): Remove function.
9831 (remote_bfd_iovec_close): Likewise.
9832 (remote_bfd_iovec_pread): Likewise.
9833 (remote_bfd_iovec_stat): Likewise.
9834 (remote_filename_p): Likewise.
9835 (remote_bfd_open): Likewise.
9836 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
9837 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
9838 (gdb_bfd_open_maybe_remote): Remove function.
9839 (symfile_bfd_open): Replace remote filename check with
9840 target filename check.
9841 (reread_symbols): Use gdb_bfd_open.
9842 * build-id.c (gdbcore.h): New include.
9843 (build_id_to_debug_bfd): Use gdb_bfd_open.
9844 * infcmd.c (attach_command_post_wait): Remove remote filename
9846 * solib.c (solib_find): Replace remote-specific handling with
9847 target-specific handling. Update comments where necessary.
9848 (solib_bfd_open): Replace remote-specific handling with
9849 target-specific handling.
9850 (gdb_sysroot_changed): New function.
9851 (_initialize_solib): Call the above when gdb_sysroot changes.
9852 * windows-tdep.c (gdbcore.h): New include.
9853 (windows_xfer_shared_library): Use gdb_bfd_open.
9855 2015-04-02 Gary Benson <gbenson@redhat.com>
9857 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
9858 (is_target_filename): New declaration.
9859 (gdb_bfd_has_target_filename): Likewise.
9860 (gdb_bfd_open): Update documentation comment.
9861 * gdb_bfd.c (target.h): New include.
9862 (gdb/fileio.h): Likewise.
9863 (is_target_filename): New function.
9864 (gdb_bfd_has_target_filename): Likewise.
9865 (fileio_errno_to_host): Likewise.
9866 (gdb_bfd_iovec_fileio_open): Likewise.
9867 (gdb_bfd_iovec_fileio_pread): Likewise.
9868 (gdb_bfd_iovec_fileio_close): Likewise.
9869 (gdb_bfd_iovec_fileio_fstat): Likewise.
9870 (gdb_bfd_open): Use target fileio to access paths prefixed
9871 with "target:" where necessary.
9873 2015-04-02 Gary Benson <gbenson@redhat.com>
9875 * target.h (struct target_ops) <to_filesystem_is_local>:
9877 (target_filesystem_is_local): New macro.
9878 * target-delegates.c: Regenerate.
9879 * remote.c (remote_filesystem_is_local): New function.
9880 (init_remote_ops): Initialize to_filesystem_is_local.
9882 2015-04-02 Gary Benson <gbenson@redhat.com>
9884 * target.h (struct target_ops) <to_fileio_fstat>: New field.
9885 (target_fileio_fstat): New declaration.
9886 * target.c (target_fileio_fstat): New function.
9887 * inf-child.c (inf_child_fileio_fstat): Likewise.
9888 (inf_child_target): Initialize to_fileio_fstat.
9889 * remote.c (init_remote_ops): Likewise.
9891 2015-04-01 Sasha Smundak <asmundak@google.com>
9893 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
9894 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
9895 (py-unwind.o): New recipe.
9896 * NEWS: mention Python frame unwinding.
9897 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
9898 gdb/unwinder.py and gdb/command/unwinder.py
9899 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
9901 (execute_unwinders): New function.
9902 * python/lib/gdb/command/unwinders.py: New file.
9903 * python/lib/gdb/unwinder.py: New file.
9904 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
9905 (objfpy_dealloc): Decrement frame_unwinders reference count.
9906 (objfpy_initialize): Create frame_unwinders list.
9907 (objfpy_get_frame_unwinders): New function.
9908 (objfpy_set_frame_unwinders): Ditto.
9909 (objfile_getset): Add frame_unwinders attribute to Objfile.
9910 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
9911 (pspy_dealloc): Decrement frame_unwinders reference count.
9912 (pspy_initialize): Create frame_unwinders list.
9913 (pspy_get_frame_unwinders): New function.
9914 (pspy_set_frame_unwinders): Ditto.
9915 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
9916 * python/py-unwind.c: New file.
9917 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
9918 (objpy_get_frame_unwinders): New prototype.
9919 (gdbpy_initialize_unwind): New prototype.
9920 * python/python.c (gdbpy_apply_type_printers): Call
9921 gdbpy_initialize_unwind.
9923 2015-04-01 Pedro Alves <palves@redhat.com>
9925 * infrun.c (resume): Check currently_stepping after clearing
9926 stepped_breakpoint, not before.
9928 2015-04-01 Pedro Alves <palves@redhat.com>
9930 * infrun.c (print_target_wait_results): Print all the ptid
9933 2015-04-01 Pedro Alves <palves@redhat.com>
9935 * infrun.c (keep_going): Also discard cleanups if inserting
9938 2015-04-01 Pedro Alves <palves@redhat.com>
9940 * infrun.c (wait_for_inferior): Install the
9941 finish_thread_state_cleanup cleanup across the whole function, not
9942 just around handle_inferior_event.
9944 2015-04-01 Pedro Alves <palves@redhat.com>
9946 * infrun.c (resume) <step past permanent breakpoint>: Use
9949 2015-04-01 Pedro Alves <palves@redhat.com>
9951 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9953 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
9955 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9957 2015-04-01 Pedro Alves <palves@redhat.com>
9959 * linux-thread-db.c (record_thread): Readd the thread to gdb's
9960 list if it was marked exited.
9962 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
9964 * configure: Regenerated.
9966 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9967 Jan Kratochvil <jan.kratochvil@redhat.com>
9968 Oleg Nesterov <oleg@redhat.com>
9971 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9972 New enum identifying the various options of the coredump_filter
9974 (struct smaps_vmflags): New struct.
9975 (use_coredump_filter): New variable.
9976 (decode_vmflags): New function.
9977 (mapping_is_anonymous_p): Likewise.
9978 (dump_mapping_p): Likewise.
9979 (linux_find_memory_regions_full): New variables
9980 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9981 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
9982 parsing of its information. Implement memory mapping filtering
9983 based on its contents.
9984 (show_use_coredump_filter): New function.
9985 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9986 * NEWS: Mention the possibility of using the
9987 '/proc/PID/coredump_filter' file when generating a corefile.
9988 Mention new command 'set use-coredump-filter'.
9990 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9992 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9993 read_memory_unsigned_integer.
9995 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
9997 * Makefile.in (ZLIB): New.
9998 (ZLIBINC): Likewise.
9999 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
10000 (CLIBS): Add $(ZLIB).
10001 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
10003 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
10004 * top.c (print_gdb_configuration): Remove --with-zlib and
10006 * config.in: Regenerated.
10007 * configure: Likewise.
10009 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
10011 * NEWS: Mention info os cpus support.
10012 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
10013 (struct osdata_type): Add cpus entry, reorder the entries in
10014 alphabetical order.
10016 2015-03-31 Matthias Klose <doko@ubuntu.com>
10018 * compile/compile.c (compile_to_object): Allow triplets with or
10019 without vendor set.
10021 2015-03-30 Doug Evans <dje@google.com>
10024 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
10025 klass in VAR_DOMAIN.
10027 2015-03-30 Gary Benson <gbenson@redhat.com>
10029 * remote.c (remote_mourn_1): Remove function. Update all callers
10030 to use remote_mourn.
10031 (extended_remote_mourn_1): Remove function. Update all callers
10032 to use extended_remote_mourn.
10033 (extended_remote_attach_1): Remove function. Update all callers
10034 to use extended_remote_attach.
10036 2015-03-28 James Bowman <james.bowman@ftdichip.com>
10038 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
10039 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
10040 (ALLDEPFILES): Add ft32-tdep.c.
10041 * configure.tgt: Add FT32 entry.
10042 * ft32-tdep.c: New file, FT32 target-dependent code.
10043 * ft32-tdep.h: New file, FT32 target-dependent code.
10045 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10048 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10050 * printcmd.c (print_command_1): Move expr variable scope.
10052 2015-03-27 Joel Brobecker <brobecker@adacore.com>
10054 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
10056 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
10058 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
10061 2015-03-26 Joel Brobecker <brobecker@adacore.com>
10063 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
10064 exception raised while parsing the probe arguments.
10065 Force parsing to be done using the C language parser.
10066 * expression.h (parse_expression_with_language): Declare.
10067 * parse.c (parse_expression_with_language): New function.
10069 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
10071 * MAINTAINERS (Write After Approval): Add "Jon Turney".
10073 2015-03-26 Andy Wingo <wingo@igalia.com>
10076 * dwarf2read.c (struct partial_die_info): Add has_const_value
10078 (add_partial_symbol): Don't punt on symbols that have const_value
10080 (read_partial_die): Detect DW_AT_const_value.
10082 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10085 * printcmd.c (print_command_1): Move expr variable scope.
10087 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10090 * printcmd.c (validate_format): Make the parameter cmdname const.
10092 2015-03-26 Don Breazeal <donb@codesourcery.com>
10094 * remote.c (_initialize_remote): Update comment.
10096 2015-03-26 Pedro Alves <palves@redhat.com>
10097 Jon TURNEY <jon.turney@dronecode.org.uk>
10099 * coffread.c (coff_symfile_read): When constructing the name of an
10100 import stub symbol from import symbol for amd64, only skip the
10101 char after _imp_ if the target is underscored (like i386) and the
10102 char is indeed the target's leading char.
10104 2015-03-25 Pedro Alves <palves@redhat.com>
10106 * target.h <to_async>: Replace 'callback' and 'context' parameters
10107 with boolean 'enable' parameter.
10108 (target_async): Replace CALLBACK and CONTEXT parameters with
10109 boolean ENABLE parameter.
10110 * inf-loop.c (inferior_event_handler): Adjust.
10111 * linux-nat.c (linux_nat_attach, linux_nat_resume)
10112 (linux_nat_resume): Adjust.
10113 (async_client_callback, async_client_context): Delete.
10114 (handle_target_event): Call inferior_event_handler directly.
10115 (linux_nat_async): Replace 'callback' and 'context' parameters
10116 with boolean 'enable' parameter. Adjust. Remove references to
10117 async_client_callback and async_client_context.
10118 (linux_nat_close): Adjust.
10119 * record-btrace.c (record_btrace_async): Replace 'callback' and
10120 'context' parameters with boolean 'enable' parameter. Adjust.
10121 (record_btrace_resume): Adjust.
10122 * record-full.c (record_full_async): Replace 'callback' and
10123 'context' parameters with boolean 'enable' parameter. Adjust.
10124 (record_full_resume, record_full_core_resume): Adjust.
10125 * remote.c (struct remote_state) <async_client_callback,
10126 async_client_context>: Delete fields.
10127 (remote_start_remote, extended_remote_attach_1, remote_resume)
10128 (extended_remote_create_inferior): Adjust.
10129 (remote_async_serial_handler): Call inferior_event_handler
10131 (remote_async): Replace 'callback' and 'context' parameters with
10132 boolean 'enable' parameter. Adjust.
10133 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
10135 * target-delegates.c: Regenerate.
10137 2015-03-25 Gary Benson <gbenson@redhat.com>
10138 Pedro Alves <palves@redhat.com>
10140 * target.c (fileio_ft_t): New typedef, define object vector.
10141 (fileio_fhandles): New static variable.
10142 (is_closed_fileio_fh): New macro.
10143 (lowest_closed_fd): New static variable.
10144 (acquire_fileio_fd): New function.
10145 (release_fileio_fd): Likewise.
10146 (fileio_fd_to_fh): New macro.
10147 (target_fileio_open): Wrap the file descriptor on success.
10148 (target_fileio_pwrite): Updated to use wrapped file descriptor.
10149 (target_fileio_pread): Likewise.
10150 (target_fileio_close): Likewise.
10152 2015-03-24 Pedro Alves <palves@redhat.com>
10154 * thread.c (thread_apply_all_command): Take exited threads into
10157 2015-03-24 Pedro Alves <palves@redhat.com>
10159 * infrun.c (resume, proceed): Mention
10160 switch_back_to_stepped_thread, not switch_back_to_stepping.
10162 2015-03-24 Pedro Alves <palves@redhat.com>
10164 * infrun.c (user_visible_resume_ptid): Rewrite going from
10165 most-locked to unlocked instead of the opposite. Move comment ...
10166 * infrun.h (user_visible_resume_ptid): ... here.
10168 2015-03-24 Pedro Alves <palves@redhat.com>
10170 * linux-nat.c (linux_nat_resume): Output debug logs before trying
10171 to resume the event lwp. Use the lwp's ptid instead of the passed
10172 in (maybe wildcard) ptid.
10173 (stop_wait_callback): Tweak debug log output.
10174 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
10176 (linux_nat_filter_event): In debug output, distinguish a
10177 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
10178 before trying to resume the lwp.
10180 2015-03-24 Joel Brobecker <brobecker@adacore.com>
10182 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
10183 pointer indirection.
10184 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
10185 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
10187 2015-03-24 Joel Brobecker <brobecker@adacore.com>
10189 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
10190 Renames DYN_ATTR_DATA_LOCATION.
10191 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
10192 DYN_ATTR_DATA_LOCATION.
10193 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
10194 instead of DYN_ATTR_DATA_LOCATION.
10196 2015-03-24 Pedro Alves <palves@redhat.com>
10198 * breakpoint.c (until_break_command): Adjust call to proceed.
10199 * gdbthread.h (struct thread_control_state) <stepping_command>:
10201 * infcall.c (run_inferior_call): Adjust call to proceed.
10202 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
10203 Adjust calls to proceed.
10204 (set_step_frame): Set the current thread's step_start_function
10206 (step_once): Adjust calls to proceed.
10207 (jump_command, signal_command, until_next_command)
10208 (finish_backward, finish_forward, proceed_after_attach_callback)
10209 (attach_command_post_wait): Adjust calls to proceed.
10210 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
10211 (do_target_resume): New function, factored out from ...
10212 (resume): ... here. Remove 'step' parameter. Instead, check
10213 currently_stepping to determine whether the thread should be
10215 (proceed): Remove 'step' parameter and don't set the thread's
10216 step_start_function here. Adjust call to 'resume'.
10217 (handle_inferior_event): Adjust calls to 'resume'.
10218 (switch_back_to_stepped_thread): Use do_target_resume instead of
10220 (keep_going): Adjust calls to 'resume'.
10221 * infrun.h (proceed): Remove 'step' parameter.
10222 (resume): Likewise.
10223 * windows-nat.c (do_initial_windows_stuff): Adjust call to
10225 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
10227 2015-03-24 Pedro Alves <palves@redhat.com>
10229 * gdbthread.h (struct thread_control_state) <stepping_command>:
10231 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
10232 the thread's stepping_command field.
10233 * infrun.c (resume): Check the thread's stepping_command flag to
10234 determine which threads should be resumed. Rename 'entry_step'
10235 local to user_step.
10236 (clear_proceed_status_thread): Clear 'stepping_command'.
10237 (schedlock_applies): Change parameter type to struct thread_info
10239 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
10240 (switch_back_to_stepped_thread): Adjust calls to
10241 'schedlock_applies'.
10242 (_initialize_infrun): Adjust "set scheduler-locking step" help.
10244 2015-03-24 Pedro Alves <palves@redhat.com>
10246 * infrun.c (step_start_function): Delete and ...
10247 * gdbthread.h (struct thread_control_state) <step_start_function>:
10248 ... now a field here.
10249 * infrun.c (clear_proceed_status_thread): Clear the thread's
10250 step_start_function.
10251 (proceed, process_event_stop_test, print_stop_event): Adjust.
10253 2015-03-24 Pedro Alves <palves@redhat.com>
10255 * infrun.c (proceed): No longer handle negative step.
10257 2015-03-24 Gary Benson <gbenson@redhat.com>
10259 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
10260 (x86_linux_prepare_to_resume): Likewise.
10261 * x86-linux-nat.c (x86_linux_new_thread):
10262 Moved to nat/x86-linux.c.
10263 (x86_linux_prepare_to_resume): Likewise.
10264 * nat/x86-linux.c (x86_linux_new_thread): New function.
10265 (x86_linux_prepare_to_resume): Likewise.
10267 2015-03-24 Gary Benson <gbenson@redhat.com>
10269 * nat/x86-linux-dregs.h: New file.
10270 * nat/x86-linux-dregs.c: Likewise.
10271 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
10272 (x86-linux-dregs.o): New rule.
10273 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
10274 * config/i386/linux64.mh (NATDEPFILES): Likewise.
10275 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
10276 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10277 (x86_linux_dr_get): Likewise.
10278 (x86_linux_dr_set): Likewise.
10279 (x86_linux_dr_get_addr): Likewise.
10280 (x86_linux_dr_get_control): Likewise.
10281 (x86_linux_dr_get_status): Likewise.
10282 (update_debug_registers_callback): Likewise.
10283 (x86_linux_dr_set_control): Likewise.
10284 (x86_linux_dr_set_addr): Likewise.
10285 (x86_linux_update_debug_registers): Likewise.
10287 2015-03-24 Gary Benson <gbenson@redhat.com>
10289 * x86-linux-nat.c (x86_linux_update_debug_registers):
10290 New function, factored out from...
10291 (x86_linux_prepare_to_resume): ...this.
10293 2015-03-24 Gary Benson <gbenson@redhat.com>
10295 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
10296 (x86_linux_dr_set): Likewise.
10297 (x86_linux_dr_get_addr): Likewise.
10298 (x86_linux_dr_get_control): Likewise.
10299 (x86_linux_dr_get_status): Likewise.
10300 (update_debug_registers_callback): Likewise.
10301 (x86_linux_dr_set_control): Likewise.
10302 (x86_linux_dr_set_addr): Likewise.
10303 (x86_linux_prepare_to_resume): Likewise.
10304 (x86_linux_new_thread): Likewise.
10306 2015-03-24 Gary Benson <gbenson@redhat.com>
10308 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
10309 (x86_linux_new_thread): Rename argument.
10311 2015-03-24 Gary Benson <gbenson@redhat.com>
10313 * nat/x86-linux.h: New file.
10314 * nat/x86-linux.c: Likewise.
10315 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
10316 (x86-linux.o): New rule.
10317 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
10318 * config/i386/linux64.mh (NATDEPFILES): Likewise.
10319 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
10320 (lwp_set_arch_private_info): New declaration.
10321 (lwp_arch_private_info): Likewise.
10322 * linux-nat.c (lwp_set_arch_private_info): New function.
10323 (lwp_arch_private_info): Likewise.
10324 * x86-linux-nat.c: Include nat/x86-linux.h.
10325 (arch_lwp_info): Removed structure.
10326 (update_debug_registers_callback):
10327 Use lwp_set_debug_registers_changed.
10328 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10329 and lwp_set_debug_registers_changed.
10330 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10332 2015-03-24 Gary Benson <gbenson@redhat.com>
10334 * nat/linux-nat.h (ptid_of_lwp): New declaration.
10335 (lwp_is_stopped): Likewise.
10336 (lwp_stop_reason): Likewise.
10337 * linux-nat.c (ptid_of_lwp): New function.
10338 (lwp_is_stopped): Likewise.
10339 (lwp_is_stopped_by_watchpoint): Likewise.
10340 * x86-linux-nat.c (update_debug_registers_callback):
10341 Use lwp_is_stopped.
10342 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
10345 2015-03-24 Gary Benson <gbenson@redhat.com>
10347 * linux-nat.h (linux_stop_lwp): Move declaration to...
10348 * nat/linux-nat.h (linux_stop_lwp): New declaration.
10350 2015-03-24 Gary Benson <gbenson@redhat.com>
10352 * linux-nat.h: Include nat/linux-nat.h.
10353 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
10354 * nat/linux-nat.h (struct lwp_info): New forward declaration.
10355 (iterate_over_lwps_ftype): New typedef.
10356 (iterate_over_lwps): New declaration.
10357 * linux-nat.h (iterate_over_lwps): Update comment. Use
10358 iterate_over_lwps_ftype. Update callback return value check.
10360 2015-03-24 Gary Benson <gbenson@redhat.com>
10362 * x86-nat.h (x86_debug_reg_state): Move declaration to...
10363 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
10365 2015-03-24 Gary Benson <gbenson@redhat.com>
10367 * nat/linux-nat.h (current_lwp_ptid): New declaration.
10368 * linux-nat.c (current_lwp_ptid): New function.
10369 * x86-linux-nat.c: Include nat/linux-nat.h.
10370 (x86_linux_dr_get_addr): Use current_lwp_ptid.
10371 (x86_linux_dr_get_control): Likewise.
10372 (x86_linux_dr_get_status): Likewise.
10373 (x86_linux_dr_set_control): Likewise.
10374 (x86_linux_dr_set_addr): Likewise.
10376 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
10378 PR breakpoints/16466
10379 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
10381 2015-03-23 Joel Brobecker <brobecker@adacore.com>
10383 * ser-mingw.c (ser_windows_setparity): Fix indentation.
10384 * ser-unix.c (hardwire_setparity): Likewise.
10386 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
10388 * NEWS: Mention set/show serial parity command.
10389 * monitor.c (monitor_open): Call serial_setparity.
10390 * remote.c (remote_open_1): Likewise.
10391 * ser-base.c (ser_base_serparity): New function.
10392 * ser-base.h (ser_base_setparity): Add declaration.
10393 * ser-go32.c (dos_ops): Set "setparity" field.
10394 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
10396 (ser_windows_setparity): New function.
10397 (hardwire_ops): Add ser_windows_setparity.
10398 (tty_ops): Add NULL for setparity field.
10399 (pipe_ops): Add ser_base_setparity.
10400 (tcp_ops): Likewise.
10401 * ser-pipe.c (pipe_ops): Likewise.
10402 * ser-tcp.c (tcp_ops): Likewise.
10403 * ser-unix.c (hardwire_setparity): Add declaration.
10404 (hardwire_raw): Don't reset PARENB flag.
10405 (hardwire_setparity): New function.
10406 (hardwire_ops): Add hardwire_setparity.
10407 * serial.c (serial_setparity): New function.
10408 (serial_parity): New global.
10409 (parity_none, parity_odd, parity_even, parity_enums, parity):
10410 New static globals.
10411 (set_parity): New function.
10412 (_initialize_serial): Add set/show serial parity commands.
10413 * serial.h (GDBPARITY_NONE): Define.
10414 (GDBPARITY_ODD): Define.
10415 (GDBPARITY_EVEN): Define.
10416 (serial_setparity) Add declaration.
10417 (struct serial_ops): Add setparity field.
10418 * target.h (serial_parity): Add declaration.
10420 2015-03-23 Keith Seitz <keiths@redhat.com>
10422 * linespec.c (linespec_lexer_lex_keyword): Update comment.
10424 2015-03-23 Keith Seitz <keiths@redhat.com>
10426 * breakpoint.c (parse_breakpoint_sals): Use
10427 linespec_lexer_lex_keyword to ascertain if the user specified
10429 * linespec.c [IF_KEYWORD_INDEX]: Define.
10430 (linespec_lexer_lex_keyword): Export.
10431 (struct ls_parser) <keyword_ok>: Remove.
10432 A keyword is only a keyword if not followed by another keyword.
10433 (linespec_lexer_lex_one): Remove keyword_ok handling.
10434 Add comment explaining why the parsing stream is not advanced
10435 when a keyword is seen.
10436 (parse_linespec): Remove parser->keyword_ok.
10437 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
10439 2015-03-23 Keith Seitz <keiths@redhat.com>
10442 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
10443 if we find a static method with DW_AT_vtable_elem_location.
10445 2015-03-21 Eli Zaretskii <eliz@gnu.org>
10447 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
10448 before the second loop, to avoid undefined behavior. Reported by
10449 Anton Blanchard <anton@samba.org>.
10451 2015-03-20 Keven Boell <keven.boell@intel.com>
10453 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
10454 data_location usage to linked list.
10455 (resolve_dynamic_type_internal): Adapt data_location to
10457 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
10458 (copy_type_recursive, copy_type): Add copy of linked list.
10459 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
10460 (struct dynamic_prop_list): New struct.
10461 * dwarf2read.c (set_die_type): Set data_location data.
10463 2015-03-20 Pedro Alves <palves@redhat.com>
10465 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
10466 inner block and make it const.
10467 * machoread.c (get_archive_prefix_len): Make "lparen" const.
10469 2015-03-20 Pedro Alves <palves@redhat.com>
10471 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
10472 * breakpoint.h (set_breakpoint_condition): Update declaration.
10474 2015-03-20 Pedro Alves <palves@redhat.com>
10476 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
10478 2015-03-20 Pedro Alves <palves@redhat.com>
10480 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
10482 2015-03-20 Pedro Alves <palves@redhat.com>
10484 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
10486 2015-03-20 Pedro Alves <palves@redhat.com>
10488 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
10489 (nto_init_solib_absolute_prefix): Likewise.
10491 2015-03-20 Pedro Alves <palves@redhat.com>
10493 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
10494 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
10496 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10498 * config/djgpp/README: Remove gdb.hp.
10500 2015-03-20 Yao Qi <yao.qi@linaro.org>
10502 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
10503 set_gdbarch_cannot_step_breakpoint.
10505 2015-03-19 Pedro Alves <palves@redhat.com>
10507 * linux-nat.c (linux_resume_one_lwp): Rename to ...
10508 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
10509 instead call perror_with_name.
10510 (check_ptrace_stopped_lwp_gone): New function.
10511 (linux_resume_one_lwp): Reimplement as wrapper around
10512 linux_resume_one_lwp_throw that swallows errors if the LWP is
10514 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
10515 swallows errors if the LWP is gone. Use
10516 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
10518 2015-03-19 Pedro Alves <palves@redhat.com>
10520 * linux-nat.c (status_callback): Return early if the LWP has no
10523 2015-03-19 Pedro Alves <palves@redhat.com>
10525 * linux-nat.c (select_event_lwp_callback): Update comment to no
10526 longer mention SIGTRAP.
10528 2015-03-18 Tristan Gingold <gingold@adacore.com>
10530 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
10531 redirection code to ...
10532 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
10533 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
10535 2015-03-18 Gary Benson <gbenson@redhat.com>
10537 (remote_protocol_features): Remove the "vFile:fstat" feature.
10538 (remote_hostio_fstat): Probe for "vFile:fstat" support.
10540 2015-03-11 Yao Qi <yao.qi@linaro.org>
10543 * aarch64-linux-tdep.c: Include xml-syscall.h
10544 (aarch64_linux_get_syscall_number): New function.
10545 (aarch64_linux_init_abi): Call
10546 set_gdbarch_get_syscall_number.
10547 * syscalls/aarch64-linux.xml: New file.
10549 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
10551 * ser-base.h (ser_base_setstopbits): Change second argument name
10552 from "rate" to "num".
10554 2015-03-17 Gary Benson <gbenson@redhat.com>
10555 Luke Allardyce <lukeallardyce@gmail.com>
10558 * common/common-remote-fileio.h (sys/stat.h): New include.
10559 (stuct stat): Remove forward declaration.
10561 2015-03-16 John Baldwin <jhb@FreeBSD.org>
10563 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
10564 before writing core register notes.
10566 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
10567 Pedro Alves <palves@redhat.com>
10569 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
10570 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
10571 (tgoto): Wrap with extern "C".
10573 2015-03-16 Pedro Alves <palves@redhat.com>
10574 Yuanhui Zhang <asmwarrior@gmail.com>
10576 * stub-termcap.c (tputs): Change prototype.
10578 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
10579 Pedro Alves <palves@redhat.com>
10581 * windows-nat.c (struct thread_info_struct): Rename to ...
10582 (struct windows_thread_info_struct): ... this.
10583 (thread_info): Rename to ...
10584 (windows_thread_info): ... this.
10587 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10588 Pedro Alves <palves@redhat.com>
10590 * NEWS: New Removed targets and native configurations.
10592 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10595 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
10596 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
10597 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
10598 ia64-hpux-tdep.h, solib-ia64-hpux.h.
10599 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
10600 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
10601 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
10603 * config/ia64/hpux.mh: Remove file.
10604 * config/pa/hpux.mh: Remove file.
10605 * configure: Rebuilt.
10606 * configure.ac (dlgetmodinfo, somread.o): Remove.
10607 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10608 (ia64-*-hpux*): Remove its float format exception.
10609 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10610 * hppa-hpux-nat.c: Remove file.
10611 * hppa-hpux-tdep.c: Remove file.
10612 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
10613 Move them here from hppa-tdep.h
10614 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
10615 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
10616 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
10617 Move them to hppa-tdep.c.
10618 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
10620 * ia64-hpux-nat.c: Remove file.
10621 * ia64-hpux-tdep.c: Remove file.
10622 * ia64-hpux-tdep.h: Remove file.
10623 * inf-ttrace.c: Remove file.
10624 * inf-ttrace.h: Remove file.
10625 * solib-ia64-hpux.c: Remove file.
10626 * solib-ia64-hpux.h: Remove file.
10627 * solib-pa64.c: Remove file.
10628 * solib-pa64.h: Remove file.
10629 * solib-som.c: Remove file.
10630 * solib-som.h: Remove file.
10631 * somread.c: Remove file.
10633 2015-03-13 John Baldwin <jhb@FreeBSD.org>
10635 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
10636 * config.in: Regenerate.
10637 * configure: Regenerate.
10638 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
10640 (fbsd_find_memory_regions): Use kinfo_getvmmap to
10641 enumerate memory regions if present.
10643 2015-03-13 John Baldwin <jhb@FreeBSD.org>
10645 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
10646 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
10648 (i386fbsd_sigtramp_p): Likewise.
10650 2015-03-12 John Baldwin <jhb@FreeBSD.org>
10652 * MAINTAINERS (Write After Approval): Add John Baldwin.
10654 2015-03-12 Gary Benson <gbenson@redhat.com>
10656 * solib.c (_initialize_solib): Make "set/show sysroot" use
10657 add_setshow_optional_filename_cmd so it can be restored to
10658 empty after being set.
10660 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10662 * Makefile.in (SFILES): New source break-catch-syscall.c.
10663 (COMMON_OBS): New object break-catch-syscall.o.
10664 * break-catch-syscall.c: New file.
10665 * breakpoint.c: Remove inclusion of "xml-syscall.h".
10666 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
10667 (struct syscall_catchpoint): Likewise.
10668 (dtor_catch_syscall): Likewise.
10669 (catch_syscall_inferior_data): Likewise.
10670 (struct catch_syscall_inferior_data): Likewise.
10671 (get_catch_syscall_inferior_data): Likewise.
10672 (catch_syscall_inferior_data_cleanup): Likewise.
10673 (insert_catch_syscall): Likewise.
10674 (remove_catch_syscall): Likewise.
10675 (breakpoint_hit_catch_syscall): Likewise.
10676 (print_it_catch_syscall): Likewise.
10677 (print_one_catch_syscall): Likewise.
10678 (print_mention_catch_syscall): Likewise.
10679 (print_recreate_catch_syscall): Likewise.
10680 (catch_syscall_breakpoint_ops): Likewise.
10681 (syscall_catchpoint_p): Likewise.
10682 (create_syscall_event_catchpoint): Likewise.
10683 (catch_syscall_split_args): Likewise.
10684 (catch_syscall_command_1): Likewise.
10685 (is_syscall_catchpoint_enabled): Likewise.
10686 (catch_syscall_enabled): Likewise.
10687 (catching_syscall_number): Likewise.
10688 (catch_syscall_completer): Likewise.
10689 (clear_syscall_counts): Likewise.
10690 (initialize_breakpoint_ops): Move initialization of syscall
10691 catchpoints to break-catch-syscall.c.
10692 (_initialize_breakpoint): Move code related to syscall catchpoints
10693 to break-catch-syscall.c.
10695 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10697 * breakpoint.c (breakpoint_find_if): New function.
10698 * breakpoint.h (breakpoint_find_if): New prototype.
10700 2015-03-11 Gary Benson <gbenson@redhat.com>
10702 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
10703 * remote-fileio.c (remote_fileio_to_host_uint): New function.
10704 (remote_fileio_to_host_ulong): Likewise.
10705 (remote_fileio_to_host_mode): Likewise.
10706 (remote_fileio_to_host_time): Likewise.
10707 (remote_fileio_to_host_stat): Likewise.
10708 * remote.c (PACKET_vFile_fstat): New enum value.
10709 (remote_protocol_features): Register the "vFile:fstat" feature.
10710 (remote_hostio_fstat): New function.
10711 (remote_bfd_iovec_stat): Use the above.
10712 (_initialize_remote): Register new "set/show remote
10713 hostio-fstat-packet" command.
10714 * symfile.c (separate_debug_file_exists): Update comment.
10715 * NEWS: Announce new vFile:fstat packet.
10717 2015-03-11 Gary Benson <gbenson@redhat.com>
10719 * common/common-remote-fileio.h: New file.
10720 * common/common-remote-fileio.c: Likewise.
10721 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10722 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
10723 (COMMON_OBS): Add common-remote-fileio.o.
10724 (common-remote-fileio.o): New rule.
10725 * remote-fileio.h (common-remote-fileio.h): New include.
10726 * remote-fileio.c (gdb/fileio.h): Do not include.
10727 (remote_fileio_to_be): Moved to common-remote-fileio.h.
10728 (remote_fileio_to_fio_uint): Likewise.
10729 (remote_fileio_to_fio_time): Likewise.
10730 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
10731 (remote_fileio_to_fio_mode): Likewise.
10732 (remote_fileio_to_fio_ulong): Likewise.
10733 (remote_fileio_to_fio_stat): Likewise.
10735 2015-03-11 Andy Wingo <wingo@igalia.com>
10737 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
10738 we were checking the cached type, not the cached dynamic type.
10740 2015-03-11 Andy Wingo <wingo@igalia.com>
10742 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
10743 other strings, as these are on the GC'd heap, and will be
10744 collected along with the smob.
10746 2015-03-11 Andy Wingo <wingo@igalia.com>
10748 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
10749 (objfile_functions): Bind gdbscm_objfile_progspace to
10751 * guile/lib/gdb.scm: Add objfile-progspace to exports.
10753 2015-03-11 Andy Wingo <wingo@igalia.com>
10755 * guile/guile.c (_initialize_guile): Disable automatic
10756 finalization, if Guile offers us that possibility.
10757 * guile/guile.c (call_initialize_gdb_module):
10758 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
10759 finalizers in appropriate places.
10760 * configure.ac (AC_TRY_LIBGUILE): Add a check for
10761 scm_set_automatic_finalization_enabled.
10762 * configure: Regenerated.
10764 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10766 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
10769 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10771 * s390-linux-nat.c (struct arch_lwp_info): New.
10772 (s390_fix_watch_points): Rename to...
10773 (s390_prepare_to_resume): ...this. Skip the PER info update
10774 unless the watch points have changed.
10775 (s390_refresh_per_info, s390_new_thread): New functions.
10776 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
10777 s390_fix_watch_points.
10778 (s390_remove_watchpoint): Likewise.
10779 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
10780 Register s390_prepare_to_resume.
10782 2015-03-09 Pedro Alves <palves@redhat.com>
10785 2015-03-07 Pedro Alves <palves@redhat.com>
10786 * common/gdb_socket.h: New file.
10787 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10789 (net_open): Use union gdb_sockaddr_u.
10791 2015-03-07 Pedro Alves <palves@redhat.com>
10793 * configure.ac (build_warnings): Move -Wmissing-prototypes
10794 -Wdeclaration-after-statement -Wmissing-parameter-type
10795 -Wold-style-declaration -Wold-style-definition to the C-specific
10797 * configure: Regenerate.
10799 2015-03-07 Pedro Alves <palves@redhat.com>
10801 * common/gdb_socket.h: New file.
10802 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10804 (net_open): Use union gdb_sockaddr_u.
10806 2015-03-07 Pedro Alves <palves@redhat.com>
10808 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
10809 (exceptions_state_mc_action_iter)
10810 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10812 [__cplusplus] (try_scope_depth): New global.
10813 [__cplusplus] (exception_try_scope_entry)
10814 (exception_try_scope_exit, gdb_exception_sliced_copy)
10815 (exception_rethrow): New functions.
10816 (throw_exception): In C++ mode, throw
10817 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
10818 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
10819 (throw_it): In C++ mode, use try_scope_depth.
10820 * common/common-exceptions.h [!__cplusplus]
10821 (exceptions_state_mc_action_iter)
10822 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10824 [__cplusplus] (exception_try_scope_entry)
10825 (exception_try_scope_exit, exception_rethrow): Declare.
10826 [__cplusplus] (struct exception_try_scope): New struct.
10827 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
10829 (struct gdb_exception_RETURN_MASK_ALL)
10830 (struct gdb_exception_RETURN_MASK_ERROR)
10831 (struct gdb_exception_RETURN_MASK_QUIT): New types.
10833 2015-03-07 Pedro Alves <palves@redhat.com>
10835 * main.c (handle_command_errors): Remove volatile qualifier from
10838 2015-03-07 Pedro Alves <palves@redhat.com>
10840 * breakpoint.c (save_breakpoints): Adjust to avoid code between
10842 * gdbtypes.c (safe_parse_type): Remove empty line.
10843 (types_deeply_equal):
10844 * guile/scm-frame.c (gdbscm_frame_name):
10845 * linux-thread-db.c (find_new_threads_once):
10846 * python/py-breakpoint.c (bppy_get_commands):
10847 * record-btrace.c (record_btrace_insert_breakpoint)
10848 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
10849 (record_btrace_start_replaying): Adjust to avoid code between TRY
10852 2015-03-07 Pedro Alves <palves@redhat.com>
10854 * common/common-exceptions.c (struct catcher) <exception>: No
10855 longer a pointer to volatile exception. Now an exception value.
10856 <mask>: Delete field.
10857 (exceptions_state_mc_init): Remove all parameters. Adjust.
10858 (exceptions_state_mc): No longer pop the catcher here.
10859 (exceptions_state_mc_catch): New function.
10860 (throw_exception): Adjust.
10861 * common/common-exceptions.h (exceptions_state_mc_init): Remove
10863 (exceptions_state_mc_catch): Declare.
10864 (TRY_CATCH): Rename to ...
10865 (TRY): ... this. Remove EXCEPTION and MASK parameters.
10866 (CATCH, END_CATCH): New.
10867 All callers adjusted.
10869 2015-03-07 Tom Tromey <tromey@redhat.com>
10871 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
10873 2015-03-07 Pedro Alves <palves@redhat.com>
10875 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10876 (amd64_epilogue_frame_cache): Normal exception handling code.
10877 * break-catch-throw.c (check_status_exception_catchpoint)
10878 (re_set_exception_catchpoint): Ditto.
10879 * cli/cli-interp.c (safe_execute_command):
10880 * cli/cli-script.c (script_from_file): Ditto.
10881 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
10883 * compile/compile-object-run.c (compile_object_run): Ditto.
10884 * cp-abi.c (baseclass_offset): Ditto.
10885 * cp-valprint.c (cp_print_value): Ditto.
10886 * exceptions.c (catch_exceptions_with_msg):
10887 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
10888 * frame.c (get_frame_address_in_block_if_available): Ditto.
10889 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10890 (i386_sigtramp_frame_cache): Ditto.
10891 * infcmd.c (post_create_inferior): Ditto.
10892 * linespec.c (parse_linespec, find_linespec_symbols):
10893 * p-valprint.c (pascal_object_print_value): Ditto.
10894 * parse.c (parse_expression_for_completion): Ditto.
10895 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
10896 * remote.c (remote_get_noisy_reply): Ditto.
10897 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
10898 * solib-svr4.c (solib_svr4_r_map): Ditto.
10900 2015-03-06 Gary Benson <gbenson@redhat.com>
10902 * common/common-utils.h (startswith): New inline function.
10903 All places where this logic was used updated to use the above.
10905 2015-03-05 Pedro Alves <palves@redhat.com>
10908 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
10909 after reading the breakpoint's shadow memory.
10911 2015-03-05 Mark Kettenis <kettenis@gnu.org>
10913 * hppabsd-nat.c: Remove file.
10914 * hppaobsd-nat.c: New file.
10915 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
10917 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
10920 2015-03-04 Pedro Alves <palves@redhat.com>
10922 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
10923 (target_decr_pc_after_break): Delete declaration.
10924 * target.c (default_target_decr_pc_after_break)
10925 (target_decr_pc_after_break): Delete.
10926 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
10927 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
10928 * linux-thread-db.c (check_event): Likewise.
10929 * infrun.c (adjust_pc_after_break): Likewise.
10930 * darwin-nat.c (cancel_breakpoint): Likewise.
10931 * aix-thread.c (aix_thread_wait): Likewise.
10932 * target-delegates.c: Regenerate.
10934 2015-03-04 Pedro Alves <palves@redhat.com>
10936 * linux-nat.c (save_sigtrap): Check for breakpoints before
10937 checking watchpoints.
10938 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10939 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10940 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10941 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10942 (linux_nat_stopped_by_sw_breakpoint)
10943 (linux_nat_supports_stopped_by_sw_breakpoint)
10944 (linux_nat_stopped_by_hw_breakpoint)
10945 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10946 (linux_nat_wait_1): Don't re-increment the PC if relying on
10947 SIGTRAP's siginfo->si_code.
10948 (linux_nat_add_target): Install new target methods.
10949 * linux-thread-db.c (check_event): Don't account for breakpoint PC
10950 offset if the target already adjusted the PC.
10951 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10952 (GDB_ARCH_TRAP_BRKPT): New.
10953 (TRAP_HWBKPT): Define if not already defined.
10955 2015-03-04 Pedro Alves <palves@redhat.com>
10957 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10958 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10960 <stop_reason>: New field.
10961 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10962 (packet_set_cmd_state): New function.
10963 (remote_protocol_features): Register the "swbreak" and "hwbreak"
10965 (remote_query_supported): If not disabled with the corresponding
10966 "set remote foo-packet" command, report support for the swbreak
10967 and hwbreak features.
10968 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10970 <stop_reason>: New field.
10971 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10972 (remote_wait_as): Adjust.
10973 (remote_stopped_by_sw_breakpoint)
10974 (remote_supports_stopped_by_sw_breakpoint)
10975 (remote_stopped_by_hw_breakpoint)
10976 (remote_supports_stopped_by_hw_breakpoint): New functions.
10977 (remote_stopped_by_watchpoint): New function.
10978 (init_remote_ops): Install them.
10979 (_initialize_remote): Register new "set/show remote
10980 swbreak-feature-packet" and "set/show remote
10981 swbreak-feature-packet" commands.
10983 2015-03-04 Pedro Alves <palves@redhat.com>
10985 * btrace.h: Include target/waitstatus.h.
10986 (struct btrace_thread_info) <stop_reason>: New field.
10987 * record-btrace.c (record_btrace_step_thread): Use
10988 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10989 (record_btrace_decr_pc_after_break): Delete.
10990 (record_btrace_stopped_by_sw_breakpoint)
10991 (record_btrace_supports_stopped_by_sw_breakpoint)
10992 (record_btrace_stopped_by_hw_breakpoint)
10993 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10994 (init_record_btrace_ops): Install them.
10995 * record-full.c (record_full_hw_watchpoint): Delete and replace
10997 (record_full_stop_reason): ... this throughout.
10998 (record_full_exec_insn): Adjust.
10999 (record_full_wait_1): Adjust. No longer re-increment the PC.
11000 (record_full_wait_1): Adjust. Use
11001 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
11002 (record_full_stopped_by_watchpoint): Adjust.
11003 (record_full_stopped_by_sw_breakpoint)
11004 (record_full_supports_stopped_by_sw_breakpoint)
11005 (record_full_supports_stopped_by_sw_breakpoint)
11006 (record_full_stopped_by_hw_breakpoint)
11007 (record_full_supports_stopped_by_hw_breakpoint): New functions.
11008 (init_record_full_ops, init_record_full_core_ops): Install them.
11009 * record.c (record_check_stopped_by_breakpoint): New function.
11010 * record.h: Include target/waitstatus.h.
11011 (record_check_stopped_by_breakpoint): New declaration.
11013 2015-03-04 Pedro Alves <palves@redhat.com>
11015 enum lwp_stop_reason -> enum target_stop_reason
11016 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
11017 (linux_nat_stopped_by_watchpoint, status_callback)
11018 (linux_nat_wait_1): Adjust.
11019 * linux-nat.h (enum lwp_stop_reason): Delete.
11020 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11021 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
11022 * target/waitstatus.h (enum target_stop_reason): New.
11024 2015-03-04 Pedro Alves <palves@redhat.com>
11026 * breakpoint.c (need_moribund_for_location_type): New function.
11027 (bpstat_stop_status): Don't skipping checking moribund locations
11028 of breakpoint types which the target tell caused a stop.
11029 (program_breakpoint_here_p): New function, factored out from ...
11030 (bp_loc_is_permanent): ... this.
11031 (update_global_location_list): Don't create a moribund location if
11032 the target supports reporting stops of the type of the removed
11034 * breakpoint.h (program_breakpoint_here_p): New declaration.
11035 * infrun.c (adjust_pc_after_break): Return early if the target has
11036 already adjusted the PC. Add comments.
11037 (handle_signal_stop): If nothing explains a signal, and the target
11038 tells us the stop was caused by a software breakpoint, check if
11039 there's a breakpoint instruction in the memory. If so, adjust the
11040 PC before presenting the stop to the user. Otherwise, ignore the
11041 trap. If nothing explains a signal, and the target tells us the
11042 stop was caused by a hardware breakpoint, ignore the trap.
11043 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
11044 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
11045 to_supports_stopped_by_hw_breakpoint>: New fields.
11046 (target_stopped_by_sw_breakpoint)
11047 (target_supports_stopped_by_sw_breakpoint)
11048 (target_stopped_by_hw_breakpoint)
11049 (target_supports_stopped_by_hw_breakpoint): Define.
11050 * target-delegates.c: Regenerate.
11052 2015-03-04 Pedro Alves <palves@redhat.com>
11054 * infrun.c (follow_fork_inferior): Use the whole of the
11055 inferior_ptid and pending_follow.related_pid ptids instead of
11056 building ptids from the process components. Adjust verbose output
11057 to use target_pid_to_str.
11058 * linux-nat.c (linux_child_follow_fork): Use the whole of the
11059 inferior_ptid and pending_follow.related_pid ptids instead of
11060 building ptids from the process components.
11062 2015-03-04 Mark Kettenis <kettenis@gnu.org>
11064 * inf-ptrace.c [PT_GET_PROCESS_STATE]
11065 (inf_ptrace_insert_fork_catchpoint): New function.
11066 (inf_ptrace_remove_fork_catchpoint): New function.
11067 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
11069 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11071 * s390-linux-tdep.c (s390_register_name): Return empty string
11072 instead of NULL for registers that shouldn't be visible.
11074 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11076 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
11077 XML file for 64-bit targets.
11079 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
11081 * target.h (find_default_create_inferior): Remove declaration.
11082 (find_default_attach): Likewise.
11084 2015-03-03 Pedro Alves <palves@redhat.com>
11086 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
11087 Use ptid_get_pid to get the overall process id when resuming all
11090 2015-03-03 Pedro Alves <palves@redhat.com>
11092 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
11093 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
11094 * inf-ptrace.c (get_ptrace_pid): New function.
11095 (inf_ptrace_resume): Use it.
11096 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
11097 to the lower layer.
11099 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11101 * nat/linux-btrace.c: Include sys/utsname.h.
11102 (linux_determine_kernel_ptr_bits): New.
11103 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
11104 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
11107 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11109 * btrace.c (ftrace_update_function): Treat return as tailcall for
11110 "_dl_runtime_resolve".
11112 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11114 * btrace.h (btrace_function) <lbegin, lend>: Remove.
11115 * btrace.c (ftrace_debug): Do not print the line range.
11116 (ftrace_skip_file, ftrace_update_lines): Remove.
11117 (ftrace_new_function): Remove lbegin and lend initialization.
11118 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
11119 * record-btrace.c (btrace_compute_src_line_range): New.
11120 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
11122 2015-03-02 Pedro Alves <palves@redhat.com>
11124 * infrun.c (follow_exec): Delete all threads of the process except
11125 the event thread. Extended comments.
11127 2015-03-02 Joel Brobecker <brobecker@adacore.com>
11129 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
11131 2015-03-02 Joel Brobecker <brobecker@adacore.com>
11133 * utils.h: Remove <stdbool.h> #include.
11134 (producer_is_gcc): Change return type to "int".
11135 * utils.c (producer_is_gcc): Change return type to int.
11136 Return 1 instead of true, and 0 instead of false.
11137 Adjust function documentation accordingly.
11139 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11141 * s390-linux-nat.c (have_regset_vxrs): New static variable.
11142 (s390_linux_fetch_inferior_registers): Handle vector registers, if
11144 (s390_linux_store_inferior_registers): Likewise.
11145 (s390_get_hwcap): Remove function. Embed its logic...
11146 (s390_read_description): ...here. Yield a target description with
11147 vector registers if applicable.
11148 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
11149 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
11150 "features/s390x-tevx-linux64.c".
11151 (struct gdbarch_tdep) <v0_full_regnum>: New field.
11152 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
11153 for "GNU/Linux-specific registers".
11154 (s390_dwarf_reg_r0l): New enum value.
11155 (s390_dwarf_reg_to_regnum): Support vector registers.
11156 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
11157 of GPR lower halves.
11158 (regnum_is_vxr_full): New function.
11159 (s390_register_name): New function.
11160 (s390_pseudo_register_name): Handle v0-v15, which are composed of
11161 f0-f15 and v0l-v15l.
11162 (s390_pseudo_register_type): Likewise.
11163 (s390_pseudo_register_read): Likewise.
11164 (s390_pseudo_register_write): Likewise.
11165 (s390_value_from_register): Account for the fact that values are
11166 placed left-justified in vector registers.
11167 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
11168 the vector reggroup and omit them from the general reggroup.
11169 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
11170 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
11171 (s390_iterate_over_regset_sections): Add iterations for the two
11172 new vector regsets.
11173 (s390_core_read_description): Yield a target description with
11174 vector registers if applicable.
11175 (s390_gdbarch_init): Handle target descriptions with vector
11176 registers. Add "register_name" gdbarch method.
11177 (_initialize_s390_tdep): Call new tdesc initialization functions.
11178 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
11179 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
11180 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
11181 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
11182 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
11183 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
11184 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
11185 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
11186 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
11187 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
11188 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
11189 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
11190 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
11191 (S390_NUM_REGS): Adjust value.
11192 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
11193 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11194 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
11195 * NEWS: Announce S/390 vector register support.
11197 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11199 * features/s390-tevx-linux64.xml: New file.
11200 * features/s390-vx-linux64.xml: New file.
11201 * features/s390-vx.xml: New file.
11202 * features/s390x-tevx-linux64.xml: New file.
11203 * features/s390x-vx-linux64.xml: New file.
11204 * features/Makefile (WHICH): Add s390-vx-linux64,
11205 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
11206 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
11207 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
11209 * features/s390-tevx-linux64.c: New generated file.
11210 * features/s390-vx-linux64.c: Likewise.
11211 * features/s390x-tevx-linux64.c: Likewise.
11212 * features/s390x-vx-linux64.c: Likewise.
11213 * regformats/s390-tevx-linux64.dat: Likewise.
11214 * regformats/s390-vx-linux64.dat: Likewise.
11215 * regformats/s390x-tevx-linux64.dat: Likewise.
11216 * regformats/s390x-vx-linux64.dat: Likewise.
11218 2015-02-28 Doug Evans <xdje42@gmail.com>
11220 * symtab.h (struct symtab) <next>: Fix comment.
11222 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
11224 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
11227 2015-02-27 Pedro Alves <palves@redhat.com>
11229 * dtrace-probe.c (dtrace_probe_ops): Make extern.
11231 2015-02-27 Pedro Alves <palves@redhat.com>
11233 * common/common-exceptions.h (exception_none): Declare.
11234 * common/common-exceptions.c (exception_none): Moved from
11236 (exceptions_state_mc_init): Use exception_none.
11237 * exceptions.c (exception_none): Move to
11238 common/common-exceptions.c.
11239 * exceptions.h (exception_none): Move to
11240 common/common-exceptions.h.
11242 2015-02-27 Pedro Alves <palves@redhat.com>
11244 * main.c (catch_command_errors, catch_command_errors_const):
11245 Remove 'mask' argument. Adjust.
11246 (captured_main): Adjust callers.
11248 2015-02-27 Pedro Alves <palves@redhat.com>
11250 * python/python-internal.h: Include "extension-priv.h".
11252 2015-02-27 Pedro Alves <palves@redhat.com>
11254 * breakpoint.h (enum print_stop_action): Move further up in the
11257 2015-02-27 Pedro Alves <palves@redhat.com>
11259 * gdbarch.sh: Include regcache.h.
11260 * gdbarch.h: Regenerate.
11262 2015-02-27 Pedro Alves <palves@redhat.com>
11264 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
11265 Remove duplicate const.
11266 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
11269 2015-02-27 Pedro Alves <palves@redhat.com>
11271 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
11272 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
11273 * features/feature_to_c.sh: Tag the generated xml_builtin array
11274 with extern const in C++ mode.
11276 2015-02-27 Tom Tromey <tromey@redhat.com>
11278 * minidebug.c (struct lzma_stream): Rename to ...
11279 (struct gdb_lzma_stream): ... this.
11280 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
11282 2015-02-27 Pedro Alves <palves@redhat.com>
11284 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
11286 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
11287 (mi_cmd_stack_list_variables): Use it.
11289 2015-02-27 Pedro Alves <palves@redhat.com>
11291 * x86-linux-nat.c (u_debugreg_offset): New function.
11292 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11294 2015-02-27 Pedro Alves <palves@redhat.com>
11296 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
11298 Include break-common.h.
11300 2015-02-27 Tom Tromey <tromey@redhat.com>
11301 Pedro Alves <palves@redhat.com>
11303 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
11304 local used to iterate over enums.
11305 * completer.c (signal_completer): Likewise.
11306 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
11307 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
11308 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
11309 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
11310 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
11311 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
11312 * tui-wingeneral.c (tui_refresh_all): Likewise.
11314 2015-02-27 Pedro Alves <palves@redhat.com>
11316 * target.h: Include "infrun.h".
11318 2015-02-27 Pedro Alves <palves@redhat.com>
11320 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11322 2015-02-27 Pedro Alves <palves@redhat.com>
11324 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
11326 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
11328 2015-02-27 Pedro Alves <palves@redhat.com>
11330 * cli-out.c (_rl_erase_entire_line): Move declaration out of
11331 cli_mld_erase_entire_line, and make it extern "C".
11332 * common/common-defs.h (EXTERN_C): New.
11333 * completer.c (_rl_completion_prefix_display_length)
11334 (_rl_print_completions_horizontally, QSFUNC): Move declarations
11335 out of gdb_display_match_list_1.
11336 (_rl_qsort_string_compare): Move declaration out of
11337 gdb_display_match_list_1, and make it extern "C".
11338 * defs.h (re_comp): Use EXTERN_C.
11339 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
11340 and make it extern "C".
11341 (monstartup): Move declaration out of maintenance_set_profile_cmd,
11342 and make it extern "C".
11343 (main): Move declaration out of maintenance_set_profile_cmd.
11344 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
11347 2015-02-27 Pedro Alves <palves@redhat.com>
11349 * python/python.c (GdbMethods): Rename to ...
11350 (python_GdbMethods): ... this and make extern.
11351 (GdbModuleDef): Rename to ...
11352 (python_GdbModuleDef): ... this and make extern.
11354 2015-02-27 Pedro Alves <palves@redhat.com>
11356 * record-btrace.c (set_record_btrace_cmdlist)
11357 (show_record_btrace_cmdlist): Remove redefinitions.
11359 2015-02-27 Tom Tromey <tromey@redhat.com>
11360 Pedro Alves <palves@redhat.com>
11362 * dwarf2-frame.c (enum cfa_how_kind, struct
11363 dwarf2_frame_state_reg_info): Move out of struct
11364 dwarf2_frame_state.
11365 * dwarf2read.c (struct tu_stats): Move out of struct
11366 dwarf2_per_objfile.
11367 (struct file_entry): Move out of struct line_header.
11368 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
11369 typedef_field_list): Move out of struct field_info.
11370 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
11371 Move out of struct dynamic_prop.
11372 (union type_owner, union field_location, struct field, struct
11373 range_bounds, union type_specific): Move out of struct main_type.
11374 (struct fn_fieldlist, struct fn_field, struct typedef_field)
11375 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
11376 (struct call_site_target, union call_site_parameter_u, struct
11377 call_site_parameter): Move out of struct call_site.
11378 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
11380 (enum srcdest_kind): Move out of struct srcdest.
11381 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
11382 * prologue-value.h (enum prologue_value_kind): Move out of struct
11384 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
11386 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
11387 out of struct field_info.
11388 * symfile.h (struct other_sections): Move out of struct
11390 * symtab.c (struct symbol_cache_slot): Move out struct
11391 block_symbol_cache.
11392 * target-descriptions.c (enum tdesc_type_kind): Move out of
11393 typedef struct tdesc_type.
11394 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
11395 struct tui_line_or_address.
11396 * value.c (enum internalvar_kind, union internalvar_data): Move
11397 out of struct internalvar.
11398 * xtensa-tdep.h (struct ctype_cache): Move out of struct
11401 2015-02-27 Tom Tromey <tromey@redhat.com>
11402 Pedro Alves <palves@redhat.com>
11404 Rename symbols whose names are reserved C++ keywords throughout.
11406 2015-02-27 Pedro Alves <palves@redhat.com>
11408 * Makefile.in (COMPILER): New, get it from autoconf.
11409 (COMPILE.pre, CC_LD): Use COMPILER.
11410 (CXX): Get from autoconf instead.
11411 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11412 * acinclude.m4: Include build-with-cxx.m4.
11413 * build-with-cxx.m4: New file.
11414 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11415 Disable -Werror by default if building in C++ mode.
11416 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11417 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
11418 Run supported-warning-flags tests with the C++ compiler.
11419 Save/restore CXXFLAGS too.
11420 * configure: Regenerate.
11422 2015-02-27 Pedro Alves <palves@redhat.com>
11424 * libiberty.m4: New file.
11425 * acinclude.m4: Include libiberty.m4.
11426 * configure.ac: Call libiberty_INIT.
11427 * config.in, configure: Regenerate.
11429 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
11431 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
11432 31-bit targets, but 64-bit targets as well.
11433 (s390_gnu_triplet_regexp): New function.
11434 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
11435 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
11438 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
11440 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
11441 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
11442 from CONTEXT_DEBUGGER.
11444 2015-02-26 Doug Evans <dje@google.com>
11446 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
11448 (set_type_vptr_fieldno): Ditto.
11449 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
11450 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
11452 2015-02-26 Pedro Alves <palves@redhat.com>
11454 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
11455 * complaints.c (vcomplaint): Pass argument FMT directly to
11456 printf-like functions instead of complaint->fmt.
11457 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
11458 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
11459 * compile/compile-loc2c.c (pushf, unary, binary): Add
11461 (do_compile_dwarf_expr_to_c): Pass string literal as format string
11463 (BINARY): Pass string literal as format string to 'binary'.
11464 * compile/compile-object-load.c (link_callbacks_einfo): Add
11466 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
11468 2015-02-26 Pedro Alves <palves@redhat.com>
11470 * windows-termcap.c: Rename to ...
11471 * stub-termcap.c: ... this. Adjust header line.
11472 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
11474 * configure: Regenerate.
11475 * configure.ac: Refer to stub-termcap.o instead of
11477 * gdb_curses.h: Mention stub-termcap.c instead of
11480 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11482 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
11483 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
11485 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
11487 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
11489 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11491 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
11492 bfd_canonicalize_symtab.
11494 2015-02-25 John Baldwin <jhb@FreeBSD.org>
11496 * amd64fbsd-nat.c: Include sys/user.h.
11497 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11498 instead of KERN_PS_STRINGS to locate the signal trampoline.
11499 * i386fbsd-nat.c: Include sys/user.h.
11500 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11501 instead of KERN_PS_STRINGS to locate the signal trampoline.
11502 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
11503 (amd64fbsd_sigtramp_p): New.
11504 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
11505 longer set default values.
11506 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
11507 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
11508 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
11509 (i386fbsd_freebsd4_sigtramp_start)
11510 (i386fbsd_freebsd4_sigtramp_middle)
11511 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
11512 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
11513 (i386fbsd_sigtramp_p): New.
11514 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
11515 longer set default values.
11516 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
11518 2015-02-25 John Baldwin <jhb@freebsd.org>
11520 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
11521 get_frame_register instead of frame_unwind_register_unsigned.
11523 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11526 * compile/compile-c-support.c (c_compute_program): Change // comment.
11527 * compile/compile-object-load.c (setup_sections): Change // comment.
11529 2015-02-26 Joel Brobecker <brobecker@adacore.com>
11532 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
11534 2015-02-23 Pedro Alves <palves@redhat.com>
11536 * remote.c (skip_to_semicolon): New function.
11537 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
11538 special case the stop reasons that look like hex numbers
11539 upfront. Instead handle real register numbers after matching
11540 all the known stop reasons.
11542 2015-02-21 Doug Evans <dje@google.com>
11544 PR c++/17976, symtab/17821
11545 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
11546 is_in_anonymous. All callers updated.
11547 (find_symbol_in_baseclass): Ditto.
11548 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
11549 for symbols in an anonymous namespace.
11550 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
11551 DW_AT_name directly.
11552 (dwarf2_name): Convert missing namespace name to
11553 CP_ANONYMOUS_NAMESPACE_STR.
11555 2015-02-20 Pedro Alves <palves@redhat.com>
11557 * linux-nat.c (linux_handle_extended_wait): Call
11558 thread_db_notice_clone whenever a new clone LWP is detected.
11559 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
11561 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
11562 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
11563 (linux_unstop_all_lwps): Declare.
11564 * linux-thread-db.c (struct thread_get_info_inout): Delete.
11565 (thread_get_info_callback): Delete.
11566 (thread_from_lwp): Use td_thr_get_info and record_thread.
11567 (thread_db_attach_lwp): Delete.
11568 (thread_db_notice_clone): New function.
11569 (try_thread_db_load_1): If /proc is mounted and shows the
11570 process'es task list, walk over all LWPs and call thread_from_lwp
11571 instead of relying on td_ta_thr_iter.
11572 (attach_thread): Don't call check_thread_signals here. Split the
11573 tail part of the function (which adds the thread to the core GDB
11574 thread list) to ...
11575 (record_thread): ... this function. Call check_thread_signals
11577 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
11578 call thread_from_lwp.
11579 (thread_db_update_thread_list): Rename to ...
11580 (thread_db_update_thread_list_org): ... this.
11581 (thread_db_update_thread_list): New function.
11582 (thread_db_find_thread_from_tid): Delete.
11583 (thread_db_get_ada_task_ptid): Simplify.
11584 * nat/linux-procfs.c: Include <sys/stat.h>.
11585 (linux_proc_task_list_dir_exists): New function.
11586 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
11588 2015-02-20 Pedro Alves <palves@redhat.com>
11590 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
11591 main LWP. Handle the case of waitpid returning 0 if we're already
11592 attached to the LWP. Don't set the LWP's last_resume_kind to
11593 resume_stop if we already knew about the LWP.
11594 (linux_nat_filter_event): Add debug logs.
11596 2015-02-20 Pedro Alves <palves@redhat.com>
11598 * target.h (forward_target_decr_pc_after_break): Delete
11601 2015-02-20 Pedro Alves <palves@redhat.com>
11604 * linux-thread-db.c (thread_get_info_callback): Return early if
11605 the thread's lwp id is -1.
11607 2015-02-20 Joel Brobecker <brobecker@adacore.com>
11611 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
11613 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
11614 (dtrace_get_probes) Change type of variable 'dof'.
11616 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11618 PR breakpoints/16812
11619 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
11620 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
11621 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
11623 2015-02-19 David Taylor <dtaylor@emc.com>
11625 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
11627 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
11629 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
11631 (tui_putc): Don't call tui_handle_resize_during_io.
11632 (tui_getc): Likewise.
11633 (tui_mld_getc): Likewise.
11634 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
11635 (tui_sigwinch_token): New static variable.
11636 (tui_initialize_win): Adjust documentation. Set
11637 tui_sigwinch_token.
11638 (tui_async_resize_screen): New asynchronous callback.
11639 (tui_sigwinch_handler): Adjust documentation. Asynchronously
11640 invoke tui_async_resize_screen.
11642 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
11644 * configure: Regenerated.
11645 * configure.ac: Use GDB_AC_TRANSFORM.
11646 * Makefile.in (aclocal_m4_deps): Added transform.m4.
11647 * acinclude.m4: sinclude transform.m4.
11648 * transform.m4: New file.
11649 (GDB_AC_TRANSFORM): New macro.
11651 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11653 * NEWS: Announce the support for DTrace SDT probes.
11655 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11657 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
11658 (amd64_dtrace_parse_probe_argument): New function.
11659 (amd64_dtrace_probe_is_enabled): Likewise.
11660 (amd64_dtrace_enable_probe): Likewise.
11661 (amd64_dtrace_disable_probe): Likewise.
11662 (amd64_linux_init_abi): Register the
11663 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
11664 `gdbarch_dtrace_disable_probe' and
11665 `gdbarch_dtrace_probe_is_enabled' hooks.
11666 (amd64_dtrace_disabled_probe_sequence_1): New constant.
11667 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
11668 (amd64_dtrace_enable_probe_sequence): Likewise.
11669 (amd64_dtrace_disable_probe_sequence): Likewise.
11671 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11673 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
11674 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
11675 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
11677 * Makefile.in (SFILES): dtrace-probe.c added.
11678 * configure: Regenerate.
11679 * dtrace-probe.c: New file.
11680 (SHT_SUNW_dof): New constant.
11681 (dtrace_probe_type): New enum.
11682 (dtrace_probe_arg): New struct.
11683 (dtrace_probe_arg_s): New typedef.
11684 (struct dtrace_probe_enabler): New struct.
11685 (dtrace_probe_enabler_s): New typedef.
11686 (dtrace_probe): New struct.
11687 (dtrace_probe_is_linespec): New function.
11688 (dtrace_dof_sect_type): New enum.
11689 (dtrace_dof_dofh_ident): Likewise.
11690 (dtrace_dof_encoding): Likewise.
11691 (DTRACE_DOF_ENCODE_LSB): Likewise.
11692 (DTRACE_DOF_ENCODE_MSB): Likewise.
11693 (dtrace_dof_hdr): New struct.
11694 (dtrace_dof_sect): Likewise.
11695 (dtrace_dof_provider): Likewise.
11696 (dtrace_dof_probe): Likewise.
11697 (DOF_UINT): New macro.
11698 (DTRACE_DOF_PTR): Likewise.
11699 (DTRACE_DOF_SECT): Likewise.
11700 (dtrace_process_dof_probe): New function.
11701 (dtrace_process_dof): Likewise.
11702 (dtrace_build_arg_exprs): Likewise.
11703 (dtrace_get_arg): Likewise.
11704 (dtrace_get_probes): Likewise.
11705 (dtrace_get_probe_argument_count): Likewise.
11706 (dtrace_can_evaluate_probe_arguments): Likewise.
11707 (dtrace_evaluate_probe_argument): Likewise.
11708 (dtrace_compile_to_ax): Likewise.
11709 (dtrace_probe_destroy): Likewise.
11710 (dtrace_gen_info_probes_table_header): Likewise.
11711 (dtrace_gen_info_probes_table_values): Likewise.
11712 (dtrace_probe_is_enabled): Likewise.
11713 (dtrace_probe_ops): New variable.
11714 (info_probes_dtrace_command): New function.
11715 (_initialize_dtrace_probe): Likewise.
11716 (dtrace_type_name): Likewise.
11718 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11720 * gdbarch.sh (dtrace_parse_probe_argument): New.
11721 (dtrace_probe_is_enabled): Likewise.
11722 (dtrace_enable_probe): Likewise.
11723 (dtrace_disable_probe): Likewise.
11724 * gdbarch.c: Regenerate.
11725 * gdbarch.h: Regenerate.
11727 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11729 * stap-probe.c (stap_probe_ops): Add NULLs in the static
11730 stap_probe_ops for `enable_probe' and `disable_probe'.
11731 * probe.c (enable_probes_command): New function.
11732 (disable_probes_command): Likewise.
11733 (_initialize_probe): Define the cli commands `enable probe' and
11735 (parse_probe_linespec): New function.
11736 (info_probes_for_ops): Use parse_probe_linespec.
11737 * probe.h (probe_ops): New hooks `enable_probe' and
11740 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11742 * probe.c (compute_probe_arg): Moved from stap-probe.c
11743 (compile_probe_arg): Likewise.
11744 (probe_funcs): Likewise.
11745 * stap-probe.c (compute_probe_arg): Moved to probe.c.
11746 (compile_probe_arg): Likewise.
11747 (probe_funcs): Likewise.
11749 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11751 * probe.c (print_ui_out_not_applicables): New function.
11752 (exists_probe_with_pops): Likewise.
11753 (info_probes_for_ops): Do not include column headers for probe
11754 types for which no probe has been actually found on any object.
11755 Also invoke `print_ui_out_not_applicables' in order to match the
11756 column rows with the header when probes of several types are
11758 Print the "Type" column.
11759 * probe.h (probe_ops): Added a new probe operation `type_name'.
11760 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
11761 (stap_type_name): New function.
11763 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
11765 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
11766 (key_is_command_char): Delete.
11768 2015-02-17 Pedro Alves <palves@redhat.com>
11770 * tui/tui.c (tui_enable): Resize windows before anything
11771 might show a window.
11773 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
11776 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
11777 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
11779 * aarch64-tdep.h (tdesc_aarch64): Declare.
11781 2015-02-12 Mark Wielaard <mjw@redhat.com>
11783 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
11785 2015-02-13 Doug Evans <dje@google.com>
11787 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
11788 anonymous_namespace to is_in_anonymous for consistency with the rest
11790 (cp_lookup_bare_symbol): Fix typo in comment.
11791 (cp_search_static_and_baseclasses): Ditto.
11792 (search_symbol_list): Use vertical space in comment better.
11793 (reset_directive_searched): Ditto. Fix typo.
11794 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
11796 2015-02-13 Yao Qi <yao.qi@arm.com>
11798 * MAINTAINERS: Update my email address.
11800 2015-02-12 Doug Evans <dje@google.com>
11802 * symtab.c (completion_list_add_name): Fix memory leak.
11804 2015-02-12 Doug Evans <dje@google.com>
11806 * completer.c (complete_line): Remove incorrect comment.
11808 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11810 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
11811 (py_print_frame): Use RETURN_MASK_ERROR.
11813 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11815 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
11816 function comment. Wrap all function that can throw in cleanups.
11817 (gdbpy_apply_frame_filter): Wrap all function that can throw in
11820 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11822 * python/py-framefilter.c (py_print_frame): Substitute goto error.
11823 Remove the error label.
11825 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11827 * python/py-framefilter.c (py_print_frame): Put conditional code paths
11828 with goto first, indent the former else codepath left. Put variable
11829 'elided' to a new inner block.
11831 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11833 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
11835 2015-02-11 Pedro Alves <palves@redhat.com>
11837 * xcoffread.c (within_function): Delete.
11839 2015-02-11 Tom Tromey <tromey@redhat.com>
11840 Pedro Alves <palves@redhat.com>
11842 * breakpoint.c (base_breakpoint_ops): Delete.
11843 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
11844 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
11845 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
11846 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
11847 * python/py-arch.c (arch_object_type): Make extern.
11848 * python/py-block.c (block_syms_iterator_object_type): Make extern.
11849 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
11850 * python/py-cmd.c (cmdpy_object_type): Make extern.
11851 * python/py-continueevent.c (continue_event_object_type)
11852 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
11853 parameter. Update all callers.
11854 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
11855 * python/py-exitedevent.c (exited_event_object_type): Make extern.
11856 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
11857 * python/py-function.c (fnpy_object_type): Make extern.
11858 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
11859 * python/py-infevents.c (call_pre_event_object_type)
11860 (inferior_call_post_event_object_type).
11861 (memory_changed_event_object_type): Make extern.
11862 * python/py-infthread.c (thread_object_type): Make extern.
11863 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
11864 * python/py-linetable.c (linetable_entry_object_type)
11865 (linetable_object_type, ltpy_iterator_object_type): Make extern.
11866 * python/py-newobjfileevent.c (new_objfile_event_object_type)
11867 (clear_objfiles_event_object_type): Make extern.
11868 * python/py-objfile.c (objfile_object_type): Make extern.
11869 * python/py-param.c (parmpy_object_type): Make extern.
11870 * python/py-progspace.c (pspace_object_type): Make extern.
11871 * python/py-signalevent.c (signal_event_object_type): Make extern.
11872 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
11873 * python/py-type.c (type_object_type, field_object_type)
11874 (type_iterator_object_type): Make extern.
11875 * python/python.c (python_extension_script_ops)
11876 (python_extension_ops): Make extern.
11877 * stap-probe.c (stap_probe_ops): Make extern.
11879 2015-02-11 Pedro Alves <pedro@codesourcery.com>
11881 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
11882 because the event thread is not the current thread.
11884 2015-02-11 Doug Evans <xdje42@gmail.com>
11886 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
11887 been initialized yet, return NULL.
11889 2015-02-11 Doug Evans <dje@google.com>
11891 * symfile.h (new_symfile_objfile): Delete.
11892 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
11893 All callers updated.
11895 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11897 * tui/tui-io.c (tui_handle_resize_during_io): Call
11898 tui_update_gdb_sizes() after resizing the screen.
11899 * tui/tui.c (tui_enable): Resize the terminal before
11900 calling tui_update_gdb_sizes().
11902 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11904 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
11905 line before printing a newline.
11907 2015-02-11 Mark Wielaard <mjw@redhat.com>
11909 * utils.c (producer_is_gcc): Return true or false.
11911 2015-02-10 Mark Wielaard <mjw@redhat.com>
11913 * utils.h (producer_is_gcc): Change return type to bool. Add major
11915 * utils.c (producer_is_gcc): Likewise.
11916 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
11917 * dwarf2read.c (check_producer): Likewise.
11919 2015-02-10 Pedro Alves <palves@redhat.com>
11921 * infrun.c (displaced_step_fixup): Switch to the event thread
11922 before calling gdbarch_displaced_step_fixup.
11924 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11926 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
11928 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
11930 * ada-varobj.c (ada_name_of_child): Constify parent.
11931 (ada_path_expr_of_child): Same.
11932 (ada_value_of_child): Same.
11933 (ada_type_of_child): Same.
11934 * c-varobj.c (c_is_path_expr_parent): Same.
11935 (c_describe_child): Same.
11936 (c_name_of_child): Same.
11937 (c_value_of_child): Same.
11938 (c_type_of_child): Same.
11939 (cplus_number_of_children): Same.
11940 (cplus_describe_child): Constify var.
11941 (cplus_name_of_child): Constify parent.
11942 (cplus_value_of_child): Same.
11943 (cplus_type_of_child): Same.
11944 * jv-varobj.c (java_name_of_child): Same.
11945 (java_value_of_child): Same.
11946 (java_type_of_child): Same.
11947 * varobj.c (value_of_child): Same.
11948 (varobj_default_is_path_expr_parent): Constify var, parent and return
11950 (varobj_get_path_expr): Constify var, modify path_expr through
11952 (install_new_value): Constify parent.
11953 (value_of_child): Constify parent.
11954 * varobj.h (struct varobj): Constify parent.
11955 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11957 (varobj_get_path_expr): Constify var.
11958 (varobj_get_path_expr_parent): Constify var and return value.
11960 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
11962 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11963 (arm_prologue_this_id): Move PC and SP limit checks to
11964 arm_prologue_unwind_stop_reason.
11965 (arm_prologue_unwind) <stop_reason> : Set to
11966 arm_prologue_unwind_stop_reason.
11968 2015-02-09 Mark Wielaard <mjw@redhat.com>
11970 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11971 DW_LANG_Fortran08 as language_fortran.
11973 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
11976 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11977 of pointer against char.
11979 2015-02-09 Mark Wielaard <mjw@redhat.com>
11981 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11982 (c_type_print_modifier): Likewise.
11983 * dwarf2read.c (read_tag_atomic_type): New function.
11984 (read_type_die_1): Handle DW_TAG_atomic_type.
11985 * gdbtypes.c (make_atomic_type): New function.
11986 (recursive_dump_type): Handle TYPE_ATOMIC.
11987 * gdbtypes.h (enum type_flag_values): Renumber.
11988 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11989 (TYPE_ATOMIC): New macro.
11990 (make_atomic_type): Declare.
11992 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11994 * btrace.c (ftrace_find_call): Skip gaps.
11995 (ftrace_new_function): Initialize level.
11996 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11997 (ftrace_new_switch): Update
11999 (ftrace_new_gap): New.
12000 (ftrace_update_function): Create new function after gap.
12001 (btrace_compute_ftrace_bts): Create gap on error.
12002 (btrace_stitch_bts): Update parameters. Clear trace if it
12004 (btrace_stitch_trace): Update parameters. Update callers.
12005 (btrace_clear): Reset the number of gaps.
12006 (btrace_insn_get): Return NULL if the iterator points to a gap.
12007 (btrace_insn_number): Return zero if the iterator points to a gap.
12008 (btrace_insn_end): Allow gaps at the end.
12009 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
12010 (btrace_find_insn_by_number): Assert that the found iterator does
12011 not point to a gap.
12012 (btrace_call_next, btrace_call_prev): Assert that the last function
12014 * btrace.h (btrace_bts_error): New.
12015 (btrace_function): Update comment.
12016 (btrace_function) <insn, insn_offset, number>: Update comment.
12017 (btrace_function) <errcode>: New.
12018 (btrace_thread_info) <ngaps>: New.
12019 (btrace_thread_info) <replay>: Update comment.
12020 (btrace_insn_get): Update comment.
12021 * record-btrace.c (btrace_ui_out_decode_error): New.
12022 (record_btrace_info): Print number of gaps.
12023 (btrace_insn_history, btrace_call_history): Call
12024 btrace_ui_out_decode_error for gaps.
12025 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
12027 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12029 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
12030 * nat/linux-btrace.c: (btrace_this_cpu): New.
12031 (cpu_supports_bts): Call btrace_this_cpu.
12032 (intel_supports_bts): Add cpu parameter.
12034 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12036 * btrace.h (btrace_insn_class): New.
12037 (btrace_insn) <size, iclass>: New.
12038 * btrace.c (ftrace_find_call): Update parameters. Update users.
12039 Use instruction classification.
12040 (ftrace_new_return): Update parameters. Update users.
12041 (ftrace_update_function): Update parameters. Update users. Use
12042 instruction classification.
12043 (ftrace_update_insns): Update parameters. Update users.
12044 (ftrace_classify_insn): New.
12045 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
12046 TRY_CATCH around call to gdb_insn_length.
12048 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12050 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
12051 Update parameters. Update users.
12053 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12055 * btrace.c (parse_xml_btrace_conf_bts): Add size.
12056 (btrace_conf_bts_attributes): New.
12057 (btrace_conf_children): Add attributes.
12058 * common/btrace-common.h (btrace_config_bts): New.
12059 (btrace_config)<bts>: New.
12060 (btrace_config): Update comment.
12061 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
12063 * features/btrace-conf.dtd: Increment version. Add size
12064 attribute to bts element.
12065 * record-btrace.c (set_record_btrace_bts_cmdlist,
12066 show_record_btrace_bts_cmdlist): New.
12067 (record_btrace_adjust_size, record_btrace_print_bts_conf,
12068 record_btrace_print_conf, cmd_set_record_btrace_bts,
12069 cmd_show_record_btrace_bts): New.
12070 (record_btrace_info): Call record_btrace_print_conf.
12071 (_initialize_record_btrace): Add commands.
12072 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
12073 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
12074 (btrace_sync_conf): Synchronize bts size.
12075 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
12076 * NEWS: Announce new commands and new packets.
12078 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12080 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
12081 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
12082 (x86_linux_btrace_conf): New.
12083 (x86_linux_create_target): Initialize to_btrace_conf.
12084 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
12085 Check format. Split into this and ...
12086 (linux_enable_bts): ... this.
12087 (linux_btrace_conf): New.
12088 (perf_event_skip_record): Renamed into ...
12089 (perf_event_skip_bts_record): ... this. Updated users.
12090 (linux_disable_btrace): Split into this and ...
12091 (linux_disable_bts): ... this.
12092 (linux_read_btrace): Check format.
12093 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
12094 (linux_btrace_conf): New.
12095 (btrace_target_info)<ptid>: Moved.
12096 (btrace_target_info)<conf>: New.
12097 (btrace_target_info): Split into this and ...
12098 (btrace_tinfo_bts): ... this. Updated users.
12099 * btrace.c (btrace_enable): Update parameters.
12100 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
12101 (btrace_conf_children, btrace_conf_attributes)
12102 (btrace_conf_elements): New.
12103 * btrace.h (btrace_enable): Update parameters.
12104 (btrace_conf, parse_xml_btrace_conf): New.
12105 * common/btrace-common.h (btrace_config): New.
12106 * feature/btrace-conf.dtd: New.
12107 * record-btrace.c (record_btrace_conf): New.
12108 (record_btrace_cmdlist): New.
12109 (record_btrace_enable_warn, record_btrace_open): Pass
12110 &record_btrace_conf.
12111 (record_btrace_info): Print recording format.
12112 (cmd_record_btrace_bts_start): New.
12113 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
12114 (_initialize_record_btrace): Add "record btrace bts" subcommand.
12115 Add "record bts" alias command.
12116 * remote.c (remote_state)<btrace_config>: New.
12117 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
12118 (remote_protocol_features): Add qXfer:btrace-conf:read.
12119 (remote_open_1): Call remote_btrace_reset.
12120 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
12121 (btrace_target_info)<conf>: New.
12122 (btrace_sync_conf, btrace_read_config): New.
12123 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
12125 (remote_btrace_conf): New.
12126 (init_remote_ops): Initialize to_btrace_conf.
12127 (_initialize_remote): Add qXfer:btrace-conf packet.
12128 * target.c (target_enable_btrace): Update parameters.
12129 (target_btrace_conf): New.
12130 * target.h (target_enable_btrace): Update parameters.
12131 (target_btrace_conf): New.
12132 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
12133 (target_ops)<to_enable_btrace>: Update parameters and comment.
12134 (target_ops)<to_btrace_conf>: New.
12135 * target-delegates: Regenerate.
12136 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
12137 (target_debug_print_const_struct_btrace_target_info_p): New.
12138 * NEWS: Announce new command and new packet.
12140 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12142 * nat/linux-btrace.h (perf_event_buffer): New.
12143 (btrace_target_info) <buffer, size, data_head>: Replace with ...
12145 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
12146 (perf_event_buffer_size, perf_event_buffer_begin)
12147 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
12149 (perf_event_new_data): New.
12151 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12153 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
12154 * record-btrace.c (record_btrace_open): Remove call to
12155 target_supports_btrace.
12156 * remote.c (remote_supports_btrace): Update parameters.
12157 * target.c (target_supports_btrace): Update parameters.
12158 * target.h (to_supports_btrace, target_supports_btrace): Update
12160 * target-delegates.c: Regenerate.
12161 * target-debug.h (target_debug_print_enum_btrace_format): New.
12162 * nat/linux-btrace.c
12163 (kernel_supports_btrace): Rename into ...
12164 (kernel_supports_bts): ... this. Update users. Update warning text.
12165 (intel_supports_btrace): Rename into ...
12166 (intel_supports_bts): ... this. Update users.
12167 (cpu_supports_btrace): Rename into ...
12168 (cpu_supports_bts): ... this. Update users.
12169 (linux_supports_btrace): Update parameters. Split into this and ...
12170 (linux_supports_bts): ... this.
12171 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
12173 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12175 * Makefile.in (SFILES): Add common/btrace-common.c.
12176 (COMMON_OBS): Add common/btrace-common.o.
12177 (btrace-common.o): Add build rules.
12178 * btrace.c (parse_xml_btrace): Update parameters.
12179 (parse_xml_btrace_block): Set format field.
12180 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
12181 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
12182 (btrace_compute_ftrace): Split into this and...
12183 (btrace_compute_ftrace_bts): ...this.
12184 (btrace_stitch_trace): Split into this and...
12185 (btrace_stitch_bts): ...this.
12186 * btrace.h (parse_xml_btrace): Update parameters.
12187 (make_cleanup_btrace_data): New.
12188 * common/btrace-common.c: New.
12189 * common/btrace-common.h: Include common-defs.h.
12190 (btrace_block_s): Update comment.
12191 (btrace_format): New.
12192 (btrace_format_string): New.
12193 (btrace_data_bts): New.
12194 (btrace_data): New.
12195 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
12196 * remote.c (remote_read_btrace): Update parameters.
12197 * target.c (target_read_btrace): Update parameters.
12198 * target.h (target_read_btrace): Update parameters.
12199 (target_ops)<to_read_btrace>: Update parameters.
12200 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
12201 * target-delegates.c: Regenerate.
12202 * target-debug (target_debug_print_struct_btrace_data_p): New.
12203 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
12204 (linux_read_bts): ...this.
12205 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
12207 2015-02-06 Doug Evans <dje@google.com>
12209 * remote-m32r-sdi.c: Include symfile.h.
12211 2015-02-06 Doug Evans <dje@google.com>
12213 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
12214 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
12217 2015-02-06 Pedro Alves <palves@redhat.com>
12219 * linux-thread-db.c (find_new_threads_callback): Add debug output.
12221 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
12224 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
12225 (enable_count_command): Check args for NULL value.
12227 2015-02-05 Doug Evans <xdje42@gmail.com>
12229 * guile/scm-frame.c: Fix spelling errors in a comment.
12231 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
12233 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
12234 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
12237 2015-02-04 Pedro Alves <palves@redhat.com>
12239 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
12240 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
12242 (resume_stopped_resumed_lwps): Don't check whether the thread is
12243 marked as executing.
12244 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
12246 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12248 * regset.h (struct regset): Add flags field.
12249 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
12250 * corelow.c (get_core_register_section): Add warning if the size
12251 exceeds the requested size and the regset does not have the
12252 REGSET_VARIABLE_SIZE flag set.
12253 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
12255 * armbsd-tdep.c (armbsd_gregset): Likewise.
12256 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
12257 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
12258 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
12259 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
12261 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12263 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
12264 For ".reg-xstate", explicitly specify the requested section size
12265 via X86_XSTATE_SIZE instead of just 0 on input and
12266 X86_XSTATE_MAX_SIZE on output.
12267 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
12270 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12272 PR corefiles/17808:
12273 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
12274 function type, particularly its SIZE parameter.
12275 * gdbarch.h: Regenerate.
12276 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
12277 actual against required size using ">=" instead of "==".
12278 (amd64_collect_fpregset): Likewise.
12279 * i386-tdep.c (i386_supply_gregset): Likewise.
12280 (i386_collect_gregset): Likewise.
12281 (i386_supply_fpregset): Likewise.
12282 (i386_collect_fpregset): Likewise.
12283 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
12284 (mips_fill_gregset_wrapper): Likewise.
12285 (mips_supply_fpregset_wrapper): Likewise.
12286 (mips_fill_fpregset_wrapper): Likewise.
12287 (mips64_supply_gregset_wrapper): Likewise.
12288 (mips64_fill_gregset_wrapper): Likewise.
12289 (mips64_supply_fpregset_wrapper): Likewise.
12290 (mips64_fill_fpregset_wrapper): Likewise.
12291 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
12292 (am33_supply_fpregset_method): Likewise.
12293 (am33_collect_gregset_method): Likewise.
12294 (am33_collect_fpregset_method): Likewise.
12296 2015-02-04 Doug Evans <dje@google.com>
12297 Pedro Alves <palves@redhat.com>
12298 Eli Zaretskii <eliz@gnu.org>
12301 * tui/tui-command.c (tui_refresh_cmd_win): New function.
12302 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
12303 * tui/tui-file.c: #include tui/tui-command.h.
12304 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
12305 (tui_file_flush): Refresh command window if stream is gdb_stdout.
12306 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
12308 2015-02-04 Pedro Alves <palves@redhat.com>
12310 Fix build breakage.
12311 * event-loop.c (gdb_do_one_event): Add default switch case.
12313 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12315 Filter out inferior gcc option -fpreprocessed.
12316 * compile/compile.c (filter_args): New function.
12317 (get_args): Use it.
12319 2015-02-03 Pedro Alves <palves@redhat.com>
12321 * event-loop.c: Don't declare nor define a queue type for
12323 (event_queue): Delete.
12324 (create_event, create_file_event, gdb_event_xfree)
12325 (initialize_event_loop, process_event): Delete.
12326 (gdb_do_one_event): Return as soon as one event is handled.
12327 (handle_file_event): Change prototype. Used the passed in
12328 file_handler pointer and ready_mask instead of looping over all
12330 (gdb_wait_for_event): Update the poll/select timeouts before
12331 blocking. Run event handlers directly instead of queueing events.
12332 Return as soon as one event is handled.
12333 (struct async_event_handler_data): Delete.
12334 (invoke_async_event_handler): Delete.
12335 (check_async_event_handlers): Change return type to int. Run
12336 event handlers directly instead of queueing events. Return as
12337 soon as one event is handled.
12338 (handle_timer_event): Delete.
12339 (update_wait_timeout): New function, factored out from
12341 (poll_timers): Reimplement.
12342 * event-loop.h (initialize_event_loop): Delete declaration.
12343 * top.c (gdb_init): Don't call initialize_event_loop.
12345 2015-02-03 Pedro Alves <palves@redhat.com>
12347 * event-loop.c (clear_async_event_handler): New function.
12348 * event-loop.h (clear_async_event_handler): New declaration.
12349 * record-btrace.c (record_btrace_async): New function.
12350 (init_record_btrace_ops): Install record_btrace_async.
12351 * record-full.c (record_full_async): New function.
12352 (record_full_resume): Don't mark the async event source here.
12353 (init_record_full_ops): Install record_full_async.
12354 (record_full_core_resume): Don't mark the async event source here.
12355 (init_record_full_core_ops): Install record_full_async.
12356 * remote.c (remote_async): Mark and clear the async stop reply
12357 queue event-loop token as appropriate.
12359 2015-02-03 Pedro Alves <palves@redhat.com>
12361 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
12362 target_is_async_p instead of target_can_async.
12363 (linux_nat_wait): Use target_is_async_p instead of
12364 target_can_async. Don't enable async here.
12365 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
12366 target_is_async_p instead of target_can_async.
12368 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
12370 * varobj.h (lang_varobj_ops): Mention which return values need
12373 2015-02-02 Joel Brobecker <brobecker@adacore.com>
12375 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
12377 2015-02-02 Joel Brobecker <brobecker@adacore.com>
12380 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
12381 results found in the cache.
12383 2015-02-02 Joel Brobecker <brobecker@adacore.com>
12386 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
12387 when allocating a new one.
12389 2015-02-01 Tom Tromey <tom@tromey.com>
12391 * MAINTAINERS: Remove myself.
12393 2015-01-31 Doug Evans <xdje42@gmail.com>
12395 * dwarf2read.c (process_structure_scope): Update setting of
12396 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
12397 * gdbtypes.c (internal_type_vptr_fieldno): New function.
12398 (set_type_vptr_fieldno): New function.
12399 (internal_type_vptr_basetype): New function.
12400 (set_type_vptr_basetype): New function.
12401 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
12402 TYPE_VPTR_BASETYPE.
12403 (allocate_cplus_struct_type): Initialize vptr_fieldno.
12404 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
12405 (print_cplus_stuff): ... moved here.
12406 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
12407 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
12409 (struct cplus_struct_type): ... here. All uses updated.
12410 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
12411 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
12412 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
12413 * stabsread.c (read_tilde_fields): Update setting of
12414 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
12416 2015-01-31 Doug Evans <xdje42@gmail.com>
12418 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
12420 (cp_print_class_member): Rename local domain to self_type.
12421 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
12422 domain_type to self_type.
12423 (set_die_type) <need_gnat_info>: Handle
12424 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
12425 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
12426 TYPE_SPECIFIC_SELF_TYPE.
12427 * gdbtypes.c (internal_type_self_type): New function.
12428 (set_type_self_type): New function.
12429 (smash_to_memberptr_type): Rename parameter domain to self_type.
12430 Update setting of TYPE_SELF_TYPE.
12431 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
12432 (smash_to_method_type): Rename parameter domain to self_type.
12433 Update setting of TYPE_SELF_TYPE.
12434 (check_stub_method): Call smash_to_method_type.
12435 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
12436 (copy_type_recursive): Ditto.
12437 * gdbtypes.h (enum type_specific_kind): New value
12438 TYPE_SPECIFIC_SELF_TYPE.
12439 (struct main_type) <type_specific>: New member self_type.
12440 (struct cplus_struct_type) <fn_field.type>: Update comment.
12441 (TYPE_SELF_TYPE): Rewrite.
12442 (internal_type_self_type, set_type_self_type): Declare.
12443 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
12445 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
12446 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
12448 * stabsread.c (read_member_functions): Mark methods with
12449 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
12452 2015-01-31 Doug Evans <xdje42@gmail.com>
12454 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
12457 2015-01-31 Doug Evans <xdje42@gmail.com>
12459 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
12460 or unions. Return zero if union.
12461 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
12462 (gnuv3_rtti_type): Pass already-check_typedef'd value to
12464 (compute_vtable_size): Assert only passed structs.
12465 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
12467 2015-01-31 Doug Evans <xdje42@gmail.com>
12469 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
12472 2015-01-31 Gary Benson <gbenson@redhat.com>
12473 Doug Evans <dje@google.com>
12478 * cli/cli-cmds.c (complete_command): Notify user if max-completions
12480 * common/common-exceptions.h (enum errors)
12481 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
12482 * completer.h (get_max_completions_reached_message): New declaration.
12483 (max_completions): Likewise.
12484 (completion_tracker_t): New typedef.
12485 (new_completion_tracker): New declaration.
12486 (make_cleanup_free_completion_tracker): Likewise.
12487 (maybe_add_completion_enum): New enum.
12488 (maybe_add_completion): New declaration.
12489 (throw_max_completions_reached_error): Likewise.
12490 * completer.c (max_completions): New global variable.
12491 (new_completion_tracker): New function.
12492 (free_completion_tracker): Likewise.
12493 (make_cleanup_free_completion_tracker): Likewise.
12494 (maybe_add_completions): Likewise.
12495 (throw_max_completions_reached_error): Likewise.
12496 (complete_line): Remove duplicates and limit result to max_completions
12498 (get_max_completions_reached_message): New function.
12499 (gdb_display_match_list): Handle max_completions.
12500 (_initialize_completer): New declaration and function.
12501 * symtab.c: Include completer.h.
12502 (completion_tracker): New static variable.
12503 (completion_list_add_name): Call maybe_add_completion.
12504 (default_make_symbol_completion_list_break_on_1): Renamed from
12505 default_make_symbol_completion_list_break_on. Maintain
12506 completion_tracker across calls to completion_list_add_name.
12507 (default_make_symbol_completion_list_break_on): New function.
12508 * top.c (init_main): Set rl_completion_display_matches_hook.
12509 * tui/tui-io.c: Include completer.h.
12510 (tui_old_rl_display_matches_hook): New static global.
12511 (tui_rl_display_match_list): Notify user if max-completions reached.
12512 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
12513 * NEWS (New Options): Mention set/show max-completions.
12515 2015-01-31 Gary Benson <gbenson@redhat.com>
12517 * symtab.c (struct add_name_data) <code>: New field.
12519 (add_symtab_completions): New function.
12520 (symtab_expansion_callback): Likewise.
12521 (default_make_symbol_completion_list_break_on): Set datum.code.
12522 Move minimal symbol scan before calling expand_symtabs_matching.
12523 Scan known primary symtabs for externs and statics before calling
12524 expand_symtabs_matching. Pass symtab_expansion_callback as
12525 expansion_notify argument to expand_symtabs_matching. Do not scan
12526 primary symtabs for externs and statics after calling
12527 expand_symtabs_matching.
12529 2015-01-31 Gary Benson <gbenson@redhat.com>
12531 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
12532 (struct quick_symbol_functions) <expand_symtabs_matching>:
12533 New argument expansion_notify. All uses updated.
12534 (expand_symtabs_matching): New argument expansion_notify.
12536 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12537 Also print expansion notify.
12538 * symtab.c (expand_symtabs_matching_via_partial): Call
12539 expansion_notify whenever a partial symbol table is expanded.
12540 * dwarf2read.c (dw2_expand_symtabs_matching): Call
12541 expansion_notify whenever a symbol table is instantiated.
12543 2015-01-31 Doug Evans <xdje42@gmail.com>
12545 * cli-out.c: #include completer.h, readline/readline.h.
12546 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
12547 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
12548 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
12549 * cli-out.h (cli_display_match_list): Declare.
12550 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
12551 (ELLIPSIS_LEN): Ditto.
12552 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
12553 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
12554 (gdb_fnprint, gdb_print_filename): Ditto.
12555 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
12556 (gdb_display_match_list): Ditto.
12557 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
12558 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
12559 (mld_beep_ftype, mld_read_key_ftype): Ditto.
12560 (match_list_displayer): New struct.
12561 (gdb_display_match_list): Declare.
12562 * top.c (init_main): Set rl_completion_display_matches_hook.
12563 * tui/tui-io.c: #include completer.h.
12564 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
12565 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
12566 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
12567 (tui_mld_getc, tui_mld_read_key): Ditto.
12568 (tui_rl_display_match_list): Rewrite.
12569 (tui_handle_resize_during_io): New arg for_completion. All callers
12572 2015-01-31 Doug Evans <xdje42@gmail.com>
12574 Add symbol lookup cache.
12575 * NEWS: Document new options and commands.
12576 * symtab.c (symbol_cache_key): New static global.
12577 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
12578 (SYMBOL_LOOKUP_FAILED): New macro.
12579 (symbol_cache_slot_state): New enum.
12580 (block_symbol_cache): New struct.
12581 (symbol_cache): New struct.
12582 (new_symbol_cache_size, symbol_cache_size): New static globals.
12583 (hash_symbol_entry, eq_symbol_entry): New functions.
12584 (symbol_cache_byte_size, resize_symbol_cache): New functions.
12585 (make_symbol_cache, free_symbol_cache): New functions.
12586 (get_symbol_cache, symbol_cache_cleanup): New function.
12587 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
12588 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
12589 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
12590 (symbol_cache_flush, symbol_cache_dump): New functions.
12591 (maintenance_print_symbol_cache): New function.
12592 (maintenance_flush_symbol_cache): New function.
12593 (symbol_cache_stats): New function.
12594 (maintenance_print_symbol_cache_statistics): New function.
12595 (symtab_new_objfile_observer): New function.
12596 (symtab_free_objfile_observer): New function.
12597 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
12598 (_initialize_symtab): Init symbol_cache_key. New parameter
12599 maint symbol-cache-size. New maint commands print symbol-cache,
12600 print symbol-cache-statistics, flush-symbol-cache.
12601 Install new_objfile, free_objfile observers.
12603 2015-01-31 Joel Brobecker <brobecker@adacore.com>
12606 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
12609 2015-01-31 Doug Evans <xdje42@gmail.com>
12611 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
12612 * auto-load.c: #include ctype.h.
12613 (struct auto_load_pspace_info): Replace member loaded_scripts with
12614 new members loaded_script_files, loaded_script_texts.
12615 (auto_load_pspace_data_cleanup): Update.
12616 (init_loaded_scripts_info): Update.
12617 (get_auto_load_pspace_data_for_loading): Update.
12618 (maybe_add_script_file): Renamed from maybe_add_script. All callers
12620 (maybe_add_script_text): New function.
12621 (clear_section_scripts): Update.
12622 (source_script_file, execute_script_contents): New functions.
12623 (source_section_scripts): Add support for
12624 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
12625 (print_scripts): New function.
12626 (auto_load_info_scripts): Also print inlined scripts.
12627 (maybe_print_unsupported_script_warning): Renamed from
12628 unsupported_script_warning_print. All callers updated.
12629 (maybe_print_script_not_found_warning): Renamed from
12630 script_not_found_warning_print. All callers updated.
12631 * extension-priv.h (struct extension_language_script_ops): New member
12632 objfile_script_executor.
12633 * extension.c (ext_lang_objfile_script_executor): New function.
12634 * extension.h (objfile_script_executor_func): New typedef.
12635 (ext_lang_objfile_script_executor): Declare.
12636 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
12637 * guile/guile.c (guile_extension_script_ops): Update.
12638 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
12639 * python/python.c (python_extension_script_ops): Update.
12640 (gdbpy_execute_objfile_script): New function.
12642 2015-01-31 Eli Zaretskii <eliz@gnu.org>
12644 * tui/tui-io.c (tui_expand_tabs): New function.
12645 (tui_puts, tui_redisplay_readline): Expand TABs into the
12646 appropriate number of spaces.
12647 * tui/tui-regs.c: Include tui-io.h.
12648 (tui_register_format): Call tui_expand_tabs to expand TABs into
12649 the appropriate number of spaces.
12650 * tui/tui-io.h: Add prototype for tui_expand_tabs.
12652 2015-01-30 Doug Evans <dje@google.com>
12654 * NEWS: "info source" command now display producer string if present.
12655 * source.c (source_info): Print producer string if present.
12657 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12659 * varobj.c (varobj_delete): Fix comment.
12661 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12663 * varobj.c (create_child): Modify comment.
12665 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12667 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
12669 (ada_name_of_variable): Same.
12670 (ada_path_expr_of_child): Same.
12671 (ada_value_of_variable): Same.
12672 (ada_value_is_changeable_p): Same.
12673 (ada_value_has_mutated): Same.
12674 * c-varobj.c (varobj_is_anonymous_child): Same.
12675 (c_is_path_expr_parent): Same.
12676 (c_number_of_children): Same.
12677 (c_name_of_variable): Same.
12678 (c_path_expr_of_child): Same.
12680 (c_value_of_variable): Same.
12681 (cplus_number_of_children): Same.
12682 (cplus_name_of_variable): Same.
12683 (cplus_path_expr_of_child): Same.
12684 (cplus_value_of_variable): Same.
12685 * jv-varobj.c (java_number_of_children): Same.
12686 (java_name_of_variable): Same.
12687 (java_path_expr_of_child): Same.
12688 (java_value_of_variable): Same.
12689 * varobj.c (number_of_children): Same.
12690 (name_of_variable): Same.
12692 (varobj_ensure_python_env): Same.
12693 (varobj_get_objname): Same.
12694 (varobj_get_expression): Same.
12695 (varobj_get_display_format): Same.
12696 (varobj_get_display_hint): Same.
12697 (varobj_has_more): Same.
12698 (varobj_get_thread_id): Same.
12699 (varobj_get_frozen): Same.
12700 (dynamic_varobj_has_child_method): Same.
12701 (varobj_get_gdb_type): Same.
12702 (is_path_expr_parent): Same.
12703 (varobj_default_is_path_expr_parent): Same.
12704 (varobj_get_language): Same.
12705 (varobj_get_attributes): Same.
12706 (varobj_is_dynamic_p): Same.
12707 (varobj_get_child_range): Same.
12708 (varobj_value_has_mutated): Same.
12709 (varobj_get_value_type): Same.
12710 (number_of_children): Same.
12711 (name_of_variable): Same.
12712 (check_scope): Same.
12713 (varobj_editable_p): Same.
12714 (varobj_value_is_changeable_p): Same.
12715 (varobj_floating_p): Same.
12716 (varobj_default_value_is_changeable_p): Same.
12718 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12720 * varobj.c (varobj_get_path_expr): Set var->path_expr.
12721 * c-varobj.c (c_path_expr_of_child): Set local var instead of
12723 (cplus_path_expr_of_child): Same.
12725 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12727 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
12729 (mi_cmd_var_info_expression): Same.
12730 * varobj.c (varobj_get_expression): Mention in the comment that
12731 the result must by freed by the caller.
12733 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12735 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
12737 (varobj_update_one): Same.
12738 * varobj.c (update_type_if_necessary): Free curr_type_str and
12740 (varobj_get_type): Specify in comment that the result needs to be
12741 freed by the caller.
12743 2015-01-29 Doug Evans <dje@google.com>
12746 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
12748 2015-01-25 Mark Wielaard <mjw@redhat.com>
12750 * dwarf2read.c (checkproducer): Call producer_is_gcc.
12751 * utils.c (producer_is_gcc_ge_4): Likewise.
12752 (producer_is_gcc): New function.
12753 * utils.h (producer_is_gcc): New declaration.
12755 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12757 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
12759 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
12760 parameter by "addr_stack" parameter.
12761 (resolve_dynamic_range): Replace "addr" parameter by
12762 "stack_addr" parameter. Update function documentation.
12763 Update code accordingly.
12764 (resolve_dynamic_array, resolve_dynamic_union)
12765 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
12766 (resolve_dynamic_type): Update code, following the changes made
12767 to resolve_dynamic_type_internal's interface.
12768 * dwarf2loc.h (struct property_addr_info): New.
12769 (dwarf2_evaluate_property): Replace "address" parameter
12770 by "addr_stack" parameter. Adjust function documentation.
12771 (struct dwarf2_offset_baton): New.
12772 (struct dwarf2_property_baton): Update documentation of
12773 field "referenced_type" to be more general. New field
12774 "offset_info" in union data field.
12775 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
12776 parameter by "addr_stack" parameter. Adjust code accordingly.
12777 Add support for PROP_ADDR_OFFSET properties.
12778 * dwarf2read.c (attr_to_dynamic_prop): Add support for
12779 DW_AT_data_member_location attributes as well. Use case
12780 statements instead of if/else condition.
12782 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12784 * ada-varobj.c (ada_varobj_get_array_number_of_children):
12785 Return zero if PARENT_VALUE is NULL and parent_type's
12786 range type is dynamic.
12788 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12790 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
12791 nonzero if the type's subtype is dynamic.
12792 (resolve_dynamic_range): Also resolve the range's subtype.
12794 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
12796 Pushed by Joel Brobecker <brobecker@adacore.com>.
12797 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
12799 2015-01-27 Doug Evans <dje@google.com>
12801 * NEWS: Mention gdb.Objfile.username.
12802 * python/py-objfile.c (objfpy_get_username): New function.
12803 (objfile_getset): Add "username".
12805 2015-01-24 Mark Wielaard <mjw@redhat.com>
12807 * stack.c (return_command): Markup warning message with _.
12809 2015-01-24 Doug Evans <xdje42@gmail.com>
12811 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
12813 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12815 Fix 100x slowdown regression on DWZ files.
12816 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
12817 (struct line_header): Add offset and offset_in_dwz.
12818 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
12819 (free_line_header_voidp): New declaration.
12820 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
12822 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
12823 (handle_DW_AT_stmt_list): Use line_header_hash.
12824 (free_line_header_voidp): New function.
12825 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
12826 (dwarf_decode_lines): New parameter decode_mapping, use it.
12827 (dwarf2_free_objfile): Free line_header_hash.
12829 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
12832 * valops.c (value_rtti_indirect_type): Catch exception thrown by
12835 2015-01-15 Mark Wielaard <mjw@redhat.com>
12837 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
12839 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
12840 calling_convention an 8 bit bit field.
12841 (TYPE_NO_RETURN): New macro.
12842 * infcmd.c (finish_command): Query if function does not return
12844 * stack.c (return_command): Likewise.
12846 2015-01-23 Pedro Alves <palves@redhat.com>
12848 * linux-nat.c (linux_is_async_p): New macro.
12849 (linux_nat_is_async_p):
12850 (linux_nat_terminal_inferior): Check whether the target can async
12851 instead of whether it is already async.
12852 (linux_nat_terminal_ours): Don't check whether the target is
12854 (linux_async_pipe): Use linux_is_async_p.
12856 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12858 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
12860 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
12861 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
12862 Sort tp_array using tp_array_compar.
12863 (_initialize_thread): Extend thread_apply_all_command help.
12865 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12867 * corelow.c (core_open): Call also thread_command.
12868 * gdbthread.h (thread_command): New prototype moved from ...
12869 * thread.c (thread_command): ... here.
12870 (thread_command): Make it global.
12872 2015-01-22 Pedro Alves <palves@redhat.com>
12874 * configure.ac [*mingw32*]: Check $curses_found instead of
12876 * configure: Regenerate.
12877 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
12878 HAVE_NCURSES_NCURSES_H checks.
12880 2015-01-22 Eli Zaretskii <eliz@gnu.org>
12882 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
12883 fails with the 1st arg NULL, try again with "unknown". Don't test
12884 the "cup" capability: it isn't supported by the Windows port of
12885 ncurses, but the Windows console driver is still capable of
12888 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12890 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
12892 2015-01-22 Eli Zaretskii <eliz@gnu.org>
12894 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
12895 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
12896 reason that "make TAGS" is broken.
12898 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
12900 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
12901 and check additional store instructions.
12903 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
12905 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
12907 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
12909 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
12910 ppc_canonicalize_syscall, ppc_linux_syscall_record,
12911 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
12912 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12913 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
12914 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
12915 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
12916 ppc_process_record_op19, ppc_process_record_op31,
12917 ppc_process_record_op59, ppc_process_record_op60,
12918 ppc_process_record_op63): Likewise.
12920 2015-01-20 Joel Brobecker <brobecker@adacore.com>
12922 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
12923 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
12926 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
12928 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
12929 ppc_process_record_op31, ppc_process_record_op59,
12930 ppc_process_record_op60, ppc_process_record_op63,
12931 ppc_process_record): Fix -Wformat warning.
12932 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12933 Remove unused variables.
12935 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
12937 * MAINTAINERS (Write After Approval): Add "Chen Gang".
12939 2015-01-19 Eli Zaretskii <eliz@gnu.org>
12941 * configure.ac [*mingw32*]: Only add windows-termcap.o to
12942 CONFIG_OBS if not building with a curses library.
12943 * configure: Regenerate.
12945 * windows-termcap.c: Include defs.h. Make the whole body empty if
12946 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12947 HAVE_NCURSES_NCURSES_H is defined.
12949 2015-01-19 Joel Brobecker <brobecker@adacore.com>
12951 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12952 from end of line to start of next line.
12954 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12956 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12957 Scan PLT stub backward for reverse debugging.
12958 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12960 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12961 Ulrich Weigand <uweigand@de.ibm.com>
12963 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12965 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12967 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12968 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12969 (ppc_linux_init_abi): Set process_record, process_record_signal.
12970 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12971 ppc_linux_record_tdep to gdbarch_tdep.
12972 (ppc_process_record): New declaration.
12973 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12974 ppc_process_record_op19, ppc_process_record_op31,
12975 ppc_process_record_op59, ppc_process_record_op60,
12976 ppc_process_record_op63, ppc_process_record): New functions.
12978 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12980 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12981 rs6000_in_function_epilogue_frame_p and add an argument
12983 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12984 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12986 (rs6000_epilogue_frame_unwind): New.
12987 (rs6000_gdbarch_init): Append epilogue unwinder.
12989 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12991 * nat/linux-personality.c: Replace "#ifndef
12992 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12993 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12996 2015-01-16 Eli Zaretskii <eliz@gnu.org>
12998 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
13000 (_initialize_tui_win) <border-kind, border-mode>:
13001 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
13002 (tui_set_tab_width_command): Fix the commentary.
13004 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
13006 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
13008 (tui_set_tab_width_command): Delete and recreate the source and
13009 the disassembly windows, to show the effect of the changed tab
13012 * tui/tui-data.h (LINE_PREFIX): Make shorter
13013 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
13014 "Thread NNNNN.XXXX" thread ID notation on Windows.
13016 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13018 Fix gcc-5 compilation.
13019 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
13021 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
13023 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
13024 (linux-personality.o): New rule.
13025 * common/common-defs.h: Include <stdint.h>.
13026 * config/aarch64/linux.mh (NATDEPFILES): Include
13027 linux-personality.o.
13028 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
13029 * config/arm/linux.mh (NATDEPFILES): Likewise.
13030 * config/i386/linux64.mh (NATDEPFILES): Likewise.
13031 * config/i386/linux.mh (NATDEPFILES): Likewise.
13032 * config/ia64/linux.mh (NATDEPFILES): Likewise.
13033 * config/m32r/linux.mh (NATDEPFILES): Likewise.
13034 * config/m68k/linux.mh (NATDEPFILES): Likewise.
13035 * config/mips/linux.mh (NATDEPFILES): Likewise.
13036 * config/pa/linux.mh (NATDEPFILES): Likewise.
13037 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
13038 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
13039 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
13040 * config/s390/linux.mh (NATDEPFILES): Likewise.
13041 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
13042 * config/sparc/linux.mh (NATDEPFILES): Likewise.
13043 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
13044 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
13045 * defs.h: Remove #include <stdint.h> (moved to
13046 common/common-defs.h).
13047 * linux-nat.c: Include nat/linux-personality.h. Remove #include
13048 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
13049 nat/linux-personality.c).
13050 (linux_nat_create_inferior): Remove code to disable address space
13051 randomization (moved to nat/linux-personality.c). Create cleanup
13052 to disable address space randomization.
13053 * nat/linux-personality.c: New file.
13054 * nat/linux-personality.h: Likewise.
13056 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
13058 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
13059 common/posix-strerror.c.
13060 (posix-strerror.o): New rule.
13061 (mingw-strerror.o): Likewise.
13062 * common/common-utils.h (safe_strerror): Move prototype to here,
13064 * common/common.host: New file.
13065 * common/mingw-strerror.c: Likewise.
13066 * common/posix-strerror.c: Likewise.
13067 * configure: Regenerated.
13068 * configure.ac: Source common/common.host. Add variable
13069 common_host_obs to gdb_host_obs.
13070 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
13071 gdb/common/posix-strerror.c when warning about the use of
13073 * mingw-hdep.c (safe_strerror): Remove definition; move it to
13074 common/mingw-strerror.c.
13075 * posix-hdep.c (safe_strerror): Remove definition; move it to
13076 common/posix-hdep.c.
13077 * utils.h (safe_strerror): Remove prototype; move to
13078 common/common-utils.h.
13080 2015-01-15 Joel Brobecker <brobecker@adacore.com>
13082 GDB 7.8.2 released.
13084 2015-01-15 Joel Brobecker <brobecker@adacore.com>
13086 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
13087 ___XA type if the array has already been fixed.
13089 2015-01-14 Yao Qi <yao@codesourcery.com>
13091 * Makefile.in (ppc-linux.o): New rule.
13092 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
13093 * configure.ac: AC_CHECK_FUNCS(getauxval).
13094 * config.in: Re-generated.
13095 * configure: Re-generated.
13096 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
13098 * nat/ppc-linux.c: New file.
13099 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
13100 Call ppc64_64bit_inferior_p.
13102 2015-01-14 Yao Qi <yao@codesourcery.com>
13104 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
13106 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
13107 (PPC_FEATURE_HAS_DFP): Likewise.
13108 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
13109 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
13110 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
13111 Include "nat/ppc-linux.h".
13112 * nat/ppc-linux.h: New file.
13113 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
13115 2015-01-14 Pedro Alves <palves@redhat.com>
13118 * breakpoint.c: Include "interps.h".
13119 (bpstat_do_actions_1): Also check whether the interpreter is
13122 2015-01-14 Pedro Alves <palves@redhat.com>
13125 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
13126 reinstall if the interpreter is sync.
13128 2015-01-13 Doug Evans <dje@google.com>
13130 * objfiles.c (objfile_filename): New function.
13131 * objfiles.h (objfile_filename): Declare it.
13132 (objfile_name): Add function comment.
13133 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
13134 bfd file name (which may be realpath'd), and the original name.
13136 2015-01-13 Joel Brobecker <brobecker@adacore.com>
13138 * NEWS: Create a new section for the next release branch.
13139 Rename the section of the current branch, now that it has
13142 2015-01-13 Joel Brobecker <brobecker@adacore.com>
13144 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
13145 * version.in: Bump version to 7.9.50.DATE-cvs.
13147 2015-01-13 Joel Brobecker <brobecker@adacore.com>
13149 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
13150 Remove trailing new-line in argument of call to warning.
13152 2015-01-13 Joel Brobecker <brobecker@adacore.com>
13154 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
13155 new-line in argument of call to "warning".
13157 2015-01-13 Joel Brobecker <brobecker@adacore.com>
13159 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
13160 in static block, then try searching for primitive types.
13162 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
13164 * top.h (gdb_add_history): Declare.
13165 * top.c (command_count): New variable.
13166 (gdb_add_history): New function.
13167 (gdb_safe_append_history): New static function.
13168 (quit_force): Call it.
13169 (command_line_input): Use gdb_add_history instead of
13171 * event-top.c (command_line_handler): Likewise.
13173 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
13176 * darwin-nat.c: Replace <machine/setjmp.h> #include by
13177 <setjmp.h> #include.
13179 2015-01-11 Doug Evans <xdje42@gmail.com>
13181 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
13183 2015-01-11 Doug Evans <xdje42@gmail.com>
13186 * NEWS: The "maint demangle" command is renamed as "demangle".
13187 * demangle.c: #include cli/cli-utils.h, language.h.
13188 (demangle_command): New function.
13189 (_initialize_demangle): Add new command "demangle".
13190 * maint.c (maintenance_demangle): Stub out.
13191 (_initialize_maint_cmds): Update help text for "maint demangle",
13192 and mark as deprecated.
13194 2015-01-11 Mark Kettenis <kettenis@gnu.org>
13196 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
13197 inferior_thread is a function.
13199 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
13201 * Makefile.in (.y.c): Don't munge yacc's #line
13204 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
13206 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
13207 to prompt for input.
13208 * tui/tui-hooks.c (tui_query_hook): Remove.
13209 (tui_install_hooks): Don't set deprecated_query_hook.
13210 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
13211 height calculation. Always update the command window's cur_line.
13213 2015-01-09 Pedro Alves <palves@redhat.com>
13215 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
13217 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
13219 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
13220 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
13222 (check_stopped_by_watchpoint): New function.
13223 (save_sigtrap): Reimplement.
13224 (linux_nat_stopped_by_watchpoint): Adjust.
13225 (linux_nat_lp_status_is_event): Delete.
13226 (stop_wait_callback): Only call save_sigtrap after storing the
13228 (status_callback): If the thread had been stopped for a breakpoint
13229 that has since been removed, discard the event and resume the LWP.
13230 (count_events_callback, select_event_lwp_callback): Use
13231 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
13232 (cancel_breakpoint): Rename to ...
13233 (check_stopped_by_breakpoint): ... this. Record whether the LWP
13234 stopped for a software breakpoint or hardware breakpoint.
13235 (select_event_lwp): Only give preference to the stepping LWP in
13236 all-stop mode. Adjust comments.
13237 (stop_and_resume_callback): Remove references to new_pending_p.
13238 (linux_nat_filter_event): Likewise. Leave exit events of the
13239 leader thread pending here. Handle signal short circuiting here.
13240 Only call save_sigtrap after storing the pending waitstatus.
13241 (linux_nat_wait_1): Remove 'retry' label. Remove references to
13242 new_pending. Don't handle leaving events the caller is not
13243 interested in pending here, nor handle signal short-circuiting
13244 here. Also give equal priority to all LWPs that have had events
13245 in non-stop mode. If reporting a software breakpoint event,
13246 unadjust the LWP's PC.
13247 * linux-nat.h (enum lwp_stop_reason): New.
13248 (struct lwp_info) <stop_pc>: New field.
13249 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
13250 (struct lwp_info) <stop_reason>: New field.
13251 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
13253 2015-01-09 Pedro Alves <palves@redhat.com>
13255 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
13256 Set the LWP's 'resumed' flag.
13258 2015-01-09 Pedro Alves <palves@redhat.com>
13260 * linux-nat.c (linux_resume_one_lwp): New function.
13261 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
13262 (linux_nat_resume): Use lwp_status_pending_p and
13263 linux_resume_one_lwp.
13264 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
13265 (linux_handle_extended_wait): Use linux_resume_one_lwp.
13266 (status_callback, running_callback): Use lwp_status_pending_p.
13267 (lwp_status_pending_p): New function.
13268 (stop_and_resume_callback): Use lwp_status_pending_p.
13269 (linux_nat_filter_event): Use linux_resume_one_lwp.
13270 (linux_nat_wait_1): Always use status_callback to look for an LWP
13271 with a pending status. Use linux_resume_one_lwp.
13272 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
13273 linux_resume_one_lwp.
13275 2015-01-09 Pedro Alves <palves@redhat.com>
13277 * breakpoint.c (bp_location_inserted_here_p): New function,
13278 factored out from ...
13279 (breakpoint_inserted_here_p): ... here. Use
13280 ALL_BP_LOCATIONS_AT_ADDR.
13281 (software_breakpoint_inserted_here_p): Use
13282 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
13284 2014-01-09 Pedro Alves <palves@redhat.com>
13286 Skip enabling event reporting if the kernel supports
13287 PTRACE_EVENT_CLONE.
13288 * linux-thread-db.c: Include "nat/linux-ptrace.h".
13289 (thread_db_use_events): New function.
13290 (try_thread_db_load_1): Check thread_db_use_events before enabling
13292 (update_thread_state): New function.
13293 (attach_thread): Use it. Check thread_db_use_events before
13294 enabling event reporting.
13295 (thread_db_detach): Check thread_db_use_events before disabling
13297 (find_new_threads_callback): Check thread_db_use_events before
13298 enabling event reporting. Update the thread's state if not using
13299 libthread_db events.
13301 2015-01-09 Pedro Alves <palves@redhat.com>
13303 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
13304 about to wait for is > 0.
13305 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
13306 the kernel thread ID is -1.
13308 2015-01-09 Pedro Alves <palves@redhat.com>
13310 * linux-nat.c (attach_proc_task_lwp_callback): New function.
13311 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
13312 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
13313 ptrace option flags.
13314 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
13316 * nat/linux-procfs.c: Include <dirent.h>.
13317 (linux_proc_get_int): New parameter "warn". Handle it.
13318 (linux_proc_get_tgid): Adjust.
13319 (linux_proc_get_tracerpid): Rename to ...
13320 (linux_proc_get_tracerpid_nowarn): ... this.
13321 (linux_proc_pid_get_state): New function, factored out from
13322 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
13324 (linux_proc_pid_is_gone): New function.
13325 (linux_proc_pid_is_stopped): Adjust.
13326 (linux_proc_pid_is_zombie_maybe_warn)
13327 (linux_proc_pid_is_zombie_nowarn): New functions.
13328 (linux_proc_pid_is_zombie): Use
13329 linux_proc_pid_is_zombie_maybe_warn.
13330 (linux_proc_attach_tgid_threads): New function.
13331 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
13332 (linux_proc_get_tracerpid): Rename to ...
13333 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
13334 (linux_proc_pid_is_gone): New declaration.
13335 (linux_proc_pid_is_zombie): Update comment.
13336 (linux_proc_pid_is_zombie_nowarn): New declaration.
13337 (linux_proc_attach_lwp_func): New typedef.
13338 (linux_proc_attach_tgid_threads): New declaration.
13339 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
13340 use nowarn functions.
13341 (linux_ptrace_attach_fail_reason_string): Move here from
13342 gdbserver/linux-low.c and rename.
13343 (ptrace_supports_feature): If the current ptrace options are not
13344 known yet, check them now, instead of asserting.
13345 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
13348 2015-01-09 Pedro Alves <palves@redhat.com>
13350 * linux-thread-db.c (thread_db_find_new_threads_silently)
13351 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
13352 (find_new_threads_once): Print debug output on gdb_stdlog.
13354 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
13355 Pedro Alves <palves@redhat.com>
13357 * compile/compile.c: Include "gdb_wait.h".
13358 (do_rmdir): Check return value, and free 'zap'.
13360 2015-01-08 Pedro Alves <palves@redhat.com>
13361 Yao Qi <yao@codesourcery.com>
13363 * dwarf2loc.c (indirect_pieced_value): Don't call
13364 gdb_sign_extend. Call extract_signed_integer instead.
13365 * utils.c (gdb_sign_extend): Remove.
13366 * utils.h (gdb_sign_extend): Remove declaration.
13368 2015-01-07 Pierre Muller <muller@sourceware.org>
13371 * stabsread.c (define_symbol): Set language for C++ special symbols.
13373 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
13375 * inflow.c (initial_gdb_ttystate): Tweak comment.
13377 2015-01-07 Joel Brobecker <brobecker@adacore.com>
13379 * inflow.c (set_initial_gdb_ttystate): Add empty line after
13380 comment documenting function.
13382 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
13384 * terminal.h (set_initial_gdb_ttystate): Declare.
13385 * inflow.c (initial_gdb_ttystate): New static variable.
13386 (set_initial_gdb_ttystate): New setter.
13387 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
13388 instead of our current terminal state.
13389 * top.c (gdb_init): Call set_initial_gdb_ttystate.
13391 2015-01-07 Joel Brobecker <brobecker@adacore.com>
13393 * guile/scm-type.c (tyscm_array_1): Add comment.
13394 * python/py-type.c (typy_array_1): Add comment.
13396 2015-01-06 Joel Brobecker <brobecker@adacore.com>
13398 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
13399 error if N2 is equal to N1 - 1.
13401 2015-01-06 Joel Brobecker <brobecker@adacore.com>
13403 * python/py-type.c (typy_array_1): Do not raise negative-length
13404 exception if N2 is equal to N1 - 1.
13406 2015-01-03 Doug Evans <xdje42@gmail.com>
13408 * c-exp.y: Whitespace cleanup.
13409 (classify_inner_name): Remove extra ;.
13411 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
13413 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
13416 2015-01-02 Doug Evans <dje@google.com>
13418 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
13420 2015-01-02 Doug Evans <dje@google.com>
13422 * symtab.h (struct symbol): Fix typo in comment.
13424 2015-01-01 Joel Brobecker <brobecker@adacore.com>
13426 Update year range in copyright notice of all files.
13428 2015-01-01 Joel Brobecker <brobecker@adacore.com>
13430 * top.c (print_gdb_version): Update copyright year to 2015.
13432 2015-01-01 Joel Brobecker <brobecker@adacore.com>
13434 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
13436 For older changes see ChangeLog-2014.
13442 version-control: never